:root {
  --header-height: 88px;
  --stage-gutter: max(calc((100% - 1200px) / 2), 6.4%);
  scroll-padding-top: calc(var(--header-height) + 12px);
}
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-glass);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
}
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hero h1 > .hero-line { display: block; width: max-content; max-width: 100%; }
/* studio-hero-three-lines: desktop only; mobile unchanged */
@media (min-width: 761px) {
  .hero #hero-title { font-size: min(5.2vw, 4.875rem); }
  .hero #hero-title > .hero-line { white-space: nowrap; overflow-wrap: normal; }
}
@supports (font-size: 1cqi) {
  @media (min-width: 761px) {
    .hero .hero-copy { container-type: inline-size; }
    .hero #hero-title { font-size: min(var(--studio-hero-preferred, clamp(3.5rem, 5.7vw, 5.35rem)), 12.8cqi); }
  }
  @media (min-width: 761px) and (max-width: 900px) {
    .hero #hero-title { --studio-hero-preferred: 5.75vw; }
  }
  @media (min-width: 901px) and (max-width: 980px) {
    .hero #hero-title { --studio-hero-preferred: clamp(3.25rem, 6.05vw, 4.25rem); }
  }
  @media (min-width: 1500px) {
    .hero #hero-title { --studio-hero-preferred: 5.7rem; }
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.folio-heading {
  font-weight: 670;
  font-size: clamp(2.5rem, 4.3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.061em;
  text-transform: none;
}
.folio-heading em {
  font-style: normal;
  color: var(--violet);
  background: var(--accent-wash);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase {
  position: relative;
  background: var(--section);
  border-block: 1px solid var(--line);
}
.showcase.is-pinned { height: var(--rail-height); overflow-anchor: none; }
.showcase.is-pinned .showcase-stage { position: sticky; top: var(--gallery-pin-top, var(--header-height)); }
.showcase-stage {
  padding: clamp(22px, 4.2vh, 54px) 0 clamp(22px, 3.8vh, 44px);
  background: radial-gradient(ellipse at 73% 75%, #3e2e481f, transparent 60%), var(--section);
}
.section-skip { position: absolute; top: 0; }
.section-skip:not(:focus) { clip-path: inset(50%); }
.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.showcase-head .overline, .packages-head .overline { color: var(--muted); }
.showcase-head .folio-heading { margin-top: 10px; }
.archive-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 100px;
  border: 1px solid var(--control-line);
  color: var(--ink);
  font-weight: 650;
  font-size: .93rem;
  white-space: nowrap;
  padding: 10px 17px;
  min-height: 43px;
  transition: background .2s ease, border-color .2s ease;
}
.archive-link:hover { background: var(--tint); border-color: var(--violet); }
.archive-link .icon { width: 17px; height: 17px; color: var(--violet); }
.showcase-window {
  position: relative;
  margin-block: clamp(12px, 2.5vh, 29px) 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--control-line) transparent;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--stage-gutter);
}
.showcase.is-enhanced .showcase-window { scrollbar-width: none; }
.showcase.is-enhanced .showcase-window::-webkit-scrollbar { display: none; }
.showcase.is-pinned .showcase-window {
  overflow-x: hidden;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}
.showcase-track {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.65vw, 25px);
  padding: 10px var(--stage-gutter) 12px;
  width: max-content;
  min-width: 100%;
}
.showcase-track .site-card {
  flex: 0 0 clamp(310px, 30.6vw, 452px);
  width: clamp(310px, 30.6vw, 452px);
  scroll-snap-align: start;
}
.site-card {
  position: relative;
  border-radius: 20px;
  background: radial-gradient(ellipse at 105% 110%, color-mix(in srgb, var(--project-color) 11%, transparent), transparent 68%), var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  transition: transform .45s cubic-bezier(.21,.72,.2,1), border-color .25s, box-shadow .35s;
}
.site-card:focus-within { outline: 2px solid var(--violet); outline-offset: 3px; }
.site-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: inherit;
  overflow: hidden;
}
.site-card-link:focus-visible { outline: none; }
.card-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.75;
  border-bottom: 1px solid #ffffff15;
  background-color: var(--project-color);
  background-image: radial-gradient(ellipse at 0 0, #ffffff50, transparent 72%), linear-gradient(145deg, transparent 24%, #20182937 100%);
}
.card-cover::before {
  content: "";
  position: absolute;
  right: -21%;
  top: -117%;
  border-radius: 50%;
  width: 91%;
  height: 231%;
  border: 1px solid #fff4;
  box-shadow: 13px 0 0 #ffffff12, 27px 0 0 #ffffff0e, 43px 0 0 #ffffff12;
  transform: rotate(-28deg);
}
.card-cover img {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 90%;
  height: auto;
  max-width: none;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 7px 28px #2922324a, 0 0 0 1px #211d2625;
  transform-origin: 50% 8%;
  transition: transform .65s cubic-bezier(.22,.71,.21,1);
}
.category-label {
  position: absolute;
  top: 10px;
  left: 13px;
  padding: 4px 10px 5px;
  border-radius: 100px;
  background: var(--photo-badge);
  color: var(--photo-ink);
  font-size: .76rem;
  font-weight: 620;
  line-height: 1.1;
}
.card-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(17px, 1.65vw, 25px); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.card-title :is(h2,h3) {
  text-transform: none;
  font-size: clamp(1.28rem, 1.75vw, 1.66rem);
  font-weight: 670;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.visit-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--control-line);
  color: var(--lilac);
}
.visit-icon .icon { height: 14px; width: 14px; }
.card-copy > p { color: var(--muted); line-height: 1.52; font-size: 1rem; margin-top: 7px; }
.card-features { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 15px; }
.card-features span {
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 9px;
  font-size: .8rem;
  line-height: 1.25;
}
.card-domain {
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  font: .76rem/1.45 var(--mono);
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.card-domain .icon { width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) {
  .site-card:hover {
    transform: translateY(-7px);
    border-color: var(--control-line);
    box-shadow: 0 14px 27px var(--shadow);
  }
  .site-card:hover .card-cover img { transform: translateY(-4px) scale(1.035); }
  .site-card:hover .visit-icon { color: #1e1924; background: var(--project-color); border-color: var(--project-color); }
}
.showcase-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gallery-caption { display: flex; align-items: center; gap: 17px; flex: 1; min-width: 0; }
.gallery-instruction { font-size: .9rem; color: var(--muted); }
.gallery-meter {
  height: 3px;
  width: min(140px, 30%);
  display: block;
  background: var(--line);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.gallery-meter i { position: absolute; width: 100%; height: 100%; background: var(--accent-wash); transform: scaleX(.1); transform-origin: left; }
.gallery-nav { display: flex; align-items: center; gap: 6px; }
.gallery-count { color: var(--subtle); font: .8rem/1 var(--mono); font-variant-numeric: tabular-nums; margin-right: 6px; }
.gallery-nav .round { width: 39px; height: 39px; }
.gallery-nav .round:disabled { opacity: .32; cursor: default; background: transparent; border-color: var(--control-line); color: var(--ink); }
.showcase:not(.is-enhanced) .gallery-nav, .showcase:not(.is-enhanced) .gallery-meter { display: none; }

.project-archive {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4.3vw, 60px) 0 clamp(58px, 6.5vw, 100px);
}
.project-archive::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 400px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 83% -40%, #6a497b36, transparent 68%);
}
.breadcrumb { display: flex; gap: 10px; align-items: center; font: .81rem/1.4 var(--mono); color: var(--subtle); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--violet); }
.archive-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: end; margin: 25px 0 clamp(28px, 3vw, 44px); }
.archive-head h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; letter-spacing: -.071em; }
.archive-head p { justify-self: end; max-width: 390px; color: var(--muted); font-size: clamp(1rem,1.15vw,1.13rem); line-height: 1.56; }
.archive-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  margin-bottom: clamp(17px, 2.25vw, 31px);
}
.archive-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.archive-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  background: var(--soft);
  min-height: 39px;
  padding: 7px 13px;
  font-size: .9rem;
  font-weight: 590;
  transition: color .18s, background .18s, border-color .18s;
}
.archive-filters button span { font: .73rem/1 var(--mono); color: var(--lilac); }
.archive-filters button[aria-pressed="true"] { background: var(--violet); color: var(--on-accent); border-color: var(--violet); }
.archive-filters button[aria-pressed="true"] span { color: inherit; }
.archive-filters button:hover { border-color: var(--violet); }
.archive-count { font: .8rem/1.4 var(--mono); color: var(--subtle); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(13px, 1.65vw, 24px); }
.archive-grid .card-title :is(h2,h3) { font-size: clamp(1.2rem,1.55vw,1.48rem); }

