/* Resultz — AI built for schools
   Direction: The printed annual (editorial-report), brand colours kept: black, white, money green, plus an ultramarine field. */

@font-face { font-family: "Gibson"; src: url("../fonts/Gibson-W04-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --black: #0b0c0b;
  --black-2: #151715;
  --paper: #f3f4f1;
  --ink: #ffffff;
  --ink-dark: #0b0c0b;
  --muted: #b9bdb7;
  --muted-dark: #4a4f49;
  --green: #85bb65;
  --blue: #1423b8;
  --blue-muted: #c3c9f3;

  --display: "Gibson", "Albert Sans", system-ui, sans-serif;
  --text: "Albert Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --step-head: clamp(2.5rem, 1.3rem + 4vw, 4.5rem);
  --step-display: clamp(3.5rem, 6.6vw, 6.5rem);
  --step-sub: clamp(1.75rem, 2.4vw, 2.25rem);

  --m: 48px;              /* page margin */
  --axis: 42%;            /* the column line everything hangs from */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --section: clamp(96px, 10vw, 150px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: var(--ink-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--green); color: var(--ink-dark); padding: 10px 16px; z-index: 10; }
.skip:focus { top: 12px; }

.display, .head {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.4; }

/* buttons: square corners, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--green); color: var(--ink-dark);
  font-weight: 500; text-decoration: none; font-size: var(--step-body);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.btn-dark { background: var(--ink-dark); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #9bcc7d; }
  .btn-dark:hover { background: #2a2d2a; }
}

/* ───────── hero: "Void, then statement on axis" (dealt blueprint).
   The upper zone the blueprint leaves empty is given to Bryce, at full width:
   Chezky asked for the brain to be the big moment. Type hangs from the 42% axis. ───────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  padding: 26px var(--m) 0;
  background: var(--black);
  overflow: clip;
  isolation: isolate;
}
.brain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.brain-still { position: absolute; right: var(--m); top: 12%; width: 56%; height: 76%; object-fit: contain; filter: grayscale(1) invert(1); opacity: 0.45; z-index: -1; }
.bar { position: relative; z-index: 3; display: flex; align-items: center; }
.brand img { width: 150px; height: auto; }
.bar-links { position: absolute; left: var(--axis); display: flex; gap: 32px; font-size: var(--step-small); }
.bar-links a { text-decoration: none; color: var(--muted); transition: color 200ms ease; }
.bar-links a:hover, .bar-links a:focus-visible { color: var(--ink); }
.bar .btn { margin-left: auto; }

/* the brain's zone: the top of the screen, margin to margin, above the type */
.brain {
  position: absolute; z-index: 1;
  left: var(--m); right: var(--m); top: 84px; bottom: calc(72px + 2 * 0.95 * var(--step-display) + 16px);
  padding: 0; border: 0; background: none; color: inherit;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}
.brain:focus-visible { outline-offset: -8px; }
.brain-label {
  position: absolute; left: 0; top: 0; z-index: 2;
  font-size: var(--step-small); font-weight: 500; color: var(--ink);
  background: var(--black-2); padding: 7px 12px 7px 10px;
  white-space: nowrap; pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}
.brain-label.on { opacity: 1; }
.brain-label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--green); margin-right: 8px; vertical-align: 1px; }

.hero-copy {
  position: absolute; z-index: 2;
  left: var(--m); right: var(--m); bottom: 72px;
  display: grid;
  grid-template-columns: var(--axis) 1fr;
  align-items: last baseline;
}
.hero h1 {
  grid-column: 2; grid-row: 1;
  font-family: var(--display); font-weight: 700;
  font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.04em;
}
.hero-sub { grid-column: 1; grid-row: 1; max-width: 32ch; padding-right: 32px; color: var(--muted); font-size: var(--step-body); line-height: 1.45; }
.hero-copy .btn { display: none; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

/* ───────── intro tiles ───────── */
.intro { background: var(--paper); color: var(--ink-dark); padding: 8px var(--m) 0; }
.tiles {
  display: grid; gap: 8px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 38svh 38svh;
}
.tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 20px 24px; }
.tile-a { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--black); color: var(--ink); }
.tile-a .display { font-size: var(--step-display); line-height: 0.92; }
.tile-b { grid-column: 9 / 13; grid-row: 1; background: var(--green); color: var(--ink-dark); }
.tile-b .display { font-size: var(--step-display); line-height: 0.92; }
.tile-c { grid-column: 9 / 13; grid-row: 2; padding: 0; }
.tile-c img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.intro-text { display: grid; grid-template-columns: var(--axis) 1fr; padding: 80px 0 var(--section); align-items: start; }
.intro-side { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-lead); line-height: 1.1; max-width: 16ch; }
.intro-text .lead { max-width: 44ch; }

