.bd-webdesign {
  padding-block: clamp(3rem, 6.5vw, 7rem) clamp(4rem, 7.5vw, 8rem);
}
.bd-webdesign__layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.bd-webdesign__title {
  margin: 0 0 .55em;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.bd-webdesign__title span { white-space: nowrap; }
.bd-webdesign__lead {
  max-width: 43ch;
  margin: 0;
  color: #d5d5d0;
  font-size: clamp(1.05rem, 1.28vw, 1.375rem);
  line-height: 1.5;
}
.bd-webdesign__details {
  display: grid;
  gap: 1.2rem;
  max-width: 48ch;
  margin: 0;
}
.bd-webdesign__details > div {
  position: relative;
  padding-left: 2.85rem;
}
.bd-webdesign__details dt {
  font-size: 1rem;
  font-weight: 700;
}
.bd-webdesign__details dd {
  margin: .3rem 0 0;
  color: var(--text-readable);
  font-size: 1rem;
  line-height: 1.5;
}
.bd-webdesign__details svg {
  position: absolute;
  top: -.15rem;
  left: 0;
  width: 1.95rem;
  height: 1.95rem;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bd-webdesign__cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  max-width: 100%;
  min-height: 44px;
  margin-top: clamp(1.3rem, 2vw, 2rem);
  color: var(--primary);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 700;
  text-decoration: none;
  text-wrap: balance;
}
.bd-webdesign__cta:is(:hover, :focus-visible) span {
  text-decoration: underline;
  text-underline-offset: .22em;
}
.bd-webdesign__cta svg {
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bd-webdesign__figure {
  --mix: 0;
  --swap: 0s;
  --swap-ease: cubic-bezier(.45, 0, .2, 1);
  min-width: 0;
  margin: 0;
}
.bd-webdesign__figure:is([data-project="ksp"], :not([data-project]):has([value="ksp"]:checked)) {
  --mix: 1;
  --stars-visibility: hidden;
  --ksp-visibility: visible;
  --stars-credit: none;
  --ksp-credit: flex;
}
.bd-webdesign__projects, .bd-webdesign__devices {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.bd-webdesign__projects {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: clamp(1rem, 2.25vw, 2.4rem);
  margin-bottom: .9rem;
}
.bd-webdesign__projects label { grid-row: 1; }
.bd-webdesign__projects label:first-of-type { grid-column: 1; }
.bd-webdesign__projects label:last-of-type { grid-column: 2; }
.bd-webdesign__figure label { position: relative; }
.bd-webdesign__figure label > input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  border-radius: 0;
  opacity: 0;
  cursor: inherit;
}
.bd-webdesign__projects label > span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-readable);
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.bd-webdesign__projects::after {
  content: "";
  grid-area: 1 / 1;
  align-self: end;
  height: 2px;
  background: var(--primary);
  pointer-events: none;
}
.bd-webdesign__projects:not([data-slider]):has([value="ksp"]:checked)::after { grid-column: 2; }
.bd-webdesign__projects[data-slider]::after {
  position: absolute;
  grid-area: auto;
  inset: auto auto 0 0;
  width: 1px;
  transform-origin: left center;
  transform: translateX(var(--tab-x)) scaleX(var(--tab-width));
  transition: transform var(--swap) var(--swap-ease);
}
.bd-webdesign__projects input:checked + span { color: var(--white); }
.bd-webdesign__projects input:focus-visible + span::before {
  content: "";
  position: absolute;
  left: -.6rem;
  width: 3px;
  height: 1em;
  border-radius: var(--radius);
  background: var(--white);
}
.bd-webdesign__devices input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.bd-webdesign__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bd-webdesign__board {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  aspect-ratio: 1.72;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #b9a7c7 46%, #a28bac 46.2% 72%, #8b7499 72.2%);
}
.bd-webdesign__board::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, #a6bfd0 46%, #879fab 46.2% 72%, #708c9c 72.2%);
  opacity: var(--mix);
  transition: opacity var(--swap) var(--swap-ease);
}
.bd-webdesign__devices { display: none; }
.bd-webdesign__art { position: absolute; inset: 0; }
.bd-webdesign__laptop, .bd-webdesign__phone {
  position: absolute;
  margin: 0;
}
.bd-webdesign__laptop {
  bottom: 11%;
  left: 4%;
  width: 70%;
}
.bd-webdesign__lid, .bd-webdesign__phone {
  --rim-x: max(6px, .75cqi);
  --rim-y: max(13px, 1.5cqi);
  --rim-border: 1px;
  overflow: hidden;
  padding: var(--rim-y) var(--rim-x);
  border: var(--rim-border) solid #686b71;
  border-radius: var(--radius-inner);
  background: #202225;
  box-shadow: 0 1.9cqi 2.7cqi -.8cqi #30283760, inset 0 0 0 1px #38393b;
}
.bd-webdesign__lid {
  position: relative;
}
.bd-webdesign__lid::before, .bd-webdesign__phone::before, .bd-webdesign__phone::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius);
}
.bd-webdesign__lid::before {
  top: max(6px, .63cqi);
  width: 3px;
  height: 3px;
  background: #666e79;
}
.bd-webdesign__laptop::after {
  content: "";
  position: absolute;
  inset: auto -2% -.55cqi;
  height: max(5px, .85cqi);
  border-radius: 0 0 var(--radius-inner) var(--radius-inner);
  background: linear-gradient(to bottom, #c4c5c7 0 34%, #8e9093 65%, #64666a);
  box-shadow: 0 .35cqi .4cqi #27233236;
}
.bd-webdesign__phone {
  right: 3.7%;
  bottom: 10%;
  width: 20%;
  --rim-x: max(5px, .6cqi);
  --rim-y: max(15px, 1.6cqi);
}
.bd-webdesign__phone::before {
  top: max(6px, .65cqi);
  width: 16%;
  height: 3px;
  background: #45484c;
}
.bd-webdesign__phone::after { bottom: max(6px, .65cqi); width: 28%; height: 2px; background: #999b9e; }
.bd-webdesign__screen {
  position: relative;
  overflow: hidden;
  border-radius: max(0px, calc(var(--radius-inner) - var(--rim-x) - var(--rim-border))) /
                 max(0px, calc(var(--radius-inner) - var(--rim-y) - var(--rim-border)));
}
.bd-webdesign__screen img {
  display: block;
  width: 100%;
  height: auto;
}
.bd-webdesign__screen [data-site="stars"] {
  visibility: var(--stars-visibility, visible);
  transition: visibility 0s calc(var(--mix) * var(--swap));
}
.bd-webdesign__screen [data-site="ksp"] {
  position: absolute;
  inset: 0;
  visibility: var(--ksp-visibility, hidden);
  opacity: var(--mix);
  transition: opacity var(--swap) var(--swap-ease), visibility 0s calc((1 - var(--mix)) * var(--swap));
}
.bd-webdesign__caption { margin-top: .65rem; }
.bd-webdesign__credit {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem 1rem;
  color: var(--text-readable);
  font-size: .875rem;
}
.bd-webdesign__credit.bd-webdesign__sample--stars { display: var(--stars-credit, flex); }
.bd-webdesign__credit.bd-webdesign__sample--ksp { display: var(--ksp-credit, none); }
.bd-webdesign__credit a {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 44px;
  color: var(--white);
  font: .8125rem/1.35 var(--mono);
  text-decoration: none;
}
.bd-webdesign__credit a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .22em; }
.bd-webdesign__credit svg, .bd-webdesign__devices svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 40rem) {
  .bd-webdesign__projects { margin-bottom: .6rem; }
  .bd-webdesign__board {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    padding: 1rem 0 1.55rem;
    aspect-ratio: auto;
  }
  .bd-webdesign__devices {
    --switch-padding: 2px;
    display: flex;
    z-index: 1;
    padding: var(--switch-padding);
    border-radius: var(--radius-inner);
    background: #29272d;
  }
  .bd-webdesign__devices label > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .3rem .85rem;
    border-radius: max(0px, calc(var(--radius-inner) - var(--switch-padding)));
    color: #eee9ef;
    font-size: .8125rem;
    font-weight: 700;
  }
  .bd-webdesign__devices input:checked + span { color: #262529; background: #f6f3f3; }
  .bd-webdesign__art { position: relative; inset: auto; width: 100%; }
  .bd-webdesign__phone, .bd-webdesign__laptop {
    position: relative;
    inset: auto;
    margin-inline: auto;
    transform: none;
  }
  .bd-webdesign__phone { width: min(62%, 14.5rem); }
  .bd-webdesign__laptop { display: none; width: 88%; }
  .bd-webdesign__figure:has([value="desktop"]:checked) .bd-webdesign__laptop { display: block; }
  .bd-webdesign__figure:has([value="desktop"]:checked) .bd-webdesign__phone { display: none; }
}
@supports not selector(:has(*)) {
  .bd-webdesign__projects, .bd-webdesign__devices { display: none; }
}
@media (forced-colors: active) {
  .bd-webdesign__projects::after, .bd-webdesign__projects input:focus-visible + span::before { background: Highlight; forced-color-adjust: none; }
  .bd-webdesign__devices input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
}
@media (min-width: 64rem) {
  .bd-webdesign__layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 1.7vw, 2rem);
    row-gap: clamp(1.5rem, 2.1vw, 2.45rem);
  }
  .bd-webdesign__intro, .bd-webdesign__delivery { grid-column: 1 / 6; padding-right: 1.8vw; }
  .bd-webdesign__intro { grid-row: 1; align-self: end; }
  .bd-webdesign__delivery { grid-row: 2; align-self: start; }
  .bd-webdesign__figure { grid-area: 1 / 6 / 3 / -1; align-self: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .bd-webdesign__figure { --swap: 320ms; }
  .bd-webdesign__board[data-revealed] .bd-webdesign__art { animation: bd-webdesign-appear 460ms ease-out both; }
  @keyframes bd-webdesign-appear {
    from { opacity: .65; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (hover: hover) and (pointer: fine) {
  .bd-webdesign__figure label { cursor: url("../assets/cursor-action.svg") 10 2, pointer; }
  .bd-webdesign__projects label:hover > span { color: var(--white); }
}
