@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&family=Instrument+Serif:wght@400&display=swap');

:root{
  --bg:#FFFFFF;
  --surface:#FAFAF8;
  --ink:#171512;
  --ink-soft:#6b665c;
  --line:rgba(23,21,18,0.1);
  --accent:#5364FA;       /* primary colour */
  --accent-ink:#3F4EDB;   /* primary as text on light backgrounds (6.3:1) */
  --accent-deep:#3846C8;  /* hover / pressed */
  --accent-soft:#ECEEFF;
  --chip:#F2F0EB;
  --linkedin:#0A66C2;       /* LinkedIn brand blue */
  --linkedin-deep:#004182;  /* LinkedIn's darker blue, used for hover/pressed */
  --serif:'Domine', Georgia, serif;
  --sans:'Inter', system-ui, sans-serif;
  --ruler-size:24px;
  --cta-radius:8px;
  color-scheme:light;
}
/* Dark theme — toggled via the header button (theme.js sets
   data-theme on <html> and persists the choice in localStorage; there is
   no automatic prefers-color-scheme default, matching "one toggle button"
   as asked rather than also following the OS setting).
   --accent and --accent-deep are deliberately UNCHANGED here: --accent
   (#1B8A82) already has solid contrast against both a white and a near-
   black background (4.2:1 / 4.4:1), and --accent-deep is the color used
   for the *fill* of hover/pressed solid buttons — it has to stay dark
   enough to hold contrast against the white text sitting on top of it in
   both themes, which is a completely different constraint from --accent-
   ink's job (readable *as text* directly on the page background). That's
   why they're two separate tokens instead of one reused value: a color
   that's dark enough for white-on-top text is, by construction, too dark
   to read as text on a near-black page, and a color bright enough to read
   on a dark page is too light for white button text to sit on. Contrast
   checked against WCAG AA (4.5:1 text, 3:1 UI/large text) for every pair:
   bg/ink 16.2:1, bg/ink-soft 8.5:1, surface/ink 15.0:1, accent-ink/bg
   8.9:1, accent/bg 4.4:1, accent-deep/white 7.4:1 (button fill), chip/
   ink-soft 7.1:1, accent-soft/accent-ink 6.2:1. */
:root[data-theme="dark"]{
  --bg:#0E0E0E;
  --surface:#1A1A1A;
  --ink:#F5F4F2;
  --ink-soft:#A3A29D;
  --line:rgba(255,255,255,0.14);
  --accent-ink:#8E9AFF;
  --accent-soft:#1D2250;
  --chip:#232323;
  color-scheme:dark;
}
/* the hero is exempted from dark mode entirely, per what was asked — it
   re-declares every theme token back to its light-mode value, scoped only
   to this section. Everything inside (buttons,
   the hero-visual gradient, nav-linkedin in the header above it, etc.) is
   already written against these same custom properties, so re-defining
   them here is enough to keep the whole subtree light without touching
   any of those rules individually — CSS custom properties cascade like
   any other inherited value. */
:root[data-theme="dark"] section.hero{
  --bg:#FFFFFF;
  --surface:#FAFAF8;
  --ink:#171512;
  --ink-soft:#6b665c;
  --line:rgba(23,21,18,0.1);
  --accent-ink:#3F4EDB;
  --accent-soft:#ECEEFF;
  --chip:#F2F0EB;
  color-scheme:light;
  background:var(--bg);
  color:var(--ink);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; scrollbar-gutter:stable;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}
body{transition:background-color .25s ease, color .25s ease;}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans); font-size:16px; line-height:1.4; -webkit-font-smoothing:antialiased; padding-top:var(--ruler-size);}

/* site loader — modeled on the Framer "Haytham Preloader" component,
   traced frame-by-frame from its live demo (no inspectable source, since
   it's a compiled/obfuscated Framer component): "Nik" wipes in, a photo
   window pops in right after it (never covering a letter — "unj" still
   follows), crossfades through several images, then that same window
   (not a new element) scales up in place until it fills the screen, and
   the whole loader fades out. Plays on every visit (first and repeat),
   per what was asked — no "seen before" localStorage skip like most
   preloaders use. */
