/* Hallmark · checked: 2026-10-28 · genre: editorial (inferred)
 * floor: 0 FAIL · fixed: 10 (7a, 10b, 19, 26b, 30a, 34, 48, 50, 62, 63) · structural: 4 printed (44b, 1, 58, F15)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · kept "Made with" and the heart in the footer · the owner asked for it, now a lime SVG heart instead of the ♥ glyph */
/* Hallmark · dropped employer.html, ./ · the owner keeps the candidate and employer pages apart, /employer is reached only by its address */
/* Hallmark · kept the numbered section labels with the lime dot (54, 67) · the owner asked for them back: they carry the site's lime dots */
/* Hallmark · dismissed F15 · the polish keeps the layout of both pages, so the six column gaps are printed for a deeper pass */
/* Hallmark · dismissed 3 · the two side borders draw the bars of the intro pause icon, not a stripe on a card */
/* Hallmark · dismissed 25 · the 34ch steps hold one-sentence captions under each step title */
/* Hallmark · dismissed 49 · the specialization names are full-width accordion headings, a second line at 320px is the heading wrapping */
/* Wise Recruitment: shared styles for index.html and employer.html.
   Light editorial: off-white paper, graphite dots, black type, grey hairlines.
   Colours live in the tokens below; animation.js reads --bg, --dot, --core, --arc and --glow too. */

/* Mona Sans (SIL OFL, see assets/fonts/wise-display-LICENSE.txt), condensed, one variable file for weights 200 to 900:
   the big word of the intro and the "wise" of the footer */
@font-face {
  font-family: "Wise Display Var";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/wise-display-var.woff2") format("woff2");
}

@font-face {
  font-family: "MuseoModerno";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/museomoderno-500-latin.woff2") format("woff2");
}

:root {
  --bg: #F5F5F2;          /* warm off-white */
  --paper: #EDEDE8;       /* slightly deeper panels */
  --ink: #171717;         /* text */
  --muted: #6F6F6C;       /* secondary text */
  --faint: #A3A3A0;
  --line: rgba(23, 23, 23, 0.14);
  --line-strong: rgba(23, 23, 23, 0.32);
  --error: #B42318;
  --error-wash: rgba(180, 35, 24, 0.06);   /* the form error panel */
  --ink-deep: #0B0B0A;    /* button hover: a step darker than --ink, tinted like it */

  --dot: #252525;         /* particles: dark graphite */
  --core: #252525;
  --arc: #A3A3A0;         /* connection arcs */
  --glow: 0;              /* flat dots, no glow */
  --accent: #BDD98A;      /* soft lime: only the rare accent dots in the animation and the dots by the section labels */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  /* Left and right edge of the page content (the .wrap text column), for things positioned across the full width:
     the header, the intro captions and the scene counter line up with the sections below on any screen. */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --edge-r: max(var(--gutter-r), calc((100% - var(--max)) / 2 + var(--gutter-r)));

  /* Type scale. One size per level, used on both pages. */
  --fs-display: clamp(32px, 5.4vw, 80px);   /* page statement (About), employer contact */
  --fs-h2: clamp(28px, 4.2vw, 60px);        /* section titles */
  --fs-h3: clamp(23px, 3.3vw, 46px);        /* specialization rows */
  --fs-quote: clamp(26px, 3.2vw, 46px);
  --fs-item: clamp(21px, 2.2vw, 30px);      /* project names, contact values, form success */
  --fs-step: 20px;                          /* step titles */
  --fs-lead: clamp(19px, 1.6vw, 23px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }   /* no single word left alone on the last line */
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }   /* sections focused by the CTA jump */

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 14px; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 15px/1 var(--font); letter-spacing: -0.01em;
  color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; padding: 12px 24px; min-height: 40px; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .btn:hover { background: var(--ink-deep); } }   /* a slight darkening, nothing more */
.btn:active { transform: scale(0.98); }
.btn-large { font-size: 16px; padding: 18px 28px; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}

/* ---------- floating header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px;
  padding-left: var(--edge); padding-right: var(--edge-r);
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
.topbar.is-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.topbar-social { display: flex; align-items: center; gap: 20px; }
.topbar-nav { display: flex; align-items: center; gap: 24px; }
.topbar-link {
  font-size: 14px; color: var(--muted); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: color 0.2s ease, background-size 0.3s var(--ease);
}
/* Small text links get a finger-sized hit area (about 44px tall) without moving anything. */
.topbar-link, .footer-links a { position: relative; }
.topbar-link::after, .footer-links a::after { content: ""; position: absolute; inset: -12px -6px; }
@media (hover: hover) { .topbar-link:hover { color: var(--ink); background-size: 100% 1px; } }
.topbar .btn, .topbar-link { white-space: nowrap; }
/* On the last intro scene the caption has its own Drop your CV, so the header one steps aside (animation.js sets .hero-cta). */
.topbar .btn { transition: background-color 0.2s ease, transform 0.2s var(--ease), opacity 0.3s ease; }
.hero-cta .topbar .btn { opacity: 0; pointer-events: none; }
.label-short { display: none; }

