/* Shandré Pillay: Atlantic Seaboard Dusk.
   Granite ground, kelp-black ink and bands, a dusk mauve accent on granite
   and an apricot afterglow on kelp. Light serif headings with one italic
   word, hairlines instead of shadows, pills for every control. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* world colours */
  --granite: #ebe8e3;
  --granite-paper: #f4f2ee;
  --kelp: #1c2321;
  --kelp-deep: #121716;
  --mauve: #7d4f6b;
  --mauve-light: #d6a8c3;
  --apricot: #f0a868;
  --sea: #8a9690;

  /* roles (light) */
  --ground: var(--granite);
  --paper: var(--granite-paper);
  --ink: var(--kelp);
  --muted: #57605b;
  --accent: var(--mauve);          /* accent as text and line on this ground */
  --accent-2: #b48aa3;             /* softer second tone (Save7 mark, trend axis) */
  --sun: var(--apricot);           /* the afterglow: dots and fills only on granite */
  --rule: rgba(28, 35, 33, 0.15);
  --outline: rgba(28, 35, 33, 0.32);
  --tint: rgba(125, 79, 107, 0.08);
  --band: var(--kelp);

  /* frosted glass and the contour field behind it */
  --glass: rgba(240, 237, 232, 0.58);
  --glass-strong: rgba(240, 237, 232, 0.86);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --frost: blur(14px) saturate(1.25);
  --contour: rgba(28, 35, 33, 0.16);

  /* type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --pad-x: max(var(--gutter), calc((100% - var(--container)) / 2));
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --panel: 1.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-mode {
  --ground: var(--kelp-deep);
  --paper: #18201e;
  --ink: #e9e6e0;
  --muted: #a3aca6;
  --accent: var(--mauve-light);
  --accent-2: #8f6b81;
  --sun: var(--apricot);
  --rule: rgba(233, 230, 224, 0.14);
  --outline: rgba(233, 230, 224, 0.3);
  --tint: rgba(214, 168, 195, 0.1);
  --band: #242e2b;
  --glass: rgba(24, 31, 29, 0.55);
  --glass-strong: rgba(24, 31, 29, 0.88);
  --glass-edge: rgba(233, 230, 224, 0.1);
  --contour: rgba(233, 230, 224, 0.1);
}

/* Kelp bands swap every role at once */
.band {
  --ground: var(--band);
  --ink: #ebe8e3;
  --muted: #a9b3ad;
  --accent: var(--apricot);
  --accent-2: var(--sea);
  --rule: rgba(235, 232, 227, 0.16);
  --outline: rgba(235, 232, 227, 0.34);
  --tint: rgba(240, 168, 104, 0.12);
  --glass-edge: rgba(235, 232, 227, 0.12);
  --contour: rgba(240, 168, 104, 0.11);
  background: var(--ground);
  color: var(--ink);
}

/* ---------- The contour field (fixed, behind everything) and frosted glass ---------- */
.page { position: relative; isolation: isolate; }
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--contour);
  -webkit-mask: url("../img/contours.svg") 62% 40% / cover no-repeat;
  mask: url("../img/contours.svg") 62% 40% / cover no-repeat;
}
.glass, .hero-copy, .carousel, main:not(.home) {
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  border: 1px solid var(--glass-edge);
  border-radius: var(--panel);
}
/* the closing band carries the same hills, faintly, in afterglow */
.close { position: relative; isolation: isolate; overflow: hidden; }
.close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--contour);
  -webkit-mask: url("../img/contours.svg") 85% 70% / max(60rem, 100%) auto no-repeat;
  mask: url("../img/contours.svg") 85% 70% / max(60rem, 100%) auto no-repeat;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; overflow-y: scroll; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--outline) transparent; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.ready { transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
::selection { background: color-mix(in srgb, var(--sun) 55%, transparent); color: var(--kelp); }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4 { margin: 0 0 0.5rem; color: var(--ink); font-weight: 300; }
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--muted); }

