:root {
  --studio-width: 1440px;
  --gutter: clamp(16px, 2.3vw, 32px);
  --paper: #f1efe9;
  --lift: cubic-bezier(.16,1,.3,1);
}
.studio-shell, .work.section {
  width: min(100%, var(--studio-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header, .header.scrolled { padding: 14px max(var(--gutter), calc((100vw - 1376px)/2)); }
.desktop-links { display: flex; align-items: center; gap: 2rem; }
.desktop-links a { position: relative; overflow: hidden; }
.desktop-links a::after { content: ''; display: block; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.desktop-links a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.header-right { display: none; }
.hero.studio-hero {
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 100svh; padding: 112px 0 36px; text-align: left;
  background: radial-gradient(ellipse at 93% 4%, #203219 0%, transparent 43%), #0b0b0c;
}
.studio-hero::after { display: none; }
.hero.studio-hero h1 {
  margin: 0; max-width: none; font: 600 clamp(48px, 9.9vw, 157px)/.91 Annam, Arial, sans-serif;
  letter-spacing: -.06em; color: var(--paper); animation: none;
}
.studio-hero h1 .mask { display: block; overflow: hidden; padding-bottom: .07em; color: inherit; text-shadow: none; }
.mask b { display: flex; align-items: center; gap: .16em; font-weight: inherit; animation: headline-rise 1.2s var(--lift) backwards; }
.mask:nth-child(2) b { animation-delay: 80ms; }
.mask:nth-child(3) b { animation-delay: 160ms; }
.mask .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.mask em { font-style: normal; color: var(--green); }
@keyframes headline-rise { from { transform: translateY(112%); } }
.image-pill { position: relative; display: inline-block; width: 1.38em; height: .58em; border-radius: 100px; overflow: hidden; background: var(--green); }
.image-pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: pill-frame 5.4s infinite; }
.image-pill img:nth-child(2) { animation-delay: 1.8s; }
.image-pill img:nth-child(3) { animation-delay: 3.6s; }
@keyframes pill-frame { 0%,28% { opacity: 1; } 33%,100% { opacity: 0; } }
.hero-caption { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: clamp(32px,4vw,56px); border-top: 1px solid #ffffff26; padding-top: 24px; animation: caption-in 1s .5s var(--lift) backwards; }
@keyframes caption-in { from { opacity: 0; transform: translateY(20px); } }
.hero .hero-caption p { max-width: 38em; margin: 0; line-height: 1.5; }
.hero-caption strong { color: var(--paper); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.hero-buttons a { display: inline-block; padding: 13px 22px; border-radius: 30px; background: var(--green); color: #111; }
.hero-buttons a + a { background: transparent; color: var(--paper); border: 1px solid #ffffff45; }
.capabilities-strip { overflow: hidden; padding-block: 20px; border-block: 1px solid var(--line); }
.capabilities-strip > div { display: flex; width: max-content; animation: strip-loop 32s linear infinite; }
.capabilities-strip:hover > div { animation-play-state: paused; }
.capabilities-strip span { white-space: nowrap; font: 600 clamp(28px,4vw,56px)/1 Annam, sans-serif; letter-spacing: -.04em; }
.capabilities-strip span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px #aaa; }
.capabilities-strip span::after { content: '✳'; margin-inline: .65em; color: var(--green); -webkit-text-stroke: 0; }
@keyframes strip-loop { to { transform: translateX(-50%); } }
.work.section { overflow: visible; }
.work .section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 6vw; align-items: end; max-width: none; margin-bottom: 48px; text-align: left; }
.work .section-intro .eyebrow { grid-column: 1/-1; }
.work .section-intro :is(h2,p) { margin: 0; }
.work-index { margin-bottom: clamp(58px,8vw,120px); border-top: 1px solid var(--line); }
.work-index a { display: grid; grid-template-columns: 3em 1fr auto 3em; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 20px 0; transition: padding .35s, color .35s; }
.work-index a:is(:hover,:focus-visible) { color: var(--green); padding-inline: 12px; }
.work-index strong { font: 500 clamp(22px,3.5vw,54px)/1.05 Annam, sans-serif; letter-spacing: -.045em; }
.work-index small { font: 14px monospace; }
.work-index i { justify-self: end; font-style: normal; }
.work .project {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; position: sticky; top: 96px;
  margin: 0 0 40px; min-height: calc(100svh - 128px); align-items: stretch;
  border: 1px solid var(--line); border-radius: 28px; background: #151517; overflow: hidden;
  transform-origin: center top; transform: scale(var(--card-scale,1)); filter: brightness(var(--card-light,1));
}
.work .project-copy { align-self: center; padding: clamp(26px,4vw,56px); }
.work .project-visual { order: 0; border-radius: 0; min-height: 340px; width: 100%; aspect-ratio: auto; translate: none; transform: none; }
.work .project-visual:hover { transform: none; }
.work .project-visual img { position: absolute; inset: 0; }
.directory { padding-block: clamp(64px,9vw,140px); }
.directory nav { display: grid; }
.directory a { border-top: 1px solid var(--line); padding: 16px 0; font-size: clamp(20px,2.6vw,38px); }
.directory a:is(:hover,:focus-visible) { color: var(--green); }
.index-preview { position: fixed; z-index: 50; pointer-events: none; width: min(25vw,340px); aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; transform: translate(-50%,-50%) rotate(-3deg); }
.motion-paused :is(.mask b,.image-pill img,.hero-caption,.capabilities-strip > div) { animation: none; }
.motion-paused .image-pill img:first-child { opacity: 1; }
@media (max-width: 1000px), (max-height: 620px) {
  .work .project { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; transform: none; filter: none; }
  .work .project-visual { order: -1; aspect-ratio: 16/9; min-height: 0; }
}
@media (max-width: 800px) {
  .desktop-links { display: none; }
  .header-right { display: flex; }
  .hero-caption { flex-direction: column; align-items: start; }
  .work .section-intro { grid-template-columns: 1fr; }
  .work-index a { grid-template-columns: 2em 1fr auto; gap: 8px; }
  .work-index small:nth-of-type(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero .mask b,.image-pill img,.hero-caption,.capabilities-strip > div { animation: none; }
  .image-pill img:first-child { opacity: 1; }
}
.footer-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.footer-controls :is(.floating-contact,.motion-control) { position: static; font-size: 14px; }
.contact .section-intro { max-width: none; }
.contact-title { position: relative; display: inline-block; font-size: clamp(64px,14vw,210px); letter-spacing: -.065em; line-height: .95; }
.contact-title span { position: absolute; inset: 0; color: var(--green); clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--lift); }
.contact-title:is(:hover,:focus-visible) span { clip-path: inset(0); }
.directory a { position: relative; isolation: isolate; transition: padding .3s, color .3s; }
.directory a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--lift); }
.directory a:is(:hover,:focus-visible) { padding-inline: 16px; color: #111; }
.directory a:is(:hover,:focus-visible)::before { transform: scaleY(1); }
@media (max-width: 420px) {
  .hero.studio-hero h1 { font-size: clamp(38px,11.6vw,49px); }
}
