/* Brilliqs — Sales JD portal
   Layout system ported from emberlan/challenge-portal (hard 2px rules, offset
   shadows, numbered badges, alternating mist sections, marquee ribbon).
   Re-skinned to Brilliqs: navy ink + one accent (brand blue #3366FF), no
   secondary palette — brand law is "brand blue on light grounds", nothing else.
   Type stack is the Brilliqs deck's: Source Serif 4 display, Inter body,
   JetBrains Mono for labels. */

/* ---------- fonts (self-hosted; the PDF export must not need a network) ---------- */

@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: block;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-opsz-normal.woff2?v=f2ea9c12d2) format('woff2-variations');
  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: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: block;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-ext-opsz-normal.woff2?v=155f6e7010) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: italic;
  font-display: block;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-opsz-italic.woff2?v=96e6393209) format('woff2-variations');
  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: 'Inter Variable';
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2?v=3100e775e8) format('woff2-variations');
  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: 'Inter Variable';
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2?v=34b9c504ca) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: block;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-italic.woff2?v=7291b5970d) format('woff2-variations');
  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 Variable';
  font-style: normal;
  font-display: block;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2?v=18be452724) format('woff2-variations');
  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;
}

/* ---------- tokens ---------- */

:root {
  --ink: #0A2540;
  --ink-soft: #2B4768;
  --slate: #6B7689;
  --slate-light: #8FA0B8;

  --blue: #3366FF;          /* brand blue of record (CLAUDE.md non-negotiable #3) */
  --blue-deep: #1E3FB0;
  --blue-tint: #E4ECFF;
  --blue-wash: #EEF2FF;

  --paper: #FFFFFF;
  --mist: #F4F6FA;
  --line: #D7DBE2;
  --line-strong: #C0CCE0;

  --radius: 4px;
  --serif: 'Source Serif 4 Variable', Georgia, serif;
  --sans: 'Inter Variable', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell: 940px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
  font-optical-sizing: auto;
}

strong { font-weight: 650; color: var(--ink); }
em { font-style: italic; }
::selection { background: var(--blue-tint); color: var(--ink); }

