/* ============================================================
   LUIS CONSULTS LLC | main.css
   Movement-Aligned Intelligence
   ============================================================ */

:root {
  --bg:        #f4efe4;
  --card:      #faf7f0;
  --paper:     #fffdf8;
  --ink:       #1b2914;
  --green:     #2e3b20;
  --accent:    #5a8a3a;
  --body:      #4c5842;
  --muted:     #6f7c64;
  --line:      rgba(46, 59, 32, 0.12);
  --line-2:    rgba(46, 59, 32, 0.2);

  /* lanes: who does each step */
  --auto:      #b9650a;
  --local:     #4c7a2f;
  --people:    #1b2914;
  --mcp:       #4338ca;
  --claude:    #b5532f;

  --cream:     #f4efe4;
  --cream-2:   rgba(244, 239, 228, 0.72);
  --cream-3:   rgba(244, 239, 228, 0.5);
  --line-d:    rgba(244, 239, 228, 0.12);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 68px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(46, 59, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 59, 32, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ── */
.label, .eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.label::before { content: '// '; opacity: 0.55; }
.label--light { color: #a9d184; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(90, 138, 58, 0.5);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(90, 138, 58, 0); } }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.h2 em { color: var(--accent); }
.h2--light { color: var(--cream); }
.h2--light em { color: #a9d184; }
.lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 680px; margin-bottom: 48px; }
.lede--light { color: var(--cream-2); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; line-height: 1.2;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, 0); }
.btn[href^="#"]:hover .btn__arrow { transform: translate(0, 3px); }
.btn--dark { background: var(--ink); color: var(--cream); box-shadow: 0 6px 18px -8px rgba(27, 41, 20, 0.6); }
.btn--dark:hover { background: var(--green); box-shadow: 0 12px 24px -10px rgba(27, 41, 20, 0.6); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(250, 247, 240, 0.6); }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }
.btn--accent { background: #6ea046; color: #10190b; font-weight: 600; }
.btn--accent:hover { background: #84b859; }

/* ── Lane pills ── */
.lane {
  --lc: var(--people);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lc);
}
.lane i { width: 8px; height: 8px; border-radius: 2px; background: var(--lc); flex: none; }
.lane--auto   { --lc: var(--auto); }
.lane--local  { --lc: var(--local); }
.lane--people { --lc: var(--people); }
.lane--mcp    { --lc: var(--mcp); }
.lane--claude { --lc: var(--claude); }
.lane--people i { border-radius: 50%; }

/* ── Motion: scroll reveal ── */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(244, 239, 228, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 44px; width: auto; transition: transform 0.3s var(--ease); }
.nav__logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { position: relative; font-size: 14px; color: var(--body); padding: 6px 0; transition: color 0.2s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 14px; font-weight: 500; padding: 9px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream); transition: background-color 0.2s, transform 0.25s var(--ease);
}
.nav__cta:hover { background: var(--green); transform: translateY(-1px); }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-right: -8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav__drawer {
  background: rgba(244, 239, 228, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  display: flex; flex-direction: column;
}
.nav__drawer[hidden] { display: none; }
.nav__drawer a { padding: 13px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav__drawer .nav__drawer-cta {
  margin-top: 18px; border: 0; background: var(--ink); color: var(--cream);
  text-align: center; border-radius: 999px; font-size: 15px; font-weight: 500;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(36px, 7vw, 84px)) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background:
    radial-gradient(closest-side, rgba(110, 160, 70, 0.20), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(217, 119, 6, 0.12), transparent 60%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 5%, 0) scale(1.08); }
}
.hero__inner {
  position: relative;
  max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1.04; letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 26px;
}
.hero__title span { display: block; }
.hero__title em { color: var(--accent); }
.hero__lede { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--ink); max-width: 560px; margin-bottom: 16px; }
.hero__sub { font-size: 15.5px; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__cred {
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted);
  max-width: 460px; padding-left: 14px; border-left: 2px solid var(--line-2);
}

