/* Get Hired: site styles.
   Visual direction: warm cream and deep navy, light serif headlines,
   mono labels, hairline rules. The book cover keeps its own red and Nunito. */

:root {
  --cream: #F7F2E8;
  --cream-card: #F8F4EB;
  --stage: #EDE6DA;
  --beige: #E1DCD2;
  --navy: #13283F;
  --navy-section: #1B2837;
  --navy-2: #253447;
  --navy-700: #313E4E;
  --olive: #687E7A;
  --teal: #C0D7DB;
  --sky: #6BA6DA;
  --ink: #1D1D1D;
  --muted: #5C6E6C;
  --on-dark-muted: #A8B4B6;
  --line: rgba(19, 40, 63, .12);
  --line-soft: rgba(19, 40, 63, .06);
  --line-dark: rgba(247, 242, 232, .12);
  --red: #B3121F;
  --red-dark: #8E0E18;

  --serif: 'Newsreader', 'Tiempos Headline', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cover: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;

  --radius: 16px;
  --wrap: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.625; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; color: inherit; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Mono label, used for eyebrows and small tags */
.kicker, .eyebrow, .label { font-family: var(--mono); font-size: .78rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); margin-bottom: 1.4rem; }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Buttons: square, thin stroke */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 2px; font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: .5px solid currentColor; cursor: pointer; background: transparent; transition: background .25s var(--ease), color .25s var(--ease), transform .3s var(--ease); }
.btn::after { content: '\2192'; font-family: var(--sans); transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-light { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--cream); border-color: rgba(247,242,232,.6); }
.btn-ghost:hover { background: rgba(247,242,232,.08); }
.btn-red, .btn-navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-red:hover, .btn-navy:hover { background: var(--navy-700); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: rgba(19,40,63,.05); }
.btn-small { min-height: 38px; padding: .45rem 1rem; font-size: .74rem; }
.btn-small::after, .btn-noarrow::after { content: none; }
.btn-block { width: 100%; }

/* Quadrant mark (logo) */
.mark { display: inline-grid; grid-template-columns: 1fr 1fr; width: 22px; height: 22px; border: 1.5px solid currentColor; flex: none; }
.mark i { border: .75px solid currentColor; }
.mark i:nth-child(2) { background: var(--red); border-color: var(--red); }
.mark-red { width: 44px; height: 44px; color: var(--navy); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 232, .86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); color: var(--navy); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: 0; }
.nav nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav nav a { color: var(--navy); text-decoration: none; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav .btn { margin-left: auto; }
.nav .btn-light { background: var(--navy); color: var(--cream); border-color: var(--navy); }
@media (min-width: 880px) { .nav nav { display: block; } .nav .btn { margin-left: 1.5rem; } }

/* Hero: navy stage with a soft glow */
.hero { position: relative; background: var(--navy-section); color: var(--cream); padding: 4rem 0 4.5rem; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(ellipse at center, rgba(192,215,219,.18) 0%, rgba(192,215,219,0) 70%); z-index: -1; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(211,217,217,0) 0%, rgba(192,215,219,.8) 21.6%, rgba(104,126,122,.6) 48.6%, rgba(211,217,217,0) 100%); }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.eyebrow { color: var(--teal); margin-bottom: 1.8rem; display: block; }
.hero h1 { font-weight: 300; font-size: clamp(3.8rem, 13vw, 7.5rem); line-height: .98; letter-spacing: -0.02em; margin: 0 0 .2em; }
.hero h1 span { display: inline; }
.subtitle { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--teal); margin-bottom: 1.6rem; line-height: 1.2; }
.lede { font-size: 1.15rem; max-width: 38ch; color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 1.4rem; }
.hero-note { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0; }

