/* ==========================================================================
   SmartersWeb — editorial design system
   Warm paper, ink, hairline rules, serif display. No shadows, no blobs.
   Single stylesheet, no external requests, no framework.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper:       #faf8f4;
  --paper-deep:  #f2eee7;
  --surface:     #fffefb;

  /* Ink */
  --ink:         #16130f;
  --ink-soft:    #57514a;
  --ink-faint:   #736a61;
  --ink-invert:  #f6f2ea;

  /* Rules — hairlines do the work shadows used to */
  --rule:        #ddd6ca;
  --rule-strong: #bdb3a3;

  /* Accent */
  --accent:      #b4472e;
  --accent-deep: #8f3520;
  --accent-wash: #f5e9e4;

  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);

  /* Type */
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
           "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;

  /* Measure */
  --maxw:   1280px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #14120f;
    --paper-deep:  #1b1815;
    --surface:     #1b1815;

    --ink:         #f2ede5;
    --ink-soft:    #b3aa9e;
    --ink-faint:   #8e857a;
    --ink-invert:  #14120f;

    --rule:        #322d27;
    --rule-strong: #4a443c;

    --accent:      #e8785c;
    --accent-deep: #f2937a;
    --accent-wash: #2a1d18;

    --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:       #14120f;
  --paper-deep:  #1b1815;
  --surface:     #1b1815;

  --ink:         #f2ede5;
  --ink-soft:    #b3aa9e;
  --ink-faint:   #8e857a;
  --ink-invert:  #14120f;

  --rule:        #322d27;
  --rule-strong: #4a443c;

  --accent:      #e8785c;
  --accent-deep: #f2937a;
  --accent-wash: #2a1d18;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; }

h1, h2 {
  font-family: var(--serif);
  line-height: 1.02;
  letter-spacing: -.022em;
  font-weight: 400;
}
h1 { font-size: clamp(2.7rem, 1.5rem + 5.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.3rem); }

h3 {
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -.008em;
  line-height: 1.3;
}
h4 { font-family: var(--sans); font-size: .98rem; font-weight: 620; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin: .32em 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 620; }
em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 760px; }

.section { padding: clamp(64px, 8vw, 128px) 0; }
.section-tight { padding: clamp(44px, 5vw, 76px) 0; }
.section-soft { background: var(--paper-deep); }
.section-ruled { border-top: 1px solid var(--rule); }

.section-head { max-width: 30ch; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; max-width: 36ch; }
.section-head .lead { max-width: 46ch; }