.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* Award letter */
.hero__art { position: relative; }
.letter {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(27, 41, 20, 0.35), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  transform: rotate(0.8deg);
  overflow: hidden;
}
.letter__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: rgba(46, 59, 32, 0.03);
}
.letter__status { display: inline-flex; align-items: center; gap: 7px; color: var(--local); }
.letter__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--local); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.letter__page { padding: 22px 22px 6px; font-size: 14.5px; line-height: 1.75; color: #3b4633; }
.letter__page p { margin-bottom: 12px; }
.letter__from { font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.2; }
.hl {
  color: inherit; border-radius: 3px; padding: 1px 2px; margin: 0 -2px;
  background: linear-gradient(#fbe3a1, #fbe3a1) no-repeat 0 50% / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.letter .hl { animation: sweep 0.7s var(--ease) backwards; animation-delay: calc(1.1s + var(--i) * 0.55s); }
@keyframes sweep { from { background-size: 0% 100%; } }
.hl--1, .chip--1 { --i: 0; } .hl--2, .chip--2 { --i: 1; } .hl--3, .chip--3 { --i: 2; }
.hl--4, .chip--4 { --i: 3; } .hl--5, .chip--5 { --i: 4; }
.letter__fields {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 22px 22px; border-top: 1px dashed var(--line-2); margin-top: 6px;
}
.chip {
  display: inline-flex; flex-direction: column; gap: 1px;
  padding: 7px 11px; border-radius: 8px;
  background: #eef4e6; border: 1px solid rgba(76, 122, 47, 0.25);
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25;
  animation: pop 0.5s var(--ease) backwards; animation-delay: calc(1.45s + var(--i) * 0.55s);
}
.chip span { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--local); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.94); } }
.hero__art-note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 14px; text-align: right; }

/* ============================================================
   THE WORKFLOW
   ============================================================ */
.flow {
  --auto: #f2b04a; --local: #a9d184; --people: #f4efe4; --mcp: #b3bcff; --claude: #f0a07f;
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(244, 239, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 228, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--cream-2);
  padding: clamp(72px, 10vw, 128px) 0 clamp(72px, 9vw, 120px);
}
.flow__intro { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.flow__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--cream); margin-bottom: 22px; text-wrap: balance;
}
.flow__title em { color: #a9d184; }
.flow__lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 700px; margin: 0 auto 30px; }
.lanes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.flow__note { font-family: var(--mono); font-size: 11px; color: var(--cream-3); margin-top: 18px; }
.lanes .lane { padding: 7px 12px; border: 1px solid var(--line-d); border-radius: 999px; background: rgba(244, 239, 228, 0.03); }

.flow__body {
  max-width: 1160px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: clamp(40px, 6vw, 88px); align-items: start;
}

/* Steps */
.steps { position: relative; grid-column: 1; grid-row: 1; padding-left: 34px; }
.steps::before, .steps::after {
  content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-d); }
.steps::after { background: linear-gradient(#a9d184, #f2b04a); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.step {
  --lc: var(--people);
  position: relative;
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 0;
  opacity: 0.32; transition: opacity 0.45s var(--ease);
}
.step.is-active { opacity: 1; }
.step[data-lane="auto"]   { --lc: var(--auto); }
.step[data-lane="local"]  { --lc: var(--local); }
.step[data-lane="mcp"]    { --lc: var(--mcp); }
.step[data-lane="claude"] { --lc: var(--claude); }
.step::before {
  content: ''; position: absolute; left: -34px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--cream-3);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  z-index: 1;
}
.step.is-active::before { border-color: var(--lc); background: var(--lc); box-shadow: 0 0 0 6px rgba(244, 239, 228, 0.06); transform: scale(1.15); }
.step__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step__num { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--cream-3); }
.step h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
  color: var(--cream); margin-bottom: 14px; text-wrap: balance;
}
.step p { max-width: 520px; font-size: 16.5px; }
.step__why {
  margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--lc);
  font-size: 14.5px !important; color: var(--cream-3);
}

