/* ============================================================
   Editorial / Swiss — Bonifasius Henri Suni
   Paper + ink, one signal color, big grotesque type.
   ============================================================ */
:root {
  --paper: #f3f0e7;
  --ink: #16130f;
  --ink-soft: #57514a;
  --line: #d3ccbe;
  --accent: #e8481c;
  --accent-ink: #16130f;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}
[data-mode="ink"] {
  --paper: #16130f;
  --ink: #f3f0e7;
  --ink-soft: #a49c90;
  --line: #38322a;
  --accent: #ff5a2c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }

body {
  font-family: "Newsreader", Georgia, serif;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
}
h1, h2, h3, h4, .grotesk { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.02em; }
.mono, .sec__no, .mast__meta, .hero__kicker, .exp__when, dt { font-family: "Space Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Masthead ---------- */
.mast { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad) 0; }
.mast__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mast__meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mast__rule { height: 2px; background: var(--ink); margin: 10px 0; }
.mast__row--nav { padding-bottom: 4px; flex-wrap: wrap; }
.mast__link { font-family: "Space Grotesk"; font-weight: 500; font-size: 0.95rem; position: relative; }
.mast__link::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; }
.mast__link:hover::after { width: 100%; }
.mast__mode { font-family: "Space Mono"; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 5px 14px; border-radius: 100px; }
.mast__mode:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vw, 90px) var(--pad); }
.hero__kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.hero__name { font-weight: 700; line-height: 0.92; font-size: clamp(3.2rem, 14vw, 11rem); letter-spacing: -0.04em; }
.hero__line { display: block; }
.hero__line--accent { color: var(--accent); font-style: normal; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 70px); margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--ink); }
.hero__lede { font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.42; }
.hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; }
.hero__facts dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.hero__facts dd { font-family: "Space Grotesk"; font-weight: 600; font-size: 1.05rem; }
.hero__facts .live { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blip 1.8s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (max-width: 760px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(46px, 7vw, 90px) var(--pad); border-top: 2px solid var(--ink); }
.sec__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.sec__no { font-size: 13px; color: var(--accent); font-weight: 700; }
.sec__head h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; }

/* Prose */
.prose { max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.prose p + p { margin-top: 22px; }
.prose__drop::first-letter { font-family: "Space Grotesk"; font-weight: 700; font-size: 3.6em; float: left; line-height: 0.72; margin: 6px 12px 0 0; color: var(--accent); }

/* Experience */
.exp { list-style: none; }
.exp__item { display: grid; grid-template-columns: 140px 1fr; gap: clamp(16px, 4vw, 50px); padding: 30px 0; border-top: 1px solid var(--line); }
.exp__item:first-child { border-top: none; padding-top: 0; }
.exp__when { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); padding-top: 6px; }
.exp__body h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; }
.exp__org { color: var(--ink-soft); margin: 4px 0 14px; font-size: 1.02rem; }
.exp__org span { font-family: "Space Mono"; font-size: 0.82rem; }
.exp__body ul { list-style: none; display: grid; gap: 9px; }
.exp__body li { padding-left: 22px; position: relative; color: var(--ink); max-width: 720px; }
.exp__body li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 640px) { .exp__item { grid-template-columns: 1fr; gap: 10px; } .exp__when { padding-top: 0; } }

/* Work */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 2px solid var(--ink); }
.wk { padding: clamp(20px, 3vw, 34px); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transition: background 0.25s ease, color 0.25s ease; cursor: default; }
.work .wk:nth-child(2n) { border-right: none; }
.wk__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.wk__no { font-family: "Space Mono"; font-size: 12px; color: var(--ink-soft); }
.wk__year { font-family: "Space Mono"; font-size: 12px; color: var(--accent); }
.wk h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; }
.wk__desc { color: var(--ink-soft); margin: 10px 0 16px; max-width: 42ch; }
.wk__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wk__tag { font-family: "Space Mono"; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border: 1px solid var(--line); border-radius: 100px; }
.wk:hover { background: var(--ink); color: var(--paper); }
.wk:hover .wk__no, .wk:hover .wk__desc { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.wk:hover .wk__year { color: var(--accent); }
.wk:hover .wk__tag { border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
@media (max-width: 680px) { .work { grid-template-columns: 1fr; } .wk { border-right: none; } .work .wk:nth-child(2n) { border-right: none; } }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cap { padding: 24px 26px 24px 0; border-bottom: 1px solid var(--line); }
.cap h4 { font-family: "Space Mono"; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.cap ul { list-style: none; }
.cap li { font-family: "Space Grotesk"; font-size: 1.08rem; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.cap li:last-child { border-bottom: none; }

/* Index */
.idx { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 50px); }
.idx__col h4 { font-family: "Space Mono"; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.idx__lead { font-family: "Space Grotesk"; font-weight: 600; font-size: 1.15rem; margin-top: 14px; }
.idx__lead:first-of-type { margin-top: 0; }
.idx__col p { color: var(--ink-soft); }
.idx__note { font-style: italic; margin-top: 8px; }
@media (max-width: 720px) { .idx { grid-template-columns: 1fr; } }

/* Colophon */
.colophon__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.colophon__big { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(1.6rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1.05; }
.colophon__big span { color: var(--accent); display: inline-block; transition: transform 0.25s ease; }
.colophon__big:hover span { transform: translate(6px, -6px); }
.colophon__meta { display: grid; gap: 16px; }
.colophon__meta dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.colophon__meta dd { font-family: "Space Grotesk"; font-weight: 500; }
@media (max-width: 720px) { .colophon__grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad) 40px; display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--ink); font-family: "Space Mono"; font-size: 12px; letter-spacing: 0.04em; }
.foot__top:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
