/* Site layout on top of Cornflower tokens. No raw hex: every color comes from cornflower.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 10; background: var(--card); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }

.eyebrow { font: 500 14px/1.4 var(--font-sans); color: var(--muted); }
.label { color: var(--muted); }
.meta { color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--topbar-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); font: 700 19px/1 var(--font-display); }
.mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a:not(.cf-btn) { color: var(--ink); text-decoration: none; font: 500 15px/1 var(--font-sans); }
.nav a:not(.cf-btn):hover { color: var(--accent); }
.nav .cf-btn { text-decoration: none; }

/* Theme toggle: shows the mode you'd switch to */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--hover); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hero */
.hero { padding-top: var(--space-12); padding-bottom: var(--space-12); display: grid; gap: var(--space-5); }
.hero-main { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: var(--space-8); }
.hero-copy { display: grid; gap: var(--space-5); }
.hero-portrait { width: 100%; height: auto; margin-bottom: calc(var(--space-8) * -1); }
.hero-portrait img { width: 100%; height: auto; }
/* The circle behind the portrait matches the button blue in each theme */
.portrait-dark { display: none; }
[data-theme="dark"] .portrait-light { display: none; }
[data-theme="dark"] .portrait-dark { display: block; }
.hero-title { font: 700 clamp(40px, 6.4vw, 76px)/1.02 var(--font-display); letter-spacing: -0.01em; max-width: 15ch; }
.lede { font-size: 19px; line-height: 1.55; max-width: 58ch; color: var(--ink); }
.actions { margin-top: var(--space-2); }
.actions .cf-btn, .hire .cf-btn { text-decoration: none; }

.stats { position: relative; margin: var(--space-8) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2); }
.stat-card dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card:first-child { border-top: 4px solid var(--cornflower); }

/* Bands and blocks */
.band { background: var(--rail); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band > .wrap { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.block { padding-top: var(--space-12); padding-bottom: var(--space-4); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.more { font: 500 15px/1 var(--font-sans); text-decoration: none; }
.more:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-8); }
.prose { display: grid; gap: var(--space-4); max-width: 65ch; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

/* Case cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.case { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.case-num { font: 700 15px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.case-link { margin-top: auto; padding-top: var(--space-2); font: 500 15px/1.4 var(--font-sans); color: var(--accent); text-decoration: none; }
.case-link::after { content: " \2192"; }
a.case-link:hover { text-decoration: underline; }

/* Freelance */
.hire { padding: var(--space-8); display: grid; gap: var(--space-6); border-left: 4px solid var(--accent); }
.hire-copy { display: grid; gap: var(--space-3); max-width: 62ch; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.offers li { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); background: var(--paper); border-radius: var(--radius-md); }

/* Credentials */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-12); }
.cred-list { margin-top: var(--space-3); display: grid; gap: var(--space-2); color: var(--muted); }
.cred-list strong { color: var(--ink); font-weight: 600; margin-right: var(--space-1); }
.cred-list a { color: var(--muted); }
.cred-list a:hover { color: var(--accent); }

