/* GEEK FENCE shared styles (index.html, join.html) */
:root {
  /* Brand palette: four colours, plus support tints */
  --navy: #0A1730;
  --blue: #1D44D8;
  --yellow: #F5C948;
  --paper: #F4F1EA;
  --tint: #8CA0C6;
  --tint-2: #C7D3E8;
  --tint-3: #E6EBF4;
  --white: #FFFFFF;
  --muted: rgba(10, 23, 48, .68);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id], div[id] { scroll-margin-top: 76px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 40;
  background: var(--navy); color: var(--paper); padding: 10px 16px; font: 700 1rem var(--sans);
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Small-caps tags and labels ---------- */
.tag {
  font-family: var(--sans); font-weight: 500; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.tag b { color: var(--navy); font-weight: 700; }
.label {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(.75rem, 1.2vw, .875rem); letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
}
.label .n { margin-right: .9em; }

/* ---------- Buttons (square, small caps, like the reference) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--navy); border-radius: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--paper); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Slim sticky header (appears after the hero) ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  background: rgba(244, 241, 234, .97); border-bottom: 1.5px solid var(--tint);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.topbar.show { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.topbar .in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.topbar img { width: 108px; }
.topbar nav ul { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.topbar nav a {
  font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent;
}
.topbar nav a:hover { border-bottom-color: var(--yellow); }
.topbar .btn { min-height: 40px; padding: 0 16px; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(20px, 3vw, 36px);
}
.masthead .logo { flex: none; display: block; }
.masthead .logo img { width: clamp(190px, 32vw, 400px); }
.masthead .vr { flex: none; width: 1.5px; align-self: stretch; min-height: 90px; background: var(--tint); }
.masthead .edition {
  font-family: var(--mono); font-weight: 500; font-size: clamp(.75rem, 1.5vw, 1.15rem);
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.rule { border: 0; border-top: 1.5px solid var(--tint); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero .label { margin-bottom: clamp(24px, 3.5vw, 40px); }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 7.2vw, 6.25rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 12.5em; margin-left: clamp(0px, 4.5vw, 56px);
  text-indent: -.42em; text-wrap: balance;
}
.hero .lede {
  margin-top: clamp(28px, 4vw, 48px); margin-left: clamp(0px, 4.5vw, 56px);
  max-width: 40ch; font-family: var(--sans); font-size: clamp(1.125rem, 2.1vw, 1.625rem); line-height: 1.45;
}
.hero .cta { margin-top: clamp(32px, 4vw, 48px); margin-left: clamp(0px, 4.5vw, 56px); }

/* ---------- Big-word index (the reference's signature) ---------- */
.index { border-top: 1.5px solid var(--tint); padding-block: clamp(48px, 7vw, 96px); }
.index .grid { display: grid; grid-template-columns: 2.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.bigwords { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 3vw, 40px); }
.bigwords a {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.12; letter-spacing: -.01em; text-decoration: none;
}
.bigwords a:hover, .bigwords a:focus-visible { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 5px; text-underline-offset: 6px; }
.aside { border-left: 2px solid var(--navy); padding-left: 24px; font-size: 1.0625rem; }
.aside p { max-width: 30ch; }
.aside .talk { margin-top: 28px; }
.aside .talk a {
  display: inline-block; margin-top: 4px;
  font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid var(--navy); text-decoration: none; padding-bottom: 2px;
}
.aside .talk a:hover { border-bottom-color: var(--yellow); }

/* ---------- Cards (thumbnail, yellow bar, tag, serif title, thick rule) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.card { display: flex; flex-direction: column; }
.thumb {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 20px; overflow: hidden;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: .95;
}
.thumb + .bar { height: 10px; background: var(--yellow); }
.t-navy { background: var(--navy); color: var(--paper); }
.t-blue { background: var(--blue); color: #fff; }
.t-tint { background: var(--tint-2); color: var(--navy); }
.card .tag { margin-top: 18px; }
.card h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.005em; }
.card p.d { margin-top: 10px; color: var(--muted); font-size: 1rem; max-width: 36ch; }
.card .end { margin-top: auto; padding-top: 22px; }
.card .end::after { content: ""; display: block; border-bottom: 4px solid var(--navy); }
.card h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card h3 a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--tint-3); }
.section.ruled { border-top: 1.5px solid var(--tint); }

/* ---------- Manifesto slab: navy field, white card on top ---------- */
.edge { position: relative; height: 16px; background: var(--navy); overflow: hidden; }
.edge::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, var(--yellow) 0 3px, transparent 3px 28px);
}
.slab { background: var(--navy); color: var(--paper); padding-block: clamp(64px, 9vw, 120px); }
.slab .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.slab .shout {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: .98; letter-spacing: -.01em; text-wrap: balance;
}
.slab .shout .q { color: var(--yellow); margin-right: .1em; }
.mcard { background: var(--white); color: var(--navy); padding: clamp(28px, 4vw, 48px); max-width: 580px; justify-self: end; }
.mcard h2 { margin-top: 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; }
.mcard .dash { display: block; width: 36px; height: 4px; background: var(--navy); margin: 22px 0; }
.mcard p + p { margin-top: 14px; }
.mcard p { color: rgba(10, 23, 48, .8); }
.mcard .cta { margin-top: 28px; }

