/* ==========================================================================
   Futuristic — main stylesheet
   Ports the index.html design tokens + the per-section JSX inline styles
   into a single class-based stylesheet.
   ========================================================================== */

:root {
  --paper: #f1ece2;
  --paper-2: #e7e1d3;
  --paper-3: #d9d2c0;
  --ink: #0d0c0a;
  --ink-2: #221f1a;
  --ink-soft: #4a463d;
  --ink-mute: #7d7868;
  --rule: #c9c2b1;
  --accent: #d65126;
  --accent-deep: #a83a17;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-mute: var(--ink-mute);
  --line: var(--rule);
  --panel: var(--paper-2);
  --panel-2: var(--paper-3);

  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
}

[data-mode="ink"] {
  --bg: #0c0b09;
  --fg: #f1ece2;
  --fg-soft: #c8c1b0;
  --fg-mute: #807a6b;
  --line: #2a2620;
  --panel: #14110d;
  --panel-2: #1c1812;
}

/* ----- reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
}
body {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

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

::selection { background: var(--accent); color: #fff; }

/* ----- typographic primitives ------------------------------------------ */
.fg-mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace; font-feature-settings: "ss01"; letter-spacing: 0; }
.fg-serif { font-family: "Newsreader", "Times New Roman", serif; }
.fg-display { font-family: "Geist", sans-serif; font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; }
.fg-ital { font-style: italic; }
.fg-accent { color: var(--accent); }
.fg-soft { color: var(--fg-soft); }
.fg-mute { color: var(--fg-mute); }

.fg-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.fg-h1 { font-size: clamp(48px, 9.4vw, 168px); }
.fg-h2 { font-size: clamp(36px, 5.4vw, 88px); }
.fg-h3 { font-size: clamp(22px, 2vw, 30px); }

/* ----- container -------------------------------------------------------- */
.fg-container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.fg-rule { border-top: 1px solid var(--line); }

/* ----- 12-col grid ------------------------------------------------------ */
.fg-grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 720px) {
  .fg-grid-12 { grid-template-columns: 1fr; }
  .fg-grid-12 > * { grid-column: 1 / -1 !important; }
}

/* ----- section base ---------------------------------------------------- */
.fg-section {
  padding-block: clamp(60px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.fg-section--panel { background: var(--panel); }
.fg-section--inverted {
  background: var(--fg);
  color: var(--bg);
}
.fg-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}
.fg-section-head .fg-section-meta {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================ NAV */
.fg-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.fg-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom-color: var(--line);
}
.fg-nav-inner {
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.fg-nav-brand {
  display: flex; align-items: center; gap: 10px;
}
.fg-nav-wordmark {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.fg-nav-links {
  display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap;
}
.fg-nav-links a {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--fg-soft); letter-spacing: 0.06em;
}
.fg-nav-links a:hover { color: var(--accent); }
.fg-nav-cta {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; padding: 9px 14px;
  border: 1px solid var(--fg); color: var(--fg);
  letter-spacing: 0.08em;
}
.fg-nav-cta:hover { background: var(--fg); color: var(--bg); }
.fg-nav-burger { display: none; background: none; border: 0; padding: 6px; color: var(--fg); }
@media (max-width: 900px) {
  .fg-nav-links, .fg-nav-cta { display: none; }
  .fg-nav-burger { display: block; margin-left: auto; }
  .fg-nav.is-open .fg-nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad);
  }
  .fg-nav.is-open .fg-nav-links a { padding: 12px 0; font-size: 14px; }
  .fg-nav.is-open .fg-nav-cta { display: inline-block; margin: 8px var(--pad) 16px; }
}

/* ============================================================ HERO */
.fg-hero {
  position: relative;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.fg-hero-meta {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px;
}
.fg-hero-meta .fg-hero-meta-active { color: var(--accent); letter-spacing: 0.18em; }
.fg-hero-meta .fg-hero-meta-cities,
.fg-hero-meta .fg-hero-meta-vol { color: var(--fg-mute); letter-spacing: 0.16em; }
.fg-hero-meta .fg-hero-meta-vol { margin-left: auto; }
.fg-hero h1 { margin-top: 8px; }
.fg-hero-body {
  margin-top: clamp(24px, 4vw, 48px);
  align-items: start;
}
.fg-hero-body p.fg-hero-positioning {
  grid-column: 1 / span 7;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  max-width: 58ch;
}
.fg-hero-body .fg-hero-cta {
  grid-column: 9 / span 4;
  display: flex; flex-direction: column; gap: 14px;
}
.fg-btn-solid, .fg-btn-outline {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; font-size: 15; font-weight: 500;
}
.fg-btn-solid { background: var(--fg); color: var(--bg); }
.fg-btn-outline { border: 1px solid var(--fg); color: var(--fg); }
.fg-btn-solid:hover { background: var(--accent); color: #fff; }
.fg-btn-outline:hover { background: var(--fg); color: var(--bg); }
.fg-hero-caveat {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); letter-spacing: 0.08em;
  margin-top: 6px; line-height: 1.6;
}

/* ============================================================ TICKER */
.fg-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 92%, var(--fg) 8%);
  white-space: nowrap;
}
.fg-ticker-track {
  display: inline-flex; gap: 48px; padding: 14px 0;
  animation: fgTickerRoll 60s linear infinite;
}
.fg-ticker-track span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; color: var(--fg-mute);
}
@keyframes fgTickerRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fg-ticker-track { animation: none; }
}

