/* ==========================================================================
   Prototype C3 — "The Signal Poster"
   Prototype C's header, hero and line field, kept as they were.
   Lower sections follow C2 (facts strip, compact experience, chips), drawn
   in C's grammar: boxed cells, mono micro labels, orange posters on navy.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Self-hosted since 2026-10-14 (T-132 step 7): the display, mono and handwriting faces used to come from
   Google Fonts through a render-blocking cross-origin stylesheet. Latin subsets only; Caveat carries just the
   characters of its two hero notes. Licenses sit beside the files in assets/fonts/. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat-notes.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+26, U+42, U+45, U+53, U+61, U+64-65, U+67-69, U+6C, U+6E-70, U+72-73, U+76;
}

:root {
  color-scheme: only light;
  --orange: #ff5a1f;
  --navy: #142237;
  --navy-deep: #0f1b2c;
  --mint: #96e8db;
  --paper: #f2ece1;
  --ink-orange: #d9430b;   /* large numerals on paper only (3.75:1) */
  --muted: #4a566b;        /* small text on paper (6.3:1) */
  --paper-dim: #b9c3cf;    /* small text on navy (8.9:1) */
  --on-navy: #e9edf1;      /* body text on navy */
  --rule-navy: rgba(150, 232, 219, 0.32);
  --pulse: #ffffff;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --frame: 10px;
  --pad: 24px;
  --bar-h: 84px;
  --nav-h: 0px;
  --peek: 60px;            /* the hero leaves this much of the next poster in view (C's ticker height) */
  --ease: cubic-bezier(0.2, 0.85, 0.15, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.13  0 0 0 0 0.2  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.nowrap {
  white-space: nowrap;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  flex: none;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--mint);
  color: var(--navy);
  font: 700 13px/1 var(--mono);
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.band-navy :focus-visible,
.foot :focus-visible,
.dock :focus-visible {
  outline-color: var(--mint);
}

.micro {
  font: 500 13px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------- posters on the wall ---------------- */

.wall {
  display: block;
}

.poster {
  position: relative;
  margin: 0 var(--frame);
  overflow: clip;
  background-image: var(--grain);
}

.poster + .poster,
.band-navy + .poster {
  margin-top: var(--frame);
}

.poster-hero,
.poster-orange {
  background-color: var(--orange);
}

.poster-paper {
  background-color: var(--paper);
}

/* ---------------- top bar (C's Swiss boxed grid) ---------------- */

.bar {
  position: absolute;
  z-index: 6;
  top: var(--frame);
  left: var(--frame);
  right: var(--frame);
  height: var(--bar-h);
  display: grid;
  grid-template-columns: var(--bar-h) minmax(0, 1fr) auto auto auto auto;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
}

.bar-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid var(--navy);
}

.bar-logo {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: 900 40px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bar-logo span {
  color: var(--navy);
}

.bar-cta .ic-mail {
  display: none;
}

.bar-nav {
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
}

.bar-nav a,
.dock-link {
  position: relative;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
}

.bar-nav .idx {
  margin-right: 7px;
  font-size: 13px;
  font-weight: 700;
  vertical-align: 0.3em;
}

.bar-nav a::after,
.dock-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.bar-nav a:hover::after,
.dock-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.clock,
.status,
.motion-state,
.bar-cta span {
  font: 800 30px/0.95 var(--display);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.clock {
  font-variant-numeric: tabular-nums;
  min-width: 6.2ch;
}

.clock .ap {
  font-size: 0.62em;
  margin-left: 0.18em;
  letter-spacing: 0.04em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.4); opacity: 1; }
  80%, 100% { transform: scale(1.35); opacity: 0; }
}

/* motion switch: its own boxed cell, read like the others (label + value) */
.bar .bar-motion {
  padding: 0;
}

html:not(.js) .bar-motion {
  display: none;
}

.motion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 100%;
  width: 100%;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.motion:hover {
  background: rgba(20, 34, 55, 0.08);
}

.motion:focus-visible {
  outline-offset: -6px;
}

.motion-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.motion-state {
  text-transform: uppercase;
  min-width: 1.4em;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  border: 2px solid var(--navy);
  background: transparent;
  flex: none;
  transition: background-color 0.3s var(--ease);
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--navy);
  transition: transform 0.3s var(--ease);
}

.motion[aria-checked="true"] .switch {
  background: var(--mint);
}

.motion[aria-checked="true"] .switch i {
  transform: translateX(18px);
}

.bar-cta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  border-right: 0;
  background: var(--navy);
  color: var(--mint);
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.bar-cta .ic {
  width: 28px;
  height: 28px;
  transition: transform 0.35s var(--ease);
}

.bar-cta:hover {
  background: var(--mint);
  color: var(--navy);
}

.bar-cta:hover .ic {
  transform: translateX(6px);
}

.bar-cta:focus-visible {
  outline-color: var(--mint);
  outline-offset: -6px;
}

/* ---------------- hero poster (C) ---------------- */

.poster-hero {
  margin-top: var(--frame);
  height: calc(100svh - var(--frame) - var(--peek));
  min-height: 720px;
  max-height: 1100px;
  padding-top: calc(var(--bar-h) + var(--nav-h));
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  --name-size: min(16vw, 27vh);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 12px;
  width: 15px;
  height: 15px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 100% no-repeat;
  pointer-events: none;
}

.stage::before { left: 12px; }
.stage::after { right: 12px; }

.signal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.name {
  position: absolute;
  z-index: 3;
  left: calc(var(--pad) - 0.02em);
  bottom: 18px;
  font: 900 var(--name-size) / 0.8 var(--display);
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  pointer-events: none;
}

.name-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.09em 0;
  margin: -0.04em 0 -0.09em;
}

.name-word,
.name .ch {
  display: inline-block;
  will-change: transform;
}

