/* ============================================================
   Aleks Vangjelofski Advisory — Foundations
   ============================================================
   Direction: SWISS-BRUTALIST + OFF-AXIS POSTER MOMENTS.
   Reference: Yale Architecture · Read.cv · Wikipedia-on-purpose
   · with deliberate poster-style color blocks + multilingual
   vertical labels as recurring motif.

   No EU institutional colors. No consultancy aesthetic.
   Single-accent discipline: ink + vermilion. The off-axis
   moments use the SAME vermilion as flat blocks — no second
   accent, no gradient, no warmth-bias.

   Type: Inter at extreme weights for display (800/900 ALL CAPS),
   regular for body. JetBrains Mono for every label, eyebrow,
   footnote, marginal note. NO serif anywhere.

   NOTE: No prior brand assets existed. This is v3 (Swiss-
   brutalist), committed after user explicitly chose A + C hybrid.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  /* --------------------------------------------------------
     COLOR · paper (warm off-white, never pure)
     -------------------------------------------------------- */
  --paper:        #FAFAF8;  /* Primary surface. Almost-white, slight warm cast. */
  --paper-2:      #F2EFE7;  /* Secondary surface — cards, wells. */
  --paper-3:      #E8E4D7;  /* Tertiary — table stripe, hover wash. */

  /* --------------------------------------------------------
     COLOR · ink (true neutral near-black, no tint)
     -------------------------------------------------------- */
  --ink:          #0A0A0A;  /* Primary text. */
  --ink-2:        #1F1F1F;  /* Secondary text. */
  --ink-3:        #4A4A4A;  /* Tertiary, captions, meta. */
  --ink-4:        #8A8A8A;  /* Placeholder, disabled, faint marginalia. */
  --rule:         #0A0A0A1F; /* 1px hairlines — the workhorse divider. */
  --rule-strong:  #0A0A0A80;
  --rule-grid:    #0A0A0A0F; /* The visible 12-col grid — barely there. */

  /* --------------------------------------------------------
     COLOR · vermilion (the one accent — links, marks,
     off-axis poster blocks, footnote refs, all of it)
     -------------------------------------------------------- */
  --vermilion:        #FF3B2D;
  --vermilion-deep:   #D42E20;  /* Pressed / hover */
  --vermilion-tint:   #FFE0DC;  /* Tinted backgrounds (rare) */

  /* --------------------------------------------------------
     COLOR · inverse (dark sections — full ink, never grey)
     -------------------------------------------------------- */
  --ink-bg:           #0A0A0A;
  --ink-bg-2:         #1F1F1F;
  --paper-on-ink:     #FAFAF8;
  --rule-on-ink:      #FAFAF824;

  /* --------------------------------------------------------
     COLOR · semantic aliases
     -------------------------------------------------------- */
  --fg-primary:    var(--ink);
  --fg-secondary:  var(--ink-2);
  --fg-muted:      var(--ink-3);
  --fg-faint:      var(--ink-4);
  --fg-link:       var(--ink);              /* Body links underline only — color stays ink */
  --fg-link-hover: var(--vermilion);
  --fg-accent:     var(--vermilion);        /* Single hit per surface */
  --fg-danger:     var(--vermilion);
  --fg-success:    var(--ink);              /* No green. Discipline. */

  --bg-page:       var(--paper);
  --bg-surface:    var(--paper-2);
  --bg-sunk:       var(--paper-3);
  --bg-emphasis:   var(--ink);              /* Hero claim blocks = ink */
  --bg-block:      var(--vermilion);        /* The off-axis poster block */

  --border:        var(--rule);
  --border-strong: var(--rule-strong);
  --border-grid:   var(--rule-grid);

  /* --------------------------------------------------------
     TYPE · families
     Inter for everything that isn't a label.
     JetBrains Mono for every label, eyebrow, mark, footnote.
     No serif anywhere.
     -------------------------------------------------------- */
  --font-sans:     "Inter", -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", "Geist Mono", "IBM Plex Mono", "Menlo", monospace;
  --font-display:  var(--font-sans);

  /* --------------------------------------------------------
     TYPE · scale
     Display goes BIG (140–200px). Brutalist commits.
     -------------------------------------------------------- */
  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-21: 21px;
  --fs-25: 25px;
  --fs-32: 32px;
  --fs-44: 44px;
  --fs-60: 60px;
  --fs-84: 84px;
  --fs-120: 120px;
  --fs-180: 180px;
  --fs-240: 240px;

  /* --------------------------------------------------------
     SPACING (4px grid)
     -------------------------------------------------------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;
  --sp-11: 192px;

  /* --------------------------------------------------------
     RADII — zero. Brutalist commits. Pills only for tags.
     -------------------------------------------------------- */
  --r-0: 0px;
  --r-1: 0px;     /* alias — DO NOT round corners */
  --r-2: 0px;
  --r-3: 0px;
  --r-pill: 999px;

  /* --------------------------------------------------------
     ELEVATION — UI sits FLAT. Shadows are an exception.
     -------------------------------------------------------- */
  --shadow-0: none;
  --shadow-1: 0 1px 0 var(--rule);
  --shadow-2: 0 1px 0 var(--rule);          /* Same as 1 — discipline */
  --shadow-3: 0 24px 64px -24px #0A0A0A40;  /* Modal only */

  /* --------------------------------------------------------
     MOTION — restrained
     -------------------------------------------------------- */
  --ease-standard: cubic-bezier(.2, .6, .2, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --t-quick: 100ms;
  --t-base:  160ms;
  --t-slow:  300ms;
}

