/* Taylor Powers. Editorial: the name over a framed showreel that grows to full screen, then a white page with one typeface, an asymmetric 12-column grid, large photography that unveils as you scroll, and captions set like a magazine. */
:root {
  --bg: #fff;
  --paper: #f5f4f1;
  --fg: #0d0d0d;
  --muted: #707070;
  --line: #e2e1dd;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --g: 20px;
  --col: 24px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --g: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--fg); color: #fff; }
i { font-style: italic; }

.wrap { max-width: 1600px; margin: 0 auto; padding-inline: var(--g); }
.label { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Header: white over the hero, then dark on the page */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 26px var(--g); color: var(--fg); transition: color .4s, background .4s, padding .4s; }
.top.on-video { color: #fff; }
.top.on-page { color: var(--fg); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); padding-block: 18px; }
.name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.top nav { display: flex; gap: 32px; font-size: 14px; }
.top nav a { opacity: .72; transition: opacity .2s; }
.top nav a:hover { opacity: 1; }
@media (max-width: 640px) { .top nav { gap: 18px; font-size: 13px; } .top nav a:nth-child(3) { display: none; } }

/* Hero: the name over a framed reel; scrolling grows the frame to full screen. Only transform and opacity animate, so it stays on the GPU. */
.reel { position: relative; height: 220vh; }
.reel-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.reel-name { position: absolute; z-index: 1; left: var(--g); right: var(--g); top: 13vh; margin: 0; font-weight: 500; font-size: clamp(64px, 15.6vw, 280px); line-height: .84; letter-spacing: -.055em; white-space: nowrap; transform: translate3d(0, var(--ny, 0px), 0); opacity: var(--no, 1); will-change: transform, opacity; }
.reel-name span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.reel-name span + span { animation-delay: .1s; }
.reel-name { overflow: hidden; padding-bottom: .05em; }
@keyframes rise { to { transform: none; } }
.reel-frame { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #0d0d0d; transform-origin: 50% 100%; transform: translate3d(0, var(--fy, 0px), 0) scale(var(--fs, .5)); will-change: transform; }
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.6)); opacity: var(--shade, 0); }
.reel-intro { position: absolute; z-index: 3; left: var(--g); right: var(--g); bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; color: var(--fg); font-size: clamp(15px, 1.3vw, 18px); opacity: var(--io, 1); }
.reel-intro p { margin: 0; max-width: 34ch; }
.scroll-cue { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 28px; background: currentColor; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.reel-foot { position: absolute; z-index: 3; left: var(--g); right: var(--g); bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); color: #fff; opacity: var(--fo, 0); transform: translate3d(0, calc((1 - var(--fo, 0)) * 16px), 0); pointer-events: none; }
.reel-foot.live { pointer-events: auto; }
.hero-line { margin: 0; font-size: clamp(16px, 1.5vw, 20px); max-width: 36ch; }
.hero-play { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.5); transition: border-color .3s; }
.hero-play:hover { border-color: #fff; }
.hero-play .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.reel.static { height: auto; }
.reel.static .reel-name, .reel.static .reel-intro { display: none; }
.reel.static .reel-frame { transform: none; }
.reel.static .reel-stage { --shade: 1; --fo: 1; }
.reel.static .reel-foot { pointer-events: auto; }
@media (max-width: 640px) {
  .reel-name { white-space: normal; font-size: 23vw; top: 12vh; }
  .reel-name span { display: block; }
  .reel-intro .scroll-cue { display: none; }
}

/* Statement */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); padding-top: 160px; padding-bottom: 40px; }
.statement .label { grid-column: 1 / span 3; padding-top: 14px; }
.statement .big { grid-column: 4 / -1; margin: 0; font-size: clamp(28px, 3.5vw, 56px); line-height: 1.12; letter-spacing: -.028em; font-weight: 400; text-wrap: pretty; }
.statement .big span { color: var(--muted); }
@media (max-width: 900px) { .statement { padding-top: 96px; grid-template-columns: minmax(0, 1fr); row-gap: 20px; } .statement > * { grid-column: 1 / -1 !important; } }

/* Work */
.work { padding-top: 140px; }
.section-head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--fg); margin-bottom: 72px; }
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); margin-bottom: 160px; align-items: end; }
.media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--paper); }
.media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
.media.para img { height: 116%; margin-top: -8%; will-change: transform; }
.media.studio { background: #fff; }
.media.studio img { object-fit: contain; padding: 6%; }
.case-text { display: grid; gap: 14px; align-content: end; }
.case-text .no { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.case-text h2 { margin: 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
.case-text p { margin: 0; color: #3a3a3a; max-width: 42ch; }
.scope { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); }

.case-a .media { grid-column: 1 / span 8; aspect-ratio: 3 / 2; }
.case-a .case-text { grid-column: 10 / -1; }
.case-b .media { grid-column: 5 / -1; grid-row: 1; aspect-ratio: 3 / 2; }
.case-b .case-text { grid-column: 1 / span 3; grid-row: 1; }
.case-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); margin-bottom: 160px; }
.case-pair .case { margin: 0; display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.case-pair .case:first-child { grid-column: 1 / span 6; }
.case-pair .case.offset { grid-column: 8 / -1; margin-top: 200px; }
.case-c .media { aspect-ratio: 4 / 3; }
.case-wide { display: block; }
.case-wide .media { aspect-ratio: 21 / 9; margin-inline: calc(var(--g) * -1); width: calc(100% + var(--g) * 2); }
.case-wide .case-text.row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); margin-top: 28px; align-items: start; }
.case-wide .row .no { grid-column: 1 / span 1; }
.case-wide .row h2 { grid-column: 2 / span 4; }
.case-wide .row p { grid-column: 7 / span 4; }
.case-wide .row .scope { grid-column: 7 / span 4; }
@media (max-width: 900px) {
  .case, .case-pair { display: flex; flex-direction: column; gap: 22px; margin-bottom: 96px; align-items: stretch; }
  .case-pair { gap: 96px; }
  .case-pair .case.offset { margin-top: 0; }
  .case .media, .case-c .media { aspect-ratio: 4 / 3; }
  .case-wide .media { aspect-ratio: 16 / 10; }
  .case-wide .case-text.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .case-wide .row > * { grid-column: 1 !important; }
}

