html:has(:is(.home, .inner-page)) { background: #f2efe6; }

:is(.home, .inner-page) {
  --paper: #f2efe6;
  --surface: #e3e0d4;
  --soft-ink: #686a5c;
  --ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--paper);
  color: var(--olive);
}

.home-wrap { width: min(84%, 75rem); margin-inline: auto; }
.home :is(main, footer) [id] { scroll-margin-top: 5rem; }
.home footer[id] { scroll-margin-top: 2rem; }
:is(.home, .inner-page) h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); line-height: 1.02; letter-spacing: -.055em; }
:is(.home, .inner-page) h2 em, .hero-title em { color: var(--soft-ink); font-style: normal; }
.home .section-label { color: var(--soft-ink); font-size: .875rem; line-height: 1.3; letter-spacing: 0; }
.inline-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

.home-header, .scroll-nav {
  position: fixed;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  width: max-content;
  transform: translateX(-50%);
}

.home-header {
  top: .35rem;
  gap: clamp(.9rem, 2.3vw, 1.875rem);
}
.home-header a { text-decoration: none; }
.home-brand { font-size: 1.6rem; line-height: 1; letter-spacing: -.065em; }
.header-contact {
  padding: .8rem 1.5rem;
  border-radius: 5rem;
  background: var(--olive);
  color: var(--paper);
  font-size: .875rem;
}
.header-contact:hover { background: var(--rust); }

.scroll-nav {
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  padding: .2rem .35rem;
  border-radius: 1.15rem;
  background: #d4d2c8e8;
  backdrop-filter: blur(16px);
  transition: opacity .25s ease, translate .35s var(--ease);
}
.scroll-nav a, .dock-more summary {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding-inline: .85rem;
  border-radius: .85rem;
  text-decoration: none;
  font-size: .875rem;
  white-space: nowrap;
}
.scroll-nav a[aria-current] { background: var(--paper); }
@media (hover: hover) {
  .scroll-nav a:not([aria-current]):hover { text-decoration: underline; }
  .dock-more summary:hover { color: var(--olive); }
}
.scroll-nav.is-away:not(:focus-within) { opacity: 0; pointer-events: none; translate: 0 1rem; }
.dock-more { position: relative; border: 0 !important; }
.dock-more summary { color: var(--soft-ink); letter-spacing: .12em; }
.dock-more summary::after { content: none; }
.dock-links {
  position: absolute;
  right: -.35rem;
  bottom: calc(100% + .65rem);
  padding: .25rem;
  min-width: 10rem;
  border-radius: 1rem;
  background: var(--surface);
}
.dock-links a { justify-content: start; }

