/* Switzer (Fontshare, ITF Free Font License), self-hosted so text doesn't wait on another server. */
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* ---------- Tokens ---------- */
:root {
  --display: Arial, "Helvetica Neue", Helvetica, sans-serif; /* the wordmark's face */
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-softer: #f0f0f0;
  --line: #dedede;
  --muted: #6b6b6b; /* 5.3:1 on white: passes the contrast minimum for small text */
  --text-2: #545454;
  --text: #000000;
  --accent: #21b30b;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Switzer", "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --bg-soft: #141414;
    --bg-softer: #1c1c1c;
    --line: #2b2b2b;
    --muted: #8a8a8a;
    --text-2: #b8b8b8;
    --text: #ffffff;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Nav: floating pill (from the tai-portfolio mockup) ---------- */
.pill-nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 90vw;
}
.pill {
  display: flex; align-items: center; padding: 14px 24px; border-radius: 999px;
  /* Frosted glass (Apple's "liquid glass" look): mostly see-through, heavy blur and saturation,
     a bright hairline edge and a soft top highlight so it reads as a pane above the page. */
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 8px 32px rgba(0,0,0,.14);
  transition: transform .5s var(--ease), padding .5s var(--ease);
}
/* Logo: the tq mark + "tai nguyen." in Arial Bold, tight tracking (Tai's "bold and compact" design). */
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
.brand img { width: auto; height: 23px; object-fit: contain; transform: translateY(1px); transition: height .5s var(--ease); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.062em; line-height: 1; white-space: nowrap; transition: font-size .5s var(--ease); }
@media (prefers-color-scheme: light) { .brand span { color: #181818; } }
.pill-links {
  display: flex; gap: 40px; margin-left: 48px; max-width: 520px; overflow: hidden; white-space: nowrap; opacity: 1;
  transition: max-width .5s var(--ease), margin .5s var(--ease), opacity .4s;
}
.pill-links a, .pill-menu a {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text);
  transition: opacity .2s;
}
.pill-links a:hover, .pill-links a.active { opacity: .5; }
.pill-dots {
  display: flex; align-items: center; gap: 4px; height: 20px; margin-left: 0; max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .5s var(--ease), margin .5s var(--ease), opacity .4s;
}
.pill-dots i {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--text) 40%, transparent); animation: typingDot 1.2s infinite;
}
.pill-dots i:nth-child(2) { animation-delay: .2s; }
.pill-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); background: color-mix(in srgb, var(--text) 40%, transparent); }
  30% { transform: translateY(-4px); background: var(--text); }
}
/* Scrolled: shrink, fold the links away, show the dots. Hover (or keyboard focus) expands again. */
.pill-nav.compact:not(.expanded) .pill { transform: scale(.9); padding: 12px 20px; }
.pill-nav.compact:not(.expanded) .brand img { height: 18px; }
.pill-nav.compact:not(.expanded) .brand span { font-size: 16px; }
.pill-nav.compact:not(.expanded) .pill-links { max-width: 0; margin-left: 0; opacity: 0; }
.pill-nav.compact:not(.expanded) .pill-dots { max-width: 44px; margin-left: 20px; opacity: 1; }
.pill-burger { display: none; flex-direction: column; gap: 6px; margin-left: 24px; padding: 4px; background: none; border: 0; cursor: pointer; }
.pill-burger span { display: block; width: 20px; height: 1px; background: var(--text); transition: transform .3s, opacity .3s; }
.pill-nav.open .pill-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pill-nav.open .pill-burger span:nth-child(2) { opacity: 0; }
.pill-nav.open .pill-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pill-menu {
  display: none; flex-direction: column; text-align: center; width: 192px; margin-top: 8px; padding: 0;
  max-height: 0; opacity: 0; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 10px 30px rgba(0,0,0,.16);
  transition: max-height .3s var(--ease), opacity .3s, padding .3s;
}
.pill-menu a { padding: 12px 24px; }
.pill-menu a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.pill-nav.open .pill-menu { max-height: 260px; opacity: 1; padding: 16px 0; }
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1); } }
@media (max-width: 820px) {
  .pill-nav { width: 90vw; }
  .pill-nav .pill { width: 100%; justify-content: center; padding: 12px 20px; position: relative; }
  .pill-burger { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); margin-left: 0; } /* logo/name centred, menu button tucked right */
  .brand img { height: 19px; }
  .brand span { font-size: 17px; }
  .pill-links, .pill-dots { display: none; }
  .pill-burger, .pill-menu { display: flex; }
}

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn.ghost { background: var(--bg-softer); color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.tag {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2, .h2 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05;
}
.section-head h2 span, .h2 span { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 152px 0 72px; }
.hero h1 {
  font-size: clamp(56px, 11vw, 148px); font-weight: 500;
  letter-spacing: -0.06em; line-height: .92; margin: 28px 0 24px;
}
.hero .kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.hero-intro { max-width: 460px; font-size: 18px; color: var(--text-2); }
.hero-intro strong { color: var(--text); font-weight: 500; }

/* ---------- Marquee ---------- */
/* Split strip (after gakuyen.com): fixed heading left, logos drift right with soft faded edges. */
.marquee {
  width: min(100% - 40px, var(--max)); margin: 0 auto; padding: 56px 0; /* same width as the grid, services and about */
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 48px;
}
.marquee-label { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.marquee-window {
  overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 56px; padding-right: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.marquee-copy { display: contents; }
/* Client logos: one colour (black, or white in dark mode) at 60%, full strength on hover. */
.client-logo { height: 28px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0); flex: none; }
@media (prefers-color-scheme: dark) { .client-logo { filter: brightness(0) invert(1); } }
.marquee-track > *, .marquee-copy > * { opacity: .6; transition: opacity .4s var(--ease); }
.marquee-track > *:hover, .marquee-copy > *:hover { opacity: 1; }
@media (max-width: 640px) {
  .marquee { grid-template-columns: 1fr; gap: 18px; padding: 44px 0; }
  .marquee-label { text-align: center; }
  .marquee-label br { display: none; }
  .marquee-window {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .marquee-track { gap: 40px; padding-right: 40px; }
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { display: block; }
.card-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-softer);
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .view {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.85); color: #000; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: all .4s var(--ease);
}
.card:hover .view { opacity: 1; transform: none; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; }
.card-meta h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.center { text-align: center; margin-top: 44px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-softer); position: sticky; top: 96px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { font-size: 18px; color: var(--text-2); margin-top: 20px; }
.about-copy p strong { color: var(--text); font-weight: 500; }
.signature { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature b { display: block; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; gap: 24px; align-items: center; text-align: left;
  background: none; border: 0; color: var(--text); font: inherit;
  padding: 24px 0; cursor: pointer; font-size: 19px; letter-spacing: -0.01em;
}
.faq-q .num { color: var(--muted); font-size: 14px; width: 28px; flex: none; }
.faq-q .plus { margin-left: auto; width: 22px; height: 22px; position: relative; flex: none; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease);
}
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 52px 24px; color: var(--text-2); max-width: 720px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- Footer (after gakuyen.com + sandwich.co/clients): black, white type, the call to action
   lives here, a spectrum line along the top. ---------- */
.site-footer {
  --text: #fff; --text-2: #b8b8b8; --muted: #7d7d7d; --line: #262626;
  position: relative; background: #000; color: var(--text); margin-top: 96px; padding: 96px 0 40px; overflow: hidden;
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--spectrum); }
/* Big two-line sign-off on the left, a solid button on the right that clearly reads as clickable. */
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-big { font-size: clamp(48px, 8vw, 112px); line-height: 1.02; --spin-h: 1.02em; }
.footer-cta {
  display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0;
  padding: 24px 40px; border-radius: 999px; background: #fff; color: #000;
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.03em;
  cursor: pointer; --text: #000; /* the letters fade from black into the spectrum on hover */
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Hover: the site's letter-by-letter spectrum (same as the hero and stats), the button lifts, the arrow nudges on. */
.footer-cta:hover, .footer-cta:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,255,255,.12); }
.footer-cta.spectrum-hover { cursor: pointer; }
.footer-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.footer-cta-arrow { display: inline-block; font-size: 1.15em; transition: transform .4s var(--ease); }
.footer-cta:hover .footer-cta-arrow { transform: translateX(6px); }
.footer-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 88px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer-bottom > :last-child { justify-self: end; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--text);
  border: 1px solid #333; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.footer-social a:hover, .footer-social a:focus-visible { background: #fff; color: #000; border-color: #fff; transform: translateY(-2px); }