.lead {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The editorial signature: a mono marker with a leading rule. */
.eyebrow, .marker {
  display: flex;
  align-items: center;
  gap: .8em;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.eyebrow::before, .marker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.section-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 1px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Card grids sit on a rule lattice rather than floating with shadows. */
.grid-2, .grid-3, .grid-4 {
  background: var(--rule);
  border: 1px solid var(--rule);
}
.grid-2 > *, .grid-3 > *, .grid-4 > * { background: var(--paper); }
.section-soft .grid-2 > *,
.section-soft .grid-3 > *,
.section-soft .grid-4 > * { background: var(--paper-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  letter-spacing: .005em;
  padding: .92em 1.6em;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-lg { padding: 1.05em 1.9em; font-size: .98rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with a travelling arrow — used instead of a third button style. */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .93rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: .25em;
}
.link-arrow:hover { text-decoration: none; color: var(--accent); border-color: var(--accent); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand {
  display: inline-flex; align-items: baseline; gap: .1rem;
  font-family: var(--serif);
  font-size: 1.32rem; font-weight: 400; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand em { font-style: italic; color: var(--accent); }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }

.nav-link {
  display: flex; align-items: center; gap: .35em;
  padding: .55em .85em;
  font-family: var(--sans); font-size: .93rem; font-weight: 500;
  color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; text-decoration: none;
  position: relative;
}
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .15em;
  height: 1px; background: var(--accent);
}
.nav-link .caret { width: 9px; height: 9px; opacity: .55; transition: transform .2s var(--ease); }
.has-menu.is-open .caret { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 8px); left: -6px; min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--rule);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.has-menu.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { margin: 0; }
.submenu a {
  display: block; padding: .55em .8em;
  font-size: .91rem; color: var(--ink-soft); text-decoration: none;
}
.submenu a:hover { background: var(--paper-deep); color: var(--ink); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 0;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 16px var(--gutter) 28px;
    max-height: calc(100dvh - 76px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    margin-left: 0;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .nav-link {
    padding: .95em .2em; font-size: 1.05rem; justify-content: space-between;
    font-family: var(--serif); font-weight: 400;
  }
  .nav-link[aria-current="page"]::after { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-left: 1px solid var(--accent);
    margin: 0 0 12px 2px; padding: 0 0 0 14px; min-width: 0;
    display: none; background: none;
  }
  .has-menu.is-open > .submenu { display: block; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */

/* Two-column hero: argument on the left, a factual spec panel on the right. */
.hero-grid {
  display: grid; gap: clamp(36px, 4vw, 66px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hero-main h1 { max-width: 13ch; margin-bottom: .34em; }
.hero-main .lead { max-width: 44ch; margin-bottom: 2rem; }
.hero-micro {
  font-family: var(--mono); font-size: .71rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 1.7rem 0 0;
}

.hero-panel { border: 1px solid var(--rule); background: var(--surface); }

.wireframe { border-bottom: 1px solid var(--rule); padding: 20px; }
.wireframe svg { width: 100%; height: auto; display: block; }
.wf-frame  { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.wf-hair   { stroke: var(--rule); stroke-width: 1; }
.wf-soft   { fill: var(--rule); }
.wf-mid    { fill: var(--rule-strong); }
.wf-accent { fill: var(--accent); }

.spec { margin: 0; padding: 4px 22px 12px; }
.spec > div {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0; white-space: nowrap;
}
.spec dd { margin: 0; font-size: .94rem; font-weight: 580; color: var(--ink); text-align: right; }

/* Capability strip — a trust bar built from real capabilities, not fake logos. */
.capability-strip {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  margin-top: clamp(44px, 5vw, 78px);
}
.capability-strip ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.capability-strip li {
  margin: 0; flex: 1 1 auto; padding: 17px 20px;
  border-right: 1px solid var(--rule);
  font-family: var(--mono); font-size: .71rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
  text-align: center; white-space: nowrap;
}
.capability-strip li:last-child { border-right: 0; }
@media (max-width: 680px) {
  .capability-strip li { flex: 1 1 50%; }
  .capability-strip li:nth-child(2n) { border-right: 0; }
  .capability-strip li:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--rule); }
}

.hero { padding: clamp(56px, 8vw, 118px) 0 clamp(40px, 5vw, 72px); }
.hero.hero-split { padding-bottom: 0; }
.hero-inner { max-width: 19ch; }
.hero h1 { margin-bottom: 0; }

.hero-rule {
  border: 0; border-top: 1px solid var(--rule);
  margin: clamp(32px, 4vw, 52px) 0 clamp(24px, 3vw, 34px);
}

.hero-foot {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
}
.hero-foot .lead { margin-bottom: 0; max-width: 42ch; }

/* Page heros on inner pages */
.page-hero { padding: clamp(52px, 6vw, 92px) 0 clamp(32px, 4vw, 52px); }
.page-hero h1 { max-width: 16ch; margin-bottom: .32em; }
.page-hero .lead { max-width: 52ch; margin-bottom: 0; }

.crumbs {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.6rem;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Mono badge used sparingly, never as a floating pill */
.pill {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.6rem;
}
.pill b {
  color: var(--accent); font-weight: 500;
  border-right: 1px solid var(--rule); padding-right: .8em;
}

/* ---------- Index rows — the services list ---------- */
.index { border-top: 1px solid var(--ink); }

.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 28px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color .2s var(--ease);
}
.index-row:hover { text-decoration: none; color: var(--accent); }
.index-row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--accent);
  transition: width .38s var(--ease);
}
.index-row:hover::after { width: 100%; }

.index-num {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--ink-faint); padding-top: .55em;
}
.index-row:hover .index-num { color: var(--accent); }

.index-body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.35rem);
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: .28em;
}
.index-body p {
  font-size: .97rem; color: var(--ink-soft); margin: 0; max-width: 52ch;
}
.index-row:hover .index-body p { color: var(--ink-soft); }

.index-meta {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--ink-faint); white-space: nowrap; padding-top: .55em;
  display: flex; align-items: center; gap: .9em;
}
.index-meta svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.index-row:hover .index-meta { color: var(--accent); }
.index-row:hover .index-meta svg { transform: translateX(5px); }

@media (max-width: 720px) {
  .index-row { grid-template-columns: auto 1fr; }
  .index-meta { grid-column: 2; padding-top: .8em; }
}

/* ---------- Statement / pull quote ---------- */
.statement { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.statement p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.1rem + 2.7vw, 3rem);
  line-height: 1.16; letter-spacing: -.022em;
  max-width: 20ch; margin: 0;
}
.statement p em { font-style: italic; color: var(--accent); }
.statement .marker { margin-bottom: 2rem; }

