/* Archforge — archforge.ai */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */

/* Sora is a variable font: one file covers weights 300–600. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dmmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/dmmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #0d0e10;
  --bg-alt: #0f1013;
  --bg-warm: #121110;
  --surface: #15171a;

  --fg: #ecebe6;
  --fg-1: #dcdcd6;
  --fg-2: #c2c5ca;
  --fg-3: #a3a7ae;
  --fg-4: #8b9098;
  /* Dimmest text tier. Kept at #7c818a so 11–12px labels still clear WCAG AA
     (4.5:1) against both --bg and --bg-alt. */
  --fg-5: #7c818a;

  --accent: #d68a5c;
  --accent-2: #e8a05c;
  --accent-3: #f2c27a;
  /* Pre-mixed accent rgb for the glow shadows. */
  --glow: 232, 160, 92;

  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .1);

  --sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --header-h: 60px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 80% -10%, rgba(214, 138, 92, .16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(214, 138, 92, .07), transparent 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

section[id], main[id] { scroll-margin-top: var(--header-h); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section > .wrap { padding-block: 96px; }
.section--ruled { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }

/* Sections that layer decorative art behind their content. */
.thesis, .engineering, .technology {
  position: relative;
  overflow: hidden;
}
.thesis > .wrap, .engineering > .wrap, .technology > .wrap { position: relative; }

.deco {
  position: absolute;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
  font-size: 14px;
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}
.eyebrow--muted { margin: 0; color: var(--fg-5); }
.eyebrow--led {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-2);
}
.eyebrow--dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Pulsing indicator light. */
.led {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: af-led 3s ease-in-out infinite;
}
.led--d1 { animation-delay: 1s; }
.led--lg { width: 8px; height: 8px; animation-duration: 2.4s; }

.h2-lg {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-title { margin-bottom: 56px; }

.body-lg {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  font-weight: 300;
}
.body-lg--narrow { max-width: 480px; margin-bottom: 0; }

.hl { color: var(--accent-3); }

/* Gradient headline accent. Falls back to a flat colour where background-clip
   on text is unsupported. */
.grad { color: var(--accent-3); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .grad {
    background-image: linear-gradient(110deg, #d68a5c 0%, #f2c27a 50%, #e8a05c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(var(--glow), .25);
  }
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
}
.split--wide { gap: 56px; }
.split--center { align-items: center; }

/* ---------- Surfaces ---------- */

/* Frosted panel used for the thesis and CloudBlocks feature cards. */
.card-glass {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 30px 60px -30px rgba(0, 0, 0, .8),
    0 0 60px -20px rgba(var(--glow), .25);
}

/* Bordered card that lights up on hover (capabilities, technology). */
.panel {
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.panel:hover {
  border-color: rgba(var(--glow), .55);
  background: rgba(var(--glow), .035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 40px -12px rgba(var(--glow), .35);
}

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

.btn {
  display: inline-block;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 22px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s, box-shadow .3s;
}

.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.btn-gradient {
  background-image: linear-gradient(110deg, #d68a5c 0%, #e8a05c 30%, #f2c27a 50%, #e8a05c 70%, #d68a5c 100%);
  background-size: 200% 100%;
  color: var(--bg);
  box-shadow: 0 0 24px rgba(var(--glow), .25);
  animation: af-sheen 6s linear infinite;
}
.btn-gradient:hover {
  color: var(--bg);
  box-shadow: 0 0 36px rgba(var(--glow), .45);
}
.btn-gradient.btn-lg { box-shadow: 0 0 32px rgba(var(--glow), .35); }
.btn-gradient.btn-lg:hover { box-shadow: 0 0 48px rgba(var(--glow), .6); }

.btn-gradient--flat {
  background-image: linear-gradient(110deg, #d68a5c, #e8a05c 50%, #d68a5c);
  background-size: auto;
  animation: none;
}
.btn-gradient--flat:hover { box-shadow: 0 0 36px rgba(var(--glow), .5); }

.btn-glass {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(var(--glow), .06);
}

.btn-ghost { border-color: rgba(214, 138, 92, .5); color: var(--fg); }
.btn-ghost:hover { background: rgba(214, 138, 92, .12); border-color: var(--accent); color: var(--fg); }

.btn-outline-accent { border-color: var(--accent); text-align: center; }
.btn-outline-accent:hover { background: rgba(214, 138, 92, .12); color: var(--fg); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(13, 14, 16, .2);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(16, 15, 14, .72);
  border-bottom-color: rgba(var(--glow), .18);
}

.header-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
  flex: none;
}
.logo-mark i { width: 7px; height: 7px; background: var(--fg); }
.logo-mark i.accent {
  background: var(--accent-2);
  box-shadow: 0 0 6px 1px rgba(var(--glow), .6);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
}
.nav-desktop a { color: var(--fg-3); }
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop .btn { color: var(--fg); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  color: var(--fg);
  cursor: pointer;
}
.menu-toggle span { width: 18px; height: 1.5px; background: currentColor; }

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 0; font-size: 16px; }
.nav-mobile .btn { margin-top: 12px; padding: 13px 16px; }

@media (max-width: 859px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 860px) {
  .nav-mobile { display: none; }
}

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

.hero > .wrap { padding-block: 96px 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy { animation: af-settle .8s ease both; }
.hero-copy .eyebrow { margin-bottom: 24px; }

.hero-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 16px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 300;
}
.sub {
  margin: 0 0 40px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-4);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.hero-figure svg { display: block; overflow: visible; }
.hero-glow {
  inset: -10% -15%;
  background: radial-gradient(ellipse 55% 50% at 70% 45%, rgba(var(--glow), .22), rgba(214, 138, 92, .06) 45%, transparent 70%);
  filter: blur(30px);
  animation: af-drift 18s ease-in-out infinite;
}

/* Diagram primitives, shared by the hero and the decorative section art. */
.dg-label { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; }
.dg-label--lg { font-size: 11px; }
.dg-label--sm { font-size: 9px; letter-spacing: 1.5px; }

.dg-flow { animation: af-flow var(--dg-dur, 2.4s) linear infinite; }
.dg-pulse { animation: af-pulse var(--dg-dur, 3s) ease-in-out infinite var(--dg-delay, 0s); }

.dg-dur-32 { --dg-dur: 3.2s; }
.dg-dur-4 { --dg-dur: 4s; }
.dg-delay-05 { --dg-delay: .5s; }
.dg-delay-1 { --dg-delay: 1s; }
.dg-delay-15 { --dg-delay: 1.5s; }
.dg-delay-2 { --dg-delay: 2s; }
.dg-delay-25 { --dg-delay: 2.5s; }
.dg-delay-3 { --dg-delay: 3s; }

/* ---------- Thesis ---------- */

.thesis {
  border-top: 1px solid rgba(var(--glow), .18);
  background-image:
    radial-gradient(ellipse 70% 90% at 15% 50%, rgba(var(--glow), .14), transparent 60%),
    radial-gradient(ellipse 40% 60% at 95% 100%, rgba(var(--glow), .08), transparent 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.thesis > .wrap { padding-block: 112px; }

.thesis-mesh {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 20% 50%, #000 0%, transparent 70%);
}
.thesis-glow {
  left: -8%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(242, 194, 122, .16), rgba(var(--glow), .05) 40%, transparent 70%);
  filter: blur(48px);
  animation: af-drift 24s ease-in-out infinite;
}
.thesis-figure {
  right: 0;
  top: 0;
  bottom: 0;
  width: min(560px, 50%);
  opacity: .55;
  display: flex;
  align-items: center;
}
.thesis-figure svg { display: block; width: 100%; }

.thesis-h {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.thesis-card {
  padding: 36px;
  border-radius: 12px;
}
.thesis-card p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-1);
  font-weight: 300;
}
.thesis-card p + p { margin-bottom: 28px; }

.dot-list {
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(var(--glow), .2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--fg-3);
}
.dot-list li { display: flex; gap: 14px; align-items: center; }
.dot-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(var(--glow), .6);
}

/* ---------- Capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cap-head { display: flex; justify-content: space-between; align-items: center; }
.cap-num { font-family: var(--mono); font-size: 11px; color: var(--fg-5); }

.mark { display: grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.mark i { width: 6px; height: 6px; }
.mark .m-x { background: var(--accent); }
.mark .m-o { background: var(--fg); }
.mark .m-n { background: rgba(255, 255, 255, .14); }

.cap-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.cap-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}
.cap-card .cap-areas {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-5);
}

/* ---------- Engineering ---------- */

.engineering {
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 14px 14px;
}
.eng-fade {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 16, 0) 0%, rgba(13, 14, 16, 0) 40%, rgba(13, 14, 16, .85) 60%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(13, 14, 16, 0) 20%, rgba(13, 14, 16, 0) 80%, var(--bg) 100%);
}
.eng-figure {
  left: 0;
  bottom: 0;
  width: min(720px, 60%);
  opacity: .55;
}
.eng-figure svg { display: block; width: 100%; }

#engineering .h2-lg { margin-bottom: 24px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line-2);
}
.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  padding-top: 4px;
  text-shadow: 0 0 12px rgba(var(--glow), .6);
}
.steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}