/* ───────── how we work ───────── */
.how { background: var(--blue); color: var(--ink); padding: var(--section) var(--m); }
.how-head { display: grid; grid-template-columns: var(--axis) 1fr; align-items: end; gap: 0; }
.how-head p { max-width: 38ch; font-size: var(--step-lead); line-height: 1.4; }
.how-diagram { margin: 72px 0 40px; }
.many { display: block; width: 100%; height: auto; }
.many-tall { display: none; }
.many rect { transition: transform 1200ms var(--ease-out), opacity 600ms ease; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-steps h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-sub); line-height: 1; margin-bottom: 14px; }
.how-steps p { max-width: 34ch; }

/* ───────── what we build ───────── */
.build { background: var(--black); padding: var(--section) 0; }
.head-mid { padding: 0 var(--m); margin-bottom: 64px; }
.band { display: flex; height: 68svh; }
.panel { position: relative; flex: var(--g) 1 0; min-width: 0; overflow: hidden; transition: flex-grow 500ms var(--ease-out); }
.panel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.panel:first-child img { filter: grayscale(1) invert(1) contrast(1.1); }
.panel-title {
  position: absolute; left: 0; top: 0; padding: 24px 28px 28px var(--m);
  background: var(--black); color: var(--ink);
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-lead); line-height: 1;
}
@media (hover: hover) and (pointer: fine) { .panel:hover { flex-grow: 6; } }
.band-notes { display: flex; gap: 0; padding: 32px var(--m) 0; }
.band-notes > div { flex: var(--g) 1 0; min-width: 0; padding-right: 32px; }
.band-notes h3 { font-size: var(--step-body); font-weight: 700; margin-bottom: 6px; }
.band-notes p { max-width: 36ch; color: var(--ink); }
.band-notes a { color: var(--green); }

/* ───────── privacy ───────── */
.privacy { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.privacy-cell { background: var(--paper); color: var(--ink-dark); padding: 72px var(--m) 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.privacy-fig { flex: 1; min-height: 240px; background: var(--ink-dark); overflow: hidden; }
.privacy-fig img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: normal; }
.zig { display: flex; flex-direction: column; }
.zig span:nth-child(2) { text-align: right; }
.privacy-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.privacy-foot p { max-width: 30ch; }
.privacy-rows { display: grid; grid-auto-rows: 1fr; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 10px 24px; align-content: start; padding: 32px var(--m) 32px 32px; background: var(--black); }
.row h3 { grid-row: 1 / 3; }
.row:nth-child(even) { background: var(--black-2); }
.row h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-lead); line-height: 1; }
.row p { font-size: var(--step-body); }
.row .terms { color: var(--muted); font-size: var(--step-body); grid-column: 2; }

/* ───────── jobs ───────── */
.jobs { background: var(--blue); color: var(--ink); padding: var(--section) var(--m); }
.jobs-head { display: flex; flex-direction: column; line-height: 0.98; }
.jobs-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 64px; align-items: end; }
.jobs-photo { grid-column: 1 / 5; grid-row: 1; align-self: end; }
.jobs-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.jobs-word { grid-column: 6 / 8; grid-row: 1; align-self: start; font-size: var(--step-small); color: var(--blue-muted); padding-top: 4px; }
.jobs-table { grid-column: 6 / 13; grid-row: 1; border-collapse: collapse; width: 100%; font-size: var(--step-body); }
.jobs-table th { text-align: left; font-weight: 400; color: var(--blue-muted); width: 24%; }
.jobs-table td:nth-child(2) { width: 40%; font-weight: 500; }
.jobs-table td:last-child { text-align: right; }
.jobs-table th, .jobs-table td { padding: 13px 0; vertical-align: top; }
.jobs-table td:nth-child(2) { padding-right: 16px; }
.jobs-table tr.group th, .jobs-table tr.group td { padding-top: 44px; }