/* ---------- Cards (restyled: rules, not shadows) ---------- */
/* A card on its own gets a hairline frame; inside a grid the lattice already
   supplies the rules, so the card's own border is removed there. */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: 0;
}
.grid-2 > .card,
.grid-3 > .card,
.grid-4 > .card,
.work-grid > .card,
.price-grid > .card { border: 0; }
.card h3 { margin-bottom: .55em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* Standalone cards (outside a .grid lattice) need their own hairline. */
.card-bordered { border: 1px solid var(--rule); }

.card-link { display: block; color: inherit; text-decoration: none; transition: background .2s var(--ease); }
.card-link:hover { text-decoration: none; background: var(--accent-wash); }
.card-link:hover h3 { color: var(--accent); }

.card-num {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--ink-faint); display: block; margin-bottom: 1.4rem;
}

.card-icon {
  width: 34px; height: 34px; margin-bottom: 18px;
  display: grid; place-items: center;
  color: var(--accent); background: none; border: 0;
}
.card-icon svg { width: 22px; height: 22px; }

.more {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .89rem; font-weight: 600; color: var(--accent); margin-top: 16px;
}
.more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.card-link:hover .more svg { transform: translateX(4px); }

/* ---------- Checklist ---------- */
.check { list-style: none; padding: 0; margin: 0 0 1.1em; }
.check li {
  position: relative; padding-left: 1.7em; margin: .55em 0;
  color: var(--ink-soft); font-size: .96rem;
}
.check li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .62em; height: .62em; border: 1px solid var(--accent);
}
.check strong { color: var(--ink); font-weight: 620; }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(32px, 4.5vw, 72px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse > :first-child { order: 2; }
@media (max-width: 899px) { .split.reverse > :first-child { order: 0; } }

/* Asymmetric variant — the editorial workhorse */
.split-wide { display: grid; gap: clamp(32px, 4vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split-wide .sticky { position: sticky; top: 108px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  background: none; border-radius: 0;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--accent); padding-top: .35em;
}
.step h3 { margin-bottom: .35em; }
.step p { margin-bottom: 0; color: var(--ink-soft); font-size: .96rem; max-width: 58ch; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  background: var(--rule); border: 1px solid var(--rule);
  align-items: stretch;
}
.plan {
  background: var(--paper);
  border: 0; border-radius: 0;
  padding: clamp(28px, 2.8vw, 40px);
  display: flex; flex-direction: column;
  position: relative;
}
.section-soft .plan { background: var(--paper-deep); }
.plan.featured { background: var(--ink); color: var(--ink-invert); box-shadow: none; }
.plan.featured h3, .plan.featured .price { color: var(--ink-invert); }
.plan.featured .price-note, .plan.featured .muted { color: rgba(246, 242, 234, .62); }
.plan.featured .check li { color: rgba(246, 242, 234, .8); }
.plan.featured .check strong { color: var(--ink-invert); }
.plan.featured .check li::before { border-color: var(--accent-deep); }
.plan.featured .plan-tag { color: var(--accent-deep); }
.plan.featured .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan.featured .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.plan-tag {
  position: static; display: block;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
  background: none; padding: 0; border-radius: 0; margin-bottom: 1.2rem;
}
.plan h3 { font-size: 1rem; margin-bottom: .5em; }
.plan .price {
  font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 400; letter-spacing: -.03em; line-height: 1;
  margin: .5rem 0 .3rem;
}
.plan .price small { font-family: var(--sans); font-size: .9rem; color: var(--ink-faint); letter-spacing: 0; }
.plan .price-note {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--ink-faint); margin-bottom: 1.8rem;
}
.plan .check { flex: 1; margin-bottom: 1.6rem; }
.plan .btn { width: 100%; margin-top: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 540px; }
th, td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  padding-top: 14px; padding-bottom: 14px;
}
tbody th { font-weight: 620; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.prose table { min-width: 0; }

/* ---------- Work / portfolio ---------- */
.work-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--rule); border: 1px solid var(--rule);
}
.work-item {
  background: var(--paper);
  padding: clamp(26px, 2.6vw, 36px);
  display: flex; flex-direction: column; min-height: 280px;
  color: inherit; text-decoration: none;
  transition: background .2s var(--ease);
}
.work-item:hover { text-decoration: none; background: var(--accent-wash); }
.work-thumb {
  aspect-ratio: 16 / 10; width: 100%; margin-bottom: 22px;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 9px,
      var(--rule) 9px 10px
    );
  display: grid; place-items: center;
}
.work-thumb span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  background: var(--paper); padding: .5em .9em; border: 1px solid var(--rule);
}
.work-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -.018em; margin-bottom: .3em; }
.work-meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem;
}
.work-item p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }

.empty-state {
  border: 1px dashed var(--rule-strong);
  padding: clamp(32px, 4vw, 56px);
  text-align: center;
}
.empty-state h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -.018em; }
.empty-state p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

/* ---------- Team ---------- */
.member { text-align: left; }
.avatar {
  width: 60px; height: 60px; margin: 0 0 18px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: .88rem; letter-spacing: .06em;
  color: var(--accent); background: none;
  border-radius: 0;
}
.member h3 { margin-bottom: .18em; font-size: 1.02rem; }
.member p { color: var(--ink-faint); font-size: .88rem; margin: 0; font-family: var(--mono); letter-spacing: .04em; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--ink); background: none; border-radius: 0; overflow: visible; }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  cursor: pointer; list-style: none;
  padding: 22px 52px 22px 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  letter-spacing: -.012em; line-height: 1.3;
  position: relative; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); background: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 1px; background: var(--ink-faint);
}
.accordion summary::before {
  content: ""; position: absolute; right: 13px; top: 50%; margin-top: -5px;
  width: 1px; height: 11px; background: var(--ink-faint);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.accordion details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.accordion .acc-body { padding: 0 60px 26px 0; color: var(--ink-soft); max-width: 68ch; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--ink-invert);
  border-radius: 0;
  padding: clamp(44px, 6vw, 90px) clamp(28px, 4vw, 72px);
  text-align: left;
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 56px; }

  /* Pages that place the heading, copy and buttons as direct children rather
     than in two wrapper columns still lay out correctly. */
  .cta-band > h2        { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
  .cta-band > p         { grid-column: 2; grid-row: 1; align-self: end; }
  .cta-band > .btn-row  { grid-column: 2; grid-row: 2; }
}
.cta-band h2 { color: var(--ink-invert); max-width: 15ch; margin-bottom: 0; }
.cta-band p { color: rgba(246, 242, 234, .66); max-width: 44ch; margin: 0 0 1.8rem; }
.cta-band .btn-row { justify-content: flex-start; margin-top: 0; }
.cta-band .marker { color: rgba(246, 242, 234, .5); }
.cta-band a.btn-ghost { color: var(--ink-invert); border-color: rgba(246, 242, 234, .35); }
.cta-band a.btn-ghost:hover { background: rgba(246, 242, 234, .1); border-color: var(--ink-invert); color: var(--ink-invert); }