/* ============================================================ THESIS */
.fg-thesis-h2 { max-width: 18ch; margin-bottom: clamp(40px, 6vw, 80px); }
.fg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fg-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
}
.fg-card-tag {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; color: var(--accent);
  text-transform: uppercase;
}
.fg-card h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.05; margin: 0; }
.fg-card p { color: var(--fg-soft); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* ============================================================ SERVICES */
.fg-services-intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: end; margin-bottom: clamp(40px, 6vw, 64px);
}
.fg-services-intro h2 { grid-column: 1 / span 8; font-size: clamp(36px, 5vw, 80px); margin: 0; }
.fg-services-intro p { grid-column: 9 / span 4; color: var(--fg-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 720px) {
  .fg-services-intro h2, .fg-services-intro p { grid-column: 1 / -1; }
}
.fg-service-list { border-top: 1px solid var(--line); }
.fg-service-row { border-bottom: 1px solid var(--line); }
.fg-service-trigger {
  all: unset; cursor: pointer; display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px; padding: 28px 0; width: 100%; align-items: baseline;
}
.fg-service-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fg-service-code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--fg-mute); letter-spacing: 0.08em;
}
.fg-service-title {
  font-family: "Geist", sans-serif; font-weight: 500;
  letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(24px, 2.6vw, 38px);
}
.fg-service-glyph {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px; color: var(--fg-mute);
}
.fg-service-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 0 0 124px;
}
.fg-service-row[data-open="true"] .fg-service-panel {
  max-height: 480px;
  padding: 0 0 32px 124px;
}
.fg-service-panel-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.fg-service-panel-grid p { grid-column: 1 / span 7; font-size: 17px; line-height: 1.55; color: var(--fg-soft); margin: 0; }
.fg-service-panel-grid .fg-service-deliv { grid-column: 9 / span 4; }
.fg-service-deliv .fg-label-inner { margin-bottom: 8px; }
.fg-service-deliv p {
  grid-column: auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--fg); line-height: 1.6;
}
@media (max-width: 720px) {
  .fg-service-trigger { grid-template-columns: 64px 1fr auto; }
  .fg-service-panel,
  .fg-service-row[data-open="true"] .fg-service-panel { padding-left: 64px; }
  .fg-service-panel-grid p,
  .fg-service-panel-grid .fg-service-deliv { grid-column: 1 / -1; }
}

/* ============================================================ ENGAGEMENT */
.fg-engagement-h2 { max-width: 16ch; margin-bottom: clamp(40px, 5vw, 64px); }
.fg-step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0; padding: 0;
}
.fg-step {
  background: var(--bg);
  padding: 28px 24px 32px;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.fg-step-top { display: flex; justify-content: space-between; align-items: baseline; }
.fg-step-num {
  font-family: "Geist", sans-serif; font-weight: 500;
  letter-spacing: -0.035em; line-height: 1;
  color: var(--accent);
  font-size: clamp(40px, 4.4vw, 64px);
}
.fg-step-dur {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); letter-spacing: 0.08em;
}
.fg-step h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 18px 0 0; }
.fg-step p { color: var(--fg-soft); font-size: 14.5px; line-height: 1.55; margin: 10px 0 0; }
.fg-step-out {
  margin-top: auto; padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.fg-step-out .fg-out-text {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; margin-top: 4px;
}

/* ============================================================ PRINCIPALS */
.fg-principals-h2 { max-width: 22ch; margin-bottom: clamp(40px, 6vw, 64px); }
.fg-principal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .fg-principal-grid { grid-template-columns: 1fr; }
}
.fg-principal {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}
.fg-principal--no-photo { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .fg-principal { grid-template-columns: 1fr; }
}
.fg-principal-portrait {
  width: 180px; height: 220px;
  background: var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center;
}
.fg-principal-portrait img { width: 100%; height: 100%; object-fit: cover; }
.fg-principal-body { display: flex; flex-direction: column; }
.fg-principal-title {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fg-principal-body h3 {
  font-size: clamp(28px, 3vw, 44px);
  margin: 6px 0 0;
}
.fg-principal-body p {
  margin: 18px 0 0;
  color: var(--fg-soft); font-size: 15.5px; line-height: 1.6;
}
.fg-principal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.fg-principal-tags span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; padding: 4px 9px;
  border: 1px solid var(--line); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================ FIELD NOTES */
.fg-notes-intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: end; margin-bottom: clamp(40px, 6vw, 56px);
}
.fg-notes-intro h2 { grid-column: 1 / span 9; font-size: clamp(36px, 5vw, 80px); margin: 0; }
.fg-notes-intro p { grid-column: 10 / span 3; color: var(--fg-soft); font-size: 14.5px; margin: 0; }
@media (max-width: 720px) {
  .fg-notes-intro h2, .fg-notes-intro p { grid-column: 1 / -1; }
}
.fg-notes-list { border-top: 1px solid var(--line); }
.fg-note {
  display: grid; grid-template-columns: 110px 1fr 80px 24px;
  gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background-color .2s ease;
  color: inherit;
}
.fg-note:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.fg-note-date {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fg-note-cat {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--accent); letter-spacing: 0.14em;
  margin-bottom: 6px; text-transform: uppercase;
}
.fg-note-title {
  font-family: "Geist", sans-serif; font-weight: 500;
  letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(20px, 1.9vw, 26px);
  display: block;
}
.fg-note-lede { color: var(--fg-mute); font-size: 14.5px; line-height: 1.5; display: block; margin-top: 4px; }
.fg-note-read {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--fg-mute); text-align: right;
}
.fg-note-arrow { color: var(--fg-mute); text-align: right; }
@media (max-width: 720px) {
  .fg-note { grid-template-columns: 1fr; }
  .fg-note-read, .fg-note-arrow { text-align: left; }
}

