/* ==========================================================================
   Deal Skipper — Global Process Automation Expert
   Design system

   Palette is drawn from the portrait: royal blue (shirt), gold (tie).
   The third accent is Lean value-stream green — in value stream mapping
   green denotes value-add. The colour carries meaning, it is not decoration.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — constant across themes */
  --royal-700: #1E37A0;
  --royal-600: #2947C7;
  --royal-500: #3B5BE0;
  --royal-400: #6182F0;
  --gold-600: #A8861A;
  --gold-500: #C9A227;
  --gold-400: #E0BC4A;
  --value-500: #16A97A;
  --value-400: #2FC694;

  /* Typography */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --fs-display: clamp(2rem, 6.4vw, 5rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.25rem);
  --fs-h2: clamp(1.65rem, 3.2vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.6875rem;

  /* Space + shape */
  --wrap: 1200px;
  --wrap-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* Tightened: the connector joints between sections carry the breathing room,
     so the sections themselves no longer need to pad against each other. */
  --section-y: clamp(3rem, 5.5vw, 5rem);
  --joint-h: clamp(56px, 7vw, 88px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* Dark — the default field */
:root,
[data-theme="dark"] {
  --bg: #070B16;
  --bg-alt: #0B1120;
  --surface: #101A2E;
  --surface-2: #16223C;
  --line: rgba(150, 175, 235, 0.14);
  --line-strong: rgba(150, 175, 235, 0.28);

  --text-hi: #EDF1FB;
  --text-mid: #A3B0CC;
  /* Kept above 4.5:1 on --bg: this token carries captions and meta text. */
  --text-low: #7885A3;

  --accent: var(--royal-500);
  --accent-soft: rgba(59, 91, 224, 0.16);
  --gold: var(--gold-400);
  --gold-soft: rgba(224, 188, 74, 0.14);
  --value: var(--value-400);

  --glass: rgba(16, 26, 46, 0.72);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --portrait-blend: luminosity;
  color-scheme: dark;
}

/* Light — cool paper, not cream */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F5F7FD;
  --surface: #FFFFFF;
  --surface-2: #F0F4FC;
  --line: rgba(16, 32, 72, 0.12);
  --line-strong: rgba(16, 32, 72, 0.24);

  --text-hi: #0A1428;
  --text-mid: #47536E;
  /* Kept above 4.5:1 on white: this token carries captions and meta text. */
  --text-low: #5E6A84;

  --accent: var(--royal-600);
  --accent-soft: rgba(41, 71, 199, 0.10);
  --gold: var(--gold-600);
  --gold-soft: rgba(168, 134, 26, 0.12);
  --value: var(--value-500);

  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 50px -24px rgba(16, 32, 72, 0.32);
  --portrait-blend: normal;
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--bg);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * 0.62); }
.section-alt { background: var(--bg-alt); }

/* --- Section joints -------------------------------------------------------
   The page is a process, so the sections are joined rather than stacked.
   A rail draws downward as it enters view and a node lands on it, continuing
   the connector language established in the hero. Injected by main.js, so the
   markup stays clean and every page gets them automatically. */

.joint {
  position: relative;
  height: var(--joint-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Blends the outgoing section into the incoming one, so the change of
     background reads as a gradient down the rail rather than a hard seam. */
  background: linear-gradient(to bottom, var(--joint-from, var(--bg)), var(--joint-to, var(--bg)));
}
.joint[data-from="bg"]  { --joint-from: var(--bg); }
.joint[data-from="alt"] { --joint-from: var(--bg-alt); }
.joint[data-to="bg"]    { --joint-to: var(--bg); }
.joint[data-to="alt"]   { --joint-to: var(--bg-alt); }

.joint::before {
  content: "";
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    var(--line-strong) 22%,
    var(--line-strong) 78%,
    transparent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.85s var(--ease-out);
}
.joint.is-in::before { transform: scaleY(1); }

.joint::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.45s 0.4s var(--ease-out), transform 0.45s 0.4s var(--ease-out);
}
.joint.is-in::after { opacity: 1; transform: scale(1); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p {
  max-width: 62ch;
  margin-top: 1rem;
  font-size: 1.0625rem;
}

/* Eyebrow — mono, the site's utility voice */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-mid);
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.hdr[data-stuck="true"] { border-bottom-color: var(--line); }