/* ---------- Ask pair (boxed labels on a hairline) ---------- */
.asks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); text-align: center; }
.ask-head { position: relative; margin-bottom: 20px; }
.ask-head::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--tint); }
.ask-head span {
  position: relative; display: inline-block; background: var(--paper); border: 1px solid var(--tint); padding: 12px 18px;
  font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.ask p { color: var(--muted); font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; max-width: 26ch; margin-inline: auto; }
.ask .btn { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(40px, 6vw, 64px); }
.pill {
  display: inline-block; background: var(--tint-2); color: var(--navy);
  font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 6px; white-space: nowrap;
}
.pill.lg { font-size: .8125rem; padding: 10px 16px; }

/* ---------- Pillars grid (6-col rhythm) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(24px, 3vw, 40px); }
.pgrid .card { background: var(--white); padding: 0 0 28px; }
.pgrid .card .thumb { aspect-ratio: auto; height: clamp(150px, 16vw, 200px); }
.pgrid .card .body { padding: 0 24px; display: flex; flex-direction: column; flex: 1; }
.pgrid .card .end { padding-top: 22px; }
.pgrid .card .end::after { margin-inline: 0; }
.thumb .num { font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 6vw, 4.75rem); line-height: .9; letter-spacing: -.02em; }
.s4 { grid-column: span 4; } .s3 { grid-column: span 3; } .s2 { grid-column: span 2; }

/* ---------- Values ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.vcard { background: var(--white); padding: 28px 28px 26px; border-bottom: 4px solid var(--navy); }
.vcard h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; }
.vcard p { margin-top: 10px; color: var(--muted); }

/* ---------- Vision (statement, circles, yellow button) ---------- */
.vision { text-align: center; }
.vision h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.8vw, 3rem); line-height: 1.18; letter-spacing: -.01em; max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.vision .sub { margin: 20px auto 0; max-width: 54ch; font-style: italic; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); color: var(--muted); }
.vision .btn { margin-top: 28px; }
.circles { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px); }
.circle {
  width: clamp(132px, 15vw, 176px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; gap: 4px; padding: 14px; text-align: center;
  background: var(--navy); color: var(--paper);
}
.circle strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(.95rem, 1.5vw, 1.2rem); line-height: 1; letter-spacing: -.005em; }
.circle.first strong { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.circle span { font-family: var(--sans); font-weight: 500; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tint-2); }
.circle.blue { background: var(--blue); color: #fff; }
.circle.blue span { color: #fff; }

/* ---------- Traits ---------- */
.traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 44px) clamp(16px, 2.5vw, 32px); }
.trait p { margin-top: 12px; font-size: 1.0625rem; max-width: 26ch; }

/* ---------- Join ---------- */
.join { text-align: center; }
.join h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.25rem, 6.4vw, 5.25rem); line-height: .98; letter-spacing: -.015em; text-wrap: balance;
}
.join h2 span { display: block; }
.join .sub { margin: 24px auto 0; max-width: 36ch; font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--muted); }
.join .cta { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--paper); }
footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 48px; }
footer img { width: 190px; }
footer .line { font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; max-width: 44ch; }
footer .meta { display: flex; flex-wrap: wrap; gap: 8px 32px; width: 100%; padding-top: 24px; border-top: 1px solid rgba(244,241,234,.2); font-family: var(--sans); font-size: .9rem; color: var(--tint-2); }
footer .meta a { text-underline-offset: 3px; }
footer :focus-visible { outline-color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .cards .card:last-child .thumb { aspect-ratio: 16 / 7; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .s4, .s3, .s2 { grid-column: auto; }
  .pgrid .card:first-child { grid-column: 1 / -1; }
  .topbar nav { display: none; }
}
@media (max-width: 760px) {
  .masthead { flex-wrap: wrap; row-gap: 14px; }
  .masthead .vr { display: none; }
  .masthead .edition { flex-basis: 100%; }
  .hero h1 { margin-left: .42em; }
  .hero .lede, .hero .cta { margin-left: 0; }
  .index .grid { grid-template-columns: 1fr; }
  .bigwords { grid-template-columns: 1fr; }
  .bigwords a { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .aside { margin-top: 8px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child .thumb { aspect-ratio: 4 / 3; }
  .slab .grid { grid-template-columns: 1fr; }
  .mcard { justify-self: stretch; max-width: none; }
  .asks { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .traits { grid-template-columns: repeat(2, 1fr); }
  .pill { white-space: normal; }
  .btn { flex: 1 1 100%; }
  .topbar .btn { flex: none; }
}
@media (max-width: 560px) {
  .vgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .label, .hero h1, .hero .lede, .hero .cta { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .08s; }
  .hero .lede { animation-delay: .18s; }
  .hero .cta { animation-delay: .26s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar, .topbar.show { transition: none; }
}