/* Stage */
.stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(var(--nav-h) + 24px);
  height: min(600px, calc(100vh - var(--nav-h) - 48px));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(244, 239, 228, 0.055), rgba(244, 239, 228, 0.025));
  border: 1px solid var(--line-d); border-radius: 18px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.stage__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--cream-3);
}
.stage__count b { color: var(--cream); font-weight: 600; }
.stage__lane {
  --lc: var(--auto);
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; font-weight: 500;
  color: var(--lc); border: 1px solid currentColor; transition: color 0.3s;
}
.stage[data-lane="local"]  .stage__lane { --lc: var(--local); }
.stage[data-lane="people"] .stage__lane { --lc: var(--people); }
.stage[data-lane="mcp"]    .stage__lane { --lc: var(--mcp); }
.stage[data-lane="claude"] .stage__lane { --lc: var(--claude); }

.stage__scenes { position: relative; flex: 1; min-height: 0; }
.scene {
  position: absolute; inset: 0; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.985);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.4s;
  font-size: 13.5px; color: var(--cream-2);
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.08s, 0.08s, 0s; }

/* staged entrances inside the active scene */
.scene.is-active .a { animation: pop 0.5s var(--ease) backwards; }
.scene.is-active .a1 { animation-delay: 0.25s; }
.scene.is-active .a2 { animation-delay: 0.50s; }
.scene.is-active .a3 { animation-delay: 0.75s; }
.scene.is-active .a4 { animation-delay: 1.00s; }
.scene.is-active .a5 { animation-delay: 1.25s; }
.scene.is-active .a6 { animation-delay: 1.55s; }
.scene.is-active mark.hl.a { animation-name: sweep; animation-duration: 0.6s; }

/* shared scene bits */
.tick {
  display: inline-grid; place-items: center; flex: none;
  width: 18px; height: 18px; border-radius: 50%; background: #a9d184;
}
.tick::after {
  content: ''; width: 8px; height: 4px; margin-top: -2px;
  border-left: 2px solid #142010; border-bottom: 2px solid #142010; transform: rotate(-45deg);
}
.scene__badge {
  --lc: var(--local);
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; color: var(--lc);
  border: 1px solid currentColor; background: rgba(0, 0, 0, 0.18);
}
.scene__badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.8s ease-in-out infinite; }
.scene__badge--auto { --lc: var(--auto); }
.scene__badge--people { --lc: var(--people); }
.box { background: rgba(244, 239, 228, 0.06); border: 1px solid var(--line-d); border-radius: 12px; }

/* scene 1: inbox */
.inbox { background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-radius: 12px; overflow: hidden; }
.inbox__row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-d); line-height: 1.35; }
.inbox__row:last-child { border-bottom: 0; }
.inbox__row time { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--cream-3); }
.inbox__row--dim { color: var(--cream-3); font-size: 12.5px; }
.inbox__row--new { background: rgba(242, 176, 74, 0.1); color: var(--cream); }
.inbox__row--new b { font-weight: 600; }
.inbox__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--auto); flex: none; }
.arrow-down { align-self: center; width: 2px; height: 26px; background: var(--auto); position: relative; }
.arrow-down::after {
  content: ''; position: absolute; left: -4px; bottom: -1px; width: 8px; height: 8px;
  border-right: 2px solid var(--auto); border-bottom: 2px solid var(--auto); transform: rotate(45deg);
}
.path {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-radius: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--cream);
}
.path b { color: var(--auto); font-weight: 500; }
.path .tick { margin-left: auto; }
.path__icon { width: 18px; height: 14px; border-radius: 3px; background: var(--auto); position: relative; flex: none; }
.path__icon::before { content: ''; position: absolute; left: 0; top: -3px; width: 9px; height: 4px; border-radius: 2px 2px 0 0; background: var(--auto); }

/* scene 2: read */
.doc { background: #fffdf8; color: #3b4633; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 1.7; }
.doc__line { margin: 0; }
.fields { display: grid; gap: 0; background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-radius: 12px; padding: 4px 14px; }
.fields > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-d); }
.fields > div:last-child { border-bottom: 0; }
.fields dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--local); padding-top: 2px; }
.fields dd { color: var(--cream); font-weight: 500; text-align: right; }

