/* =====================================================================
   Irvin Sivya — portfolio
   1. Tokens   2. Base   3. Chrome (header, menu, footer)   4. Hero
   5. Ticker & About   6. Sections & cards   7. Motion   8. Responsive
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0d0c0b;
  --bg-alt: #111010;
  --surface: #161514;
  --surface-2: #1d1b19;
  --line: rgba(242, 237, 228, 0.09);
  --line-strong: rgba(242, 237, 228, 0.2);
  --text: #f2ede4;
  --muted: #a6a197;
  --dim: #746f66;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.16);
  --danger: #ff7b6b;
  --ok: #8fd6a2;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
/* Images sit in <picture> so a WebP can be offered ahead of the original. display:contents
   gives the wrapper no box, so rules like `.media img` keep sizing against their container. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: inherit; }

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { left: 8px; }

/* Film grain: a fixed layer of SVG noise. Barely there, but it kills the flat "rendered" look. */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { flex-shrink: 0; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(242, 237, 228, 0.05); }
.btn--small { padding: 0.6rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1.1rem 1.7rem; font-size: 1.05rem; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.icon-btn:hover { color: var(--text); background: rgba(242, 237, 228, 0.07); }

/* ---------- 3. Chrome ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.is-scrolled {
  background: rgba(13, 12, 11, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.brand:hover .brand__mark { border-color: var(--text); transform: rotate(-8deg); }
.brand__name { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }

.nav { display: flex; gap: 0.15rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.8rem 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav a::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(242, 237, 228, 0.06); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::before { transform: translateY(-50%) scale(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.3rem; }
.site-header__actions .btn { margin-left: 0.6rem; }

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-left: 0.2rem;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger.is-open span:first-child { top: 20px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 20px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
.menu__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow-y: auto;
}
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 9vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--n, 1) * 45ms);
}
.menu__num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.menu__social { display: flex; gap: 1.2rem; color: var(--muted); }
.menu__social a:hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
.site-footer .mono { font-size: 0.66rem; }
.site-footer__top { transition: color 0.25s; }
.site-footer__top:hover { color: var(--text); }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(1rem, 3vh, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
/* Cursor-following warm spotlight */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(720px circle at var(--mx, 72%) var(--my, 28%), rgba(255, 90, 31, 0.11), transparent 62%);
}
/* Faint drafting grid, fading out from the top-left */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 15%, #000 10%, transparent 65%);
  mask-image: radial-gradient(ellipse at 20% 15%, #000 10%, transparent 65%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__eyebrow { margin-bottom: 1.3rem; }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

.hero__title {
  font-size: clamp(4.2rem, min(11.5vw, 17.5vh), 10.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin: 0 0 1.5rem -0.04em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__title .line > span { display: inline-block; }

.hero__tag {
  font-family: var(--serif);
  font-size: clamp(1.45rem, min(2.6vw, 3.8vh), 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-bottom: 1rem;
}
.hero__tag em { font-style: italic; color: var(--accent); }

.hero__lede {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Proof row: the numbers a recruiter should see before scrolling */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__proof li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero__proof strong { color: var(--text); font-weight: 500; }

.hero__media { position: relative; will-change: transform; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(1.04);
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 12, 11, 0.6), transparent 45%);
}
.hero__media figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(13, 12, 11, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.66rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem 1.4rem 1.6rem 0;
}
.stats li + li { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stats__label { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

/* ---------- 5. Ticker & About ---------- */
.ticker {
  overflow: hidden;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker__group i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.about { padding: clamp(4rem, 8vw, 7rem) 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transform: rotate(-2deg);
  transition: transform 0.7s var(--ease);
}
.about__photo:hover { transform: rotate(0deg); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__video {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 12, 11, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.about__video:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.about__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 1rem 0 1.5rem;
}
.about__title em { color: var(--accent); }
.about__copy { color: var(--muted); font-size: 1.05rem; }
.about__copy p + p { margin-top: 1rem; }

.now { margin-top: 2rem; border-top: 1px solid var(--line); }
.now li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.now .mono { color: var(--accent); padding-top: 0.2rem; }

/* ---------- 6. Sections & cards ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-strong);
}
.sec-head__index { color: var(--accent); font-size: 0.8rem; }
.sec-head__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.sec-head__sub { grid-column: 2; color: var(--muted); max-width: 52ch; font-size: 1.05rem; }

/* Media wrapper: photos are cropped, logos sit "contain" over a blurred copy of themselves */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.media.is-logo::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--img) center / cover no-repeat;
  filter: blur(40px) saturate(1.3);
  opacity: 0.5;
}
.media.is-logo img { position: relative; object-fit: contain; padding: 14%; }

/* Featured projects */
.featured { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); }
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.feat:nth-child(even) .feat__media-link { order: 2; }
.feat__media-link { display: block; }
.feat__media {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -35px rgba(0, 0, 0, 0.9);
}
.feat:hover .feat__media img { transform: scale(1.04); }
.feat__kicker { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.feat__kicker span { color: var(--accent); }
.feat__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.feat__desc { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }
.chips li {
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips--lg li { font-size: 0.72rem; padding: 0.5rem 0.8rem; }
.chips--soft li { border-style: dashed; }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(242, 237, 228, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.25s, color 0.25s;
}
.link-btn:hover { background: var(--text); color: var(--bg); }

.grid-label {
  margin: clamp(3rem, 6vw, 5rem) 0 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Card base with a cursor-tracking sheen */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(242, 237, 228, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.pcard { display: flex; flex-direction: column; }
.pcard__media { aspect-ratio: 16 / 10; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
}
.pcard__kicker { font-size: 0.64rem; }
.pcard__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.pcard__desc { color: var(--muted); font-size: 0.92rem; }
.pcard__tech { margin-top: 0.4rem; font-size: 0.64rem; letter-spacing: 0.02em; text-transform: none; color: var(--dim); }
.pcard .links { margin-top: auto; padding-top: 0.6rem; }

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp.is-open { display: block; -webkit-line-clamp: unset; }
.more {
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.25s, border-color 0.25s;
}
.more:hover { color: var(--accent); border-color: var(--accent); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.tl {
  display: grid;
  grid-template-columns: 11rem 2rem 1fr;
  gap: 0 1rem;
  align-items: start;
}
.tl__when { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1.55rem; }
.tl__now {
  width: max-content;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
}
.tl__dot { position: relative; height: 100%; min-height: 3rem; }
.tl__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.85rem;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.tl__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -1.5rem;
  width: 1px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.tl:last-child .tl__dot::after { bottom: 0; }
.tl__card { padding: 1.5rem 1.6rem; }
.tl__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.tl__logo {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.tl__logo img { width: 100%; height: 100%; object-fit: cover; }
.tl__logo.is-logo::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: var(--img) center / cover no-repeat;
  filter: blur(14px);
  opacity: 0.5;
}
.tl__logo.is-logo img { position: relative; object-fit: contain; padding: 7px; }
.tl__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.tl__org { color: var(--muted); font-size: 0.9rem; }
.tl__link { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: color 0.25s, border-color 0.25s; }
.tl__link:hover { color: var(--accent); border-color: var(--accent); }
.tl__desc { color: var(--muted); font-size: 0.97rem; }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.award { display: flex; flex-direction: column; }
.award--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.award__media { aspect-ratio: 16 / 10; }
.award--wide .award__media { aspect-ratio: auto; height: 100%; }
.award:hover .award__media img { transform: scale(1.05); }
.award__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
}
.award--wide .award__body { padding: 2.2rem; justify-content: center; }
.award__kicker { font-size: 0.64rem; }
.award__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.award--wide .award__title {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.05;
}
.award__desc { color: var(--muted); font-size: 0.92rem; }
.award--wide .award__desc { font-size: 1rem; }
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}
.inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Skills */
.skills-row { margin-top: 2.2rem; }
.skills-row__label { margin-bottom: 0.9rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 0.9rem; padding-right: 0.9rem; }
.skill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.2rem 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.skill__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}
.skill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.35s;
}
.skill:hover { border-color: var(--line-strong); background: var(--surface-2); }
.skill:hover img { filter: none; }
.skills-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.2rem;
}
.skills-extra .chips { margin-top: 0; }

/* Beyond code */
.beyond { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.bey {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.bey__media { position: absolute; inset: 0; }
.bey__media img { filter: saturate(0.85); }
.bey:hover .bey__media img, .bey:focus-within .bey__media img { transform: scale(1.06); }
.bey__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(13, 12, 11, 0.94) 0%, rgba(13, 12, 11, 0.6) 40%, transparent 72%);
}
.bey__title { font-family: var(--serif); font-size: 1.85rem; line-height: 1; margin-bottom: 0.6rem; }
.bey__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease), opacity 0.45s;
}
.bey:hover .bey__desc, .bey:focus-within .bey__desc, .bey:focus .bey__desc { max-height: 16rem; opacity: 1; }

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -35%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 90, 31, 0.15), transparent 60%);
  pointer-events: none;
}
.contact .wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.5rem;
  max-width: 12ch;
}
.contact__title em { color: var(--accent); }
.contact__sub { color: var(--muted); max-width: 46ch; font-size: 1.05rem; margin-bottom: 2.4rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.contact__social { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; margin-top: 2.5rem; }
.contact__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s;
}
.contact__social a:hover { color: var(--text); }

