/* FLUXORYN brand system — bright, premium, spacious. */
:root {
  --bg: #FCFBF7;
  --surface: #FFFFFF;
  --ink: #2D3436;
  --ink-2: #4A5355;
  --muted: #6B7280;
  --line: #E7E3DB;
  --line-2: #D6D0C4;
  --blue: #5B7C68;
  --blue-ink: #476251;
  --cyan: #9BB59C;
  --teal: #D9A273;
  --wash: #F5F3ED;
  --radius: 16px;
  --max: 1200px;
  --font: Inter, "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -0.022em; line-height: 1.08; }
.display { font-size: clamp(42px, 6.2vw, 84px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 650; }
.display .soft { color: var(--blue); }
h2.title { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -0.03em; }
h3.title { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 720px; }
p { margin: 0 0 18px; color: var(--ink-2); }
p.strong, .strong { color: var(--ink); font-weight: 600; }
.stack > * + * { margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 247, 0.88); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand .word { font-weight: 680; letter-spacing: 0.24em; font-size: 17px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 520; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 40px; color: var(--ink); font: inherit; cursor: pointer; }

/* ---------- CTA ---------- */
.cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 620; font-size: 15.5px; border-radius: 999px; padding: 13px 22px; transition: transform .15s ease, background .15s, box-shadow .15s, color .15s; white-space: nowrap; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.cta .arrow { transition: transform .2s ease; }
.cta:hover { text-decoration: none; }
.cta:hover .arrow { transform: translateX(4px); }
.cta.primary { background: var(--ink); color: #fff; }
.cta.primary:hover { background: #3A4446; box-shadow: 0 10px 30px -12px rgba(45, 52, 54, 0.5); }
.cta.ghost { color: var(--ink); border-color: var(--line-2); background: transparent; }
.cta.ghost:hover { border-color: var(--ink); }
.cta.link { padding: 0; color: var(--blue-ink); border-radius: 0; }
.cta.on-dark { background: #fff; color: var(--ink); }
.cta.small { padding: 10px 18px; font-size: 14.5px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #E7E3DB; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #C9CCC8; }
.section.dark .eyebrow { color: #9BB59C; }
.section.dark .muted { color: #A3A8A2; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 22px; }
.statement { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); font-weight: 560; max-width: 900px; }
.statement .accent { color: var(--blue); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero .lead { margin-top: 30px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-visual canvas { width: 100%; height: 100%; display: block; }
.tagline-band { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 88px); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.tagline-band strong { color: var(--ink); font-weight: 620; }
.page-hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); }
.page-hero .lead { margin-top: 28px; }

/* ---------- cycle ---------- */
.cycle { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cycle li { list-style: none; padding: 26px 22px 28px; border-right: 1px solid var(--line); position: relative; }
.cycle li:last-child { border-right: 0; }
.cycle .n { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: 0.12em; }
.cycle .v { display: block; margin-top: 14px; font-size: 19px; font-weight: 650; color: var(--ink); }
.cycle li::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c, var(--blue)); }
ol.cycle { margin: 0; padding: 0; }

/* ---------- pillars (sense ... orchestrate) ---------- */
.pillars { display: grid; gap: 0; }
.pillar { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); align-items: start; }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .tag { font-size: 13px; font-weight: 680; letter-spacing: 0.18em; color: var(--c, var(--blue)); padding-top: 8px; }
.pillar h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.025em; }
.pillar p:last-child { margin-bottom: 0; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 12px; }
.card p { font-size: 16px; margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(45, 52, 54, 0.35); }
.card .kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 14px; display: block; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--blue-ink); }
.section.dark .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.section.dark .card h3 { color: #fff; }

/* ---------- ladder (trusted autonomy) ---------- */
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; margin: 0; padding: 0; }
.ladder li { list-style: none; border-radius: 14px; padding: 20px 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); min-height: calc(120px + var(--i) * 26px); display: flex; flex-direction: column; justify-content: flex-end; }
.ladder li b { display: block; color: #fff; font-size: 14px; letter-spacing: 0.12em; margin-bottom: 8px; }
.ladder li span { font-size: 14.5px; color: #C9CCC8; line-height: 1.45; }
.ladder li:nth-child(n+5) { background: rgba(91, 124, 104, 0.16); border-color: rgba(155, 181, 156, 0.35); }
.ladder-axis { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: #A3A8A2; letter-spacing: 0.06em; }

/* ---------- impact ---------- */
.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.impact div { padding: 30px 26px 32px 0; border-bottom: 1px solid var(--line); }
.impact div:not(:nth-child(4n)) { border-right: 1px solid var(--line); margin-right: 0; }
.impact div:not(:nth-child(4n+1)) { padding-left: 26px; }
.impact h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.impact p { font-size: 15.5px; margin: 0; }

/* ---------- tables of definitions ---------- */
.defs { width: 100%; border-collapse: collapse; }
.defs th, .defs td { text-align: left; vertical-align: top; padding: 20px 0; border-top: 1px solid var(--line); }
.defs th { width: 34%; font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-right: 24px; padding-top: 24px; }
.defs td { font-size: 19px; color: var(--ink); font-weight: 520; }
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.versus > div { padding: 34px 32px; }
.versus > div + div { background: var(--ink); color: #fff; }
.versus h3 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; color: var(--muted); }
.versus > div + div h3 { color: #9BB59C; }
.versus ul { margin: 0; padding: 0; list-style: none; }
.versus li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 18px; }
.versus > div + div li { border-color: rgba(255, 255, 255, 0.12); }

.shifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.shifts div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--muted); }
.shifts div b { color: var(--ink); font-weight: 620; }

.questions { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.questions li { counter-increment: q; padding: 18px 0 18px 54px; border-top: 1px solid var(--line); position: relative; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.questions li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 21px; font-size: 13px; font-weight: 650; color: var(--blue-ink); letter-spacing: 0.08em; }
.section.dark .questions li { color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.section.dark .questions li::before { color: #9BB59C; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--ink-2); background: var(--surface); }
a.chip:hover { border-color: var(--blue); color: var(--ink); text-decoration: none; }

.callout { border-left: 3px solid var(--blue); padding: 6px 0 6px 24px; font-size: 21px; color: var(--ink); font-weight: 560; letter-spacing: -0.01em; }

/* ---------- essay ---------- */
.essay { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; }
.essay .meta { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.essay h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.028em; margin-bottom: 26px; }
.essay p { font-size: 18.5px; line-height: 1.7; }

/* ---------- episode ---------- */
.episode { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.episode .art { background: radial-gradient(120% 90% at 20% 20%, #3A4446 0%, var(--ink) 60%); min-height: 340px; position: relative; display: flex; align-items: flex-end; padding: 32px; color: #fff; }
.episode .art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.episode .art .badge { position: relative; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; background: rgba(255, 255, 255, 0.12); padding: 7px 12px; border-radius: 999px; }
.episode .body { padding: clamp(28px, 4vw, 48px); }
.episode h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.18; margin-bottom: 18px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91, 124, 104, 0.14); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 450; color: var(--ink-2); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.error { color: #B8524B; white-space: pre-line; }
.form-status.ok { color: var(--teal); font-weight: 600; }
.notice { background: var(--wash); border: 1px solid #E7E3DB; border-radius: 14px; padding: 22px 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9CCC8; padding: clamp(64px, 8vw, 104px) 0 36px; }
.site-footer .close { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .close h2 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 44px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .word { color: #fff; }
.site-footer .tag { margin-top: 14px; color: #A3A8A2; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #E7E3DB; font-size: 15px; }
.site-footer .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13.5px; color: #A3A8A2; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cycle li:nth-child(3) { border-right: 0; }
  .cycle li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact div { padding-left: 0 !important; border-right: 0 !important; padding-right: 20px; }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ladder li { min-height: 140px; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue-ink); }
  .nav .cta { margin-top: 18px; border-bottom: 0; width: auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hero .grid, .split, .split.even, .site-footer .close, .episode { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .pillar { grid-template-columns: 1fr; gap: 14px; }
  .cards, .cards.two, .cards.four, .shifts { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .defs th { width: 40%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .cycle li:nth-child(2n) { border-right: 0 !important; }
  .impact { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defs th, .defs td { display: block; width: 100%; padding: 14px 0 4px; }
  .defs td { border-top: 0; padding-top: 0; padding-bottom: 18px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- refinements ---------- */
.display { font-size: clamp(40px, 5.3vw, 76px); }
.section.flush-top { padding-top: 0; }
.site-footer p { color: #C9CCC8; }
.site-footer .eyebrow { color: #9BB59C; }
.site-footer .brand svg [fill="#2D3436"], .section.dark svg [fill="#2D3436"] { fill: #FFFFFF; }
.site-footer .brand svg [stroke="#2D3436"], .section.dark svg [stroke="#2D3436"] { stroke: #FFFFFF; }
.site-footer .brand svg [fill="#FCFBF7"] { fill: #2D3436; }
.close-note { color: #fff !important; }
.label-up { display: block; font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mt-0 { margin-top: 0 !important; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- logo (from the FLUXORYN brand artwork) ---------- */
.brand { gap: 10px; }
.brand .brand-symbol { height: 30px; width: auto; }
.brand .brand-word { height: 15px; width: auto; }
.site-footer .brand-logo { width: 230px; height: auto; }
.site-footer .tag { display: none; }
@media (max-width: 560px) { .brand .brand-symbol { height: 24px; } .brand .brand-word { height: 13px; } }

/* Collapse the navigation before it can collide with the logo. */
.brand { flex-shrink: 0; }
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue-ink); }
  .nav .cta { margin-top: 18px; border-bottom: 0; width: auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}