.meta, .entry-meta, .cv-row span, .car-count { font-variant-numeric: tabular-nums; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.6rem; }
.meta b { font-weight: 600; color: var(--accent); }
.arrow { width: 1em; height: 1em; vertical-align: -0.14em; margin-left: 0.3em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { a:hover .arrow { transform: translateX(3px); } }

/* Content columns: full-bleed backgrounds, centred content */
.site-header, main, .site-footer { padding-inline: var(--pad-x); }
main.home { padding-inline: 0; }
main.home > * { padding-inline: var(--pad-x); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}
/* the frost lives on a pseudo-element so the header never becomes the
   containing block for the fixed side menu */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; --logo: var(--ink); }
.logo-mark { height: 2.4rem; width: auto; flex: 0 0 auto; overflow: visible; transition: transform 0.35s cubic-bezier(.3,1.4,.5,1); }
.logo-mark .lg { fill: none; stroke: var(--logo); stroke-width: 18; stroke-linecap: butt; stroke-linejoin: round; }
.logo-mark.draw .lg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: logoDraw 0.9s cubic-bezier(.6,0,.3,1) forwards; }
.logo-mark.draw .lg-p1 { animation-delay: 0.45s; }
.logo-mark.draw .lg-p2 { animation-delay: 0.7s; }
@keyframes logoDraw { to { stroke-dashoffset: 0; } }
.brand:focus-visible .logo-mark { transform: translateY(-3px) rotate(-3deg); }
@media (hover: hover) and (pointer: fine) { .brand:hover .logo-mark { transform: translateY(-3px) rotate(-3deg); } }
.logo-word {
  position: relative;
  font-family: "Montserrat", var(--sans);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--logo);
  line-height: 1.1;
  white-space: nowrap;
}
.logo-word b { font-weight: 700; }
.logo-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.3rem;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.brand:hover .logo-word::after, .brand:focus-visible .logo-word::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { position: relative; display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--ink); border-color: var(--accent); }
.nav-list.has-slider .nav-link { border-color: transparent; }
.nav-slider {
  position: absolute;
  left: 0;
  height: 2px;
  width: 0;
  margin-top: -2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: left 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s;
}
@keyframes navSlide {
  from { opacity: 0; transform: translateX(calc(var(--r, 0) * 96px + 32px)); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes navDrop { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.nav-list.sliding li { animation: navSlide 0.5s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--r, 0) * 30ms); }

/* Home tab: Table Mountain line drawing that sketches itself */
.mtn-link { display: inline-flex; align-items: flex-end; line-height: 0; }
.mtn { height: 1.7rem; width: auto; overflow: visible; display: block; }
.mtn .sk { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 3; stroke-dashoffset: 0; }
.mtn .m1 { stroke-width: 3.2; }
.mtn .m2 { stroke-width: 1.5; opacity: 0.45; }
.mtn .g  { stroke-width: 2; opacity: 0.8; }
.mtn .c  { stroke-width: 1.7; opacity: 0.6; stroke: var(--sun); }
.mtn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes sketch {
  0%   { stroke-dashoffset: 1.1; }
  22%  { stroke-dashoffset: 0.72; }
  27%  { stroke-dashoffset: 0.69; }
  58%  { stroke-dashoffset: 0.27; }
  64%  { stroke-dashoffset: 0.24; }
  100% { stroke-dashoffset: 0; }
}
.mtn-text .mtn { height: 1.35rem; }
.mtn-link:focus-visible .sk, .mtn-link.sketching .sk, .mtn-link.hovering .sk { animation: sketch 1.15s cubic-bezier(.45, .05, .35, 1) both; }
@media (hover: hover) and (pointer: fine) {
  .mtn-link:hover .sk { animation: sketch 1.15s cubic-bezier(.45, .05, .35, 1) both; }
}
.mtn-link:hover .m2, .mtn-link:focus-visible .m2, .mtn-link.sketching .m2 { animation-delay: 0.14s; animation-duration: 1.3s; }
.mtn-link:hover .c,  .mtn-link:focus-visible .c,  .mtn-link.sketching .c  { animation-delay: 0.45s; animation-duration: 0.9s; }
.mtn-link:hover .g1, .mtn-link.sketching .g1, .mtn-link:focus-visible .g1 { animation-delay: 0.7s;  animation-duration: 0.55s; }
.mtn-link:hover .g2, .mtn-link.sketching .g2, .mtn-link:focus-visible .g2 { animation-delay: 0.82s; animation-duration: 0.55s; }
.mtn-link:hover .g3, .mtn-link.sketching .g3, .mtn-link:focus-visible .g3 { animation-delay: 0.94s; animation-duration: 0.55s; }
/* Off the home page the tab reads "Home"; hovering swaps the word for the sketch */
.mtn-text { position: relative; }
.mtn-text .mtn { opacity: 0; transition: opacity 0.25s var(--ease); }
.mtn-text .mtn-label {
  position: absolute;
  inset: 0;
  width: auto; height: auto;
  clip: auto; overflow: visible;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: opacity 0.2s var(--ease);
}
.mtn-text:hover .mtn, .mtn-text:focus-visible .mtn { opacity: 1; }
.mtn-text:hover .mtn-label, .mtn-text:focus-visible .mtn-label { opacity: 0; }

/* Theme switch: the sun sets into night */
.theme-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: border-color 0.18s var(--ease);
}
.theme-switch:hover { border-color: var(--ink); }
.theme-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border-radius: 50%;
  background: var(--sun);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
