/* austins.cv — "Cinematic Quant" (design source: mockup board 04).
   Desktop is the reference design; everything below reflows rather than
   shrinks on narrow viewports. Breakpoints: 1020px (cards 3→2),
   820px (stats 4→2, press 2→1), 640px (cards 2→1, stacked rows). */

:root {
  --bg: #07090f;
  --bg-raised: #0a0e17;
  --bg-tape: #090c14;
  --line: #141a26;
  --line-card: #1a2334;
  --ink: #cfd8e6;
  --ink-bright: #eef3fb;
  --ink-dim: #93a3bd;
  --ink-faint: #5d6a80;
  --ink-ghost: #39445a;
  --gold: #b08d3f;
  --gold-dim: #8a6a2f;
  --green: #58b88a;
  --blue: #8ea8c9;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 32px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink-bright); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- ticker tape ----
   Wide: a static row, contact pinned right. Narrow (<920px, where the
   row would wrap): the tape scrolls as a seamless marquee under the
   pinned contact link; reduced-motion gets manual horizontal scroll. */
.tape { border-bottom: 1px solid var(--line); background: var(--bg-tape); }
.tape-row {
  display: flex; align-items: baseline;
  padding-top: 10px; padding-bottom: 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.tape-row b { font-weight: 400; }
.t-mark { flex: none; align-self: center; margin-right: clamp(16px, 2.6vw, 34px); }
.tape-viewport { flex: 1; min-width: 0; }
.tape-set { display: inline-flex; gap: clamp(16px, 2.6vw, 34px); white-space: nowrap; }
.tape-dup { display: none; }
.up { color: var(--green); }
.t-hot { color: #9fb0ca; }
.t-gold { color: var(--gold-dim); }
.t-contact { margin-left: 20px; }

/* The marquee is measurement-driven, not breakpoint-driven: an inline
   script toggles .is-marquee on .tape whenever the entry set's rendered
   width genuinely doesn't fit beside the mark and contact link — any
   viewport, any future ticker length. Without JS the tape stays static
   and overlong entries clip behind the right-edge fade instead of
   overlapping the contact link. */
.tape-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.tape.is-marquee .t-mark { margin-right: 14px; }
.tape.is-marquee .tape-viewport {
  /* fade entries in at the left edge so they don't pop against the mark */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px);
  mask-image: linear-gradient(90deg, transparent, #000 18px);
}
.tape.is-marquee .tape-track {
  display: inline-flex; width: max-content;
  animation: tape-scroll 32s linear infinite;
}
.tape.is-marquee .tape-set, .tape.is-marquee .tape-dup {
  display: inline-flex;
  gap: clamp(16px, 2.6vw, 34px);
  padding-right: clamp(16px, 2.6vw, 34px); /* seam gap = one entry gap */
}
.tape.is-marquee .t-contact {
  margin-left: 0; padding-left: 30px;
  background: linear-gradient(90deg, rgba(9,12,20,0), var(--bg-tape) 22px);
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none !important; }
  .tape.is-marquee .tape-viewport { overflow-x: auto; scrollbar-width: none; }
  .tape-dup { display: none !important; }
}

/* ---- hero ---- */
.hero { position: relative; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(44px, 7vw, 80px); }
.spark {
  position: absolute; left: var(--pad); right: var(--pad); top: clamp(36px, 5vw, 60px);
  width: calc(100% - 2 * var(--pad)); height: clamp(120px, 17vw, 220px);
  opacity: 0.5; pointer-events: none;
}
/* animated spark (assets/spark-live.js): the tick marker rides in its own
   non-stretched overlay so it stays round; hidden until the script runs */
.spark-tip {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px;
  opacity: 0.5; pointer-events: none; overflow: visible; display: none;
}
.spark-pause {
  /* just under the spark's lower edge (top offset + height), nudged to sit
     level with the bottom of the h1 */
  position: absolute; right: var(--pad);
  top: calc(clamp(36px, 5vw, 60px) + clamp(120px, 17vw, 220px) + 34px);
  width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid transparent; background: rgba(13, 17, 26, 0.35);
  cursor: pointer; padding: 0; opacity: 0.5; display: none;
  align-items: center; justify-content: center;
  transition: border-color 120ms ease, opacity 120ms ease;
}
.spark-pause svg { display: block; fill: #49556e; transition: fill 120ms ease; }
.spark-pause:hover { border-color: #2a3346; opacity: 1; }
.spark-pause:hover svg { fill: #93a3bd; }
.hero-inner { position: relative; }
.kicker {
  font-family: var(--mono); font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.kicker-wrap { white-space: nowrap; } /* the pun wraps as one unit, never mid-phrase */
h1 {
  margin: 20px 0 0; font-weight: 700;
  font-size: clamp(52px, 9.5vw, 92px);
  letter-spacing: -0.03em; line-height: 1.02; color: var(--ink-bright);
}
.lede { margin: clamp(18px, 3vw, 26px) 0 0; max-width: 34em; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-dim); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(26px, 4vw, 38px); }
.btn { padding: 14px 30px; border-radius: 6px; font-weight: 600; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink-bright); color: #0b0e15; }
.btn-solid:hover { color: #0b0e15; background: #fff; }
.btn-ghost { border: 1px solid #2a3850; color: var(--ink); }
.btn-ghost:hover { border-color: #41557c; color: var(--ink-bright); }

/* ---- stat band ---- */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; padding-top: 34px; padding-bottom: 34px;
}
.stat-n { font-family: var(--mono); font-size: clamp(30px, 3.2vw, 38px); font-weight: 500; color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

/* ---- sections ---- */
section.wrap { padding-top: clamp(48px, 6.5vw, 78px); padding-bottom: 10px; }
.label {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.mono-link { font-family: var(--mono); font-size: 12.5px; }
h2 { margin: 14px 0 clamp(24px, 3.5vw, 36px); font-weight: 700; font-size: clamp(28px, 4.2vw, 40px); color: var(--ink-bright); letter-spacing: -0.02em; }

/* ---- press ---- */
.press { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); margin-top: 26px; }
.press blockquote { margin: 0; border: 1px solid var(--line-card); border-radius: 10px; padding: clamp(22px, 2.8vw, 30px); background: var(--bg-raised); }
.press p { margin: 0; font-size: 18px; color: #d8e4f4; line-height: 1.55; }
.press footer { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }
.press-click { cursor: pointer; transition: transform 140ms ease, border-color 140ms ease; }
.press-click:hover, .press-click:focus-visible { transform: translateY(-2px); border-color: #2a3850; outline: none; }
.press-hint { color: var(--blue); white-space: nowrap; }
.press-click:hover .press-hint { color: var(--ink-bright); }

dialog#clipping {
  border: 1px solid var(--line-card); border-radius: 12px;
  background: var(--bg-raised); padding: 14px;
  max-width: min(92vw, 560px); cursor: pointer;
}
dialog#clipping::backdrop { background: rgba(3, 5, 9, 0.82); }
dialog#clipping img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.clipping-caption { margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); text-align: center; }

/* ---- track record ---- */
.record { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.record .row:last-child { border-bottom: 1px solid var(--line); }
.row-date {
  min-width: 170px; padding-top: 4px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.row-date.now { color: var(--gold-dim); }
.row-logo {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: #eef1f6; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.row-logo img { width: 26px; height: 26px; object-fit: contain; }
.row-logo.bleed { background: none; }          /* mark ships its own background */
.row-logo.bleed img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 300px; }
.row-body h3 { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink-bright); }
.row-body h3 span { font-weight: 400; color: var(--ink-faint); font-size: 14px; }
.row-body p { margin: 8px 0 0; color: var(--ink-dim); font-size: 14.5px; }
.runup { margin: 0 !important; color: var(--ink-dim); font-size: 14.5px; }

/* ---- side book ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line-card); border-radius: 10px;
  padding: clamp(20px, 2.4vw, 26px); background: var(--bg-raised);
  display: flex; flex-direction: column;
  transition: transform 140ms ease, border-color 140ms ease;
}
.card:hover { transform: translateY(-2px); border-color: #2a3850; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--green); }
.tag.gold { color: var(--gold-dim); }
.card h3 { margin: 10px 0 0; font-size: 19px; color: var(--ink-bright); font-weight: 600; }
.card p { margin: 8px 0 0; font-size: 14px; color: var(--ink-dim); flex: 1; }
.card a { margin-top: 14px; font-family: var(--mono); font-size: 12px; }
.card .soon { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

/* ---- footer / IOI ---- */
footer#ioi { text-align: center; padding: clamp(56px, 8vw, 90px) 0 clamp(48px, 6vw, 70px); }
/* duotone-to-real gradient: gray duotone upper-left dissolving into the
   photo's own muted colors lower-right (where the gold stop used to be) */
.ioi-photo {
  width: 88px; height: 88px; border-radius: 20px;
  margin: 0 auto 20px; overflow: hidden;
  position: relative; background: #4a5160;
}
.ioi-photo img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.06);
}
.ioi-photo::after {
  content: ""; position: absolute; inset: 0;
  background: url("photos/avatar-falls.jpg") center / cover;
  filter: saturate(0.45) contrast(1.06);
  -webkit-mask-image: linear-gradient(135deg, transparent 35%, #000 75%);
  mask-image: linear-gradient(135deg, transparent 35%, #000 75%);
}
.ioi-h { margin: 16px 0 0; font-size: clamp(30px, 4.6vw, 44px); }
.ioi-open { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-dim); }
.ioi-contact { margin: 16px 0 0; color: var(--ink-dim); overflow-wrap: anywhere; }
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #2a3850; border-radius: 999px; padding: 8px 18px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}
.chip:hover { transform: translateY(-1px); border-color: #41557c; color: var(--ink-bright); }
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.disclaimer { margin: 40px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.copyright { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-ghost); }

/* ---- breakpoints ---- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .press { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .row { padding: 18px 0; }
  .row-date { min-width: 100%; padding-top: 0; }   /* date stacks above entry */
  .row-body { min-width: 0; }
}
