@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400..900&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f4f0;
  --ink: #151515;
  --muted: #5e5e5b;
  --line: #cdcdc8;
  --dark: #171717;
  --dark-line: #3a3a37;
  --pad: clamp(1.15rem, 4vw, 5rem);
  --ease: cubic-bezier(.19, 1, .22, 1);
  font-family: 'Inter Tight', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: #aaa; color: #111; }

.page-width { width: min(100% - 2 * var(--pad), 1500px); margin-inline: auto; }
.label { font-size: .8rem; font-weight: 650; line-height: 1.35; letter-spacing: .115em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .7rem 1rem; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.progress { position: fixed; z-index: 9; inset: 0 0 auto; height: 3px; background: #999; mix-blend-mode: difference; transform: scaleX(var(--page-progress, 0)); transform-origin: left; pointer-events: none; }

.header { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-size: 1.54rem; font-weight: 750; letter-spacing: -.06em; }
.header nav { display: flex; align-items: center; gap: clamp(1.05rem, 2.75vw, 2.9rem); font-size: .95rem; font-weight: 650; }
.header nav > a:not(.nav-contact):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { padding: .67rem 1.05rem; border: 1px solid var(--ink); border-radius: 100px; transition: background .2s, color .2s; white-space: nowrap; }
.nav-contact:hover { background: var(--ink); color: var(--paper); }

.hero-poster { position: relative; isolation: isolate; height: clamp(480px, 76svh, 820px); overflow: hidden; border: 1px solid #d0d0cc; background: radial-gradient(ellipse at 50% 40%, #f2f2ef 0%, #e8e8e4 42%, #d4d4d1 100%); }
.poster-texture { position: absolute; z-index: 4; inset: 0; background: url('assets/grain.png') repeat; opacity: .23; mix-blend-mode: multiply; pointer-events: none; }
.poster-index { position: absolute; z-index: 5; inset: 1.35rem clamp(1rem, 2vw, 2rem) auto; display: flex; justify-content: space-between; gap: .5rem; }
.poster-rule { position: absolute; z-index: -1; inset: 3.3rem clamp(1rem, 2vw, 2rem) 2rem; border-block: 1px solid #27272725; }
.poster-rule::after { content: ''; position: absolute; inset: 0 25% 0 auto; width: 50%; border-inline: 1px solid #27272719; }
.hero-name { position: absolute; z-index: 0; inset: 21% 0 auto; text-align: center; white-space: nowrap; font-weight: 900; font-size: min(15.8vw, 16.2rem); line-height: .86; letter-spacing: -.035em; }
.portrait { position: absolute; z-index: 2; inset: 7% 0 0; pointer-events: none; }
.portrait img { position: absolute; inset: auto auto 0 50%; width: auto; max-width: none; height: 100%; transform: translateX(-50%); object-fit: contain; filter: grayscale(1) contrast(1.13) brightness(1.075); mask-image: linear-gradient(#000 0 51%, #000e 66%, transparent 99%), linear-gradient(90deg, transparent 0%, #000 11% 89%, transparent 100%); mask-composite: intersect; }
.poster-caption { position: absolute; z-index: 5; left: clamp(1rem, 2vw, 2rem); bottom: clamp(2.8rem, 6.5vh, 4.3rem); }
.hero-role { font-size: clamp(2.05rem, 4vw, 4.5rem); font-weight: 790; line-height: .91; letter-spacing: -.048em; }
.hero-role span { font-weight: 500; }
.poster-cross { position: absolute; z-index: 5; right: clamp(1rem, 2vw, 2rem); bottom: 3.2rem; width: 24px; height: 24px; background: linear-gradient(var(--ink),var(--ink)) center / 1px 24px no-repeat, linear-gradient(var(--ink),var(--ink)) center / 24px 1px no-repeat; }
.hero-rail { display: flex; align-items: center; min-height: 73px; }
.scroll-link { display: inline-flex; align-items: center; gap: .67rem; }
.scroll-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.scroll-icon { display: inline-block; position: relative; width: 15px; height: 22px; border: 1px solid currentColor; border-radius: 20px; }
.scroll-icon::after { content: ''; position: absolute; width: 3px; height: 3px; inset: 5px auto auto 5px; background: currentColor; border-radius: 50%; animation: scroll-dot 1.8s ease-in-out 3; }
@keyframes scroll-dot { 0%, 100% { transform: translateY(0); } 55% { transform: translateY(7px); } }

.type-band { overflow: clip; border-block: 1px solid #cececa; background: #dededa; padding-block: clamp(1.2rem, 4vw, 3.8rem); }
.type-row { display: flex; min-width: 0; overflow: visible; font-size: min(9.8vw, 9.7rem); font-weight: 850; line-height: .91; letter-spacing: -.065em; text-transform: uppercase; white-space: nowrap; }
.type-row + .type-row { justify-content: flex-end; margin-top: .11em; color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.type-row span { display: block; }
.type-row:first-child span { padding-inline-start: .5em; }
.type-row:first-child { --band-offset: -32vw; }
.type-row:last-child { --band-offset: 36vw; }
.motion .type-row span { transform: translateX(calc((1 - var(--band-progress, 1)) * var(--band-offset))); }

.work { background: var(--dark); color: var(--paper); padding-block: clamp(4.25rem, 8vw, 8rem); }
.section-head { margin-bottom: clamp(2.2rem, 4.5vw, 4.5rem); }
.section-title, .contact-title { font-weight: 800; font-size: clamp(3rem, 8.45vw, 9.2rem); line-height: .98; letter-spacing: -.048em; }
.eyebrow { margin-bottom: .83rem; color: var(--muted); }
.work .eyebrow, .contact .eyebrow { color: #bcbcb5; }
.project-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-top: 1px solid var(--dark-line); padding-block: 1.25rem 1.4rem; }
.project-info h3 { font-size: clamp(2.1rem, 4.5vw, 4.6rem); line-height: .98; letter-spacing: -.047em; font-weight: 760; }
.project-info .eyebrow { margin-bottom: .5rem; }
.project-link { display: inline-flex; align-items: center; gap: .7rem; width: max-content; flex-shrink: 0; padding: .25rem 0 .38rem; font-size: 1rem; font-weight: 650; border-bottom: 1px solid #777; transition: border-color .2s; }
.project-link:hover { border-color: currentColor; }
.link-dot { border: 1px solid currentColor; border-radius: 50%; display: inline-block; width: 8px; height: 8px; transition: background .2s; }
.project-link:hover .link-dot { background: currentColor; }
.studio-reel { color-scheme: dark; border: 1px solid #51514f; border-radius: 10px; overflow: hidden; background: #222; }
.reel-bar { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(.75rem, 2vw, 1.4rem); color: #d8d8d2; }
.reel-time { font-size: .83rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.reel-view { background: #101615; }
.reel-view video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.reel-view.is-compact video { aspect-ratio: 20 / 17; }
.reel-chapters:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reel-chapters button { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .2rem .7rem; min-height: 48px; padding: .8rem clamp(.65rem, 2vw, 1.4rem); border: 0; border-top: 1px solid #51514f; text-align: left; font-size: .95rem; font-weight: 650; background: transparent; color: #dededa; cursor: pointer; }
.reel-chapters button + button { border-left: 1px solid #51514f; }
.reel-chapters button[aria-current="true"] { border-top-color: #ddd; background: #e5e5e0; color: var(--ink); }
.reel-chapters button:not([aria-current="true"]):hover { background: #363634; }
.reel-chapters button:focus-visible, .reel-view video:focus-visible { outline-offset: -3px; }
.reel-chapters span { font-size: .76rem; font-weight: 600; opacity: .74; }
.reel-error { padding: 1rem; }
.reel-error a { text-decoration: underline; }

.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: end; padding-block: clamp(5.5rem, 10vw, 10rem); }
.about-copy { container-type: inline-size; }
.about .section-title { font-size: clamp(3.15rem, 7.5vw, 8.5rem); }
.about-intro { margin-top: 1.2rem; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.22; letter-spacing: -.02em; }
.about-lead, .about-note { display: block; }
.about-lead { font-size: min(1em, 4.75cqi); white-space: nowrap; }
.about-note { max-width: 30ch; }
.about-details { border-top: 1px solid var(--line); }
.about-details div { display: grid; grid-template-columns: 75px auto; align-items: baseline; gap: .75rem; padding-block: .92rem; border-bottom: 1px solid var(--line); }
.about-details dt { color: var(--muted); }
.about-details dd { font-size: 1rem; font-weight: 600; }
.about-details a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact { background: #151515; color: var(--paper); overflow: hidden; isolation: isolate; }
.contact-inner { position: relative; padding-top: clamp(4.5rem, 8.2vw, 8rem); }
.contact-title { font-size: clamp(3.9rem, 15vw, 15rem); }
.contact-orbit { position: absolute; z-index: -1; width: min(73vw, 63rem); aspect-ratio: 1; right: -17%; top: -65%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 42px, #adada41d 43px 44px); mask-image: linear-gradient(110deg, transparent 20%, #000 90%); transform: translateY(calc(var(--contact-travel, 0) * 85px)); pointer-events: none; }
.contact-links { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); margin-block: clamp(1.75rem, 3.8vw, 3rem) clamp(4rem, 7vw, 7rem); }
.contact-links a { display: grid; gap: .29rem; min-width: min(100%, 14rem); padding: .85rem 1.1rem; border: 1px solid #64645e; transition: background .2s, color .2s, border-color .2s; }
.contact-links a:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.contact-links strong { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 650; letter-spacing: -.02em; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; border-top: 1px solid var(--dark-line); color: #bcbcb6; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.word, .glyph { display: inline-block; }
.word { white-space: nowrap; }
@property --typed-letters {
  syntax: "<integer>";
  inherits: true;
  initial-value: 7;
}
.motion .brand { animation: brand-type 5s steps(7, end) infinite; }
.motion .brand:is(:hover, :focus-visible) { animation: none; }
.motion .brand .glyph { opacity: clamp(0, calc(var(--typed-letters, 7) - var(--order)), 1); }
.motion .hero-name { transform: translateY(calc(var(--hero-lift, 0) * -1 * clamp(22px, 3.5vw, 48px))); }
.motion .poster-caption { animation: caption-enter .95s .13s var(--ease) both; }
.motion [data-reveal="drop"] { clip-path: inset(-.09em -.33em -.19em); }
.motion [data-reveal].reveal-pending > span { opacity: 0; }
.motion [data-reveal]:not([data-reveal="drop"]) > span { display: inline-block; }
.motion [data-reveal="drop"].reveal-active .glyph { animation: letter-land .68s both; animation-delay: calc(var(--order) * 27ms); }
.motion [data-reveal="label"].reveal-active > span { animation: label-land .48s var(--ease) both; }
.motion [data-reveal="wipe"].reveal-active > span { animation: heading-wipe .72s cubic-bezier(.22, .75, .26, 1) both; }
.motion [data-reveal="rise"].reveal-active > span { animation: heading-rise .78s var(--ease) both; }
.motion .reveal { opacity: calc(.4 + var(--settle, 1) * .6); transform: translateY(calc((1 - var(--settle, 1)) * 1.7rem)); }
.motion .reveal:focus-within { opacity: 1; transform: none; }
@keyframes brand-type {
  0% { --typed-letters: 0; }
  18%, 77% { --typed-letters: 7; }
  91%, 100% { --typed-letters: 0; }
}
@keyframes letter-land {
  0% { opacity: 0; transform: translateY(-.62em) rotate(calc(var(--swing) * 10deg)); animation-timing-function: cubic-bezier(.56, .03, .68, .98); }
  62% { opacity: 1; transform: translateY(.058em) rotate(calc(var(--swing) * -1.65deg)); animation-timing-function: ease-out; }
  81% { transform: translateY(-.025em); }
  100% { transform: none; }
}
@keyframes label-land { from { opacity: 0; transform: translateY(-.7rem); } to { opacity: 1; transform: none; } }
@keyframes heading-wipe { from { clip-path: inset(-.16em 100% -.22em -.14em); } to { clip-path: inset(-.16em -.14em -.22em); } }
@keyframes heading-rise { from { opacity: 0; transform: translateY(.15em); } to { opacity: 1; transform: none; } }
@keyframes caption-enter { from { opacity: 0; transform: translateY(.85rem); } to { opacity: 1; transform: none; } }

@media (min-width: 851px) {
  .hero-poster { width: 100%; border-inline: 0; }
}

@media (max-width: 850px) {
  .hero-poster { height: clamp(430px, 65svh, 670px); }
  .hero-name { inset-block-start: 29%; }
  .portrait { inset-block-start: 13%; }
  .about { grid-template-columns: 1fr; }
  .about-details { max-width: 31rem; }
}

@media (max-width: 600px) {
  .type-row:first-child { --band-offset: -82vw; }
  .type-row:last-child { --band-offset: 92vw; }
  .reel-bar { min-height: 32px; }
  .reel-chapters:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-chapters button { min-height: 44px; padding-block: .58rem; }
  .reel-chapters button:nth-child(odd) { border-left: 0; }
}

@media (max-width: 550px) {
  .header { height: 63px; }
  .brand { font-size: 1.24rem; }
  .header nav { gap: .78rem; font-size: .86rem; }
  .nav-contact { padding: .48rem .62rem; }
  .hero-poster { height: clamp(490px, 75svh, 605px); }
  .poster-index { top: 1rem; font-size: .68rem; }
  .poster-rule { inset-block: 2.65rem 1.1rem; }
  .hero-name { inset-block-start: calc(22% - 1.5rem); font-size: 16.3vw; }
  .portrait { inset-block-start: 21%; }
  .portrait img { left: 50%; width: max(calc(100% + 1rem), clamp(314px, 48.1svh, 388px)); height: auto; bottom: .35rem; mask-image: linear-gradient(#000 0 52%, #000d 70%, transparent 100%); }
  .poster-caption { bottom: 1.9rem; }
  .poster-cross { width: 16px; height: 16px; background-size: 1px 16px, 16px 1px; bottom: 2rem; }
  .hero-rail { min-height: 58px; }
  .type-row + .type-row { -webkit-text-stroke-width: .85px; }
  .project-info { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .contact-links { flex-direction: column; max-width: 25rem; }
  .contact-orbit { width: 115vw; top: -35%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
