/* ============================================================
   ALLPORT TALENT — Design Tokens
   Sibling of Allport Partners: same type system + crop-mark motif,
   but its own identity — a warmer ink base and a single amber accent
   for the human, team-building side of the group.
   Display: Fraunces  ·  Body: Inter  ·  Utility/label: IBM Plex Mono
   ============================================================ */

:root {
  --bg: #0f1113;          /* warmer, slightly bluer ink than the parent's neutral black */
  --bg-panel: #16181c;
  --bg-panel-2: #1b1e23;
  --fg: #ece9e3;
  --fg-dim: #9ba0a8;
  --fg-faint: #6c6f76;
  --line: rgba(236, 233, 227, 0.14);
  --line-strong: rgba(236, 233, 227, 0.28);
  --white: #f5f2ec;
  --black: #0f1113;

  /* Signature: the one thing the parent deliberately does NOT have. */
  --accent: #e4a548;      /* warm amber/honey */
  --accent-dim: #b9863a;
  --accent-soft: rgba(228, 165, 72, 0.14);

  --display: 'Fraunces', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 12vw, 152px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain for tactility */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--white);
}

h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 460; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; }

h1 em, h2 em, .display em { font-style: italic; font-weight: 400; }

p { margin: 0 0 1.1em 0; color: var(--fg-dim); font-size: 17px; }
p.lede { color: var(--fg); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* corner crop marks — recurring structural device (archive/file motif) */
.crop-marks { position: relative; }
.crop-marks::before, .crop-marks::after,
.crop-marks .cm-tr, .crop-marks .cm-br {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.crop-marks::before { top: 0; left: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.crop-marks::after { bottom: 0; left: 0; border-bottom: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.crop-marks .cm-tr { top: 0; right: 0; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.crop-marks .cm-br { bottom: 0; right: 0; border-bottom: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  background: none;
}
.btn-solid {
  background: var(--accent);
  color: #201603;
  border-color: var(--accent);
}
.btn-solid:hover { background: #f0b862; border-color: #f0b862; }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn svg { width: 13px; height: 13px; }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 26px; width: auto; }
.brand-word {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--white);
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.primary a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.15s ease;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
nav.primary a:hover, nav.primary a.active { color: var(--white); border-color: var(--line-strong); }
.nav-cta { display: flex; align-items: center; gap: 28px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 860px) {
  nav.primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px var(--pad) 30px;
    gap: 20px;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
    display: none;
  }
  nav.primary.open { display: flex; }
  nav.primary a { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(64px, 12vw, 140px);
  padding-bottom: clamp(56px, 10vw, 110px);
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 15ch; }
.redact-line { display: block; position: relative; overflow: hidden; padding-bottom: 0.06em; }
.redact-line .bar {
  position: absolute;
  top: 2%;
  left: 0;
  width: 100%;
  height: 96%;
  background: var(--white);
  transform-origin: right;
  animation: redact-reveal 0.9s cubic-bezier(.77,0,.18,1) forwards;
}
.redact-line:nth-child(1) .bar { animation-delay: 0.15s; }
.redact-line:nth-child(2) .bar { animation-delay: 0.5s; }
@keyframes redact-reveal {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .redact-line .bar { animation: none; display: none; }
}

.hero-sub {
  max-width: 620px;
  margin-top: 30px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); border-bottom: 1px solid var(--line); }
section:last-of-type, footer + section, section.no-border { border-bottom: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 14ch; }
.section-head .lede { max-width: 40ch; margin: 0; }

/* ---------- Grids / Cards ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  padding: 40px 34px;
}
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-faint); text-transform: uppercase; margin-bottom: 18px; display: block; }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 15.5px; }

/* stage / process list (genuinely sequential — numbering justified) */
.stage {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.stage:first-of-type { border-top: none; }
.stage .num { font-family: var(--mono); font-size: 13px; color: var(--fg-faint); letter-spacing: 0.08em; padding-top: 4px; }
.stage h3 { margin-bottom: 10px; }
.stage p { max-width: 62ch; }
@media (max-width: 640px) { .stage { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- CTA banner ---------- */

.cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 { max-width: 16ch; }

/* ---------- FAQ ---------- */

.faq-item { padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: none; }
.faq-item h3 { font-size: 18px; margin-bottom: 10px; font-weight: 500; }
.faq-item p { margin-bottom: 0; }

/* ---------- Footer ---------- */

footer.site {
  padding: 56px var(--pad) 40px;
  border-top: 1px solid var(--line);
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 22px; }
.footer-brand span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--fg-dim); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { font-family: var(--mono); font-size: 12.5px; }
.footer-col .h { color: var(--fg-faint); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-size: 11px; }
.footer-col a, .footer-col span.line { display: block; color: var(--fg-dim); margin-bottom: 9px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--fg-dim);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); margin-top: 18px; }
.form-status { font-family: var(--mono); font-size: 13px; margin-top: 20px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--fg); }
.form-status.err { color: var(--fg); }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.quote-block {
  border-left: 2px solid var(--line-strong);
  padding-left: 28px;
  margin: 36px 0;
}
.quote-block p { color: var(--white); font-family: var(--display); font-size: 20px; font-style: italic; font-weight: 400; line-height: 1.5; }

::selection { background: var(--white); color: var(--black); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Ensure [hidden] always hides (used by the contact form success swap) */
[hidden] { display: none !important; }

/* Comparison table (Insights articles) */
.table-wrap { overflow-x: auto; margin: 34px 0; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.compare thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); border-bottom: 1px solid var(--line-strong); }
table.compare thead th.col-retained { color: var(--white); }
table.compare tbody th { font-weight: 600; color: var(--white); width: 24%; }
table.compare tbody td { color: var(--fg-dim); }
table.compare td.col-retained { color: var(--fg); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }

/* Insights article byline + list */
.byline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-faint); text-transform: uppercase; margin-top: 22px; }
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 46px; }
.insight-card { display: block; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.insight-card:first-of-type { border-top: none; }
.insight-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.insight-card h3 { margin: 10px 0 8px; color: var(--white); }
.insight-card p { margin: 0; color: var(--fg-dim); }

/* ============================================================
   ALLPORT TALENT — sibling-specific components
   ============================================================ */

/* "Part of Allport Group" endorsement lockup (header + footer) */
.part-of {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.part-of b { color: inherit; font-weight: inherit; }
.brand .part-of { display: block; margin-top: 3px; letter-spacing: 0.1em; }

/* Hero keyword accent underline — Talent's answer to the parent's redact-line */
.accent-underline {
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.14em;
  background: var(--accent);
  opacity: 0.9;
  border-radius: 1px;
}

/* Inline text links pick up the accent */
.article-body a, .prose a, a.accent-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.article-body a:hover, .prose a:hover, a.accent-link:hover { color: #f0b862; }

/* Active nav item gets an amber marker */
nav.primary a.active { color: var(--fg); }
nav.primary a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 4px;
}

/* ---- Signature: role-tier ticker ---- */
.role-ticker {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.role-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  will-change: transform;
}
.role-ticker__track span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.role-ticker__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .role-ticker__track { animation: none; }
}

/* ---- "Two firms, one standard" connection band ---- */
.connection {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.connection .pair {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--line);
}
.connection .pair > .col { padding: clamp(24px, 4vw, 40px); }
.connection .pair > .div { background: var(--line); }
.connection .pair .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-faint);
}
.connection .pair h3 { margin: 12px 0 10px; }
.connection .pair.this h3 { color: var(--accent); }
.connection .pair p { margin: 0 0 16px; font-size: 15.5px; }
@media (max-width: 720px) {
  .connection .pair { grid-template-columns: 1fr; }
  .connection .pair > .div { display: none; }
  .connection .pair > .col:first-child { border-bottom: 1px solid var(--line); }
}