/* scene 3: confirm */
.review { background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-radius: 12px; padding: 4px 14px; }
.review__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.review__row:last-child { border-bottom: 0; }
.review__row span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); width: 104px; flex: none; }
.review__row b { color: var(--cream); font-weight: 500; }
.review__row .tick, .review__row .flag { margin-left: auto; }
.review__row--flag b { color: var(--auto); }
.flag {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--auto); color: #1b1404; font-size: 12px; font-weight: 700; font-style: normal; font-family: var(--mono);
}
.signoff { display: flex; gap: 10px; flex-wrap: wrap; }
.signoff__who {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px;
  border: 1px solid rgba(244, 239, 228, 0.35); color: var(--cream); font-size: 13px; font-weight: 500;
}

/* scene 4: records */
.systems { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.system { background: rgba(244, 239, 228, 0.05); border: 1px solid rgba(179, 188, 255, 0.3); border-radius: 12px; padding: 14px; }
.system__name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mcp); margin-bottom: 10px; }
.system__item { display: flex; align-items: center; gap: 8px; color: var(--cream); padding: 4px 0; line-height: 1.35; }
.plus { position: relative; width: 14px; height: 14px; border-radius: 4px; background: rgba(179, 188, 255, 0.2); flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--mcp); border-radius: 1px; }
.plus::before { width: 8px; height: 2px; margin: -1px 0 0 -4px; }
.plus::after { width: 2px; height: 8px; margin: -4px 0 0 -1px; }
.approve { display: grid; gap: 8px; }
.approve__state {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  font-family: var(--mono); font-size: 11.5px;
}
.approve__state--wait { border: 1px dashed rgba(244, 239, 228, 0.3); color: var(--cream-3); opacity: 0.7; text-decoration: line-through; }
.approve__state--ok { background: rgba(169, 209, 132, 0.14); border: 1px solid rgba(169, 209, 132, 0.4); color: var(--cream); }
.scene.is-active .approve__state--wait { animation: waiting 0.4s linear 1.5s backwards; }
@keyframes waiting { from { opacity: 1; text-decoration-color: transparent; } }

/* scene 5: dates */
.dates { display: grid; gap: 8px; }
.dates li {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-left: 3px solid var(--auto); border-radius: 10px;
  line-height: 1.3;
}
.dates time { font-family: var(--mono); font-size: 10.5px; color: var(--auto); }
.dates span { color: var(--cream); }
.dates em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--cream-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* scene 6: payment */
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match__card { background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-radius: 12px; padding: 12px 14px; }
.match__card span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 4px; }
.match__card b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--cream); line-height: 1.1; }
.match__link { display: grid; place-items: center; }
.balance { background: rgba(244, 239, 228, 0.05); border: 1px solid var(--line-d); border-radius: 12px; padding: 14px; }
.balance__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.balance__top span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); }
.balance__top b { color: var(--cream); font-weight: 600; }
.balance__bar { height: 8px; border-radius: 99px; background: rgba(244, 239, 228, 0.1); overflow: hidden; }
.balance__bar i { display: block; height: 100%; width: 66.67%; border-radius: 99px; background: var(--auto); }
.scene.is-active .balance__bar i { animation: drain 0.9s var(--ease) 1.1s backwards; }
@keyframes drain { from { width: 100%; } }

/* scene 7: draft */
.draft { background: #fffdf8; border-radius: 10px; padding: 16px; }
.draft__title { font-family: var(--serif); font-size: 19px; color: #1b2914; line-height: 1.2; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.draft__title span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #b5532f; border: 1px solid currentColor; border-radius: 99px; padding: 2px 8px; }
.draft__lines { display: grid; gap: 8px; }
.draft__lines i { display: block; height: 7px; width: var(--w); border-radius: 99px; background: rgba(27, 41, 20, 0.16); transform-origin: left; }
.scene.is-active .draft__lines i.a { animation-name: write; animation-duration: 0.6s; }
@keyframes write { from { transform: scaleX(0); opacity: 0; } }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sources li {
  font-family: var(--mono); font-size: 11px; color: var(--claude);
  border: 1px solid rgba(240, 160, 127, 0.4); border-radius: 99px; padding: 5px 11px;
}
.sources li::before { content: '← '; opacity: 0.7; }

/* Ledger */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); background: rgba(0, 0, 0, 0.18); }
.ledger__cell { padding: 12px 8px 13px; text-align: center; border-right: 1px solid var(--line-d); }
.ledger__cell:last-child { border-right: 0; }
.ledger__cell b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--cream); }
.ledger__cell span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); }
.ledger__cell--claude b { color: var(--claude); }
.ledger__cell b.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: translateY(-5px) scale(1.18); } }

