/* ============================================================
   CASON POLLAK — RECRUITING PROFILE
   Art direction: bright, bold, athletic. Off-white field, deep
   navy ink, one gold accent reserved for PRs, AT-STANDARD
   states, and CTAs. Big type. Real photography.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #faf9f6;         /* page field */
  --panel: #ffffff;         /* cards / tables */
  --panel-warm: #f3f1ea;    /* alternate band */
  --navy: #0e1b33;          /* primary ink + dark bands */
  --navy-2: #16264a;        /* raised dark panel */
  --ink: #131c2e;           /* body text */
  --ink-dim: #4c5870;       /* secondary text */
  --ink-faint: #5f6b84;     /* metadata */
  --line: rgba(14, 27, 51, 0.12);
  --line-strong: rgba(14, 27, 51, 0.28);
  --gold: #ffb400;          /* fills (always with navy text) */
  --gold-deep: #8a6400;     /* gold-tinted text on light bg */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --shadow: 0 1px 2px rgba(14,27,51,.06), 0 8px 24px -12px rgba(14,27,51,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

::selection { background: var(--gold); color: var(--navy); }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- utility type ---- */
.label {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============ header ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem var(--pad);
  background: color-mix(in srgb, var(--navy) 96%, transparent);
  backdrop-filter: blur(10px);
  color: #f6f4ee;
}
.wordmark {
  font-weight: 850; letter-spacing: 0.04em; font-size: 1.14rem;
  text-decoration: none; text-transform: uppercase;
}
.wordmark b { color: var(--gold); font-weight: 850; }
.top nav { display: flex; gap: 1.5rem; }
.top nav a {
  font-family: var(--mono); font-size: 0.81rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #c3cadb; text-decoration: none;
}
.top nav a:hover { color: var(--gold); }
@media (max-width: 760px) { .top nav { display: none; } }

/* ============ hero ============ */
.hero {
  background: var(--navy);
  color: #f6f4ee;
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.2rem, 6vw, 4.5rem) var(--pad) 0;
  align-items: end;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-copy { padding-bottom: clamp(2rem, 5vw, 4rem); }