/* ───────── about ───────── */
.about { background: var(--paper); color: var(--ink-dark); padding: var(--section) var(--m); }
.about-lead { max-width: 46ch; margin-top: 24px; }
.about-tiles { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; margin-top: 72px; align-items: start; }
.about-photo { position: relative; }
.about-photo { overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 62% 38%; filter: grayscale(1) contrast(1.05); scale: 1.3; transform-origin: 62% 40%; }
.about-note { position: absolute; top: 0; right: 0; width: 320px; padding: 20px; background: var(--paper); font-size: var(--step-body); }
.about-tile { background: var(--green); aspect-ratio: 4 / 3.2; display: flex; align-items: flex-end; padding: 24px; }
.about-tile .display { font-size: var(--step-sub); color: var(--ink-dark); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 24px 0 0; }
.facts dt { font-size: var(--step-small); color: var(--muted-dark); }
.facts dd { margin: 2px 0 0; font-weight: 500; font-size: var(--step-body); }

/* ───────── cta ───────── */
.cta-strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 40svh; }
.cta-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.cta-band { background: var(--green); color: var(--ink-dark); padding: 96px var(--m) 104px; display: grid; grid-template-columns: var(--axis) 1fr; align-items: end; row-gap: 40px; }
.cta-statement { grid-column: 1 / 3; max-width: 38ch; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-sub); line-height: 1.12; }
.cta-statement a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; transition: text-decoration-color 200ms ease; }
.cta-statement a:hover { text-decoration-color: var(--ink); }
.cta-act { grid-column: 2; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-small { font-size: var(--step-body); }

/* ───────── footer ───────── */
.foot { background: var(--black); color: var(--ink); display: grid; grid-template-rows: auto 120px auto auto; padding: 56px var(--m) 24px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--step-body); }
.foot-cols p { color: var(--muted); }
.foot-cols p:first-child { color: var(--ink); font-weight: 500; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-mark { grid-row: 3; width: 100%; height: auto; margin-bottom: 20px; }
.legal { grid-row: 4; font-size: var(--step-small); color: var(--muted); max-width: 62ch; }

/* ───────── motion (hidden states only with JS and no reduced-motion) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); }
  .js.loaded .lines [data-line] { transform: none; transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 110ms + 120ms); }
  .js .hero-sub, .js .hero-copy .btn { opacity: 0; transform: translateY(16px); }
  .js.loaded .hero-sub, .js.loaded .hero-copy .btn { opacity: 1; transform: none; transition: opacity 600ms ease 420ms, transform 700ms var(--ease-out) 420ms; }
  .js.loaded .hero-copy .btn { transition-delay: 500ms; }
  .js .brain-canvas { opacity: 0; transform: scale(0.94); }
  .js.loaded .brain-canvas { opacity: 1; transform: none; transition: opacity 1600ms ease 100ms, transform 2200ms var(--ease-out) 100ms; }
  .js .reveal { opacity: 0; transform: translateY(24px); }
  .js .reveal.in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .tile-c img, .about-photo img { transform: scale(1.06); transition: transform 2400ms var(--ease-out); }
  .tile-c.in img, .about-photo.in img { transform: scale(1); }
}

/* ───────── tablet ───────── */
@media (max-width: 1024px) {
  :root { --m: 32px; }
  .band-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .band-notes > div { padding-right: 0; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 28px; }
  .brain { position: relative; inset: auto; flex: 1; min-height: 48svh; margin: 8px 0 24px; }
  .hero-copy { position: relative; left: auto; right: auto; bottom: auto; display: block; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 6.5rem); }
  .hero-sub { max-width: 40ch; margin-top: 24px; padding: 0; color: var(--muted); }
  .hero-copy .btn { display: inline; min-height: 0; padding: 0; margin-top: 18px; background: none; color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 500; }
  .hero-copy .btn:hover { background: none; color: var(--ink); }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row h3 { grid-row: auto; }
  .row .terms { grid-column: 1; }
  .privacy-rows { grid-auto-rows: auto; }
  .jobs-photo { grid-column: 1 / 13; grid-row: 2; width: 50%; justify-self: end; margin-top: 48px; }
  .jobs-word { display: none; }
  .jobs-table { grid-column: 1 / 13; }
  .about-note { position: static; width: auto; padding: 20px 0 0; }
  .privacy { grid-template-columns: 1fr; }
  .privacy-cell { min-height: 60svh; }
}