.hero-book { display: flex; justify-content: center; padding: 2.5rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: linear-gradient(180deg, rgba(37,52,71,.9), rgba(27,40,55,.6)); perspective: 1400px; }
.book { width: min(70vw, 300px); transform: rotateY(-12deg) rotateX(2deg); transition: transform .6s var(--ease); filter: drop-shadow(18px 28px 30px rgba(0,0,0,.45)); }
.book:hover { transform: rotateY(-3deg); }
.cover { aspect-ratio: 2 / 3; background: linear-gradient(100deg, #8f0d17 0 3%, var(--red) 6% 100%); border-radius: 3px 8px 8px 3px; padding: 7% 8% 6%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; font-family: var(--cover); }
.c-top { font-size: clamp(.45rem, 2vw, .64rem); font-weight: 800; margin: 0 0 6%; }
.c-title { font-weight: 900; font-size: clamp(3rem, 16vw, 5.6rem); line-height: .84; margin: 0 0 4%; }
.c-sub { font-weight: 800; font-size: clamp(.85rem, 4vw, 1.3rem); margin: 0; }
.c-mark { display: grid; grid-template-columns: 1fr 1fr; width: 22%; aspect-ratio: 1; border: 1.5px solid #fff; margin: auto 0; }
.c-mark i { border: .75px solid #fff; }
.c-mark i:nth-child(2) { background: #fff; }
.c-authors { font-weight: 800; font-size: clamp(.62rem, 2.7vw, .86rem); margin: 0 0 4%; }
.cover hr { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.7); margin: 0 0 4%; }

@media (min-width: 960px) {
  .hero { padding: 6rem 0 6.5rem; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 5rem; }
}

/* Sections */
.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.12rem; }
.big { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.display { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.muted { color: var(--muted); }

.about p { color: var(--muted); }
.about .big { color: var(--ink); }
.pull { margin: 3rem 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pull p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.15; color: var(--navy); margin: 0; }

/* Quadrant */
.quad-section { background: var(--stage); }
.quad-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .quad-layout { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

.quad-figure { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: .7rem; max-width: 520px; width: 100%; margin-inline: auto; }
.axis-y { grid-row: 1; grid-column: 1; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--navy); position: relative; width: 26px; }
.axis-y span, .axis-x span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.axis-y span { writing-mode: vertical-rl; transform: rotate(180deg); }
.axis-y::before { content: ''; position: absolute; top: -1px; left: -5px; border: 4.5px solid transparent; border-bottom: 7px solid var(--navy); border-top: 0; }
.axis-x { grid-row: 2; grid-column: 2; border-top: 1px solid var(--navy); text-align: center; position: relative; padding-top: .4rem; }
.axis-x::after { content: ''; position: absolute; right: -1px; top: -5px; border: 4.5px solid transparent; border-left: 7px solid var(--navy); border-right: 0; }

.quad { grid-row: 1; grid-column: 2; position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1; background: var(--navy-section); border: 1px solid var(--navy); border-radius: 4px; overflow: hidden; }
.cell { position: relative; border: .5px solid var(--line-dark); background: var(--navy-section); color: var(--cream); font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: .5rem; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.cell:hover { background: var(--navy-2); }
.cell-name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 4.4vw, 1.7rem); }
.cell-builder { background: var(--red); color: #fff; }
.cell-builder:hover { background: #C21827; }
.cell[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--teal); }
.cell-builder[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--cream); }
.cell:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--sky); }

.arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--teal); overflow: visible; }
.arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .3; transition: opacity .3s var(--ease); vector-effect: non-scaling-stroke; }
.arrow.on { opacity: 1; stroke-dasharray: 5 4; animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -9; } }

.quad-panel { background: var(--cream-card); border-radius: var(--radius); padding: 2.2rem; border: 1px solid var(--line); min-height: 320px; }
.panel-pos { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: .8rem; }
.quad-panel h3 { font-size: 2.6rem; }
.panel-summary { font-size: 1.15rem; color: var(--ink); }
.quad-panel dl { margin: 1.6rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.quad-panel dl > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.quad-panel dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quad-panel dd { margin: .35rem 0 0; font-size: 1.05rem; }
.quad-panel [hidden] { display: none; }
.quad-foot { margin: 3rem auto 0; max-width: 640px; text-align: center; color: var(--muted); }

/* Student cards */
.cards { display: grid; gap: 1.2rem; }
@media (min-width: 780px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: var(--cream-card); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(19,40,63,.08); }
.card .card-type { align-self: flex-start; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); border: .5px solid var(--olive); padding: .3rem .7rem; border-radius: 2px; margin-bottom: 1.4rem; }
.card h3 { font-size: 2.2rem; margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card .quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.45rem; color: var(--navy); line-height: 1.3; }
.card-exit { margin-top: auto; margin-bottom: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.card-exit strong { color: var(--navy); font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-right: .3rem; }

/* Promises: navy band, numbered rows */
.promises { background: var(--navy-section); color: var(--cream); border-top: 0; }
.promises .kicker { color: var(--on-dark-muted); }
.promises .section-head p:last-child { color: var(--on-dark-muted); }
.promise-list { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 780px) { .promise-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.promise-list li { counter-increment: p; display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; padding: 1.8rem 0; border-bottom: 1px solid var(--line-dark); }
.promise-list li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--teal); }
.promise-list p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.3; }

