/* Design: Apple-inspired. Light by default; follows the visitor's device into dark mode.
   SF Pro renders on Apple devices via the system font stack; Inter (its closest open match) elsewhere. */
:root{
  --paper:#FFFFFF; --surface:#FFFFFF; --surface-2:#F5F5F7;
  --ink:#1D1D1F; --ink-soft:#6E6E73; --ink-faint:#86868B;
  --accent:#0071E3; --accent-deep:#0058B0; --accent-tint:#E8F1FC;
  --accent2:#1D1D1F; --accent2-deep:#000000; --accent2-tint:#F5F5F7;
  --rule:#D2D2D7; --ok:#1D7D3E; --ok-tint:#E6F4EA;
  --todo:#B8862B; --todo-tint:#F5EBD8;
  --feature-bg:#1D1D1F;
  --font-display:-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  --font-body:-apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
  --font-mono:ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --max:980px;
  --shadow:0 4px 24px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark){
  :root{
    --paper:#000000; --surface:#1C1C1E; --surface-2:#161618;
    --ink:#F5F5F7; --ink-soft:#A1A1A6; --ink-faint:#86868B;
    --accent:#2997FF; --accent-deep:#64B5FF; --accent-tint:#0B2541;
    --accent2:#F5F5F7; --accent2-deep:#FFFFFF; --accent2-tint:#1C1C1E;
    --rule:#38383A; --ok:#30D158; --ok-tint:#0E2A16;
    --todo:#FFD60A; --todo-tint:#2C2610;
    --feature-bg:#2C2C2E;
    --shadow:0 8px 30px rgba(0,0,0,.5);
  }
}
*{box-sizing:border-box;}
html,body{margin:0; padding:0;}
body{
  background:var(--paper); color:var(--ink); font-family:var(--font-body);
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%; display:block;}
@media (prefers-reduced-motion: reduce){ *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;} }

/* ---- layout ---- */
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}
.site-header{
  position:sticky; top:0; z-index:10; background:color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--rule);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px; max-width:1040px;
}
.brand{font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--ink);}
.brand span{color:var(--accent);}
nav.main-nav{display:flex; align-items:center; gap:24px; font-size:14px;}
nav.main-nav a{color:var(--ink-soft); font-weight:500;}
nav.main-nav a:hover{color:var(--accent); text-decoration:none;}
nav.main-nav a.cta{
  color:#fff; background:var(--accent); padding:8px 16px; border-radius:20px;
}
nav.main-nav a.cta:hover{background:var(--accent-deep); text-decoration:none;}

main{padding:0 0 96px;}

.site-footer{border-top:1px solid var(--rule); padding:32px 0; margin-top:64px;}
.site-footer .wrap{
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:var(--ink-faint); flex-wrap:wrap; gap:12px; max-width:1040px;
}
.site-footer a{color:var(--ink-soft);}

/* ---- type ---- */
h1{font-family:var(--font-display); font-size:clamp(34px,5.5vw,52px); font-weight:600; line-height:1.1; text-wrap:balance; margin:0 0 18px; letter-spacing:-0.01em;}
h2{font-family:var(--font-display); font-size:30px; font-weight:600; margin:0 0 12px; text-wrap:balance;}
h3{font-family:var(--font-display); font-size:20px; font-weight:600; margin:0 0 8px;}
.eyebrow{font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin:0 0 14px;}
.lede{font-size:19px; color:var(--ink-soft); max-width:60ch; line-height:1.55;}
p{max-width:70ch;}
.pull-quote{
  font-family:var(--font-display); font-size:22px; line-height:1.45; color:var(--ink);
  border-left:3px solid var(--accent); padding:2px 0 2px 22px; margin:28px 0; max-width:56ch;
  text-wrap:balance;
}