/* Outro */
.flow__outro { max-width: 860px; margin: clamp(32px, 5vw, 64px) auto 0; padding: 0 var(--gutter); text-align: center; }
.tally {
  font-family: var(--serif); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.15; color: var(--cream); margin-bottom: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.4em;
}
.tally span { white-space: nowrap; }
.tally b { font-weight: 400; font-style: italic; color: #a9d184; }
.tally__claude b { color: var(--claude); }
.flow__outro-text { font-size: clamp(16px, 1.5vw, 18px); max-width: 680px; margin: 0 auto; }

/* ============================================================
   APPROACH
   ============================================================ */
.approach { padding: clamp(72px, 10vw, 128px) 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  --lc: var(--ink);
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px 26px; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s, opacity 0.7s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--lc);
  transform: scaleX(0.18); transform-origin: left; transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(27, 41, 20, 0.45); border-color: var(--line-2); }
.card:hover::before { transform: scaleX(1); }
.card--auto { --lc: var(--auto); } .card--local { --lc: var(--local); } .card--claude { --lc: var(--claude); }
.card__tag { margin-bottom: 18px; }
.card h3, .who__card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.card p { font-size: 15px; }
.card__note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13.5px !important; color: var(--muted); }

.built {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 80px); align-items: center;
}
.defs { display: grid; gap: 22px; margin: 28px 0 24px; }
.defs dt { font-family: var(--serif); font-size: 25px; line-height: 1.2; color: var(--ink); margin-bottom: 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.defs dt span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mcp); }
.defs dd { font-size: 15.5px; max-width: 500px; }
.defs > div { padding-left: 18px; border-left: 2px solid var(--line-2); transition: border-color 0.3s; }
.defs > div:hover { border-color: var(--accent); }
.built__note { font-size: 13.5px; color: var(--muted); max-width: 500px; }

.skill {
  background: #17230f; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(27, 41, 20, 0.7);
  border: 1px solid rgba(27, 41, 20, 0.6);
}
.skill__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); }
.skill__dots { display: inline-flex; gap: 6px; }
.skill__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 239, 228, 0.2); }
.skill__name { font-family: var(--mono); font-size: 11.5px; color: var(--cream-3); }
.skill__body {
  padding: 20px 20px 8px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: rgba(244, 239, 228, 0.86);
  white-space: pre; tab-size: 2;
}
.c-dim { color: rgba(244, 239, 228, 0.35); }
.c-key { color: #a9d184; }
.c-head { color: #f2b04a; font-weight: 600; }
.c-em { color: #f0a07f; }
.skill__cap { padding: 12px 20px 18px; font-size: 12.5px; color: var(--cream-3); border-top: 1px dashed var(--line-d); margin-top: 12px; }

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles {
  background-color: var(--green);
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(169, 209, 132, 0.12), transparent 60%);
  color: var(--cream-2);
  padding: clamp(72px, 10vw, 120px) 0;
}
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.pillar { padding-top: 22px; border-top: 1px solid rgba(244, 239, 228, 0.2); }
.pillar__num { display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: rgba(169, 209, 132, 0.6); margin-bottom: 16px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; color: var(--cream); margin-bottom: 10px; line-height: 1.15; }
.pillar p { font-size: 15px; }

/* ============================================================
   EXAMPLE SETUP
   ============================================================ */
.setup { padding: clamp(72px, 10vw, 128px) 0; }
.setup__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.setup__copy p:not(.label) { max-width: 500px; margin-bottom: 18px; }
.setup__copy .setup__note { font-size: 13.5px; color: var(--muted); padding-top: 16px; border-top: 1px dashed var(--line-2); margin-bottom: 0; }
.rig { background: #17230f; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(27, 41, 20, 0.7); color: var(--cream-2); }
.rig__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--line-d); font-family: var(--mono); font-size: 11.5px; color: var(--cream-3); }
.rig__title::before { content: '$ '; color: #a9d184; }
.rig__status { color: #f2b04a; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; border: 1px solid currentColor; border-radius: 99px; padding: 2px 9px; }
.rig__list { padding: 4px 20px 6px; }
.rig__list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-d); }
.rig__list > div:last-child { border-bottom: 0; }
.rig dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); flex: none; }
.rig__list dd { color: var(--cream); font-weight: 500; text-align: right; font-size: 15px; }
.rig__sub {
  padding: 11px 20px; background: rgba(0, 0, 0, 0.22); border-block: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #b3bcff;
}
.rig__sub::before { content: '→ '; opacity: 0.7; }
.rig__systems { padding: 6px 20px 14px; }
.rig__systems > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.rig__systems > div:last-child { border-bottom: 0; }
.rig__systems dt { padding-top: 6px; }
.rig__systems dd { display: flex; flex-wrap: wrap; gap: 6px; }
.rig__systems dd span {
  font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--cream);
  padding: 4px 10px; border-radius: 99px;
  background: rgba(244, 239, 228, 0.07); border: 1px solid var(--line-d);
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.rig__systems dd span:hover { background: rgba(179, 188, 255, 0.16); border-color: rgba(179, 188, 255, 0.45); transform: translateY(-1px); }
.js .rig .row { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .rig.in .row { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--n, 0) * 0.08s); }