.portrait-slot {
  position: absolute;
  z-index: 2;
  right: calc(var(--pad) + 8px);
  bottom: 0;
  height: calc(100% - 22px);
  aspect-ratio: 240 / 309;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}

/* With JavaScript the plain photo stays hidden while the line portrait loads (no flash of the
   photo). It only appears if the line portrait can't run: no-signal, or nothing after 4 s. */
.js .portrait-img {
  opacity: 0;
  animation: portrait-fallback 0.3s ease 4s forwards;
}
.js.no-signal .portrait-img {
  opacity: 1;
  animation: none;
}
@keyframes portrait-fallback { to { opacity: 1; } }

.has-signal .portrait-img {
  animation: none;
  opacity: 0;
}

.note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font: 600 27px/1 var(--hand);
  color: var(--navy);
  white-space: nowrap;
  pointer-events: none;
}

.note span {
  background: var(--orange);
  padding: 2px 6px 4px;
  transform: rotate(-4deg);
}

.scribble {
  width: 92px;
  height: auto;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.note-a {
  top: 1%;
  right: 66%;
  flex-direction: column;
  align-items: flex-end;
}

.note-a .scribble {
  margin-right: -26px;
  margin-top: 2px;
}

.note-b {
  top: 61%;
  right: 84%;
  flex-direction: column;
  align-items: flex-end;
}

.note-b span {
  transform: rotate(3deg);
}

.note-b .scribble {
  width: 84px;
  margin-right: -34px;
  margin-top: 2px;
}

/* hero info row */

.hero-info {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.95fr);
  grid-template-areas:
    "role lead tools"
    "avail lead tools";
  grid-template-rows: auto 1fr;
  border-top: 1px solid var(--navy);
  background: var(--orange);
  background-image: var(--grain);
}

.cell {
  padding: 22px var(--pad) 24px;
  border-right: 1px solid var(--navy);
  min-width: 0;
}

.cell-role {
  grid-area: role;
  padding-bottom: 10px;
}

.cell-avail {
  grid-area: avail;
  padding-top: 0;
}

.cell-lead {
  grid-area: lead;
}

.cell-tools {
  grid-area: tools;
  border-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

/* Sized so the title keeps to three lines in the desktop role cell. */
.role {
  font: 800 clamp(26px, 2.5vw, 40px) / 0.92 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.availability {
  font: 500 13px/1.6 var(--mono);
  letter-spacing: 0.01em;
}

.availability strong {
  font-weight: 700;
  white-space: nowrap;
}

.lead {
  font: 500 clamp(19px, 2vw, 30px) / 1.28 var(--body);
  letter-spacing: -0.015em;
  max-width: 36ch;
  text-wrap: pretty;
}

/* How I work: the lead's face, smaller and lighter, so the hero name keeps its room.
   Full navy (not reduced opacity) keeps it above 4.5:1 on the orange. */
.lead.lead-how {
  margin-top: 0.8em;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.34;
  max-width: 46ch;
}

.tools {
  font: 800 clamp(24px, 2.3vw, 34px) / 1 var(--display);
  letter-spacing: 0.01em;
}

/* Grouped tool block (Build, Automate, AI & infrastructure). Labels reuse the
   facts-strip label (mono, uppercase, square marker), in navy for contrast on
   the orange; the tool names keep the display face and wrap (a no-break space
   before each dot keeps "·" off the start of a line). Rows stay tight so the
   hero info row barely grows. */
.tools-grid {
  display: grid;
  gap: 10px;
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.04;
}

.tools-grid dt {
  margin-bottom: 4px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tools-grid dt::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--navy);
}

.tools-grid dd {
  text-wrap: pretty;
}

.actions,
.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--navy);
  font: 700 13px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn-solid {
  background: var(--navy);
  color: var(--mint);
}

.btn-solid:hover {
  background: var(--mint);
  color: var(--navy);
}

.btn-line {
  background: transparent;
  color: var(--navy);
}

.btn-line:hover {
  background: var(--navy);
  color: var(--orange);
}

.btn:hover .ic {
  transform: translateX(4px);
}

.btn:hover .ic-down {
  transform: translateY(3px);
}

/* ---------------- facts strip (from C2, boxed like C's header) ---------------- */

.facts {
  border-bottom: 1px solid var(--navy);
}

.facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1fr);
}

.fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px var(--pad);
}

.fact + .fact {
  border-left: 1px solid var(--navy);
}

.fact dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dt::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex: none;
}

.fv {
  font: 800 30px/0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.fs {
  margin-top: 10px;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ID card: the clear photo next to the name */
.fact-name {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.fact-name dt { grid-column: 2; grid-row: 2; }
.fact-name .fv { grid-column: 2; grid-row: 3; }
.fact-name .fs { grid-column: 2; grid-row: 4; }

.photo {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
  align-self: center;
  aspect-ratio: 360 / 415;
  background: var(--mint);
  box-shadow: 6px 6px 0 var(--navy);
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* print registration marks, as on the hero stage */
.photo::before,
.photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 7px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 100% no-repeat;
}

.photo::before { left: 7px; }
.photo::after { right: 7px; }

.fact-connect {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-content: center;
  gap: 6px 24px;
}

.fact-connect dt {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.fact-connect a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font: 700 14px/1.25 var(--mono);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}

.fact-connect a:hover {
  background-size: 100% 2px;
}

.fact-connect .ic {
  width: 14px;
  height: 14px;
  color: var(--ink-orange);
}

/* ---------------- sections ---------------- */

.sec {
  padding: 0 var(--pad) 84px;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 56px;
  padding: 44px 0 22px;
  border-bottom: 1px solid currentColor;
}

.sec-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}


/* about a third of C's 300px poster titles */
.sec-head h2 {
  font: 900 clamp(56px, 6.8vw, 100px) / 0.8 var(--display);
  letter-spacing: -0.008em;
  text-transform: uppercase;
}

/* ---------------- experience ---------------- */

.sec-head-exp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
}

.timeline {
  width: 100%;
  max-width: 880px;
  justify-self: end;
}

.tl-track {
  position: relative;
  height: 74px;
  border-left: 1.5px solid var(--navy);
  border-right: 1.5px solid var(--navy);
  background: repeating-linear-gradient(90deg, rgba(20, 34, 55, 0.16) 0 1px, transparent 1px 12.5%);
}

.tl-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(20, 34, 55, 0.4);
}