#site-loader{
  position:fixed; inset:0; z-index:99999; background:#000;
  display:none; align-items:center; justify-content:center;
  transition:opacity .4s cubic-bezier(.22,1,.36,1);
}
#site-loader.is-loading{display:flex;}
#site-loader.is-done{opacity:0; pointer-events:none;}
.loader-name{
  font-family:var(--serif); font-weight:600; font-size:clamp(48px,9vw,130px);
  letter-spacing:-.01em; color:#fff; display:flex; align-items:center; line-height:1;
}
.loader-letter{display:inline-block; position:relative; opacity:0;}
.loader-name.is-in .loader-letter{
  /* each letter's own animation-delay is set inline by loader.js (indexed
     by letter position, not DOM position), since the image slot spliced
     between "k" and "u" is a sibling, not a lettered nth-child */
  animation:loader-letter-wipe .46s cubic-bezier(.22,1,.36,1) both;
}
.loader-img-slot{
  display:inline-block; position:relative; width:1em; height:.82em;
  margin:0 .16em; opacity:0; transform:translateY(4px) scale(.94);
  transition:opacity .34s ease, transform .42s cubic-bezier(.22,1,.36,1);
}
.loader-img-slot.is-visible{opacity:1; transform:translateY(0) scale(1);}
.loader-img-box{position:absolute; inset:0; overflow:hidden; transform-origin:0 0;}
.loader-img-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  display:block; opacity:0;
}
.loader-img-slide.is-active{opacity:1; transition:opacity .32s ease;}
.loader-img-box::after{content:""; position:absolute; inset:0; z-index:3; background:#fff; opacity:0; transition:opacity .32s ease;}
.loader-img-box.is-final::after{opacity:1;}
.loader-img-box.is-expanding{
  z-index:2; will-change:transform;
}
@keyframes loader-letter-wipe{
  from{opacity:0; clip-path:inset(0 100% 0 0); transform:translateY(6px);}
  to{opacity:1; clip-path:inset(0 0 0 0); transform:translateY(0);}
}
@media (prefers-reduced-motion: reduce){
  #site-loader, #site-loader.is-loading{display:none;}
}

/* Blueprint skeleton — dotted construction lines resolve into the live page. */
.blueprint-loader{
  --blueprint-bg:#FFFFFF;
  --blueprint-line:rgba(23,21,18,.23);
  --blueprint-dot:rgba(23,21,18,.12);
  --blueprint-point:rgba(23,21,18,.42);
  position:fixed; inset:0; z-index:99998; overflow:hidden;
  background:var(--blueprint-bg); opacity:1; cursor:progress;
  transition:opacity .35s ease;
}
:root[data-theme="dark"] .blueprint-loader{
  --blueprint-bg:#0E0E0E;
  --blueprint-line:rgba(245,244,242,.24);
  --blueprint-dot:rgba(245,244,242,.12);
  --blueprint-point:rgba(245,244,242,.46);
}
.blueprint-loader.has-blueprint{background:transparent;}
.blueprint-loader.is-done{opacity:0; pointer-events:none;}
.blueprint-loader__art, .blueprint-loader__art > svg{position:absolute; inset:0; width:100%; height:100%; display:block;}
.blueprint-paper{fill:var(--blueprint-bg);}
.blueprint-grid-dot{fill:var(--blueprint-dot);}
.blueprint-outline{fill:none; stroke:var(--blueprint-line); stroke-width:1; stroke-dasharray:2 4;}
.blueprint-handle{fill:var(--blueprint-bg); stroke:var(--blueprint-point); stroke-width:1;}
.blueprint-text-line{stroke:var(--blueprint-line); stroke-width:1.5; stroke-dasharray:1 4; stroke-linecap:round;}
.blueprint-node{fill:var(--blueprint-point);}
.blueprint-crosshair{fill:none; stroke:var(--blueprint-point); stroke-width:1;}
.blueprint-part{animation:blueprint-draw .45s ease both; animation-delay:var(--draw-delay);}
.blueprint-hole{opacity:0; transition:opacity .55s cubic-bezier(.22,1,.36,1); transition-delay:var(--resolve-delay);}
.blueprint-loader.is-resolving .blueprint-hole{opacity:1;}
.blueprint-loader__caption{
  position:absolute; left:32px; bottom:max(24px,env(safe-area-inset-bottom));
  display:flex; gap:12px; align-items:center; padding:8px 12px;
  border:1px solid var(--blueprint-line); border-radius:4px;
  background:var(--blueprint-bg); color:var(--ink-soft);
  font:11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing:.03em;
}
.blueprint-loader__dots{font-size:18px; line-height:12px; animation:blueprint-pulse 1s ease-in-out infinite;}
@keyframes blueprint-draw{from{opacity:0;}to{opacity:1;}}
@keyframes blueprint-pulse{0%,100%{opacity:.3;}50%{opacity:1;}}
@media (max-width:767px){.blueprint-loader__caption{left:16px; bottom:max(16px,env(safe-area-inset-bottom));}}
@media (prefers-reduced-motion:reduce){.blueprint-loader{display:none;}}

/* fixed design-tool rulers — see ruler.js */
.ruler-h{position:fixed; top:0; left:0; width:100vw; height:var(--ruler-size); z-index:9999; pointer-events:none; display:block;}
.ruler-v{position:fixed; top:0; left:0; width:var(--ruler-size); height:100vh; z-index:9999; pointer-events:none; display:block;}
/* the rulers are hidden on mobile (they take room and did not look right); --ruler-size is 0 there so no spacing is reserved for them */
@media (max-width:767px){ :root{--ruler-size:0px;} .ruler-h, .ruler-v{display:none;} }
h1,h2,h3,p{line-height:1.4;}
.wrap{max-width:1080px; margin:0 auto; padding:0 32px;}
section[id]{scroll-margin-top:88px;}
a{color:inherit; text-decoration:none;}
::selection{background:var(--accent); color:#fff;}

/* pixel icons — pixelarticons.com, inlined as SVG */
.icon{display:inline-flex; width:1em; height:1em; flex-shrink:0; vertical-align:-0.15em;}

/* CTA hover interaction — ported from complexlaw.co.uk's hero button:
   the icon sits fully collapsed at rest and slides/fades in on hover
   (button padding tightens slightly at the same time so the button's
   overall footprint barely changes), and a dashed SVG border "marches"
   around the button for as long as it's hovered. */
.btn, .guide-card-btn, .nav-linkedin{ position:relative; }
/* CTA icons: hidden at rest, they slide in on hover with exactly 8px between the icon and the
   label (margin on the side facing the text: .cta-icon-lead = icon before the text,
   .cta-icon-trail = icon after it). The button's side padding shrinks by half of the icon +
   gap, so the button keeps its width and the label + icon pair stays centred in it. */
.btn, .guide-card-btn{ --cta-icon:1em; }
.guide-card-btn{ --cta-icon:14px; }
.btn .icon, .guide-card-btn .icon{ width:0; height:var(--cta-icon); margin:0; opacity:0; overflow:hidden; flex-shrink:0; transition:width .2s ease, margin .2s ease, opacity .2s ease; }
.btn:hover .icon, .guide-card-btn:hover .icon{ width:var(--cta-icon); opacity:1; }
.cta-icon-lead:hover .icon{ margin-right:8px; }
.cta-icon-trail:hover .icon{ margin-left:8px; }
.btn:hover{ padding-left:calc(24px - (1em + 8px) / 2); padding-right:calc(24px - (1em + 8px) / 2); }
.nav-linkedin .icon{ width:0; opacity:0; overflow:hidden; }

.cta-border{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:2; }
.cta-border rect{ rx:calc(var(--cta-radius) - .5px); ry:calc(var(--cta-radius) - .5px); fill:none; stroke:currentColor; stroke-width:1; stroke-dasharray:4 4; opacity:0; transition:opacity .2s ease; }
.btn:hover .cta-border rect, .guide-card-btn:hover .cta-border rect, .nav-linkedin:hover .cta-border rect, .nav-resume:hover .cta-border rect, .theme-toggle:hover .cta-border rect, .view-toggle:hover .cta-border rect, .nav-burger:hover .cta-border rect, .nav-burger:focus-visible .cta-border rect{ opacity:.6; animation:cta-dash-move .4s linear infinite; }
@keyframes cta-dash-move{ to{ stroke-dashoffset:-8; } }
@media (prefers-reduced-motion: reduce){
  .btn .icon, .guide-card-btn .icon{ transition:none; }
  .cta-border rect{ animation:none !important; }
}

/* CTA states — Pressed rules live next to each element's own :hover further
   down (equal specificity, so source order after :hover is what makes the
   pressed look actually win while the mouse is both hovering and down).
   Complex Law has no custom :active rule of its own (hover styling just
   holds through the click); Pressed here is our own addition. Focus-visible
   and Disabled below apply everywhere. */

.btn:focus-visible, .guide-card-btn:focus-visible, .nav-linkedin:focus-visible{
  outline:3px solid var(--accent); outline-offset:2px;
}

.btn.is-disabled, .guide-card-btn.is-disabled, .nav-linkedin.is-disabled,
.btn[aria-disabled="true"], .guide-card-btn[aria-disabled="true"], .nav-linkedin[aria-disabled="true"]{
  opacity:.25; filter:grayscale(1); pointer-events:none;
}

.icon svg{width:100%; height:100%; fill:currentColor;}
.section-icon{display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:var(--accent-soft); color:var(--accent-ink); margin-right:12px; flex-shrink:0;}
.section-icon .icon{width:18px; height:18px;}
.block-head h2.block-title{display:flex; align-items:center;}

/* header */
header.top{position:sticky; top:var(--ruler-size); z-index:50; backdrop-filter:blur(10px); background:color-mix(in srgb, var(--bg) 82%, transparent); border-bottom:1px solid var(--line);}
/* the 24px vertical ruler covers the left edge of the screen, so the left padding adds its width: the gap to the ruler then equals the gap on the right */
.top-inner{display:flex; align-items:center; justify-content:space-between; max-width:none; margin:0; padding:16px 32px 16px calc(32px + var(--ruler-size)); gap:24px;}
@media (max-width:767px){ .top-inner{padding:16px 16px 16px calc(16px + var(--ruler-size));} }
@media (max-width:480px){ .top-inner{gap:8px;} }
@media (max-width:360px){ .brand .logo{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;} }
.brand{display:flex; align-items:center; gap:8px; flex-shrink:0;}
.avatar{width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg, var(--accent), var(--accent-deep)); color:#fff; font-family:var(--serif); font-size:14px; display:flex; align-items:center; justify-content:center; font-weight:600; flex-shrink:0;}
.avatar{overflow:hidden; background:var(--chip);}
.avatar img{display:block; width:100%; height:100%; object-fit:cover; border-radius:50%;}
.logo{font-family:var(--serif); font-size:20px; font-weight:600; flex-shrink:0;}
nav.links{display:flex; gap:4px; font-size:14px; font-weight:500; overflow-x:auto; scrollbar-width:none;}
nav.links::-webkit-scrollbar{display:none;}
nav.links a{color:var(--ink-soft); transition:color .15s, background .15s; white-space:nowrap; padding:8px 16px; border-radius:var(--cta-radius);}
nav.links a:hover{color:var(--ink); background:var(--chip);}
nav.links a.active{color:var(--bg); background:var(--ink);}
.nav-side{display:flex; align-items:center; gap:8px; flex-shrink:0;}
.theme-toggle{display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:var(--cta-radius); border:1px solid var(--line); background:transparent; color:var(--ink-soft); cursor:pointer; transition:background .15s, color .15s, border-color .15s; flex-shrink:0;}
.theme-toggle:hover{background:var(--chip); color:var(--ink); border-color:transparent;}
.theme-toggle{position:relative;}
.view-toggle:hover{border-color:transparent;}
.view-toggle .cta-border{z-index:3;}
.theme-toggle:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
.theme-toggle .icon{width:18px; height:18px;}
.sound-toggle{
  position:fixed; right:calc(24px + env(safe-area-inset-right,0px)); bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:100000;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px;
  border:1px solid var(--line); border-radius:var(--cta-radius); background:var(--bg); color:var(--ink);
  box-shadow:0 4px 20px rgba(0,0,0,.12); cursor:pointer; font:500 12px/1.4 var(--sans);
}
.sound-toggle .icon{width:18px; height:18px;}
.sound-toggle:hover{background:var(--chip); color:var(--ink);}
.sound-toggle:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
[data-sound-toggle][aria-pressed="true"] .sound-off,
[data-sound-toggle]:not([aria-pressed="true"]) .sound-waves{display:none;}
@media (max-width:767px){.sound-toggle{right:calc(16px + env(safe-area-inset-right,0px)); bottom:calc(16px + env(safe-area-inset-bottom,0px));}}
.theme-toggle .theme-icon-moon{display:none;}
:root[data-theme="dark"] .theme-toggle .theme-icon-sun{display:none;}
:root[data-theme="dark"] .theme-toggle .theme-icon-moon{display:inline-flex;}
.nav-linkedin{display:inline-flex; align-items:center; gap:0; background:var(--linkedin); color:#fff; font-size:14px; font-weight:600; padding:8px 16px; border-radius:var(--cta-radius); transition:padding .2s ease, transform .15s, box-shadow .15s, background .15s; flex-shrink:0;}
.nav-linkedin:hover{background:var(--linkedin-deep); transform:translateY(-1px);}
.nav-linkedin:active{ transform:translateY(0); box-shadow:none; }
.nav-linkedin:focus-visible{outline-color:var(--linkedin);}
/* Nav CTAs: LinkedIn is icon-only, Resume sits beside it. Both match the 36px theme toggle. */
.nav-side .nav-linkedin, .nav-side .nav-linkedin:hover{width:36px; height:36px; padding:0; justify-content:center;}
.nav-side .nav-linkedin .icon, .nav-side .nav-linkedin:hover .icon{width:18px; height:18px; opacity:1; overflow:visible; transition:none;}
.nav-resume{display:inline-flex; align-items:center; justify-content:center; gap:8px; height:36px; padding:0 14px; border:1px solid var(--line); border-radius:var(--cta-radius); background:transparent; color:var(--ink); font-size:14px; font-weight:600; white-space:nowrap; flex-shrink:0; transition:background .15s, border-color .15s, transform .15s;}
.nav-resume:hover{background:var(--chip); border-color:transparent; transform:translateY(-1px);}
.nav-resume{position:relative;}
.nav-resume:active{transform:translateY(0);}
.nav-resume:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
.nav-resume .icon{width:16px; height:16px;}
@media (max-width:480px){
  .nav-resume{width:36px; padding:0;}
  .nav-resume-label{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
}
/* the header drops the nav onto its own row below 1000px: in a single row the four links do not fit beside the controls between about 720 and 1000px */
@media (max-width:999px){
  .top-inner{flex-wrap:wrap; gap:12px 8px;}
  .nav-side{margin-left:auto;}
  nav.links{order:3; flex:0 0 100%; min-width:0; gap:0;}
  nav.links a{padding:8px 10px; font-size:13px; flex-shrink:0;}
  section[id], .abt-sub{scroll-margin-top:136px;}
}
@media (min-width:721px) and (max-width:999px){
  nav.links{gap:4px;}
  nav.links a{padding:8px 16px; font-size:14px;}
}

/* hero */
section.hero{padding:96px 0 0; border-bottom:1px solid var(--line);}
.hero-eyebrow{font-size:12px; color:var(--accent-ink); font-weight:600; letter-spacing:.04em; margin-bottom:16px; display:flex; align-items:center; justify-content:center; gap:8px;}
.eyebrow-word{display:inline-block; min-width:72px; transition:opacity .4s ease, transform .4s ease;}
.eyebrow-word.fade{opacity:0; transform:translateY(4px);}
@media (prefers-reduced-motion: reduce){ .eyebrow-word{transition:none;} }
/* wrapper around the hero heading. It used to draw a "selection box" (a border
   with corner handles); that decoration has been removed, so it adds no padding
   and the heading lines up with the text around it. */
.bbox-wrap{position:relative; display:block; width:fit-content; max-width:960px; margin:0 auto 24px; padding:0;}
h1.hero-title{font-family:var(--serif); font-weight:500; font-size:clamp(32px,4.2vw,48px); line-height:1.4; letter-spacing:-.01em; margin:0; text-align:center;}
h1.hero-title em{font-style:italic; color:var(--accent-ink); font-weight:300;}
p.hero-sub{font-size:16px; color:var(--ink-soft); max-width:760px; margin:0 auto 32px; text-align:center;}
@media (max-width:480px){
  h1.hero-title{font-size:28px;}
}
@media (max-width:480px){ .hero-grid h1.hero-title{font-size:28px;} }
.hero-actions{display:flex; gap:16px; flex-wrap:wrap; justify-content:center;}
/* two-column hero: heading, subheading and buttons on the left, the image on
   the right. Below 900px it stacks again, centred, as before. */
.hero-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:56px;}
.hero-copy{padding-bottom:72px;}
.hero-grid .hero-eyebrow{justify-content:flex-start;}
.hero-grid h1.hero-title{font-size:clamp(30px,3.3vw,44px);}
.hero-grid .bbox-wrap{margin:0 0 24px; max-width:100%;}
.hero-grid h1.hero-title, .hero-grid p.hero-sub{text-align:left;}
.hero-grid p.hero-sub{margin:0 0 32px; max-width:520px;}
.hero-grid p.hero-sub br{display:none;}
.hero-grid .hero-actions{justify-content:flex-start;}
.hero-grid .hero-visual{margin:0; justify-self:end; width:100%; max-width:600px;}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:0;}
  .hero-copy{padding-bottom:0;}
  .hero-grid h1.hero-title{font-size:clamp(32px,4.2vw,48px);}
  .hero-grid .hero-eyebrow{justify-content:center;}
  .hero-grid .bbox-wrap{margin:0 auto 24px;}
  .hero-grid h1.hero-title, .hero-grid p.hero-sub{text-align:center;}
  .hero-grid p.hero-sub{margin:0 auto 32px; max-width:760px;}
  .hero-grid .hero-actions{justify-content:center;}
  .hero-grid .hero-visual{margin:48px auto 0; justify-self:center; width:min(100%,520px);}
}
.btn{display:inline-flex; align-items:center; gap:0; padding:16px 24px; border-radius:var(--cta-radius); font-size:14px; font-weight:500; transition:padding .2s ease, transform .15s, background .15s;}
.btn-primary{background:var(--accent); color:#fff;}
.btn-primary:hover{background:var(--accent-deep); transform:translateY(-2px);}
.btn-primary:active{ transform:translateY(0); }
.btn-ghost{border:1px solid var(--line); background:transparent;}
.btn-ghost:hover{border-color:transparent; background:var(--chip);}
.btn-ghost:active{ background:var(--accent-soft); border-color:transparent; }

/* hero visual — arched glow niche, ready for a real photo */
.hero-visual{width:min(90%,440px); aspect-ratio:4/5; margin:64px auto 0; border-radius:220px 220px 20px 20px; background:radial-gradient(ellipse 85% 65% at 50% 32%, var(--accent-soft), var(--chip) 72%); position:relative; overflow:hidden; display:flex; align-items:flex-end; justify-content:center; padding-bottom:24px;}
.hero-visual .icon{width:96px; height:96px; color:var(--ink-soft); opacity:.35;}
/* cut-out portrait (transparent background) standing in the arch: scaled up and pushed down so the round bottom edge of the photo falls below the arch and is cropped */
/* free-standing cut-out portrait: no arch, no background, no clipping */
.hero-visual{aspect-ratio:auto; border-radius:0; background:none; overflow:visible; padding-bottom:0; display:block;}
.hero-visual img{display:block; position:static; transform:scaleX(-1); width:100%; height:auto; max-width:none; margin:0 auto;}
/* Every visible portrait dot is drawn in canvas; SVG is the no-JavaScript fallback. */
.hero-grid .hero-portrait{--story-bleed:clamp(16px,calc((100vw - 1080px) / 2 + 32px),80px); position:relative; align-self:end; width:min(100%,400px); aspect-ratio:1194/1600; overflow:visible;}
.hero-portrait img{position:absolute; inset:auto 0 0; width:100%; height:auto; object-fit:contain; transform:none;}
.portrait-story{position:absolute; left:calc(-1 * var(--story-bleed)); top:-40px; width:calc(100% + 2 * var(--story-bleed)); height:calc(100% + 40px); pointer-events:none; color:var(--ink);}
.portrait-particles{position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; z-index:1;}
@media (max-width:900px){.hero-grid .hero-portrait{--story-bleed:min(80px,calc((100vw - 100%) / 2 - 16px)); width:min(100%,360px); margin-top:32px;}}

/* "canvas margin" texture — ported from wonder.design, which actually runs
   TWO variants of this idea (confirmed by reading their live computed
   styles): a diagonal-hairline tile (.bg-stripes) on dark sections, and a
   plain CSS dot-grid (.bg-stripes-inverted — no image asset at all) on
   light ones:
     background-image: radial-gradient(circle, rgba(0,0,0,.07) 1px, transparent 1px);
     background-size: 6px 6px;
   Their split is tied to section theme; our whole site is light, so there's
   no dark section to hang the hairline on. Per what was asked, both
   patterns are used anyway, alternating per section for variety — .canvas-
   dots / .canvas-lines go directly on each top-level section (full-bleed,
   so the texture can differ section to section), and .canvas-inner is the
   actual solid-white content column, narrower than the section itself, so
   the texture only ever shows in the leftover gutter around it — same
   layering idea as their own sections use, just able to vary per section
   now instead of being fixed once on body. */
body.canvas-page{background:var(--surface);}
body.canvas-page > section.canvas-dots,
body.canvas-page > section.canvas-lines{background-color:var(--surface);}
body.canvas-page > section.canvas-dots{
  background-image:radial-gradient(circle, rgba(23,21,18,.14) 1px, transparent 1px);
  background-size:6px 6px;
}
body.canvas-page > section.canvas-lines{
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6'%20height='6'%3E%3Cpath%20d='M0%206L6%200'%20stroke='rgba(23,21,18,0.16)'%20stroke-width='1'/%3E%3C/svg%3E");
}
/* dark-theme variants — a data-URI can't reference a CSS variable, so the
   dot/line colors need their own explicit override here (light dots/lines
   on the dark surface, instead of dark-on-light). */
:root[data-theme="dark"] body.canvas-page > section.canvas-dots{
  background-image:radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1px);
}
:root[data-theme="dark"] body.canvas-page > section.canvas-lines{
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6'%20height='6'%3E%3Cpath%20d='M0%206L6%200'%20stroke='rgba(255,255,255,0.18)'%20stroke-width='1'/%3E%3C/svg%3E");
}
/* Home and Guides pages, for now: no decorative dot-grid / diagonal-hairline texture
   in the side gutters — they fall back to the flat surface colour. To bring
   the texture back, delete the `no-deco` class from <body> in index.html / guides.html. */
body.canvas-page.no-deco > section.canvas-dots,
body.canvas-page.no-deco > section.canvas-lines,
:root[data-theme="dark"] body.canvas-page.no-deco > section.canvas-dots,
:root[data-theme="dark"] body.canvas-page.no-deco > section.canvas-lines{background-image:none;}
.canvas-inner{
  background:var(--bg); margin:0 60px 0 calc(60px + var(--ruler-size)); position:relative;
  border-left:1px solid var(--line); border-right:1px solid var(--line);
}
@media (max-width:900px){
  .canvas-inner{margin:0; border-left:none; border-right:none;}
}
/* each section's own top/bottom padding used to live on the section itself
   — but the section is the full-width textured box, so that padding was a
   gap the texture showed through edge-to-edge (a full-width band above and
   below the white content, not just the side margins where it belongs).
   Moving the same padding values onto .canvas-inner instead makes the
   white background span the section's full height, so the texture is
   confined strictly to the left/right gutters, never top or bottom. */
body.canvas-page > section.canvas-dots,
body.canvas-page > section.canvas-lines{padding:0;}
body.canvas-page > section.hero .canvas-inner{padding:96px 0 80px;}
body.canvas-page > section.block .canvas-inner{padding:88px 0;}
body.canvas-page > section.testimonials .canvas-inner{padding:96px 0;}
/* the header's usual translucent blur lets the texture show through behind
   it at the top of the page — solid it here so the nav bar reads cleanly. */
/* top bar: "liquid glass" — mostly transparent, so the page shows through blurred and
   slightly saturated, with a bright top edge and a soft inner glow like a glass pane. */
body.canvas-page header.top{
  background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 46%, transparent), color-mix(in srgb, var(--bg) 22%, transparent));
  -webkit-backdrop-filter:blur(22px) saturate(1.8) brightness(1.04); backdrop-filter:blur(22px) saturate(1.8) brightness(1.04);
  border-bottom:1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(255,255,255,.18);
}
:root[data-theme="dark"] body.canvas-page header.top{
  background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 52%, transparent), color-mix(in srgb, var(--bg) 28%, transparent));
  -webkit-backdrop-filter:blur(22px) saturate(1.6) brightness(1.1); backdrop-filter:blur(22px) saturate(1.6) brightness(1.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.05);
}
@media (prefers-reduced-transparency: reduce){ body.canvas-page header.top, :root[data-theme="dark"] body.canvas-page header.top{background:var(--bg); -webkit-backdrop-filter:none; backdrop-filter:none;} }
/* "01 / My Projects — Selected work" gets a light cream background instead
   of the plain white every other section uses, to set the projects block
   apart. Dark theme keeps its own dark surface — cream only makes sense as
   a light-mode accent. */