/* the label primitive — mono, uppercase, wide-tracked. Carried from the deck. */
.label {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.head-logo { display: flex; align-items: center; color: var(--blue); }
.head-logo svg { height: 26px; width: auto; display: block; }
.head-right { display: flex; align-items: center; gap: 18px; }
.head-role {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.head-back {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.head-back::before { content: "\2039"; margin-right: 6px; }
.head-back:hover { border-bottom-color: var(--blue); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 26px;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  transform: translateX(-101%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ink:hover::after { transform: translateX(0); }
.btn-ink:hover { border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-small { padding: 8px 16px; font-size: 13.5px; }
.bl-short { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 28px 68px;
  display: flex;
  align-items: center;
  min-height: 76vh;
}
/* the bq monogram plays the role the Synthesys crescents played in the source
   design — the identity mark as the hero's only ornament */
.hero-mark {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  height: min(560px, 66vh);
  width: auto;
  color: var(--blue);
  opacity: 0.09;
  pointer-events: none;
}
.hero-inner { max-width: var(--shell); margin: 0 auto; width: 100%; position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.tick { width: 26px; height: 3px; background: var(--blue); display: inline-block; flex: none; }

.hero-title {
  font-size: clamp(46px, 6.6vw, 82px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: 26px;
  max-width: 15ch;
}
.ht-line { display: block; }
.hl-accent { position: relative; white-space: nowrap; }
.hl-sweep {
  position: absolute;
  /* 0.17em ≈ Source Serif's descender depth, so the band's top edge lands on
     the baseline and reads as a highlight rather than a detached rule */
  left: -0.04em; right: -0.04em; bottom: 0.17em;
  height: 0.20em;
  background: var(--blue-tint);
  z-index: -1;
  transform-origin: left center;
  /* resting state is drawn — with JS off (no .js on <html>) the sweep is simply
     there. The animated-from-zero state only exists once JS arms it. */
  transform: scaleX(1);
}
.js .hl-sweep {
  transform: scaleX(0);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.js .hero-title.in .hl-sweep { transform: scaleX(1); }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.46;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 34px;
}
.hero-sub .accent { color: var(--blue); font-weight: 600; font-style: italic; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

/* the fact strip replaces the source design's prize badge + countdown row */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
  max-width: 700px;
}
.hf-cell { padding: 14px 20px; border-right: 1px solid var(--line); min-width: 0; }
.hf-cell:last-child { border-right: 0; }
.hf-key {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.hf-val { font-size: 15.5px; font-weight: 550; line-height: 1.35; }

/* ---------- ribbon ---------- */

.ribbon {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 11px 0;
  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
}
.ribbon-track {
  display: flex;
  /* max-content, not the default 100%: the loop shifts by -50% of the TRACK,
     which only equals exactly one copy if the track is as wide as its content */
  width: max-content;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  will-change: transform;
  animation: ribbon 38s linear infinite;
}
/* child combinator throughout: the marquee copies are direct children, but the
   `·` separators are spans too, one level deeper */
.ribbon-track > span { flex-shrink: 0; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon .dot { color: var(--blue); padding: 0 4px; }

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

.section { padding: 84px 28px; }
.section-mist { background: var(--mist); }
.section-inner { max-width: var(--shell); margin: 0 auto; }

.sec-head { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.sec-mark { height: 34px; width: auto; flex: none; color: var(--blue); }
.sec-head h2 {
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.022em;
}
.sec-rule { width: 88px; height: 3px; background: var(--blue); border: 0; margin: 0 0 30px; }
.sec-lede { margin-bottom: 26px; font-size: 18px; color: var(--ink-soft); max-width: 62ch; }

.lead-copy p { font-size: 18.5px; max-width: 64ch; margin-bottom: 16px; color: var(--ink-soft); }
.lead-copy p:last-child { margin-bottom: 0; }
.lead-copy strong { color: var(--ink); }

/* ---------- callout box (the source design's "fairbox") ---------- */

.callout {
  display: flex;
  margin-top: 40px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--blue);
}
.callout-band { width: 12px; flex: none; background: var(--blue); }
.callout-body { padding: 26px 30px; min-width: 0; }
.callout-body h3 { font-size: 23px; margin-bottom: 12px; }
.callout-body p { margin-bottom: 11px; max-width: 62ch; color: var(--ink-soft); }
.callout-body p:last-child { margin-bottom: 0; }
.callout-quiet { box-shadow: none; background: var(--blue-wash); }
.callout-quiet .callout-band { background: var(--blue); }

/* ---------- architecture diagram ---------- */

.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 8px;
}
.arch-node {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.02em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 13px 34px;
  text-align: center;
}
.arch-node .arch-tag {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 5px;
}
.arch-self { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--blue); }
.arch-self .arch-tag { color: var(--blue-tint); }
.arch-link { width: 3px; height: 30px; background: var(--line-strong); }
.arch-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.arch-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--paper);
  padding: 7px 16px;
}

/* ---------- openings cards ----------
   Structure ported from lifeatflytbase.com/openings. The thing worth taking is
   not their skin — it is that every variable-length zone carries a min-height
   floor (title / blurb / tags) and the button is pushed down with margin-top:
   auto. That is what makes a row of cards align band-to-band instead of only
   agreeing on their outer edges. Their numbers: 3rem / 4.5rem / 2.5rem, blurb
   clamped to 3 lines, 368px columns at 24px gap. */

.openings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.opening {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 26px 24px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.opening:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--blue);
}

/* title floor — two-line titles must not push a one-line card's blurb up */
.op-title {
  font-size: 21px;
  line-height: 1.2;
  min-height: 3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}
.opening:hover .op-title { color: var(--blue-deep); }

.op-blurb {
  min-height: 4.5rem;
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  /* three lines, then ellipsis — the card teases, the JD page tells */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.op-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.op-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.op-row svg { width: 15px; height: 15px; flex: none; color: var(--blue); }
.op-row span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-tags { min-height: 2.5rem; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.op-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-wash);
  border: 1px solid var(--blue-tint);
  border-radius: 3px;
  padding: 5px 9px;
  line-height: 1;
}

/* mt:auto is what pins the button to the card floor regardless of body length */
.op-foot { margin-top: auto; }
.op-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.op-cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  transform: translateX(-101%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.opening:hover .op-cta::after { transform: translateX(0); }
.opening:hover .op-cta { border-color: var(--blue); }
.op-cta svg { width: 15px; height: 15px; }

/* a role whose full JD is not written yet: card is real, the door is not open */
.opening-soon { cursor: default; }
.opening-soon:hover { transform: none; box-shadow: none; }
.opening-soon:hover .op-title { color: inherit; }
.op-cta-soon {
  background: var(--paper);
  color: var(--slate);
  border-color: var(--line-strong);
}
.op-cta-soon::after { display: none; }

/* closing "nothing fits?" panel */
.open-app {
  margin-top: 34px;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.open-app h3 { font-size: 21px; margin-bottom: 6px; }
.open-app p { color: var(--ink-soft); font-size: 16px; max-width: 52ch; }

/* ---------- fact list (marker list) ---------- */

.fact-list { list-style: none; max-width: 68ch; }
.fact-list li {
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list li::before {
  content: "";
  position: absolute; left: 4px; top: 25px;
  width: 10px; height: 10px;
  background: var(--blue);
  /* one corner squared off — the mark reads as a pointer, not a bullet */
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

/* ---------- trait cards (the source design's numbered test grid) ---------- */

/* explicit columns, not auto-fit: the trait count is odd, so the last card is
   told to fill the remainder rather than leaving a ragged half-row */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.trait-grid .trait-card:last-child { grid-column: 1 / -1; }
@media (max-width: 1080px) {
  .trait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.trait-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px 22px 22px;
  position: relative;
}
.tc-num {
  position: absolute; top: -15px; left: 18px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--blue);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 4px 9px;
  line-height: 1;
}
.trait-card h3 { font-size: 20px; margin: 6px 0 9px; }
.trait-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.56; }

/* ---------- "not needed" list ---------- */

.notneed { margin-top: 46px; }
.notneed h3 { font-size: 23px; margin-bottom: 16px; }
.nn-list { list-style: none; max-width: 66ch; }
.nn-list li {
  padding: 13px 0 13px 40px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.nn-list li:last-child { border-bottom: 0; }
.nn-list li::before {
  content: "";
  position: absolute; left: 6px; top: 26px;
  width: 16px; height: 2px;
  background: var(--blue);
}

/* ---------- accordions (kept from the source design's category list) ---------- */

.acc-list { display: flex; flex-direction: column; gap: 12px; }
.acc {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.acc summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  padding: 15px 22px;
  user-select: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sans);
  font-weight: 400; font-size: 26px; color: var(--blue);
  line-height: 1;
  transition: transform 0.2s ease;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc[open] summary { background: var(--blue-wash); }
.acc-n {
  font-family: var(--mono);
  font-weight: 600; font-size: 11.5px;
  flex: none;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--paper);
  line-height: 1;
}
.acc p { padding: 0 22px 16px; max-width: 68ch; color: var(--ink-soft); font-size: 16px; }
.acc p:first-of-type { padding-top: 15px; }
.acc-cap {
  font-family: var(--mono);
  font-weight: 400; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate);
  margin-left: 2px;
}

/* ---------- timeline (hiring process) ---------- */

.timeline { position: relative; margin: 32px 0 10px; }
/* 12.5% == the centre of the first and last of four equal columns, so the rule
   starts and ends exactly on a dot */
.tl-line {
  position: absolute; top: 11px; left: 12.5%; right: 12.5%;
  height: 3px; background: var(--line);
}
.tl-line-fill { height: 100%; width: 0; background: var(--blue); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tl-node { text-align: center; }
.tl-dot {
  display: block; margin: 0 auto 15px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--paper);
  position: relative; z-index: 2;
}
.tl-dot-hot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px var(--blue-tint); }
.tl-node h3 { font-size: 18px; margin-bottom: 3px; }
.tl-node p { font-size: 14.5px; color: var(--slate); line-height: 1.5; }
.tl-step {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 5px;
}
.tl-note { margin-top: 30px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- deal rows (the source design's prize rows) ---------- */

.deal-list { list-style: none; border-top: 2px solid var(--ink); }
.deal-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 6px;
  border-bottom: 2px solid var(--ink);
}
.dr-num {
  font-family: var(--mono);
  font-weight: 600; font-size: 13px;
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--blue); color: var(--paper);
}
.dr-body { flex: 1; min-width: 0; }
.dr-body h3 { font-size: 21px; margin-bottom: 5px; }
.dr-body p { color: var(--ink-soft); font-size: 16px; }

/* ---------- apply / rules ---------- */

.section-apply { background: var(--mist); border-top: 3px solid var(--ink); }

.rule-list { list-style: none; counter-reset: rule; max-width: 70ch; }
.rule-list li {
  counter-increment: rule;
  padding: 20px 0 20px 60px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before {
  content: "0" counter(rule);
  position: absolute; left: 0; top: 20px;
  font-family: var(--mono);
  font-weight: 600; font-size: 12px;
  width: 40px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.rule-list li h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
/* scoped to `.rule-list li` — the base rule is (0,1,1) and would otherwise
   out-specify a bare `.rule-hero`, silently dropping the padding */
.rule-list li.rule-hero {
  background: var(--paper);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-bottom: 0;
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--blue);
  padding: 22px 24px 22px 72px;
  margin: 14px 0 18px;
}
.rule-list li.rule-hero::before { background: var(--blue); color: var(--paper); border-color: var(--blue); left: 16px; top: 22px; }

.tipbox {
  display: flex; gap: 18px; align-items: flex-start;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--paper);
  max-width: 74ch;
  margin-top: 30px;
}
.tip-label {
  font-family: var(--mono);
  font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--blue); color: var(--paper);
  padding: 5px 12px; border-radius: var(--radius);
  flex: none;
  margin-top: 2px;
}
.tipbox div p { color: var(--ink-soft); margin-bottom: 9px; font-size: 16px; }
.tipbox div p:last-child { margin-bottom: 0; }

.closing {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.4;
  max-width: 40ch;
}
.closing .accent { color: var(--blue); }

/* the contact block — where an application actually goes.
   Same three-cell rule as the hero fact strip, so the page opens and closes
   on the same object. */
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
}
.ct-item { min-width: 0; padding: 18px 24px; border-right: 1px solid var(--line); }
.ct-item:last-child { border-right: 0; }
.ct-key {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 4px;
}
.ct-val { font-size: 17px; font-weight: 550; }
/* the address is long enough to overrun a third of the strip at body size */
.ct-val { overflow-wrap: anywhere; }
.ct-val a { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--blue-tint); }
.ct-val a:hover { border-bottom-color: var(--blue); }

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

.site-foot {
  background: var(--ink);
  color: var(--slate-light);
  padding: 52px 28px 58px;
  text-align: center;
}
.foot-logo { height: 30px; width: auto; color: var(--paper); margin-bottom: 18px; }
.site-foot p { font-size: 15px; margin-bottom: 8px; }
.site-foot strong { color: var(--paper); }
.foot-small { color: var(--slate); font-size: 13px; max-width: 60ch; margin: 14px auto 0; line-height: 1.55; }
.foot-div { color: var(--blue); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- reveals (JS adds .js; without JS everything stays visible) ---------- */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- responsive ---------- */

@media (max-height: 900px) {
  .hero { min-height: auto; padding: 52px 28px 56px; }
  .hero-title { font-size: clamp(42px, 5.6vw, 66px); margin-bottom: 20px; }
  .hero-sub { margin-bottom: 26px; }
  .hero-cta { margin-bottom: 32px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }

  .site-head { padding: 10px 16px; gap: 10px; }
  .head-logo svg { height: 22px; }
  .head-role { display: none; }
  .head-back { font-size: 10px; letter-spacing: 0.1em; }

  .openings { grid-template-columns: 1fr; gap: 18px; }
  .opening { min-height: 0; padding: 22px 18px 20px; }
  .opening:hover { transform: none; box-shadow: none; }
  .op-title { font-size: 19px; min-height: 0; }
  .op-blurb { min-height: 0; }
  .op-tags { min-height: 0; }
  .open-app { flex-direction: column; align-items: flex-start; padding: 20px 18px; }
  .open-app .btn { width: 100%; text-align: center; }
  .bl-long { display: none; }
  .bl-short { display: inline; }

  .hero { padding: 40px 20px 44px; min-height: auto; }
  .hero-mark { opacity: 0.06; right: -18vw; height: 52vh; }
  .hero-title { font-size: clamp(38px, 10vw, 56px); max-width: none; }
  .hero-sub { font-size: 18px; max-width: none; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; padding: 15px 20px; }
  .hero-facts { grid-template-columns: 1fr; box-shadow: 4px 4px 0 var(--blue); }
  .hf-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .hf-cell:last-child { border-bottom: 0; }

  .ribbon-track { font-size: 11px; }

  .section { padding: 52px 18px; }
  .sec-head { gap: 12px; }
  .sec-head h2 { font-size: 27px; }
  .sec-mark { height: 27px; }
  .sec-rule { margin-left: 39px; width: 64px; margin-bottom: 24px; }
  .lead-copy p { font-size: 17px; }

  .callout { flex-direction: column; box-shadow: 5px 5px 0 var(--blue); }
  .callout-band { width: 100%; height: 10px; }
  .callout-body { padding: 20px 18px; }
  .callout-body h3 { font-size: 20px; }

  .arch-node { font-size: 20px; padding: 12px 22px; }
  .fact-list li { padding: 13px 0 13px 28px; }
  .fact-list li::before { left: 0; top: 23px; }

  .trait-grid { grid-template-columns: 1fr; gap: 26px; }
  .trait-card { padding: 22px 18px 18px; }

  .deal-row { flex-wrap: wrap; gap: 14px; padding: 18px 4px; }
  .dr-num { width: 38px; height: 38px; font-size: 12px; }

  .contact { grid-template-columns: 1fr; box-shadow: 4px 4px 0 var(--blue); }
  .ct-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .ct-item:last-child { border-bottom: 0; }

  .tl-line { display: none; }
  .tl-nodes { grid-template-columns: 1fr; gap: 20px; }
  .tl-node { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; text-align: left; }
  .tl-dot { grid-row: 1 / span 3; width: 18px; height: 18px; border-width: 3px; margin: 4px 0 0; }
  .tl-step, .tl-node h3, .tl-node p { grid-column: 2; }

  .rule-list li { padding: 18px 0 18px 52px; }
  .rule-list li.rule-hero { padding: 18px 16px 18px 60px; box-shadow: 4px 4px 0 var(--blue); }
  .rule-list li.rule-hero::before { left: 12px; top: 18px; }
  .tipbox { flex-direction: column; gap: 12px; padding: 18px; }
  .closing { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hl-sweep, .hl-sweep { transition: none; transform: scaleX(1); }
}

/* ---------- print / PDF ----------
   The export runs Chrome's print pipeline, so this block is what the PDF is.
   Rules that only matter on screen (sticky, marquee, reveal) are undone here. */

@page {
  size: A4;
  margin: 14mm 13mm 15mm;
}

@media print {
  html, body { overflow: visible; }
  body { font-size: 10.2pt; line-height: 1.5; }

  /* Chrome lays print out at the page width (~793px for A4), so the 820px
     "mobile" breakpoint is live here. Anything that block-stacks below 820px
     has to be put back explicitly. */

  .site-head { position: static; backdrop-filter: none; background: var(--paper); padding: 0 0 9px; margin-bottom: 18px; }
  .head-logo svg { height: 22px; }
  .head-role { display: block; }
  .head-cta { display: none; }

  .hero { min-height: 0; padding: 2px 0 20px; }
  /* the watermark can only be cropped by the page edge here, and a part-drawn
     monogram reads as a printing artifact — drop it */
  .hero-mark { display: none; }
  .hero-inner { max-width: none; }
  .hero-title { font-size: 30pt; margin-bottom: 12px; max-width: none; }
  .hero-sub { font-size: 12pt; margin-bottom: 18px; max-width: none; }
  .hero-cta { display: none; }
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-shadow: 4px 4px 0 var(--blue);
    max-width: none;
  }
  .hf-cell { border-right: 1px solid var(--line); border-bottom: 0; padding: 11px 15px; }
  .hf-cell:last-child { border-right: 0; }
  .hf-val { font-size: 10.5pt; }
  .js .hl-sweep, .hl-sweep { transform: scaleX(1) !important; transition: none; }

  /* wrap rather than clip: the marquee's max-content track is wider than A4,
     and overflow:hidden would silently cut the line in half */
  .ribbon { padding: 6px 0; }
  .ribbon-track {
    animation: none;
    width: 100%;
    white-space: normal;
    justify-content: center;
    font-size: 7pt;
    letter-spacing: 0.12em;
  }
  /* hide the duplicate marquee copy — `>` matters: a descendant selector here
     also matches the `·` separator spans and silently eats three of them */
  .ribbon-track > span:nth-child(n + 2) { display: none; }

  .section { padding: 18px 0; }
  .section-inner { max-width: none; }
  .section-mist, .section-apply { background: var(--paper); border-top: 0; }
  .sec-head { margin-bottom: 8px; }
  .sec-head h2 { font-size: 18pt; }
  .sec-mark { height: 24px; }
  .sec-rule { margin-bottom: 18px; width: 64px; }
  .sec-lede { font-size: 10.6pt; margin-bottom: 16px; }
  .lead-copy p { font-size: 10.6pt; margin-bottom: 11px; }

  .trait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .trait-card { padding: 16px 16px 14px; }
  /* the badge overhangs the card by 15px, and Chrome does not fold an
     absolutely-positioned child into the break-inside box — so it strands on
     the previous page. Inline it for print. */
  .tc-num { position: static; display: inline-block; margin-bottom: 7px; }
  .trait-card h3 { font-size: 13pt; margin: 0 0 5px; }
  .trait-card p { font-size: 9.6pt; }

  /* the min-height floors exist to align cards in a live grid; on paper they
     just leave holes, and the 3-line clamp would hide copy the reader cannot
     click through to */
  .openings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .opening { min-height: 0; padding: 16px; }
  .op-title, .op-blurb, .op-tags { min-height: 0; }
  .op-blurb { display: block; overflow: visible; }
  .op-cta { display: none; }
  .head-back { display: none; }

  .opening, .open-app { break-inside: avoid; }
  .trait-card, .callout, .acc, .deal-row, .tipbox, .contact, .hero-facts, .arch-node, .arch { break-inside: avoid; }
  .fact-list li, .nn-list li, .rule-list li, .tl-node, .notneed, .timeline { break-inside: avoid; }
  .sec-head, .sec-rule, .sec-lede { break-after: avoid; }
  h2, h3, h4 { break-after: avoid; }

  .callout { margin-top: 20px; }
  .callout-body { padding: 16px 20px; }
  .callout-body h3 { font-size: 13.5pt; margin-bottom: 8px; }

  .acc p { display: block !important; }
  .acc summary::after { display: none; }

  .tl-line { display: none; }
  .tl-nodes { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .tl-node { display: block; text-align: center; }
  .tl-dot { margin: 0 auto 10px; }
  .tl-node h3 { font-size: 11.5pt; }
  .tl-node p { font-size: 9.4pt; }

  .contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-shadow: 4px 4px 0 var(--blue);
  }
  .ct-item { border-right: 1px solid var(--line); border-bottom: 0; padding: 14px 18px; }
  .ct-item:last-child { border-right: 0; }

  .js .reveal { opacity: 1 !important; transform: none !important; }

  .site-foot { padding: 22px 0 0; background: var(--paper); color: var(--slate); text-align: left; }
  .foot-logo { color: var(--blue); height: 22px; margin-bottom: 10px; }
  .site-foot strong { color: var(--ink); }
  .foot-small { margin-left: 0; }

  a { text-decoration: none; color: inherit; }
  .ct-val a { color: var(--blue); }
}