/* eyebrow labels — deliberately unboxed so they don't read as buttons */
.hero-kicker { display: flex; gap: 0.3rem 1.6rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1.3rem; }
.hero-kicker .tag {
  font-family: var(--mono); font-size: 0.81rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-kicker .tag.hot { color: var(--gold); }
.hero-kicker .tag:not(.hot) { color: #93a0bb; }
.hero h1 {
  font-weight: 880;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.93;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero h1 .thin { font-weight: 300; color: #dfe4ef; }
.hero-sub {
  margin-top: 1.2rem; max-width: 44ch;
  color: #c3cadb; font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.hero-sub b { color: #ffffff; font-weight: 700; }
.hero-cta { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }

.hero-photo { position: relative; min-height: 320px; aspect-ratio: 2 / 3; align-self: end; }
.hero-photo img {
  position: relative;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 3px;
}
/* offset gold frame behind the photo — crisp edges, ties into the band below */
.hero-photo::before {
  content: ""; position: absolute;
  top: -12px; right: -12px; bottom: 12px; left: 12px;
  background: var(--gold); border-radius: 3px;
}
@media (max-width: 900px) {
  .hero-photo::before { display: none; }
  .hero-photo img { border-radius: 0; }
}
.hero-photo .credit {
  position: absolute; bottom: 0.55rem; right: 0.75rem; z-index: 2;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em;
  color: rgba(246,244,238,.85);
  text-shadow: 0 1px 3px rgba(14,27,51,.7);
}
@media (max-width: 900px) {
  .hero-photo { min-height: 300px; margin: 0 calc(-1 * var(--pad)); order: -1; }
}

/* identity band sits below hero on gold */
.combine-band { background: var(--gold); border-bottom: 3px solid var(--navy); }
.combine {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 0.85rem var(--pad);
  gap: 0.9rem 2.2rem;
}
.combine .fact { display: flex; flex-direction: column; gap: 0.16rem; padding-left: 2.2rem; border-left: 1px solid rgba(14,27,51,.28); }
.combine .fact:first-child { border-left: 0; padding-left: 0; }
.combine .fact .label { color: rgba(14,27,51,.78); font-size: 0.78rem; }
.combine .fact b {
  font-family: var(--mono); font-weight: 800; font-size: 1.02rem;
  color: var(--navy);
}
/* MVP badge — headline credential in a navy pill that breaks up the gold */
.combine .mvp-badge {
  margin-left: auto;
  display: inline-flex; flex-direction: column; gap: 0.1rem;
  background: var(--navy); border-radius: 3px;
  padding: 0.5rem 0.95rem;
  font-family: var(--mono); text-transform: uppercase;
}
.combine .mvp-badge .b-main { color: var(--gold); font-weight: 800; font-size: 0.94rem; letter-spacing: 0.05em; }
.combine .mvp-badge .b-main::before { content: "★ "; color: var(--gold); }
.combine .mvp-badge .b-sub { color: #c3cadb; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em; }
@media (min-width: 641px) {
  .combine .fact b { white-space: nowrap; }
}
@media (max-width: 720px) {
  .combine .mvp-badge { margin-left: 0; }
}
@media (max-width: 640px) {
  .combine { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
  .combine .fact { border-left: 0; padding-left: 0; }
  .combine .mvp-badge { grid-column: 1 / -1; align-items: center; text-align: center; }
}

/* ---- buttons ---- */
.btn {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; text-decoration: none;
  border-radius: 3px; transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffc82e; }
.btn-ghost { border: 1.5px solid rgba(246,244,238,.5); color: #f6f4ee; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

/* ============ sections ============ */
section { border-bottom: 1px solid var(--line); }
.sec-inner {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4.5rem) var(--pad);
}
section.band-warm { background: var(--panel-warm); }
section.band-navy { background: var(--navy); color: #f6f4ee; border-bottom: 0; }

.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.sec-head .idx {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 800;
  color: var(--gold-deep); letter-spacing: 0.1em;
}
.band-navy .sec-head .idx { color: var(--gold); }
.sec-head h2 {
  font-weight: 850; text-transform: uppercase; letter-spacing: 0.005em;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem); line-height: 1.05;
}
.sec-head .note {
  margin-left: auto; font-family: var(--mono); font-size: 0.79rem;
  color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase;
  text-align: right;
}
.band-navy .sec-head .note { color: #93a0bb; }
@media (max-width: 760px) { .sec-head { flex-wrap: wrap; } .sec-head .note { margin-left: 0; width: 100%; text-align: left; } }

.sec-blurb { color: var(--ink-dim); max-width: 64ch; margin-bottom: 1.8rem; font-size: 1.11rem; }
.sec-blurb b { color: var(--ink); }
.band-navy .sec-blurb { color: #c3cadb; }
.band-navy .sec-blurb b { color: #fff; }

/* ---- data tables ---- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 6px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint);
  text-align: left; padding: 0.85rem 1.1rem;
  border-bottom: 2px solid var(--line-strong);
  background: var(--panel-warm);
}
td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 1.07rem; }
tr:last-child td { border-bottom: 0; }
td.mark { font-family: var(--mono); font-weight: 800; font-size: 1.18rem; white-space: nowrap; color: var(--navy); }
td .pb-chip {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; color: var(--navy); background: var(--gold);
  padding: 0.16rem 0.4rem; border-radius: 2px; margin-left: 0.5rem;
  vertical-align: 0.14em;
}
td.dim, span.dim { color: var(--ink-dim); }
td.faint { color: var(--ink-faint); font-size: 1.02rem; }
tr.is-pb td { background: rgba(255, 180, 0, 0.07); }

/* ---- video grid ---- */
.vid-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.2rem;
}
.vid-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.vid-thumb {
  aspect-ratio: 16 / 9; position: relative; background: var(--navy);
  display: grid; place-items: center; overflow: hidden;
}
.vid-thumb iframe, .vid-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid-thumb .soon {
  text-align: center; color: #93a0bb;
  font-family: var(--mono); font-size: 0.77rem; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vid-thumb .soon .ring {
  width: 48px; height: 48px; border: 1.5px solid rgba(246,244,238,.4); border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 0.7rem;
  color: #d9deea; font-size: 0.99rem;
}
.vid-meta { padding: 0.95rem 1.1rem 1.1rem; }
.vid-meta .ev { font-family: var(--mono); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; color: var(--gold-deep); text-transform: uppercase; }
.vid-meta h3 { font-size: 1rem; font-weight: 700; margin-top: 0.3rem; line-height: 1.35; color: var(--navy); }
.vid-meta .dt { font-family: var(--mono); font-size: 0.79rem; color: var(--ink-faint); margin-top: 0.3rem; }

/* ---- photo gallery strip ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.gallery figure { border-radius: 6px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 340px; object-fit: cover; object-position: center top; }
.gallery figure.wide { grid-column: span 2; align-self: start; }
/* group shot shows in full (no side-cropping) — natural aspect, not fixed-height cover */
.gallery figure.wide img { height: auto; object-fit: contain; }
@media (max-width: 560px) { .gallery figure.wide { grid-column: auto; } }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(0deg, rgba(14,27,51,.85), transparent);
  color: #f6f4ee; font-family: var(--mono); font-size: 0.77rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- progression chart ---- */
.chart-panel { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 6px; padding: clamp(1.1rem, 3vw, 1.9rem); box-shadow: var(--shadow); }
.chart-tabs { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.chart-tabs button {
  font-family: var(--mono); font-size: 0.81rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase;
  background: none; border: 1.5px solid var(--line-strong); border-radius: 3px;
  color: var(--ink-dim); padding: 0.55rem 1rem; cursor: pointer;
}
.chart-tabs button.on { border-color: var(--navy); background: var(--navy); color: var(--gold); }
.chart-box { position: relative; height: 360px; }
@media (max-width: 760px) { .chart-box { height: 280px; } }
.chart-foot { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.84rem; color: var(--ink-dim); letter-spacing: 0.05em; }
.chart-foot b { color: var(--gold-deep); font-weight: 800; }

/* ---- projector (on navy band) ---- */
.proj-panel { border: 1px solid rgba(246,244,238,.2); background: var(--navy-2); border-radius: 6px; overflow: hidden; }
.proj-bar {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  padding: 1.1rem clamp(1rem, 3vw, 1.6rem);
  border-bottom: 1px solid rgba(246,244,238,.15);
}
.proj-bar .label { color: #93a0bb; }
.proj-bar select {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  background: var(--navy); color: #f6f4ee;
  border: 1.5px solid rgba(246,244,238,.3); border-radius: 3px;
  padding: 0.6rem 0.9rem; letter-spacing: 0.04em;
}
.proj-total { margin-left: auto; text-align: right; }
.proj-total .pts { font-family: var(--mono); font-weight: 800; font-size: 1.8rem; color: var(--gold); line-height: 1; }
.proj-total .cap { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #93a0bb; }
.proj-panel .tbl-wrap { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.proj-panel th { background: transparent; color: #93a0bb; border-bottom: 1.5px solid rgba(246,244,238,.2); }
.proj-panel td { border-bottom: 1px solid rgba(246,244,238,.1); color: #dfe4ef; }
.proj-panel td.mark { color: #fff; }
.proj-panel td.dim { color: #aeb8cc; }
.proj-src {
  padding: 0.8rem clamp(1rem, 3vw, 1.6rem);
  font-family: var(--mono); font-size: 0.8rem; color: #93a0bb;
  letter-spacing: 0.05em; border-top: 1px solid rgba(246,244,238,.15);
  line-height: 1.7;
}

/* status chips */
.status-chip {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.24rem 0.55rem; border-radius: 2px; white-space: nowrap;
}
.status-chip.scores, .status-chip.at { background: var(--gold); color: var(--navy); }
.status-chip.close { border: 1.5px solid var(--gold); color: var(--gold); }
.status-chip.gap, .status-chip.dev { border: 1.5px solid rgba(147,160,187,.6); color: #93a0bb; }
/* chips on light background (fit matrix) */
#fit .status-chip.close { border-color: #c58c00; color: var(--gold-deep); }
#fit .status-chip.gap, #fit .status-chip.dev { border-color: var(--line-strong); color: var(--ink-dim); }

.fit-note { margin-top: 1rem; font-family: var(--mono); font-size: 0.79rem; color: var(--ink-faint); letter-spacing: 0.04em; line-height: 1.8; max-width: 90ch; }

/* ---- academics / resume cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card .label { display: block; margin-bottom: 0.6rem; }
.card .big { font-family: var(--mono); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--navy); }
.card .big.gold { color: var(--gold-deep); }
.card p { margin-top: 0.6rem; color: var(--ink-dim); font-size: 1.07rem; }

.honor-list { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.honor {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.honor:last-child { border-bottom: 0; }
.honor .yr { font-family: var(--mono); font-weight: 800; color: var(--gold-deep); font-size: 1.02rem; padding-top: 0.2rem; }
.honor h3 { font-size: 1.22rem; font-weight: 750; color: var(--navy); }
.honor p { color: var(--ink-dim); font-size: 1.04rem; margin-top: 0.3rem; }
@media (max-width: 600px) { .honor { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---- process ---- */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.proc { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1.35rem 1.35rem 1.5rem; box-shadow: var(--shadow); }
.proc .dt { font-family: var(--mono); font-size: 0.74rem; color: var(--gold-deep); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
.proc h3 { font-size: 1.14rem; font-weight: 750; margin-top: 0.45rem; color: var(--navy); }
.proc p { color: var(--ink-dim); font-size: 1.07rem; margin-top: 0.4rem; }

/* ---- contact (navy band) ---- */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-big {
  font-weight: 850; text-transform: uppercase; line-height: 1.02;
  font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; color: #fff;
}
.contact-big em { font-style: normal; color: var(--gold); }
/* contact form (on navy band) */
.contact-form { margin-top: 1.6rem; display: grid; gap: 0.85rem; max-width: 34rem; }
.contact-form .cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 520px) { .contact-form .cf-grid { grid-template-columns: 1fr; } }
.contact-form label {
  display: grid; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #93a0bb;
}
.contact-form label .cf-opt { color: #6b7690; font-weight: 500; }
.contact-form input, .contact-form textarea {
  font-family: var(--sans); font-size: 1rem; font-weight: 400;
  color: #f6f4ee; background: var(--navy-2);
  border: 1.5px solid rgba(246,244,238,.22); border-radius: 4px;
  padding: 0.7rem 0.85rem; width: 100%; text-transform: none; letter-spacing: 0;
}
.contact-form textarea { resize: vertical; min-height: 6.5rem; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,180,0,.18);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b7690; }
.contact-form .cf-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button { margin-top: 0.3rem; justify-self: start; border: 0; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.cf-status { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em; margin-top: 0.2rem; min-height: 1em; }
.cf-status.ok { color: var(--gold); }
.cf-status.err { color: #ff9a8a; }

.contact-list { display: grid; gap: 0.9rem; align-content: start; }
.contact-row {
  border: 1px solid rgba(246,244,238,.25); background: var(--navy-2); border-radius: 4px;
  padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.contact-row .label { margin: 0; color: #93a0bb; }
.contact-row a, .contact-row .val { font-family: var(--mono); font-size: 0.97rem; font-weight: 700; color: #f6f4ee; text-decoration: none; }
.contact-row a:hover { color: var(--gold); }

/* ---- footer ---- */
footer { padding: 1.6rem var(--pad) 2.2rem; background: var(--navy); border-top: 1px solid rgba(246,244,238,.12); }
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.8rem; color: #93a0bb;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Scroll-reveal removed intentionally: content must never be hidden for
   screenshots, link-preview bots, or no-JS readers. */