.tl-seg {
  --top: 24px;
  position: absolute;
  top: var(--top);
  left: calc(var(--s) / 96 * 100%);
  width: calc(var(--w) / 96 * 100%);
  height: 12px;
  background: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s;
}

.tl-seg.lane-b {
  --top: 38px;
}

.tl-seg span {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.01em;
  color: var(--navy);
  white-space: nowrap;
}

.tl-seg.lane-b span {
  top: calc(100% + 6px);
  bottom: auto;
}

.tl-seg.tl-last span,
.tl-seg.tl-end span {
  left: auto;
  right: 0;
}

.tl-seg.tl-earlier {
  --top: 24px;
  height: 26px;
  background: repeating-linear-gradient(135deg, rgba(20, 34, 55, 0.55) 0 1.5px, transparent 1.5px 6px);
  box-shadow: inset 0 0 0 1px rgba(20, 34, 55, 0.5);
}

.tl-seg.tl-earlier span {
  color: var(--muted);
}

.tl-seg.is-hot {
  background: var(--orange);
  box-shadow: 0 0 0 1.5px var(--navy);
}

.tl-axis {
  position: relative;
  height: 18px;
  margin-top: 8px;
  font: 500 13px/1 var(--mono);
  color: var(--muted);
}

.tl-axis span {
  position: absolute;
  left: calc(var(--s) / 96 * 100%);
  padding-left: 5px;
}

.jobs {
  list-style: none;
  padding: 0;
}

.job {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 2.2fr) minmax(0, 3.3fr);
  gap: 0 36px;
  padding: 38px 0 42px;
  border-top: 1px solid var(--navy);
}

.jobs > li:first-child .job {
  border-top: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.job.is-hot::before {
  transform: scaleX(1);
}

.job-no,
.job-head {
  position: sticky;
  top: 28px;
  align-self: start;
}

/* one number style for every role */
.job-no {
  font: 900 72px/0.76 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink-orange);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
}

.job.is-hot .job-no {
  color: var(--navy);
  transform: translateX(8px);
}

.job-head h3 {
  margin-bottom: 16px;
  font: 800 clamp(30px, 2.9vw, 44px) / 0.93 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.company {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex: none;
}

.period {
  margin-top: 8px;
  font: 500 13px/1.3 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.bullets {
  list-style: none;
  padding: 0;
  max-width: 66ch;
}

.bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 16.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.bullets li + li {
  margin-top: 10px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 14px;
  height: 2px;
  background: var(--ink-orange);
}

.earlier {
  padding: 22px 0 0;
  border-top: 1px solid var(--navy);
  font-size: 16px;
  line-height: 1.55;
}

.earlier strong {
  margin-right: 8px;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------- navy wall: the one marquee + skills ---------------- */

.band-navy {
  padding-top: var(--frame);
  color: var(--paper);
}

.ticker {
  position: relative;
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--mint);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.no-motion .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
  list-style: none;
  padding: 0;
}

.ticker-group li {
  display: flex;
  align-items: center;
  font: 700 30px/1 var(--display);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ticker-group li::after {
  content: "";
  width: 9px;
  height: 9px;
  margin: 0 26px;
  background: var(--orange);
  transform: rotate(45deg);
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.sec-navy {
  padding: 0 calc(var(--frame) + var(--pad)) 92px;
}

.sec-navy .sec-head {
  border-color: var(--rule-navy);
  padding-top: 36px;
}

.sec-navy .sec-head h2 {
  color: var(--mint);
}


.skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr);
  gap: 14px 40px;
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule-navy);
}

.skill h3 {
  padding-top: 4px;
  font: 800 clamp(26px, 2.3vw, 34px) / 0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--mint);
  text-wrap: balance;
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.chips li {
  max-width: 100%;
  padding: 8px 12px 9px;
  border: 1.5px solid rgba(150, 232, 219, 0.45);
  font: 500 15px/1.3 var(--body);
  color: var(--on-navy);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chips li.k {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
  font-weight: 600;
}


/* ---------------- training (compact) ---------------- */

.training {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 40px;
  margin-top: 32px;
}

.cert {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 280px;
  padding: 22px 24px 24px;
  background: var(--navy);
  color: var(--mint);
  text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper-dim);
}

.cert-top .ic {
  width: 28px;
  height: 28px;
  color: var(--mint);
  transition: transform 0.35s var(--ease);
}

.cert-title {
  font: 900 clamp(40px, 4vw, 60px) / 0.88 var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.cert-meta {
  font: 500 13px/1.5 var(--mono);
  letter-spacing: 0.02em;
  color: var(--paper);
}


.cert:focus-visible {
  outline-color: var(--navy);
}

.courses-label {
  padding-bottom: 12px;
  font: 700 13px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  border-top: 1px solid var(--navy);
}

.course-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--navy);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left / 0% 100%;
  transition: background-size 0.45s var(--ease), padding 0.45s var(--ease);
}


.course-list .ic {
  width: 16px;
  height: 16px;
}

.edu {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 40px;
  border-top: 1px solid var(--navy);
}

.edu-item {
  padding-top: 18px;
}

.edu-item h3 {
  margin-bottom: 12px;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edu-item p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 58ch;
}

.edu-item .edu-big {
  font: 800 clamp(36px, 3.6vw, 52px) / 0.9 var(--display);
  text-transform: uppercase;
}