/* ============================================================
   Element defaults — semantic and ready-to-use
   ============================================================ */

html, body {
  background: var(--bg-page);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.5;
  font-feature-settings: "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display — Inter Black, ALL CAPS by default, huge. */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-180);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--fg-primary);
  margin: 0 0 var(--sp-6);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-84);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-5);
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-32);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  text-wrap: pretty;
}

/* H4 — the workhorse section label. Bold sans, sentence case. */
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-15);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg-secondary);
  margin: 0 0 var(--sp-3);
}

/* Body */
p, .p {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.5;
  color: var(--fg-primary);
  margin: 0 0 var(--sp-4);
  text-wrap: pretty;
}

/* Lede — opening paragraph at 18-21px, weight 400, ink */
.lede, .lede p {
  font-family: var(--font-sans);
  font-size: var(--fs-21);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
  font-weight: 400;
}
.lede u, p u {
  text-decoration: underline;
  text-decoration-color: var(--vermilion);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Meta — quiet caption text */
small, .meta {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Eyebrow — the brand's distinctive micro-label.
   Mono, ALL CAPS, vermilion bar prefix. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--vermilion);
}

/* Section mark — "00 — POSITIONING" pattern */
.section-mark {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-secondary);
  text-transform: uppercase;
}
.section-mark .num { color: var(--vermilion); }

/* Footnote ref — superscript mono in vermilion */
.fn, sup.fn {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.06em;
  vertical-align: super;
  color: var(--vermilion);
  margin-left: 4px;
  line-height: 0;
}

/* Marginalia — rotated, used in margins */
.marginalia {
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermilion);
}

/* Multilingual vertical label — recurring brand motif */
.multilingual {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Numerals — big confident tabular figures */
.numeral {
  font-family: var(--font-mono);
  font-feature-settings: "tnum", "lnum";
  color: var(--ink);
}

/* Code */
code, .code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper-3);
  padding: 1px 6px;
  color: var(--ink);
}

pre {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  padding: var(--sp-4) var(--sp-5);
  line-height: 1.55;
  background: var(--ink-bg);
  color: var(--paper-on-ink);
  border: 1px solid var(--ink-bg-2);
  overflow: auto;
}