/* Two-line brand lockup (wordmark + endorsement) sits tight against the mark */
.brand-word { line-height: 1.25; }


/* Talent marquee accent */
.marquee__track span::after { background: var(--accent); }

/* Two-row labeled marquee — seniority (row 1) + functions (row 2), opposing directions */
.marquee-set { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-row { display: flex; align-items: center; }
.marquee-row + .marquee-row { border-top: 1px solid var(--line); }
.marquee-label {
  flex: 0 0 104px;
  align-self: stretch;
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg);
  padding-right: 16px; margin-right: 16px;
  border-right: 1px solid var(--line);
}
/* Desktop: align the whole marquee with the content column so labels don't clip the edge */
@media (min-width: 621px) {
  .marquee-set { max-width: var(--container); margin-left: auto; margin-right: auto; margin-top: 34px; padding-left: var(--pad); padding-right: var(--pad); }
}
.marquee { flex: 1 1 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; padding: 13px 0; will-change: transform; }
.marquee--left .marquee__track  { animation: marquee-left 44s linear infinite; }
.marquee--right .marquee__track { animation: marquee-right 44s linear infinite; }
.marquee__track span {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 22px; padding: 0 22px;
}
.marquee__track span::after { content:""; width:4px; height:4px; border-radius:50%; background: var(--fg-faint); display:inline-block; }
@keyframes marquee-left  { from{transform:translateX(0)}      to{transform:translateX(-50%)} }
@keyframes marquee-right { from{transform:translateX(-50%)}   to{transform:translateX(0)} }
@media (max-width: 620px){ .marquee-label{ flex-basis: 82px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation: none !important; } }

/* Talent marquee accent */
.marquee__track span::after { background: var(--accent); }