/* ---------- Projects index ---------- */
.page-head { padding: 136px 0 48px; }
.page-head h1 { font-size: clamp(48px, 8vw, 104px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; }
.page-head p { max-width: 520px; margin-top: 20px; color: var(--text-2); font-size: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button {
  font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-2); transition: all .2s;
}
.filters button.active, .filters button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Project detail ---------- */
.detail-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-softer); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero iframe { width: 100%; height: 100%; border: 0; display: block; }
.detail-hero.video { background: #000; }
.card-media .play {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; padding-left: 2px;
  background: rgba(255,255,255,.85); color: #000; backdrop-filter: blur(8px);
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr) 2fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.facts .tag { display: block; margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.gallery img.wide { grid-column: span 2; aspect-ratio: 16 / 9; }

/* ---------- Headshots ---------- */
.hs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hs {
  display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--bg-softer);
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5;
}
.hs img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; /* keep faces in frame */
  transition: transform .9s var(--ease), filter .4s;
}
.hs:hover img { transform: scale(1.04); }
.hs:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.step .num { color: var(--muted); font-size: 14px; }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 28px 0 8px; }
.step p { color: var(--text-2); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0,0,0,.92); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .25s; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 80px); object-fit: contain; border-radius: 6px; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; font-size: 26px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Contact dialog ---------- */
.contact {
  width: min(100% - 32px, 560px); max-height: calc(100dvh - 32px);
  padding: 40px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--bg); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.contact[open] { animation: pop .45s var(--ease); }
.contact::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.contact h2 { font-size: 36px; font-weight: 500; letter-spacing: -0.04em; }
.contact .muted { margin: 6px 0 24px; }
.contact-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg-softer); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.contact form { display: flex; flex-direction: column; gap: 14px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.contact input, .contact select, .contact textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact select:focus, .contact textarea:focus {
  border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent);
}
.contact .btn { align-self: flex-start; border: 0; cursor: pointer; margin-top: 6px; }
.contact .btn:disabled { opacity: .5; cursor: wait; }
.contact .hp { display: none; }
.form-error { font-size: 14px; color: #e5484d; }
.copy-email { font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.contact-done { text-align: center; padding: 24px 0 8px; }
.contact-done .btn { align-self: center; }
.check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 26px;
}
@media (max-width: 560px) { .contact { padding: 28px 22px; } .contact .row { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .dot::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  section { padding: 72px 0; }
  .grid, .about-grid, .gallery, .steps { grid-template-columns: 1fr; }
  .hs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hs-strip .hs:nth-child(n+5) { display: none; }
  .lightbox img { max-width: 100vw; max-height: calc(100dvh - 140px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .gallery img.wide { grid-column: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .portrait { position: static; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
  .faq-a p { padding: 0 0 24px 52px; }
  .footer-cta { width: 100%; justify-content: center; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .footer-bottom > :last-child { justify-self: center; }
  .footer-social { order: -1; }
}

/* ---------- Work / Stills hubs ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: block; }
.tile-media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-softer); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .9s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.tile-meta h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--text); }

/* ---------- Stills category: masonry grid at natural proportions ---------- */
.masonry { columns: 3; column-gap: 14px; }
.ms {
  display: block; width: 100%; padding: 0; border: 0; margin: 0 0 14px; cursor: zoom-in;
  background: var(--bg-softer); border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid;
}
.ms img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease); }
.ms:hover img { transform: scale(1.03); }
.ms:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile-meta { flex-direction: column; gap: 2px; }
  .masonry { columns: 2; column-gap: 10px; }
  .ms { margin-bottom: 10px; }
}

/* The hidden attribute always wins over component display rules (e.g. .btn). */
[hidden] { display: none !important; }
/* Vertical (9:16) covers stand upright instead of being cropped to a wide frame. */
.detail-hero.tall-cover { aspect-ratio: auto; max-width: 440px; margin-inline: auto; }
.detail-hero.tall-cover img { height: auto; }

/* Jump links (About, Services) land below the floating nav instead of under it. */
section[id] { scroll-margin-top: 110px; }

/* ---------- Work page: tabs over an edge-to-edge grid (after sandwich.co/work) ---------- */
.work-info { padding: 136px 0 56px; }
.work-panel :is(h1, h2) { font-size: clamp(48px, 8vw, 104px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; }
.work-panel p { max-width: 560px; margin-top: 20px; color: var(--text-2); font-size: 18px; }
.work-tabs {
  display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto;
  padding: 0 18px; background: var(--bg); position: relative; z-index: 2; overflow-x: auto;
}
.work-tabs a {
  padding: 14px 14px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap; transition: color .2s;
}
.work-tabs a:hover { color: var(--text); }
.work-tabs a.active { color: var(--text); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.work-tile { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.work-cap b { font-weight: 600; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tabs { justify-content: flex-start; width: 100%; }
}
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }


/* ---------- Work page motion, matched to sandwich.co's code ----------
   Heading: a strip of panels that slides sideways. Tabs: one underline that glides (0.3s).
   Tiles: cover + caption start hidden; .in-view fades the cover in and lifts the caption 30px,
   both over 0.8s on cubic-bezier(.25,1,.25,1), each tile delayed by a random 0.05-0.4s. Removing
   .in-view fades covers back to the page colour, so tab switches dissolve through white. */
.work-info { overflow: hidden; width: 100%; } /* full window width: the heading slides edge to edge */
.work-info-track { display: flex; transition: transform .8s cubic-bezier(.25, 1, .25, 1); will-change: transform; }
.work-panel { flex: 0 0 100%; min-width: 0; }
.work-tabs { position: relative; }
.work-underline {
  position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--text);
  transition: left .3s ease, width .3s ease;
}
.work-media {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s cubic-bezier(.25, 1, .25, 1);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.work-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 45%);
}
.work-tile:hover .work-media img { transform: scale(1.06); filter: brightness(1.08); }
.work-tile .work-cap {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.25, 1, .25, 1), transform .8s cubic-bezier(.25, 1, .25, 1);
}
.work-tile.in-view .work-media { opacity: 1; }
.work-tile.in-view .work-cap { opacity: 1; transform: none; }
.work-tile.delay-1 > * { transition-delay: .05s; }
.work-tile.delay-2 > * { transition-delay: .10s; }
.work-tile.delay-3 > * { transition-delay: .15s; }
.work-tile.delay-4 > * { transition-delay: .20s; }
.work-tile.delay-5 > * { transition-delay: .25s; }
.work-tile.delay-6 > * { transition-delay: .30s; }
.work-tile.delay-7 > * { transition-delay: .35s; }
.work-tile.delay-8 > * { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .work-info-track, .work-underline, .work-media, .work-tile .work-cap { transition: none !important; }
}

/* Caption over the bottom of the cover, in white (restored). */
.work-cap {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 13px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Stills grid: portrait-friendly 4:5 photo tiles, no caption. */
.work-grid.photos .work-tile { aspect-ratio: 4 / 5; cursor: zoom-in; }
.work-grid.photos .work-media::after { display: none; }
.work-grid.photos .work-media img { object-position: 50% 30%; }

/* Frosted bottom edge (from the tai-portfolio mockup): a 64px band fixed to the bottom of the window
   that softly blurs content scrolling underneath, fading out towards the top. */
body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 30; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent);
}

/* "View project" cursor (like gakuyen.com): a pill that follows the pointer over project tiles. */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .25s ease, scale .35s var(--ease);
}
.cursor-label.on { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  a.work-tile[href^="project.html"], a.card[href^="project.html"] { cursor: none; }
  a.card .view { display: none; } /* the cursor label replaces the old corner label */
}

/* Footer rotating word (from the tai-portfolio mockup): "Let's [visualise / create / connect] your vision."
   Each word holds ~1.7s then rolls up; the 4th word repeats the 1st so the 6s loop is seamless.
   The window is as wide as the longest word and fades out at its top and bottom edges. */
.word-spin {
  display: inline-block; height: var(--spin-h, 1.15em); overflow: hidden; vertical-align: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 90%, transparent 100%);
}
.word-spin-track { display: inline-flex; flex-direction: column; animation: spinWords 6s linear infinite; }
.word-spin-track span { display: block; height: var(--spin-h, 1.15em); line-height: var(--spin-h, 1.15em); }
@keyframes spinWords {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(calc(var(--spin-h, 1.15em) * -1)); }
  66%, 94% { transform: translateY(calc(var(--spin-h, 1.15em) * -2)); }
  99%, 100% { transform: translateY(calc(var(--spin-h, 1.15em) * -3)); }
}
@media (prefers-reduced-motion: reduce) { .word-spin-track { animation: none; } }