/* ---------- the scroll animation ---------- */
.story { position: relative; }
.js .story { height: 350vh; height: 350svh; }   /* one screen + 2.5 screens of scroll; animation.js sets the same */
@media (pointer: coarse), (pointer: none), (prefers-reduced-motion: reduce) {
  .js .story { height: 350vh; height: 350svh; }   /* the stop at the end is off (STOP.on in animation.js), so no extra still stretch */
}
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }   /* held in place while the story scrolls */
#dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.captions { position: absolute; inset: 0; pointer-events: none; }
/* A soft wash of the page colour behind the captions, so the text never sits on top of busy dots. */
.captions::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 45%, transparent 100%);
}
.caption {
  position: absolute; left: 0; right: 0; bottom: 9vh;
  display: grid; justify-items: start; gap: 28px;
  padding-left: var(--edge); padding-right: var(--edge-r);
  will-change: opacity, transform;
}
.js .caption { opacity: 0; }
.js .caption:first-child { opacity: 1; }
html:not(.js) .caption:not(:last-child) { display: none; }   /* no script: one still frame, the closing line and its button */
.caption-title {
  max-width: 16ch;
  font-size: clamp(28px, 3.6vw, 52px); font-weight: 500;
  line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.caption .btn { pointer-events: auto; }
/* Caption words rise from under a mask; animation.js wraps each word and moves the inner span with the scroll. */
.cw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.cw > span { display: inline-block; will-change: transform; }
.wordmark-sub {
  position: absolute; left: 0; right: 0; top: 0;
  text-align: center; pointer-events: none; opacity: 0;
  font-size: clamp(12px, 1.25vw, 17px); font-weight: 300;
  letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase;
}
/* "placed since 2021" is a line of text, not part of the logo: sentence case, no spacing. */
.number-sub {
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 400;
  letter-spacing: 0; text-indent: 0; text-transform: none;
}
.count {
  position: absolute; right: var(--edge-r); bottom: 9vh;
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* Automatic intro (animation.js). The script in <head> adds .intro-wait while the intro is about to start.
   If the animation never starts (a script error, a very slow connection), the header and the first caption
   still appear after 3 seconds. */
.intro-wait .topbar, .intro-wait .caption:first-child, .intro-wait .count { opacity: 0; animation: intro-failsafe 0.5s ease 3s forwards; }
@keyframes intro-failsafe { to { opacity: 1; } }
/* Pause button, next to the scene counter, only while the intro plays. */
.intro-pause {
  position: fixed; z-index: 25; right: calc(var(--edge-r) + 44px); bottom: calc(9vh - 12px);
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .intro-pause:hover { border-color: var(--ink); } }
.intro-pause-icon { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); border-top: 1px solid var(--line); scroll-margin-top: 0; }
main > .section:first-child { border-top: 0; padding-top: clamp(56px, 8vw, 120px); }
.eyebrow {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow span { font-variant-numeric: tabular-nums; color: var(--ink); }
.eyebrow span::before {   /* lime, like the dots in the animation and the footer heart */
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 14px; vertical-align: -0.03em;
  border-radius: 50%; background: var(--accent);
}
.eyebrow span:empty::before { margin-right: 0; }   /* labels without a number: just the dot */
.statement {
  max-width: 19ch;
  font-size: var(--fs-display); font-weight: 500;
  line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance;
}
.section-title {
  font-size: var(--fs-h2); font-weight: 500;
  line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.01em; }

/* About */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(40px, 8vw, 140px);
  margin-top: clamp(48px, 7vw, 96px); align-items: start;
}
.about-text { display: grid; gap: 22px; max-width: 640px; }
.about-text p:not(.lead) { color: var(--muted); }
.facts { display: grid; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 15px; }

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  margin-top: clamp(64px, 9vw, 128px);
}
.step { border-top: 1px solid var(--line-strong); }
.step-head {
  width: 100%; display: grid; grid-template-columns: 6px 1fr auto; align-items: center; gap: 4px 14px;
  padding: 20px 0 12px; background: none; border: 0; text-align: left; cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); align-self: center; }
