/* ============================================================
   MENTORIST — Σύστημα Αντιληπτικής Νοημοσύνης
   Design: "Optical Journal" — navy ink on ivory, copper as the
   single accent, literary serif (Spectral) + instrument mono
   (IBM Plex Mono). Built by hand. Blind rebuild.
   ============================================================ */

/* ---- Tokens --------------------------------------------------- */
:root {
  --ink:        #16233A;   /* primary navy */
  --ink-soft:   #44506A;   /* secondary text */
  --abyss:      #0D1623;   /* deep ground, inward chambers */
  --ivory:      #F7F4EE;   /* page */
  --paper:      #FCFAF5;   /* raised */
  --mist:       #ECE7DB;   /* soft fill */
  --copper:     #B08458;   /* the one accent */
  --copper-ink: #8A5E36;   /* copper for text (AA on ivory) */
  --hair:       rgba(22, 35, 58, .14);
  --hair-soft:  rgba(22, 35, 58, .08);
  --hair-light: rgba(247, 244, 238, .18);

  --font-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --font-body:    "Spectral", "Iowan Old Style", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1180px;

  --s-1: clamp(.78rem, .76rem + .1vw, .82rem);
  --s0:  clamp(1.02rem, .98rem + .2vw, 1.12rem);
  --s1:  clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --s2:  clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --s3:  clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --s4:  clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);
  --s5:  clamp(3.2rem, 2.1rem + 5.4vw, 6.6rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: var(--s0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--copper); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--copper-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- Layout --------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.measure { max-width: var(--measure); }

section { padding-block: clamp(4rem, 9vw, 8rem); }

/* ---- Type helpers --------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--s-1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--s-1);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--copper-ink);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--copper);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; }
h1 { font-size: var(--s5); }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); }

p { max-width: var(--measure); }
.lead { font-size: var(--s1); line-height: 1.5; color: var(--ink); }
.dim { color: var(--ink-soft); }

a.link {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
a.link:hover { color: var(--copper-ink); border-color: var(--copper-ink); }

/* ---- Buttons -------------------------------------------------- */
.cta {
  font-family: var(--font-mono);
  font-size: var(--s-1);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .85em;
  text-decoration: none;
  color: var(--ink);
  padding: .9em 0;
  position: relative;
}
.cta .arrow { transition: transform .35s var(--ease); }
.cta::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: background .3s var(--ease);
}
.cta:hover { color: var(--copper-ink); }
.cta:hover::after { background: var(--copper); }
.cta:hover .arrow { transform: translateX(.4em); }

.cta-solid {
  background: var(--ink);
  color: var(--ivory);
  padding: 1em 1.6em;
}
.cta-solid::after { display: none; }
.cta-solid:hover { background: var(--abyss); color: var(--ivory); }

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-soft);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 4.6rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; display: block; }
.brand .word {
  font-family: var(--font-mono);
  letter-spacing: .3em;
  font-size: .86rem;
  text-transform: uppercase;
  padding-left: .1em;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a {
  font-family: var(--font-mono);
  font-size: var(--s-1);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--copper-ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav { gap: 1.1rem; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Hero — the thesis. Image + headline resolve from blur.
   ============================================================ */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); position: relative; overflow: hidden; }
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 1.4rem; }
.hero h1 .clear { color: var(--copper-ink); font-style: italic; }
.hero .standfirst { margin-top: 1.8rem; font-size: var(--s1); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { margin-top: 2.4rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--s-1);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--hair);
  padding-top: .8rem;
}

/* focus-resolve mechanic (enhancement only, gated by .js) */
.js .reveal-focus { filter: blur(16px); opacity: 0; transform: scale(1.012); }
.js .reveal-focus.is-clear {
  filter: blur(0); opacity: 1; transform: none;
  transition: filter 1.2s var(--ease), opacity 1.1s var(--ease), transform 1.2s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-focus { filter: none; opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero .grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-figure { order: 2; }
  .hero .standfirst { max-width: none; }
  .hero-actions { gap: 1.4rem; }
  .aperture { display: none; }
}

/* faint aperture rings behind hero */
.aperture {
  position: absolute;
  pointer-events: none;
  inset: auto -16% -40% auto;
  width: 46vw; max-width: 640px; aspect-ratio: 1;
  opacity: .5; z-index: 0;
}
.aperture svg { width: 100%; height: 100%; }

/* ============================================================
   Definition strip — what this is / is not
   ============================================================ */
.def { border-block: 1px solid var(--hair); background: var(--paper); }
.def .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.def-col h3 { font-size: var(--s1); margin-bottom: .6rem; }
.def-col.is + .def-col.isnot { border-left: 1px solid var(--hair); padding-left: clamp(1.5rem, 4vw, 4rem); }
.def .tag { color: var(--copper-ink); }
.def .tag.no { color: var(--ink-soft); }
@media (max-width: 720px) {
  .def .wrap { grid-template-columns: 1fr; }
  .def-col.is + .def-col.isnot { border-left: none; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 1.5rem; }
}

/* ============================================================
   Pillars — three parallel lenses (NOT a sequence)
   ============================================================ */
.pillars .head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.lens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); }
.lens {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
  display: flex; flex-direction: column;
}
.lens .glyph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 1.6rem; filter: saturate(.92); }
.lens .tag { font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-ink); }
.lens h3 { margin-top: .7rem; font-size: var(--s2); }
.lens p { margin-top: .9rem; color: var(--ink-soft); font-size: var(--s0); }
.lens .more { margin-top: auto; padding-top: 1.6rem; }
@media (max-width: 880px) { .lens-grid { grid-template-columns: 1fr; gap: 2.6rem; } }