/* ---------- A dash of colour (after sandwich.co): only in lines under titles, tab underlines and
   the page-transition frame. The palette is theirs: indigo, magenta, red, orange, yellow, lime, teal, blue. */
:root {
  --c1: #5461c8; --c2: #c724b1; --c3: #e4002b; --c4: #ff6900;
  --c5: #f6be00; --c6: #97d700; --c7: #00ab84; --c8: #00a3e0;
  --spectrum: linear-gradient(90deg, var(--c1) 0 12.5%, var(--c2) 0 25%, var(--c3) 0 37.5%, var(--c4) 0 50%,
              var(--c5) 0 62.5%, var(--c6) 0 75%, var(--c7) 0 87.5%, var(--c8) 0 100%);
}
/* Spectrum line under a title: a striped bar 0.14em thick, eight colour bands across the window width,
   drawn under each line of text. --shift starts the stripes at a different colour per title/line. */
.spectrum {
  background-image: var(--spectrum); background-repeat: repeat-x;
  background-size: 100vw .14em; background-position: calc(var(--shift, 0) * -12.5vw) 100%;
  padding-bottom: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.spectrum.s1 { --shift: 2; } .spectrum.s2 { --shift: 5; } .spectrum.s3 { --shift: 3; }

/* Page-transition frame: four 10px bars slide in from the window edges; a new colour wipes around
   them every 0.6s (clockwise) until the next page is ready, then they slide back out. */
#color-frame { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
#color-frame .bar { position: absolute; overflow: hidden; transition: transform .8s cubic-bezier(.25, 1, .25, 1); }
#color-frame .bar.top, #color-frame .bar.bottom { left: 0; width: 100%; height: 10px; }
#color-frame .bar.left, #color-frame .bar.right { top: 0; height: 100%; width: 10px; }
#color-frame .bar.top { top: 0; transform: translateY(-110%); }
#color-frame .bar.bottom { bottom: 0; transform: translateY(110%) rotate(180deg); }
#color-frame .bar.right { right: 0; transform: translateX(110%); }
#color-frame .bar.left { left: 0; transform: translateX(-110%) rotate(180deg); }
.frame-on #color-frame .bar.top, .frame-on #color-frame .bar.right { transform: none; }
.frame-on #color-frame .bar.bottom, .frame-on #color-frame .bar.left { transform: rotate(180deg); }
.frame-instant #color-frame .bar { transition: none; }
#color-frame .wipe { position: absolute; inset: 0; transform-origin: top left; }
#color-frame .bar.top .wipe, #color-frame .bar.bottom .wipe { animation: wipeX .6s linear forwards; }
#color-frame .bar.left .wipe, #color-frame .bar.right .wipe { animation: wipeY .6s linear forwards; }
@keyframes wipeX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wipeY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* Give spectrum titles room: each line sits on its own with its colour bar, clear of the next line. */
.spectrum { background-size: 100vw .12em; }
.hero h1 { line-height: 1; margin-bottom: 36px; }
.hero h1 .spectrum { display: inline-block; padding-bottom: .14em; margin-bottom: .04em; }
.work-panel :is(h1, h2) .spectrum { display: inline-block; padding-bottom: .12em; }
.work-panel p { margin-top: 28px; }
/* Text rests on the colour bar: the bar's top edge sits on the baseline (0.135em above the bottom of
   a line-height:1 box in Switzer). Descenders (g, p, y) dip through the bar, as on sandwich.co. */
.hero h1 .spectrum, .work-panel :is(h1, h2) .spectrum, .page-head h1 .spectrum {
  display: inline-block; line-height: 1; padding-bottom: 0;
  background-position-y: calc(100% - .015em); /* bar = .12em tall, from 0.135em up to the baseline */
}
.hero h1 .spectrum { margin-bottom: .1em; }
/* Match sandwich.co: a thicker bar (0.2em) whose top sits ~0.065em above the baseline, so the bottoms of
   the letters are planted in it, and it overhangs the text slightly on both sides (their 10px padding). */
.hero h1 .spectrum, .work-panel :is(h1, h2) .spectrum, .page-head h1 .spectrum {
  background-size: 100vw .2em; background-position-y: 100%;
  padding: 0 .07em; margin-left: -.07em;
}

/* Hero headline colour fill (sandwich.co's mechanism: one span per letter, offset in time, cycling the
   8 brand colours). Two independent animations per letter:
   --fill 0→1 fades the letter from black into colour, starting 0.045s after the letter before, so the
   colour floods in from left to right; --flow cycles the colour smoothly (no strobing). */
@property --flow { syntax: "<color>"; inherits: false; initial-value: #e4002b; }
@property --fill { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes spectrumFlow {
  0% { --flow: #e4002b; } 12.5% { --flow: #ff6900; } 25% { --flow: #f6be00; } 37.5% { --flow: #97d700; }
  50% { --flow: #00ab84; } 62.5% { --flow: #00a3e0; } 75% { --flow: #5461c8; } 87.5% { --flow: #c724b1; }
  100% { --flow: #e4002b; }
}
@keyframes colourFill { from { --fill: 0; } to { --fill: 1; } }
.spectrum-hover { cursor: default; }
.spectrum-hover .ltr {
  display: inline-block;
  color: color-mix(in srgb, var(--flow) calc(var(--fill) * 100%), var(--text));
  transition: color .5s ease; /* fades back to black when the pointer leaves */
}
/* Hard entrance: each letter snaps from black to colour at its turn (steps), left to right. */
.spectrum-hover:hover .ltr {
  transition: none;
  animation: spectrumFlow 1.6s linear infinite, colourFill .001s steps(1, jump-start) both;
  animation-delay: calc(var(--i) * -0.08s), calc(var(--i) * 0.055s);
}

/* Career stats (home): oversized numbers in the wordmark style on hairlines; "s" / "+" sit on the
   baseline, smaller. The numbers take the footer's letter-by-letter spectrum on hover. */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; padding: 24px 0 8px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.stat-num {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.062em;
  font-size: clamp(72px, 11vw, 168px); line-height: .85; color: var(--text); font-variant-numeric: tabular-nums;
}
.stat-num .ltr { letter-spacing: -0.062em; }
.stat-sfx { font-size: .42em; letter-spacing: -0.03em; margin-left: .03em; }
.stat-lbl { margin-top: 22px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
@media (max-width: 820px) {
  .stats-row { grid-template-columns: 1fr; gap: 56px; padding: 8px 0; }
  .stat { padding: 0; }
}

/* Home project cards fly in: start above/off to the side, tilted and smaller, then spring into place
   with a slight overshoot (cubic-bezier with a y-value above 1). */
#latest { position: relative; } /* card offsets are measured from the grid, so the stack sits just over the heading */
#latest .card.fly { will-change: transform, opacity; position: relative; } /* position is set from the scroll position in main.js */
/* The stack sits just off the right edge: clip sideways overflow so it never adds a horizontal scrollbar. */
main { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .spectrum-hover:hover .ltr { animation: none; }
}

/* "Featured Projects" sits above the cards and inverts whatever is behind it (like gakuyen.com):
   white text with a "difference" blend shows black on the white page, the photo's inverse over a card,
   and white on the dark page in dark mode. */
.featured-head { position: relative; z-index: 20; mix-blend-mode: difference; pointer-events: none; }
.featured-head h2 { color: #fff; }

/* Hover preview video: sits over the still, invisible until it's actually playing, then fades in. */
.card-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .35s ease, transform .9s var(--ease); pointer-events: none;
}
.card.previewing .card-preview { opacity: 1; transform: scale(1.05); }

/* Project cards: everything sits inside the photo (like gakuyen.com). */
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 42%);
}
.card-type {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: #000; color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.card-title {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; margin: 0;
  color: #fff; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.card-title .muted { color: rgba(255,255,255,.72); }

/* Vertical video/cover on a project page: the main piece stays centred; two smaller screen grabs sit
   directly behind it and slide out to the left and right across the full screen width. */
.detail-hero.video.tall-cover { aspect-ratio: 9 / 16; }
.tall-stage {
  --w: min(440px, 62vw);           /* main piece width */
  --s: calc(var(--w) * .74);       /* side piece width */
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  display: flex; justify-content: center; padding: 8px 0;
}
.tall-stage .detail-hero.tall-cover {
  width: var(--w); max-width: none; position: relative; z-index: 2; box-shadow: 0 24px 60px rgba(0,0,0,.18);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tall-stage .detail-hero.tall-cover img { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; }
.stage-side {
  --dir: -1; --out: 0px;
  position: absolute; top: 50%; left: 50%; width: var(--s); aspect-ratio: 9 / 16; z-index: 1;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-softer); cursor: default;
  transform: translate(-50%, -50%);   /* tucked behind the main piece until revealed */
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.stage-side.right { --dir: 1; }
.stage-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tall-stage.in .stage-side {
  transform: translate(-50%, -50%) translateX(calc(var(--dir) * (var(--w) * .5 + var(--s) * .38 + var(--out))));
  filter: brightness(.82);
}
/* Hover: the main piece grows a little (and nudges both sides outward to make room);
   hovering a side image slides it out a little further and lifts it out of the shade. */
.tall-stage .detail-hero.tall-cover:hover { transform: scale(1.045); box-shadow: 0 32px 80px rgba(0,0,0,.24); }
.tall-stage:has(.detail-hero:hover) .stage-side { --out: calc(var(--w) * .05); }
.tall-stage.in .stage-side:hover { --out: calc(var(--s) * .16); filter: brightness(1); }
@media (prefers-reduced-motion: reduce) { .stage-side, .tall-stage .detail-hero.tall-cover { transition: none; } }

/* Skip link: hidden until focused with the keyboard. */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Click-to-play video: the poster and a play button; the YouTube/Vimeo player loads on press. */
.video-facade { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), opacity .4s; }
.video-facade:hover img { transform: scale(1.02); opacity: .9; }
.play-btn {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .4s var(--ease);
}
.play-btn::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #000;
}
.video-facade:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.detail-hero.video iframe { width: 100%; height: 100%; border: 0; display: block; }
/* "More from this campaign": the project's other videos, a sideways row of click-to-play covers. */
section.reel { margin-top: 24px; padding: 0; }
.reel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.reel-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.reel-count { font-size: 13px; color: var(--muted); }
.reel-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.reel-item { flex: 0 0 auto; width: clamp(150px, 21vw, 230px); aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #000; scroll-snap-align: start; }
.reel-item.wide { width: clamp(260px, 40vw, 420px); aspect-ratio: 16 / 9; }
.reel-item .video-facade, .reel-item iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-item .play-btn { width: 52px; height: 52px; }
.reel-item .play-btn::after { border-width: 9px 0 9px 15px; }

/* Optional Brief / Deliverables / Credits lines from notes.txt. */
.project-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.project-notes .tag { display: block; margin-bottom: 6px; }
.project-notes p { color: var(--text-2); }


.privacy-note { flex-basis: 100%; margin-top: 8px; font-size: 12px; }
/* Footer bar is a 3-column grid: the analytics note gets its own centred line underneath. */
.footer-bottom .privacy-note { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 4px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Statement type: the wordmark's look (Arial Bold, tight tracking) gives the big headings more weight
   and ties them to the logo. Body copy, labels, buttons and card titles stay in Switzer. */
.hero h1, .section-head h2, .h2, .page-head h1, .work-panel :is(h1, h2), .footer-big {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.062em;
}

/* Frosted glass tokens (nav pill + phone menu): a pale see-through tint, never the page colour, so the
   pane shows on any background; a bright rim and a top shine sell the glass. */
:root {
  --glass: linear-gradient(135deg, rgba(255,255,255,.46), rgba(255,255,255,.2));
  --glass-edge: rgba(255,255,255,.7);
  --glass-shine: rgba(255,255,255,.9);
}
/* The nav pill's glass, scoped: the generic .pill rule (status pills, further up) would otherwise paint it solid. */
.pill-nav .pill {
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 8px 32px rgba(0,0,0,.14);
  outline: 1px solid rgba(0,0,0,.06); outline-offset: 0; /* keeps the edge visible on white pages */
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.09));
    --glass-edge: rgba(255,255,255,.26);
    --glass-shine: rgba(255,255,255,.4);
  }
  .pill-nav .pill { outline-color: rgba(0,0,0,.4); }
}

/* AVIF <picture> wrappers: layout as if the <img> were there on its own (grids, spans, hovers). */
picture { display: contents; }

/* Keyboard focus: a clear outline on anything focusable (mouse clicks don't show it). */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.work-tile:focus-visible, .card:focus-visible .card-media { outline-offset: -4px; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-media { outline: 3px solid var(--text); }
.pill-links a:focus-visible, .pill-menu a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Photos and videos: no dragging them out or long-press "Save image" on phones (right-click still works,
   so links open in new tabs as usual). The files also carry a © Tai Nguyen notice. */
img, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }

/* ---------- Type scale (one set of sizes for the whole site) ----------
   Statements use the wordmark face (--display); reading text and labels use Switzer. */
:root {
  --fs-title: clamp(44px, 7.4vw, 104px);    /* page and project titles */
  --fs-section: clamp(34px, 4.6vw, 56px);   /* section headings */
  --fs-chapter: clamp(24px, 2.6vw, 38px);   /* chapter and panel sub-headings */
  --fs-lead: clamp(19px, 1.7vw, 25px);      /* hooks, overviews, intros */
  --fs-body: clamp(16px, 1.15vw, 18px);
  --fs-label: 12px;
}
.section-head h2, .h2 { font-size: var(--fs-section); letter-spacing: -0.05em; line-height: 1; }
.page-head h1, .work-panel :is(h1, h2) { font-size: var(--fs-title); }
.tag { letter-spacing: .12em; }
.reel-head h2 { font-family: var(--display); font-weight: 700; font-size: var(--fs-chapter); letter-spacing: -0.045em; line-height: 1.02; }

/* ---------- Home: Featured Projects as campaign panels ----------
   The first project leads full width; the rest alternate image left / right with big type beside them.
   Up to 4 show; if more are featured, main.js picks a different 4 each visit. Text sits outside the
   image, so the footage keeps its own grade (no dark overlay). */
#latest.grid { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 112px); }
.feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px; align-items: center; }
.feat[hidden] { display: none; }
.feat .feat-media { grid-column: span 8; aspect-ratio: 16 / 9; }
.feat .feat-media::after { display: none; }
.feat .feat-txt { grid-column: span 4; }
.feat.flip .feat-media { order: 2; }
.feat.lead .feat-media { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.feat.lead .feat-txt { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.feat-lbl { display: block; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.feat-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.055em; line-height: .95; font-size: clamp(36px, 4.2vw, 64px); }
.feat.lead .feat-title { font-size: clamp(44px, 6.4vw, 96px); }
.feat-hook { font-size: var(--fs-lead); line-height: 1.4; color: var(--text-2); margin-top: 16px; max-width: 32ch; }
.feat.lead .feat-hook { margin-top: 0; }
.feat-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--text); font-size: 15px; font-weight: 500; transition: background .3s, color .3s;
}
.feat-link span { transition: transform .3s var(--ease); }
.feat:hover .feat-link, .feat:focus-visible .feat-link { background: var(--text); color: var(--bg); }
.feat:hover .feat-link span { transform: translateX(4px); }
.feat:focus-visible .feat-media { outline: 3px solid var(--text); outline-offset: 3px; }
@media (max-width: 820px) {
  .feat { gap: 18px; }
  .feat > *, .feat.lead .feat-txt { grid-column: 1 / -1 !important; order: 0 !important; }
  .feat .feat-media, .feat.lead .feat-media { aspect-ratio: 16 / 10; }
  .feat.lead .feat-txt { grid-template-columns: 1fr; gap: 0; }
  .feat.lead .feat-hook { margin-top: 14px; }
}

/* ---------- Featured project pages: a short visual story (bento layout) ---------- */
.story-head { padding-bottom: 36px; }
.story-head .story-hook { font-size: var(--fs-lead); line-height: 1.35; color: var(--text-2); max-width: 34ch; margin-top: 22px; }
.story-hero { aspect-ratio: auto; }
.story-hero.video { aspect-ratio: 16 / 9; }
.story-hero .play-label {
  position: absolute; left: 24px; bottom: 24px; z-index: 2; padding: 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #000; font-size: 15px; font-weight: 600; pointer-events: none;
}
.story-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); margin-top: 28px; }
.story-band .tag, .story-credits .tag { display: block; margin-bottom: 6px; }
.story-band b { font-weight: 500; }
.story-overview { font-size: var(--fs-lead); line-height: 1.45; max-width: 34em; margin: clamp(48px, 7vw, 96px) 0; }
.bento, .b-row { display: grid; gap: clamp(12px, 1.8vw, 24px); }
.b-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.b-cell { border-radius: var(--radius); overflow: hidden; background: var(--bg-softer); min-width: 0; position: relative; }
.b-cell.s3 { grid-column: span 3; } .b-cell.s4 { grid-column: span 4; } .b-cell.s5 { grid-column: span 5; }
.b-cell.s6 { grid-column: span 6; } .b-cell.s7 { grid-column: span 7; } .b-cell.s8 { grid-column: span 8; }
.b-cell.s12 { grid-column: span 12; }
.b-cell.b-centre { grid-column: 4 / span 6; }
.b-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-fill img { position: absolute; inset: 0; }         /* crops to the height its row neighbour sets */
.b-chap { background: none; border-radius: 0; overflow: visible; align-self: center; padding: 16px clamp(0px, 1.6vw, 24px); }
.b-chap h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; font-size: var(--fs-chapter); line-height: 1.02; margin-bottom: 14px; }
.b-chap p { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.story section.reel { margin-top: clamp(56px, 8vw, 104px); }
.story-credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: clamp(56px, 8vw, 104px); }
@media (max-width: 820px) {
  .b-row { grid-template-columns: 1fr; }
  .b-cell { grid-column: 1 / -1 !important; }
  .b-fill { aspect-ratio: 4 / 3; }
  .b-chap { padding: 20px 0; }
  .story-band { grid-template-columns: 1fr 1fr; }
  .story-band > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .story-credits { grid-template-columns: 1fr; }
}

