/* TZ'IKIN Productions: one machined lens in a lit black room. Shared by every page. */
:root {
  color-scheme: dark;
  --sc-canvas:     #08080A;
  --sc-surface:    #111115;
  --sc-ink:        #F4F2EE;
  --sc-ink-soft:   #A5A2A9;
  --sc-accent:     #FF6A2B;
  --sc-accent-ink: #0B0706;
  --amber: #F2B544;
  --ember: #E8452C;
  --glass-edge: rgba(255, 255, 255, 0.10);
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;
  --gut: max(20px, 4vw);
  --maxw: 84rem;
  --r: 22px;
}
html, body { background: var(--sc-canvas); color: var(--sc-ink); }
body { margin: 0; font-family: var(--sc-font-text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img { max-width: 100%; }
.sc-grain { opacity: 0.035; z-index: 30; }
[data-sc-progress] { display: none; }

.room { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52vmax 52vmax at 84% 6%, rgba(255,140,70,0.110) 0%, rgba(255,140,70,0.090) 18%, rgba(255,140,70,0.061) 36%, rgba(255,140,70,0.033) 52%, rgba(255,140,70,0.014) 66%, rgba(255,140,70,0.004) 80%, rgba(255,140,70,0.000) 100%),
    radial-gradient(48vmax 48vmax at 2% 98%, rgba(232,69,44,0.080) 0%, rgba(232,69,44,0.066) 18%, rgba(232,69,44,0.044) 36%, rgba(232,69,44,0.024) 52%, rgba(232,69,44,0.010) 66%, rgba(232,69,44,0.003) 80%, rgba(232,69,44,0.000) 100%); }
main, .foot { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); box-sizing: border-box; }

/* type */
.display { font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -0.05em; line-height: 0.92; margin: 0; text-wrap: balance; }
.h-xl { font-size: clamp(3.2rem, 8.4vw, 9.6rem); }
.h-lg { font-size: clamp(2.5rem, 5.6vw, 6rem); }
.h-md { font-size: clamp(2rem, 3.8vw, 3.8rem); letter-spacing: -0.04em; }
.h-sm { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.05; }
.mono { font-family: var(--sc-font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--sc-ink-soft); margin: 0; max-width: 40ch; }
.soft { color: var(--sc-ink-soft); }
.amber { color: var(--amber); }
p { text-wrap: pretty; }

/* surfaces */
.glass { background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); border: 1px solid var(--glass-edge);
         box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 30px 80px -34px rgba(0,0,0,0.75); }
.glass { background-color: rgba(17, 17, 21, 0.86); }
.nav.glass { background-color: rgba(17, 17, 21, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; color: var(--sc-ink); }
.chip--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 4px rgba(255,106,43,0.18); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
       font: 500 15px/1 var(--sc-font-text); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; border: 0;
       transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out); }
.btn--solid { background: var(--sc-ink); color: #0B0A0C; box-shadow: 0 10px 30px -12px rgba(255,140,60,0.5); }
.btn--ghost { color: var(--sc-ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.arrow::after { content: "↗"; font-size: 0.95em; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,140,60,0.65); }
  .btn--ghost:hover { background: rgba(255,255,255,0.1); }
}
.textlink { color: var(--sc-ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-color: var(--sc-accent); } }

/* nav */
.nav { position: fixed; z-index: 40; top: max(14px, env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0;
       display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 999px; max-width: calc(100vw - 24px); box-sizing: border-box; }
.nav__brand { display: flex; align-items: center; gap: 9px; color: var(--sc-ink); text-decoration: none; padding-right: 16px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,0.1); }
.nav__brand img { width: 24px; height: auto; display: block; }
.nav__brand span { font-weight: 600; letter-spacing: 0.06em; font-size: 13px; }
.nav__link { color: var(--sc-ink-soft); text-decoration: none; font-size: 14px; padding: 9px 14px; border-radius: 999px; transition: color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out); }
.nav__link[aria-current="page"] { color: var(--sc-ink); background: rgba(255,255,255,0.09); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--sc-ink); } }
.nav .btn { margin-left: 6px; }
.nav__menu { display: none; background: none; border: 0; color: var(--sc-ink); font: 500 14px/1 var(--sc-font-text); padding: 10px 14px; cursor: pointer; border-radius: 999px; }
.sheet { position: fixed; inset: 0; z-index: 39; background: rgba(8,8,10,0.96); display: grid; align-content: center; padding: 0 var(--gut); }
.sheet[hidden] { display: none; }
.sheet a { display: block; color: var(--sc-ink); text-decoration: none; font: 600 clamp(2.4rem, 11vw, 4rem)/1.15 var(--sc-font-display); letter-spacing: -0.04em; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sheet a[aria-current="page"] { color: var(--sc-accent); }

/* page hero with a lens */
.phero { position: relative; min-height: 92svh; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 24px;
         padding: 130px var(--gut) 64px; box-sizing: border-box; max-width: calc(var(--maxw) + 8vw); margin-inline: auto; }
.phero__copy { display: grid; gap: 24px; justify-items: start; position: relative; z-index: 2; }
.phero__lens { position: relative; height: min(70vh, 640px); min-width: 0; }
.phero__lens { z-index: 1; }
/* the phoenix canvas covers the whole hero and fades out on every side, so nothing ever ends on a hard edge */
.phero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent); mask-composite: intersect; }
.phero__still { display: none; position: absolute; left: 50%; top: 50%; width: 118%; max-width: none; height: auto; translate: -50% -50%; pointer-events: none; }
.no-gl .phero__gl, .lite .phero__gl, .no-gl .phero > .phx-glow, .lite .phero > .phx-glow { display: none; }
.no-gl .phero__still, .lite .phero__still { display: block; }

