/* ============================================================
   Pycheetoo — shared design system
   A "composition viewport" on paper: cool neutral ground,
   hairline structure, one keyframe-amber accent.
   One composition, two tracks (GAMES / STUDIO).
   ============================================================ */
:root {
  --paper: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --line: #e3e3de;
  --line-soft: #ededea;
  --ink: #14161b;
  --ink-dim: #565c68;
  --muted: #6e7480;
  --key: #b45309;
  --key-deep: #92400e;
  --key-soft: rgba(180, 83, 9, 0.1);

  --sans: "Archivo", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: 1.5rem;
  --maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- shared type roles ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem var(--gutter);
  background: rgba(244, 244, 241, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--key);
  box-shadow: 0 0 0 4px var(--key-soft);
}

/* ---------- primary nav (territory links) ---------- */
.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin: 0 auto 0 2.5rem;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.is-here {
  color: var(--ink);
  border-color: var(--key);
}

/* ---------- language switch (segmented) ---------- */
.langswitch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.langswitch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.langswitch button:hover {
  color: var(--ink);
}

.langswitch button.is-active {
  background: var(--ink);
  color: var(--surface);
}

/* ---------- hero: composition viewport ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 13vh, 8rem) var(--gutter) clamp(4rem, 11vh, 7rem);
  background:
    radial-gradient(
      110% 80% at 12% 0%,
      rgba(180, 83, 9, 0.035),
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      var(--line-soft) 0 1px,
      transparent 1px 96px
    );
}

/* compact variant for sub-pages */
.hero.hero-sub {
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) clamp(2.75rem, 6vh, 4rem);
}

.hero-frame {
  position: absolute;
  inset: clamp(1rem, 2.4vw, 2rem);
  pointer-events: none;
}

/* crop / registration marks */
.hero-frame span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid #cfcfc9;
}
.hero-frame span:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.hero-frame span:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.hero-frame span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}
.hero-frame span:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.timecode {
  position: absolute;
  top: clamp(1rem, 2.4vw, 2rem);
  right: clamp(1.75rem, 3.2vw, 3rem);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0;
  animation: fade-in 0.8s ease 1.5s forwards;
}

.timecode b {
  font-weight: 500;
  color: var(--key);
}

.timecode em {
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  clip-path: inset(0 100% 0 0);
  animation: reveal 1.5s cubic-bezier(0.45, 0, 0.15, 1) 0.25s forwards;
}

/* the playhead sweeps the same box, so it uncovers the content in sync */
.playhead {
  position: absolute;
  top: -1.5rem;
  bottom: -1.5rem;
  left: 0;
  width: 1px;
  background: var(--key);
  animation:
    sweep 1.5s cubic-bezier(0.45, 0, 0.15, 1) 0.25s forwards,
    playhead-out 0.5s ease 1.7s forwards;
}

.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 6px;
  background: var(--key);
}

@keyframes reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes sweep {
  to {
    left: 100%;
  }
}
@keyframes playhead-out {
  to {
    opacity: 0;
  }
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 13vw, 9.5rem);
  font-variation-settings: "wdth" 116;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

/* sub-page titles: same family, dialled down */
.hero.hero-sub h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-variation-settings: "wdth" 112;
}

.hero-kicker {
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  color: var(--muted);
}

.hero-tagline {
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 44ch;
  font-family: var(--mono);
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* eyebrow above a sub-page title */
.hero-eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--key);
}

/* timeline ruler along the bottom edge of the viewport */
.hero-ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(
    90deg,
    #e0e0da 0 1px,
    transparent 1px 16px
  );
}

/* ---------- layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7rem) var(--gutter) 0;
}

section + section {
  margin-top: clamp(5rem, 10vw, 8.5rem);
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sec-head h2 {
  margin: 0;
  flex: none;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sec-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d5d5cf, transparent);
}

/* mono index shown at the right end of a section head (e.g. count) */
.sec-head .idx {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  margin: 0 0 3.5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.9;
  color: var(--ink-dim);
}