/* ---------- Film, Social Media tab: upright "phone wall" (option A) ----------
   Six upright tiles across, each flicking through the client's upright stills; the clip plays on hover
   (or when mostly in view on phones). Markup: phone_tile() in tools/render_pages.py, phoneTile() in main.js. */
.work-grid.phones { grid-template-columns: repeat(6, 1fr); gap: 10px; padding-top: 12px; width: min(100% - 40px, var(--max)); margin-inline: auto; }
.work-grid.phones .work-tile { aspect-ratio: 9 / 16; border-radius: 14px; background: #111; }
.phone-tile .work-media img, .phone-tile .phone-clip {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.phone-tile .work-media img { opacity: 0; transition: opacity .9s ease, transform .9s var(--ease), filter .4s; }
.phone-tile .work-media img.on { opacity: 1; }
.phone-tile .phone-clip { opacity: 0; transition: opacity .4s ease; }
.phone-tile.playing .phone-clip { opacity: 1; }
.phone-tile .work-media::after { z-index: 1; }
.phone-tile .work-cap { z-index: 2; }
.phone-tile .work-cap b { display: block; }
.phone-tile .work-cap small {
  display: block; margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75;
}
.phone-play {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center; transition: opacity .3s;
}
.phone-play::before {
  content: ""; margin-left: 2px; border-left: 9px solid #000; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.phone-tile.playing .phone-play { opacity: 0; }
@media (max-width: 820px) { .work-grid.phones { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 520px) { .work-grid.phones { grid-template-columns: repeat(2, 1fr); } }
/* Project pages, "More work" on social-first clients: the same upright tiles, four across inside the page column. */
.work-grid.related-phones { grid-template-columns: repeat(4, 1fr); width: auto; padding-top: 0; gap: 16px; }
@media (max-width: 820px) { .work-grid.related-phones { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Project gallery: a label above each video's frames when a page has frames from several videos. */
.gallery .gallery-label { grid-column: 1 / -1; margin: 28px 0 0; font-weight: 600; letter-spacing: -.01em; }
.gallery .gallery-label:first-child { margin-top: 0; }
.gallery .gallery-label .tag { display: block; margin-bottom: 4px; font-weight: 400; }


/* ---------- Film, Social Media tab: industry collections above the grid (option C) ----------
   Markup: industry_collections() / reel_card() in tools/render_pages.py; behaviour: initReels() in main.js.
   The industry name is the heading; the arrows sit at the right of that row, so they never move. */
.collections { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; }
.coll-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(18px, 2.5vw, 28px); }
.coll-titles { display: grid; min-width: 0; }
.coll-title { grid-area: 1 / 1; font-size: var(--fs-section); letter-spacing: -.05em; line-height: 1; margin: 0; }
.coll-title[hidden] { display: block; visibility: hidden; }
.coll-nav { display: flex; align-items: center; gap: 10px; flex: none; }
.coll-count { font-size: 13px; letter-spacing: .12em; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.coll-arrow { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: var(--text);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.coll-arrow:hover { background: var(--text); color: var(--bg); }
.collections .coll-all { margin: clamp(48px, 7vw, 88px) 0 0; }
.coll { display: grid; grid-template-columns: 3.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: end; }
.coll[hidden] { display: none; }
.coll-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coll-txt .tag { display: block; margin-bottom: 10px; }
.coll-txt p { color: var(--text-2); margin: 0; max-width: 400px; }
.coll-reel { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #111; }
.coll-reel > a { position: absolute; inset: 0; color: #fff; text-decoration: none; }
.coll-reel img, .coll-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coll-reel img { transition: transform .9s var(--ease); }
.coll-reel:hover img { transform: scale(1.04); }
.coll-reel video { opacity: 0; transition: opacity .4s; pointer-events: none; }
.coll-reel.playing video { opacity: 1; }
.coll-reel > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.65)); z-index: 1; }
.coll-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font-weight: 600; font-size: 17px; }
.coll-cap small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.coll-pp { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; }
.coll-pp::before { content: ""; margin-left: 3px; border-left: 11px solid #000; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.coll-reel.playing .coll-pp::before { margin: 0; border: 0; width: 10px; height: 12px; background: linear-gradient(90deg, #000 35%, transparent 35% 65%, #000 65%); }
.coll-reel > a:focus-visible, .coll-pp:focus-visible, .coll-arrow:focus-visible { outline: 3px solid var(--c6); outline-offset: 3px; }
@media (max-width: 820px) {
  .coll { grid-template-columns: 1fr; }
  .coll-txt { order: -1; }
  .coll-tiles { gap: 8px; }
  .coll-arrow { width: 46px; height: 46px; font-size: 19px; }
  .coll-count { display: none; }
}

/* ---------- Film, All tab: every project in one grid ----------
   Landscape tiles fill one row; upright social tiles span two rows (a deliberate taller crop, not a squashed reel). */
.work-grid.mixed { grid-auto-flow: dense; grid-auto-rows: calc((100vw - var(--sbw, 0px)) / var(--cols) * .5625); }
.work-grid.mixed .work-tile { aspect-ratio: auto; }
.work-grid.mixed .phone-tile { grid-row: span 2; border-radius: 0; }
/* Banded (main.js packBands): two-row bands, each column one upright tile or two landscape tiles, so the
   grid ends in a straight line. A "solo" landscape fills its whole column as a taller crop. */
.work-grid { --cols: 4; }
.work-grid.banded { display: block; }
.band { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.band-col { display: grid; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1.125; min-width: 0; }
.band-col > .work-tile { aspect-ratio: auto; min-height: 0; }
.band-col > .phone-tile, .band-col > .solo { grid-row: 1 / -1; border-radius: 0; }
@media (max-width: 1100px) { .work-grid { --cols: 3; } }
@media (max-width: 820px) { .work-grid { --cols: 2; } }
@media (max-width: 520px) { .work-grid { --cols: 1; } }
@media (max-width: 600px) {
  /* Collections on phones: a swipeable row of bigger reels instead of three squeezed ones. */
  .coll-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .coll-tiles::-webkit-scrollbar { display: none; }
  .coll-tiles .coll-reel { flex: 0 0 58vw; scroll-snap-align: start; }
  /* Four Film tabs fit on one line. */
  .work-tabs a { padding: 14px 8px 12px; font-size: 11px; letter-spacing: .05em; }
}

/* ---------- Stills: the wall, selected shoots and shoot pages (Mark Clennon direction, Dec 2026) ----------
   Markup: render_stills() / render_shoots() in tools/render_pages.py; behaviour: initWall(), initShoots(),
   initShootPage() and photoViewer() in main.js. Colours follow the site (light or dark). */
body.wall-on { overflow: hidden; }
.wall-on .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; margin: 0; max-height: 100vh; overflow-y: auto; transform: translate3d(0,100%,0); will-change: transform; }
.wall-on .wall-head { position: fixed; left: 0; right: 0; top: 0; z-index: 10; background: var(--bg); box-shadow: 0 5px 0 var(--bg); will-change: transform; }
.wall-head .work-tabs { margin-bottom: 0; }
.tab-extra { margin-left: 18px; padding: 10px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.tab-extra:hover, .tab-extra:focus-visible { color: var(--text); }
.tab-extra-m { display: none; }
@media (max-width: 820px) {
  .tab-extra { display: none; }
  .tab-extra-m { display: block; width: fit-content; margin: 0 0 0 auto; padding: 12px 16px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
}
.wall { background: var(--bg); }
.wall-on .wall { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.wall.drag { cursor: grabbing; }
.wall-on .wt { position: absolute; left: 0; top: 0; will-change: transform; }
.wt { display: block; overflow: hidden; background: var(--bg-softer); }
/* Photo tiles are buttons, not links to the image file, so hovering shows no image address (Tai's rule). */
button.wt, button.jt, button.work-tile.photo { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
button.wt, button.work-tile.photo { width: 100%; }
.wt img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wt:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
/* Hover: the same gentle zoom and lift as the Film page tiles (mouse only, not while dragging the wall). */
@media (hover: hover) {
  .wt img { transition: transform .9s var(--ease), filter .4s; }
  .wt:hover img { transform: scale(1.06); filter: brightness(1.08); }
  .wall.drag .wt img { transform: none; filter: none; }
}
.wall { transition: opacity .35s ease; } .wall.swap { opacity: 0; }
/* no JavaScript or reduced motion: a plain grid with the same crops */
body:not(.wall-on) .wall, .wall.static { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
body:not(.wall-on) .wall .wt, .wall.static .wt { aspect-ratio: 4 / 5; }
@media (max-width: 820px) { body:not(.wall-on) .wall, .wall.static { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; } }
.wall-pills { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  transform: translate(-50%, 300%); background: rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.wall-pills.show { transform: translate(-50%, 0); }
.wall-pills button { font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #ccc; background: none; border: 0;
  border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.wall-pills button.on { background: #fff; color: #000; }
.wall-pills button:focus-visible { outline: 2px solid #fff; }
body:not(.wall-on) .wall-pills { display: none; }
@media (max-width: 820px) { .wall-pills { max-width: 94vw; overflow-x: auto; } .wall-pills button { padding: 8px 10px; font-size: 11px; } .tab-extra { margin-left: 4px; } }

/* Photo viewer */
html.wv-lock { overflow: hidden; }
/* Photo viewer: the photo grows out of its tile over a blurred view of the page; neighbours either side get
   blurrier with distance. Click the blur to go back. */
.wv { position: fixed; inset: 0; z-index: 200; color: var(--text); }
.wv-bg { position: absolute; inset: 0; cursor: zoom-out; opacity: 0; transition: opacity .6s ease;
  background: color-mix(in srgb, var(--bg) 35%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); }
.wv.open .wv-bg { opacity: 1; }
.wv-strip { position: absolute; inset: 0; pointer-events: none; }
.wv-s { position: absolute; display: block; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--bg-softer); cursor: pointer; pointer-events: auto;
  transition: left .8s var(--wv-ease), top .8s var(--wv-ease), width .8s var(--wv-ease), height .8s var(--wv-ease), filter .7s ease, opacity .6s ease;
  --wv-ease: cubic-bezier(.16,1,.3,1); }
.wv-s.c { cursor: default; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.wv-s.snap { transition: none; }
.wv-s:not(.c):hover, .wv-s:not(.c):focus-visible { filter: blur(2px) !important; opacity: 1 !important; }
.wv-s:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.wv-s img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wv:not(.open) .wv-s:not(.c) { opacity: 0 !important; pointer-events: none; }
.wv-cap { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; align-items: baseline; gap: 16px; padding: 0 20px;
  pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.wv.open .wv-cap { opacity: 1; transform: none; transition-delay: .25s; }
.wv-title { font: 700 clamp(20px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.03em; }
.wv-count { font-size: 12px; letter-spacing: .1em; opacity: .7; }
.wv-close { position: absolute; top: 22px; right: 24px; font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); border-radius: 999px; padding: 8px 14px;
  opacity: 0; transition: opacity .4s ease; }
.wv.open .wv-close { opacity: 1; }
.wv-close:hover, .wv-close:focus-visible { border-color: var(--text); }
@media (max-width: 820px) { .wv-close { top: 16px; right: 16px; } .wv-cap { bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .wv-s, .wv-bg, .wv-cap { transition: none; } }

/* Selected shoots: the spiral */
.hx-page { position: relative; }
.hx-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hx { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
.hx img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hx:hover img { transform: scale(1.2); }
.hx-side { position: absolute; left: clamp(20px, 3vw, 40px); top: 61vh; z-index: 3000; pointer-events: none; }
.hx-kicker { font-size: 15px; margin: 0 0 18px; }
.hx-titles { position: relative; height: 1.2em; width: min(60vw, 900px); font-size: clamp(28px, 3.4vw, 46px); overflow: hidden; }
.hx-t { position: absolute; left: 0; top: 0; margin: 0; font: 700 1em/1.1 var(--display); letter-spacing: -.045em; white-space: nowrap;
  transform: translateY(100%); opacity: 0; transition: transform .75s ease-out, opacity .75s ease-out; }
.hx-t.on { transform: none; opacity: 1; } .hx-t.up { transform: translateY(-100%); }
.hx-meta { margin-top: 10px; color: var(--text-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-height: 1.4em; }
.hx-count { position: absolute; right: clamp(20px, 3vw, 40px); bottom: 28px; z-index: 3000; color: var(--text-2); font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.hx-switch { position: fixed; right: clamp(20px, 3vw, 40px); top: 104px; z-index: 3001; font-size: 15px; text-transform: uppercase; }
.hx-switch a, .hx-switch button { font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; }
.hx-switch button.off { color: var(--muted); }
.ls { display: none; padding: 170px clamp(20px, 3vw, 40px) 120px; }
.ls-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ls-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 24px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(60%) scale(.8); transition: opacity .8s, transform 1s cubic-bezier(.16,1,.3,1); }
.ls-row.in { opacity: 1; transform: none; }
.ls-n { margin: 0; font: 700 clamp(18px, 1.6vw, 24px)/1.1 var(--display); letter-spacing: -.03em; }
.ls-img img { width: min(230px, 100%); height: auto; display: block; }
.ls-c { font-size: 14px; color: var(--text-2); }
.hx-page.list .hx-stage, .hx-page.list .hx-spacer { display: none; }
.hx-page.list .ls { display: block; }
.shoots-page .site-footer { margin-top: 0; }
@media (max-width: 820px) { .hx-side { top: auto; bottom: 90px; } .ls-row { grid-template-columns: 1fr 1fr; } .ls-c { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .hx-page .hx-stage, .hx-page .hx-spacer { display: none; } .hx-page .ls { display: block; } .ls-row { opacity: 1; transform: none; } }

/* A selected shoot's page */
.shoot-page { padding-bottom: 40px; }
.shoot-meta { color: var(--text-2); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.jrow { display: flex; gap: 10px; margin-bottom: 10px; }
.jt { display: block; min-width: 0; overflow: hidden; background: var(--bg-softer); }
.jt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.jt:hover img { transform: scale(1.03); }
.reveal-clip { clip-path: inset(25% 25% 25% 25%); transition: clip-path 1.5s cubic-bezier(.16,1,.3,1); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }
.reveal-up { display: block; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(.16,1,.3,1); }
.reveal-up.in { clip-path: inset(0 0 0 0); }
.still-next { display: grid; justify-items: center; gap: 14px; margin: 120px auto 40px; text-align: center; }
.still-next-img { width: min(320px, 70vw); overflow: hidden; }
.still-next-img img { width: 100%; display: block; transform: scale(1.1); transition: transform .75s cubic-bezier(.16,1,.3,1); }
.still-next:hover .still-next-img img { transform: scale(1); }
.still-next h2 { font: 700 clamp(28px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.04em; }
@media (max-width: 820px) { .jrow { flex-wrap: wrap; } .jrow .jt { flex: 1 1 calc(50% - 5px) !important; aspect-ratio: auto !important; } .jrow .jt img { height: auto; } }
@media (prefers-reduced-motion: reduce) { .reveal-clip, .reveal-up { clip-path: none; transition: none; } }


/* ---------- Services: "What I do, brought into focus" (main.js initServices) ----------
   Services blur until one comes into focus; its clip pulls focus beside it inside a frame that
   reshapes to the service's aspect ratio, among dotted frame lines for every shape. */
.svc { border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.svc .h2 { margin-bottom: 28px; }
.svc-list { display: flex; flex-direction: column; }
.svc-row { cursor: pointer; padding: 4px 0; outline: none; }
.svc-h { white-space: nowrap; font-family: var(--display); font-weight: 700; letter-spacing: -0.06em; font-size: calc(clamp(38px, 5.2vw, 76px) * var(--svc-fit, 1)); line-height: .98; filter: blur(5px); opacity: .22; transition: filter .8s var(--ease), opacity .8s var(--ease); }
.svc-row:hover .svc-h, .svc-row:focus-visible .svc-h { filter: blur(1.5px); opacity: .5; }
.svc-row.on .svc-h { filter: none; opacity: 1; }
.svc-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.svc-row.on .svc-sub { grid-template-rows: 1fr; }
.svc-sub > div { overflow: hidden; }
.svc-sub p { margin: 12px 0 6px; font-size: 17px; line-height: 1.45; color: var(--text-2); max-width: 460px; }
.svc-seen { font-size: 14px; color: var(--muted); text-decoration: none; }
.svc-seen:hover { color: var(--text); }
.svc-stage { position: relative; aspect-ratio: 1 / 1.1; }
.svc-clip { position: absolute; left: 50%; top: 50%; width: 80%; height: 80%; transform: translate(-50%, -50%); border-radius: var(--radius); overflow: hidden; background: var(--bg-softer); box-shadow: 0 20px 60px -30px rgba(0,0,0,.35); transition: width 1s var(--ease), height 1s var(--ease); }
.svc-clip > video, .svc-clip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(18px); transform: scale(1.06); transition: opacity .5s, filter 1s var(--ease), transform 1.2s var(--ease); }
.svc-clip > .on { opacity: 1; filter: none; transform: none; }
.svc-clip { z-index: 1; }
/* "Every screen": three other shapes around the sharp vertical one. Each screen sits inside its own
   dotted frame line (fixed); the screen drifts inside it as the pointer moves over the stage, and the
   one under the pointer tilts towards it, lifts and sharpens (main.js). */
.svc-alt { position: absolute; opacity: 0; transform: scale(.9); pointer-events: none; perspective: 700px; transition: opacity .5s, transform .8s var(--ease); }
.svc-alt::before { content: ""; position: absolute; inset: -9px; border: 1px dashed var(--line); border-radius: 18px; }
.svc-alt-in { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: var(--bg-softer); box-shadow: 0 14px 40px -24px rgba(0,0,0,.45); transition: box-shadow .5s; will-change: transform; }
.svc-alt canvas { display: block; width: 100%; height: 100%; filter: blur(3px); transform: scale(1.06); transition: filter .5s; }
.svc-alt.hot .svc-alt-in { box-shadow: 0 26px 50px -22px rgba(0,0,0,.55); }
.svc-alt.hot canvas { filter: blur(.6px); }
.svc-alt > span { position: absolute; left: 6px; top: -17px; background: var(--bg); padding: 0 6px; font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-stage.multi .svc-alt { opacity: 1; transform: none; pointer-events: auto; transition: opacity .7s var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.svc-stage.multi .svc-clip { outline: 1px dashed var(--line); outline-offset: 9px; }
.svc-alt[data-k="1:1"] { width: 26%; left: 2%; top: 9%; }
.svc-alt[data-k="16:9"] { width: 38%; left: 2%; bottom: 9%; }
.svc-alt[data-k="4:5"] { width: 26%; right: 2%; top: 30%; }
.svc-alt[data-k="4:5"] > span { left: auto; right: 6px; }
.svc-ratio { position: absolute; z-index: 2; left: 14px; top: 12px; color: #fff; font: 700 15px var(--display); letter-spacing: -.03em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.svc-ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px dashed var(--line); border-radius: 10px; pointer-events: none; transition: opacity .6s; }
.svc-ghost span { position: absolute; left: 10px; top: -9px; background: var(--bg); padding: 0 6px; font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity .4s; }
.svc-ghost.r span { left: auto; right: 10px; } .svc-ghost.b span { top: auto; bottom: -9px; }
.svc-lens { margin-top: 18px; }
.svc-lens small { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.svc-scale { position: relative; height: 34px; margin-top: 6px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-scale span { padding-top: 12px; position: relative; }
.svc-scale span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 7px; background: var(--muted); }
.svc-scale i { position: absolute; top: -7px; left: 6%; border: 6px solid transparent; border-top-color: var(--accent); margin-left: -6px; transition: left 1s var(--ease); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc-stage { aspect-ratio: 1 / 1; } }
@media (prefers-reduced-motion: reduce) { .svc-h, .svc-sub, .svc-clip, .svc-clip > video, .svc-clip > img { transition: none; } }
