/* Layout: a full-width one-line headline that is also the control (the chosen verb widens, the others
   squeeze), the process sheet it reshapes beneath, then quiet ruled rows. One dark look on purpose:
   mantis-night green ground, pale lichen ink, one orchid accent reserved for agents. */
:root {
  --paper:  #1B2317;   /* mantis-night green */
  --panel:  #232D1E;   /* lifted green, for the process sheet */
  --ink:    #E3E8D4;   /* pale lichen ink */
  --muted:  #ABA6B8;   /* violet grey */
  --stem:   #4E5C42;   /* mantis stem, for lines */
  --orchid: #F2649D;   /* orchid mantis pink: agents only */

  --display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --greek: "GFS Didot", Didot, "Bodoni 72", Georgia, serif;

  --wrap: 1240px;
  --rule: 2px;
  color-scheme: dark;
}
/* Light lichen theme, kept for later: add data-theme="light" to <html> in index.html to use it. */
:root[data-theme="light"] {
  --paper:  #DCE2CF;   /* pale lichen */
  --panel:  #E8ECDD;   /* lighter lichen, for the process sheet */
  --ink:    #241A33;   /* aubergine ink */
  --muted:  #575169;   /* violet grey */
  --stem:   #9DA98B;   /* mantis stem, for lines */
  --orchid: #BE2F69;   /* orchid mantis pink: agents only */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.62;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin-inline: auto; }
a { color: inherit; text-decoration-color: var(--orchid); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 4px; }
p { margin: 0; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 28px; flex: none; }
.wordmark {
  font-family: var(--display); font-stretch: 118%; font-weight: 760;
  font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 1rem; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--orchid); }
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.25em .78em;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-stretch: 96%; font-weight: 640; font-size: 1rem; line-height: 1;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
  transition: font-stretch .35s ease;
}
.btn:hover { font-stretch: 112%; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { font-size: .9rem; padding: .66em 1em .7em; }
}
.btn { white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 64px) clamp(32px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(20px, 3.5vw, 48px) clamp(64px, 9vw, 120px);
}
.headline { grid-column: 1 / -1; container-type: inline-size; min-width: 0; }
.verbs {
  margin: 0;
  display: flex; flex-direction: row; align-items: baseline; gap: .2em;
  font-family: var(--display);
  font-size: 10.2cqi;
  line-height: .9;
  letter-spacing: -0.015em;
}
.verb {
  all: unset;
  position: relative;
  display: inline-flex; align-items: center;
  cursor: pointer;
  white-space: nowrap;
  font-stretch: 50%;
  font-weight: 400;
  color: var(--muted);
  padding-block: .02em .05em;
  transition: font-stretch .8s cubic-bezier(.2,.75,.15,1), font-weight .8s cubic-bezier(.2,.75,.15,1), color .4s ease;
}
.verb:hover { color: var(--ink); }
.verb[aria-pressed="true"] { font-stretch: 150%; font-weight: 880; color: var(--ink); }
.verb:focus-visible { outline-offset: 2px; }
.verb .head {
  display: inline-block;
  width: 0; height: .34em; margin-right: 0;
  background: var(--orchid);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: width .6s cubic-bezier(.2,.75,.15,1), margin .6s cubic-bezier(.2,.75,.15,1);
}
.verb[aria-pressed="true"] .head { width: .36em; margin-right: .14em; }
.verb .tick {
  position: absolute; left: 0; bottom: -.08em;
  height: 3px; width: 0; background: var(--orchid);
}
.verb.timing .tick { animation: tick var(--cycle, 5600ms) linear forwards; }
@keyframes tick { to { width: 100%; } }