/* Writing and photography: quieter, more room */
.beyond { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.beyond-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.beyond-card:hover { border-color: var(--line-strong); }
.beyond-card:hover .case-link { text-decoration: underline; }
.quote { font: italic 400 clamp(30px, 4vw, 44px)/1.1 Georgia, "Times New Roman", serif; padding: var(--space-2) 0; }
.photo-frame { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--track); display: flex; align-items: flex-end; padding: var(--space-3); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-frame .caption { position: relative; background: color-mix(in srgb, var(--ink) 55%, transparent); padding: 3px 8px; border-radius: var(--radius-sm); color: #fff; }

/* Meditation: more air, fewer borders, the ensō as a watermark */
.practice { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; padding-top: calc(var(--space-12) * 2); padding-bottom: calc(var(--space-12) * 2); overflow: hidden; }
.practice > * { position: relative; }
.practice-enso { position: absolute; right: -60px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); background: var(--ink); opacity: .05; -webkit-mask: url(../images/logo.svg) center / contain no-repeat; mask: url(../images/logo.svg) center / contain no-repeat; pointer-events: none; }
.practice-head { display: grid; gap: var(--space-4); max-width: 52ch; }
.practice-head .body { font-size: 17px; }
.credential { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.lineage { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lineage li { display: grid; gap: var(--space-1); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }

/* Project cards: the whole card is the link */
.project-card { position: relative; }
.project-card[hidden] { display: none; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.project-card:has(.card-link:focus-visible) { outline: var(--focus-width) solid var(--accent); outline-offset: 2px; }
.project-card:hover { border-color: var(--line-strong); }
.project-card:hover .case-link { text-decoration: underline; }
.case-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-2); }
.case-foot .case-link { margin-top: 0; padding-top: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.also { margin-top: var(--space-5); }
.also a { font-weight: 500; }
.nav a[aria-current="page"] { color: var(--accent); }

/* Card images bleed to the card edges; cards without one show their big number */
.card-image { display: block; width: calc(100% + 2 * var(--space-6)); max-width: none; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-2); aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top center; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--line-soft); background: var(--track); }
.card-stat { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-tint), var(--card)); }
.card-stat span { font: 700 clamp(44px, 5vw, 64px)/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.project-image { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.beyond-card .card-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }

/* Work index */
.page-head { display: grid; gap: var(--space-4); padding-top: var(--space-12); padding-bottom: var(--space-8); }
.page-head .page-title { max-width: 20ch; }
.work-list { display: grid; gap: var(--space-4); padding-bottom: var(--space-12); }
.work-filter { justify-self: start; max-width: 100%; overflow-x: auto; }
.work-filter button { white-space: nowrap; }
.seg-count { opacity: .6; font-variant-numeric: tabular-nums; margin-left: 2px; }
.filter-status { margin-top: calc(var(--space-2) * -1); }

/* Single project */
.project { display: grid; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-8); max-width: 820px; }
.back { font: 500 15px/1 var(--font-sans); text-decoration: none; }
.back::before { content: "\2190  "; }
.back:hover { text-decoration: underline; }
.project-head { display: grid; gap: var(--space-4); }
.project-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); padding: var(--space-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.project-facts dd { margin: var(--space-1) 0 0; font-weight: 500; }
.project-body { display: grid; gap: var(--space-4); font-size: 17px; line-height: 1.65; max-width: 65ch; }
.project-body h2 { font: 600 24px/1.2 var(--font-display); margin-top: var(--space-4); }
.project-body ul { list-style: disc; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.project-body strong { font-family: var(--font-display); font-size: 1.1em; font-variant-numeric: tabular-nums; }
.more-work { border-top: 1px solid var(--line-soft); padding-bottom: var(--space-12); }
.cards.two { grid-template-columns: repeat(2, 1fr); }

/* Resume */
.resume { display: grid; gap: var(--space-8); padding-top: var(--space-12); padding-bottom: var(--space-12); }
.resume-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.resume-id { display: grid; gap: var(--space-2); }
.resume-headline { font: 600 22px/1.2 var(--font-display); color: var(--accent); }
.resume-contact { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); color: var(--muted); font-size: 15px; }
.resume-contact a { color: inherit; }
.resume-actions { display: flex; gap: var(--space-2); }
.resume-actions .cf-btn { text-decoration: none; }
.resume-summary { font-size: 19px; line-height: 1.55; max-width: 70ch; }
.resume-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-12); align-items: start; }
.resume-section { font: 600 14px/1.2 var(--font-sans); color: var(--muted); letter-spacing: .04em; margin-bottom: var(--space-4); }
.resume-main { display: grid; gap: var(--space-8); }
.job { display: grid; gap: var(--space-2); }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.job-dates { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.job-role { font-weight: 500; color: var(--accent); }
.job-intro { max-width: 70ch; }
.job-bullets { list-style: disc; padding-left: 1.2em; display: grid; gap: var(--space-2); max-width: 70ch; }
.job-bullets strong { font-family: var(--font-display); font-size: 1.08em; font-variant-numeric: tabular-nums; }
.job .case-link { margin-top: var(--space-1); }
.resume-side { display: grid; gap: var(--space-8); padding: var(--space-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.side-list { display: grid; gap: var(--space-2); font-size: 15px; }
.side-list strong { font-weight: 600; }
@media (max-width: 900px) {
  .resume-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Print: a clean two-page resume, no site chrome */
@media print {
  @page { size: letter; margin: 0.55in 0.6in; }
  :root, [data-theme] { --paper: #fff; --card: #fff; --ink: #111827; --muted: #4B5563; --accent: #2F57B0; --line: #D1D5DB; --track: #EEF1F7; }
  body { background: #fff; font-size: 10pt; line-height: 1.4; }
  .topbar, .footer, .skip, .no-print { display: none !important; }
  .wrap { max-width: none; padding: 0 !important; }
  .resume { gap: 14pt; padding: 0; }
  .resume-head { padding-bottom: 10pt; }
  .page-title { font-size: 28pt; }
  .resume-headline { font-size: 14pt; }
  .resume-contact { font-size: 9.5pt; }
  .resume-summary { font-size: 10.5pt; max-width: none; }
  .resume-grid { grid-template-columns: minmax(0, 1fr) 2.1in; gap: 22pt; }
  .resume-main { gap: 12pt; }
  .job { gap: 3pt; }
  .job-head, .job-role { break-after: avoid; }
  .job-bullets li { break-inside: avoid; }
  .job-bullets { gap: 2pt; max-width: none; }
  .job-intro { max-width: none; }
  .item-name { font-size: 13pt; }
  .resume-section { font-size: 9pt; margin-bottom: 6pt; }
  .resume-side { padding: 0; border: 0; gap: 14pt; }
  .side-list { font-size: 9.5pt; gap: 3pt; }
  .tags { gap: 3pt; }
  .cf-tag { font-size: 8pt; padding: 1px 6px; }
  a { color: inherit; text-decoration: none; }
}

/* Photography */
.series-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.series-nav .cf-tag { text-decoration: none; font-size: 14px; padding: 4px 12px; }
.series-nav .cf-tag:hover { background: var(--accent-tint); color: var(--accent); }
.photo-series { display: grid; gap: var(--space-5); padding-top: var(--space-8); padding-bottom: var(--space-8); scroll-margin-top: var(--topbar-height); }
.series-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.series-head > div { display: grid; gap: var(--space-2); max-width: 60ch; }
.series-head .body { color: var(--muted); }
.photo-grid { columns: 3 260px; column-gap: var(--space-3); }
.photo-grid li { break-inside: avoid; margin-bottom: var(--space-3); }
.photo-grid .photo { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--track); }
.photo-grid .photo img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.photo-grid .photo:hover img { transform: scale(1.03); }
.photo-caption { position: absolute; left: var(--space-2); bottom: var(--space-2); right: var(--space-2); width: fit-content; max-width: calc(100% - var(--space-4)); background: color-mix(in srgb, #10141C 62%, transparent); color: #fff; padding: 3px 8px; border-radius: var(--radius-sm); font: 500 12.5px/1.4 var(--font-sans); }
.pixieset-note .cf-card { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-6); }
.pixieset-note .cf-btn { text-decoration: none; }

.viewer { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(8, 10, 14, .92); }
.viewer figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: var(--space-3); padding: var(--space-12) var(--space-12) var(--space-6); }
.viewer img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: var(--radius-sm); }
.viewer figcaption { color: #C9D1DE; text-align: center; }
.viewer-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: 400 32px/1 var(--font-sans); cursor: pointer; }
.viewer-btn:hover { background: rgba(255,255,255,.2); }
.viewer-close { top: var(--space-4); right: var(--space-4); }
.viewer-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.viewer-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .viewer figure { padding: var(--space-12) var(--space-2) var(--space-6); }
  .viewer-prev, .viewer-next { top: auto; bottom: var(--space-4); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .photo-grid .photo img { transition: none; } }

/* Writing */
.writing-title { font: 400 clamp(34px, 5vw, 56px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; }
.writing-feature { padding-bottom: var(--space-4); }
.feature-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; color: var(--ink); text-decoration: none; }
.feature-card:hover { border-color: var(--line-strong); }
.feature-card:hover .case-link { text-decoration: underline; }
.feature-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-copy { display: grid; gap: var(--space-3); align-content: center; padding: var(--space-8); }
.feature-copy .writing-title { font-size: clamp(28px, 3.2vw, 40px); }
.writing-list { display: grid; gap: var(--space-3); }
.writing-row { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-5); align-items: center; padding: var(--space-3); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.writing-row:hover { background: var(--card); border-color: var(--line); }
.writing-row img { width: 160px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--radius-md); background: var(--track); }
.writing-row > div { display: grid; gap: var(--space-1); }
.writing-row .item-name { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 23px; }
.substack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.substack-card { display: grid; gap: var(--space-2); align-content: start; height: 100%; padding: var(--space-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.substack-card:hover { border-color: var(--line-strong); }
.substack-card img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: var(--radius-md); background: var(--track); }
.substack-card .meta:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.piece { display: grid; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-8); max-width: 760px; }
.piece-head { display: grid; gap: var(--space-4); }
.piece-cover { width: 100%; height: auto; border-radius: var(--radius-lg); }
.piece-body { display: grid; gap: 1.1em; font: 400 19px/1.7 Georgia, "Times New Roman", serif; color: var(--ink); max-width: 66ch; }
.piece-body h2 { font: 600 26px/1.2 var(--font-display); margin-top: 1em; }
.piece-body h3 { font: 600 21px/1.25 var(--font-display); margin-top: .5em; }
.piece-body p, .piece-body ul, .piece-body ol, .piece-body blockquote, .piece-body figure { margin: 0; }
.piece-body ul, .piece-body ol { padding-left: 1.3em; display: grid; gap: .35em; }
.piece-body img { width: 100%; height: auto; border-radius: var(--radius-md); margin: .4em 0; }
.piece-body blockquote { padding-left: var(--space-5); border-left: 3px solid var(--cornflower); font-style: italic; color: var(--muted); font-size: 21px; }
.piece-body a { color: var(--accent); }
.piece-body hr { border: 0; border-top: 1px solid var(--line); }
.piece-poem .piece-body { font-size: 20px; line-height: 1.75; }
.piece-signup { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.piece-signup .cf-btn, .piece .cf-btn, .block-head .cf-btn { text-decoration: none; }
@media (max-width: 860px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { min-height: 0; aspect-ratio: 3 / 2; }
  .feature-copy { padding: var(--space-5); }
}
@media (max-width: 560px) {
  .writing-row { grid-template-columns: 96px 1fr; gap: var(--space-3); }
  .writing-row img { width: 96px; }
  .writing-row .item-name { font-size: 19px; }
  .piece-body { font-size: 18px; }
}

/* Meditation page */
.med-hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: center; padding-top: var(--space-12); padding-bottom: var(--space-8); }
.med-hero-copy { display: grid; gap: var(--space-4); max-width: 60ch; }
.med-enso { width: 100%; max-width: 380px; justify-self: center; }
.med-enso-mark { display: block; width: 100%; height: auto; }
.med-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-12); align-items: start; padding-bottom: var(--space-12); }
.med-credential { display: grid; gap: var(--space-3); padding: var(--space-6); border-top: 4px solid var(--cornflower); }
.med-invite { display: grid; gap: var(--space-3); justify-items: start; max-width: 62ch; padding-bottom: calc(var(--space-12) * 1.5); }
.med-invite .cf-btn, .practice .more-practice { text-decoration: none; }
@media (max-width: 860px) {
  .med-hero, .med-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .med-enso { max-width: 220px; grid-row: 1; justify-self: start; }
}

/* About */
.about-hero { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: var(--space-12); align-items: center; padding-top: var(--space-12); padding-bottom: var(--space-8); }
.about-portrait { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.about-intro { display: grid; gap: var(--space-4); max-width: 62ch; }
.about-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-12); align-items: start; padding-bottom: var(--space-8); }
.about-prose { display: grid; gap: var(--space-4); font-size: 18px; line-height: 1.7; max-width: 66ch; }
.about-prose .heading { margin-top: var(--space-6); }
.about-closer { font: 400 24px/1.35 Georgia, "Times New Roman", serif; margin-top: var(--space-2); }
.about-quote { margin: var(--space-4) 0; padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8); border-left: 4px solid var(--cornflower); background: var(--card); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.about-quote p { font: italic 400 clamp(22px, 2.6vw, 28px)/1.35 Georgia, "Times New Roman", serif; margin: 0; }
.about-quote cite { display: block; margin-top: var(--space-3); font: 500 14px/1.4 var(--font-sans); font-style: normal; color: var(--muted); }
.about-side { position: sticky; top: calc(var(--topbar-height) + var(--space-6)); display: grid; gap: var(--space-6); padding: var(--space-6); }
.about-facts { margin: 0; display: grid; gap: var(--space-4); }
.about-facts dd { margin: var(--space-1) 0 0; font-weight: 500; }
.about-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.about-links a { font-weight: 500; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }
.about-cta { padding-bottom: calc(var(--space-12) * 1.5); }
.about-cta .cf-card { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-8); }
.about-cta .cf-btn { text-decoration: none; }
@media (max-width: 900px) {
  .about-hero, .about-body { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-portrait { max-width: 320px; }
  .about-side { position: static; }
}

/* Footer */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); flex-wrap: wrap; }
.footer-nav { display: flex; gap: var(--space-5); }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 860px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 300px; margin: 0 auto; grid-row: 1; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.cf-btn) { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .cards, .cards.two, .offers, .beyond, .creds, .practice { grid-template-columns: 1fr; }
  .practice { gap: var(--space-6); padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .practice-enso { width: 320px; height: 320px; right: -80px; top: 120px; transform: none; }
  .hire { padding: var(--space-5); }
  .hero { padding-top: var(--space-8); }
  .stat { font-size: 40px; }
  .cf-btn { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .brand { font-size: 17px; gap: var(--space-2); white-space: nowrap; }
  .nav { gap: var(--space-2); }
  .nav .cf-btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.not-found { padding-bottom: calc(var(--space-12) * 2); }
.not-found .cf-btn { text-decoration: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-12); align-items: start; padding-top: var(--space-12); padding-bottom: calc(var(--space-12) * 1.5); }
.contact-intro { display: grid; gap: var(--space-4); max-width: 52ch; }
.contact-alt { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.contact-alt li { display: grid; gap: 2px; }
.contact-form { display: grid; gap: var(--space-5); padding: var(--space-8); }
.contact-form textarea { resize: vertical; min-height: 160px; font: inherit; }
.contact-form select { appearance: auto; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: var(--space-8); padding-top: var(--space-8); }
  .contact-form { padding: var(--space-5); }
}

/* Legal pages and footer legal links */
.legal-body { display: grid; gap: var(--space-4); font-size: 17px; line-height: 1.7; max-width: 68ch; }
.legal-body h2 { font: 600 22px/1.25 var(--font-display); margin-top: var(--space-4); }
.legal-body p, .legal-body ul { margin: 0; }
.legal-body ul { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.legal-body a { color: var(--accent); }
.legal-body code { font-size: .9em; background: var(--track); padding: 1px 5px; border-radius: 4px; }
.footer-id { display: grid; gap: var(--space-1); }
.footer-legal { display: flex; gap: var(--space-4); }
.footer-legal a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.form-privacy { color: var(--muted); margin-top: calc(var(--space-2) * -1); }
.form-privacy a { color: inherit; }