/* Contents */
.contents details { border-bottom: 1px solid var(--line); }
.contents details:first-of-type { border-top: 1px solid var(--line); }
.contents summary { cursor: pointer; list-style: none; padding: 1.5rem 2.5rem 1.5rem 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3vw, 1.9rem); position: relative; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--navy); transition: transform .3s var(--ease); }
.contents details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.part-no { display: inline-block; min-width: 6.5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); vertical-align: middle; }
.contents ol { margin: 0 0 1.6rem; padding-left: 8.6rem; color: var(--muted); }
.contents li { padding: .3rem 0; }
.contents li::marker { font-family: var(--mono); font-size: .8rem; color: var(--olive); }
@media (max-width: 560px) { .contents ol { padding-left: 2.2rem; } .part-no { display: block; margin-bottom: .2rem; } }

/* Newsletter and sign-up */
.newsletter { background: var(--stage); }
.news-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.news-copy h2 { font-size: clamp(3rem, 7vw, 4.8rem); color: var(--navy); }
.news-list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.news-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.news-list strong { display: block; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: .2rem; }
.sample { background: var(--navy-section); color: var(--cream); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.sample-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.sample p:last-child { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 1.3rem; line-height: 1.4; }

.signup-box { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem 1.8rem; scroll-margin-top: 90px; box-shadow: 0 30px 60px rgba(19,40,63,.08); }
.signup-box h3 { font-size: 2.4rem; }
.field { margin: 0 0 1.2rem; border: 0; padding: 0; }
.field > label, legend { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: .45rem; padding: 0; }
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--sans); font-size: .85rem; }
input[type="email"], input[type="tel"], input[type="text"], select { width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; color: var(--ink); background: var(--cream); border: 1px solid rgba(19,40,63,.25); border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(107,166,218,.25); }
input[aria-invalid="true"] { border-color: #B94040; }
.checks label { display: flex; align-items: center; gap: .7rem; min-height: 38px; cursor: pointer; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.checks input { width: 18px; height: 18px; accent-color: var(--navy); }
.error { color: #B94040; font-size: .92rem; margin: .4rem 0 0; }
.error:empty { display: none; }
.form-error { text-align: center; }
.fine { font-size: .86rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .6; cursor: wait; }

.done { text-align: center; }
.done .mark { margin: 0 auto 1.2rem; }
.done-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: .4rem; }
.done-number { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; color: var(--navy); }
.share { display: grid; gap: .6rem; margin-top: 1.4rem; }

/* Authors */
.authors h2 { font-size: clamp(2rem, 4.6vw, 3rem); }

/* Footer */
.footer { background: var(--navy-section); color: var(--cream); padding: 2.4rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer p, .footer a:not(.brand) { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer a:not(.brand):hover { color: var(--cream); }

/* Simple pages */
.page { padding: 4.5rem 0 5.5rem; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.page h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.page p, .page li { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Author names on one line */
.nowrap { white-space: nowrap; }
.byline { font-family: var(--serif); font-weight: 400; font-size: clamp(1.05rem, 3.6vw, 1.3rem); color: var(--cream); white-space: nowrap; margin: -.2rem 0 0; }
.cover { container-type: inline-size; }
.c-authors { white-space: nowrap; font-size: 5.2cqw; margin: 0; }
.authors h2.nowrap-line { white-space: nowrap; font-size: clamp(1.15rem, 5.4vw, 3rem); }

/* Authors */
.author-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 3rem; text-align: left; }
@media (min-width: 820px) { .author-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.author { margin: 0; display: flex; flex-direction: column; }
.author-photo { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--navy-section); border: 1px solid var(--line); margin-bottom: 1.4rem; }
.author-photo::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 300; font-size: 4rem; color: var(--teal); }
.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.author h3 { font-size: 1.9rem; margin-bottom: .2rem; white-space: nowrap; }
.author-role { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: 1.1rem; }
.author-bio p { color: var(--muted); }
.author-link { align-self: flex-start; margin-top: .4rem; }