/* sections */
.sec { padding-block: clamp(4.5rem, 11vh, 8rem); }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 6vh, 64px); }
.sec__head > div { display: grid; gap: 16px; max-width: 44rem; }
.sec__head p { margin: 0; color: var(--sc-ink-soft); max-width: 40ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { border-radius: var(--r); padding: 26px 24px; display: grid; gap: 6px; }
.stat b { font: 600 clamp(2.4rem, 4.4vw, 4.4rem)/1 var(--sc-font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--sc-ink-soft); font-size: 15px; }
.stat small { color: var(--sc-ink-soft); font-size: 13px; opacity: .8; }

/* media cards */
.card { border-radius: calc(var(--r) + 6px); padding: 12px; min-width: 0; display: grid; align-content: start; }
.card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.card__body { padding: 20px 12px 10px; display: grid; gap: 10px; justify-items: start; }
.card__body p { margin: 0; color: var(--sc-ink-soft); font-size: 15px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--sc-ink); }

/* person */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.person .card__img { aspect-ratio: 4 / 4.4; object-position: 50% 16%; }
.person:nth-child(2) { margin-top: clamp(0px, 9vh, 110px); }

/* footer */
.foot { border-top: 1px solid rgba(255,255,255,0.08); margin-top: clamp(3rem, 8vh, 6rem); padding: clamp(48px, 8vh, 80px) 0 32px; background: rgba(8,8,10,0.6); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__brand img { width: 40px; height: auto; }
.foot__brand p { margin: 0; color: var(--sc-ink-soft); max-width: 30ch; }
.foot h4 { margin: 0 0 12px; font: 500 12px/1 var(--sc-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-ink-soft); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--sc-ink); text-decoration: none; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--sc-accent); } }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); color: var(--sc-ink-soft); font-size: 13px; }
.foot__base nav { display: flex; gap: 18px; }
.foot__base a { font-size: 13px; color: var(--sc-ink-soft); }

/* closing call */
.cta { border-radius: calc(var(--r) + 10px); padding: clamp(36px, 7vw, 88px); display: grid; gap: 22px; justify-items: start; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
              background: radial-gradient(closest-side circle, rgba(255,120,50,0.220) 0%, rgba(255,120,50,0.180) 18%, rgba(255,120,50,0.121) 36%, rgba(255,120,50,0.066) 52%, rgba(255,120,50,0.029) 66%, rgba(255,120,50,0.009) 80%, rgba(255,120,50,0.000) 100%); pointer-events: none; }