.hdr-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

/* Wordmark — the dot is a process node */
.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  flex: none;
}
.mark-node {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  flex: none;
}
.mark span { color: var(--text-low); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--text-hi); }
.nav a[aria-current="page"] { color: var(--text-hi); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.65rem; right: 0.65rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--gold);
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--text-hi);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.icon-btn svg { width: 17px; height: 17px; }

/* Theme toggle shows the icon for the mode you'd switch TO */
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon,
:root:not([data-theme="light"]) .icon-moon { display: none; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -12px var(--accent);
}
.btn-primary:hover { background: var(--royal-600); box-shadow: 0 16px 34px -12px var(--accent); }
[data-theme="light"] .btn-primary:hover { background: var(--royal-700); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-hi);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }

.btn-gold {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold:hover { background: var(--gold); color: #10131C; }

.btn-sm { padding: 0.55rem 0.95rem; font-size: var(--fs-xs); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Text link with a travelling underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-hi);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.tlink:hover { color: var(--gold); border-color: var(--gold); gap: 0.7rem; }
.tlink svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   6. Hero — "The Transformation Line"
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 12% 8%, var(--accent-soft), transparent 68%),
    radial-gradient(620px 380px at 92% 78%, var(--gold-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* Availability pill with a live pulse */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-mid);
  margin-bottom: 1.75rem;
}
.pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--value);
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--value);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  color: var(--text-mid);
  max-width: 54ch;
  margin-bottom: 1.25rem;
}

.hero-cred {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 52ch;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  font-size: var(--fs-sm);
  color: var(--text-low);
  margin-bottom: 2.25rem;
}

/* Portrait: the light studio backdrop is used deliberately as a bright
   plate against the ink field, rather than cut out. */
.portrait-stage {
  position: relative;
  aspect-ratio: 1 / 1;
}

.portrait {
  position: relative;
  z-index: 2;
  width: 84%;
  margin-inline: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, transparent 45%, rgba(7, 11, 22, 0.55));
  pointer-events: none;
}
[data-theme="light"] .portrait::after {
  background: linear-gradient(165deg, transparent 55%, rgba(16, 32, 72, 0.18));
}

/* The flow SVG sits behind and around the portrait */
/* Explicit width/height: an inline SVG sizes itself from its viewBox ratio and
   ignores a right/bottom inset, which anchors it left and clips the captions. */
.flow {
  position: absolute;
  top: -6%;
  left: -12%;
  width: 124%;
  height: 112%;
  /* The global svg reset caps at 100%, which would clamp this back to the
     portrait's width and re-anchor it left. */
  max-width: none;
  z-index: 1;
  overflow: visible;
}
.flow-line {
  fill: none;
  stroke-linecap: round;
}
.flow-manual {
  stroke: var(--line-strong);
  stroke-width: 1.25;
  stroke-dasharray: 4 5;
}
.flow-auto {
  stroke: var(--accent);
  stroke-width: 1.75;
}
.flow-node { fill: var(--bg); stroke-width: 1.5; }
.flow-node-manual { stroke: var(--text-low); }
.flow-node-auto { stroke: var(--accent); fill: var(--accent); }
.flow-node-gold { stroke: var(--gold); fill: var(--gold); }

.flow-cap {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--text-low);
}

/* One orchestrated page-load reveal, then the packet loop */
.flow-draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: draw 1.5s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* A work packet travelling the automated line. Pure CSS dash offset,
   so prefers-reduced-motion can switch it off cleanly. */