.lede { display: grid; gap: 26px; max-width: 34ch; padding-top: 6px; }
.lede p { font-size: clamp(1.18rem, 1.7vw, 1.4rem); line-height: 1.45; font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* the process sheet */
.sheet { margin: 0; min-width: 0; background: var(--panel); padding: clamp(20px, 3vw, 36px); }
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  font-size: .95rem; color: var(--muted);
}
.sheet-head b { font-weight: 600; color: var(--ink); }
.sheet-head i { font-style: italic; }
.caption { margin-block: 14px 26px; font-size: 1.06rem; line-height: 1.5; max-width: 46ch; min-height: 3em; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 16px; }
.steps::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--stem);
}
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.node { position: relative; display: block; width: 24px; height: 24px; margin-top: 2px; }
.node svg { display: block; width: 24px; height: 24px; }
.step-body { display: grid; gap: 1px; min-width: 0; }
.step-label { font-weight: 400; line-height: 1.35; }
.step-who { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.note { display: block; font-style: italic; color: var(--orchid); font-size: .92rem; line-height: 1.35; }
.time {
  font-family: var(--display); font-stretch: 72%; font-weight: 640; font-size: 1.12rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.35; text-align: right;
}
.summary {
  margin-top: 26px; padding-top: 16px; border-top: var(--rule) solid var(--stem);
  font-size: 1.08rem; line-height: 1.45; min-height: 3.2em;
}
.key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.key svg { width: 16px; height: 16px; }
.settle { animation: settle .5s cubic-bezier(.2,.75,.15,1); }
@keyframes settle { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.block { padding-block: clamp(64px, 9vw, 120px); border-top: var(--rule) solid var(--ink); }
h2 {
  margin: 0 0 .45em;
  font-family: var(--display); font-stretch: 78%; font-weight: 740;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: .98; letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-intro { max-width: 52ch; font-size: 1.2rem; font-weight: 300; color: var(--muted); }

/* how a project runs */
.rows { margin-top: clamp(36px, 5vw, 64px); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3.2fr);
  gap: 18px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 48px);
  border-top: var(--rule) solid var(--stem);
}
.row-verb {
  font-family: var(--display); font-stretch: 50%; font-weight: 820;
  font-size: clamp(4.2rem, 10vw, 8rem); line-height: .78; letter-spacing: -0.01em;
  margin: 0;
}
.row-text { max-width: 48ch; }
.facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-style: italic; color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; line-height: 1.45; }

/* the name */
.name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.greek { margin: 0; display: grid; gap: 10px; }
.greek span {
  display: block;
  font-family: var(--greek); color: var(--orchid);
  font-size: clamp(5rem, 15vw, 12.5rem); line-height: 1.08; letter-spacing: -0.01em;
}
.greek figcaption { font-size: 1rem; color: var(--muted); font-style: italic; }
.name-text { display: grid; gap: 1em; max-width: 50ch; }

/* work list */
.work {
  list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35em 1.3em;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem); font-weight: 300; font-style: italic; line-height: 1.3;
}
.work li { display: inline-flex; align-items: center; gap: .38em; }
.work li::before {
  content: ""; flex: none; width: .42em; height: .38em; background: var(--orchid);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* principles */
.principles {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px);
}
.principles h3 {
  margin: 0 0 .4em; font-family: var(--display); font-stretch: 88%; font-weight: 680;
  font-size: 1.45rem; line-height: 1.12; text-wrap: balance;
}
.principles p { color: var(--muted); max-width: 40ch; }

/* contact */
.contact { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); font-stretch: 70%; max-width: 15ch; }
.contact p { max-width: 50ch; font-size: 1.2rem; font-weight: 300; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.mail-address {
  font-family: var(--display); font-stretch: 104%; font-weight: 560;
  font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.02em;
  user-select: all; overflow-wrap: anywhere;
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 28px 40px; border-top: var(--rule) solid var(--ink);
  font-size: .95rem; color: var(--muted);
}

/* ---------- narrow screens ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .verbs { flex-direction: column; align-items: flex-start; gap: 0; font-size: 17cqi; line-height: .86; }
  .verb[aria-pressed="true"] { font-stretch: 122%; font-weight: 840; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .name { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* svg sprite and fills (classes instead of inline styles, for a strict CSP) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.f-orchid { fill: var(--orchid); }
.f-panel { fill: var(--panel); }
.f-ink { fill: var(--ink); }
.f-paper { fill: var(--paper); }
.s-ink { stroke: var(--ink); }


/* Teaser mode: only the logo and the tagline are shown; everything else stays in the page, hidden.
   Remove data-mode="teaser" from <body> in index.html to show the full page again. */
body[data-mode="teaser"] { min-height: 100svh; display: flex; }
body[data-mode="teaser"] > .wrap { flex: 1; width: 100%; display: flex; flex-direction: column; }
body[data-mode="teaser"] main { flex: 1; display: flex; align-items: center; }
body[data-mode="teaser"] .hero { width: 100%; grid-template-columns: minmax(0, 1fr); padding-block: 0 14svh; }
body[data-mode="teaser"] .nav,
body[data-mode="teaser"] .lede,
body[data-mode="teaser"] .sheet,
body[data-mode="teaser"] main > section:not(.hero),
body[data-mode="teaser"] .foot { display: none; }