/* Links — underline only, color stays ink. Vermilion on hover. */
a {
  color: var(--fg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--vermilion);
  transition: color var(--t-quick) var(--ease-standard),
              text-decoration-thickness var(--t-quick) var(--ease-standard);
}
a:hover {
  color: var(--vermilion);
  text-decoration-thickness: 2px;
}

/* Rules — the workhorse separator */
hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: var(--sp-6) 0;
}

/* Pull-quote — bold sans, vermilion bar on the left */
blockquote {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-25);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-left: 3px solid var(--vermilion);
  padding: 0 var(--sp-5);
  margin: var(--sp-6) 0;
}

/* Spark — single inline vermilion highlight. Sparingly. */
.spark {
  background: var(--vermilion);
  color: var(--paper);
  padding: 0 4px;
}

/* The visible 12-col grid — render with this background-image
   on a positioned ancestor. Use sparingly, as a brand motif. */
.grid-12 {
  background-image: linear-gradient(to right, var(--rule-grid) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

/* Focus — bold, accessible */
:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 2px;
}

/* Selection — vermilion wash */
::selection {
  background: var(--vermilion);
  color: var(--paper);
}
/* ============================================================
   AV / Advisory — marketing site styles
   ============================================================
   Layout-only. All color/type/spacing comes from
   ../../colors_and_type.css.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
.site { position: relative; }

/* ============================================================
   Multilingual rail — fixed vertical brand motif
   ============================================================ */
.multi-rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: 32px;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; pointer-events: none;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.multi-rail .label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--ink);
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap;
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 32px; height: 64px;
  padding: 0 40px 0 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.topbar-mark { display: inline-flex; align-items: center; height: 36px; }