.home .hero {
  position: relative;
  isolation: isolate;
  height: max(33rem, 100svh);
  overflow: clip;
  background: var(--paper);
  color: var(--olive);
}
.home .hero-halo {
  z-index: -2;
  opacity: .23;
  mask-image: radial-gradient(ellipse at 50% 36%, black, transparent 74%);
}
.hero-reel {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  perspective: 960px;
  pointer-events: none;
  mask-image: linear-gradient(transparent 34%, #0005 58%, #000 75%, #000 97%, transparent);
}
.reel-card {
  --reel-width: clamp(16rem, 34vw, 31rem);
  position: absolute;
  top: 60%;
  left: 50%;
  width: var(--reel-width);
  aspect-ratio: 1.8;
  display: grid;
  place-items: center;
  background: #a4ab8f;
  transform: translate(-50%, var(--reel-y, 0px)) rotateX(var(--reel-tilt, 39deg)) rotateZ(var(--reel-angle, -11deg));
}
.reel-card:nth-child(2) { background: #a99a86; --reel-y: 15rem; --reel-angle: 9deg; }
.reel-card:nth-child(3) { background: #c1c3ba; --reel-y: 30rem; }
.reel-card:nth-child(4) { background: var(--sage); --reel-y: 45rem; }
.reel-card img { width: 83%; height: 84%; object-fit: contain; position: absolute; }

.home .hero-title {
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(94%, 42rem);
  transform: translate(-50%, calc(-50% + var(--hero-title-y, 0px)));
  opacity: var(--hero-title-opacity, 1);
  text-align: center;
  font: 400 clamp(2rem, 3.8vw, 3.25rem) / .99 Switzer, sans-serif;
  letter-spacing: -.062em;
}
.hero-title > span { display: block; }
.hero-mark { font-size: .78em; margin-inline: .1em; }

.studio-intro {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: 6rem;
  text-align: center;
}
.studio-intro h2, .studio-intro > p {
  max-width: 55rem;
  font-size: clamp(1.45rem, 2.55vw, 2.15rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.studio-intro > p { color: var(--soft-ink); margin-top: .55rem; }

.service-scene { padding: clamp(4rem, 10vh, 8rem) 0 clamp(5rem, 14vh, 10rem); text-align: center; }
.service-stage { position: relative; isolation: isolate; margin: 3.75rem 0 2rem; }
.service-list { list-style: none; padding: 0; }
.service-list li {
  display: grid;
  place-items: center;
  min-height: clamp(4.5rem, 11vh, 6.5rem);
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.service-list li span { display: block; transform: scale(var(--service-scale, 1)); opacity: var(--service-opacity, 1); }
.service-lines { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.service-lines i {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(57vw, 42rem);
  height: 1px;
  background: linear-gradient(90deg, #3d42244a, transparent 42% 58%, #3d42244a);
  transform: translateX(-50%) rotate(calc(var(--ray-angle, 17deg) + var(--service-rotation, 0deg)));
}
.service-lines i:nth-child(2) { --ray-angle: -11deg; }
.service-lines i:nth-child(3) { --ray-angle: -48deg; }

.featured { padding-block: 3rem 7rem; }
.featured-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 2.3rem; }
.featured-heading h2 { font-size: clamp(1.65rem, 2.6vw, 2.25rem); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem) .65rem; }
.work-card a { display: block; text-decoration: none; }
.work-caption { padding-bottom: .85rem; }
.work-caption :is(h2, h3) { font-size: 1.2rem; line-height: 1.1; letter-spacing: -.04em; }
.work-caption p { color: var(--soft-ink); font-size: .82rem; }
.work-image {
  position: relative;
  aspect-ratio: 1.44;
  overflow: hidden;
  background: var(--art-background);
}
.work-image--glamzx { --art-background: #fffff6; --art-width: 99%; }
.work-image--chiki { --art-background: #da2933; --art-width: 60%; }
.work-image--tiera { --art-background: #0a2b3c; --art-width: 62%; }
.work-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--art-width);
  height: auto;
  transform: translate(-50%, calc(-50% + var(--image-y, 0px))) scale(var(--image-scale, .96));
  mask-image:
    linear-gradient(90deg, transparent, black 12% 88%, transparent),
    linear-gradient(transparent 8%, black 19% 81%, transparent 92%);
  mask-composite: intersect;
}

.studio-profile { padding: 3rem 0 7rem; text-align: center; }
.studio-grid { width: min(100%, 54rem); margin: clamp(3rem, 9vh, 7rem) auto 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.studio-grid figure { margin: 0; overflow: hidden; }
.studio-grid img { aspect-ratio: 4 / 5; object-fit: cover; }
.studio-grid figure:nth-child(2) { margin-top: -1.75rem; }
.studio-grid figure:nth-child(3) { margin-top: .9rem; }

.home-questions { padding: 4rem 0 9rem; text-align: center; }
.question-stack { width: min(100%, 43rem); margin: 3.25rem auto 0; display: grid; gap: .65rem; text-align: left; }
.question-stack details { background: #e8e5da; border: 0; border-radius: 1rem; padding-inline: 1.25rem; }
.question-stack details:last-child { border: 0; }
.question-stack summary { font-size: 1.05rem; }
.question-stack details p { padding-right: 0; }

.question-stack .is-animating { overflow: clip; }

.home-footer .home-wrap { container-type: inline-size; }
.home-footer { padding: clamp(4rem, 12vh, 8rem) 0 4.75rem; text-align: center; background: #eae7dc; }
.home-footer h2 { margin-bottom: 1rem; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .8em 1.65em;
  border-radius: 10rem;
  background: #d6d4c6;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.06em;
  text-decoration: none;
}
.footer-cta:hover { background: var(--olive); color: var(--paper); }
.footer-contact, .footer-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-contact { margin: 2.5rem 0 1rem; }
.footer-socials a { text-decoration: none; background: var(--surface); padding: .5em 1em; border-radius: 3em; font-size: .875rem; }
.footer-socials a:hover { background: #d6d4c6; }
.footer-wordmark-window { margin-top: clamp(3rem, 9vh, 6rem); overflow: clip; }
.footer-wordmark-window a {
  display: block;
  transform: translateY(var(--wordmark-y, 0%));
  font-size: clamp(1.75rem, min(11vw, 14cqw), 11rem);
  line-height: .97;
  letter-spacing: -.095em;
  text-decoration: none;
}
.footer-wordmark-window a:focus-visible { transform: none; outline-offset: -2px; }
.home-footer small { display: block; color: var(--soft-ink); margin-top: 1rem; }

.has-motion [data-reveal] {
  opacity: .62;
  transform: translateY(1.75rem);
  transition: opacity .65s ease, transform .95s var(--ease);
}
.has-motion [data-reveal].is-revealed, .has-motion [data-reveal]:focus-within { opacity: 1; transform: none; }
.has-motion :is(.work-card, .studio-grid figure):nth-child(2) { transition-delay: .12s; }
.has-motion .studio-grid figure:nth-child(3) { transition-delay: .22s; }
.home.has-motion .hero-title > span { animation: hero-reveal 1.1s var(--ease) both; }
.home.has-motion .hero-title > span:nth-child(2) { animation-delay: .08s; }
.home.has-motion .hero-title > span:nth-child(3) { animation-delay: .16s; }
.home.has-motion .hero-title > span:nth-child(4) { animation-delay: .24s; }

@media (max-width: 640px) {
  .home-wrap { width: calc(100% - 2.25rem); }
  .home-header { gap: .85rem; }
  .home-brand { font-size: 1.35rem; }
  .header-contact { padding-inline: 1rem; }
  .scroll-nav { bottom: max(1rem, env(safe-area-inset-bottom)); }
  .scroll-nav a, .dock-more summary { padding-inline: .65rem; }
  .studio-intro { min-height: 75svh; padding-block: 4rem; }
  .work-grid { grid-template-columns: 1fr; }
  .studio-grid { gap: .35rem; }
  .studio-grid figure:nth-child(2) { margin-top: -.85rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(:is(.home, .inner-page)) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-nav { transition: none; }
}