.step-title { font-size: var(--fs-step); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.step-icon { display: none; }
.step-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease); }
.step-inner { overflow: hidden; min-height: 0; }
.step-inner p { color: var(--muted); font-size: 16px; max-width: 34ch; padding-left: 20px; }

/* Employer process: three open steps, no accordion */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 8vw, 112px); }
.process-step { display: grid; grid-template-columns: 6px 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.process-step .step-dot { align-self: start; margin-top: 10px; }
.process-title { font-size: var(--fs-step); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 15px; max-width: 34ch; }

/* ---------- specialization rows ---------- */
.roles { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
.role { border-bottom: 1px solid var(--line); transition: opacity 0.35s ease; }
.role-head {
  width: 100%; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 30px) 0; background: none; border: 0; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.role-name {
  font-size: var(--fs-h3); font-weight: 500;
  line-height: 1.04; letter-spacing: -0.04em;
  transition: transform 0.5s var(--ease);
}
.role-icon { position: relative; width: 20px; height: 20px; justify-self: end; }
.role-icon::before, .role-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: var(--ink); transition: transform 0.4s var(--ease);
}
.role-icon::after { transform: rotate(90deg); }
.role-head[aria-expanded="true"] .role-icon::after { transform: rotate(0deg); }
.role-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.role-inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px;
  padding-left: 14px;
}
.js .role-inner > * { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.role-inner > p:first-child { font-size: 18px; max-width: 40ch; }
.role-list { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; line-height: 1.7; }
.role.is-open .role-body { grid-template-rows: 1fr; }
.role.is-open .role-inner { padding-bottom: clamp(22px, 2.6vw, 34px); }
.role.is-open .role-inner > * { opacity: 1; transform: none; transition-delay: 0.08s; }
.role.is-open .role-name { transform: translateX(14px); }
@media (hover: hover) and (pointer: fine) {
  .roles:hover .role:not(:hover):not(.is-open) { opacity: 0.38; }
  .role-head:hover .role-name { transform: translateX(14px); }
}

/* ---------- optional portrait ---------- */
.portrait-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: end;
}
.portrait-figure { position: relative; }
.portrait-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); filter: grayscale(1); }
.portrait-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.portrait-dots { position: absolute; pointer-events: none; }   /* portrait.js: the dots that assemble into the photo */
.portrait-text { padding-bottom: 40px; }
.quote p {
  font-size: var(--fs-quote); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance;
}
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.portrait-note { margin-top: 32px; max-width: 46ch; color: var(--muted); }

/* ---------- application form ---------- */
.apply-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.apply-intro { position: sticky; top: 40px; display: grid; gap: 0; }
.apply-intro .eyebrow { margin-bottom: 20px; }
.apply-intro .apply-note { margin-top: 20px; max-width: 34ch; color: var(--muted); }
.apply-panel { max-width: 760px; }

/* Form: hairline fields, related pairs side by side. Inputs stay at 17px+ so phones do not zoom in. */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: grid; gap: 4px; align-content: start; }
.field label, .field .label { font-size: 14px; color: var(--muted); }
.field input:not([type="file"]) {
  width: 100%; height: 46px; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font-size: 17px; line-height: 1.3; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .field input:hover { border-bottom-color: var(--ink); } }
.field input:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field input[type="number"]::-webkit-inner-spin-button, .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }
.field label { transition: color 0.2s ease; }
.field:focus-within label { color: var(--ink); }
.field-error { font-size: 13px; line-height: 1.35; color: var(--error); padding-top: 4px; }
.field-error:empty { display: none; }
/* Floating labels: an empty field shows its label inside the line, at the input's size; focus or a value lifts it back above.
   The placeholder hints appear only on focus. Browsers without :has() keep the label above, as before. */
@supports selector(:has(*)) {
  .field:not(.field-file) > label { transform-origin: 0 0; transition: color 0.2s ease, transform 0.3s var(--ease); pointer-events: none; }
  .field:has(> input:placeholder-shown:not(:focus)) > label,
  .field:has(> .combo > input:placeholder-shown:not(:focus)) > label { transform: translateY(35px) scale(1.2143); }
  .field:has(input[aria-invalid="true"]) > label { color: var(--error); }
  .field input::placeholder { opacity: 0; transition: opacity 0.2s ease; }
  .field input:focus::placeholder { opacity: 1; }
}

/* "How did you hear about Wise?": suggestions list with a visible chevron */
.combo { position: relative; }
.combo input { padding-right: 32px !important; cursor: pointer; }
.combo input::-webkit-calendar-picker-indicator { opacity: 0; }
.combo-arrow {
  position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; pointer-events: none;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
}