.topbar-mark img { height: 36px; display: block; }
.topbar-nav { display: flex; gap: 24px; align-items: center; }
.topbar-link {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.topbar-link:hover { color: var(--vermilion); }
.topbar-link.is-active {
  border-bottom-color: var(--vermilion); color: var(--ink);
}
.btn-ink {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; padding: 12px 22px;
  background: var(--ink); color: var(--paper);
  border: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost { white-space: nowrap; }
.btn-vermilion, .btn-ghost-light { white-space: nowrap; }
.btn-ink:hover { background: var(--vermilion); }
.btn-ink .arrow { font-family: var(--font-mono); font-size: 14px; }

.btn-ghost {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink); border: 0; cursor: pointer;
  padding: 12px 0; text-decoration: underline;
  text-decoration-color: var(--vermilion); text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.btn-ghost:hover { color: var(--vermilion); }

/* Hero scale — buttons need to hold their own under a 200px display title */
.hero-cta .btn-ink {
  font-size: 17px; padding: 20px 32px; gap: 14px; letter-spacing: 0;
}
.hero-cta .btn-ink .arrow { font-size: 19px; }
.hero-cta .btn-ghost {
  font-size: 18px; font-weight: 600; padding: 18px 0;
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}

/* ============================================================
   Generic page section
   ============================================================ */
section { padding: 0 64px; margin-left: 32px; }

.section-row {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 0 16px; border-bottom: 1px solid var(--rule);
}
.section-row .section-mark {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}
.section-row .section-mark .num { color: var(--vermilion); }
.section-row .section-rule { flex: 1; height: 1px; background: var(--rule); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; padding: 48px 64px 64px;
  margin-left: 32px;
  overflow: hidden;
}
.hero .grid-12 {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--rule-grid) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.hero-eyebrow {
  position: relative; z-index: 2; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-eyebrow .right {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.hero-eyebrow .right .num { color: var(--vermilion); }
.hero-title {
  position: relative; z-index: 2;
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(80px, 12.5vw, 200px); line-height: 0.86;
  letter-spacing: -0.05em; text-transform: uppercase;
  margin: 0 0 32px; color: var(--ink);
  text-wrap: balance;
}
.hero-title .acc { color: var(--vermilion); }
.hero-title sup {
  font-family: var(--font-mono); font-size: 0.13em; font-weight: 500;
  vertical-align: super; color: var(--vermilion); letter-spacing: .06em;
  margin-left: 6px; line-height: 0;
}
.hero-block {
  position: absolute; right: 64px; top: 130px;
  width: 220px; height: 220px; background: var(--vermilion);
  transform: rotate(-3deg); z-index: 1;
}
.hero-lede {
  position: relative; z-index: 2;
  font-size: 19px; line-height: 1.4; letter-spacing: -0.005em;
  max-width: 60ch; margin: 0 0 32px; color: var(--ink);
}
.hero-lede u {
  text-decoration-color: var(--vermilion);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.hero-cta { position: relative; z-index: 2; display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.hero-themes {
  position: relative; z-index: 2;
  list-style: none; margin: 0 0 48px; padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.hero-themes::before {
  content: "Themes I work on /";
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 6px;
  align-self: center;
}
.hero-themes li {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-themes li::before {
  content: "+";
  color: var(--vermilion); font-weight: 700;
}
.hero-facts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 0; padding: 16px 0 0;
  border-top: 1px solid var(--ink);
}
.hero-facts > div { padding: 14px 18px 0 0; }
.hero-facts dt {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 4px;
}
.hero-facts dd {
  margin: 0; font-family: var(--font-mono); font-weight: 600;
  font-size: 22px; color: var(--ink); letter-spacing: -0.01em;
}

/* ============================================================
   Positioning
   ============================================================ */
.positioning { padding-bottom: 64px; }
.positioning-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: start; padding-top: 32px;
}
.positioning-claim h2 {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(56px, 7.6vw, 116px); line-height: 0.92;
  letter-spacing: -0.035em; text-transform: uppercase;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.positioning-claim h2 .acc { color: var(--vermilion); }
.positioning-skills {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 22px;
}
.positioning-skills h4 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.positioning-skills h4::before {
  content: ""; width: 22px; height: 2px; background: var(--vermilion);
}
.positioning-skills ul {
  list-style: none; margin: 0; padding: 0;
}
.positioning-skills li {
  display: block;
  padding: 14px 0 14px 22px; position: relative;
  border-bottom: 1px solid var(--rule);
}
.positioning-skills li:last-child { border-bottom: 0; }
.positioning-skills li::before {
  content: "+"; position: absolute; left: 0; top: 14px;
  font-family: var(--font-mono); color: var(--vermilion); font-weight: 600;
  font-size: 14px;
}
.positioning-skills .skill-head {
  display: block;
  font-family: var(--font-sans); font-weight: 700;
  font-size: 15px; line-height: 1.35; letter-spacing: -0.005em;
  color: var(--ink);
}
.positioning-skills .skill-sub {
  display: block;
  font-family: var(--font-sans); font-weight: 400;
  font-size: 13px; line-height: 1.45; color: var(--ink-3);
  margin-top: 4px; text-wrap: pretty;
}
.positioning-skills .skill-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  vertical-align: 2px;
  white-space: nowrap;
}
.positioning-skills li.skill-optional .skill-head,
.positioning-skills li.skill-optional .skill-sub {
  color: var(--ink-3);
}

/* ============================================================
   Offers
   ============================================================ */
.offers { padding-bottom: 64px; }
.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--ink); margin-top: 32px;
}
.offer-card {
  padding: 24px; background: var(--paper);
  border-right: 1px solid var(--ink); position: relative; overflow: hidden;
}
.offer-card:last-child { border-right: 0; }
.offer-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.offer-no {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  letter-spacing: .12em; color: var(--vermilion);
}
.offer-card h3 {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 24px; line-height: 1.05; text-transform: uppercase;
  letter-spacing: -0.025em; margin: 0; color: var(--ink);
}
.offer-line {
  font-size: 16px; line-height: 1.4; color: var(--ink);
  margin: 0 0 12px; font-weight: 500;
}
.offer-body {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 20px;
}
.offer-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0 0 20px; padding: 14px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.offer-foot dt {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.offer-foot dd {
  margin: 4px 0 0; font-family: var(--font-mono); font-weight: 600;
  font-size: 16px; color: var(--ink);
}
.offer-card .v-block {
  position: absolute; right: -20px; bottom: -20px;
  width: 80px; height: 80px; background: var(--vermilion);
  transform: rotate(-6deg); z-index: 0;
}
.offer-card > * { position: relative; z-index: 1; }

/* ============================================================
   Writing
   ============================================================ */
.writing { padding-bottom: 64px; }
.post-list {
  list-style: none; margin: 32px 0 20px; padding: 0;
  border-top: 1px solid var(--ink);
}
.post-row {
  display: grid; grid-template-columns: 110px 1fr auto auto;
  align-items: baseline; gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: background var(--t-quick);
}
.post-row:hover { background: var(--paper-2); }
.post-row:hover .post-arrow { color: var(--vermilion); }
.post-row .post-date {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; color: var(--ink-3);
}
.post-row .post-title h3 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
  text-decoration: none;
}
.post-row .post-title { text-decoration: none; }
.post-row .post-meta {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.post-row .post-arrow {
  font-family: var(--font-mono); font-size: 18px; color: var(--ink-3);
  transition: color var(--t-quick);
}

/* ============================================================
   Selected work
   ============================================================ */
.work { padding-bottom: 64px; }
.work-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  border-top: 1px solid var(--ink);
}
.work-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 32px; padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.work-row .work-year {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.work-row .work-line {
  font-family: var(--font-sans); font-size: 18px; font-weight: 600;
  letter-spacing: -0.015em; color: var(--ink);
  display: flex; align-items: baseline; gap: 14px;
}
.work-row .work-kind {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.work-row .work-desc {
  font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 4px 0 0;
}
.pill {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pill-live { background: var(--ink); color: var(--paper); }
.pill-shipped { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.pill-closed { background: transparent; color: var(--ink-3); border: 1px solid var(--rule-strong); }

/* ============================================================
   Erala — inverse claim block
   ============================================================ */
.erala { padding-bottom: 64px; }
.erala-card {
  background: var(--ink); color: var(--paper);
  margin-top: 32px; padding: 56px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  position: relative; overflow: hidden;
}
.erala-card .v-block {
  position: absolute; top: -40px; right: 80px;
  width: 200px; height: 200px; background: var(--vermilion);
  transform: rotate(4deg);
}
.erala-text { position: relative; z-index: 2; }
.eyebrow-on-dark {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.eyebrow-on-dark::before { content: ""; width: 22px; height: 2px; background: var(--vermilion); }
.erala-card h2 {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(40px, 5.5vw, 68px); line-height: 0.92;
  letter-spacing: -0.035em; text-transform: uppercase;
  margin: 0 0 24px; color: var(--paper); text-wrap: balance;
}
.erala-card h2 .acc { color: var(--vermilion); }
.erala-card p {
  font-size: 16px; line-height: 1.5; color: #DCDAD3;
  max-width: 50ch; margin: 0 0 24px;
}
.erala-cta { display: flex; gap: 18px; align-items: center; }
.btn-vermilion {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; padding: 12px 20px;
  background: var(--vermilion); color: var(--paper);
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost-light {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  background: transparent; color: var(--paper); border: 0; cursor: pointer;
  padding: 10px 0; text-decoration: underline;
  text-decoration-color: var(--vermilion); text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.erala-stats {
  display: flex; flex-direction: column; gap: 0; margin: 0;
  position: relative; z-index: 2;
  border-left: 1px solid var(--rule-on-ink); padding-left: 32px;
}
.erala-stats > div { padding: 12px 0; border-bottom: 1px solid var(--rule-on-ink); }
.erala-stats > div:last-child { border-bottom: 0; }
.erala-stats dt {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: #8E8C85;
  margin: 0 0 4px;
}
.erala-stats dd {
  margin: 0; font-family: var(--font-mono); font-weight: 600;
  font-size: 32px; color: var(--paper); letter-spacing: -0.01em;
}
.erala-stats dd small { font-size: 12px; color: #8E8C85; font-weight: 500; }

/* ============================================================
   Manifesto
   ============================================================ */
.manifesto { padding-bottom: 80px; }
.manifesto-quote {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.25;
  letter-spacing: -0.018em; color: var(--ink);
  border-left: 3px solid var(--vermilion); padding: 8px 28px;
  margin: 32px 0 0; max-width: 56ch;
}
.manifesto-quote cite {
  display: block; margin-top: 16px;
  font-family: var(--font-mono); font-style: normal;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink); color: var(--paper);
  padding: 56px 64px 32px; margin-left: 32px;
}
.footer-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 48px;
  align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid var(--rule-on-ink);
}
.footer-mark { display: inline-flex; height: 32px; }
.footer-mark img { height: 32px; display: block; }
.footer-links { display: flex; flex-direction: row; gap: 22px; align-items: center; }
.footer-links a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
  text-decoration: none; padding: 2px 0;
}
.footer-links a:hover { color: var(--vermilion); }
.footer-fine {
  margin-top: 20px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #75736D;
}

/* ============================================================
   Sticky floating CTA — bottom-right, always reachable
   ============================================================ */
.sticky-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: .01em; padding: 16px 22px;
  background: var(--vermilion); color: var(--paper);
  border: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px -8px #0A0A0A66, 0 2px 0 var(--ink);
  transition: transform var(--t-quick) var(--ease-standard),
              background var(--t-quick) var(--ease-standard);
}
.sticky-cta:hover { background: var(--ink); transform: translateY(-2px); }
.sticky-cta .arrow { font-family: var(--font-mono); font-size: 15px; }

/* ============================================================
   Contact modal
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: #0A0A0ACC;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 32px;
  overflow-y: auto;
}
.modal {
  background: var(--paper); width: 100%; max-width: 640px;
  padding: 40px 44px; position: relative;
  border: 1px solid var(--ink);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 24px; font-weight: 500;
  width: 32px; height: 32px; background: transparent; color: var(--ink);
  border: 0; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--vermilion); }
.modal h2 {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 36px; line-height: 1; letter-spacing: -0.03em;
  text-transform: uppercase; margin: 12px 0 16px;
}
.modal-lede {
  font-size: 15px; line-height: 1.45; color: var(--ink-2);
  max-width: 50ch; margin: 0 0 24px;
}
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font: 500 14px/1.4 var(--font-sans);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  padding: 8px 0; color: var(--ink); border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 0; border-bottom-color: var(--vermilion);
}
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form button { align-self: flex-start; margin-top: 8px; }

/* ============================================================
   All Posts — index view
   ============================================================ */
.all-posts {
  padding: 56px 64px 96px;
  margin-left: 32px;
  border-left: 1px solid var(--rule);
}
.all-posts-header { max-width: 880px; margin-bottom: 56px; }
.back-link {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 4px 0 24px;
}
.back-link:hover { color: var(--vermilion); }
.all-posts-header .eyebrow {
  display: block; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.all-posts-title {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.035em; line-height: .95;
  color: var(--ink); margin: 0 0 22px;
}
.all-posts-lede {
  font-family: var(--font-serif, var(--font-sans));
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2); max-width: 640px; margin: 0 0 28px;
  text-wrap: pretty;
}
.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 22px; border-top: 1px solid var(--rule);
}
.tag-chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  cursor: pointer; border-radius: 0;
  transition: background var(--t-quick), color var(--t-quick);
}
.tag-chip:hover { background: var(--paper-2); }
.tag-chip.is-active { background: var(--ink); color: var(--paper); }

.post-card-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.post-card {
  display: flex; flex-direction: column;
  padding: 32px 36px 36px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
  transition: background var(--t-quick);
}
.post-card:nth-child(2n) { border-right: 0; }
.post-card:hover { background: var(--paper-2); }
.post-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 18px;
}
.post-card-dot { color: var(--ink-4, var(--ink-3)); }
.post-card-tag { color: var(--vermilion); }
.post-card-title {
  display: block; text-decoration: none; color: var(--ink);
  margin-bottom: 14px;
}
.post-card-title h2 {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 26px; line-height: 1.18; letter-spacing: -0.02em;
  margin: 0; text-wrap: pretty;
}
.post-card:hover .post-card-title h2 { color: var(--vermilion); }
.post-card-excerpt {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 22px; text-wrap: pretty;
}
.post-card-read-more {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
}
.post-card-read-more:hover { color: var(--vermilion); }

/* ============================================================
   Blog post — detail view
   ============================================================ */
.post-detail {
  padding: 56px 64px 96px;
  margin-left: 32px;
  border-left: 1px solid var(--rule);
}
.post-detail-header {
  max-width: 760px; margin-bottom: 48px;
  padding-bottom: 32px; border-bottom: 1px solid var(--ink);
}
.post-detail-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 22px;
}
.post-detail-tag { color: var(--vermilion); }
.post-detail-title {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -0.03em; line-height: 1.02;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.post-body { max-width: 680px; }
.post-body-lede {
  font-family: var(--font-serif, var(--font-sans));
  font-size: 22px; line-height: 1.5;
  color: var(--ink); margin: 0 0 32px;
  font-weight: 500; letter-spacing: -0.005em;
  text-wrap: pretty;
}
.post-body-h2 {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.post-body-p {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  color: var(--ink); margin: 0 0 22px; text-wrap: pretty;
}
.post-body-quote {
  margin: 36px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--vermilion);
  font-family: var(--font-serif, var(--font-sans));
  font-style: italic; font-size: 22px; line-height: 1.45;
  color: var(--ink); text-wrap: pretty;
}

.post-detail-footer {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-bottom: 40px;
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink);
  padding: 24px 28px;
  border: 1px solid var(--ink);
  transition: background var(--t-quick), color var(--t-quick);
}
.post-nav-item:hover { background: var(--ink); color: var(--paper); }
.post-nav-prev  { border-right: 0; }
.post-nav-next  { text-align: right; align-items: flex-end; }
.post-nav-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.post-nav-item:hover .post-nav-label { color: var(--paper); }
.post-nav-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 17px; line-height: 1.25; letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ============================================================
   Small viewports — All posts & post detail
   ============================================================ */
@media (max-width: 960px) {
  .all-posts, .post-detail {
    padding: 32px 24px 64px;
    margin-left: 0;
    border-left: 0;
  }
  .post-card-list { grid-template-columns: 1fr; }
  .post-card { padding: 24px; border-right: 0; }
  .post-card-title h2 { font-size: 22px; }
  .post-body-lede { font-size: 19px; }
  .post-body-p { font-size: 16px; }
  .post-body-h2 { font-size: 19px; }
  .post-body-quote { font-size: 19px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-prev { border-right: 1px solid var(--ink); border-bottom: 0; }
  .post-nav-next { text-align: left; align-items: flex-start; }
}
@media (max-width: 960px) {
  .multi-rail { display: none; }
  section, .hero, .footer { margin-left: 0; padding-left: 24px; padding-right: 24px; }
  .topbar {
    padding: 0 20px;
    grid-template-columns: 1fr auto;
    gap: 16px; height: 56px;
  }
  .topbar-mark, .topbar-mark img { height: 26px; }
  .topbar-nav { display: none; }
  .topbar .btn-ink { padding: 10px 14px; font-size: 12px; gap: 6px; }
  .positioning-grid { grid-template-columns: 1fr; gap: 32px; }
  .positioning-skills { padding: 18px; }
  .offers-grid { grid-template-columns: 1fr; }
  .offer-card { border-right: 0; border-bottom: 1px solid var(--ink); }
  .offer-card:last-child { border-bottom: 0; }
  .erala-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .erala-card .v-block { right: -40px; top: -20px; width: 140px; height: 140px; }
  .erala-stats { border-left: 0; border-top: 1px solid var(--rule-on-ink); padding-left: 0; padding-top: 16px; }
  .hero { padding: 32px 24px 48px; }
  .hero-block { width: 140px; height: 140px; right: 24px; top: 90px; }
  .hero-title { font-size: clamp(56px, 14vw, 96px); }
  .hero-lede { font-size: 16px; }
  .hero-cta { flex-wrap: wrap; gap: 16px; }
  .hero-cta .btn-ink { font-size: 15px; padding: 16px 22px; }
  .hero-cta .btn-ghost { font-size: 15px; padding: 14px 0; }
  .hero-themes { gap: 4px 14px; margin-bottom: 32px; }
  .hero-themes::before { width: 100%; margin: 0 0 4px; }
  .hero-themes li { font-size: 10px; letter-spacing: .12em; }
  .footer-row { grid-template-columns: 1fr; gap: 24px; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .sticky-cta { right: 16px; bottom: 16px; font-size: 13px; padding: 13px 18px; }

  /* Writing — let the title own the row, drop the trailing arrow */
  .post-row {
    grid-template-columns: 1fr;
    gap: 8px; padding: 18px 0;
  }
  .post-row .post-arrow { display: none; }
  .post-row .post-title h3 { font-size: 18px; }

  /* Selected work — stack year + line + pill so long content can't overflow */
  .work-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "year  pill"
      "body  body";
    gap: 12px 16px; padding: 20px 0; align-items: start;
  }
  .work-row .work-year { grid-area: year; }
  .work-row > div { grid-area: body; }
  .work-row .pill { grid-area: pill; justify-self: end; }
  .work-row .work-line {
    display: block;
    font-size: 16px; line-height: 1.3;
    margin-bottom: 6px;
  }
  .work-row .work-kind {
    display: block; margin-top: 2px; line-height: 1.4;
  }
  .work-row .work-desc { font-size: 13px; margin-top: 4px; }

  /* Manifesto */
  .manifesto-quote { font-size: clamp(20px, 5.5vw, 28px); padding: 8px 18px; }

  /* Modal */
  .modal { padding: 32px 24px; }
  .modal h2 { font-size: 28px; }
  .contact-meta { grid-template-columns: 1fr; }
}

/* Prevent any single long word from blowing out the viewport */
html, body { overflow-x: hidden; }

/* ============================================================
   WordPress integration — neutralize parent-theme paddings on
   block templates so the design's edge-to-edge sections own
   their own padding rules.
   ============================================================ */
body.wp-singular .wp-site-blocks > main { padding: 0; }
body .wp-block-group.is-layout-constrained > * { max-width: none; }

/* Hide TT5's default site title / nav block group on home if any
   leaks through — our own .topbar in header.html owns the chrome. */
.wp-block-template-part .wp-block-site-title,
.wp-block-template-part .wp-block-navigation { font-family: var(--font-mono); }

/* Query loop (Writing section) row, matched to the design's
   .post-row structure but generated by core/query. */
.writing .wp-block-post-template {
  list-style: none; margin: 32px 0 20px; padding: 0;
  border-top: 1px solid var(--ink);
}
.writing .wp-block-post-template > li {
  display: grid; grid-template-columns: 110px 1fr auto;
  align-items: baseline; gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-quick);
}
.writing .wp-block-post-template > li:hover { background: var(--paper-2); }
.writing .wp-block-post-date {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; color: var(--ink-3);
}
.writing .wp-block-post-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
}
.writing .wp-block-post-title a { text-decoration: none; color: var(--ink); }
.writing .wp-block-post-title a:hover { color: var(--vermilion); }

/* Single post and archive — use the design's post-detail styles
   on TT5's default templates. */
body.single-post .wp-site-blocks > main,
body.blog .wp-site-blocks > main,
body.archive .wp-site-blocks > main { padding: 0; }

@media (max-width: 960px) {
  .writing .wp-block-post-template > li {
    grid-template-columns: 1fr; gap: 8px; padding: 18px 0;
  }
}