.flow-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-dasharray: 14 460;
  stroke-dashoffset: 474;
  animation: packet 4.6s linear infinite;
  animation-delay: 1.4s;
}
@keyframes packet {
  to { stroke-dashoffset: 0; }
}

.hero-stats {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.stat {
  padding: 1.6rem 1.5rem;
  border-right: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface-2); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.035em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.stat-value span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.stat-label {
  margin-top: 0.65rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-hi);
}
.stat-detail {
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--text-low);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.card p { font-size: var(--fs-sm); }

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Meta line — mono, used for dates / categories */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* Tag / chip */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text-low);
  background: var(--bg-alt);
  white-space: nowrap;
}
.tag-accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
a.tag { transition: background 0.2s var(--ease), color 0.2s var(--ease); }
a.tag:hover { background: var(--gold); color: #10131C; }

.cred-id {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--text-low);
  margin-top: 0.6rem;
  word-break: break-all;
}
.tag-gold { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.tag-value { color: var(--value); border-color: var(--value); background: rgba(22, 169, 122, 0.12); }

/* --------------------------------------------------------------------------
   8. The evolution spine — career progression as a value stream
   -------------------------------------------------------------------------- */

.spine {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 2.25rem;
}
.spine::before {
  content: "";
  position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--text-low) 0%,
    var(--accent) 45%,
    var(--gold) 100%);
}

.spine-step {
  position: relative;
  padding-block: 0.72rem;
}
.spine-step::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 1.15rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--text-low);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.spine-step:hover::before,
.spine-step.is-live::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}

.spine-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-mid);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.spine-step:hover .spine-label { color: var(--text-hi); }
.spine-step.is-live .spine-label { color: var(--gold); }

.spine-note {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   9. Impact cycle — Analyse → Improve → Automate → Measure → Scale
   -------------------------------------------------------------------------- */

.cycle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  counter-reset: step;
}

.cycle-step {
  position: relative;
  padding: 1.35rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease);
  counter-increment: step;
}
.cycle-step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.cycle-step[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Numbering is earned here: this is a real, ordered improvement cycle */
.cycle-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
}

.cycle-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.cycle-hint {
  font-size: var(--fs-xs);
  color: var(--text-low);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.cycle-detail {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  min-height: 108px;
}
.cycle-detail h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.cycle-detail p { font-size: var(--fs-sm); max-width: 72ch; }

/* --------------------------------------------------------------------------
   10. Experience timeline
   -------------------------------------------------------------------------- */

.role {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}
.role:first-of-type { border-top: none; padding-top: 0; }

.role-when {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-low);
  letter-spacing: 0.04em;
  padding-top: 0.35rem;
}
.role-when strong {
  display: block;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.role-title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 0.35rem;
}
.role-org {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.role-org b { color: var(--accent); font-weight: 600; }

/* Featured current role */
.role-featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
}
.role-featured::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
}

/* Responsibility columns */
.resp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.resp-block h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.ticks { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.ticks li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  font-size: var(--fs-sm);
  color: var(--text-hi);
}

/* --------------------------------------------------------------------------
   11. Skills matrix
   -------------------------------------------------------------------------- */

.skill-group {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem;
  background: var(--surface);
  transition: border-color 0.25s var(--ease);
}
.skill-group:hover { border-color: var(--line-strong); }