body.dark-mode .theme-switch::after { transform: translateX(1.2rem); background: transparent; box-shadow: inset -0.3rem -0.12rem 0 0 var(--ink); }

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-toggle svg { width: 1.3rem; height: 1.3rem; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 0.975rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.14s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sun); flex: 0 0 auto; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--outline); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent); color: var(--ground); }
  .band .btn-primary:hover, body.dark-mode .btn-primary:hover { color: var(--kelp); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
}
.btn .arrow { margin-left: 0; }
.link-arrow { font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: 0;
}
.hero-copy { padding: clamp(1.5rem, 3vw, 2.75rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.carousel { padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem); }
.carousel .carousel-track { border-top: 0; }
.hero-heading { max-width: 19.5ch; margin-bottom: 1.5rem; }
.hero-intro { color: var(--muted); font-size: clamp(1.125rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-tag { margin: 1.75rem 0 0; }
.hero-figure { position: relative; margin: 0; justify-self: end; width: min(100%, 25rem); }
.hero-photo, .hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
}
.hero-photo { object-fit: cover; object-position: 50% 30%; }
.hero-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--band);
  color: var(--apricot);
  font: italic 300 5rem/1 var(--serif);
}
/* The horizon: one hairline under the hero, the sun settling onto it */
.horizon { position: relative; height: 1px; background: var(--outline); padding: 0 !important; margin-inline: var(--pad-x); }
.sun { position: absolute; left: 62%; bottom: 0; width: 1.25rem; height: 0.625rem; overflow: hidden; }
.sun::before { content: ""; display: block; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--sun); animation: sunset 0.9s var(--ease) 0.6s both; }
@keyframes sunset { from { transform: translateY(-160%); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }

.horizon-close .sun { left: 24%; }
.horizon-close .sun::before { animation: none; }

/* ---------- Home: focus band ---------- */
.focus { padding-block: var(--section); }
.focus-head, .section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.focus-head h2, .section-head h2 { margin: 0; }
.focus-head p { color: var(--muted); margin: 0; max-width: 30em; }
.section-head .link-arrow { justify-self: end; }
.strip-grid { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.strip-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 5fr) minmax(0, 6fr);
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.strip-item h3 { margin: 0; transition: color 0.18s var(--ease); }
.strip-item p { margin: 0; color: var(--muted); max-width: 36em; }
.strip-item:hover h3 { color: var(--accent); }
.strip-icon { width: 2.75rem; height: 2.75rem; }
.strip-icon svg { width: 100%; height: 100%; overflow: visible; }
.strip-logo { display: flex; align-items: center; justify-content: center; padding: 0.2rem; }

/* Animated icons */
.ic-stroke { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-soft { stroke: var(--accent-2); }
.ic-text { fill: var(--accent); font-family: var(--serif); }
/* Each icon plays once as its row arrives, and again on hover; nothing loops beside the text */
.bar { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; }
.trend-line { stroke-dasharray: 60; stroke-dashoffset: 0; }
.trend-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.coin { transform-box: fill-box; transform-origin: center; }
.strip-item:not(.reveal) .bar { animation: barRise 0.7s var(--ease) both; }
.strip-item:not(.reveal) .bar:nth-child(2) { animation-delay: 0.08s; }
.strip-item:not(.reveal) .bar:nth-child(3) { animation-delay: 0.16s; }
.strip-item:not(.reveal) .bar:nth-child(4) { animation-delay: 0.24s; }
.strip-item:not(.reveal) .trend-line { animation: trendDraw 0.9s var(--ease) both; }
.strip-item:not(.reveal) .trend-dot { animation: dotIn 0.4s var(--ease) 0.7s both; }
.strip-item:not(.reveal) .coin { animation: coinFlip 0.9s var(--ease) both; }
@keyframes barRise { from { transform: scaleY(0.35); } to { transform: none; } }
@keyframes trendDraw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes coinFlip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.12); } 100% { transform: scaleX(1); } }
/* hover replays use copies of the keyframes so the browser restarts them */
@keyframes barRise2 { from { transform: scaleY(0.35); } to { transform: none; } }
@keyframes trendDraw2 { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes dotIn2 { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes coinFlip2 { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.12); } 100% { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .strip-item.alt:not(.reveal) .bar { animation-name: barRise2; }
  .strip-item.alt:not(.reveal) .trend-line { animation-name: trendDraw2; }
  .strip-item.alt:not(.reveal) .trend-dot { animation-name: dotIn2; }
  .strip-item.alt:not(.reveal) .coin { animation-name: coinFlip2; }
}

/* Save7 mark: two pieces in the site palette that fly together, then nudge apart on hover */
.save7-mark { width: 100%; height: 100%; display: block; overflow: visible; }
.save7-mark .v7 { transform-box: fill-box; transform-origin: 50% 100%; }
.save7-mark .v7-a { fill: var(--accent); }
.save7-mark .v7-b { fill: var(--accent-2); }
@keyframes v7InA { from { opacity: 0; transform: translate(-38%, -26%) rotate(-14deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes v7InB { from { opacity: 0; transform: translate(38%, -26%) rotate(14deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes v7ApartA { 0%, 100% { transform: none; } 38% { transform: translate(-14%, -7%) rotate(-6deg); } 70% { transform: translate(2%, 1%); } }
@keyframes v7ApartB { 0%, 100% { transform: none; } 38% { transform: translate(14%, -7%) rotate(6deg); } 70% { transform: translate(-2%, 1%); } }
.save7-mark.play .v7-a { animation: v7InA 0.85s cubic-bezier(.3, 1.35, .5, 1) both; }
.save7-mark.play .v7-b { animation: v7InB 0.85s cubic-bezier(.3, 1.35, .5, 1) 0.14s both; }
@media (hover: hover) and (pointer: fine) {
  .strip-item:hover .save7-mark.play .v7-a { animation: v7ApartA 0.7s cubic-bezier(.3, 1.2, .5, 1); }
  .strip-item:hover .save7-mark.play .v7-b { animation: v7ApartB 0.7s cubic-bezier(.3, 1.2, .5, 1); }
}

/* ---------- Home: currently & recent ---------- */
.section { padding-block: var(--section); }
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 1rem 3rem;
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  min-height: 15rem;
}
.slide h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; margin-bottom: 0.75rem; }
.slide p { color: var(--muted); font-size: 1.125rem; line-height: 1.55; margin: 0; max-width: 34em; }
.slide .meta { margin: 0; }
.carousel-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.car-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.14s var(--ease);
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-btn:active { transform: scale(0.94); }
.car-btn svg { width: 1.1rem; height: 1.1rem; }
.car-dots { display: flex; gap: 0.4rem; }
.car-dot {
  width: 1.5rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.car-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--outline); transition: background-color 0.25s var(--ease), height 0.25s var(--ease); }
.car-dot.active::before { background: var(--accent); height: 3px; }
.car-count { color: var(--muted); font-size: 0.95rem; margin-left: auto; }

/* ---------- Home: closing band ---------- */
.close { padding-block: var(--section) calc(var(--section) * 0.75); border-bottom: 1px solid var(--rule); }
.close-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: end; }
.close h2 { margin: 0; max-width: 14ch; }
.close p { color: var(--muted); margin: 0 0 1.5rem; max-width: 28em; }
.close .hero-actions { margin: 0; }

/* ---------- Inner pages ---------- */
/* inner pages: the content is one frosted sheet over the hills */
main:not(.home) {
  margin: clamp(1.5rem, 4vw, 3rem) var(--pad-x) clamp(3rem, 7vw, 5.5rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
}
.page-title { max-width: 16ch; margin-bottom: 1.25rem; }
.page-lede { color: var(--muted); font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem); line-height: 1.5; max-width: 36em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.75rem 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry-meta { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.entry-meta strong { display: block; color: var(--accent); font-weight: 600; margin-bottom: 0.1rem; }
.entry h3, .entry .entry-title { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.acc-head:hover .entry-title, .acc-head:focus-visible .entry-title { color: var(--accent); }
.side-title { font: 600 0.95rem/1.4 var(--sans); color: var(--muted); letter-spacing: 0; }
.entry .org { color: var(--muted); font-weight: 500; margin-bottom: 0; }
.entry ul { margin: 1rem 0 0; padding-left: 1.1rem; max-width: 46em; }
.entry li { margin-bottom: 0.55rem; color: var(--muted); }
.entry li::marker { color: var(--accent); }
.entry li strong, .entry p strong { color: var(--ink); font-weight: 600; }
.entry p { color: var(--muted); max-width: 46em; }
.entry .acc-inner > p:first-child, .entry > div > p:first-of-type { margin-top: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
}
.entry h3 .badge, .entry-title .badge { font-family: var(--sans); font-size: 0.8rem; vertical-align: middle; margin-left: 0.5rem; color: var(--accent); border-color: currentColor; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }

.sub-section { margin-top: clamp(3rem, 6vw, 5rem); }
.sub-section > h2 { margin-bottom: 1.5rem; }
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.row-item { border-top: 1px solid var(--rule); padding: 1.4rem 0 0.5rem; }
.row-item h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.row-item p { color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem 4.5rem; }
.two-col .section { padding: 0; margin-bottom: 3rem; }
.two-col .section-head { display: block; margin-bottom: 1rem; }
.two-col .section-head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.two-col .section p { max-width: 38em; }
.side-block { padding-top: 1.25rem; border-top: 1px solid var(--rule); margin-bottom: 2.25rem; }
.side-block h4 { margin-bottom: 0.6rem; }
.side-block p, .side-block li { color: var(--ink); }
.side-block p:last-child { margin-bottom: 0; }
.side-block ul { list-style: none; padding: 0; margin: 0; }
.side-block li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.side-block li:last-child { border-bottom: 0; }
.side-block .note { color: var(--muted); margin-top: 0.75rem; }

/* ---------- Privacy page ---------- */
.policy-block { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.5rem 3rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.policy-block:last-of-type { border-bottom: 1px solid var(--rule); }
.policy-block h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; margin: 0; }
.policy-block > :not(h2) { grid-column: 2; max-width: 42em; }
.policy-block p { color: var(--muted); }
.policy-block p:last-child { margin-bottom: 0; }
.policy-block ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.policy-block li { margin-bottom: 0.5rem; }
.policy-block li::marker { color: var(--accent); }
.policy-block strong { color: var(--ink); font-weight: 600; }
@media (max-width: 40rem) { .policy-block { grid-template-columns: minmax(0, 1fr); } .policy-block > :not(h2) { grid-column: 1; } }

/* ---------- CV page ---------- */
.cv-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: -1.5rem 0 2.5rem; }
.cv-sheet { border-top: 1px solid var(--rule); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.cv-head { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.cv-name { font: 300 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1.05 var(--serif); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.cv-contact a { overflow-wrap: anywhere; }
.cv-sheet h2 { font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.8rem); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.cv-head + h2, .acc-tools + .cv-head + h2 { margin-top: 0; }
.cv-item { margin-bottom: 1.25rem; }
.cv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; flex-wrap: wrap; }
.cv-row strong { font-weight: 600; }
.cv-row span { color: var(--muted); font-size: 0.925rem; }
.cv-sub { color: var(--accent); font-weight: 500; }
.cv-item ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.cv-item li { margin-bottom: 0.4rem; }
.cv-item li::marker { color: var(--accent); }
.cv-item li strong, .cv-item p strong { color: var(--ink); font-weight: 600; }
.cv-item p { margin: 0.4rem 0 0; color: var(--muted); }
.cv-refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.cv-ref { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); break-inside: avoid; }
.cv-ref strong { font-weight: 600; }
.cv-ref span { color: var(--muted); font-size: 0.95rem; }
.cv-ref a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.cv-ref a:hover { text-decoration: underline; }

/* ---------- Expandable entries ---------- */
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.acc-title { flex: 1; min-width: 0; }
.acc-head .org { margin-bottom: 0; }
.acc-head:hover h3, .acc-head:focus-visible h3 { color: var(--accent); }
.acc-chev {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.acc-chev svg { width: 1rem; height: 1rem; }
.acc-head:hover .acc-chev, .acc-head:focus-visible .acc-chev { border-color: var(--accent); color: var(--accent); }
.acc-open .acc-chev { transform: rotate(180deg); background: var(--tint); }
.acc-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.42s var(--ease), opacity 0.3s var(--ease); }
.acc-open > .acc-body, .acc-open .acc-body { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.42s var(--ease), opacity 0.35s var(--ease) 0.06s; }
.acc-inner { min-height: 0; overflow: hidden; }
.acc-meta { cursor: pointer; }
.cv-item.acc-item { padding: 0.9rem 0; margin: 0; border-top: 1px solid var(--rule); }
.cv-sheet h2 + .cv-item.acc-item { border-top: 0; padding-top: 0.25rem; }
.acc-tools { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }
.acc-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--ink);
  font: 500 0.925rem/1 var(--sans);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.14s var(--ease);
}
.acc-all:hover { border-color: var(--accent); color: var(--accent); }
.acc-all:active { transform: scale(0.97); }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
  font-size: 0.975rem;
}
.footer-sign { font: 300 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--serif); margin: 0; max-width: 14ch; color: var(--ink); }
.footer-sign em { color: var(--accent); }
.site-footer h4 { margin-bottom: 0.75rem; }
.site-footer a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer li span { color: var(--muted); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1rem; }

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
  display: none;
  place-items: center;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
.back-to-top.show { display: grid; }
.back-to-top svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Page transition: dusk sweeps up between pages ---------- */
.veil {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 150vh;
  z-index: 2000;
  pointer-events: none;
  border-radius: 50% 50% 0 0 / 14vh 14vh 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sun) 55%, var(--ground)) 0, color-mix(in srgb, var(--accent) 22%, var(--ground)) 7vh, var(--ground) 18vh, var(--ground) 100%);
  transform: translateY(100vh);
  will-change: transform;
}
html.veil-in .page { opacity: 0; animation: showPage 0s 1.5s forwards; }
@keyframes showPage { to { opacity: 1; } }

