/* site.css — layout. Effects/tokens live in fx.css (locked). */
* { box-sizing: border-box; }
a { color: inherit; }
img, video { max-width: 100%; }
.wrap { padding: 0 4vw; }
.section { padding: 18vh 4vw 0; }
.body { font-size: 1.05rem; line-height: 1.5; max-width: 46ch; color: rgba(242,237,228,.82); }

/* nav pill */
.nav { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 1.1rem;
  padding: .45rem .55rem .45rem .9rem; border-radius: 999px; background: rgba(22,22,22,.72); backdrop-filter: blur(14px);
  border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.nav img { width: 18px; height: 18px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--fx-ink); }
.nav .brand { color: var(--fx-ink); display: flex; gap: .5rem; align-items: center; }
.nav .pill { color: #111; }

/* hero */
.hero { min-height: 100vh; position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: 6.5rem 4vw 2.5rem; }
.hero h1 { position: relative; z-index: 2; margin-top: 8vh; mix-blend-mode: difference; }
.hero .hero-media { position: absolute; right: 4vw; top: 7vh; width: min(28vw, calc((100vh - 17rem) * .8)); aspect-ratio: 4/5; z-index: 1; }
.hero .intro { align-self: end; justify-self: start; max-width: 40ch; margin: 0 0 2.5rem; font-size: 1.1rem; line-height: 1.45; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.stats strong { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: .5rem 0 .3rem; }
.stats p { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--muted); }

/* work index */
.work-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 3rem; }
.row { display: grid; grid-template-columns: 4rem minmax(14rem, 1.1fr) 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.6rem 0; border-top: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .num { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.row h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; transition: color .25s; }
.row .tags { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.row .strip { display: flex; gap: .5rem; transition: transform .7s var(--ease); }
.row .strip .fx-media { height: 8.5vw; flex: none; }
.row .strip .w { aspect-ratio: 4/3; } .row .strip .t { aspect-ratio: 9/16; } .row .strip .x { aspect-ratio: 16/9; } .row .strip .sq { aspect-ratio: 1/1; }
.row .strip .is-contain > img { object-fit: contain; padding: .65rem; background: #161616; }
.row:hover h3 { color: var(--accent); }
.row:hover .strip { transform: translateX(-2rem); }
.row--feature .strip .fx-media { height: 16vw; }
.row--feature { padding: 2.4rem 0; }

@media (max-width: 760px) {
  .nav .links { display: none; }
  .hero { padding-top: 5rem; }
  .hero .hero-media { position: relative; right: auto; top: auto; width: 100%; margin: 2rem 0; }
  .hero .intro { justify-self: start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 2.5rem 1fr; }
  .row .tags, .row .plus { display: none; }
  .row .strip { grid-column: 1 / -1; overflow-x: auto; }
  .row .strip .fx-media { height: 30vw; }
}

/* strip tiles for systems without footage (numbers / waveform) */
.row .strip .fx-media { display: block; }
.tile { display: flex !important; flex-direction: column; justify-content: space-between; padding: .7rem; background: #1e1e1e; }
.tile-k { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; color: var(--muted); }
.tile-v { font-size: clamp(1.4rem, 2.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.row:hover .tile-v { color: var(--accent); }
.wave { background: #1e1e1e; color: var(--muted); padding: .6rem; transition: color .25s; }
.row:hover .wave, .wave:hover { color: var(--accent); }
.wave svg { width: 100%; height: 100%; display: block; }
.wave rect { transform-box: fill-box; transform-origin: center; animation: eq 1.1s var(--ease) infinite alternate; }
.wave rect:nth-child(2n) { animation-delay: -.3s; } .wave rect:nth-child(3n) { animation-delay: -.6s; } .wave rect:nth-child(5n) { animation-delay: -.9s; }
@keyframes eq { to { transform: scaleY(.25); } }
@media (prefers-reduced-motion: reduce) { .wave rect { animation: none; } }
.row .strip { scrollbar-width: none; } .row .strip::-webkit-scrollbar { display: none; }

/* case pages */
.case-head { padding: 7rem 4vw 3rem; display: grid; gap: 1.2rem; justify-items: start; }
.case-sub { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--muted); max-width: 40ch; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; }
.case-hero { margin: 0 4vw; aspect-ratio: 16/9; }
.case-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; padding: 14vh 4vw 0; }
.case-text p { font-size: 1.15rem; line-height: 1.55; max-width: 52ch; margin: .6rem 0 2.4rem; }
.spec { margin: 0; }
.spec dt.label::after { content: '\00a0]'; }
.spec div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.spec dd { margin: 0; line-height: 1.45; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; padding: 14vh 4vw 0; }
.case-grid .fx-media { aspect-ratio: 16/10; }
.case-links { display: flex; flex-wrap: wrap; gap: .6rem; padding: 4rem 4vw 0; }
.next { display: flex; justify-content: space-between; align-items: end; margin: 18vh 4vw 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-decoration: none; }
.next:hover .display { color: var(--accent); }
@media (max-width: 760px) {
  .case-body { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: .3rem; }
}
.case-grid .tile { aspect-ratio: 16/10; padding: 1.2rem; }
.case-grid .tile .tile-v { font-size: clamp(2rem, 4vw, 4rem); }
.case-hero.tile .tile-v, .tile--hero .tile-v { font-size: clamp(5rem, 16vw, 15rem); color: var(--accent); }
.case-hero.wave { padding: 3vw; }

/* day */
.day { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 1rem; }
.day > div { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; align-content: start; gap: .4rem; }
.day p { margin: 0 0 .6rem; font-size: .92rem; line-height: 1.45; color: rgba(242,237,228,.78); }
/* hire */
.hire { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-top: 4rem; }
.lead { font-size: 1.25rem; line-height: 1.4; margin: .8rem 0 2rem; max-width: 36ch; }
/* marquee */
.marquee { margin-top: 18vh; overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; animation: mq 50s linear infinite; font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; margin-top: 4rem; }
.direct { display: grid; align-content: start; gap: .8rem; }
.big-link { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -.03em; text-decoration: none; width: max-content; }
.big-link:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
.form label { display: grid; gap: .45rem; }
.form .full, .form .who, .form button { grid-column: 1 / -1; }
.form input:not([type=radio]), .form select, .form textarea { font: inherit; color: var(--fx-ink); background: rgba(242,237,228,.05); border: 0; border-bottom: 1px solid var(--line);
  padding: .75rem .6rem; border-radius: 0; transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: rgba(242,237,228,.08); }
.form select option, .form select optgroup { background: #1e1e1e; }
.form ::placeholder { color: #6b6863; }
.who { display: flex; gap: .5rem; }
.who .pill { cursor: pointer; display: inline-flex; }
.who input { position: absolute; opacity: 0; }
.who .pill:has(input:checked) { background: var(--accent); color: #111; }
.form button { justify-self: start; border: 0; cursor: pointer; font-size: .85rem; padding: .8rem 1.4rem; }
.hp { position: absolute; left: -9999px; }
.sent { color: var(--accent); font-family: var(--mono); }
/* footer */
.footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 14vh 4vw 3rem; margin-top: 10vh; border-top: 1px solid var(--line); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
@media (max-width: 760px) {
  .hire, .contact, .form { grid-template-columns: 1fr; }
  .socials { margin-left: 0; }
}
@media (max-width: 1000px) { .day { grid-template-columns: repeat(6, 15rem); } }
.case-hero.yt { aspect-ratio: 16/9; background: #000; }
.case-hero.yt iframe { width: 100%; height: 100%; border: 0; display: block; }

/* mobile form fit: inputs must be allowed to shrink inside the grid */
.contact > *, .form > *, .form label { min-width: 0; }
.form input:not([type=radio]), .form select, .form textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.form select { text-overflow: ellipsis; }
@media (max-width: 760px) {
  .section { padding-top: 12vh; }
  .big-link { font-size: 1.6rem; width: auto; overflow-wrap: anywhere; }
  .who { flex-wrap: wrap; }
  .form input, .form select, .form textarea { font-size: 16px; } /* stops iOS zoom on focus */
  .hero h1 { margin-top: 4vh; }
}
.nav .brand, .nav .pill { white-space: nowrap; }
