/* ============================================================
   Charbel Al Helayel — personal site
   Aesthetic: the record. A well-set document on a dark ground —
   marginalia, one signal-amber accent, no ornament that isn't
   carrying information.
   ============================================================ */

:root {
  /* ground */
  --paper:      #0A0D0C;
  --paper-warm: #0F1312;
  --paper-deep: #141817;

  /* ink — warm bone on near-black */
  --ink:        #E9E4D9;
  --ink-mid:    rgba(233, 228, 217, 0.70);
  --ink-soft:   rgba(233, 228, 217, 0.64);
  --ink-dim:    rgba(233, 228, 217, 0.52);   /* 4.7:1 — the floor for small type */
  --rule:       rgba(233, 228, 217, 0.14);
  --rule-faint: rgba(233, 228, 217, 0.07);

  /* accent — signal amber */
  --red:        #E9A244;
  --red-deep:   #F7B65E;
  --red-wash:   rgba(233, 162, 68, 0.14);

  /* type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Newsreader", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* metrics */
  --gut:  clamp(1.25rem, 6vw, 6rem);
  --maxw: 1180px;
  --marg: 8.5rem;            /* marginalia column */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
em { font-style: italic; }
code {
  font-family: var(--mono); font-size: 0.84em;
  color: var(--red-deep); background: var(--red-wash);
  padding: 0.06em 0.3em; border-radius: 2px;
}
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--red); color: var(--paper);
  padding: 0.6rem 1rem; font-family: var(--mono); font-size: 0.75rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* engineering grid — graph paper under the type */
.grid-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(233,228,217,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233,228,217,0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(125% 85% at 50% 0%, #000 8%, transparent 76%);
  -webkit-mask-image: radial-gradient(125% 85% at 50% 0%, #000 8%, transparent 76%);
}
.masthead, main, .colophon { position: relative; z-index: 1; }

/* blinking caret — the one bit of terminal in the type */
.caret {
  display: inline-block;
  width: 0.44em; height: 0.9em;
  margin-left: 0.16em;
  background: var(--red);
  vertical-align: baseline;
  animation: blink 1.15s steps(1) infinite;
}
.caret--lg { width: 0.11em; height: 0.72em; margin-left: 0.1em; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- IDE status bar ---------- */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.3rem var(--gut);
  background: color-mix(in srgb, var(--paper-deep) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule-faint);
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
}
.statusbar__branch { color: var(--red); }
.statusbar__branch::before { content: "⎇ "; }
.statusbar__sep { opacity: 0.4; }
.statusbar__spacer { flex: 1; }
.statusbar__where { color: var(--ink-soft); letter-spacing: 0.06em; }
@media (max-width: 780px) { .statusbar { display: none; } }
@media (min-width: 781px) { .colophon { padding-bottom: 4rem; } }

/* ---------- code snippet ---------- */
.snippet {
  margin: 0.5rem 0; border: 1px solid var(--rule);
  background: var(--paper-warm); border-radius: 3px; overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(0,0,0,0.9);
}
.snippet__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.8rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule-faint);
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.snippet__file { color: var(--red); }
.snippet__lang { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.14em; }
.snippet__lines {
  counter-reset: ln; padding: 0.75rem 0.9rem 0.9rem 0;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1.4vw, 0.75rem); line-height: 1.75;
  color: var(--ink-mid); white-space: pre;
  overflow-x: auto;
}
.snippet__lines li { counter-increment: ln; position: relative; padding-left: 3.1rem; }
.snippet__lines li::before {
  content: counter(ln);
  position: absolute; left: 0; width: 2.2rem; text-align: right;
  color: var(--ink-dim); opacity: 0.55;
}
.s-ann  { color: var(--red); }
.s-key  { color: #C79BD6; }
.s-type { color: #8FC7DA; }
.s-fn   { color: var(--red-deep); }
.s-com  { color: var(--ink-dim); font-style: italic; }

/* ---------- terminal ---------- */
.terminal {
  margin-top: 1.25rem;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  border-radius: 3px;
  overflow: hidden;
  max-width: 54ch;
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.9);
}
.terminal__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--rule-faint);
  background: var(--paper-deep);
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
}
.terminal__dir { color: var(--ink-dim); text-transform: none; letter-spacing: 0.03em; }
.terminal__body {
  margin: 0; padding: 0.9rem 1rem 1.1rem;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1.5vw, 0.74rem);
  line-height: 1.72;
  color: var(--ink-mid);
  white-space: pre-wrap; word-break: break-word;
}
.terminal__body code { background: none; padding: 0; color: inherit; font-size: inherit; }
.t-prompt { color: var(--red); }
.t-cmd    { color: var(--ink); font-weight: 500; }
.t-str    { color: #9BC4A0; }
.t-tool   { color: var(--red); }
.t-dim    { color: var(--ink-dim); }
.t-add    { color: #9BC4A0; }
.t-del    { color: #D08B7A; }
.t-num    { color: var(--red-deep); }

/* film grain — a whisper of texture, not a gimmick */
.tooth {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem var(--gut) 0.85rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--rule); }

.masthead__name {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  letter-spacing: -0.005em;
  color: var(--red);
  transition: color 0.3s;
}
.masthead__name:hover { color: var(--red-deep); }
.masthead__name::after {
  content: ""; display: block; height: 1px; width: 0; background: var(--red);
  transition: width 0.45s var(--ease);
}
.masthead__name:hover::after { width: 100%; }

.masthead__nav { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); }
.masthead__nav a {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); padding-bottom: 3px; position: relative;
  transition: color 0.3s;
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--red);
  transition: width 0.4s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:hover::after,