.skill-group h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill {
  font-size: var(--fs-xs);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: all 0.18s var(--ease);
  cursor: default;
}
.skill:hover {
  color: var(--text-hi);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.skill.is-dim { opacity: 0.22; }
.skill.is-hit { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }

/* --------------------------------------------------------------------------
   12. Filters + search
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}
.search input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.35rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-hi);
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease);
}
.search input:focus { border-color: var(--accent); outline-offset: 1px; }
.search input::placeholder { color: var(--text-low); }
.search svg {
  position: absolute;
  left: 0.8rem; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-low);
  pointer-events: none;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter {
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.filter:hover { color: var(--text-hi); border-color: var(--line-strong); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.count {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-left: auto;
}

.empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--text-low);
}
.empty strong { display: block; color: var(--text-hi); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   13. Project cards + case detail
   -------------------------------------------------------------------------- */

.proj {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.proj:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

.proj-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj h3 { font-size: 1.2rem; margin: 0.75rem 0 0.55rem; }
.proj-summary { font-size: var(--fs-sm); flex: 1; }

.proj-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.proj-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-ongoing { color: var(--value); }
.status-delivered { color: var(--accent); }
.status-design { color: var(--gold); }

.proj-open {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border-left: none; border-right: none; border-bottom: none;
  width: 100%;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-hi);
  transition: color 0.2s var(--ease);
}
.proj-open:hover { color: var(--gold); }
.proj-open svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.proj-open[aria-expanded="true"] svg { transform: rotate(45deg); }

.proj-detail {
  display: none;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
}
.proj-detail[data-open="true"] { display: block; animation: fade 0.35s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.psr { display: grid; gap: 1.1rem; }
.psr-block h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.psr-problem h4 { color: var(--text-low); }
.psr-solution h4 { color: var(--accent); }
.psr-impact h4 { color: var(--value); }
.psr-lessons h4 { color: var(--gold); }
.psr-block p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   14. Achievements
   -------------------------------------------------------------------------- */

.ach {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ach:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.ach-hero {
  border-color: var(--gold);
  background:
    radial-gradient(520px 300px at 88% 6%, var(--gold-soft), transparent 68%),
    var(--surface);
}

.ach-figure {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.ach-figure-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 1.25rem;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--gold);
  color: #10131C;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   15. International cards
   -------------------------------------------------------------------------- */

.intl {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.intl:hover { transform: translateY(-4px); border-color: var(--accent); }

.intl-flag {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.intl-place {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.intl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   16. Activities
   -------------------------------------------------------------------------- */

.act {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.act:hover { background: var(--surface); }
.act:first-of-type { border-top: none; }

.act-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}
.act h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.act p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   16b. Signals — aggregated headlines, always linking out to the source
   -------------------------------------------------------------------------- */

.signal {
  display: block;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.signal:first-child { border-top: none; }
.signal:hover { background: var(--surface); padding-left: 0.6rem; }

.signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
}

.signal-title {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-hi);
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}
.signal:hover .signal-title { color: var(--gold); }

.signal-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
}
.signal-source { color: var(--accent); }

.signals-note {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: var(--text-low);
}

@media (max-width: 620px) {
  .signal-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   16c. Insights — article typography, field notes, activity timeline
   -------------------------------------------------------------------------- */

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 1.5rem;
}
.crumbs a { transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }

/* Long-form reading column */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.35rem; line-height: 1.75; }
.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.75rem 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose .ticks { margin-bottom: 1.5rem; gap: 0.6rem; }
.prose .ticks li { font-size: var(--fs-body); line-height: 1.65; }
.prose .note { margin: 2rem 0; }
.prose > .lede { margin-bottom: 2rem; }

/* Pull quote — the one typographic flourish in the article body */
.pull {
  margin: 2.25rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

/* Author card */
.author-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line-strong);
}
.author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.author-role { color: var(--gold); font-size: var(--fs-sm); margin-top: 0.15rem; }
.author-line { font-size: var(--fs-xs); color: var(--text-low); margin-top: 0.5rem; }

/* Cards that are whole links */
a.card { display: block; color: inherit; }
a.card h3 { transition: color 0.2s var(--ease); }
a.card:hover h3 { color: var(--gold); }

/* Featured article */
.feature {
  display: block;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 320px at 12% 8%, var(--accent-soft), transparent 70%),
    radial-gradient(460px 260px at 92% 92%, var(--gold-soft), transparent 72%),
    var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  color: inherit;
}
.feature:hover { border-color: var(--gold); transform: translateY(-3px); }
.feature h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin: 0.9rem 0;
  max-width: 22ch;
  transition: color 0.2s var(--ease);
}
.feature:hover h2 { color: var(--gold); }
.feature p { max-width: 62ch; }