/* ---------------- contact (orange poster, no lines over the heading) ---------------- */

.contact {
  padding-bottom: 30px;
}

.sec-head-contact {
  padding-top: 18px;
  padding-bottom: 14px;
}


.contact-heading {
  position: relative;
  z-index: 2;
  padding: 30px 0 26px;
  font: 900 clamp(48px, 7.4vw, 112px) / 0.84 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.006em;
  max-width: 13.5em;
  text-wrap: balance;
}

/* the hero's line field returns as a cable between heading and email; no text sits on it */
.wire-band {
  position: relative;
  height: 112px;
  margin: 0 calc(var(--pad) * -1);
  border-top: 1px solid var(--navy);
}

.email-row {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--navy);
  padding-top: 14px;
}

.email-big {
  display: inline-block;
  max-width: 100%;
  font: 800 var(--email-size, 7.4vw) / 1 var(--display);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}

.email-big span {
  display: inline-block;
  padding: 0 0.06em 0.04em;
  margin-left: -0.06em;
  background: linear-gradient(var(--mint), var(--mint)) no-repeat left bottom / 0% 100%;
  transition: background-size 0.55s var(--ease);
}

.email-big:hover span,
.email-big:focus-visible span {
  background-size: 100% 100%;
}

.email-actions {
  margin: 18px 0 40px;
}

.contact-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr);
  border-top: 1px solid var(--navy);
}

.contact-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 6px 0;
  min-width: 0;
}

.contact-grid li + li {
  padding-left: 20px;
  border-left: 1px solid var(--navy);
}

.contact-grid a,
.contact-grid .c-text {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: break-word;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.contact-grid a:hover {
  text-decoration-thickness: 3px;
}

/* ---------------- footer ---------------- */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px calc(var(--frame) + var(--pad)) 26px;
  color: var(--paper-dim);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--paper);
  text-decoration: none;
}

.foot a:hover {
  color: var(--mint);
}

.foot-note {
  flex: 1 1 auto;
  max-width: 82ch;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
  text-wrap: balance;
}

/* ---------------- dock ---------------- */

.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--orange);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(10, 18, 30, 0.35);
  transform: translate(-50%, 160%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}

.dock.show {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.5s var(--ease), visibility 0s;
}

.dock-logo {
  padding: 0 10px 0 8px;
  font: 900 24px/1 var(--display);
  text-decoration: none;
}

.dock-link {
  padding: 12px 10px;
}

.dock-link::after {
  left: 10px;
  right: 10px;
  bottom: 6px;
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding: 11px 14px;
  background: var(--navy);
  color: var(--mint);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.dock-cta:hover {
  background: var(--mint);
  color: var(--navy);
}

.dock .dock-cta:focus-visible,
.dock :focus-visible {
  outline-color: var(--navy);
}

/* "Read it on the web" beside the PDF link: phones only, so the desktop contact grid keeps its height. */
.contact-grid .c-web { display: none; }

/* Sections button and menu: phones only (see the 640 px block); the menu needs the Popover API. */
.dock-index { display: none; }
.dock-menu { display: none; }
.dock-menu:popover-open { display: block; }

/* ---------------- motion: intro + reveal (C) ---------------- */

.intro .name-word {
  transform: translateY(108%);
  animation: intro-failsafe 0.01s linear 2.6s forwards;
}

.intro .name .ch {
  transform: translateY(108%);
}

.name .ch {
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.intro-run .name .ch {
  transform: none;
}

.intro-skip .name .ch,
.intro-skip .name-word {
  transition: none !important;
  transform: none !important;
}

@keyframes intro-failsafe {
  to { transform: none; }
}

.intro .note {
  opacity: 0;
  transform: translateY(14px);
}

.note {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.intro-run .note,
.intro-skip .note {
  opacity: 1;
  transform: none;
}

.intro-run .note-a { transition-delay: 0.9s; }
.intro-run .note-b { transition-delay: 1.05s; }

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}

.reveal-on [data-reveal].in {
  opacity: 1;
  transform: none;
}

@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;
    transition-delay: 0s !important;
  }

  .ticker-track {
    animation: none !important;
  }

  .pulse::after {
    display: none;
  }
}

.no-motion .pulse::after {
  animation: none;
  display: none;
}

/* Decorative hover effects only for devices with a real pointer: on touch screens a tap would
   leave them stuck (T-132, step 1f). */
@media (hover: hover) {
  .tl-seg:hover {
    background: var(--orange);
    box-shadow: 0 0 0 1.5px var(--navy);
  }

  .job:hover::before {
    transform: scaleX(1);
  }

  .job:hover .job-no {
    color: var(--navy);
    transform: translateX(8px);
  }

  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }

  .skill:hover h3 {
    color: var(--orange);
    transform: translateX(6px);
  }

  .chips li:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--navy);
  }

  .cert:hover {
    background: var(--orange);
    color: var(--navy);
  }

  .cert:hover .cert-top,
  .cert:hover .cert-meta,
  .cert:hover .cert-top .ic {
    color: var(--navy);
  }

  .cert:hover .cert-top .ic {
    transform: translate(4px, -4px);
  }

  .course-list a:hover {
    background-size: 100% 100%;
    padding-left: 10px;
  }
}

/* With motion off, anchor jumps (section links, the dock menu) land instantly. */
html.no-motion {
  scroll-behavior: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1500px) {
  .bar-nav .idx { display: none; }
}

@media (max-width: 1340px) {
  .fact-connect { grid-template-columns: auto; gap: 2px; }
}

@media (max-width: 1240px) {
  .fv { font-size: 26px; }
  .fact-name { grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; }
}