/* ---------- 7. Motion ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1.06); } }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* The hero entrance waits for `html.hero-go`, which the intro sets when it hands off
   (or the inline head script sets immediately when the intro doesn't play). */
html.js .hero__title .line > span { transform: translateY(110%); }
html.js .hero__eyebrow, html.js .hero__tag, html.js .hero__lede, html.js .hero__cta, html.js .hero__proof, html.js .hero__media { opacity: 0; }
html.js.hero-go .hero__title .line > span { animation: rise 1.1s var(--ease) forwards; }
html.js.hero-go .hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
html.js.hero-go .hero__eyebrow, html.js.hero-go .hero__tag, html.js.hero-go .hero__lede, html.js.hero-go .hero__cta, html.js.hero-go .hero__proof {
  animation: fadeUp 1s var(--ease) forwards;
}
html.js.hero-go .hero__eyebrow { animation-delay: 0.05s; }
html.js.hero-go .hero__tag { animation-delay: 0.35s; }
html.js.hero-go .hero__lede { animation-delay: 0.45s; }
html.js.hero-go .hero__cta { animation-delay: 0.55s; }
html.js.hero-go .hero__proof { animation-delay: 0.65s; }
html.js.hero-go .hero__media { animation: fadeIn 1.2s var(--ease) 0.2s forwards; }
html.js.hero-go .hero__frame img { animation: settle 1.8s var(--ease) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .hero__title .line > span { transform: none; }
  html.js .hero__eyebrow, html.js .hero__tag, html.js .hero__lede, html.js .hero__cta, html.js .hero__proof, html.js .hero__media { opacity: 1; }
  .ticker__track, .marquee__track { animation: none; }
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pgrid, .awards, .beyond { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav, .site-header__actions .icon-btn { display: none; }
  .burger { display: block; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; }
  .hero__title { font-size: clamp(4rem, 17vw, 8rem); }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }

  .feat, .feat:nth-child(even) { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat__media-link { order: 0; }

  .tl { grid-template-columns: 1.5rem 1fr; }
  .tl__when { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; gap: 0.8rem; padding-top: 0; margin-bottom: 0.7rem; }
  .tl__dot { grid-column: 1; grid-row: 1 / span 2; }
  .tl__dot::before { top: 0.35rem; }
  .tl__card { grid-column: 2; grid-row: 2; }

  .award--wide { grid-template-columns: 1fr; }
  .award--wide .award__media { aspect-ratio: 16 / 10; height: auto; }
  .award--wide .award__body { padding: 1.5rem; }
  .award--wide .award__title { font-size: 1.7rem; }

  .skills-extra { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__name { display: none; }
  .pgrid, .awards, .beyond { grid-template-columns: 1fr; }
  .award--wide { grid-column: auto; }
  .sec-head { grid-template-columns: 1fr; gap: 0.6rem; }
  .sec-head__sub { grid-column: 1; }
  .now li { grid-template-columns: 5.5rem 1fr; }
  .contact__title { max-width: none; }
  .stats li { padding: 1.2rem 1rem 1.2rem 0; }
  .stats li + li { padding-left: 1rem; }
  .stats li:nth-child(3) { padding-left: 0; }
  .bey { aspect-ratio: 4 / 4.6; }
}

@media (max-width: 420px) {
  .site-header__actions .btn { display: none; }
  .hero__eyebrow { font-size: 0.64rem; letter-spacing: 0.1em; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .contact__actions { width: 100%; flex-direction: column; }
  .contact__actions .btn { justify-content: center; }
}

/* Touch devices can't hover: keep "Beyond" descriptions visible */
@media (hover: none) {
  .bey__desc { max-height: none; opacity: 1; }
  .card:hover { transform: none; }
}

/* ---------- 9. Flight intro ---------- */
html.intro-pending { overflow: hidden; }
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}
html.intro-pending .intro, .intro.is-active { display: block; }
.intro__gl, .intro__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro__gl { opacity: 0; }
.intro.is-ready .intro__gl { opacity: 1; }
.intro .mono { font-size: clamp(0.66rem, 0.3rem + 0.35vw, 0.85rem); }

/* Legibility without a visible panel: darkened corners and a feathered right edge */
.intro__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 42% 50%, transparent 55%, rgba(8, 7, 6, 0.55) 100%),
    linear-gradient(90deg, transparent 52%, rgba(10, 9, 8, 0.55) 78%, rgba(12, 11, 10, 0.85) 97%, #0d0c0b 100%);
}
/* A top band for the name, only while the ground fills the frame */
.intro__vignette::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.85) 0, rgba(10, 9, 8, 0.55) 50px, transparent 120px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.intro__top {
  position: absolute;
  top: 28px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.intro__clock span { color: var(--text); margin-left: 0.4rem; }

.intro__hud {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: min(400px, 34vw);
  translate: 0 -50%;
  isolation: isolate;
}
/* Scrim bound to the HUD's own box; on only during the dive */
.intro__hud::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -64px -72px;
  border-radius: 48px;
  background: rgba(10, 9, 8, 0.9);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.intro.is-diving .intro__hud::before, .intro.is-diving .intro__vignette::after { opacity: 1; }
.intro.is-diving .intro__top p:first-child { color: var(--text); transition: color 0.5s; }
.intro__top, .intro__meta, .intro__skip { text-shadow: 0 0 2px rgba(10, 9, 8, 0.95), 0 0 10px rgba(10, 9, 8, 0.8); }

.intro__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  white-space: nowrap;
}
.intro__title em { color: var(--accent); }
.intro.is-landed .intro__title { animation: fadeUp 0.6s var(--ease); }
.intro__meta [data-hud="dist"] { white-space: nowrap; }   /* never orphan "to go" */
.intro__meta {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.intro__skip:hover, .intro__skip:focus-visible { color: var(--text); border-color: var(--text); }

.intro__top, .intro__hud, .intro__skip { opacity: 0; }
.intro.is-ready .intro__top, .intro.is-ready .intro__hud, .intro.is-ready .intro__skip { animation: fadeUp 0.9s var(--ease) 0.3s forwards; }

/* Portal: a circular aperture at Waterloo reveals the site underneath */
@keyframes hudOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
.intro.is-portal {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--px) var(--py), transparent calc(var(--pr) - 1px), #000 calc(var(--pr) + 1px));
  mask-image: radial-gradient(circle at var(--px) var(--py), transparent calc(var(--pr) - 1px), #000 calc(var(--pr) + 1px));
}
.intro.is-portal .intro__top, .intro.is-portal .intro__hud, .intro.is-portal .intro__skip { animation: hudOut 0.35s var(--ease) forwards; }

.intro.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
/* Debug stills (?introT=): show end states immediately */
.intro.is-frozen, .intro.is-frozen * { animation-duration: 0s !important; animation-delay: 0s !important; }

/* Warm light behind the aperture; sits under the overlay, so it only shows through the hole */
.intro-glow {
  position: fixed;
  inset: 0;
  z-index: 94;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 150, 95, 0.55) 0, rgba(255, 90, 31, 0.28) 6vmin, rgba(255, 90, 31, 0.08) 18vmin, transparent 40vmin);
}