/* Field notes — short observations, display type, deliberately terse */
.fieldnote {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.fieldnote:hover { border-color: var(--gold); transform: translateY(-3px); }
.fieldnote-mark {
  width: 22px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.fieldnote-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}
.fieldnote-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

/* Activity timeline — same node language as the rest of the site */
.tl { position: relative; padding-left: 2rem; }
.tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--accent) 55%, transparent);
}
.tl-item { position: relative; padding-bottom: 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transition: box-shadow 0.3s var(--ease);
}
.section-alt .tl-item::before { background: var(--bg-alt); }
.tl-item:first-child::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.tl-date {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin-top: 0.25rem;
}
.tl-meta { font-size: var(--fs-xs); color: var(--text-low); margin-top: 0.25rem; }
.tl-desc { font-size: var(--fs-sm); margin-top: 0.5rem; max-width: 62ch; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.field label span { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-hi);
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-low); }
.field select { cursor: pointer; appearance: none; background-image: none; }

.form-msg {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  display: none;
}
.form-msg[data-state="ok"] {
  display: block;
  background: rgba(22, 169, 122, 0.12);
  border: 1px solid var(--value);
  color: var(--value);
}
.form-msg[data-state="err"] {
  display: block;
  background: rgba(224, 94, 94, 0.12);
  border: 1px solid #E05E5E;
  color: #E05E5E;
}

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   18. CTA band + footer
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(680px 320px at 15% 10%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 300px at 88% 88%, var(--gold-soft), transparent 70%),
    var(--surface);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.cta-band h2 { font-size: var(--fs-h1); margin-bottom: 1rem; }

.ftr {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--bg-alt);
}

.ftr-statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-hi);
  max-width: 20ch;
  line-height: 1.15;
}

.ftr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.ftr-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 1rem;
}
.ftr-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.ftr-col a {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  transition: color 0.2s var(--ease);
}
.ftr-col a:hover { color: var(--gold); }

.ftr-base {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--text-low);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   19. Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at 10% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 { font-size: var(--fs-h1); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; }
  .nav a { padding: 0.85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold); }
  .nav-toggle { display: grid; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* The transformation line is composed for the two-column hero. Once the hero
     stacks, it would sit behind the portrait and read as noise, so it steps
     aside — the section joints and the evolution spine carry the process
     language from here down. */
  .flow { display: none; }
  .portrait-stage { max-width: 330px; margin-inline: auto; order: -1; aspect-ratio: auto; }
  .portrait { width: 100%; }
  .role { grid-template-columns: 1fr; gap: 0.75rem; }
  .role-when { padding-top: 0; }
  .role-when br { display: none; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .resp { gap: 1.25rem 1.5rem; }
}

/* Phone */
@media (max-width: 620px) {
  html { scroll-padding-top: 80px; }

  /* Keep the headline in the first screen: the portrait introduces him, the
     headline has to be what he does. */
  .portrait-stage { max-width: 220px; }
  .hero { padding-top: 1.5rem; }
  .avail { margin-bottom: 1.25rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-cred { margin-bottom: 1.75rem; }

  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .act { grid-template-columns: 1fr; gap: 0.5rem; }
  .ftr-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .count { margin-left: 0; width: 100%; }

  /* Filter pills and tag rows scroll rather than stacking into a tall wall. */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }

  .cycle { grid-template-columns: 1fr 1fr; }
  .resp { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   22. Motion + print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flow-draw { stroke-dashoffset: 0; }
  .flow-pulse { display: none; }
  .pulse::after { display: none; }
  .joint::before { transform: scaleY(1); }
  .joint::after { opacity: 1; transform: scale(1); }
}

@media print {
  .hdr, .nav, .cta-band, .flow, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
}
