/* ─────────────────────────────────────────────────────────────────────────────
   EUMENIS — style.css
   Cold intelligence · editorial serif · operational precision
   No external resources.
───────────────────────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
══════════════════════════════════════════════════════════════════════════ */

:root {

  /* ── Colour ──────────────────────────────────────────────────────────── */
  --c-bg:      #070809;   /* cold near-black */
  --c-text:    #f5f7fa;   /* cold white */
  --c-dim:     #7a8fa0;   /* cold mid-tone */
  --c-accent:  #c8d4e0;   /* ice blue — operational signal */
  --c-border:  #131c28;   /* structural dividers */

  /* ── Typography ──────────────────────────────────────────────────────── */
  --f-mono:  'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  --f-serif: Baskerville, 'Baskerville Old Face', 'Hoefler Text',
             'Palatino Linotype', Palatino, Georgia, serif;

  /* ── Type scale (fluid) ────────────────────────────────────────────── */
  --t-label:  11px;
  --t-sm:     14px;
  --t-base:   clamp(16px, 1.4vw, 18px);
  --t-hero:   clamp(88px, 15vw, 188px);

  /* ── Spacing ─────────────────────────────────────────────────────────── */
  --sp-xs:   8px;
  --sp-sm:   16px;
  --sp-md:   32px;
  --sp-lg:   clamp(48px, 6vw, 88px);
  --sp-sec:  clamp(80px, 10vw, 128px);

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --w-max:     1140px;
  --gutter:    clamp(24px, 5vw, 80px);
  --header-h:  64px;
  --rule-x:    clamp(22px, 2.8vw, 36px);

}


/* ══════════════════════════════════════════════════════════════════════════
   2. RESET
══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* JS handles smooth scroll */
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}


/* ══════════════════════════════════════════════════════════════════════════
   3. VERTICAL RULE — persistent left-margin structural line
══════════════════════════════════════════════════════════════════════════ */

body::before {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--rule-x);
  width: 1px;
  background: var(--c-border);
  z-index: 1;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   4. PAGE LOAD — subtle fade in
══════════════════════════════════════════════════════════════════════════ */

@keyframes boot {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════════════
   5. BASE
══════════════════════════════════════════════════════════════════════════ */

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-serif);
  font-size: var(--t-base);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  animation: boot 0.4s ease both;
}

h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Shared text components ──────────────────────────────────────────── */

.body-text {
  font-family: var(--f-serif);
  font-size: var(--t-base);
  line-height: 1.9;
  color: var(--c-text);
}

.section__heading {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: var(--sp-lg);
}

.greek {
  color: var(--c-accent);
  font-style: italic;
}

.text-accent {
  color: var(--c-accent);
}


/* ══════════════════════════════════════════════════════════════════════════
   6. LAYOUT
══════════════════════════════════════════════════════════════════════════ */

.container {
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-sec);
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}

.section + .section {
  border-top: 1px solid var(--c-border);
}


/* ══════════════════════════════════════════════════════════════════════════
   7. HEADER
══════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(7, 8, 9, 0.92);
  border-bottom-color: var(--c-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text);
}

.site-nav .nav__link {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-dim);
  transition: color 0.2s ease;
}

.site-nav .nav__link:hover {
  color: var(--c-text);
}


/* ══════════════════════════════════════════════════════════════════════════
   8. INTRO
══════════════════════════════════════════════════════════════════════════ */

.section--intro {
  padding-block: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro__glyph {
  font-family: var(--f-serif);
  font-size: clamp(48px, 20vw, 320px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: var(--c-text);
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.intro__sub {
  position: absolute;
  left: var(--gutter);
  top: calc(50% + 10vw + 14px);
  font-family: var(--f-serif);
  font-size: clamp(14px, 1.3vw, 17px);
  font-style: italic;
  color: var(--c-dim);
  letter-spacing: 0.01em;
  will-change: transform;
}

.intro__scroll {
  position: absolute;
  bottom: clamp(28px, 4vh, 44px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  pointer-events: none;
}

.intro__scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2s ease-in-out infinite;
}

.intro__scroll-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.75;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 0.4; }
  50%       { transform: scale(1.8); opacity: 1;   }
}


/* ══════════════════════════════════════════════════════════════════════════
   9. HERO
══════════════════════════════════════════════════════════════════════════ */

.section--hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top:    calc(var(--header-h) + clamp(64px, 10vh, 128px));
  padding-bottom: clamp(80px, 12vh, 140px);
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__heading {
  position: relative;
  font-family: var(--f-serif);
  font-size: var(--t-hero);
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin-bottom: clamp(36px, 5vh, 60px);
  padding-left: clamp(16px, 2vw, 28px);
}

.hero__heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--c-dim);
  opacity: 0.45;
}

/* Pulsating dots */
.hero__dots span {
  animation: dotPulse 1.8s ease-in-out infinite;
  opacity: 0.2;
}
.hero__dots span:nth-child(1) { animation-delay: 0s; }
.hero__dots span:nth-child(2) { animation-delay: 0.25s; }
.hero__dots span:nth-child(3) { animation-delay: 0.5s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; }
  40%       { opacity: 1; }
}