.masthead__nav a.is-active::after { width: 100%; }
.masthead__nav a.is-active { color: var(--red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 11vh, 7rem) var(--gut) clamp(2.5rem, 7vh, 4.5rem);
}
.hero__standfirst {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 1.25rem; margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
  border-bottom: 1px solid var(--rule);
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 13vw, 10rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 0.92; letter-spacing: -0.025em;
  margin-bottom: clamp(2rem, 6vh, 3.5rem);
}

.hero__body {
  display: grid; gap: clamp(1.75rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  padding-bottom: clamp(1.75rem, 5vh, 2.75rem);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 860px) { .hero__body { grid-template-columns: 1fr; } }

.hero__lede {
  font-size: clamp(1.16rem, 1.05rem + 0.6vw, 1.55rem);
  line-height: 1.5; max-width: 34ch;
  font-weight: 350;
}
.hero__lede a, .prose a {
  color: var(--ink);
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 100% 1px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.3s;
}
.hero__lede a:hover, .prose a:hover { color: var(--red); }

.specsheet { font-family: var(--mono); font-size: 0.78rem; }
.specsheet > div {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem;
  padding: 0.5rem 0; border-top: 1px solid var(--rule-faint);
  align-items: baseline;
}
.specsheet > div:first-child { border-top: 0; padding-top: 0; }
.specsheet dt {
  color: var(--red); font-size: 0.66rem;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.specsheet dd { color: var(--ink-mid); }

/* contents — the editorial index */
.contents {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.25rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}
.contents a {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.06em; color: var(--ink-soft);
  padding: 0.3rem 0; transition: color 0.3s;
}
.contents span { color: var(--red); }
.contents a:hover { color: var(--ink); }

/* ============================================================
   SECTIONS — marginalia layout
   ============================================================ */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.75rem, 8vh, 5.5rem) var(--gut);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

.section__head {
  display: grid; grid-template-columns: var(--marg) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.section__marker { display: flex; flex-direction: column; gap: 0.3rem; }
.section__num {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; color: var(--red);
}
.section__file {
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.04em; color: var(--ink-dim);
}
.section__file::before { content: "~/"; opacity: 0.5; }
@media (max-width: 780px) {
  .section__marker { flex-direction: row; align-items: baseline; gap: 0.7rem; }
}
.section__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 400; font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 1; letter-spacing: -0.015em;
}
.section__standfirst {
  grid-column: 2; margin-top: 0.75rem;
  color: var(--ink-soft); max-width: 46ch;
  font-size: 1.02rem;
}
.section__body {
  display: grid; grid-template-columns: var(--marg) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
.section__body > * { grid-column: 2; }

@media (max-width: 780px) {
  .section__head, .section__body { grid-template-columns: 1fr; gap: 0.5rem; }
  .section__standfirst, .section__body > * { grid-column: 1; }
  .section__head { align-items: start; }
}

/* ---------- about ---------- */
.prose {
  display: flex; flex-direction: column; gap: 1.35rem;
  max-width: 64ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.72; color: var(--ink-mid);
}
.prose strong { color: var(--ink); }
.prose em { color: var(--ink); }

/* ============================================================
   WORK — the RitAI spread
   ============================================================ */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
  margin-bottom: clamp(1rem, 3vh, 2rem);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .spread { grid-template-columns: 1fr; } }

.spread__head { grid-column: 1 / -1; margin-bottom: 0.5rem; }
.spread__idx {
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.14em; color: var(--red);
  display: block; margin-bottom: 0.4rem;
}
.spread__name {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 400; font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 0.95; letter-spacing: -0.025em;
}
.spread__kind {
  font-family: var(--body); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft); margin-top: 0.5rem;
}