@media (max-width: 900px) {
  .nav__link, .nav .btn { display: none; }
  .nav__menu { display: inline-flex; }
  .phero { grid-template-columns: 1fr; padding-top: 100px; min-height: auto; gap: 0; }
  .phero__lens { order: -1; height: 44svh; }
  .people { grid-template-columns: 1fr; }
  .person:nth-child(2) { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats--3 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
.no-gl canvas.gl { display: none; }

/* ===================================================== identity + motion layer */
:root {
  --fire: linear-gradient(100deg, #E63946 0%, #FF6B35 52%, #FFA500 100%);
  --flame: #FF6B35;
  --sc-font-display: "Syne", "Geist", system-ui, sans-serif;
}
.display { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.94; }
.h-xl { font-size: clamp(3rem, 7.4vw, 8.4rem); }
.h-lg { font-size: clamp(2.3rem, 4.9vw, 5.2rem); }
.h-md { font-size: clamp(1.8rem, 3.2vw, 3.2rem); letter-spacing: -0.03em; }
.h-sm { font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -0.02em; }
.display em { font-style: normal; color: var(--flame); }

.btn--solid { background: var(--fire); color: #170804; box-shadow: 0 12px 34px -12px rgba(255,107,53,0.65); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .btn--solid:hover { box-shadow: 0 18px 44px -12px rgba(255,107,53,0.85); } }
.nav .btn--solid { color: #170804; }
.chip--dot::before { background: var(--flame); box-shadow: 0 0 0 4px rgba(255,107,53,0.2), 0 0 14px rgba(255,107,53,0.8); }

/* headlines that assemble letter by letter */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; padding-bottom: 0.08em; margin-bottom: -0.08em; }
/* headlines never break inside a word; site.js shrinks a headline whose longest word is wider than its column */
.display { overflow-wrap: normal; word-break: normal; hyphens: manual; max-width: 100%; min-width: 0; }
[data-split] .c { display: inline-block; transform: translateY(105%); transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1); transition-delay: calc(var(--i) * 18ms); will-change: transform; }
[data-split].is-in .c { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-split] .c { transform: none; transition: none; } }

/* aperture page transition and first-visit intro */
.iris { position: fixed; inset: 0; z-index: 200; background: #050506; pointer-events: none; }
.intro { position: fixed; inset: 0; z-index: 201; display: grid; place-items: center; pointer-events: none; }
.intro__inner { display: grid; justify-items: center; gap: 18px; }
.intro img { width: clamp(64px, 9vw, 110px); height: auto; filter: drop-shadow(0 0 28px rgba(255,107,53,0.55)); opacity: 0; transform: scale(0.9); transition: opacity 600ms var(--sc-ease-out), transform 900ms var(--sc-ease-out); }
.intro.on img { opacity: 1; transform: none; }
.intro b { font: 700 clamp(1.4rem, 3vw, 2.4rem)/1 var(--sc-font-display); letter-spacing: 0.32em; padding-left: 0.32em; }
.intro.out { opacity: 0; transition: opacity 400ms var(--sc-ease-out); }

/* footage */
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--sc-ease-out); }
.vid.is-playing { opacity: 1; }

/* award strip */
.strip { overflow: hidden; border-block: 1px solid rgba(255,255,255,0.07); padding-block: clamp(22px, 4vh, 40px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { display: flex; gap: clamp(40px, 6vw, 96px); width: max-content; align-items: center; animation: strip 38s linear infinite; }
.strip__track img { height: clamp(56px, 6vw, 84px); width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(255,255,255,0.18)); opacity: 1; }
.strip__track span { font: 700 clamp(1.4rem, 2.6vw, 2.4rem)/1 var(--sc-font-display); letter-spacing: -0.02em; white-space: nowrap; color: rgba(244,242,238,0.9); }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

html { scroll-behavior: auto; }

/* slow-device mode: keep the design, drop the layers a CPU has to re-composite every frame */
.lite .sc-grain, .lite .room { display: none; }
.lite .nav.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(17, 17, 21, 0.94); }
.lite body { background: radial-gradient(60vmax 60vmax at 85% 0%, rgba(255,140,70,0.100) 0%, rgba(255,140,70,0.082) 18%, rgba(255,140,70,0.055) 36%, rgba(255,140,70,0.030) 52%, rgba(255,140,70,0.013) 66%, rgba(255,140,70,0.004) 80%, rgba(255,140,70,0.000) 100%) no-repeat, var(--sc-canvas); }
.lite .glass, .lite .btn--solid, .lite .shot, .lite .card__img { box-shadow: none; }
.lite .strip { -webkit-mask-image: none; mask-image: none; }
.lite .proj__img img, .lite .shot img { transition: none; }
.lite .strip__track { animation-duration: 90s; }

/* the phoenix's warm light: drawn by the page, not the 3D layer, so it blends the same in every browser */
.phx-glow { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity;
  background: radial-gradient(closest-side circle, rgba(255,118,48,0.420) 0%, rgba(255,118,48,0.344) 18%, rgba(255,118,48,0.231) 36%, rgba(255,118,48,0.126) 52%, rgba(255,118,48,0.055) 66%, rgba(255,118,48,0.017) 80%, rgba(255,118,48,0.000) 100%); opacity: 0; }
.phero > .phx-glow { left: 70%; top: 50%; width: min(36vw, 560px); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; z-index: 0; animation: phx-glow-in 2.2s 0.2s var(--sc-ease-out) forwards; }
.lite .phero__lens::before { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side circle, rgba(255,118,48,0.42) 0%, rgba(255,118,48,0.344) 18%, rgba(255,118,48,0.231) 36%, rgba(255,118,48,0.126) 52%, rgba(255,118,48,0.055) 66%, rgba(255,118,48,0.017) 80%, rgba(255,118,48,0) 100%); }
@keyframes phx-glow-in { to { opacity: 1; } }
@media (max-width: 900px) { .phero > .phx-glow { width: 70vw; } }

/* the phoenix glow fades past the screen edge; the page itself clips it, never the hero (that drew a hard line on wide screens) */
html, body { overflow-x: clip; }
@media (min-width: 901px) and (max-width: 1180px) { .nav__link { padding: 9px 10px; } }