/* ---- hero ---- */
.hero{
  position:relative; padding:72px 0 56px; overflow:hidden;
  border-bottom:1px solid var(--rule);
}
.hero-inner{position:relative; z-index:2; display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center;}
.hero-canvas{position:absolute; inset:0; z-index:1; opacity:.55; pointer-events:none;}
.avatar{
  width:132px; height:132px; border-radius:50%; object-fit:cover;
  border:3px solid var(--surface); box-shadow:var(--shadow);
  background:var(--surface-2);
}
.avatar-slot{
  width:132px; height:132px; border-radius:50%; background:var(--surface-2);
  border:1px dashed var(--rule); display:flex; align-items:center; justify-content:center;
  color:var(--ink-faint); font-size:11px; text-align:center; font-family:var(--font-mono); padding:8px;
  flex-shrink:0;
}
.hero-cta{display:flex; gap:12px; margin-top:28px; flex-wrap:wrap;}
.btn{
  display:inline-block; padding:12px 22px; border-radius:24px; font-size:14px; font-weight:600;
  border:1px solid var(--rule); transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn.primary{background:var(--accent); color:#fff; border-color:var(--accent);}
.btn.primary:hover{background:var(--accent-deep); text-decoration:none; transform:translateY(-1px); box-shadow:var(--shadow);}
.btn.ghost{color:var(--ink); background:var(--surface);}
.btn.ghost:hover{border-color:var(--accent); color:var(--accent); text-decoration:none; transform:translateY(-1px); box-shadow:var(--shadow);}

/* ---- proof strip ---- */
.proof-strip{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1px;
  background:var(--rule); border:1px solid var(--rule); border-radius:8px; overflow:hidden; margin:40px 0;
  box-shadow:var(--shadow);
}
.proof-cell{background:var(--surface); padding:22px 20px; transition:background .2s;}
.proof-cell:hover{background:var(--accent-tint);}
.proof-num{font-family:var(--font-display); font-size:28px; font-weight:600; color:var(--accent); font-variant-numeric:tabular-nums;}
.proof-label{font-size:12.5px; color:var(--ink-soft); margin-top:4px;}

/* ---- section rhythm ---- */
.section{margin:0; padding:64px 0;}
.section.band{background:var(--surface-2); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);}
.section.band .wrap{max-width:var(--max);}
.section-head{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:28px; gap:16px; flex-wrap:wrap;}

.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px;}
.card{
  background:var(--surface); border:1px solid var(--rule); border-radius:10px; padding:26px;
  display:flex; flex-direction:column; gap:10px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{border-color:var(--accent); transform:translateY(-3px); box-shadow:var(--shadow);}
.card .tag-row{display:flex; gap:6px; flex-wrap:wrap;}
.tag{font-family:var(--font-mono); font-size:11px; background:var(--surface-2); color:var(--ink-soft); padding:3px 9px; border-radius:12px;}
.card h3{margin-bottom:0;}
.card p{font-size:14.5px; color:var(--ink-soft); margin:0;}
.card .card-link{font-size:13.5px; font-weight:600; margin-top:auto; color:var(--accent);}

/* concept section gets the growth accent */
#concept .eyebrow, #concept .tag, #concept .card:hover{color:var(--accent2); }
#concept .card:hover{border-color:var(--accent2);}
#concept .card-link{color:var(--accent2);}

/* ---- photo strip (personal/scenic images) ---- */
.photo-strip{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:28px 0;}
.photo-strip img{width:100%; height:180px; object-fit:cover; border-radius:8px; box-shadow:var(--shadow);}
.photo-slot{
  height:180px; border-radius:8px; background:var(--surface-2); border:1px dashed var(--rule);
  display:flex; align-items:center; justify-content:center; color:var(--ink-faint);
  font-size:11.5px; font-family:var(--font-mono); text-align:center; padding:12px;
}
@media (max-width:640px){ .photo-strip{grid-template-columns:1fr;} }

/* ---- tool badges ---- */
.tool-grid{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px;}
.tool-badge{
  display:inline-flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--rule);
  border-radius:8px; padding:9px 14px; font-size:13.5px; color:var(--ink); font-weight:500;
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
.tool-badge:hover{border-color:var(--accent); transform:translateY(-2px); box-shadow:var(--shadow);}
.tool-badge .icon-chip{
  width:22px; height:22px; border-radius:5px; background:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; padding:3px;
}
.tool-badge .icon-chip.dark{background:#14161a;}
.tool-badge .icon-chip img{width:100%; height:100%; object-fit:contain; display:block;}
.tool-row{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;}
.tool-row .tool-badge{padding:5px 10px 5px 6px; font-size:12px; border-radius:16px; gap:6px;}
.tool-row .tool-badge .icon-chip{width:16px; height:16px; border-radius:4px; padding:2px;}

/* ---- contact ---- */
.contact-grid{display:flex; flex-wrap:wrap; gap:14px; margin-top:24px;}
.contact-pill{
  display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--rule);
  border-radius:24px; padding:10px 18px; font-size:14px; color:var(--ink);
  transition:border-color .15s, transform .15s;
}
.contact-pill:hover{border-color:var(--accent); transform:translateY(-1px); text-decoration:none;}
.contact-pill .copy-btn{
  font-family:var(--font-mono); font-size:11px; color:var(--ink-faint); background:var(--surface-2);
  border:1px solid var(--rule); border-radius:10px; padding:2px 8px; cursor:pointer;
}
.contact-pill .copy-btn[data-copied="true"]{color:var(--ok); border-color:var(--ok);}

/* ---- todo / placeholder markers (scaffold only, remove when content written) ---- */
.todo{
  background:var(--todo-tint); border:1px dashed var(--todo); color:var(--todo);
  border-radius:6px; padding:14px 16px; font-size:13.5px; font-family:var(--font-mono);
  margin:16px 0;
}
.todo b{display:block; margin-bottom:4px; font-family:var(--font-body); color:var(--ink);}
.mockup-slot{
  background:var(--surface-2); border:1px dashed var(--rule); border-radius:8px;
  padding:48px 24px; text-align:center; color:var(--ink-faint); font-size:13.5px; margin:20px 0;
}

/* ---- case study page ---- */
.cs-header{
  position:relative; padding:48px 0 40px; margin-bottom:8px; isolation:isolate;
  border-bottom:1px solid var(--rule);
}
/* faint ledger grid behind the header; the fade applies to the grid only, never to the text */
.cs-header::before{
  content:""; position:absolute; inset:0; z-index:-1; opacity:.5; pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, var(--rule) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, var(--rule) 28px);
  mask-image:linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image:linear-gradient(to bottom, black, transparent 85%);
}
.cs-header .wrap{position:relative;}
.cs-meta{display:flex; gap:28px; flex-wrap:wrap; font-size:13.5px; color:var(--ink-soft); margin-top:22px;}
.cs-meta div b{display:block; color:var(--ink); font-weight:600; font-size:14px;}
.cs-section{margin:40px 0; max-width:var(--max);}
.wrap > .cs-section, main > .wrap .cs-section{margin-left:auto; margin-right:auto;}
.cs-nav{display:flex; justify-content:space-between; border-top:1px solid var(--rule); padding-top:24px; margin-top:64px; font-size:14px; max-width:var(--max);}