#work.block .canvas-inner{background:var(--pc-surface);}
:root[data-theme="dark"] #work.block .canvas-inner{background:var(--pc-surface);}
/* section shared */
section.block{padding:88px 0; border-bottom:1px solid var(--line);}
.block-head{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:48px; flex-wrap:wrap;}
.block-num{font-family:var(--sans); font-size:12px; color:var(--ink-soft); letter-spacing:.06em;}
.breadcrumb{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-soft);}
.breadcrumb a{color:var(--ink-soft); transition:color .15s;}
.breadcrumb a:hover{color:var(--ink);}
.breadcrumb-sep{color:var(--line);}
.breadcrumb [aria-current="page"]{color:var(--ink); font-weight:600;}
h2.block-title{font-family:var(--serif); font-weight:500; font-size:32px; line-height:1.4; margin:8px 0 0;}
p.block-note{color:var(--ink-soft); font-size:14px; max-width:340px; text-align:right;}
@media (max-width:720px){ p.block-note{text-align:left;} }

.tag-chip{font-size:11px; color:var(--ink-soft); background:var(--chip); padding:4px 8px; border-radius:100px;}

/* ---- section headers shared by "Selected work" and "Testimonials":
   a small pill label above a big centred heading ---- */
.sec-head{display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px; margin-bottom:64px;}
.sec-pill{display:inline-flex; align-items:center; gap:6px; padding:6px 14px 6px 10px; border:1px solid var(--line); border-radius:999px; background:var(--bg); font-size:14px; font-weight:500; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.05);}
.sec-pill .icon{width:16px; height:16px; color:var(--ink-soft);}
h2.sec-title{font-family:var(--serif); font-weight:500; font-size:clamp(32px,4.4vw,52px); line-height:1.2; letter-spacing:-.01em; margin:0;}

/* ---- project cards ("Selected work") ----
   Two-column grid of white cards. Each has a large rounded cover, a title and
   a short description with the key phrases in bold, and a square arrow button
   tucked into a notch cut out of the bottom-right corner. The card outline
   (fill + 1px border, following the notch) is an SVG path that
   home-sections.js sizes to the card; without JS it falls back to a plain
   rounded box. On hover the cover's corners round off, the title takes the
   accent colour and the button turns accent. */