.packages {
  border-top: 1px solid var(--line);
  position: relative;
  background: radial-gradient(ellipse at 57% 54%, #533d601b, transparent 63%);
  padding-block: clamp(58px, 6.8vw, 105px) clamp(60px, 7.6vw, 111px);
}
.showcase + .packages { border-top: 0; }
.packages-inner { max-width: 1040px; }
.packages-head { text-align: center; }
.packages-head .overline { justify-content: center; }
.packages-head h2 { margin: 14px 0 10px; }
.packages-head > p:last-child { color: var(--muted); max-width: 555px; margin-inline: auto; font-size: 1.05rem; }
.rate-switch {
  display: flex;
  align-items: stretch;
  border-radius: 99px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  background: var(--soft);
  position: relative;
  isolation: isolate;
}
.rate-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  background: var(--violet);
  border-radius: 99px;
  transition: transform .36s cubic-bezier(.2,.75,.22,1);
  z-index: -1;
}
.rate-switch[data-selected="offer"]::before { transform: translateX(100%); }
.rate-switch button {
  width: clamp(115px, 12vw, 146px);
  border: 0;
  border-radius: 50px;
  min-height: 38px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 630;
  transition: color .2s;
}
.rate-switch button[aria-pressed="true"] { color: var(--on-accent); }
.rate-switch button span { display: inline-block; background: var(--tint); color: var(--lilac); border-radius: 20px; padding: 1px 5px; font-size: .7rem; }
.package-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px, 2.2vw, 33px); margin-top: 43px; }
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: clamp(22px, 2.8vw, 40px);
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--card);
  box-shadow: 0 12px 38px var(--shadow);
  transition: border-color .24s, transform .28s ease;
}
.package-card:hover { border-color: var(--control-line); }
.package-featured { background: var(--plan-wash); border-color: var(--control-line); }
.plan-label {
  position: absolute;
  left: clamp(21px,2.5vw,38px);
  top: 0;
  transform: translateY(-55%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  color: var(--on-accent);
  background: var(--accent-wash);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.1;
}
.plan-label svg { width: 12px; height: 12px; }
.package-card h3 { font-size: clamp(1.4rem,2vw,1.85rem); font-weight: 650; }
.package-audience { color: var(--muted); font-size: 1rem; line-height: 1.45; margin-top: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin-top: clamp(25px,3vw,40px); }
.display-price { font-size: clamp(2.9rem,4.65vw,4.45rem); line-height: 1; font-weight: 660; letter-spacing: -.074em; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--subtle); font-size: .92rem; }
.price-note { font-size: .88rem; margin: 7px 0 0; color: var(--muted); }
.package-card[data-active-rate="offer"] .price-note { color: var(--lilac); }
.plan-features { display: grid; gap: 10px; list-style: none; padding: 0; margin: 24px 0 30px; }
.plan-features li { display: flex; align-items: baseline; gap: 9px; line-height: 1.4; color: var(--ink); }
.plan-features li > span { flex: none; align-self: flex-start; display: inline-grid; place-items: center; border-radius: 50%; width: 18px; height: 18px; margin-top: 2px; background: var(--tint); color: var(--lilac); }
.plan-features .icon { height: 12px; width: 12px; }
.package-featured .plan-features li > span { background: var(--tint); color: var(--lilac); }
.plan-action { width: 100%; margin-top: auto; background: var(--soft); color: var(--ink); }
.plan-action:hover { background: var(--raised); }
.package-featured .plan-action { background: var(--accent-wash); color: var(--on-accent); }
.custom-project { text-align: center; font-size: .97rem; color: var(--subtle); margin-top: 26px; }
.custom-project a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.custom-project a:hover { color: var(--ink); }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .overline { animation: rise-in .42s both; }
  .hero h1 > .hero-line { animation: rise-in .54s cubic-bezier(.2,.68,.2,1) both; }
  .hero h1 > .hero-line:nth-child(2) { animation-delay: 70ms; }
  .hero h1 > .hero-line:nth-child(3) { animation-delay: 140ms; }
  .hero-intro, .hero-actions { animation: rise-in .5s .17s both; }
  .hero-art { animation: photo-in .72s .06s both; }
  .archive-head { animation: rise-in .55s both; }
  .enter-section { animation: rise-in .48s cubic-bezier(.2,.72,.22,1) both; }
  .package-card.enter-section:nth-child(2) { animation-delay: 80ms; }
}
@media (max-width: 980px) {
  :root { --header-height: 76px; --stage-gutter: 4.5%; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-head { grid-template-columns: 1.2fr .8fr; }
  .showcase-track .site-card { flex-basis: 39vw; width: 39vw; }
  .showcase-head .folio-heading { font-size: clamp(2.4rem,5vw,3.4rem); }
}
@media (min-width: 900px) and (max-height: 810px) {
  .showcase-stage { padding-block: 18px 16px; }
  .showcase-head .folio-heading { font-size: clamp(2.35rem,3.4vw,3rem); margin-top: 4px; }
  .showcase-window { margin-block: 9px 0; }
  .showcase-track .card-cover { aspect-ratio: 2.05; }
  .showcase-track .card-copy { padding: 15px 18px; }
  .showcase-track .card-features { padding-top: 10px; }
  .showcase-track .card-domain { margin-top: 8px; }
}
@media (max-width: 760px) {
  :root { --header-height: 69px; --stage-gutter: 20px; }
  .showcase-stage { padding-block: 30px 24px; }
  .showcase-track .site-card { flex-basis: min(72vw,400px); width: min(72vw,400px); }
  .archive-head { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .archive-head p { justify-self: start; max-width: 520px; }
  .archive-controls { gap: 10px; }
  .gallery-meter { width: min(80px,15%); }
  .card-copy { padding: 16px; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid .card-cover { aspect-ratio: 1.85; }
  .archive-grid .card-title :is(h2,h3) { font-size: 1.46rem; }
  .package-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .package-card { padding: 24px; }
}
@media (max-width: 540px) {
  :root { --stage-gutter: 18px; }
  .showcase-track { gap: 12px; }
  .showcase-track .site-card { flex-basis: min(82vw,356px); width: min(82vw,356px); }
  .showcase-head { align-items: flex-end; gap: 8px; }
  .showcase-head .folio-heading { max-width: 230px; font-size: clamp(2.1rem,8vw,2.7rem); }
  .archive-link { padding: 8px 11px; min-height: 38px; font-size: .82rem; gap: 6px; }
  .archive-link .icon { width: 15px; height: 15px; }
  .showcase-window { margin-block: 10px 3px; }
  .gallery-caption { gap: 8px; }
  .gallery-instruction { font-size: .84rem; }
  .gallery-meter { display: none; }
  .gallery-count { font-size: .73rem; margin-right: 2px; }
  .gallery-nav .round { width: 33px; height: 33px; }
  .archive-head h1 { font-size: clamp(2.65rem,10.8vw,3.8rem); }
  .archive-controls { padding-block: 13px; }
  .archive-filters { gap: 6px; }
  .archive-filters button { padding: 6px 10px; min-height: 35px; font-size: .84rem; }
  .archive-count { font-size: .76rem; }
  .category-label { font-size: .72rem; top: 8px; left: 10px; }
  .packages-head h2 { font-size: clamp(2.4rem,9vw,3.1rem); }
  .packages-head > p:last-child { font-size: 1rem; }
}
@media (max-width: 350px) {
  :root { --stage-gutter: 13px; }
  .gallery-count { display: none; }
  .archive-link .icon { display: none; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .showcase-stage { padding-block: 14px 12px; }
  .showcase-window { margin-block: 4px; }
  .showcase-track { padding-block: 6px 8px; }
  .showcase-track .card-copy { padding: 13px; }
  .showcase-track .card-copy > p { line-height: 1.42; }
  .showcase-track .card-features { padding-top: 9px; }
  .showcase-track .card-domain { margin-top: 7px; }
}
@media (orientation: landscape) and (max-width: 960px) and (max-height: 540px) {
  .showcase-stage { padding-block: 7px; }
  .showcase-head .folio-heading { max-width: none; margin-top: 2px; font-size: clamp(1.6rem, 4vw, 2rem); }
  .showcase-track .site-card { flex-basis: min(82vw, 600px); width: min(82vw, 600px); }
  .showcase-track .site-card-link { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .showcase-track .card-cover { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #ffffff15; }
}
@media (prefers-reduced-motion: reduce) {
  .site-card:hover, .site-card:hover .card-cover img { transform: none; }
}