/* the header moves its nav (and the motion switch) to a second row */
@media (max-width: 1340px) {
  :root {
    --bar-h: 72px;
    --nav-h: 44px;
  }

  .bar {
    height: calc(var(--bar-h) + var(--nav-h));
    grid-template-columns: var(--bar-h) minmax(0, 1fr) auto auto;
    grid-template-rows: var(--bar-h) var(--nav-h);
  }

  .bar-logo { grid-column: 1; grid-row: 1; font-size: 34px; }
  .bar-avail { grid-column: 2; grid-row: 1; }
  .bar-time { grid-column: 3; grid-row: 1; }
  .bar-cta { grid-column: 4; grid-row: 1; min-width: 0; }

  .bar-nav {
    grid-column: 1 / 4;
    grid-row: 2;
    justify-content: space-between;
    padding: 0 var(--pad);
    border-top: 1px solid var(--navy);
  }

  .bar-motion {
    grid-column: 4;
    grid-row: 2;
    border-top: 1px solid var(--navy);
    border-right: 0;
  }

  .motion {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .motion-state { font-size: 22px; }
  .clock, .status, .bar-cta span { font-size: 26px; }
  .bar-nav .idx { display: inline; }
}

@media (max-width: 1100px) {
  :root {
    --bar-h: 64px;
  }

  .bar-cta { justify-content: center; padding: 0; }
  .bar-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-cta .ic { width: 26px; height: 26px; }
  .bar-cta .ic-arrow { display: none; }
  .bar-cta .ic-mail { display: block; }
  .bar-logo { font-size: 32px; }

  /* the switch sits under the mail button: label over switch */
  .motion {
    flex-direction: column;
    gap: 4px;
    padding: 0 8px;
  }
  .motion-row { gap: 0; }
  .motion-state { display: none; }
  .motion-label { font-size: 13px; letter-spacing: 0.02em; }
  .switch { width: 34px; height: 18px; }
  .switch i { width: 10px; height: 10px; top: 2px; left: 2px; }
  .motion[aria-checked="true"] .switch i { transform: translateX(16px); }

  .hero-info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "role lead"
      "avail lead"
      "tools tools";
  }

  .cell-lead { border-right: 0; }
  .cell-tools { border-top: 1px solid var(--navy); flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }

  .facts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fact-connect { grid-template-columns: auto auto; gap: 6px 24px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--navy); }

  .sec-head-exp { grid-template-columns: 1fr; }
  .timeline { max-width: none; justify-self: stretch; }

  .job {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "no head"
      "no list";
  }

  .job-no { grid-area: no; }
  .job-head { grid-area: head; margin-bottom: 22px; position: static; }
  .bullets { grid-area: list; }

  .skill { grid-template-columns: 1fr; }

  .training { grid-template-columns: 1fr; }
  .cert { min-height: 240px; }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact-grid li:nth-child(n + 3) { border-top: 1px solid var(--navy); }
  .contact-grid li { padding-bottom: 18px; }

  .dock-link { display: none; }
}

@media (max-width: 1100px) {
  .note-b { display: none; }
}

/* Tablet and small laptop: the tool rows put their labels in a left column and
   the buttons stack beside the block, so the full-width tools row stays short. */
@media (min-width: 641px) and (max-width: 1100px) {
  .tools-grid {
    flex: 1 1 420px;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 8px;
    align-items: baseline;
  }
  .tools-grid > div { display: contents; }
  .tools-grid dt { margin-bottom: 0; }
  .cell-tools .actions { flex: 0 1 250px; }
}

@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .poster-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .stage {
    flex: none;
    height: clamp(380px, 52vw, 540px);
  }
}

/* Landscape phones: the hero grows with its content and the stage keeps a real height, so the
   name and the portrait render (live before T-132: a 0 px stage at 667x375). */
@media (min-width: 641px) and (max-width: 1100px) and (orientation: landscape) and (max-height: 500px) {
  .poster-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .stage {
    flex: none;
    height: max(240px, calc(100svh - var(--bar-h) - var(--nav-h) - 2 * var(--frame)));
  }
}