.spread__story {
  display: flex; flex-direction: column; gap: 1.25rem;
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.16rem);
  line-height: 1.74; color: var(--ink-mid);
  max-width: 56ch;
}
.spread__story strong { color: var(--ink); }
.spread__story > p:first-child::first-letter {
  float: left; font-family: var(--display); font-weight: 400;
  font-size: 3.6em; line-height: 0.78;
  padding: 0.06em 0.1em 0 0; color: var(--red);
}
.spread__quote {
  margin: 0.5rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--display); font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.38; color: var(--ink);
  max-width: 34ch;
}

.spread__side { display: flex; flex-direction: column; gap: 1.5rem; }

.capabilities { border-top: 1px solid var(--rule); }
.capabilities li {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--rule-faint);
}
.capabilities__k {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink);
}
.capabilities__v { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }

.factfile { font-family: var(--mono); font-size: 0.72rem; }
.factfile > div {
  display: grid; grid-template-columns: 5rem 1fr; gap: 0.9rem;
  padding: 0.45rem 0; align-items: baseline;
}
.factfile dt {
  color: var(--red); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.factfile dd { color: var(--ink-soft); line-height: 1.5; }

/* ---------- call to action ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  align-self: flex-start;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
  transition: color 0.3s, gap 0.3s var(--ease);
}
.cta i { font-style: normal; color: var(--red); transition: transform 0.35s var(--ease); }
.cta:hover { color: var(--red); gap: 0.8rem; }
.cta:hover i { transform: translateX(3px); }
.cta--sm { font-size: 0.74rem; }
.cta--quiet { border-bottom-color: var(--rule); color: var(--ink-soft); }
.cta--quiet:hover { border-bottom-color: var(--red); }

/* ============================================================
   WORK — the numbered entries
   ============================================================ */
.entries { display: flex; flex-direction: column; }

.entry {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1.55fr) minmax(0, 0.9fr);
  gap: clamp(0.75rem, 2.5vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vh, 2.25rem) 0;
  border-bottom: 1px solid var(--rule-faint);
  position: relative;
}
.entry::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0; background: var(--red);
  transition: width 0.7s var(--ease);
}
.entry:hover::after { width: 100%; }

/* the editor's active-line highlight */
.entry::before {
  content: ""; position: absolute;
  left: calc(var(--gut) * -0.4); right: calc(var(--gut) * -0.4); top: 0; bottom: 0;
  background: var(--paper-warm);
  border-left: 2px solid transparent;
  opacity: 0; transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease);
  pointer-events: none; z-index: -1;
}
.entry:hover::before { opacity: 1; border-left-color: var(--red); }

.entry__idx {
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.1em; color: var(--ink-dim);
  padding-top: 0.45rem;
  transition: color 0.35s;
}
.entry:hover .entry__idx { color: var(--red); }

.entry__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400; font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.05; letter-spacing: -0.015em;
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
}
.ar {
  font-family: var(--body); font-size: 0.5em;
  color: var(--ink-dim); letter-spacing: 0;
}
.entry__kind {
  font-family: var(--body); font-style: italic;
  color: var(--ink-soft); margin-top: 0.25rem; font-size: 1rem;
}
.entry__lede {
  margin-top: 0.8rem; color: var(--ink-mid);
  max-width: 58ch; line-height: 1.66;
}
.entry__side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
  padding-top: 0.4rem;
}
.entry__stack {
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.7;
  color: var(--ink-dim); letter-spacing: 0.02em;
}

/* the Relay family divider */
.interlude {
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(1rem, 2.5vh, 1.5rem);
  border-bottom: 1px solid var(--rule);
  max-width: 52ch;
}
.interlude h3 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 1;
  color: var(--red); margin-bottom: 0.4rem;
}
.interlude p { color: var(--ink-soft); }