/* ---------- service panels ---------- */
.panels {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 32px;
  height: 2px;
  background: var(--key);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel:hover {
  border-color: #c8c8c1;
  background: var(--surface-2);
  transform: translateY(-2px);
}

.panel:hover::before {
  opacity: 1;
}

.panel .glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: 1.4375rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel p {
  margin: 0 0 1.75rem;
  color: var(--ink-dim);
  line-height: 1.9;
}

/* pinned to the panel floor so both panels' tag rows sit on one line */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b3b3ac;
}

.tags span {
  color: var(--muted);
}

/* ============================================================
   CHANNELS — the two territory doorways on the hub
   Evolves the service panel into an entrance: big, linkable,
   with a mono territory code and a "enter" affordance.
   ============================================================ */
.channels {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .channels {
    grid-template-columns: 1fr 1fr;
  }
}

.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 2.25rem 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

/* faint composition grid inside the doorway */
.channel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--line-soft) 0 1px,
    transparent 1px 64px
  );
  opacity: 0.5;
}

/* amber tab on top edge, revealed on hover */
.channel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 40px;
  height: 2px;
  background: var(--key);
  opacity: 0;
  z-index: 1;
  transition:
    opacity 0.3s ease,
    width 0.3s ease;
}

.channel:hover {
  border-color: #c8c8c1;
  background: var(--surface-2);
  transform: translateY(-2px);
}

.channel:hover::before {
  opacity: 1;
  width: 72px;
}

.channel > * {
  position: relative;
  z-index: 1;
}

.channel .ch-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel .ch-code .role {
  color: var(--key);
}

.channel .glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 1.75rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 1.625rem;
  line-height: 1;
}

.channel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.channel p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-dim);
  line-height: 1.85;
}

.channel .enter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.channel .enter .arrow {
  transition: transform 0.3s ease;
}

.channel:hover .enter .arrow {
  transform: translateX(6px);
}

/* ============================================================
   CREDITS — mono key/value rows (CLIENT / ROLE / YEAR ...)
   The production-credit vocabulary for STUDIO work.
   ============================================================ */