/* ---------- Technology ---------- */

.technology {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.tech-vignette {
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(15, 16, 19, .2) 0%, rgba(15, 16, 19, .9) 70%, var(--bg-alt) 100%);
}
.tech-figure {
  right: 0;
  top: 0;
  width: min(640px, 55%);
  opacity: .5;
}
.tech-figure svg { display: block; width: 100%; }

.tech-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.tech-group {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tech-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tech-group h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  font-weight: 500;
  color: var(--accent-2);
}
.tech-num { font-family: var(--mono); font-size: 11px; color: var(--fg-5); }

.chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--fg-2);
  font-weight: 300;
}

/* ---------- CloudBlocks ---------- */

.cloudblocks {
  background-image:
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(var(--glow), .12), transparent 60%),
    linear-gradient(180deg, #0d0e10 0%, #121114 100%);
}
.cloudblocks > .wrap { padding-block: 112px; }
.cloudblocks .split { align-items: start; }

.cb-title {
  margin: 0 0 40px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.035em;
}

.cb-lede {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg);
  font-weight: 300;
  text-wrap: pretty;
}
.cb-sub {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
}
.pipeline li { display: flex; align-items: center; gap: 10px; }
.pipeline li + li::before { content: '→'; color: var(--fg-5); }
.pipeline span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  color: var(--fg-2);
}
.pipeline .is-active {
  border-color: var(--accent-2);
  background: rgba(var(--glow), .1);
  box-shadow: 0 0 16px -2px rgba(var(--glow), .5);
  color: var(--fg);
}