@media (max-width: 640px) {
  :root {
    --frame: 6px;
    --pad: 16px;
    --bar-h: 56px;
    --nav-h: 46px;
  }

  .bar-cell { padding: 0 10px; gap: 2px; }
  .bar-logo { padding: 0; font-size: 28px; }
  .bar-nav { padding: 0 12px 0 var(--pad); gap: 8px; }
  /* Phone tap targets: at least 44px tall for the section links and the facts-strip links. */
  .bar-nav a { font-size: 13px; letter-spacing: 0.02em; padding: 0; min-height: 44px; display: inline-flex; align-items: center; }
  .fact dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .bar-nav .idx { display: none; }
  .clock, .status { font-size: 21px; }
  .status { gap: 8px; }
  .pulse { width: 9px; height: 9px; }
  .bar-avail .micro { display: none; }
  .bar-time .micro:first-child { display: none; }
  .bar-time .micro[data-offset] { display: none; }
  .bar-time .clock .ss { display: none; }
  .bar-time::before {
    content: "El Salvador";
    font: 500 13px/1.2 var(--mono);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .poster-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .stage {
    flex: none;
    height: clamp(330px, 103vw, 440px);
  }

  .stage::before, .stage::after { top: 8px; }
  .name {
    top: 30px;
    bottom: auto;
  }

  .portrait-slot {
    right: var(--pad);
    /* keep the top just under the name, but give the line portrait more rows */
    height: calc(100% - 124px);
  }

  .note { font-size: 21px; }
  /* Anchored to the stage's left padding (the slot's left edge is 20vw + 80px up to 427 px wide,
     100vw - 261px above that), so the note is never clipped at 360 to 375. */
  .note-a {
    top: auto;
    bottom: 26%;
    right: auto;
    left: min(calc(var(--pad) - 20vw - 80px), calc(277px - 100vw));
  }
  .note-a .scribble { width: 64px; margin-right: -18px; transform: rotate(-12deg); }
  .note-b { display: none; }

  /* Reading order on a phone: role, availability, the two buttons, then the lead and tool lists,
     so the work terms and the call to action sit in the first screen. */
  .hero-info {
    grid-template-columns: 1fr;
    grid-template-areas: "role" "avail" "lead" "tools";
  }

  .cell { padding: 16px var(--pad) 18px; border-right: 0; }
  .cell-role { padding-bottom: 14px; }
  .cell-lead { border-top: 1px solid var(--navy); }
  .cell-tools { flex-direction: column; align-items: stretch; gap: 14px; }
  .cell-tools .actions { order: -1; }
  .cell-avail { border-top: 0; padding-top: 0; padding-bottom: 18px; }
  .availability { font-size: 14px; line-height: 1.5; letter-spacing: 0; }
  .role { font-size: clamp(24px, 6.3vw, 30px); }
  .lead { font-size: 18px; line-height: 1.36; }
  .lead.lead-how { font-size: 16px; line-height: 1.5; }
  .tools-grid { font-size: 20px; }
  .actions .btn { flex: 1 1 auto; }

  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 14px var(--pad) 16px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--navy); }
  .fact:nth-child(3) { border-top: 1px solid var(--navy); }
  /* The hero already shows the name, the title and the languages: on phones the strip keeps
     the photo, the name, location, phone and LinkedIn (owner's choice, D-048). */
  .fact-name dt, .fact-name .fs, .fact-lang { display: none; }
  .fact-name { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; padding-top: 14px; padding-bottom: 16px; }
  .photo { box-shadow: 5px 5px 0 var(--navy); }
  .fact-connect { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .fv { font-size: 26px; }

  .sec { padding-bottom: 48px; }
  .sec-navy { padding: 0 calc(var(--frame) + var(--pad)) 48px; }
  .sec-head { padding-top: 28px; padding-bottom: 18px; }
  .sec-head h2 { font-size: 56px; line-height: 0.86; }
  .sec-head-contact { padding-top: 16px; }

  .timeline { margin-top: 6px; }
  .tl-seg span { font: 700 15px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }

  /* Job cards: the number sits beside the title, the company and dates read as a label. */
  .job {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "no head" "list list";
    column-gap: 14px;
    padding: 24px 0 28px;
  }

  .job-no { position: static; font-size: 48px; margin-bottom: 0; }
  .job-head { margin-bottom: 18px; }
  .job-head h3 { font-size: 28px; margin-bottom: 12px; }
  .company { font-size: 16px; }
  .period { font-size: 14px; }
  .bullets li { font-size: 16px; padding-left: 24px; }

  .ticker { height: 54px; }
  .ticker-group li { font-size: 25px; }
  .ticker-group li::after { margin: 0 18px; width: 7px; height: 7px; }

  /* Skills as a diamond-led list instead of boxed chips (every skill stays in the text). */
  .skill { gap: 10px; padding: 20px 0 22px; }
  .skill h3 { font-size: 26px; }
  .chips { gap: 6px 18px; }
  .chips li {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--on-navy);
  }
  .chips li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-bottom: 1px;
    background: var(--orange);
    transform: rotate(45deg);
  }
  .chips li.k { background: none; border: 0; color: var(--mint); font-weight: 700; }
  .chips li.k::before { background: var(--mint); }

  /* The eight courses as one inline run of links, as on /resume; one rule under them (the
     education block's top rule). */
  .course-list { display: block; padding-top: 12px; font-size: 16px; line-height: 1.7; }
  .course-list li { display: inline; }
  .course-list li::after { content: " · "; font-weight: 600; }
  .course-list li:last-child::after { content: none; }
  .course-list a {
    display: inline;
    min-height: 0;
    padding: 10px 0;
    border: 0;
    background: none;
    font-size: 16px;
    line-height: 1.7;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
  }
  .course-list .ic { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; }
  .edu { grid-template-columns: 1fr; }
  .edu-item + .edu-item { margin-top: 20px; border-top: 1px solid var(--navy); }
  .cert { min-height: 0; gap: 22px; padding: 18px 18px 20px; }
  .cert-title { font-size: 36px; }

  .contact-heading { font-size: clamp(44px, 12.4vw, 64px); padding: 24px 0 22px; }
  .wire-band { height: 84px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid li,
  .contact-grid li + li,
  .contact-grid li:nth-child(3) {
    padding: 14px 0 16px;
    border-left: 0;
    border-top: 1px solid var(--navy);
  }
  .contact-grid li:first-child { border-top: 0; }
  /* Touch targets: 44 px hit areas without moving the text. */
  .contact-grid a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .contact-grid .c-web { display: inline-flex; align-items: center; gap: 8px; margin-left: 18px; white-space: nowrap; }
  .email-big { padding-block: 8px; margin-block: -8px; }
  .dock-logo, .dock-cta, .dock-index, .foot a { min-height: 44px; }
  /* Timeline bars stay tappable on phones (a tap jumps to the role and flashes it); the hit area is padded
     to 44 px around the 12 px bar. */
  .timeline .tl-seg::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; bottom: -16px; }
  .tl-seg.tl-earlier { pointer-events: none; }
  .job { scroll-margin-top: 14px; }
  /* The bars draw in from the left, staggered by their year, when the chart scrolls into view; labels and the
     axis fade in after them. Static when motion is off or reduced. */
  .reveal-on .timeline .tl-seg {
    transform-origin: left center;
    transition: transform 0.7s var(--ease) calc(var(--s) * 7ms), background-color 0.2s;
  }
  .reveal-on .timeline .tl-seg span,
  .reveal-on .timeline .tl-axis span { transition: opacity 0.45s var(--ease) calc(var(--s) * 7ms + 0.45s); }
  .reveal-on .timeline:not(.tl-in) .tl-seg { transform: scaleX(0); }
  .reveal-on .timeline:not(.tl-in) .tl-seg span,
  .reveal-on .timeline:not(.tl-in) .tl-axis span { opacity: 0; }
  .reveal-on .timeline.tl-in .tl-seg { transform: none; }

  .foot { flex-wrap: wrap; padding-bottom: 28px; }
  .foot-note { order: 1; flex-basis: 100%; max-width: none; text-align: left; }

  /* The dock becomes a full-width strip on the frame: [◆ Sections] [Email Francisco →].
     The section links live in the Sections menu (a popover above the strip). */
  :root { --dock-h: 56px; }
  .dock {
    left: var(--frame);
    right: var(--frame);
    bottom: var(--frame);
    max-width: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    transform: translateY(160%);
  }
  .dock.show { transform: translateY(0); }
  .dock-logo { display: none; }
  .dock-cta {
    margin: 0;
    justify-content: center;
    min-height: var(--dock-h);
    padding: 0 14px;
    font-size: 14px;
  }
  .dock-index {
    align-items: center;
    gap: 10px;
    min-height: var(--dock-h);
    margin: 0;
    padding: 0 16px 0 14px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: 700 14px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }
  @supports selector(:popover-open) {
    .dock-index { display: inline-flex; }
  }
  .dock-dia {
    width: 10px;
    height: 10px;
    background: var(--orange);
    box-shadow: inset 0 0 0 1.5px var(--navy);
    transform: rotate(45deg);
  }
  .dock-index:focus-visible { outline-color: var(--navy); }

  .dock-menu {
    position: fixed;
    inset: auto;
    left: var(--frame);
    right: var(--frame);
    bottom: calc(var(--frame) + var(--dock-h) + env(safe-area-inset-bottom));
    z-index: 51;
    width: auto;
    max-width: none;
    max-height: calc(100svh - var(--dock-h) - 3 * var(--frame));
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--navy);
    border-bottom: 0;
    background: var(--orange);
    background-image: var(--grain);
    color: var(--navy);
    box-shadow: 0 10px 30px rgba(10, 18, 30, 0.35);
    overflow: auto;
  }
  .dock-menu::backdrop { background: rgba(10, 18, 30, 0.35); }
  .dock-menu ul { list-style: none; margin: 0; padding: 0; }
  .dock-menu li + li { border-top: 1px solid var(--navy); }
  .dock-menu a,
  .dock-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: 800 23px/1 var(--display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
  }
  .dock-menu .idx {
    width: 26px;
    flex: none;
    font: 700 13px/1 var(--mono);
    letter-spacing: 0.02em;
    color: var(--navy);
    opacity: 0.75;
  }
  .dock-menu .ic { width: 20px; height: 20px; margin-left: auto; }
  .dock-menu :focus-visible { outline-color: var(--navy); outline-offset: -4px; }

  /* ----- Readability pass (owner, 2026-10-14: "text is hard to read too packed on mobile"); phone only. ----- */


  /* 1. Hero tool lists (Build / Automate / AI & infrastructure).
        Before: Big Shoulders 800 20px on a 1.04 line height, 10px between groups, 4px after the label:
        13 lines of condensed running text at heading leading. Keep the poster face (the owner's grammar)
        but give it list leading, air between the groups and between the terms. */
  .cell-tools { gap: 22px; }
  .tools-grid { gap: 18px; font-size: 21px; line-height: 1.22; }
  .tools-grid dt { margin-bottom: 7px; }
  .tools-grid dd { word-spacing: 0.14em; }       /* widens the gap around each " · " without touching the text */

  /* 2. Hero availability line: 14px mono on orange, 3 lines of 34 characters. One step up and a looser line. */
  .availability { font-size: 15px; line-height: 1.6; }

  /* 3. Hero lead: 18px with 1.36 leading and -0.015em tracking read tight on a phone. Body-grade leading,
        tracking back to neutral; the "how I work" paragraph gets the same 1.55 and more separation. */
  .lead { line-height: 1.45; letter-spacing: -0.005em; }
  .lead.lead-how { margin-top: 1em; line-height: 1.55; }

  /* 4. Facts strip: the 13px mono sub-line goes to 14px (secondary text, but still text). */
  .fs { font-size: 14px; line-height: 1.5; }

  /* 5. Job cards: bullets keep 16px but move to 1.6 leading and 12px between items (WCAG 1.4.8 / 1.4.12
        territory); the dash follows the first line's new centre; a touch more air under the head. */
  .job-head { margin-bottom: 20px; }
  .bullets li { line-height: 1.6; }
  .bullets li + li { margin-top: 12px; }
  .bullets li::before { top: 0.78em; }
  .earlier { line-height: 1.6; padding-top: 24px; }

  /* 6. Skills: the inline run put two or three items on a line at ragged positions with a 6px row gap.
        Two fixed columns instead: a short skill takes half the width (min-width), so short pairs line up at
        x = 0 and x = 50%, and anything wider than a column sits alone on its own row at full width (no
        inner wrapping at 20 characters). Row gap 10px, 1.5 leading. The diamond and the mint keys stay.
        Measured cost: skills section +349px at 360, +395px at 390, +433px at 430 (one skill per row would
        have cost +645 / +725 / +831px). */
  .skill { gap: 12px; }
  .chips { gap: 10px 24px; }
  .chips li { display: flex; align-items: flex-start; gap: 10px; min-width: calc(50% - 12px); line-height: 1.5; }
  .chips li::before { margin: calc(0.75em - 3px) 0 0; }

  /* 7. Courses: the " · " run of underlined links broke titles across lines ("Build / Chatbots with
        Python", "Learn Node.js / ↗") and stacked 27px tap areas. Rows again, as on desktop: one link per
        row, 48px tall, a hairline under each, the arrow on the right. Underlines are no longer needed. */
  .course-list { line-height: 1.35; padding-top: 0; }
  .course-list li { display: block; }
  .course-list li::after { content: none; }
  .course-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0;
    border-bottom: 1px solid var(--navy);
    line-height: 1.35;
    text-decoration: none;
  }
  .course-list .ic { width: 16px; height: 16px; margin: 0; vertical-align: 0; }

  /* 8. Mono secondary lines on navy: 13px -> 14px. */
  .cert-meta { font-size: 14px; line-height: 1.55; }

  /* 9. Footer note: a 13-word sentence set in all caps with 0.03em tracking. Sentence case, one step up. */
  .foot-note { font-size: 14px; letter-spacing: 0.01em; text-transform: none; }

  /* ----- Second readability review (2026-10-14): fixes. ----- */
  /* Skills: the two-column trick paired only a quarter of the rows (a short item before a long one was left
     alone with the right half empty), so readers scanning the left edge skipped the right column. One item
     per row, a tighter row gap, and balanced wrapping for the long items. */
  .chips { row-gap: 8px; }
  .chips li { min-width: 100%; text-wrap: pretty; }
  /* The "Earlier" timeline label touched the axis line at 360. */
  .tl-earlier span { padding-left: 4px; }
  /* One rule between the last course row and the education block. */
  .course-list li:last-child a { border-bottom: 0; }
  /* The big email link was 42 px tall at 360. */
  .email-big { padding-block: 10px; margin-block: -10px; }
  /* ----- Regression review (2026-10-14): fixes. ----- */
  /* The PDF and "Read it on the web" links stack in one cell; their padded hit areas overlapped by 12 px and
     the later link won the taps on the lower third of the PDF link. Separate them; no indent. */
  .contact-grid .c-web { margin-left: 0; margin-top: 12px; }
  /* The bar must never push its Email cell past the frame (seen at 320 px). */
  .dock { grid-template-columns: auto minmax(0, 1fr); }
  .dock-cta { min-width: 0; }
  /* The skill diamond is a border, not a background, so it survives forced-colors mode. */
  .chips li::before { width: 0; height: 0; background: none; border: 3px solid var(--orange); }
  .chips li.k::before { border-color: var(--mint); }
}