.credits {
  display: grid;
  gap: 0.6rem 1.25rem;
  grid-template-columns: auto 1fr;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.credits dt {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  align-self: center;
}

.credits dd {
  margin: 0;
  color: var(--ink);
}

/* ---------- status / platform badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge.is-key {
  border-color: rgba(180, 83, 9, 0.4);
  color: var(--key);
}

.badge.is-key::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--key);
}

/* ============================================================
   WORKS GRID — the "clip bin": public portfolio entries
   ============================================================ */
.grid-works {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-works {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .grid-works {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.work {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.work:hover {
  border-color: #c8c8c1;
  transform: translateY(-2px);
}

/* thumbnail slot: a framed clip with crop marks */
.work .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(
      120% 120% at 100% 0%,
      rgba(180, 83, 9, 0.05),
      transparent 60%
    ),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.work .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* crop marks on the thumb corners */
.work .thumb::before,
.work .thumb::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #cfcfc9;
  pointer-events: none;
}
.work .thumb::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.work .thumb::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.work .thumb .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b6b6af;
}

.work .body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1.4rem;
}

.work .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work h3 {
  margin: 0;
  font-size: 1.125rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.work .cat {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============================================================
   TOOLS — plugins & scripts distribution list
   ============================================================ */
.tools-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.tool {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.tool:hover {
  border-color: #c8c8c1;
}

@media (min-width: 720px) {
  .tool {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.tool .tool-main {
  min-width: 0;
}

.tool .tool-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.tool h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool .ver {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.tool p {
  margin: 0 0 0.75rem;
  color: var(--ink-dim);
  line-height: 1.8;
}

.tool .env {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--key);
  border-radius: 8px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--key);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  background: var(--key);
  color: var(--surface);
}

.btn.is-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn.is-ghost:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

/* ---------- back link (sub-page → hub) ---------- */
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.backlink:hover {
  color: var(--key);
}

/* ============================================================
   CASE STUDY — reusable blocks for a work detail page.
   Compose per project; delete the blocks a case doesn't need.
   ============================================================ */

/* generic media placeholder (swap the <span> for an <img>) */
.ph {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b6b6af;
}

/* cover image under the hero */
.case-cover {
  display: grid;
  place-items: center;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overview + credits, two columns */
.case-intro {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .case-intro {
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
  }
}
.case-intro .overview p {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.95;
  color: var(--ink-dim);
}
.case-intro .overview p:last-child {
  margin-bottom: 0;
}
.case-intro .overview .btn {
  margin-top: 1.75rem;
}

.case-credits {
  align-self: start;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-credits .label {
  display: block;
  margin-bottom: 1.25rem;
}

/* responsive video / iframe embed */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.embed iframe,
.embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* process: numbered steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--key);
}
.steps h4 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.85;
}

/* breakdown: alternating figure + text rows */
.breakdown {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}
.bd-row {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) {
  .bd-row {
    grid-template-columns: 1fr 1fr;
  }
  .bd-row.is-flip .bd-figure {
    order: 2;
  }
}
.bd-figure {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.bd-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bd-text .label {
  display: block;
  margin-bottom: 0.6rem;
}
.bd-text h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bd-text p {
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.9;
}

/* gallery: stills grid */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery figure {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* prev / next at the foot of a case page */
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.case-nav a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.case-nav a:hover {
  color: var(--key);
}

/* ---------- career: keyframe track ---------- */
.track {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.5rem;
  position: relative;
  max-width: 46rem;
  border-left: 1px solid var(--line);
}

.track li {
  position: relative;
  padding-bottom: 3.5rem;
}

.track li:last-child {
  padding-bottom: 0;
}

/* diamond keyframe on the rail */
.track li::before {
  content: "";
  position: absolute;
  left: calc(-2.5rem - 6px);
  top: 0.45rem;
  width: 11px;
  height: 11px;
  background: #b9b9b2;
  transform: rotate(45deg);
  outline: 4px solid var(--paper);
}

/* tick opposite each entry */
.track li::after {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0.85rem;
  width: 1.5rem;
  height: 1px;
  background: var(--line);
}

.track li.is-current::before {
  background: var(--key);
}

.track .year {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.track li.is-current .year {
  color: var(--key);
}

.track h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.track .desc {
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.9;
}

/* ---------- contact: framed info panel ---------- */
.contact {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(
      90% 120% at 100% 0%,
      rgba(180, 83, 9, 0.04),
      transparent 55%
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* registration marks — echoes the hero frame */
.contact .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--key);
  opacity: 0.55;
}
.contact .corner:nth-of-type(1) {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}
.contact .corner:nth-of-type(2) {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
}
.contact .corner:nth-of-type(3) {
  bottom: 14px;
  left: 14px;
  border-right: 0;
  border-top: 0;
}
.contact .corner:nth-of-type(4) {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
}

.contact h2 {
  margin: 0 0 2.75rem;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.field + .field {
  margin-top: 2.25rem;
}

.field .label {
  display: block;
  margin: 0 0 0.75rem;
}

.field .name {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.field .rep {
  margin: 0;
  color: var(--ink-dim);
}

.field .addr {
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.9;
}

.mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1rem;
  text-decoration: none;
  color: var(--key);
  border-bottom: 1px solid rgba(180, 83, 9, 0.35);
  padding-bottom: 0.2rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.mail:hover {
  color: var(--key-deep);
  border-color: var(--key-deep);
}

/* ---------- footer ---------- */
footer {
  margin-top: clamp(5rem, 10vw, 8rem);
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-bottom: 0.5rem;
}

.foot-link {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.foot-link:hover {
  color: var(--key);
  border-color: var(--key);
}

footer p {
  margin: 2rem 0 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #a8a8a1;
}

/* ---------- focus + motion ---------- */
:focus-visible {
  outline: 2px solid var(--key);
  outline-offset: 3px;
  border-radius: 2px;
}

.rise {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-inner,
  .timecode,
  .playhead {
    animation: none;
  }
  .hero-inner {
    clip-path: none;
  }
  .timecode {
    opacity: 1;
  }
  .playhead {
    display: none;
  }
  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .panel:hover,
  .channel:hover,
  .work:hover {
    transform: none;
  }
}
