/* ==========================================================================
   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;
}

:root {
  --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(--navy);
  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, 1.05fr) minmax(0, 1.3fr) minmax(0, 1fr);
  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;
}

.role {
  font: 800 clamp(30px, 2.9vw, 44px) / 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: 30ch;
  text-wrap: pretty;
}

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

.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;
}

.sec-idx {
  padding-top: 4px;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.04em;
}

/* 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:hover,
.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:hover::before,
.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:hover .job-no,
.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;
}

.ticker:hover .ticker-track,
.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);
}

.sec-navy .sec-idx {
  color: var(--paper-dim);
}

.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);
}

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

.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;
}

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

/* ---------------- 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: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);
}

.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 a:hover {
  background-size: 100% 100%;
  padding-left: 10px;
}

.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;
}

.sec-head-contact .sec-idx {
  padding-top: 0;
}

.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);
}

/* ---------------- 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);
}

/* ---------------- 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;
}

/* ==========================================================================
   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; }

  .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; }
}

@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);
  }
}

@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);
  }

  .name {
    top: 18px;
    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; }
  .note-a {
    top: auto;
    bottom: 26%;
    right: 92%;
  }
  .note-a .scribble { width: 64px; margin-right: -18px; transform: rotate(-12deg); }
  .note-b { display: none; }

  .hero-info {
    grid-template-columns: 1fr;
    grid-template-areas: "role" "lead" "tools" "avail";
  }

  .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-avail { border-top: 1px solid var(--navy); padding-top: 12px; }
  .role { font-size: 30px; }
  .lead { font-size: 19px; line-height: 1.32; }
  .tools { font-size: 26px; }
  .actions .btn { flex: 1 1 auto; }

  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 16px var(--pad) 18px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--navy); }
  .fact:nth-child(3) { border-top: 1px solid var(--navy); }
  .fact-name { grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; padding-top: 18px; padding-bottom: 20px; }
  .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: 60px; }
  .sec-navy { padding: 0 calc(var(--frame) + var(--pad)) 64px; }
  .sec-head { padding-top: 34px; }
  .sec-head h2 { font-size: 56px; }
  .sec-head-contact { padding-top: 16px; }

  .timeline { margin-top: 6px; }

  .job {
    grid-template-columns: 1fr;
    grid-template-areas: "no" "head" "list";
    padding: 28px 0 32px;
  }

  .job-no { position: static; font-size: 56px; margin-bottom: 12px; }
  .job-head { margin-bottom: 18px; }
  .job-head h3 { font-size: 32px; margin-bottom: 12px; }
  .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; }

  .skill { padding: 22px 0 24px; }
  .skill h3 { font-size: 28px; }
  .chips li { font-size: 14.5px; padding: 7px 10px 8px; }

  .course-list { grid-template-columns: 1fr; }
  .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; }

  .foot { flex-wrap: wrap; padding-bottom: 90px; }

  .dock { bottom: 10px; max-width: calc(100vw - 20px); }
}

@media (max-width: 380px) {
  .clock, .status { font-size: 19px; }
  .bar-cell { padding: 0 8px; }
  .bar-nav a { letter-spacing: 0; }
}

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