/* Eureon Technologies — site styles
   Tokens mirror tools/brandlib.py. Change them there first, then here. */

:root {
  --parian:   #FBFBFA;
  --pentelic: #EDEDEC;
  --fresco:   #C2C2BF;
  --stone:    #4A4A48;
  --basalt:   #111110;
  --obsidian: #050505;
  --sinopia:  #C01F1B;   /* red on light  */
  --vermilion:#E8635B;   /* red on dark   */
  --copper:   #78452F;   /* copper on light */
  --patina:   #C89272;   /* copper on dark  */

  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 66ch;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --hair: 1px solid var(--fresco);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--parian);
  color: var(--basalt);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- type -- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.24;
             letter-spacing: .04em; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(2.1rem, 1.1rem + 4.2vw, 5rem); letter-spacing: .05em; }
h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, .95rem + .8vw, 1.45rem); }
p  { margin: 0 0 1.2em; max-width: var(--measure); }
a  { color: var(--sinopia); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--basalt); }
em { font-style: italic; }

.eyebrow { font-family: var(--mono); font-size: .76rem; font-weight: 500;
           letter-spacing: .36em; text-transform: uppercase; color: var(--copper);
           margin: 0 0 1.6rem; }
/* The hero eyebrow reads as one line or not at all: "Eureon Technologies ·
   National Capital Region" must never break. Tracking is tightened from .36em
   and the size is viewport-scaled so the full 45-character run still clears a
   320px screen without wrapping or overflowing. */
.eyebrow--oneline { white-space: nowrap; letter-spacing: .18em;
                    font-size: clamp(.46rem, 2.3vw, .78rem); }

.lede { font-size: clamp(1.08rem, 1rem + .55vw, 1.35rem); line-height: 1.58; color: var(--basalt); }
.muted { color: var(--stone); }
.mono { font-family: var(--mono); }
/* Keeps a hyphenated compound from breaking across lines. Cinzel has no
   U+2011, so the character trick would render as tofu. */
.nb { white-space: nowrap; }

/* ------------------------------------------------------------- layout -- */
.wrap { max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); border-top: var(--hair); }
.rule-accent { width: 78px; height: 4px; background: var(--sinopia); border: 0; margin: 2rem 0; }

/* ---------------------------------------------------------------- nav -- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
       justify-content: space-between; gap: 2rem; padding: .9rem var(--gutter);
       background: color-mix(in srgb, var(--parian) 90%, transparent);
       backdrop-filter: blur(10px); border-bottom: var(--hair); }
.nav__logo { display: block; text-decoration: none; }
.nav__logo svg { height: 34px; width: auto; display: block; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em;
                text-transform: uppercase; color: var(--stone); text-decoration: none; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--basalt); }
@media (max-width: 900px) { .nav__links a:not(.btn) { display: none; } }

.btn { display: inline-block; font-family: var(--mono); font-size: .78rem; font-weight: 500;
       letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
       padding: .8rem 1.4rem; border: 1px solid var(--sinopia); color: var(--sinopia);
       transition: background .18s ease, color .18s ease; }
.btn:hover { background: var(--sinopia); color: var(--parian); }
.btn--solid { background: var(--sinopia); color: var(--parian); }
.btn--solid:hover { background: var(--basalt); border-color: var(--basalt); }
.btn--ghost { border-color: var(--fresco); color: var(--basalt); }
.btn--ghost:hover { background: transparent; border-color: var(--basalt); color: var(--basalt); }

:focus-visible { outline: 2px solid var(--sinopia); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: .6rem; z-index: 100; padding: .7rem 1rem;
              background: var(--sinopia); color: var(--parian); }

/* --------------------------------------------------------------- hero -- */
.hero { border-top: 0; padding-block: clamp(3rem, 7vw, 6rem) var(--section); }
.hero__stone { position: relative; border: var(--hair); overflow: hidden; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero__stone img { display: block; width: 100%; height: auto; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* --------------------------------------------------------- the formula -- */
.formula { display: flex; align-items: center; justify-content: center; gap: clamp(1rem,3vw,2.4rem);
           flex-wrap: wrap; padding: clamp(2rem,5vw,3.5rem); border: var(--hair);
           background: var(--pentelic); margin-top: 3rem; }
.formula__sig { height: clamp(72px, 12vw, 130px); width: auto; }
.formula__txt { max-width: 42ch; }
.formula__txt p { margin: 0; }
.formula__txt .mono { color: var(--copper); font-size: .82rem; letter-spacing: .18em;
                      text-transform: uppercase; display: block; margin-bottom: .7rem; }

/* --------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 1px; background: var(--fresco); border: var(--hair); margin-top: 3rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid > * { background: var(--parian); padding: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 820px) { .grid--3 { grid-template-columns: 1fr; } }
.grid h3 { margin-bottom: .9rem; }
.grid p { font-size: .96rem; color: var(--stone); margin: 0; }

.proof { border: var(--hair); border-left: 3px solid var(--sinopia);
          padding: clamp(1.6rem, 3.4vw, 2.6rem); margin-top: 3rem; background: var(--pentelic); }
.proof h3 { margin-bottom: 1rem; }
.proof p { color: var(--stone); margin-bottom: 1em; }
.proof p:last-child { margin-bottom: 0; }
.proof strong { color: var(--basalt); }

/* Headings in the split column are sized to that COLUMN, not to the viewport.
   The global h2 clamp tops out at 2.9rem, at which "FIRST PRINCIPLES," measures
   483px inside a 432px column and wraps to a third line. */
.split h2 { font-size: clamp(1.6rem, 3.1vw, 2.45rem); }

.split { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
         gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.callout { border-left: 3px solid var(--sinopia); padding: .2rem 0 .2rem 1.6rem; margin: 2.4rem 0; }
.callout p { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em;
             font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem); line-height: 1.36; margin: 0; }

/* ------------------------------------------------------------- theatre -- */
.theatre { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: var(--hair); }
.theatre li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
              padding: .95rem 0; border-bottom: var(--hair); }
.theatre b { font-family: var(--display); font-weight: 700; text-transform: uppercase;
             letter-spacing: .08em; font-size: clamp(.98rem, .9rem + .4vw, 1.2rem); }
.theatre span { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
                text-transform: uppercase; color: var(--stone); text-align: right; }

/* --------------------------------------------------------------- misc -- */
.stealth { background: var(--basalt); color: var(--pentelic); border-top: 0; }
.stealth h2 { color: var(--parian); }
.stealth .eyebrow { color: var(--patina); }
.stealth p { color: var(--pentelic); }
.stealth a { color: var(--vermilion); }
.stealth .btn { border-color: var(--vermilion); color: var(--vermilion); }
.stealth .btn:hover { background: var(--vermilion); color: var(--obsidian); }

.cta { text-align: center; }
.cta .lede { margin-inline: auto; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

footer { border-top: var(--hair); padding-block: 3rem; }
.foot { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot svg { height: 46px; width: auto; }
.foot__note { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
              color: var(--stone); line-height: 2; }