/* ============================================================
   WHO
   ============================================================ */
.who { padding: 0 0 clamp(72px, 10vw, 128px); }
.who .h2 { margin-bottom: 40px; }
.who__card { padding: 26px 0 0; border-top: 2px solid var(--ink); }
.who__roles { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 12px; }
.who__card p:not(.who__roles) { font-size: 15px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 0 0 clamp(72px, 10vw, 128px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(27, 41, 20, 0.6); aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.04); }
.about__copy p:not(.label) { max-width: 560px; margin-bottom: 18px; }
.about__copy .btn { margin-top: 10px; }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact {
  background-color: var(--ink);
  background-image: radial-gradient(900px 400px at 50% 120%, rgba(110, 160, 70, 0.28), transparent 65%);
  color: var(--cream-2); text-align: center;
  padding: clamp(72px, 10vw, 128px) 0;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.05; color: var(--cream); margin-bottom: 20px; text-wrap: balance; }
.contact__title em { color: #a9d184; }
.contact__text { max-width: 560px; font-size: clamp(16px, 1.5vw, 18px); margin-bottom: 32px; }

.footer { background: #131d0d; color: var(--cream-3); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__logo { height: 72px; width: auto; margin-bottom: 12px; }
.footer__tag { font-family: var(--serif); font-size: 19px; color: var(--cream-2); margin-bottom: 28px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 14px; margin-bottom: 32px; }
.footer__links a { color: var(--cream-2); transition: color 0.2s; }
.footer__links a:hover { color: var(--cream); }
.footer__bottom {
  width: 100%; padding-top: 24px; border-top: 1px solid var(--line-d);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
  font-size: 12.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
  .built, .setup__grid { grid-template-columns: 1fr; }
  .trio, .pillars { grid-template-columns: 1fr; }
  .trio--who { gap: 32px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav { background: rgba(244, 239, 228, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

  /* workflow: stage pins under the nav, steps scroll beneath it */
  .flow__body { display: block; padding: 0; margin-top: 36px; }
  .stage {
    top: var(--nav-h); z-index: 5;
    height: clamp(312px, 42svh, 360px);
    border-radius: 0; border-width: 1px 0;
    background: #1f2d18;
    box-shadow: 0 24px 30px -20px rgba(0, 0, 0, 0.7);
  }
  .stage__head { padding: 9px var(--gutter); }
  .scene { padding: 12px var(--gutter); gap: 10px; font-size: 12.5px; }
  .sm-hide { display: none !important; }
  .ledger__cell { padding: 7px 6px 8px; display: flex; align-items: baseline; justify-content: center; gap: 7px; }
  .ledger__cell b { font-size: 20px; }
  .ledger__cell span { font-size: 9px; }

  .steps { padding: 0 var(--gutter) 0 calc(var(--gutter) + 26px); }
  .steps::before, .steps::after { left: calc(var(--gutter) + 5px); }
  .step { min-height: 52svh; padding: 40px 0; }
  .step:last-child { min-height: 46svh; }
  .step::before { left: -26px; }
  .step p { font-size: 15.5px; }

  /* compact scenes */
  .inbox__row { padding: 8px 12px; }
  .inbox__row--dim { font-size: 11.5px; }
  .arrow-down { height: 16px; }
  .path { padding: 9px 12px; font-size: 10.5px; }
  .doc { padding: 10px 12px; font-size: 12.5px; line-height: 1.55; }
  .fields { padding: 2px 12px; }
  .fields > div { padding: 4px 0; }
  .review { padding: 2px 12px; }
  .review__row { padding: 7px 0; }
  .review__row span { width: 92px; }
  .signoff__who { padding: 6px 12px 6px 7px; font-size: 12.5px; }
  .system { padding: 10px 12px; }
  .system__name { margin-bottom: 6px; }
  .approve__state { padding: 7px 12px; font-size: 10.5px; }
  .dates { gap: 6px; }
  .dates li { padding: 7px 10px; grid-template-columns: 84px 1fr auto; gap: 8px; }
  .match__card { padding: 9px 12px; }
  .match__card b { font-size: 21px; }
  .balance { padding: 10px 12px; }
  .draft { padding: 12px; }
  .draft__title { font-size: 17px; margin-bottom: 10px; }
  .scene__badge { padding: 5px 10px; font-size: 10.5px; }
}

@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .letter { transform: none; }
  .letter__status { display: none; }
  .letter__page { padding: 18px 18px 4px; font-size: 14px; }
  .letter__fields { padding: 12px 18px 18px; }
  .hero__art-note { text-align: left; }
  .skill__body { font-size: 11px; padding: 16px 16px 6px; }
  .rig__list dd { font-size: 14px; }
  .rig__systems > div { grid-template-columns: 1fr; }
  .rig__systems dt { padding-top: 0; }
  .footer__bottom { flex-direction: column; align-items: center; }
}

/* ============================================================
   WRITING PAGE
   ============================================================ */
.nav__link.is-current { color: var(--ink); }
.nav__link.is-current::after { transform: scaleX(1); }
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 7vw, 88px); }
.page-hero__inner { position: relative; }
.page-hero .hero__lede { max-width: 640px; margin-bottom: 0; }

.pieces { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.pieces--posts { padding-top: 0; }
.pieces .lede { margin-bottom: 36px; }
.pieces__list { border-top: 2px solid var(--ink); }
.piece { color: inherit; }
.piece--article {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 40px; gap: 12px 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-2);
  transition: background-color 0.3s, padding 0.35s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.piece--article:hover { background: rgba(250, 247, 240, 0.9); padding-left: 16px; padding-right: 16px; }
.piece__img {
  display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 18px 30px -22px rgba(27, 41, 20, 0.5);
}
.piece__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.piece--article:hover .piece__img img { transform: scale(1.05); }
.piece__body { display: grid; gap: 6px; }
.piece__for { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--accent); }
.piece__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.12; color: var(--ink); text-wrap: balance; }
.piece__text { font-size: 15.5px; max-width: 640px; }
.piece__go {
  justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink); font-size: 16px;
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease), border-color 0.25s;
}
.piece--article:hover .piece__go { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: rotate(45deg); }

.pieces__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.piece--post {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, opacity 0.7s var(--ease);
}
.piece--post:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(27, 41, 20, 0.45); border-color: var(--line-2); }
.piece--post .piece__title { font-size: 24px; }
.piece--post .piece__text { font-size: 14.5px; }
.piece__link { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.piece__link span { display: inline-block; transition: transform 0.25s var(--ease); }
.piece--post:hover .piece__link span { transform: translate(2px, -2px); }

@media (max-width: 980px) {
  .pieces__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece--article { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 40px; gap: 12px 20px; }
}
@media (max-width: 560px) {
  .pieces__grid { grid-template-columns: 1fr; }
  .piece--article { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .piece__go { display: none; }
  .piece--article:hover { padding-left: 0; padding-right: 0; background: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rig .row { opacity: 1; transform: none; }
}