:root{
  --pc-surface:#F6F6F6; --pc-card:#FFFFFF; --pc-line:rgba(0,0,0,.1);
  --pc-btn:#282828; --pc-btn-ink:#FFFFFF;
  --pc-notch-w:93px; --pc-notch-h:104px;
}
:root[data-theme="dark"]{
  --pc-surface:#121212; --pc-card:#1A1A1A; --pc-line:rgba(255,255,255,.14);
  --pc-btn:#F5F4F2; --pc-btn-ink:#171512;
}
.pc-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px;}
.pc-grid > .pc{min-width:0; max-width:100%;}
.pc-grid > .pc:last-child:nth-child(odd){grid-column:1 / -1; justify-self:center; width:calc(50% - 12px);}
.pc{position:relative; display:block; padding:16px; border-radius:24px; background:var(--pc-card); border:1px solid var(--pc-line); color:var(--ink); isolation:isolate;}
.pc.has-shape{background:none; border-color:transparent;}
.pc-shape{position:absolute; inset:0; width:100%; height:100%; overflow:visible; z-index:0; pointer-events:none; display:none;}
.pc.has-shape .pc-shape{display:block;}
.pc-fill{fill:var(--pc-card);}
.pc-line{fill:none; stroke:var(--pc-line); stroke-width:1;}
.pc-body{position:relative; z-index:1; display:flex; flex-direction:column; gap:16px;}
.pc-cover{position:relative; aspect-ratio:551 / 323; overflow:hidden; border-radius:12px; background-size:cover; background-position:center; background-repeat:no-repeat; transition:border-radius .38s cubic-bezier(.483,1.143,.547,1.036);}
.pc-cover.is-cd{background-image:linear-gradient(rgba(125,75,0,.41), rgba(125,75,0,.41)), url('Collegedunia Case Study Images/noise-texture.jpg');}
.pc-cover.is-pp{background-image:url('Prepp Case Study Images/noise-texture-prepp.jpg'); background-position:top center;}
.pc-cover.is-wb{background-image:url('Whiteboard Case Study Images/noise-texture.jpg');}
/* Insure Edge and Achieva CRM have no screenshots yet, so their covers are type-only panels */
.pc-cover.is-ie{background-image:linear-gradient(135deg,#0F4F49 0%,#1B8A82 58%,#7FD1C6 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; color:#fff; padding:24px;}
.pc-cover.is-crm{background-image:linear-gradient(135deg,#1F1D1A 0%,#26433A 52%,#5F9C8C 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; color:#fff; padding:24px;}
.pc-cover-mark{font-family:var(--serif); font-weight:500; font-size:clamp(34px,5vw,56px); line-height:1.1; letter-spacing:-.01em;}
.pc-cover-sub{font-size:14px; font-weight:500; letter-spacing:.02em; opacity:.9;}
/* mockups are centred in the cover with the same 28px inset on every side (28px also keeps them clear of the 72px hover corner radius) */
.pc-cover img{position:absolute; inset:28px; width:calc(100% - 56px); height:calc(100% - 56px); object-fit:contain; object-position:center;}
.pc-text{display:flex; flex-direction:column; gap:8px; min-height:82px; max-width:calc(100% - var(--pc-notch-w));}
.pc-title{font-family:var(--sans); font-weight:600; font-size:24px; line-height:1.2; margin:0; color:var(--ink); transition:color .38s cubic-bezier(.483,1.143,.547,1.036);}
.pc-desc{font-size:16px; line-height:1.4; margin:0; color:color-mix(in srgb, var(--ink) 80%, transparent);}
.pc-desc strong{font-weight:600;}
.pc-go{position:absolute; right:0; bottom:0; z-index:2; width:77px; height:88px; border-radius:var(--cta-radius); background:var(--pc-btn); color:var(--pc-btn-ink); display:grid; place-items:center; overflow:hidden; isolation:isolate;}
.pc-go::before{content:""; position:absolute; inset:0; z-index:-1; background:var(--accent); clip-path:circle(0% at 0 0); transition:clip-path .22s cubic-bezier(.3,.7,.3,1);}
.pc-go .icon{width:24px; height:24px; position:relative;}
.pc:hover .pc-cover, .pc:focus-visible .pc-cover{border-radius:72px;}
.pc:hover .pc-title, .pc:focus-visible .pc-title{color:var(--accent-ink);}
.pc:hover .pc-go, .pc:focus-visible .pc-go{color:#fff;}
.pc:hover .pc-go::before, .pc:focus-visible .pc-go::before{clip-path:circle(150% at 0 0);}
.pc:focus-visible{outline:3px solid var(--accent); outline-offset:4px; border-radius:24px;}
@media (max-width:900px){
  .pc-grid{grid-template-columns:minmax(0,1fr);}
  .pc-grid > .pc:last-child:nth-child(odd){grid-column:auto; width:auto;}
}
@media (max-width:480px){
  .pc-title{font-size:18px;}
  .pc-text{max-width:calc(100% - 77px);}
}
@media (prefers-reduced-motion: reduce){
  .pc-cover, .pc-title, .pc-go::before{transition:none;}
}

/* process (nested inside About) */
.process-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:0; overflow:hidden; margin-top:56px;}
.process-cell{background:var(--surface); padding:24px;}
.process-num{font-family:var(--serif); font-size:20px; color:var(--accent-ink); margin-bottom:16px;}
.process-title{font-weight:600; font-size:14px; margin-bottom:8px;}
.process-body{font-size:12px; color:var(--ink-soft); line-height:1.4;}
@media (max-width:820px){ .process-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .process-grid{grid-template-columns:1fr;} }

/* about — intro */
.abt-intro{max-width:700px; margin-bottom:64px;}
.abt-kicker{font-family:var(--serif); font-style:italic; font-weight:400; font-size:clamp(22px,2.6vw,30px); color:var(--accent-ink); margin:0 0 20px; line-height:1.4;}
.abt-intro p{font-size:16px; color:var(--ink-soft); line-height:1.65; margin:0 0 16px;}
.abt-intro strong{color:var(--ink); font-weight:600;}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:20px;}

/* about — layout with sticky sub-nav */
.abt-layout{display:grid; grid-template-columns:200px minmax(0,1fr); gap:56px; align-items:start;}
.abt-layout > *{min-width:0;}
.abt-content{max-width:700px; width:100%;}
.abt-subnav{position:sticky; top:96px; display:flex; flex-direction:column; gap:2px;}
.abt-subnav a{font-size:13px; font-weight:500; color:var(--ink-soft); padding:10px 14px; border-radius:var(--cta-radius); border-left:2px solid transparent; transition:background .15s, color .15s;}
.abt-subnav a:hover{color:var(--ink); background:var(--chip);}
.abt-subnav a.active{color:var(--ink); background:var(--chip); border-left-color:var(--accent); font-weight:600;}

.abt-sub{padding-top:8px; margin-bottom:96px; scroll-margin-top:96px;}
.abt-sub:last-child{margin-bottom:0;}
.abt-sub-num{font-family:var(--sans); font-size:12px; color:var(--ink-soft); letter-spacing:.06em;}
.abt-sub-title{font-family:var(--serif); font-size:28px; font-weight:500; margin:8px 0 32px; display:flex; align-items:center;}

@media (max-width:900px){
  .abt-layout{grid-template-columns:minmax(0,1fr);}
  .abt-subnav{position:static; flex-direction:row; overflow-x:auto; gap:4px; padding-bottom:4px; scrollbar-width:none;}
  .abt-subnav::-webkit-scrollbar{display:none;}
  .abt-subnav a{white-space:nowrap; border-left:none; border-bottom:2px solid transparent;}
  .abt-subnav a.active{border-left-color:transparent; border-bottom-color:var(--accent);}
}

/* about — timeline */
.abt-tl-tags{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px;}

/* about — journey */
.abt-era{margin-bottom:72px;}
.abt-era + .abt-era{padding-top:48px; border-top:1px solid var(--line);}
.abt-era:last-child{margin-bottom:0;}
.abt-era-label{font-size:12px; letter-spacing:.06em; color:var(--accent-ink); font-weight:600; margin-bottom:8px;}
.abt-era-meta{font-size:14px; color:var(--ink-soft); margin-bottom:12px;}
.abt-era-meta b{color:var(--ink); font-weight:600;}
.abt-era-title{font-family:var(--serif); font-size:26px; font-weight:500; margin:0 0 20px; max-width:640px;}
.abt-era p{font-size:15px; color:var(--ink-soft); line-height:1.65; max-width:680px; margin:0 0 16px;}
.abt-proj-card[id]{scroll-margin-top:120px;}
.abt-proj-card{background:var(--surface); border:1px solid var(--line); border-radius:0; padding:24px; margin-bottom:16px;}
.abt-proj-card h4{font-family:var(--serif); font-size:19px; font-weight:600; margin:0 0 8px;}
.abt-proj-card p{margin:0 0 12px;}
.abt-proj-tags{display:flex; flex-wrap:wrap; gap:8px;}
.abt-cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:24px 0;}
.abt-cat{background:var(--surface); border:1px solid var(--line); border-radius:0; padding:20px;}
.abt-cat-label{font-size:11px; letter-spacing:.05em; color:var(--accent-ink); font-weight:600; margin-bottom:16px;}
.abt-cat-label.is-divider{margin-top:32px;}
.abt-cat ul{margin:0; padding:0; list-style:none; font-size:13px; color:var(--ink-soft); line-height:1.9;}
.abt-metric-row{display:flex; gap:32px; flex-wrap:wrap; margin:20px 0;}
.abt-metric-num{font-family:var(--serif); font-size:32px; color:var(--accent-ink); line-height:1.2;}
.abt-metric-label{font-size:12px; color:var(--ink-soft);}
.ph-row{display:flex; flex-wrap:wrap; gap:12px; margin:24px 0;}
.abt-photo-row{display:flex; flex-wrap:nowrap; gap:14px; margin:24px 0; overflow-x:auto;}
.abt-photo{display:block; width:223.86px; height:126.81px; object-fit:cover; flex:0 0 auto;}
.ph-tile{flex:1 1 130px; background:var(--chip); border:1px dashed var(--line); border-radius:0; padding:20px 12px; text-align:center; color:var(--ink-soft);}
.ph-tile .icon{width:22px; height:22px; margin-bottom:8px;}
.ph-tile span{display:block; font-size:11px; line-height:1.4;}
@media (max-width:720px){ .abt-cat-grid{grid-template-columns:repeat(2,1fr);} }

/* about — selected impact */
.impact-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:0; overflow:hidden;}
.impact-card{background:var(--surface); padding:32px 24px;}
.impact-num{font-family:var(--serif); font-size:40px; color:var(--accent-ink); line-height:1.1;}
.impact-label{font-size:14px; font-weight:600; margin-top:8px;}
.impact-context{font-size:12px; color:var(--ink-soft); margin-top:4px;}
@media (max-width:720px){ .impact-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:480px){ .impact-grid{grid-template-columns:1fr;} }

/* about — what I do */
.capability-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.capability-card{background:var(--surface); border:1px solid var(--line); border-radius:0; padding:24px;}
.capability-icon{width:36px; height:36px; border-radius:10px; background:var(--accent-soft); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.capability-card h4{font-family:var(--serif); font-size:17px; font-weight:600; margin:0 0 6px;}
.capability-card p{font-size:13px; color:var(--ink-soft); margin:0; line-height:1.55;}
@media (max-width:900px){ .capability-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .capability-grid, .abt-cat-grid{grid-template-columns:1fr;} }

/* Keep wide comparison tables scrollable within the page on small screens. */
.case-table-scroll{max-width:100%; overflow-x:auto;}
.case-table-scroll:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}

/* about — how I think */
.principle-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px 32px;}
.principle-card{border-top:1px solid var(--line); padding-top:16px;}
.principle-num{font-family:var(--serif); font-size:13px; color:var(--accent-ink); margin-bottom:8px;}
.principle-card h4{font-family:var(--serif); font-size:17px; font-weight:600; margin:0 0 6px;}
.principle-card p{font-size:13px; color:var(--ink-soft); margin:0; line-height:1.6;}
@media (max-width:720px){ .principle-grid{grid-template-columns:1fr;} }

/* tag pill — used by Quick Guides cards */
.gcard-tag{font-size:11px; font-weight:600; letter-spacing:.04em; color:var(--accent-ink); background:var(--accent-soft); padding:4px 8px; border-radius:100px;}

/* guide cards — real PDF quick guides, shown in a row */
.guide-tabs{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:32px;}
.guide-tab{font-size:13px; font-weight:600; color:var(--ink-soft); background:var(--chip); border:1px solid transparent; padding:9px 16px; border-radius:var(--cta-radius); transition:background .15s, color .15s, border-color .15s;}
.guide-tab:hover{color:var(--ink);}
.guide-tab.active{background:var(--ink); color:var(--bg);}

.guide-card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
/* guide cards — same layout as the blog cards on the reference site: a white 24px-radius
   card with 8px padding, a large rounded cover, then the tag, title and buttons.
   Hovering tilts the cover out of the card (-8deg about its bottom-left corner) and
   drops a soft shadow under it, on a spring (~400ms). The card itself never moves, and
   it doesn't clip, so the tilted cover can overhang its edge. */
.guide-card{position:relative; display:flex; flex-direction:column; gap:20px; padding:8px 8px 20px; background:var(--pc-card); border:1px solid var(--pc-line); border-radius:24px;}
.guide-card:hover, .guide-card:focus-within{z-index:2;}
#guides.block .canvas-inner{background:var(--pc-surface);}
.guide-card-body .gcard-tag{text-transform:none;}
.guide-card-thumb{width:100%; aspect-ratio:664/700; object-fit:cover; object-position:top; display:block; background:var(--chip); border-radius:16px; transform-origin:0 100%;
  box-shadow:0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(0,0,0,0); transition:transform .4s cubic-bezier(.58,1.242,.38,.979), box-shadow .4s cubic-bezier(.58,1.242,.38,.979);}
@media (hover:hover) and (pointer:fine){
  .guide-card:hover .guide-card-thumb, .guide-card:focus-within .guide-card-thumb{transform:rotate(-8deg); box-shadow:-6px 8px 16px 0 rgba(0,0,0,.15), 6px 0 16px 0 rgba(0,0,0,.15);}
}
@media (prefers-reduced-motion: reduce){ .guide-card-thumb{transition:none;} }
.guide-card-body{padding:0 8px; display:flex; flex-direction:column; gap:12px; flex:1;}
.guide-card-body .gcard-tag{align-self:flex-start;}
.guide-card-body h3{font-family:var(--sans); font-weight:500; font-size:20px; line-height:1.25; margin:0; color:var(--ink);}
.guide-card-actions{display:flex; gap:8px; margin-top:auto; padding-top:6px;}
.guide-card-btn{flex:1; display:inline-flex; align-items:center; justify-content:center; gap:0; padding:9px 8px; border-radius:var(--cta-radius); font-size:12.5px; font-weight:600; border:1px solid var(--line); transition:padding .2s ease, background .15s, border-color .15s;}
.guide-card-btn:hover{background:var(--chip); border-color:transparent;}
.guide-card-btn:active{ background:var(--accent-soft); border-color:transparent; }
@media (max-width:820px){ .guide-card-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .guide-card-grid{grid-template-columns:1fr;} }