/* ───────── phone ───────── */
@media (max-width: 720px) {
  :root { --m: 20px; --axis: 0px; --section: 120px; --step-display: 11vw; --step-head: 8vw; --step-sub: 8vw; }
  .hero { padding: 20px var(--m) 32px; }
  .bar-links { display: none; }
  .brand img { width: 120px; }
  .brain { min-height: 48svh; margin: 0 0 16px; }
  .hero-sub { margin-top: 20px; }

  .intro-text { grid-template-columns: 1fr; row-gap: 20px; }
  .privacy-fig { min-height: 200px; }
  .intro { padding: 6px var(--m) 0; }
  .tile { padding: 14px; }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh auto; gap: 6px; }
  .tile-a { grid-column: 1 / 3; grid-row: 1; }
  .tile-b, .tile-c { grid-row: 2; aspect-ratio: 1; }
  .tile-b { grid-column: 1; }
  .tile-c { grid-column: 2; }
  .intro-text { padding: 48px 0 var(--section); }
  .intro-text .lead { font-size: var(--step-body); }

  .how-head { grid-template-columns: 1fr; gap: 24px; }
  .how-head p { font-size: var(--step-body); }
  .how-diagram { margin: 48px 0 0; }
  .many-wide { display: none; }
  .many-tall { display: block; width: 78%; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }

  .head-mid { margin-left: 0; margin-bottom: 40px; }
  .band { flex-wrap: wrap; height: 84svh; }
  .panel { flex: none; height: 50%; }
  .panel:nth-child(1) { width: 64%; } .panel:nth-child(2) { width: 36%; }
  .panel:nth-child(3) { width: 36%; } .panel:nth-child(4) { width: 64%; }
  .panel-title { padding: 16px 18px 18px var(--m); }
  .band-notes { grid-template-columns: 1fr; gap: 28px; }

  .privacy { grid-template-columns: 1fr; }
  .privacy-cell { min-height: 70svh; padding: 56px var(--m) 40px; }
  .privacy-foot { flex-direction: column; align-items: flex-start; }
  .row { padding: 28px var(--m); }

  .jobs-head span:first-child { padding-left: 0; }
  .jobs-body { margin-top: 56px; display: block; }
  .jobs-table, .jobs-table tbody, .jobs-table tr { display: block; }
  .jobs-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; }
  .jobs-table th, .jobs-table td { padding: 0; width: auto !important; }
  .jobs-table th { grid-column: 1; }
  .jobs-table td:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
  .jobs-table td:last-child { grid-column: 2; grid-row: 1; text-align: right; color: var(--ink); font-size: var(--step-small); }
  .jobs-table tr.group { padding-top: 36px; }
  .jobs-table tr.group th, .jobs-table tr.group td { padding-top: 0; }
  .jobs-photo { width: 60%; margin: 40px 0 0 auto; }

  .about-lead { font-size: var(--step-body); }
  .about-tiles { grid-template-columns: 1fr; margin-top: 48px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .about-tile { aspect-ratio: 3 / 2; }

  .cta-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .cta-strip img:first-child { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .cta-strip img { aspect-ratio: 1; }
  .cta-band { display: block; padding: 56px var(--m); }
  .cta-statement { font-size: var(--step-lead); }
  .cta-act { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 20px; }

  .foot { grid-template-rows: auto 20svh auto auto; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