/* ---- 8-point case-study structure ---- */
.tldr{
  background:var(--surface); border:1px solid var(--rule); border-left:3px solid var(--accent);
  border-radius:8px; padding:18px 22px; margin:32px 0 8px; max-width:var(--max); box-shadow:var(--shadow);
}
.tldr .eyebrow{margin-bottom:8px;}
.tldr ul{margin:0; padding-left:18px;}
.tldr li{margin:4px 0; max-width:70ch;}
.cs-section h2 .step{
  display:inline-block; font-family:var(--font-mono); font-size:12px; font-weight:500; color:var(--accent);
  border:1px solid var(--accent); border-radius:12px; padding:1px 8px; margin-right:10px; vertical-align:middle;
  letter-spacing:.04em;
}
.cs-section h3{margin-top:22px;}
.options{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin:18px 0;}
.option{background:var(--surface); border:1px solid var(--rule); border-radius:8px; padding:16px 18px; font-size:14.5px;}
.option b{display:block; font-family:var(--font-display); font-size:16px; margin-bottom:6px; color:var(--ink);}
.option p{margin:0; color:var(--ink-soft);}
.option .verdict{
  display:inline-block; font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  padding:2px 8px; border-radius:10px; margin-bottom:8px; background:var(--surface-2); color:var(--ink-faint);
}
.option.chosen{border-color:var(--ok);}
.option.chosen .verdict{background:var(--ok-tint); color:var(--ok);}
.nongoals{list-style:none; padding:0; margin:12px 0;}
.nongoals li{padding-left:22px; position:relative; margin:6px 0; max-width:68ch;}
.nongoals li::before{content:"\2715"; position:absolute; left:0; top:0; color:var(--ink-faint); font-size:13px;}
.fine{font-size:13px; color:var(--ink-faint);}
.card.feature{grid-column:1 / -1; border-left:3px solid var(--accent2);}
.card.feature:hover{border-color:var(--accent2);}
.card.feature .card-link{color:var(--accent2);}
/* ---- approach diagrams (inline SVG, theme-aware) ---- */
figure.diagram{margin:24px 0; background:var(--surface); border:1px solid var(--rule); border-radius:10px; padding:16px 16px 12px; overflow-x:auto;}
figure.diagram svg{display:block; width:100%; height:auto; min-width:600px;}
figure.diagram figcaption{font-size:13px; color:var(--ink-faint); margin-top:10px; max-width:70ch;}
.dg text{fill:var(--ink); font-family:var(--font-body); font-size:13px;}
.dg text.muted{fill:var(--ink-soft); font-size:11.5px;}
.dg text.lbl{fill:var(--ink-faint); font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em;}
.dg text.on-accent{fill:var(--accent-deep); font-weight:600;}
.dg .box{fill:var(--surface-2); stroke:var(--rule); stroke-width:1.5;}
.dg .box.hl{fill:var(--accent-tint); stroke:var(--accent);}
.dg .box.ok{fill:var(--ok-tint); stroke:var(--ok);}
.dg .box.warn{fill:var(--todo-tint); stroke:var(--todo);}
.dg .box.dim{fill:var(--paper); stroke:var(--rule); stroke-dasharray:4 3;}
.dg .edge{stroke:var(--ink-faint); stroke-width:1.5; fill:none;}
.dg .edge.hl{stroke:var(--accent);}
.dg .edge.bad{stroke:var(--todo); stroke-dasharray:4 3; stroke-width:1.2;}
.dg .arrowhead{fill:var(--ink-faint);}
.dg .arrowhead.hl{fill:var(--accent);}
.dg .seg{stroke:var(--surface); stroke-width:2;}
.dg .seg.a{fill:var(--rule);} .dg .seg.b{fill:var(--ink-faint);} .dg .seg.c{fill:var(--surface-2);} .dg .seg.ok{fill:var(--ok);}