@media (max-width: 380px) {
  .bar-cell { padding: 0 8px; }
  /* the clock's cell goes to the availability so "Available now" fits at 360 */
  .bar-time { display: none; }
  .bar-avail { grid-column: 2 / 4; }
  .status { font-size: 17px; gap: 6px; }
  .pulse { width: 7px; height: 7px; }
  .bar-nav { gap: 3px; padding: 0 6px 0 8px; }
  .bar-nav a { font-size: 12px; letter-spacing: 0; }
  /* the bottom bar at 320 px: Sections plus the Email cell must fit inside the frame */
  .dock-cta { font-size: 13px; padding: 0 10px; letter-spacing: 0.04em; }
}

@media print {
  .dock, .ticker, .signal, .wire-band, .bar-motion, .note, .skip-link { display: none !important; }
  body { background: #fff; }
  .poster, .hero-info { background: #fff !important; }
}

/* Approved orange palette and two-font refinement (2026-10-28). */
:root {
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: var(--body);
  --hand: var(--body);
  --grain: none;
  --orange: #ff5a1f;
  --navy: #20282C;
  --navy-deep: #171E22;
  --mint: #F1EBDD;
  --paper: #F4F0E8;
  --ink-orange: #9C4121;
  --muted: #505B60;
  --paper-dim: #C8CECA;
  --on-navy: #F4F0E8;
  --rule-navy: rgba(244,240,232,.24);
  --pulse: #F4F0E8;
}
/* Retain the poster composition; give information one consistent reading face. */
.note { font-family: var(--body); font-size: 22px; font-weight: 500; font-style: italic; }
.tools dd { font-family: var(--body); font-size: 16px; font-weight: 500; line-height: 1.45; }
.micro, .idx, .actions .btn, .availability, .timeline, .contact-grid { letter-spacing: 0.015em; }
@media(max-width:640px) {
 .note { font-size: 20px; }
 .tools dd { font-size: 17px; line-height: 1.5; }
}

/* Comfortable reading sizes for the supporting information. */
.tools-grid dt, .period, .cert-meta, .courses-label, .edu-item h3 {
  font-size: 14px;
  line-height: 1.45;
}
.btn { font-size: 14px; letter-spacing: 0.015em; }
/* Neutral outlines complete the removal of the secondary mint accent. */
.chips li { border-color: rgba(241, 235, 221, 0.36); }
.chips li.k { border-color: var(--mint); }
/* The phone menu sits on orange; use ink rather than cream for its focus ring. */
.dock-index:focus-visible,
.dock-menu :focus-visible {
  outline-color: var(--navy);
  outline-offset: -4px;
}

/* Give multi-line poster headings room without changing their display face. */
.role, .job-head h3 { line-height: 1.05; }
.skill h3 { line-height: 1.08; }
.cert-title { line-height: 1.02; }
.lead { line-height: 1.38; }
.availability { font-size: 14px; }
.period { letter-spacing: 0; }
.company { line-height: 1.4; letter-spacing: 0.02em; }
.clock, .tl-axis { font-variant-numeric: tabular-nums; }
/* Retain contrast when orange controls are hovered or keyboard-focused. */
.motion:hover { background: var(--mint); }
.bar-cta:hover:focus-visible { outline-color: var(--navy); }
.dock-menu .idx { opacity: 1; }
@media (max-width: 640px) {
  .lead { line-height: 1.5; }
  .lead.lead-how { line-height: 1.55; }
  .availability { font-size: 15px; }
}
/* Keep the availability label inside its framed phone-header cell. */
@media (min-width: 381px) and (max-width: 420px) {
  .status { font-size: 17px; gap: 6px; }
  .pulse { width: 7px; height: 7px; }
}

/* Keep all four navigation links inside their cell on the narrowest phones. */
@media (max-width: 340px) {
  .motion { padding-inline: 4px; }
  .bar-nav { padding-left: 4px; gap: 2px; }
}