/* testimonials — "Words on my work" */
section.testimonials{padding:96px 0; border-bottom:1px solid var(--line); overflow:hidden;}
/* ---- testimonials: a continuous side-scrolling row of equal-width cards
   (home-sections.js duplicates the cards and animates the track; it slows
   right down while hovered, and with "reduce motion" it is a plain row you
   can scroll by hand). Each card: the quote on top, author row at the bottom. ---- */
:root{
  --tm-from:#F2F2F2; --tm-to:#EBEBEB; --tm-card:#F6F6F6; --tm-ring:#FFFFFF; --tm-dot:rgba(0,0,0,.16);
}
:root[data-theme="dark"]{
  --tm-from:#151515; --tm-to:#101010; --tm-card:#1D1D1D; --tm-ring:#262626; --tm-dot:rgba(255,255,255,.16);
}
section.testimonials .canvas-inner{background:linear-gradient(var(--tm-from), var(--tm-to));}
/* faint dot grid behind the heading, fading out downward */
.tm-bgdots{position:absolute; inset:0 0 auto 0; height:420px; pointer-events:none; z-index:0;
  background:radial-gradient(circle, var(--tm-dot) 1.5px, transparent 1.6px) 20px 20px / 40px 40px;
  -webkit-mask-image:linear-gradient(#000, transparent); mask-image:linear-gradient(#000, transparent);}
section.testimonials .wrap, .tm-marquee{position:relative; z-index:1;}
.tm-marquee{overflow:hidden; padding:10px 0;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);}
.tm-track{display:flex; gap:24px; width:max-content; margin:0; padding:0 12px; list-style:none; will-change:transform;}
.tm-item{flex:0 0 298px; display:flex;}
.tm-card{transition:transform .18s cubic-bezier(.2,.8,.2,1);}
/* mouse devices: each card sits 52px lower in its slot and rises into the free space on hover/focus */
@media (hover:hover) and (pointer:fine){
  .tm-marquee{margin-top:-52px;}
  .tm-item{padding-top:52px;}
  .tm-item:hover .tm-card, .tm-item:focus-within .tm-card{transform:translateY(-52px);}
}
.tm-card{display:flex; flex-direction:column; justify-content:space-between; gap:24px; width:100%; padding:24px 20px; border-radius:16px; background:var(--tm-card); box-shadow:0 0 0 5px var(--tm-ring); overflow:hidden;}
.tm-quote{margin:0; font-size:16px; line-height:1.4; color:color-mix(in srgb, var(--ink) 80%, transparent);}
.tm-author{display:flex; align-items:center; gap:12px; margin-top:auto; color:inherit;}
.tm-avatar{flex:0 0 56px; width:56px; height:56px; border-radius:50%; overflow:hidden; display:grid; place-items:center; font-family:var(--serif); font-size:18px; font-weight:600; color:#fff; letter-spacing:.02em;}
.tm-avatar img{display:block; width:100%; height:100%; object-fit:cover; border-radius:50%;}
.tm-who{display:flex; flex-direction:column; gap:4px; min-width:0; flex:1;}
/* LinkedIn icon at the end of the author row, in the LinkedIn brand blue (page-light on the dark theme) */
.tm-li{flex:0 0 auto; width:22px; height:22px; color:var(--linkedin); transition:color .15s;}
.tm-li svg{display:block; width:100%; height:100%;}
.tm-author:hover .tm-li, .tm-author:focus-visible .tm-li{color:var(--linkedin-deep);}
:root[data-theme="dark"] .tm-li{color:var(--ink);}
:root[data-theme="dark"] .tm-author:hover .tm-li, :root[data-theme="dark"] .tm-author:focus-visible .tm-li{color:var(--accent-ink);}
.tm-name{font-size:16px; line-height:1.4; font-weight:600; color:var(--ink);}
.tm-role{font-size:12px; line-height:1.4; color:color-mix(in srgb, var(--ink) 80%, transparent);}
.tm-author:hover .tm-name, .tm-author:focus-visible .tm-name{color:var(--accent-ink); text-decoration:underline;}
.tm-author:focus-visible{outline:3px solid var(--accent); outline-offset:3px; border-radius:12px;}
@media (prefers-reduced-motion: reduce){
  .tm-card{transition:none;}
  .tm-marquee{overflow-x:auto; -webkit-mask-image:none; mask-image:none;}
}

/* contact / footer */
.case-study-end{padding-top:32px; background:var(--bg); color:var(--ink-soft); font-family:var(--sans); text-align:center;}
.case-study-end p{margin:0; font-size:16px; font-weight:500; line-height:1.6;}
.case-study-end hr{margin:32px 0 0; border:0; border-top:1px solid var(--line);}
section.contact{padding:96px 0 64px; text-align:center; background:var(--surface); color:var(--ink); font-family:var(--sans);}
h2.contact-title{font-family:var(--serif); font-weight:500; font-size:44px; line-height:1.4; margin:0 0 24px;}
h2.contact-title em{color:var(--accent-ink); font-style:italic; font-weight:300;}
.contact-actions{display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-bottom:64px;}
/* Hero and footer actions share one size, including while icons appear. */
.hero-actions > .btn,.contact-actions > .btn{flex:none; width:min(232px,100%); height:56px; justify-content:center; padding:16px 12px; line-height:20px; white-space:nowrap;}
.hero-actions > .btn-primary,.contact-actions > .btn-primary{border:1px solid transparent;}
.hero-actions > .btn:hover,.contact-actions > .btn:hover{padding-left:calc(12px - (var(--cta-icon) + 8px) / 2); padding-right:calc(12px - (var(--cta-icon) + 8px) / 2);}
.foot-row{display:flex; justify-content:space-between; align-items:center; padding-top:32px; border-top:1px solid var(--line); font-size:12px; color:var(--ink-soft); flex-wrap:wrap; gap:16px;}
@media (max-width:640px){
  h2.contact-title{font-size:36px;}
}
.foot-links{display:flex; gap:16px;}
.foot-links a:hover{color:var(--ink);}
/* the LinkedIn icon in the footer link uses the LinkedIn brand blue (page-light on the dark theme, where the blue is too dim) */
.foot-links a[href*="linkedin.com"] .icon{color:var(--linkedin);}
:root[data-theme="dark"] .foot-links a[href*="linkedin.com"] .icon{color:var(--ink);}

/* ---- Human View / Machine View toggle ----
   An icon-only two-segment switch next to the theme toggle. Machine View strips
   the page down to a plain Markdown-style text dump of its real content
   (headings/paragraphs/lists/tables) so an AI agent reading the page gets
   the substance without having to parse decorative markup. */
.view-toggle{position:relative; display:inline-flex; align-items:center; height:36px; border:1px solid var(--line); border-radius:var(--cta-radius); background:var(--chip); padding:3px; cursor:pointer; flex-shrink:0; gap:2px;}
.view-toggle::before{content:""; position:absolute; top:3px; left:3px; width:30px; height:calc(100% - 6px); border-radius:calc(var(--cta-radius) - 4px); background:var(--accent); transition:transform .2s ease; z-index:0;}
.view-toggle[aria-pressed="true"]::before{transform:translateX(32px);}
.view-toggle-icon{position:relative; z-index:1; width:30px; height:100%; display:flex; align-items:center; justify-content:center; border-radius:calc(var(--cta-radius) - 4px); color:var(--ink-soft); transition:color .15s;}
.view-toggle-icon .icon{width:16px; height:16px;}
.view-toggle:not([aria-pressed="true"]) .view-toggle-human{color:#fff;}
.view-toggle[aria-pressed="true"] .view-toggle-machine{color:#fff;}
.view-toggle:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}

html.machine-view #site-loader,
html.machine-view #skeleton-loader,
html.machine-view header.top ~ section,
html.machine-view header.top ~ main{display:none !important;}
html.machine-view .machine-doc{display:block;}
.machine-doc{display:none; max-width:760px; margin:0 auto; padding:40px 24px 96px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;}
.machine-doc__notice{margin:0 0 24px; padding:12px 16px; border:1px solid var(--line); border-radius:10px; background:var(--chip); color:var(--ink-soft); font-size:13px; white-space:pre-wrap;}
.machine-doc__copy{display:inline-flex; align-items:center; gap:8px; margin-bottom:24px; padding:8px 16px; border-radius:var(--cta-radius); border:1px solid var(--line); background:var(--accent); color:#fff; font-family:var(--sans); font-size:13px; font-weight:600; cursor:pointer;}
.machine-doc__copy:hover{background:var(--accent-deep);}
.machine-doc__content{white-space:pre-wrap; word-wrap:break-word; font-size:13px; line-height:1.6; color:var(--ink); margin:0;}

/* Event photos retain their full proportions at a shared responsive height. */
.design-events{--event-photo-height:clamp(240px,25vw,360px); --event-photo-gap:16px;}
.design-events .sec-head{margin-bottom:28px;}
.events-intro{max-width:520px; margin:0; color:var(--ink-soft); font-size:16px;}
.events-controls{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px;}
.events-hint{margin:0; color:var(--ink-soft); font-size:12px;}
.events-pause{flex:none; min-height:40px; padding:9px 14px; background:var(--bg); color:var(--ink); cursor:pointer; font-family:var(--sans);}
.events-pause[hidden]{display:none;}
.events-gallery{max-width:100%; overflow-x:auto; overflow-y:hidden; scroll-behavior:auto; scrollbar-width:none; overscroll-behavior-x:contain;}
.events-gallery::-webkit-scrollbar{display:none;}
.events-gallery:focus-visible{outline:3px solid var(--accent); outline-offset:-3px;}
.events-track, .events-photos{display:flex; align-items:center; gap:var(--event-photo-gap); width:max-content;}
.events-photos{flex:none; list-style:none; margin:0; padding:0;}
.events-photos li{flex:none; margin:0;}
.events-photos a{display:block; border-radius:12px;}
.events-photos a:focus-visible{outline:3px solid var(--accent); outline-offset:-3px;}
.events-photos img{display:block; height:var(--event-photo-height); width:auto; max-width:none; border-radius:12px; background:var(--surface);}
@media (max-width:767px){
  .design-events{--event-photo-height:240px; --event-photo-gap:12px;}
}

/* Local previews keep the event journal readable before opening LinkedIn. */
.events-posts{margin-top:0;}
.events-post-list{
  display:flex; align-items:stretch; gap:20px; max-width:100%; padding:10px 0 16px;
  overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain;
  scroll-snap-type:x proximity; scroll-behavior:smooth;
  scrollbar-width:thin; scrollbar-color:var(--ink-soft) var(--chip);
}
.events-post-list:focus-visible{outline:3px solid var(--accent); outline-offset:4px; border-radius:var(--cta-radius);}
.events-post-list::-webkit-scrollbar{height:6px;}
.events-post-list::-webkit-scrollbar-track{background:var(--chip); border-radius:var(--cta-radius);}
.events-post-list::-webkit-scrollbar-thumb{background:var(--ink-soft); border-radius:var(--cta-radius);}
.events-post-list > .event-post{flex:0 0 min(320px,calc(100% - 28px)); scroll-snap-align:start;}
.events-post-list.is-looping{display:block; scroll-snap-type:none; scroll-behavior:auto;}
.events-post-list.is-dragging{cursor:grabbing; user-select:none;}
.events-post-list.is-dragging a{cursor:grabbing;}
.events-post-track,.events-post-group{display:flex; align-items:stretch; gap:20px; width:max-content;}
.events-post-group{flex:none;}
.events-post-group > .event-post{flex:0 0 var(--event-card-width); width:var(--event-card-width);}
/* Use the testimonial frame color as the surface, and its gray surface as the frame. */
.event-post{display:flex; flex-direction:column; min-width:0; overflow:hidden; border:0; border-radius:16px; background:var(--tm-ring); box-shadow:0 0 0 5px var(--tm-card);}
.event-post-media{position:relative; display:flex; flex:none; align-items:center; justify-content:center; aspect-ratio:16/10; overflow:hidden; background:var(--surface); border-bottom:1px solid var(--line);}
.event-post-media img{position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover;}
.event-post-body{display:flex; flex:1; flex-direction:column; align-items:flex-start; gap:12px; padding:24px 20px;}
.event-post-heading{display:flex; align-items:flex-start; gap:12px; width:100%;}
.event-post-heading h4{flex:1; min-width:0;}
.event-post-meta{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; width:100%; color:color-mix(in srgb, var(--ink) 80%, transparent); font-size:12px;}
.event-post-source{display:inline-flex; flex:none; color:var(--accent-ink);}
.event-post-source .icon{width:22px; height:22px;}
.event-post time{font-size:12px;}
.event-post h4{margin:0; font:600 16px/1.4 var(--sans); color:var(--ink);}
.event-post p{margin:0 0 8px; font-size:16px; line-height:1.4; color:color-mix(in srgb, var(--ink) 80%, transparent);}
.event-post-link{flex:none; width:100%; min-height:40px; margin-top:auto; color:var(--ink);}
.event-post-placeholder{flex-direction:column; gap:16px; color:var(--accent-ink);}
.event-post-placeholder > .icon{width:40px; height:40px;}
.event-post-placeholder > span:last-child{font:500 26px/1.2 var(--serif);}
@media (prefers-reduced-motion:reduce){.events-post-list{scroll-behavior:auto;}}

/* ---- FAQ: a stack of grey boxes, each a question with a +/x control; clicking opens its
   answer (items open independently, the first starts open). Layout and timings follow the
   reference site's FAQ. ---- */
:root{ --fq-bg:#F2F2F2; --fq-line:#E0E0E0; --fq-line-hover:#D2D2D2; --fq-ic-bg:#FFFFFF; --fq-ic-ink:#171512; --fq-ans:#828282; }
:root[data-theme="dark"]{ --fq-bg:#1A1A1A; --fq-line:#2C2C2C; --fq-line-hover:#444444; --fq-ic-bg:#0E0E0E; --fq-ic-ink:#F5F4F2; --fq-ans:#9C9A95; }
.fq-list{display:flex; flex-direction:column; gap:10px; max-width:946px; margin:0 auto;}
.fq-i{background:var(--fq-bg); border:1px solid var(--fq-line); border-radius:var(--cta-radius); transition:border-color .2s ease;}
.fq-i:hover{border-color:var(--fq-line-hover);}
.fq-h{margin:0; font:inherit;}
.fq-q{display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; padding:18px 18px 18px 20px; background:none; border-radius:var(--cta-radius); border:0; text-align:left; font-family:var(--sans); font-size:16px; line-height:1.21; font-weight:600; letter-spacing:-.02em; color:var(--ink); cursor:pointer;}
.fq-q:focus-visible{outline:3px solid var(--accent); outline-offset:-3px; border-radius:var(--cta-radius);}
.fq-ic{flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; border-radius:var(--cta-radius); background:var(--fq-ic-bg); border:1px solid var(--fq-line); color:var(--fq-ic-ink); transition:background .25s ease, color .25s ease, border-color .25s ease;}
.fq-ic .icon{width:24px; height:24px;}
/* The collapsed plus-box supplies its own pixel-edged frame. */
.fq-i:not(.is-open) .fq-ic{background:transparent; border-color:transparent;}
.fq-ic .fq-icon-close, .fq-i.is-open .fq-icon-plus{display:none;}
.fq-i.is-open .fq-icon-close{display:inline-flex;}
.fq-i.is-open .fq-ic{background:var(--fq-ic-ink); color:var(--fq-ic-bg); border-color:var(--fq-ic-ink);}
.fq-a{display:grid; grid-template-rows:0fr; transition:grid-template-rows .3s cubic-bezier(.2,.8,.2,1);}
.fq-i.is-open .fq-a{grid-template-rows:1fr;}
.fq-a-in{overflow:hidden; min-height:0;}
.fq-a p{margin:0; padding:0 20px 20px; max-width:760px; font-size:15px; line-height:1.6; color:var(--fq-ans);}
.fq-a a{color:var(--accent-ink); text-decoration:underline; text-underline-offset:2px;}
@media (prefers-reduced-motion: reduce){ .fq-a, .fq-ic, .fq-i{transition:none;} }

/* footer scene: 200px strip of animated dots (mountain ranges and a motorcycle) flush with the bottom of the footer */
section.contact--scene{padding-bottom:0;}
.foot-scene{height:320px; margin-top:24px; overflow:hidden;}
.foot-scene canvas{display:block; width:100%; height:320px;}
/* the dots fade out towards the top of the strip, so they melt into the footer's own background (white in light mode) instead of ending in a hard edge */
.foot-scene canvas{-webkit-mask-image:linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 18px, #000 44px); mask-image:linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 18px, #000 44px);}
html.machine-view .foot-scene{display:none;}

/* Insure Edge logo lockup: three-bar mark + "Insure" in white and "Edge" in peach (the brand's own colours; use on dark or coloured backgrounds) */
.ie-logo{display:inline-flex; align-items:center; gap:11px; color:#fff;}
.ie-logo-mark{display:block; width:48px; height:48px; flex:none;}
.ie-logo-word{font-family:var(--serif); font-weight:700; font-size:34px; line-height:1; letter-spacing:-.01em;}
.ie-logo-edge{color:#FFB59E;}
.pc-cover .ie-logo-mark{width:clamp(40px,5vw,56px); height:auto;}
.pc-cover .ie-logo-word{font-size:clamp(32px,4.4vw,52px);}

/* nav portrait: a gentle loop that makes it feel alive, with a livelier reaction on hover. Stays still for "reduce motion". */
.avatar img{transform-origin:50% 62%; will-change:transform; animation:avatar-look 7s ease-in-out infinite;}
@keyframes avatar-look{
  0%,100%{transform:scale(1.08) translate3d(0,0,0) rotate(0deg);}
  12%{transform:scale(1.1) translate3d(-1px,-.5px,0) rotate(-4deg);}
  24%{transform:scale(1.1) translate3d(-1px,-.5px,0) rotate(-4deg);}
  38%{transform:scale(1.08) translate3d(0,0,0) rotate(0deg);}
  52%{transform:scale(1.1) translate3d(1px,-.5px,0) rotate(4deg);}
  64%{transform:scale(1.1) translate3d(1px,-.5px,0) rotate(4deg);}
  78%{transform:scale(1.08) translate3d(0,.5px,0) rotate(0deg);}
  88%{transform:scale(1.12) translate3d(0,-1px,0) rotate(0deg);}
  94%{transform:scale(1.08) translate3d(0,0,0) rotate(0deg);}
}
.brand:hover .avatar img, .brand:focus-visible .avatar img{animation:avatar-wiggle .7s ease-in-out infinite;}
@keyframes avatar-wiggle{
  0%,100%{transform:scale(1.14) rotate(0deg);}
  25%{transform:scale(1.16) rotate(-8deg);}
  75%{transform:scale(1.16) rotate(8deg);}
}
@media (prefers-reduced-motion:reduce){ .avatar img, .brand:hover .avatar img, .brand:focus-visible .avatar img{animation:none; transform:none;} }

/* Agentic Design System project card: graphite to red (the system's own brand colour) behind a framed screen of the live Button page */
.pc-cover.is-ads{background-image:linear-gradient(135deg,#1F1D1A 0%,#4A0B12 58%,#FF031A 135%);}
.pc-cover.is-ads img{inset:24px 24px 0; width:calc(100% - 48px); height:calc(100% - 24px); object-fit:cover; object-position:top center; border-radius:8px 8px 0 0; box-shadow:0 18px 40px -14px rgba(0,0,0,.6);}

/* Insure Edge card: the logo sits on top and a real product screen rises from the bottom, like the other project covers */
.pc-cover.is-ie{justify-content:flex-start; gap:12px; padding:18px 24px 0;}
.pc-cover.is-ie .ie-logo-mark{width:22px;}
.pc-cover.is-ie .ie-logo-word{font-size:clamp(22px,2.6vw,28px);}
.pc-cover.is-ie .pc-cover-shot{position:relative; inset:auto; flex:1 1 auto; width:84%; min-height:0; height:auto; object-fit:cover; object-position:top center; border-radius:8px 8px 0 0; box-shadow:0 -6px 30px -10px rgba(0,0,0,.45);}
/* Insure Edge card: no logo, just the product screen, centred in the cover and rising from the bottom */
.pc-cover.is-ie{justify-content:flex-end; align-items:center; gap:0; padding:28px 24px 0;}
.pc-cover.is-ie .pc-cover-shot{width:88%;}
/* Achieva CRM card: the product's home dashboard rising from the bottom, like the Insure Edge card */
.pc-cover.is-crm{justify-content:flex-end; align-items:center; gap:0; padding:28px 24px 0;}
.pc-cover.is-crm .pc-cover-shot{position:relative; inset:auto; flex:1 1 auto; width:88%; min-height:0; height:auto; object-fit:cover; object-position:top center; border-radius:8px 8px 0 0; box-shadow:0 -6px 30px -10px rgba(0,0,0,.45);}

/* Agentic Design System card: the cover switches between the real Showcase and Compare states tabs */
.pc-cover.is-ads img.ads-b{opacity:0; animation:adsTab 8s ease-in-out infinite;}
@keyframes adsTab{0%,38%{opacity:0;} 46%,88%{opacity:1;} 96%,100%{opacity:0;}}
@media (prefers-reduced-motion:reduce){.pc-cover.is-ads img.ads-b{animation:none; opacity:0;}}

/* Insure Edge card: keep the screenshot's true proportions so its full width shows; only the bottom edge is cropped by the cover */
.pc-cover.is-ie .pc-cover-shot{flex:0 0 auto; width:88%; height:auto; aspect-ratio:1800 / 1125; object-fit:contain; object-position:top center;}

/* Insure Edge card: four real product screens change in turn (a gentle crossfade, 3 seconds each) */
.pc-cover.is-ie .ie-cycle{position:relative; flex:0 0 auto; width:88%; aspect-ratio:1800 / 1125; border-radius:8px 8px 0 0; overflow:hidden; box-shadow:0 -6px 30px -10px rgba(0,0,0,.45); background:#fff;}
.pc-cover.is-ie .ie-cycle .pc-cover-shot{position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:top center; border-radius:0; box-shadow:none; opacity:0; animation:ieScreens 12s ease-in-out infinite;}
.pc-cover.is-ie .ie-cycle .pc-cover-shot:nth-child(1){opacity:1; animation-delay:0s;}
.pc-cover.is-ie .ie-cycle .pc-cover-shot:nth-child(2){animation-delay:-9s;}
.pc-cover.is-ie .ie-cycle .pc-cover-shot:nth-child(3){animation-delay:-6s;}
.pc-cover.is-ie .ie-cycle .pc-cover-shot:nth-child(4){animation-delay:-3s;}
@keyframes ieScreens{0%,19%{opacity:1;} 25%,94%{opacity:0;} 100%{opacity:1;}}
@media (prefers-reduced-motion:reduce){.pc-cover.is-ie .ie-cycle .pc-cover-shot{animation:none;} .pc-cover.is-ie .ie-cycle .pc-cover-shot:nth-child(n+2){opacity:0;}}

/* the shared header and the contact footer always use the site's own fonts, whatever font a case study sets on the page */
body header.top, body section.contact{font-family:var(--sans);}
body header.top a, body header.top button, body section.contact a, body section.contact button, body section.contact p{font-family:inherit;}

/* project cards that are locked for now */
.pc-lock{position:absolute; top:14px; right:14px; z-index:3; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:rgba(23,21,18,.78); color:#fff; font-size:12px; font-weight:600; line-height:1.2; letter-spacing:.01em; pointer-events:none; backdrop-filter:blur(6px);}
.pc-lock svg{flex:none;}

/* Mobile top navigation: hamburger button + panel (see mobile-menu.js). Hidden on wider screens. */
.nav-burger{display:none;}
.nav-panel{display:none;}
@media (max-width:767px){
  .top-inner{flex-wrap:nowrap;}
  .nav-burger{display:inline-flex; align-items:center; justify-content:center; flex:none; margin-left:auto; width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:var(--cta-radius); background:transparent; color:var(--ink); cursor:pointer; transition:background .15s, border-color .15s;}
  .nav-burger:hover{background:var(--chip); border-color:transparent;}
  .nav-burger:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
  .nav-burger .nav-burger-open, .nav-burger .nav-burger-close{width:18px; height:18px; display:block;}
  .nav-burger .nav-burger-close{display:none;}
  header.top.is-menu-open .nav-burger .nav-burger-open{display:none;}
  header.top.is-menu-open .nav-burger .nav-burger-close{display:block;}
  .nav-panel{position:absolute; top:100%; left:0; right:0; flex-direction:column; gap:16px; padding:16px 16px calc(24px + env(safe-area-inset-bottom,0px)); background:var(--bg); border-top:1px solid var(--line); height:calc(100vh - 64px - var(--ruler-size)); height:calc(100dvh - 64px - var(--ruler-size)); overflow-y:auto; overscroll-behavior:contain;}
  header.top.is-menu-open{background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none;}
  html.nav-open, html.nav-open body{overflow:hidden;}
  html.nav-open .sound-toggle{display:none;}
  header.top.is-menu-open .nav-panel{display:flex;}
  .nav-panel nav.links{order:0; flex:none; width:100%; flex-direction:column; gap:2px; overflow:visible;}
  .nav-panel nav.links a{padding:12px 14px; font-size:16px; flex-shrink:0;}
  .nav-panel .nav-side{margin:auto 0 0; flex-wrap:wrap; gap:8px; padding-top:16px; border-top:1px solid var(--line);}
  .nav-panel .nav-resume{width:auto; padding:0 14px;}
  .nav-panel .nav-resume-label{position:static; width:auto; height:auto; overflow:visible; clip:auto;}
  section[id], .abt-sub{scroll-margin-top:calc(84px + var(--ruler-size));}
}

/* Mobile: the hero (and contact) buttons span the full width of the column */
@media (max-width:767px){
  .hero-actions, .contact-actions{flex-direction:column; align-items:stretch; width:100%;}
  .hero-actions > .btn, .contact-actions > .btn{width:100%;}
  .hero-actions > .btn-primary{order:2;}   /* My Projects first, Resume below it */
}

/* Mobile: less empty space between the header and the hero text */
@media (max-width:767px){
  section.hero{padding-top:32px;}
}

/* In the mobile menu LinkedIn is a full-width button under the page links */
@media (max-width:767px){
  .nav-panel > .nav-linkedin{width:100%; height:48px; padding:0 16px; justify-content:center; gap:10px; font-size:15px;}
  .nav-panel > .nav-linkedin::after{content:"LinkedIn"; font-weight:600;}
  .nav-panel > .nav-linkedin .icon{width:18px; height:18px; opacity:1; overflow:visible; margin:0;}
}

/* Mobile: the hero heading and supporting text flow across the full column instead of breaking early at the line-break tags */
@media (max-width:767px){
  .hero-grid h1.hero-title br, .hero-grid p.hero-sub br{display:none;}
  .hero-grid .bbox-wrap, .hero-grid h1.hero-title, .hero-grid p.hero-sub{width:100%; max-width:none;}
  .hero-grid h1.hero-title em{margin-right:.28em;}   /* keeps the gap the line break used to give */
}

/* Behance button (mobile menu only), same shape as the LinkedIn button above it */
@media (max-width:767px){
  .nav-panel > .nav-behance{display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; height:48px; padding:0 16px; margin-top:-8px; border-radius:var(--cta-radius); background:#0057FF; color:#fff; font-size:15px; font-weight:600;}
  .nav-panel > .nav-behance .icon{width:20px; height:20px;}
  .nav-panel > .nav-behance:hover{filter:brightness(1.08);}
  .nav-panel > .nav-behance:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
}

/* Resume is a full-width button in the mobile menu, below Behance */
@media (max-width:767px){
  .nav-burger{position:relative;}
  .nav-burger .cta-border{z-index:3;}
  .nav-panel > .nav-resume{width:100%; height:48px; padding:0 16px; margin-top:-8px; font-size:15px;}
  .nav-panel > .nav-resume:hover{padding:0 16px;}
}

/* Mobile: no arrow button on the project cards - the whole card is the tap target for its case study, and the corner notch that made room for the button is gone */
@media (max-width:767px){
  .pc{--pc-notch-w:0px; --pc-notch-h:0px; cursor:pointer; -webkit-tap-highlight-color:transparent;}
  .pc-go{display:none;}
}

/* Mobile: the card text uses the full card width now that the corner button is gone */
@media (max-width:767px){
  .pc-text{max-width:100%;}
}
/* Mobile menu: LinkedIn and Behance share the quiet outlined look of the Resume button (no solid brand fills) */
@media (max-width:767px){
  .nav-panel > .nav-linkedin, .nav-panel > .nav-behance, .nav-panel > .nav-resume{
    display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; height:48px; padding:0 16px;
    border:1px solid var(--line); border-radius:var(--cta-radius); background:transparent; color:var(--ink);
    font-size:15px; font-weight:600; transform:none;
  }
  .nav-panel > .nav-behance, .nav-panel > .nav-resume{margin-top:-8px;}
  .nav-panel > .nav-linkedin:hover, .nav-panel > .nav-behance:hover, .nav-panel > .nav-resume:hover{background:var(--chip); border-color:transparent; padding:0 16px; filter:none; transform:none;}
  .nav-panel > .nav-linkedin .icon, .nav-panel > .nav-behance .icon{width:24px; height:24px; opacity:1; overflow:visible; margin:0;}
  .nav-panel > .nav-linkedin:focus-visible, .nav-panel > .nav-behance:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
}

/* Mobile: 24px side padding (was 32px) */
@media (max-width:767px){
  .wrap{padding-left:calc(24px + var(--ruler-size)); padding-right:24px;}
  header.top .top-inner{padding:16px 16px 16px calc(16px + var(--ruler-size));}
}

/* Mobile: the Human/Machine view control sits in the top bar as one button. It shows the view you are in now; tapping it switches to the other one. */
@media (max-width:767px){
  .top-inner > .view-toggle{width:36px; height:36px; padding:0; gap:0; justify-content:center; margin-left:auto; background:transparent;}
  .top-inner > .view-toggle + .nav-burger{margin-left:0;}
  .top-inner > .view-toggle::before{display:none;}
  .top-inner > .view-toggle .view-toggle-icon{width:100%; height:100%; color:var(--ink); border-radius:0;}
  .top-inner > .view-toggle:not([aria-pressed="true"]) .view-toggle-human{color:var(--ink);}
  .top-inner > .view-toggle[aria-pressed="true"] .view-toggle-machine{color:var(--ink);}
  .top-inner > .view-toggle .view-toggle-machine{display:none;}
  .top-inner > .view-toggle[aria-pressed="true"] .view-toggle-human{display:none;}
  .top-inner > .view-toggle[aria-pressed="true"] .view-toggle-machine{display:flex;}
  .top-inner > .view-toggle:hover{background:var(--chip); border-color:transparent;}
  .top-inner > .view-toggle .view-toggle-icon .icon{width:18px; height:18px;}
  .top-inner{gap:8px;}
}

/* Mobile: light/dark toggle sits in the top bar too, between the view button and the hamburger */
@media (max-width:767px){
  .top-inner > .theme-toggle + .nav-burger{margin-left:0;}
  .top-inner > .view-toggle + .theme-toggle{margin-left:0;}
  .top-inner > .theme-toggle{flex:none;}
}

/* Mobile menu: everything that lived in the bottom controls row has moved (view and theme to the top bar, LinkedIn/Behance/Resume under the links), so the empty row is hidden */
@media (max-width:767px){
  .nav-panel .nav-side{display:none;}
}

/* Mobile menu: a line with "or" in the middle separates the page links from LinkedIn, Behance and Resume */
.nav-or{display:none;}
@media (max-width:767px){
  .nav-panel > .nav-or{display:flex; align-items:center; gap:12px; width:100%; color:var(--ink-soft); font-size:13px; font-weight:500; line-height:1;}
  .nav-panel > .nav-or::before, .nav-panel > .nav-or::after{content:""; flex:1 1 0; height:1px; background:var(--line);}
}

/* "or" separator: dotted lines with the word inside a dotted circle */
@media (max-width:767px){
  .nav-panel > .nav-or{gap:10px; --or-dot:color-mix(in srgb, var(--ink) 16%, transparent);}
  .nav-panel > .nav-or::before, .nav-panel > .nav-or::after{height:0; background:none; border-top:2px dotted var(--or-dot);}
  .nav-panel > .nav-or > span{flex:none; display:grid; place-items:center; width:32px; height:32px; border:2px dotted var(--or-dot); border-radius:50%; box-sizing:border-box; font-size:12px; line-height:1;}
}

/* Mobile menu: the Resume icon matches the LinkedIn and Behance icons (24px) */
@media (max-width:767px){
  .nav-panel > .nav-resume .icon{width:24px; height:24px;}
}

/* WhatsApp button in the mobile menu: same outlined look and 24px icon as the others */
@media (max-width:767px){
  .nav-panel > .nav-whatsapp{display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; height:48px; padding:0 16px; margin-top:-8px; border:1px solid var(--line); border-radius:var(--cta-radius); background:transparent; color:var(--ink); font-size:15px; font-weight:600;}
  .nav-panel > .nav-whatsapp:hover{background:var(--chip); border-color:transparent;}
  .nav-panel > .nav-whatsapp:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
  .nav-panel > .nav-whatsapp .icon{width:24px; height:24px;}
}

/* Mobile menu open: the top bar shows the heading "Menu" instead of the name and photo, and only the close button stays on the right */
.nav-menu-title{display:none;}
@media (max-width:767px){
  header.top.is-menu-open .top-inner > .brand,
  header.top.is-menu-open .top-inner > .view-toggle,
  header.top.is-menu-open .top-inner > .theme-toggle{display:none;}
  header.top.is-menu-open .top-inner > .nav-menu-title{display:block; font-family:var(--serif); font-size:20px; font-weight:600; line-height:1.2; color:var(--ink); margin:0;}
  header.top.is-menu-open .top-inner > .nav-burger{margin-left:auto;}
}

/* One vertical rhythm for every section: the same space above and below each one, and the same space between a section heading and its content */
:root{--sec-y:96px; --sec-head-gap:48px;}
@media (max-width:767px){ :root{--sec-y:40px; --sec-head-gap:24px;} }   /* hero uses 32px at the top on mobile; sections follow the same tight rhythm */
section.block{padding-top:var(--sec-y); padding-bottom:var(--sec-y);}
section.testimonials{padding-top:var(--sec-y); padding-bottom:var(--sec-y);}
section.contact{padding-top:var(--sec-y);}
body.canvas-page > section.block .canvas-inner, body.canvas-page > section.testimonials .canvas-inner{padding:var(--sec-y) 0;}
.block-head, .sec-head, .design-events .sec-head{margin-bottom:var(--sec-head-gap);}

/* Mobile: the hero buttons (My Projects, Resume) stay pinned to the bottom of the screen */
@media (max-width:767px){
  body:not(.machine-view-x) .hero-actions{position:fixed; left:0; right:0; bottom:0; z-index:45; width:auto; flex-direction:row; align-items:stretch; gap:12px; padding:12px 24px calc(12px + env(safe-area-inset-bottom,0px)) calc(24px + var(--ruler-size)); background:color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border-top:1px solid var(--line);}
  .hero-actions > .btn{flex:1 1 0; width:auto; min-width:0; height:48px; padding:0 12px;}
  .hero-actions > .btn:hover{padding-left:12px; padding-right:12px;}
  .sound-toggle{bottom:calc(88px + env(safe-area-inset-bottom,0px));}
  html.machine-view .hero-actions, html.nav-open .hero-actions{display:none;}
}

/* Stacked hero (tablet and mobile): the portrait sits closer to the text above it */
@media (max-width:900px){
  .hero-grid p.hero-sub{margin-bottom:16px;}
  .hero-grid .hero-visual{margin-top:0;}
}

/* Password box for the private case studies (case-lock.js) */
.lock-dialog{width:min(420px, calc(100vw - 32px)); padding:0; border:1px solid var(--line); border-radius:20px; background:var(--bg); color:var(--ink); box-shadow:0 24px 60px rgba(0,0,0,.25);}
.lock-dialog::backdrop{background:rgba(10,10,10,.55); backdrop-filter:blur(3px);}
.lock-form{display:grid; gap:12px; padding:28px 24px 24px; text-align:left;}
.lock-icon{width:44px; height:44px; display:grid; place-items:center; border:1px dashed var(--line); border-radius:50%; color:var(--ink-soft);}
.lock-icon svg{width:22px; height:22px;}
.lock-title{font-family:var(--serif); font-weight:500; font-size:26px; line-height:1.2; margin:4px 0 0;}
.lock-copy{margin:0 0 4px; color:var(--ink-soft); font-size:15px; line-height:1.5;}
.lock-copy strong{color:var(--ink); font-weight:600;}
.lock-label{font-size:14px; font-weight:600;}
.lock-input{font:16px var(--sans); padding:14px; border:1px solid var(--line); border-radius:12px; background:transparent; color:var(--ink); width:100%; box-sizing:border-box;}
.lock-input:focus-visible{outline:2px solid var(--accent); outline-offset:1px; border-color:transparent;}
.lock-error{margin:0; color:#d33; font-size:14px;}
.lock-actions{display:flex; gap:10px; margin-top:6px;}
.lock-actions button{flex:1 1 0; font:600 15px var(--sans); height:48px; border-radius:var(--cta-radius); cursor:pointer;}
.lock-cancel{border:1px solid var(--line); background:transparent; color:var(--ink);}
.lock-submit{border:0; background:var(--accent); color:#fff;}
.lock-submit:disabled{opacity:.6; cursor:progress;}
.lock-actions button:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}

/* Mobile: keep the fixed bars steady while the footer animation plays. A blurred (backdrop-filter) bar over an animating, masked canvas can
   drop out for frames on phones - the top bar and the bottom buttons were blinking in and out near the footer - so on mobile they are solid, on
   their own layers, and the footer canvas fades in with an overlay instead of a mask. */
@media (max-width:767px){
  header.top, body.canvas-page header.top, :root[data-theme="dark"] body.canvas-page header.top{background:var(--bg); -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; will-change:transform; transform:translateZ(0);}
  body:not(.machine-view-x) .hero-actions{background:var(--bg); -webkit-backdrop-filter:none; backdrop-filter:none; will-change:transform; transform:translateZ(0);}
  .foot-scene{position:relative;}
  .foot-scene canvas{-webkit-mask-image:none; mask-image:none;}
  .foot-scene::before{content:""; position:absolute; left:0; right:0; top:0; height:44px; z-index:1; pointer-events:none; background:linear-gradient(to bottom, var(--surface), color-mix(in srgb, var(--surface) 35%, transparent) 40%, transparent);}
}

@media (max-width:767px){
  body:not(.machine-view-x) .hero-actions{transition:transform .25s ease, opacity .2s ease, visibility 0s linear 0s;}
  html.cta-bar-hidden body:not(.machine-view-x) .hero-actions{transform:translateY(110%); opacity:0; visibility:hidden; pointer-events:none; transition:transform .25s ease, opacity .2s ease, visibility 0s linear .25s;}
}

/* Mobile footer: no copyright line or LinkedIn / Behance / Guides links (they are in the menu) */
@media (max-width:767px){
  .foot-row{display:none;}
}

/* Mobile: the contact buttons (email, WhatsApp, résumé) use the same look as the buttons in the mobile menu:
   48px tall, outlined, 15px semibold label with the 24px pixel icon always showing in front of it */
@media (max-width:767px){
  .contact-actions{gap:8px;}
  .contact-actions > .btn, .contact-actions > .btn:hover{
    display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; height:48px; padding:0 16px;
    border:1px solid var(--line); border-radius:var(--cta-radius); background:transparent; color:var(--ink);
    font-size:15px; font-weight:600; line-height:20px; transform:none;
  }
  .contact-actions > .btn:hover{background:var(--chip); border-color:transparent;}
  .contact-actions > .btn .icon, .contact-actions > .btn:hover .icon{width:24px; height:24px; margin:0; opacity:1; overflow:visible; max-width:none; transform:none; transition:none;}
  .contact-actions > .btn .cta-border{display:none;}
}

/* Mobile: every icon button in the top bar and menu uses the same colour (the text colour), in light and dark */
@media (max-width:767px){
  .top-inner > .view-toggle, .top-inner > .theme-toggle, .top-inner > .nav-burger,
  .top-inner > .theme-toggle .icon, .top-inner > .view-toggle .view-toggle-icon{color:var(--ink);}
}

/* Request access (inside the password box) */
.lock-ask{margin:4px 0 0; text-align:center; font-size:14px; color:var(--ink-soft);}
.lock-ask-btn{background:none; border:0; padding:0; font:600 14px var(--sans); color:var(--accent); cursor:pointer; text-decoration:underline; text-underline-offset:3px;}
.lock-ask-btn:focus-visible{outline:3px solid var(--accent); outline-offset:3px; border-radius:4px;}
.lock-form[hidden]{display:none;}
.lock-request{max-height:calc(100dvh - 48px); overflow-y:auto;}
.lock-textarea{resize:vertical; min-height:84px; font-family:var(--sans);}
.lock-fielderr{margin:-6px 0 0; color:#d33; font-size:13px;}
.lock-input[aria-invalid="true"]{border-color:#d33;}
.lock-hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0;}
.lock-note{margin:0; font-size:12.5px; color:var(--ink-soft);}
.lock-success{margin:0; padding:12px 14px; border-radius:12px; background:color-mix(in srgb, #2fbf6e 14%, transparent); color:var(--ink); font-size:14px; line-height:1.45;}
.lock-back{border:1px solid var(--line); background:transparent; color:var(--ink);}

/* LinkedIn and Behance buttons in the contact section: only on mobile, where the footer links row is hidden */
@media (min-width:768px){ .contact-actions > .contact-social{display:none;} }

/* Mobile menu: a pixel arrow on the right of every page link */
@media (max-width:767px){
  .nav-panel nav.links a{display:flex; align-items:center; justify-content:space-between; gap:12px;}
  .nav-panel nav.links a::after{content:""; flex:none; width:20px; height:20px; background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11v2h12v2h2v-2h2v-2h-2V9h-2v2H4zm10-4h2v2h-2V7zm0 10h2v-2h-2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11v2h12v2h2v-2h2v-2h-2V9h-2v2H4zm10-4h2v2h-2V7zm0 10h2v-2h-2v2z'/%3E%3C/svg%3E") center / contain no-repeat;}
}

/* Design Shelf page (design-shelf.html, built by scripts/build-bookmarks.py). The cards are the Quick Guides cards (.guide-card):
   same card, tilting cover, tag, title and button, so the two pages behave alike. Only the cover shape and the side list are new. */
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;}
#bookmarks.block .canvas-inner{background:var(--pc-surface);}
.bm-intro{margin:12px 0 0; color:var(--ink-soft); font-size:16px;}
.bm-empty{margin:0; padding:48px 0; text-align:center; color:var(--ink-soft);}
/* arrows at both ends of the filter row (shown only when the row can scroll that way) */
.bm-tabs-wrap{position:relative; margin-bottom:32px;}
.bm-tabs-wrap .bm-tabs{margin-bottom:0;}
.bm-arrow{position:absolute; top:0; bottom:2px; z-index:2; width:56px; display:flex; align-items:center; border:0; padding:0; background:none; color:var(--ink); cursor:pointer;}
.bm-arrow[hidden]{display:none;}
.bm-arrow--prev{left:0; justify-content:flex-start; background:linear-gradient(90deg, var(--pc-surface) 55%, transparent);}
.bm-arrow--next{right:0; justify-content:flex-end; background:linear-gradient(270deg, var(--pc-surface) 55%, transparent);}
.bm-arrow svg{width:36px; height:36px; padding:8px; box-sizing:border-box; border:1px solid var(--line); border-radius:var(--cta-radius); background:var(--pc-card); transition:background .15s, border-color .15s;}
.bm-arrow--prev svg{transform:scaleX(-1);}
.bm-arrow:hover svg{background:var(--chip); border-color:transparent;}
/* one row of filters that scrolls sideways when it does not fit; the scrollbar is hidden and the last button can scroll fully into view */
.bm-tabs{flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; margin-bottom:32px; padding-bottom:2px; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; scroll-snap-type:x proximity;}
.bm-tabs::-webkit-scrollbar{display:none;}
.bm-tabs .guide-tab{flex:none; white-space:nowrap; scroll-snap-align:start;}
.bm-tabs .guide-tab{display:inline-flex; align-items:center; gap:8px; cursor:pointer;}
.bm-tabs .guide-tab:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
.bm-count{font-size:12px; opacity:.7;}
.bm-cat[hidden]{display:none;}
.bm-cat{margin:0 0 56px;}
.bm-cat:last-child{margin-bottom:0;}
.bm-cat-title{font-family:var(--serif); font-weight:500; font-size:clamp(24px,2.6vw,32px); line-height:1.2; margin:0 0 20px;}
/* three cards in a row on desktop, then two and one as the screen narrows (same steps as Quick Guides) */
.bm-grid{grid-template-columns:repeat(3,1fr);}
@media (max-width:820px){ .bm-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .bm-grid{grid-template-columns:1fr;} }
.bm-grid .guide-card-thumb.bm-thumb{aspect-ratio:16/10; overflow:hidden; position:relative;}
.bm-thumb img{display:block; width:100%; height:100%; object-fit:cover; object-position:top; border-radius:inherit;}
.bm-thumb.is-missing img{display:none;}
.bm-thumb.is-missing::before{content:attr(data-initial); position:absolute; inset:0; display:grid; place-items:center; font-family:var(--serif); font-size:56px; color:var(--ink-soft); background:linear-gradient(135deg, var(--chip), var(--pc-surface));}
.guide-card-body h3 .bm-title-link{color:inherit;}
.guide-card-body h3 .bm-title-link:hover{text-decoration:underline; text-underline-offset:3px;}
.guide-card-body h3 .bm-title-link:focus-visible{outline:3px solid var(--accent); outline-offset:3px; border-radius:4px;}
.bm-desc{margin:-4px 0 0; font-size:14px; line-height:1.4; color:var(--ink-soft); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:calc(2 * 1.4em);}