/* statements awaiting the author's confirmation -- every .verify must be resolved before publishing */
.verify{background:var(--todo-tint); border-bottom:2px dotted var(--todo); border-radius:2px; padding:0 2px;}
.verify::after{content:" [confirm]"; font-family:var(--font-mono); font-size:10.5px; color:var(--todo);}

@media (max-width:640px){
  .site-header .wrap{flex-direction:column; align-items:flex-start; gap:12px;}
  nav.main-nav{gap:16px; flex-wrap:wrap;}
  .hero-inner{grid-template-columns:1fr; text-align:left;}
}

/* ================= Apple-inspired component layer ================= */
body{letter-spacing:-0.011em;}
.site-header{background:color-mix(in srgb, var(--paper) 80%, transparent); border-bottom:1px solid color-mix(in srgb, var(--rule) 60%, transparent);}
.site-header .wrap{padding-top:12px; padding-bottom:12px;}
.brand{font-family:var(--font-display); font-weight:600; font-size:17px;}
.brand span{color:var(--ink-faint);}
nav.main-nav{font-size:12.5px; gap:26px;}
nav.main-nav a{color:var(--ink); font-weight:400; opacity:.85;}
nav.main-nav a.cta{background:var(--accent); color:#fff; border-radius:980px; padding:6px 14px; opacity:1;}
nav.main-nav a.cta:hover{background:var(--accent-deep);}

h1{font-weight:700; font-size:clamp(40px,6.4vw,72px); line-height:1.05; letter-spacing:-0.035em;}
h2{font-weight:700; font-size:clamp(32px,4.4vw,48px); letter-spacing:-0.03em; line-height:1.08;}
h3{font-family:var(--font-display); font-weight:600; font-size:24px; letter-spacing:-0.02em; line-height:1.15;}
.lede{font-size:21px; line-height:1.45; color:var(--ink-soft); letter-spacing:-0.015em;}
.eyebrow{font-family:var(--font-body); text-transform:none; letter-spacing:0; font-size:17px; font-weight:600; color:var(--accent);}

/* home: centred hero */
.hero-canvas{display:none;}
.hero{padding:96px 0 80px; border-bottom:0; text-align:center;}
.hero-inner{grid-template-columns:1fr; justify-items:center; gap:28px;}
.hero h1{max-width:16ch; margin-left:auto; margin-right:auto;}
.hero .lede{margin-left:auto; margin-right:auto;}
.avatar{order:-1; width:112px; height:112px; border:0; box-shadow:none;}
.hero .eyebrow{color:var(--ink-soft); font-size:19px; margin-bottom:8px;}
.hero-cta{justify-content:center; gap:18px;}
.btn{border-radius:980px; font-weight:400; font-size:17px; padding:11px 22px;}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff;}
.btn.primary:hover{background:var(--accent-deep); transform:none; box-shadow:none;}
.btn.ghost{background:transparent; border-color:transparent; color:var(--accent);}
.btn.ghost::after{content:" \203A";}
.btn.ghost:hover{text-decoration:underline; transform:none; box-shadow:none;}