.cb-panel {
  padding: 32px;
  border-radius: 6px;
}

.cb-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 300;
}
.cb-list li { display: flex; gap: 14px; }
.cb-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--accent);
}

.cb-note {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}

/* ---------- Principles ---------- */

.principles-stack { display: grid; gap: 48px; }

.principles-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
}
.principles-intro {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}

/* 1px gap over a light background paints the hairline dividers between tiles.
   Column counts are capped so the six tiles always fill their rows exactly —
   an empty cell would show up as a bare lit rectangle. */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
@media (min-width: 900px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.principle {
  background: rgba(13, 14, 16, .85);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s;
}
.principle:hover { background: rgba(var(--glow), .05); }

.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}
.principle h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.principle p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}

.principle--quote {
  background: linear-gradient(160deg, rgba(var(--glow), .12), rgba(13, 14, 16, .85) 60%);
  padding: 28px;
  justify-content: flex-end;
  gap: 12px;
}
.principle--quote:hover { background: linear-gradient(160deg, rgba(var(--glow), .12), rgba(13, 14, 16, .85) 60%); }
.principle--quote .principle-num { color: var(--accent-2); }
.principle--quote p {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--fg-1);
  text-wrap: balance;
}

/* ---------- Engagement ---------- */

.engage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px 32px;
}
.engage { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; }
.engage h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.engage p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}

/* ---------- Contact ---------- */

.contact > .wrap {
  padding-block: 128px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Centred via margins, leaving `transform` free for the drift animation. */
.contact-glow {
  left: 50%;
  top: 50%;
  width: min(720px, 90%);
  height: 360px;
  margin-left: calc(min(720px, 90%) / -2);
  margin-top: -180px;
  background: radial-gradient(ellipse at center, rgba(var(--glow), .18), transparent 65%);
  filter: blur(40px);
  animation: af-drift 22s ease-in-out infinite;
}

.contact-h {
  position: relative;
  margin: 0 auto 24px;
  max-width: 800px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.contact-p {
  position: relative;
  margin: 0 auto 40px;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-3);
  font-weight: 300;
}
.contact .btn { position: relative; }
.contact-email {
  position: relative;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-5);
}
.contact-email a { color: inherit; }

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

.site-footer { border-top: 1px solid var(--line); }

.footer-bar {
  padding-block: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  font-size: 13px;
  color: var(--fg-4);
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand { color: var(--fg); }
/* The footer mark stays flat; only the header mark glows. */
.footer-brand .logo-mark i.accent { background: var(--accent); box-shadow: none; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--fg-4); }

.footer-meta { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; }

/* ---------- Motion ---------- */

@keyframes af-flow { to { stroke-dashoffset: -40; } }
@keyframes af-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes af-settle {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes af-led {
  0%, 100% { opacity: .55; box-shadow: 0 0 4px 1px rgba(var(--glow), .35); }
  50% { opacity: 1; box-shadow: 0 0 10px 3px rgba(var(--glow), .7); }
}
@keyframes af-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.06); }
}
@keyframes af-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