/* ============================================================
   Inward chamber — dark section (psychoscopy)
   ============================================================ */
.chamber { background: var(--abyss); color: var(--ivory); position: relative; overflow: hidden; }
.chamber h2 { color: var(--ivory); }
.chamber .eyebrow { color: var(--copper); }
.chamber .eyebrow::before { background: var(--copper); }
.chamber .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.chamber p { color: rgba(247,244,238,.74); }
.chamber .mono { color: rgba(247,244,238,.5); }
.chamber a.link { color: var(--ivory); border-color: var(--copper); }
.chamber img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.chamber .cta { color: var(--ivory); }
.chamber .cta::after { background: var(--ivory); }
.chamber .cta:hover { color: var(--copper); }
.chamber .cta:hover::after { background: var(--copper); }
@media (max-width: 820px) { .chamber .grid { grid-template-columns: 1fr; } }

/* ============================================================
   Method ledger — measured steps, instrument readout style
   ============================================================ */
.ledger .head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: var(--measure); }
.steps { border-top: 1px solid var(--hair); }
.step {
  display: grid; grid-template-columns: 5rem 1fr; gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.step .idx { font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .1em; color: var(--copper-ink); }
.step h3 { font-size: var(--s1); }
.step p { margin-top: .5rem; color: var(--ink-soft); }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: .4rem; } }

/* ============================================================
   Voice / quote
   ============================================================ */
.voice { background: var(--mist); border-block: 1px solid var(--hair); }
.voice blockquote { font-family: var(--font-display); font-size: var(--s3); line-height: 1.22; letter-spacing: -.01em; max-width: 22ch + 10ch; }
.voice blockquote { max-width: 28ch; }
.voice .who { margin-top: 2rem; font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   Closing invitation
   ============================================================ */
.invite { text-align: left; }
.invite h2 { max-width: 18ch; }
.invite .standfirst { margin-top: 1.6rem; max-width: 46ch; color: var(--ink-soft); font-size: var(--s1); }
.invite .hero-actions { margin-top: 2.4rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: var(--abyss); color: rgba(247,244,238,.7); padding-block: clamp(3rem, 6vw, 5rem); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-foot a { color: rgba(247,244,238,.7); text-decoration: none; transition: color .2s var(--ease); }
.site-foot a:hover { color: var(--copper); }
.site-foot h4 { font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .2em; text-transform: uppercase; color: rgba(247,244,238,.45); margin-bottom: 1.1rem; font-weight: 400; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.site-foot .brand .word { color: var(--ivory); }
.site-foot .colophon { margin-top: 1.4rem; font-size: var(--s-1); line-height: 1.7; color: rgba(247,244,238,.45); max-width: 34ch; }
.foot-base { border-top: 1px solid var(--hair-light); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-base, .foot-base a { font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,238,.45); }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   Interior pages (about/system/learning/insights/contact)
   ============================================================ */
.page-hero { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--hair); }
.page-hero h1 { font-size: var(--s4); margin-top: 1.2rem; max-width: 18ch; }
.page-hero .standfirst { margin-top: 1.6rem; font-size: var(--s1); color: var(--ink-soft); max-width: 52ch; line-height: 1.5; }

.prose p + p { margin-top: 1.3rem; }
.prose h2 { font-size: var(--s2); margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { font-size: var(--s1); margin-top: 2rem; margin-bottom: .6rem; }
.prose .measure { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split img { width: 100%; border-radius: 2px; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* index cards (insights) */
.entries { border-top: 1px solid var(--ink); }
.entry { display: grid; grid-template-columns: 9rem 1fr auto; gap: clamp(1rem, 3vw, 2.5rem); padding-block: 1.8rem; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); align-items: baseline; transition: background .25s var(--ease); }
.entry:hover { background: var(--paper); }
.entry .meta { font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.entry h3 { font-size: var(--s1); transition: color .25s var(--ease); }
.entry:hover h3 { color: var(--copper-ink); }
.entry .read { font-family: var(--font-mono); font-size: var(--s-1); color: var(--copper-ink); }
@media (max-width: 700px) { .entry { grid-template-columns: 1fr; gap: .4rem; } .entry .read { display: none; } }

/* contact */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: var(--s0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--hair);
  padding: .8em .9em; border-radius: 2px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--copper-ink); outline-offset: 1px; border-color: transparent; }
.field--full { grid-column: 1 / -1; }

/* scroll reveal (gated by .js) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ivory); padding: .7em 1em; z-index: 100; font-family: var(--font-mono); font-size: var(--s-1); }
.skip:focus { left: var(--gutter); top: .5rem; }