/* Figures band */
.figures-band { background: var(--paper); padding-block: 96px; }
.figures { margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col); }
.figures div { border-top: 1px solid var(--fg); padding-top: 18px; }
.figures dt { font-size: clamp(44px, 5.4vw, 92px); font-weight: 400; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures dd { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 22ch; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }

/* Sections */
.about, .clients, .experience, .film, .contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); margin-top: 160px; }
.about > .label, .clients > .label, .experience > .label, .film > .label, .contact > .label { grid-column: 1 / span 3; padding-top: 4px; }
@media (max-width: 900px) {
  .about, .clients, .experience, .film, .contact { margin-top: 112px; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .about > *, .clients > *, .experience > *, .film > *, .contact > * { grid-column: 1 / -1 !important; }
}
.about-body { grid-column: 4 / span 5; }
.about-body p { margin: 0 0 1.2em; }
.capabilities { grid-column: 10 / -1; display: grid; gap: 14px; align-content: start; }
.capabilities ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.capabilities li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

.clients ul { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: clamp(24px, 2.8vw, 44px); font-weight: 400; letter-spacing: -.03em; line-height: 1.22; }
.clients li:not(:last-child)::after { content: "/"; margin: 0 .38em; color: #c4c3bf; font-weight: 300; }

.rows { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.rows li { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--col); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .4s var(--ease); }
.rows li:hover { padding-left: 10px; }
.rows .when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.rows .org { font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.rows .role { color: var(--muted); }
.credits li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 80px; }
.link { justify-self: end; font-size: 14px; border-bottom: 1px solid currentColor; line-height: 1.25; }
@media (max-width: 640px) {
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rows li:hover { padding-left: 0; }
  .credits li { grid-template-columns: minmax(0, 1fr) auto; }
  .credits .org, .credits .role { grid-column: 1; }
  .credits .link, .credits li > span:empty { grid-column: 2; grid-row: 1; }
}

.contact-body { grid-column: 4 / -1; }
.contact-line { margin: 0 0 20px; color: var(--muted); }
.email { display: inline-block; font-size: clamp(24px, 5.4vw, 104px); font-weight: 400; letter-spacing: -.05em; line-height: 1; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: .08em; transition: background-size .7s var(--ease); }
.email:hover { background-size: 100% 2px; }
@media (max-width: 900px) { .email { font-size: 7.2vw; } }
.social { margin: 36px 0 0; display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.social a { color: var(--fg); border-bottom: 1px solid currentColor; }

/* Footer */
.foot { margin-top: 200px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { margin: 0; padding: 40px var(--g) 0; font-size: 16vw; line-height: .8; letter-spacing: -.06em; font-weight: 500; white-space: nowrap; color: var(--fg); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }
.foot-row a:hover { color: var(--fg); }

/* Scroll reveal */
.js .reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }
.js .fade { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1.2s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }

/* Index with floating preview */
.index { padding-top: 40px; }
.index .section-head { margin-bottom: 0; }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list a { display: grid; grid-template-columns: 60px minmax(0, 1.6fr) minmax(0, 1fr) 110px; gap: var(--col); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .5s var(--ease); }
.i-no, .i-y { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.i-y { text-align: right; }
.i-t { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.03em; line-height: 1.1; font-weight: 400; }
.i-c { color: var(--muted); font-size: 15px; }
.index-list:hover a { color: #b9b8b4; }
.index-list:hover a .i-no, .index-list:hover a .i-y, .index-list:hover a .i-c { color: #cfcecb; }
.index-list a:hover { color: var(--fg); padding-left: 14px; }
.index-list a:hover .i-c, .index-list a:hover .i-no, .index-list a:hover .i-y { color: var(--muted); }
@media (max-width: 760px) { .index-list a { grid-template-columns: 36px minmax(0, 1fr) auto; } .i-c { display: none; } }
.preview { position: fixed; z-index: 25; left: 0; top: 0; width: 340px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(-100px, -100px, 0) scale(.85); transition: opacity .35s ease; }
.preview.show { opacity: 1; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* Cursor label (fine pointers only) */
.cursor { position: fixed; z-index: 40; left: 0; top: 0; pointer-events: none; transform: translate3d(-100px, -100px, 0); }
.cursor span { display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: #fff; color: var(--fg); font-size: 13px; font-weight: 500; letter-spacing: .02em; transform: scale(0); transition: transform .45s var(--ease); }
.cursor.show span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { [data-cursor] { cursor: none; } }

/* Player */
.player { width: min(1280px, 92vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.player::backdrop { background: rgba(10, 10, 10, .94); }
.player .frame { aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; display: block; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 14px; color: #fff; }
.player-bar button { color: #fff; border-bottom: 1px solid currentColor; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel-video { display: none; }
  .reel-frame { background: #0d0d0d url(video/reel-poster.jpg) center / cover; }
  .js .reveal-img { clip-path: none; }
  .js .fade { opacity: 1; transform: none; }
}