@media (max-width: 720px) {
  .entry { grid-template-columns: 2rem minmax(0, 1fr); }
  .entry__side { grid-column: 2; padding-top: 1rem; }
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.record { display: flex; flex-direction: column; }

.post {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vh, 2.5rem) 0;
  border-top: 1px solid var(--rule-faint);
}
.record > .post:first-child { border-top: 0; padding-top: 0; }

.post__margin {
  display: flex; flex-direction: column; gap: 0.2rem;
  position: sticky; top: 4.5rem; align-self: start;
}
.post__years {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.11em; color: var(--red);
}
.post__org {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400; font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.14;
}
.post__note {
  font-family: var(--body); font-style: italic;
  font-size: 0.88rem; color: var(--ink-dim);
}

.role {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 500; font-variation-settings: "SOFT" 30, "WONK" 0;
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--rule-faint);
}
.post__detail > .role:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.role__dates {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 100px;
  padding: 0.14rem 0.5rem;
}
.post__detail ul {
  margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.45rem;
}
.post__detail li {
  position: relative; padding-left: 1.15rem;
  color: var(--ink-mid); font-size: 0.98rem; line-height: 1.6;
}
.post__detail li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 1px; background: var(--red); opacity: 0.75;
}

@media (max-width: 780px) {
  .post { grid-template-columns: 1fr; }
  .post__margin {
    position: static; flex-direction: row; align-items: baseline;
    gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem;
  }
}

/* ============================================================
   TOOLKIT
   ============================================================ */
.kit { display: flex; flex-direction: column; }
.kit > div {
  display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 2.5vw, 2rem);
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule-faint);
  align-items: baseline;
}
.kit > div:first-child { border-top: 0; }
.kit dt {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--red);
}
.kit dd { color: var(--ink-mid); font-size: 1rem; line-height: 1.6; }
@media (max-width: 600px) {
  .kit > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__pitch {
  font-family: var(--display); font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.24; max-width: 22ch;
  margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
}

.contact__mail {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; position: relative; overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(0.9rem, 2.5vh, 1.4rem) 0;
  margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
}
.contact__mail span {
  font-family: var(--display); font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(1.35rem, 5.4vw, 3.4rem);
  line-height: 1; letter-spacing: -0.02em; word-break: break-word;
  transition: color 0.4s var(--ease), transform 0.55s var(--ease);
}
.contact__mail i {
  font-style: normal; color: var(--red); flex: none;
  font-size: clamp(1rem, 2vw, 1.5rem);
  transition: transform 0.5s var(--ease);
}
.contact__mail::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--red);
  transition: width 0.7s var(--ease);
}
.contact__mail:hover span { color: var(--red); transform: translateX(4px); }
.contact__mail:hover i { transform: translateX(6px); }
.contact__mail:hover::after { width: 100%; }

.elsewhere { display: flex; flex-direction: column; }
.elsewhere > div {
  display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 2.5vw, 2rem);
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule-faint);
  align-items: baseline;
}
.elsewhere > div:first-child { border-top: 0; }
.elsewhere dt {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft);
}
.elsewhere dd { color: var(--ink); }
.elsewhere a {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s, border-color 0.3s, gap 0.3s var(--ease);
}
.elsewhere a i { font-style: normal; color: var(--red); font-size: 0.85em; transition: transform 0.35s var(--ease); }
.elsewhere a:hover { color: var(--red); border-color: var(--red); gap: 0.65rem; }
.elsewhere a:hover i { transform: translateX(3px); }

/* ============================================================
   COLOPHON
   ============================================================ */
.colophon {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--gut) 3rem;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.05em; color: var(--ink-dim);
}
.colophon__sig { color: var(--ink-soft); }

/* ============================================================
   PRINT — recruiters print things
   ============================================================ */
@media print {
  .grid-field, .tooth, .statusbar, .masthead__nav, .contents, .caret { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .entry a[href^="http"]::after,
  .cta[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  .section, .hero { break-inside: auto; padding-block: 1.2rem; }
  .post__margin { position: static; }
  .spread, .entry, .post { break-inside: avoid; }
  .terminal, .snippet { border-color: #999; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease) var(--d, 0ms),
              transform 0.8s var(--ease) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .caret { opacity: 1; }
}