/* ============================================================ CONTACT */
.fg-contact { padding-block: clamp(60px, 10vw, 160px); }
.fg-contact .fg-section-meta { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.fg-contact .fg-label { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.fg-contact h2 { max-width: 14ch; font-size: clamp(48px, 9vw, 168px); margin: 0; }
.fg-contact-body {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  margin-top: clamp(40px, 6vw, 80px); align-items: start;
}
.fg-contact-cta { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 16px; }
.fg-contact-cta a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px; font-size: 17px; font-weight: 500;
}
.fg-contact-cta-primary { background: var(--accent); color: #fff; }
.fg-contact-cta-secondary { border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); }
.fg-contact-caveat {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: color-mix(in srgb, var(--bg) 60%, transparent);
  letter-spacing: 0.08em; margin-top: 8px; line-height: 1.6;
}
.fg-coverage { grid-column: 7 / span 6; }
.fg-coverage-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}
.fg-coverage-tile {
  background: var(--fg); padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.fg-coverage-tile .fg-coverage-city {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.fg-coverage-tile .fg-coverage-who {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; color: color-mix(in srgb, var(--bg) 55%, transparent);
  letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .fg-contact-cta, .fg-coverage { grid-column: 1 / -1; }
}

/* ============================================================ FOOTER */
.fg-footer {
  padding: 32px 0 60px;
  background: var(--fg); color: var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
}
.fg-footer-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: start;
}
.fg-footer-brand { grid-column: 1 / span 4; }
.fg-footer-brand p {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  letter-spacing: 0.1em; margin-top: 18px; line-height: 1.6;
  text-transform: uppercase;
}
.fg-footer-col-1 { grid-column: 6 / span 2; }
.fg-footer-col-2 { grid-column: 8 / span 2; }
.fg-footer-col-3 { grid-column: 10 / span 3; }
.fg-footer-col .fg-label,
.fg-footer-col-1 .fg-label, .fg-footer-col-2 .fg-label, .fg-footer-col-3 .fg-label {
  color: color-mix(in srgb, var(--bg) 55%, transparent); margin-bottom: 12px;
}
.fg-footer a {
  display: block; padding: 4px 0; font-size: 14px;
}
.fg-footer a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .fg-footer-brand,
  .fg-footer-col-1, .fg-footer-col-2, .fg-footer-col-3 { grid-column: 1 / -1; }
}

/* ============================================================ POSTS / SINGLE / ARCHIVE */
.fg-page { padding-block: clamp(40px, 6vw, 96px); }
.fg-page .fg-page-header { margin-bottom: clamp(28px, 4vw, 56px); }
.fg-page h1.fg-h1, .fg-page h1.fg-h2 { font-family: "Geist", sans-serif; font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; }
.fg-prose { max-width: 720px; }
.fg-prose p { margin: 0 0 1.2em; font-size: 17px; line-height: 1.6; color: var(--fg-soft); }
.fg-prose h2, .fg-prose h3 { margin: 2em 0 0.6em; }
.fg-prose h2 { font-size: clamp(28px, 3vw, 40px); }
.fg-prose h3 { font-size: clamp(20px, 2vw, 26px); }
.fg-prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.fg-prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 1.4em 0;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--fg);
}
.fg-prose ul, .fg-prose ol { margin: 0 0 1.2em 1.2em; }
.fg-prose img { margin: 1.6em 0; }

.fg-archive-list { border-top: 1px solid var(--line); }
.fg-archive-list .fg-note { padding: 28px 0; }