.proof-strip{background:transparent; border:0; box-shadow:none; gap:0; margin:24px 0 8px;}
.proof-cell{background:transparent; text-align:center; padding:20px 12px;}
.proof-cell:hover{background:transparent;}
.proof-num{color:var(--ink); font-size:48px; font-weight:700; letter-spacing:-0.03em;}
.proof-label{font-size:14px; color:var(--ink-soft);}

.section{padding:88px 0;}
.section.band{background:var(--surface-2); border:0;}
.section-head{flex-direction:column; align-items:center; text-align:center; gap:8px; margin-bottom:40px;}
.section-head p{margin:0 auto;}

.card{border:0; border-radius:22px; padding:34px 30px; background:var(--surface-2); box-shadow:none;}
.section.band .card{background:var(--surface);}
.card:hover{transform:scale(1.015); box-shadow:var(--shadow); border-color:transparent;}
.card p{font-size:16px; line-height:1.5;}
.tag{background:transparent; padding:0; font-family:var(--font-body); font-size:12px; font-weight:600; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.04em;}
.card .card-link{color:var(--accent); font-weight:400; font-size:16px;}
.card-metric{font-size:15px; color:var(--ink-soft); order:-1;}
.card-metric b{display:block; font-size:44px; line-height:1.05; font-weight:700; letter-spacing:-0.035em; color:var(--ink); margin-bottom:2px;}
.card.feature{border-left:0; background:var(--feature-bg); color:#F5F5F7;}
.card.feature:hover{border-color:transparent;}
.card.feature h3{color:#F5F5F7;}
.card.feature p, .card.feature .card-metric{color:#A1A1A6;}
.card.feature .card-metric b{color:#F5F5F7;}
.card.feature .tag{color:#86868B;}
.card.feature .card-link{color:#2997FF;}
#concept .eyebrow, #concept .tag, #concept .card-link{color:var(--accent);}
#concept .tag{color:var(--ink-faint);}
#concept .card:hover{border-color:transparent;}
.pull-quote{border-left:0; padding-left:0; font-weight:600; font-size:28px; letter-spacing:-0.02em;}
.tool-badge{border:0; background:var(--surface); border-radius:12px;}
.section:not(.band) .tool-badge{background:var(--surface-2);}
.contact-pill{border:0; background:var(--surface); border-radius:980px;}
.section:not(.band) .contact-pill{background:var(--surface-2);}
.photo-strip img{border-radius:18px; box-shadow:none;}
.site-footer{background:var(--surface-2); border-top:0; margin-top:0; font-size:12px;}

/* testimonial */
.testimonial{max-width:760px; margin:0 auto; text-align:center;}
.testimonial blockquote{margin:0; font-family:var(--font-display); font-size:clamp(20px,2.4vw,26px); line-height:1.4; font-weight:500; letter-spacing:-0.015em; color:var(--ink);}
.testimonial figcaption{margin-top:22px; font-size:15px; color:var(--ink-soft);}
.testimonial figcaption b{display:block; color:var(--ink); font-size:17px;}
.testimonial figcaption a{display:inline-block; margin-top:8px;}

/* inner pages: case studies, teardown, concept, writing */
.cs-header{padding:72px 0 28px; border-bottom:0;}
.cs-header::before{display:none;}
.cs-header h1{font-size:clamp(36px,5.2vw,56px); max-width:22ch;}
.cs-header .eyebrow{margin-bottom:10px;}
.cs-meta{gap:32px; font-size:14px;}
.cs-meta div b{font-size:12px; font-weight:600; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px;}
.tool-row .tool-badge{background:var(--surface-2);}
.tldr{background:var(--surface-2); border:0; border-radius:18px; box-shadow:none; padding:24px 28px;}
.cs-section h2{font-size:clamp(26px,3.4vw,34px);}
.cs-section h2 .step{background:var(--accent); color:#fff; border:0; border-radius:980px; padding:2px 9px; font-family:var(--font-body); font-weight:600;}
.option{border:0; background:var(--surface-2); border-radius:16px; padding:18px 20px;}
.option b{font-family:var(--font-display); letter-spacing:-0.01em;}
.option.chosen{background:var(--ok-tint); box-shadow:inset 0 0 0 1.5px var(--ok);}
.option .verdict{font-family:var(--font-body); font-weight:600; background:var(--surface); letter-spacing:.03em;}
figure.diagram{border:0; background:var(--surface-2); border-radius:18px; padding:20px 20px 14px;}
.dg .box{fill:var(--surface);}
.mockup-slot{border-radius:18px;}
.cs-nav{border-top:1px solid var(--rule);}

/* one reading column: paragraphs, lists, tables and diagrams share the same width
   (paragraphs were capped at 70ch while lists ran the full width, so intros looked cut short) */
p, .tldr li, .nongoals li, figure.diagram figcaption, .cs-header .lede{max-width:none;}
main > .wrap, #about .wrap{max-width:820px;}
.hero .lede{max-width:60ch;}
.pull-quote{max-width:none; text-wrap:pretty;}

/* skills & domains: grouped cards with real chips */
.skill-groups{display:flex; flex-wrap:wrap; justify-content:center; gap:18px; margin-top:8px;}
.skill-group{flex:1 1 290px; max-width:calc((100% - 36px) / 3);}
@media (max-width:900px){ .skill-group{max-width:none;} }
.skill-group{background:var(--surface-2); border-radius:20px; padding:24px 24px 22px;}
.skill-group h3{font-size:18px; margin:0 0 4px; display:flex; align-items:center; gap:10px;}
.skill-group h3::before{content:""; width:10px; height:10px; border-radius:50%; background:var(--accent); flex-shrink:0;}
.skill-group p{font-size:14px; color:var(--ink-soft); margin:0 0 14px;}
.chips{list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px;}
.chips li{background:var(--surface); color:var(--ink); border-radius:980px; padding:6px 13px; font-size:14px; line-height:1.3; box-shadow:inset 0 0 0 1px var(--rule);}
.chips li b{font-weight:600;}