/* The Waterloo dot that flies into the hero's "CS @ Waterloo" marker */
.intro-beacon {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 96;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
html.beacon-flying .hero__eyebrow .pulse { visibility: hidden; }

/* Desktop and landscape: globe and HUD form one centred group (positions come from JS) */
@media (min-width: 901px), (orientation: landscape) {
  .intro__hud { left: var(--hud-x, auto); right: auto; width: var(--hud-w, min(400px, 34vw)); }
  .intro__title { font-size: calc(var(--hud-w, 400px) * 0.135); }
  .intro__top { left: var(--stage, var(--gutter)); right: var(--stage, var(--gutter)); }
  .intro__skip { right: var(--stage, var(--gutter)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .intro__top { top: 14px; }
  .intro__clock { display: none; }
  .intro__skip { bottom: 12px; }
}

/* Portrait phones and tablets: globe on top, HUD below */
@media (max-width: 900px) and (orientation: portrait) {
  .intro__vignette {
    background:
      radial-gradient(ellipse 130% 80% at 50% 36%, transparent 50%, rgba(8, 7, 6, 0.55) 100%),
      linear-gradient(180deg, transparent 50%, rgba(10, 9, 8, 0.7) 72%, rgba(10, 9, 8, 0.9) 100%);
  }
  .intro__top { top: 20px; }
  .intro__clock { display: none; }
  .intro__hud {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: 72px;
    width: auto;
    translate: none;
  }
  .intro__hud::before { inset: -56px calc(-1 * var(--gutter)) -24px; }
  .intro__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .intro__skip { top: 18px; bottom: auto; }
}

/* ---------- 10. Resume request ----------
   The dialog every Resume button opens, and the standalone pages around it (/resume,
   Irvin's review page, expired links). */
html:has(.rq-dialog[open]) { overflow: hidden; }

.rq-dialog {
  width: min(100% - 32px, 540px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7);
}
.rq-dialog[open] { animation: fadeUp 0.5s var(--ease); }
.rq-dialog::backdrop {
  background: rgba(8, 7, 6, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rq { position: relative; padding: clamp(1.6rem, 5vw, 2.4rem); }
.rq__close { position: absolute; top: 0.9rem; right: 0.9rem; }
.rq__kicker { color: var(--accent); margin-bottom: 0.9rem; }
.rq__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.rq__title em { color: var(--accent); }
.rq__lede { color: var(--muted); font-size: 0.98rem; margin: 0.9rem 0 1.8rem; max-width: 46ch; }
.rq__lede strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.rq__lede code { font-family: var(--mono); font-size: 0.85em; color: var(--text); }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field__label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field__label span { color: var(--dim); margin-left: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 5.6rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: rgba(242, 237, 228, 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.85rem; }
.field__error:empty { display: none; }

.rq__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rq__alert {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 123, 107, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 123, 107, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}
.rq__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.rq__fine { color: var(--dim); font-size: 0.82rem; max-width: 32ch; }
.rq__form[aria-busy="true"] button[type="submit"] { opacity: 0.6; cursor: progress; }

.rq__check {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Standalone pages */
.page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}
.page::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 70vw;
  height: 70vw;
  max-width: 820px;
  max-height: 820px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 90, 31, 0.1), transparent 62%);
  pointer-events: none;
}
.page__inner { position: relative; max-width: 600px; }
.rq--page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 21, 20, 0.7);
}
.rq--page .rq__title { font-size: clamp(2.5rem, 8vw, 3.6rem); }

/* Review page (Irvin only) */
.rq__status { padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid currentColor; }
.rq__status--approved { color: var(--ok); }
.rq__status--denied { color: var(--dim); }
.rq__facts { margin: 1.6rem 0; border-top: 1px solid var(--line); }
.rq__facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.rq__facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.25rem; }
.rq__facts dd { margin: 0; overflow-wrap: anywhere; }
.rq__facts a { border-bottom: 1px solid var(--line-strong); }
.rq__facts a:hover { color: var(--accent); border-color: var(--accent); }
.rq__note { white-space: pre-wrap; color: var(--muted); }
.rq__notice {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.rq__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.rq__actions + .rq__fine { max-width: none; }

@media (max-width: 420px) {
  .rq__foot .btn, .rq__actions .btn { flex: 1; justify-content: center; }
  .rq__facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
}