/* Content eases in as it scrolls into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero, .close-inner, .focus-head, .section-head, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: start; }
  .hero-figure { justify-self: start; width: min(100%, 22rem); }
  .hero-copy { margin-bottom: 0; }
  .section-head .link-arrow { justify-self: start; }
  .strip-item { grid-template-columns: 3rem minmax(0, 1fr); }
  .strip-item p { grid-column: 2; }
  .slide { grid-template-columns: minmax(0, 1fr); }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-sign { grid-column: 1 / -1; }
  .sun { left: 70%; }
}
@media (max-width: 54rem) {
  .menu-toggle { display: inline-grid; }
  .nav-slider { display: none; }
  /* the menu slides in sideways as a frosted panel */
  .brand, .menu-toggle, .theme-switch { position: relative; z-index: 2; }
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(82vw, 21rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.75rem 1.5rem max(2rem, env(safe-area-inset-bottom));
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--frost);
    backdrop-filter: var(--frost);
    border-left: 1px solid var(--glass-edge);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
  }
  .nav-list.open { transform: none; visibility: visible; transition: transform 0.38s var(--ease), visibility 0s; }
  .nav-list li { border-top: 1px solid var(--rule); }
  .nav-list li:first-child { border-top: 0; }
  .nav-link { display: flex; padding: 0.85rem 0; font-size: 1.05rem; color: var(--ink); border: 0; }
  .nav-link.active { color: var(--accent); }
  .nav-list.sliding li { animation: none; }
  .nav-list.open li { animation: navDrop 0.35s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
  .mtn-link { align-items: center; gap: 0.75rem; line-height: 1.4; }
  .mtn { height: 1.5rem; }
  .mtn-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .mtn-text .mtn { opacity: 1; }
  .mtn-text .mtn-label { position: static; display: inline; opacity: 1; }
  .header-right { gap: 0.75rem; }
}
@media (max-width: 40rem) {
  .logo-word { font-size: 1.1rem; }
  .logo-mark { height: 2rem; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .cv-refs { grid-template-columns: minmax(0, 1fr); }
  .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer > div:nth-of-type(1) { grid-column: 1 / -1; }
  .car-count { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 26rem) {
  .logo-word { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-mark.draw .lg { animation: none; stroke-dashoffset: 0; }
  .logo-mark, .logo-word::after { transition: none; }
  .mtn-link .sk { animation: none !important; }
  .mtn-text .mtn, .mtn-text .mtn-label { transition: none; }
  .nav-list.sliding li, .nav-list.open li { animation: none; }
  .nav-slider { transition: none; }
  .strip-item .bar, .strip-item .trend-line, .strip-item .trend-dot, .strip-item .coin { animation: none !important; }
  .save7-mark .v7 { animation: none !important; }
  .sun::before { animation: none; }
  .carousel-track { scroll-behavior: auto; }
  .car-dot::before { transition: none; }
  .acc-body, .acc-open .acc-body, .acc-chev { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .car-btn, .acc-all, .theme-switch::after { transition: none; }
  .nav-list, .nav-list.open { transition: none; }
}

/* ---------- Print (the CV PDF is printed from cv.html?print) ---------- */
@page { size: A4; margin: 14mm 15mm; }
@media print {
  html { font-size: 74%; }
  body, body.dark-mode {
    --ground: #fff; --paper: #fff; --ink: #1c2321; --muted: #4a524e; --accent: #7d4f6b; --rule: #cfd2ce; --outline: #b9bdb9;
    background: #fff; color: #1c2321;
  }
  .site-header, .site-footer, .back-to-top, .cv-bar, .page-title, .page-lede, .veil, .horizon { display: none !important; }
  .page::before, .close::before { display: none !important; }
  main:not(.home) { padding: 0; margin: 0; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cv-sheet { border: 0; padding: 0; background: #fff; border-radius: 0; }
  .cv-name { font-size: 2.4rem; }
  .cv-head { margin-bottom: 1.1rem; padding-bottom: 0.8rem; }
  .cv-sheet h2 { font-size: 1.45rem; margin: 1.4rem 0 0.6rem; break-after: avoid; }
  .cv-head + h2 { margin-top: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cv-item { break-inside: avoid; margin-bottom: 0.9rem; }
  .acc-body { grid-template-rows: 1fr !important; opacity: 1 !important; }
  .acc-chev, .acc-tools { display: none !important; }
  .acc-head { cursor: auto; }
  .cv-item.acc-item { padding: 0; margin: 0 0 0.9rem; border: 0; }
  .cv-ref { padding: 0.5rem 0; }
  a { color: var(--accent); }
}