/* Large decorative background glyph */
.hero__glyph {
  position: absolute;
  right: calc(var(--gutter) * -1.4);
  top: 52%;
  transform: translateY(-50%);
  font-family: var(--f-serif);
  font-size: clamp(400px, 64vw, 820px);
  line-height: 1;
  color: #0d1520;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}


/* ══════════════════════════════════════════════════════════════════════════
   10. ORIGIN
══════════════════════════════════════════════════════════════════════════ */

.origin__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.origin__left {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.origin__sub {
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.7vw, 24px);
  font-style: italic;
  color: var(--c-dim);
  line-height: 1.5;
  margin-top: 14px;
  max-width: 22ch;
}


.origin__right .body-text {
  max-width: 65ch;
}

.origin__right .body-text + .body-text {
  margin-top: var(--sp-md);
}


/* ══════════════════════════════════════════════════════════════════════════
   11. PURPOSE
══════════════════════════════════════════════════════════════════════════ */

.purpose__items {
  margin-top: var(--sp-lg);
}

.purpose__item {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(32px, 4.5vw, 52px);
  border-top: 1px solid var(--c-border);
  align-items: baseline;
}

.purpose__title {
  font-family: var(--f-serif);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.purpose__text {
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--c-dim);
  line-height: 1.9;
  max-width: 46ch;
}


/* ══════════════════════════════════════════════════════════════════════════
   12. NOT FOR EVERYONE
══════════════════════════════════════════════════════════════════════════ */

.for__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.for__left {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.for__intro {
  font-family: var(--f-serif);
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--c-dim);
  line-height: 1.75;
  max-width: 32ch;
  margin-top: var(--sp-md);
}

.for__list {
  list-style: none;
  margin-bottom: var(--sp-md);
}

.for__list li {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--c-dim);
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding-block: clamp(10px, 1.5vw, 16px);
  border-top: 1px solid var(--c-border);
}

.for__list li:last-child {
  border-bottom: 1px solid var(--c-border);
}

.for__statement {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 400;
  color: var(--c-dim);
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
  margin-top: clamp(56px, 8vw, 104px);
  max-width: 28ch;
  margin-inline: auto;
}



/* ══════════════════════════════════════════════════════════════════════════
   13. PRIVACY / OPSEC
══════════════════════════════════════════════════════════════════════════ */

.privacy__body {
  max-width: 52ch;
  margin-inline: auto;
  margin-top: var(--sp-lg);
  text-align: center;
}

.privacy__body .body-text {
  color: var(--c-dim);
}

.privacy__body .body-text + .body-text {
  margin-top: var(--sp-md);
}

.inline-link {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c-accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.inline-link:hover {
  color: var(--c-text);
  text-decoration-color: color-mix(in srgb, var(--c-text) 50%, transparent);
}


/* ══════════════════════════════════════════════════════════════════════════
   14. CONTACT
══════════════════════════════════════════════════════════════════════════ */

.section--contact {
  min-height: unset;
  padding-block: clamp(80px, 12vw, 140px);
}

.contact__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.contact__left {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.contact__left .section__heading {
  margin-bottom: var(--sp-sm);
}

.contact__left .body-text {
  color: var(--c-dim);
}

.contact__right {
  padding-top: 4px;
}

.contact__email {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.5vw, 17px);
  color: var(--c-accent);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-sm);
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact__email:hover {
  color: var(--c-text);
}

.contact__pgp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__pgp-download {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--c-accent);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.contact__pgp-download:hover {
  color: var(--c-text);
}

.contact__pgp-fingerprint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-dim);
  letter-spacing: 0.04em;
  word-break: break-all;
}


/* ══════════════════════════════════════════════════════════════════════════
   15. FOOTER
══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-md);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy,
.footer__loc {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  color: var(--c-dim);
}


/* ══════════════════════════════════════════════════════════════════════════
   16. SCROLL REVEAL — clean fade, fires once
══════════════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════════════════
   16. SECTION NAVIGATOR — fixed right-side section indicator
══════════════════════════════════════════════════════════════════════════ */

.section-nav {
  position: fixed;
  right: clamp(20px, 2.8vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 50;
  pointer-events: auto;
}

/* Each section = a silent vertical line. Text kept in HTML for accessibility only. */
.section-nav__item {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--c-border);
  font-size: 0;           /* visually hide the label text */
  color: transparent;
  transition: background 0.3s ease, height 0.3s ease;
}

.section-nav__item.is-active {
  background: var(--c-accent);
  height: 32px;
}

.section-nav__item:hover {
  background: var(--c-dim);
}


/* ══════════════════════════════════════════════════════════════════════════
   18. REDACTION
══════════════════════════════════════════════════════════════════════════ */

[data-redact] {
  background: var(--c-text);
  color: var(--c-text);
  border-radius: 1px;
  padding-inline: 3px;
  transition: color 0.35s ease, background 0.35s ease;
}

[data-redact]:hover {
  background: transparent;
  color: var(--c-accent);
}


/* ══════════════════════════════════════════════════════════════════════════
   19. RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */


@media (max-width: 768px) {

  body::before,
  .section-nav {
    display: none;
  }

  .origin__grid,
  .contact__grid,
  .for__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .origin__left,
  .for__left,
  .contact__left {
    position: static;
  }

  .purpose__item {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-xs);
  }

}

@media (max-width: 480px) {
  .hero__glyph {
    font-size: 280px;
    right: calc(var(--gutter) * -1);
  }
}