/* CV upload */
.field-file { margin-top: 4px; }
.file {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 12px 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .file:hover, .file.is-drag { border-color: var(--ink); } }
.file.is-drag { background: var(--paper); }
.file:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.file-box { flex: 1; display: grid; gap: 1px; min-width: 0; }
.file-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 13px; color: var(--muted); }
.file-action { flex: none; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; transition: border-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .file:hover .file-action { border-color: var(--ink); } }
.file-remove {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .file-remove:hover { background: var(--paper); } }
.file-remove svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.file.has-file { border-color: var(--ink); }
.file.is-invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.form-error { padding: 14px 16px; border-left: 2px solid var(--error); background: var(--error-wash); color: var(--error); font-size: 15px; }
.form-submit { display: grid; gap: 14px; justify-items: start; margin-top: 10px; }
.consent { font-size: 11px; line-height: 1.4; color: var(--faint); max-width: 70ch; }   /* fine print */
.consent a { text-underline-offset: 3px; }
.spinner { display: none; width: 16px; height: 16px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn:disabled:not([aria-busy="true"]), .field input:disabled { cursor: not-allowed; opacity: 0.5; }
.btn[aria-busy="true"] .spinner { display: inline-block; opacity: 0; animation: spin 0.8s linear infinite, fade-in 0.15s ease 0.3s forwards; }   /* fast replies never flash it */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Quiet arrivals: an error or a chosen file fades in, the thank-you card rises a little. */
.field-error:not(:empty), .form-error:not([hidden]) { animation: fade-in 0.2s ease; }
.file.has-file .file-box { animation: fade-in 0.2s ease; }
.form-success:not([hidden]) { animation: rise-in 0.3s var(--ease); }

.form-success { display: grid; gap: 18px; padding: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: 18px; outline: none; }
.success-title { font-size: var(--fs-item); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.form-success p { max-width: 52ch; }
.form-success a { text-underline-offset: 3px; }
.form-success .eyebrow { margin-bottom: 0; }
.form-success .link-btn { justify-self: start; margin-top: 6px; }

/* ---------- selected experience (employer) ---------- */
.experience-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.experience-head p { color: var(--muted); max-width: 40ch; justify-self: end; }
.works { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
.work {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 220px); gap: 16px 32px; align-items: baseline;
  padding: clamp(22px, 2.8vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.work > * { transition: transform 0.4s var(--ease); }
.work-year { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-main { display: grid; gap: 8px; }
.work-name { font-size: var(--fs-item); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.work-scope { color: var(--muted); max-width: 52ch; }
.work-meta { display: grid; gap: 2px; font-size: 14px; color: var(--muted); justify-self: end; text-align: right; }
@media (hover: hover) and (pointer: fine) { .work:hover > * { transform: translateX(14px); } }
/* Placeholders are marked so they are easy to spot before launch. Remove the class when an entry is real. */
.work.is-placeholder .work-name, .work.is-placeholder .work-scope, .work.is-placeholder .work-year, .work.is-placeholder .work-meta { color: var(--faint); }

/* ---------- contact (employer) ---------- */
.contact-title { font-size: var(--fs-display); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.contact-text { margin-top: 24px; max-width: 46ch; font-size: var(--fs-lead); color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: clamp(48px, 7vw, 96px); }
.contact-action {
  display: grid; grid-template-rows: auto auto; gap: 6px; align-items: end;
  padding: 26px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); text-decoration: none;
}
.contact-kind { font-size: 14px; color: var(--muted); }
.contact-value { font-size: var(--fs-item); font-weight: 500; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact-action:hover .contact-value, .contact-action:focus-visible .contact-value { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- legal pages (privacy.html, terms.html) ---------- */
.legal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px;
}
.legal-home img { width: 96px; }
.legal .section-title { margin-bottom: clamp(32px, 4vw, 56px); }
.legal-text { display: grid; gap: 1.1em; max-width: 64ch; font-size: 18px; line-height: 1.6; }
.legal-text a { text-underline-offset: 3px; }
@media (max-width: 420px) { .legal-home img { width: 80px; } .legal-top .topbar-nav { gap: 16px; } }

/* ---------- footer (same compact layout on every page) ---------- */
.footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.footer-logo { width: 104px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer-links a, .copyright { font-size: 14px; }
.footer-links a {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.3s var(--ease);
}
.footer-links a:hover, .footer-links a:focus-visible { background-size: 100% 1px; }
.copyright { color: var(--muted); }
.heart { display: inline-block; width: 0.85em; height: auto; margin-inline: 2px; vertical-align: -0.06em; fill: var(--accent); }   /* the lime accent, the one outside the dots */

/* ---------- text reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Headings with data-lines: each line rises from under its own mask (main.js, GSAP SplitText).
   The mask gets a little room so descenders (g, p, y) are not cut off. */
.has-lines [data-lines]:not(.is-split) { visibility: hidden; }
.line-mask { padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.line { will-change: transform; }

/* Smooth scrolling with a mouse or trackpad (Lenis). */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  .about-grid, .portrait-grid, .apply-grid, .experience-head { grid-template-columns: minmax(0, 1fr); }
  .experience-head p { justify-self: start; }
  .apply-intro { position: static; }
  .portrait-figure { max-width: 480px; }
  .portrait-text { padding-bottom: 0; }
  .work { grid-template-columns: 1fr; gap: 8px; }
  .work-meta { justify-self: start; text-align: left; display: flex; gap: 14px; }
}
@media (max-width: 640px) {
  :root { --gutter: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px)); }
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  main > .section:first-child { padding-top: 40px; }
  .eyebrow { margin-bottom: 20px; }
  .label-long { display: none; }
  .label-short { display: inline; }

  /* About: facts as a compact 2 × 2 grid */
  .about-grid { margin-top: 28px; gap: 28px; }
  .about-text { gap: 14px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 0 16px; border-top: 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .facts dt { font-size: 12px; }
  /* Steps: a tap-to-open list, the first one open */
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 40px; border-bottom: 1px solid var(--line); }
  .step { border-top: 1px solid var(--line); }
  .step-head { grid-template-columns: 6px 1fr 18px; align-items: center; padding: 16px 0; cursor: pointer; }
  .step-title { font-size: 18px; }
  .step-icon { display: block; position: relative; width: 14px; height: 14px; justify-self: end; }
  .step-icon::before, .step-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); transition: transform 0.4s var(--ease); }
  .step-icon::after { transform: rotate(90deg); }
  .step-head[aria-expanded="true"] .step-icon::after { transform: rotate(0deg); }
  .step-head[aria-expanded="false"] + .step-body { grid-template-rows: 0fr; }
  .step-inner p { padding: 0 0 18px 20px; font-size: 15px; }

  /* Portrait: a shorter crop with the quote close underneath */
  .portrait-grid { gap: 24px; }
  .portrait-figure img { aspect-ratio: 5 / 4; object-position: 50% 75%; }
  .portrait-figure figcaption { margin-top: 8px; }
  .portrait-text .eyebrow { margin-bottom: 14px; }
  .portrait-note { margin-top: 18px; }

  .apply-grid { gap: 28px; }
  .form { gap: 18px; }
  .form-row { gap: 18px; }
  .form-row-names { grid-template-columns: 1fr 1fr !important; gap: 14px; }

  .process { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .process-step { padding: 14px 0; border-top: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 1px solid var(--line); }
  .process-title { font-size: 18px; margin-bottom: 2px; }

  .footer-bottom { gap: 12px 20px; padding-top: 24px; }
  .footer-logo { width: 92px; }
  .footer-links { gap: 8px 20px; }
  .copyright { width: 100%; }
  .topbar-nav { gap: 14px; }
  .topbar-link { font-size: 13px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-large { width: 100%; padding: 17px 24px; font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .role-head { grid-template-columns: 1fr 20px; gap: 12px; padding: 16px 0; }
  .role-name { letter-spacing: -0.03em; }
  .role-inner { grid-template-columns: 1fr; padding-left: 0; }
  .role.is-open .role-name, .role-head:hover .role-name { transform: none; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-action + .contact-action { border-top: 0; }
}
/* Small phones: tighter header so social links, page switch and CTA stay on one line */
@media (max-width: 440px) {
  .topbar { gap: 10px; }
  .topbar-social { gap: 14px; }
  .topbar-nav { gap: 12px; }
  .topbar .btn { padding: 11px 14px; }
}
@media (max-width: 370px) {
  .topbar { gap: 8px; }
  .topbar-social { gap: 10px; }
  .topbar-nav { gap: 10px; }
  .topbar .btn { padding: 11px 12px; }
}
@media (max-width: 340px) {
  .topbar-nav .topbar-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {   /* html[data-motion="force"]: ?motion, local testing only */
  html:not([data-motion="force"]) *, html:not([data-motion="force"]) *::before, html:not([data-motion="force"]) *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html:not([data-motion="force"]).js .reveal { opacity: 1; transform: none; }
}

/* v45 (mobile-native review): taps respond at once, controls don't select their label on long-press */
button, a, [role="button"], label.file, .file, .btn { touch-action: manipulation; }
button, [role="button"], .btn, .file-action, .intro-pause { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