/* ---------- Stats ---------- */
.stat { padding: clamp(24px, 2.4vw, 34px); }
.stat b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  letter-spacing: -.028em; line-height: 1; color: var(--ink); margin-bottom: .4rem;
}
.stat span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.field .hint { text-transform: none; letter-spacing: .02em; font-size: .72rem; }

input, select, textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: .6em 0; width: 100%;
  transition: border-color .18s var(--ease);
}
input:hover, select:hover, textarea:hover { border-bottom-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--accent); box-shadow: none; outline: none;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: .75; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
                    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 13px) 1.15em, calc(100% - 8px) 1.15em;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
textarea { min-height: 140px; resize: vertical; }

.checkbox { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.checkbox input { width: auto; margin-top: .3em; flex: none; accent-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--ink-faint); }

.field-error { font-size: .85rem; color: var(--accent-deep); font-weight: 500; }
:root[data-theme="dark"] .field-error { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field-error { color: var(--accent); }
}

.alert { border-left: 2px solid var(--accent); padding: 20px 24px; margin-bottom: 2rem; background: var(--paper-deep); }
.alert p:last-child { margin-bottom: 0; }
.alert-ok { border-left-color: var(--ink); }
.alert-bad { border-left-color: var(--accent); }
.alert h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -.018em; }

.notice {
  border-left: 2px solid var(--accent);
  background: none; border-radius: 0;
  padding: 4px 0 4px 24px; font-size: .95rem; color: var(--ink-soft);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--ink); }

/* ---------- Contact blocks ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: block; margin: 0;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { display: none; }
.contact-list b {
  display: block; font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .45em;
}
.contact-list span { color: var(--ink); font-size: 1rem; display: block; }
.contact-list a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper); border-top: 1px solid var(--ink);
  padding: clamp(48px, 5vw, 80px) 0 32px; font-size: .93rem;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 52px;
}
.footer-brand { grid-column: span 2; min-width: 230px; }
@media (max-width: 640px) { .footer-brand { grid-column: span 1; } }
.footer-brand p { color: var(--ink-soft); max-width: 32ch; margin-top: 1.2rem; font-size: .93rem; }

.site-footer h4 {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-faint); margin-bottom: 1.3rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .6em 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

.footer-legal {
  border-top: 1px solid var(--rule); padding-top: 26px;
  display: grid; gap: 14px;
  color: var(--ink-faint); font-size: .82rem; line-height: 1.65;
}
@media (min-width: 880px) {
  .footer-legal { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}
.footer-legal p { margin: 0; }
.pay-badges { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; }

/* ---------- Prose / legal ---------- */
.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem);
  margin-top: 2.8em; margin-bottom: .7em; scroll-margin-top: 100px;
  padding-top: 1.4em; border-top: 1px solid var(--rule);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2em; font-size: 1.02rem; }
.prose li { color: var(--ink-soft); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.updated { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }

.toc {
  background: none; border: 0; border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  border-radius: 0; padding: 26px 0 30px; margin-bottom: 3.4rem;
}
.toc h2 {
  font-family: var(--mono) !important; font-size: .68rem !important;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint);
  margin: 0 0 1.2rem !important; padding: 0 !important; border: 0 !important;
  font-weight: 500;
}
.toc ol { margin: 0; padding-left: 1.3em; font-size: .92rem; column-width: 220px; column-gap: 40px; }
.toc li { margin: .38em 0; color: var(--ink-faint); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

code {
  font-family: var(--mono); font-size: .86em;
  background: var(--paper-deep); border: 1px solid var(--rule);
  padding: .12em .4em;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

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

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4em .8em; border: 1px solid var(--rule); color: var(--ink-faint);
  margin: 0 6px 6px 0;
}

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.8rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; }
