/* Geist: static weights. Thin, ExtraLight and Light are registered but never used on the site (nothing under 400). */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Thin.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-ThinItalic.woff2") format("woff2"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-ExtraLight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-ExtraLightItalic.woff2") format("woff2"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-ExtraBoldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-BlackItalic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
/* Geist: variable files, registered under their own family names (the static files above are the ones used) */
@font-face { font-family: "Geist Variable"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Variable"; src: url("../fonts/Geist-Italic-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
/* Geist Mono: static weights. Thin, ExtraLight and Light are registered but never used on the site (nothing under 400). */
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Thin.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-ThinItalic.woff2") format("woff2"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-ExtraLight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-ExtraLightItalic.woff2") format("woff2"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-SemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-ExtraBoldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-BlackItalic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
/* Geist Mono: variable files, registered under their own family names (the static files above are the ones used) */
@font-face { font-family: "Geist Mono Variable"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono Variable"; src: url("../fonts/GeistMono-Italic-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;

  /* THEME: high-contrast #0A0A0A dark mode. Edit colours here only. */
  /* surfaces */
  --bg-canvas: #0A0A0A;           /* page background */
  --bg-surface: #121212;          /* cards, containers, dialogs */
  --bg-surface-elevated: #1C1C1F; /* popovers, tooltips, nested cards */
  --bg-surface-hover: #18181B;    /* card / row hover */
  /* borders: elevation comes from these and from surface brightness, not shadows */
  --border-subtle: #232326;
  --border-hover: #2E2E33;
  --border-active: #3F3F46;
  /* text */
  --text-primary: #EDEDED;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  /* accents: Sky or Amber, always with a 10% tint behind */
  --accent-sky: #38BDF8;   --accent-sky-tint: rgba(56, 189, 248, .1);
  --accent-amber: #F59E0B; --accent-amber-tint: rgba(245, 158, 11, .1);

  /* older names used through this file, pointing at the tokens above */
  --paper: var(--bg-canvas);
  --surface: var(--bg-surface);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-subtle);
  --accent: var(--accent-sky);
  /* FONTS: Geist for text, Geist Mono for metadata. Nothing is ever set lighter than weight 400. */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: var(--font-sans);
  --pad: clamp(20px, 5vw, 48px);
  --radius: 10px;          /* the one corner radius: photos, buttons, pills, tags */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  --max: 1280px;
  --img-max-h: calc(100vh - 240px);
  --v-gutter: 24px;
}
@supports (height: 100dvh) { :root { --img-max-h: calc(100dvh - 240px); } }

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%;
  /* stops light-on-dark text from glowing against #0A0A0A */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-synthesis: none;
}
h1, h2, h3 { color: var(--text-primary); }
p { color: var(--text-secondary); letter-spacing: 0; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
main { flex: 1; width: 100%; }
html.pre main, html.pre .site-footer { visibility: hidden; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(56, 189, 248, .28); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }

/* Page-load animation: js/main.js marks elements .enter, then adds .in when they should play.
   Only active while html has .anim (never with reduced motion), so nothing is hidden without JS. */
html.anim .enter { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(14px); }
html.anim .enter.in { animation: enter-in 1.1s var(--ease-out) var(--d, 0ms) both; }
@keyframes enter-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985); filter: blur(14px); }
  60%  { filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
/* below the fold: fade + blur only, no sliding, so nothing seems to move while you scroll */
html.anim .enter.enter-s { transform: none; filter: blur(10px); }
html.anim .enter.enter-s.in { animation-name: enter-s; animation-duration: .9s; }
@keyframes enter-s { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
/* the header (pill, logo, links, status) blurs in without sliding */
html.anim .hdr-enter.enter { transform: none; }
html.anim .hdr-enter.enter.in { animation-name: enter-hdr; }
@keyframes enter-hdr {
  from { opacity: 0; filter: blur(12px); transform: scale(.97); }
  60%  { filter: blur(2px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; min-height: 65px; }

/* PROGRESSIVE BLUR: six stacked layers, each blurring half as hard as the one before and fading out a little later.
   Every fade uses an eased curve (not a straight ramp), so there are no visible steps. --dir points from the edge inward. Used by the header (top) and the
   testimonial strip (left and right). Cost: pure CSS, no scripts, the browser does the blur on the GPU. */
.pblur { position: absolute; pointer-events: none; --dir: to bottom; --tint: .8; }
.pblur i { position: absolute; inset: 0; }
.pblur i:nth-child(1) { -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); -webkit-mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 4%, rgba(0,0,0,0.991) 5.6%, rgba(0,0,0,0.942) 7.2%, rgba(0,0,0,0.837) 8.8%, rgba(0,0,0,0.683) 10.4%, rgba(0,0,0,0.500) 12.0%, rgba(0,0,0,0.317) 13.6%, rgba(0,0,0,0.163) 15.2%, rgba(0,0,0,0.058) 16.8%, rgba(0,0,0,0.009) 18.4%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 4%, rgba(0,0,0,0.991) 5.6%, rgba(0,0,0,0.942) 7.2%, rgba(0,0,0,0.837) 8.8%, rgba(0,0,0,0.683) 10.4%, rgba(0,0,0,0.500) 12.0%, rgba(0,0,0,0.317) 13.6%, rgba(0,0,0,0.163) 15.2%, rgba(0,0,0,0.058) 16.8%, rgba(0,0,0,0.009) 18.4%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 100%); }
.pblur i:nth-child(2) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 8%, rgba(0,0,0,0.991) 10.4%, rgba(0,0,0,0.942) 12.8%, rgba(0,0,0,0.837) 15.2%, rgba(0,0,0,0.683) 17.6%, rgba(0,0,0,0.500) 20.0%, rgba(0,0,0,0.317) 22.4%, rgba(0,0,0,0.163) 24.8%, rgba(0,0,0,0.058) 27.2%, rgba(0,0,0,0.009) 29.6%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 8%, rgba(0,0,0,0.991) 10.4%, rgba(0,0,0,0.942) 12.8%, rgba(0,0,0,0.837) 15.2%, rgba(0,0,0,0.683) 17.6%, rgba(0,0,0,0.500) 20.0%, rgba(0,0,0,0.317) 22.4%, rgba(0,0,0,0.163) 24.8%, rgba(0,0,0,0.058) 27.2%, rgba(0,0,0,0.009) 29.6%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 100%); }
.pblur i:nth-child(3) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 12%, rgba(0,0,0,0.991) 15.4%, rgba(0,0,0,0.942) 18.8%, rgba(0,0,0,0.837) 22.2%, rgba(0,0,0,0.683) 25.6%, rgba(0,0,0,0.500) 29.0%, rgba(0,0,0,0.317) 32.4%, rgba(0,0,0,0.163) 35.8%, rgba(0,0,0,0.058) 39.2%, rgba(0,0,0,0.009) 42.6%, rgba(0,0,0,0) 46%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 12%, rgba(0,0,0,0.991) 15.4%, rgba(0,0,0,0.942) 18.8%, rgba(0,0,0,0.837) 22.2%, rgba(0,0,0,0.683) 25.6%, rgba(0,0,0,0.500) 29.0%, rgba(0,0,0,0.317) 32.4%, rgba(0,0,0,0.163) 35.8%, rgba(0,0,0,0.058) 39.2%, rgba(0,0,0,0.009) 42.6%, rgba(0,0,0,0) 46%, rgba(0,0,0,0) 100%); }
.pblur i:nth-child(4) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 16%, rgba(0,0,0,0.991) 20.6%, rgba(0,0,0,0.942) 25.2%, rgba(0,0,0,0.837) 29.8%, rgba(0,0,0,0.683) 34.4%, rgba(0,0,0,0.500) 39.0%, rgba(0,0,0,0.317) 43.6%, rgba(0,0,0,0.163) 48.2%, rgba(0,0,0,0.058) 52.8%, rgba(0,0,0,0.009) 57.4%, rgba(0,0,0,0) 62%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 16%, rgba(0,0,0,0.991) 20.6%, rgba(0,0,0,0.942) 25.2%, rgba(0,0,0,0.837) 29.8%, rgba(0,0,0,0.683) 34.4%, rgba(0,0,0,0.500) 39.0%, rgba(0,0,0,0.317) 43.6%, rgba(0,0,0,0.163) 48.2%, rgba(0,0,0,0.058) 52.8%, rgba(0,0,0,0.009) 57.4%, rgba(0,0,0,0) 62%, rgba(0,0,0,0) 100%); }
.pblur i:nth-child(5) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 20%, rgba(0,0,0,0.991) 26.0%, rgba(0,0,0,0.942) 32.0%, rgba(0,0,0,0.837) 38.0%, rgba(0,0,0,0.683) 44.0%, rgba(0,0,0,0.500) 50.0%, rgba(0,0,0,0.317) 56.0%, rgba(0,0,0,0.163) 62.0%, rgba(0,0,0,0.058) 68.0%, rgba(0,0,0,0.009) 74.0%, rgba(0,0,0,0) 80%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 20%, rgba(0,0,0,0.991) 26.0%, rgba(0,0,0,0.942) 32.0%, rgba(0,0,0,0.837) 38.0%, rgba(0,0,0,0.683) 44.0%, rgba(0,0,0,0.500) 50.0%, rgba(0,0,0,0.317) 56.0%, rgba(0,0,0,0.163) 62.0%, rgba(0,0,0,0.058) 68.0%, rgba(0,0,0,0.009) 74.0%, rgba(0,0,0,0) 80%, rgba(0,0,0,0) 100%); }
.pblur i:nth-child(6) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 24%, rgba(0,0,0,0.991) 31.6%, rgba(0,0,0,0.942) 39.2%, rgba(0,0,0,0.837) 46.8%, rgba(0,0,0,0.683) 54.4%, rgba(0,0,0,0.500) 62.0%, rgba(0,0,0,0.317) 69.6%, rgba(0,0,0,0.163) 77.2%, rgba(0,0,0,0.058) 84.8%, rgba(0,0,0,0.009) 92.4%, rgba(0,0,0,0) 100%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(var(--dir), rgba(0,0,0,1) 0%, #000 24%, rgba(0,0,0,0.991) 31.6%, rgba(0,0,0,0.942) 39.2%, rgba(0,0,0,0.837) 46.8%, rgba(0,0,0,0.683) 54.4%, rgba(0,0,0,0.500) 62.0%, rgba(0,0,0,0.317) 69.6%, rgba(0,0,0,0.163) 77.2%, rgba(0,0,0,0.058) 84.8%, rgba(0,0,0,0.009) 92.4%, rgba(0,0,0,0) 100%, rgba(0,0,0,0) 100%); }
.pblur::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--dir), rgba(10, 10, 10, calc(var(--tint) * 1.000)) 0%, rgba(10, 10, 10, calc(var(--tint) * 0.990)) 10%, rgba(10, 10, 10, calc(var(--tint) * 0.934)) 20%, rgba(10, 10, 10, calc(var(--tint) * 0.815)) 30%, rgba(10, 10, 10, calc(var(--tint) * 0.645)) 40%, rgba(10, 10, 10, calc(var(--tint) * 0.451)) 50%, rgba(10, 10, 10, calc(var(--tint) * 0.267)) 60%, rgba(10, 10, 10, calc(var(--tint) * 0.124)) 70%, rgba(10, 10, 10, calc(var(--tint) * 0.038)) 80%, rgba(10, 10, 10, calc(var(--tint) * 0.004)) 90%, rgba(10, 10, 10, calc(var(--tint) * 0.000)) 100%);
}
/* phones: four layers instead of six, to keep scrolling light on weaker hardware (the eased fades keep it smooth) */
@media (max-width: 700px) { .pblur i:nth-child(2), .pblur i:nth-child(5) { display: none; } }
.hdr-blur { top: 0; left: 0; right: 0; height: calc(100% + 56px); z-index: -1; --tint: .97; }   /* nearly black at the very top, so the page also fades into darkness */
.bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; padding-block: 10px; }
.bar-side { display: flex; align-items: center; min-width: 0; }
.bar-right { justify-content: flex-end; }

/* The nav: one centred glass pill (logo + links). Corners are the site radius, with the inner buttons one step tighter. */
.nav-pill { position: relative; display: flex; align-items: center; gap: 6px; }   /* no backing: only the current page gets a pill */
.brand { display: flex; align-items: center; padding: 5px 12px 5px 10px; margin-right: 2px; border-radius: var(--radius); text-decoration: none; }
.brand-logo {
  display: block; width: auto; max-width: 150px; object-fit: contain; transform-origin: 50% 65%;
  filter: brightness(0) invert(.93);      /* always the theme's light ink (#EDEDED), whatever colour the SVG file has */
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.brand:hover .brand-logo, .brand:focus-visible .brand-logo { transform: rotate(-9deg) scale(1.12); }
.brand:active .brand-logo { transform: scale(.94); transition-duration: .15s; }
@media (prefers-reduced-motion: reduce) { .brand-logo, .brand:hover .brand-logo { transition: none; transform: none; } }
.bar nav { display: flex; gap: 2px; }
.bar nav { position: relative; }
.bar nav a {
  color: var(--text-secondary); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  padding: 10px 14px; border-radius: var(--radius); border: 1px solid transparent;
  transition: color .2s ease, background-color .25s ease, border-color .25s ease;
}
.bar nav a:hover { color: var(--text-primary); }
.bar nav a[aria-current="page"] { color: var(--text-primary); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); }
/* wide screens: the current page is a thin line under its link, and the line slides to the next link when you change pages */
.nav-ink { display: none; }
@media (min-width: 701px) {
  .bar nav a { position: relative; }
  .bar nav a[aria-current="page"] { background: none; border-color: transparent; }
  .nav-ink { display: block; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--text-primary); pointer-events: none; transform-origin: left center; will-change: transform; }
  .nav-ink.go { transition: transform .36s cubic-bezier(.45, 0, .15, 1); }
}
@media (prefers-reduced-motion: reduce) { .nav-ink.go { transition: none; } }

/* Home / About */
.about { padding-block: clamp(24px, 5vw, 64px) clamp(8px, 1.5vw, 20px); }
.about-grid {
  display: grid; grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(28px, 6vw, 96px); align-items: center;
}
.avatar {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 28px; background: var(--bg-surface); border: 1px solid var(--border-subtle);
}
.about h1 {
  font: 600 clamp(2.4rem, 6vw, 4.2rem)/1.04 var(--font-sans);
  letter-spacing: -.03em; margin: 0 0 .3em;
}
.role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 1.5rem; }
.role { margin: 0; color: var(--muted); font-size: 1.1rem; }
#aboutText p { margin: 0 0 1em; max-width: 54ch; color: var(--text-secondary); }
#aboutText p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.6em; border-radius: var(--radius);
  background: #EDEDED; color: #0A0A0A;
  font: 500 .95rem/1.2 var(--sans); text-decoration: none;
  border: 1px solid #EDEDED; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn[hidden] { display: none; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: #EDEDED; border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #FFFFFF; border-color: rgba(255, 255, 255, .22); }
.text-link { font-size: .95rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color .2s ease; }
.text-link:hover { text-decoration-color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .avatar { max-width: 300px; margin-inline: auto; }
  .role-row, .about .actions { justify-content: center; }
  #aboutText p { margin-inline: auto; }
}

/* Inner pages */
.page { padding-block: clamp(24px, 4vw, 56px) clamp(36px, 6vw, 80px); }
.page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.page h1 { font: 600 clamp(2rem, 5vw, 3.2rem)/1.08 var(--font-sans); letter-spacing: -.03em; margin: 0 0 .4em; }
.page-head p { margin: 0; max-width: 56ch; line-height: 1.65; }
.contact .actions { margin-top: 0; }
.links { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.links a { color: var(--muted); font-size: .95rem; text-underline-offset: 4px; }
.links a { transition: color .2s ease; }
.links a:hover { color: var(--ink); }

/* Gallery: left-to-right masonry (columns are built by js/main.js; any aspect ratio) */
.gallery { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.gallery.is-leaving { opacity: 0; transform: translateY(8px); transition-duration: .18s; }
.masonry { display: flex; gap: 16px; align-items: flex-start; }
.g-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card {
  position: relative; display: block; width: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
  font: inherit; color: inherit;
}
.card img { display: block; width: 100%; height: auto; }
.card:hover { border-color: var(--border-hover); }

/* soft reveal: each card fades in and settles when its photo is ready (js adds .in) */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms), border-color .2s ease;
}
.card.reveal img { transform: scale(1.07); }
.card.reveal.in img { transform: none; transition: transform 1.3s var(--ease-out) var(--d, 0ms); }
.empty { color: var(--muted); }

/* Footer */
.site-footer {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: clamp(32px, 5vw, 48px) 32px;
  color: var(--text-muted); font: 400 .78rem/1.5 var(--font-mono);
}
.site-footer a { text-underline-offset: 4px; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--ink); }

/* Viewer */
dialog#viewer {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: none; height: 100vh; max-height: none;
  background: rgba(10, 10, 10, .98); color: var(--ink);
}
@supports (height: 100dvh) { dialog#viewer { height: 100dvh; } }
dialog#viewer::backdrop { background: rgba(10, 10, 10, .98); }
html.locked { overflow: hidden; }

.v { position: relative; display: flex; flex-direction: column; height: 100%; }
.v-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 56px var(--v-gutter) 8px;
}
.media { position: relative; display: inline-block; line-height: 0; }
.v-img { display: block; max-width: calc(100vw - 2 * var(--v-gutter)); max-height: var(--img-max-h); width: auto; height: auto; border-radius: var(--radius); border: 1px solid var(--border-subtle); }

.v-bar {
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}
.v-info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.v-title { margin: 0; font: 500 1.1rem/1.2 var(--font-sans); letter-spacing: -.015em; }
.v-title:empty { display: none; }
.v-desc { margin: 0; max-width: 56ch; max-height: 7.5em; overflow-y: auto; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.v-desc:empty { display: none; }
.v-title + .v-desc { margin-top: -2px; }
.v-meta { display: flex; align-items: center; gap: 14px; font: 400 .75rem/1.4 var(--font-mono); color: var(--text-muted); }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease;
}
.link-btn:hover { color: var(--ink); }
.link-btn[hidden] { display: none; }

/* Viewer buttons: just the icons (no circles), pinned to the screen so a longer description never moves them.
   On hover the icon leans in the direction it goes. */
.v-btn {
  position: absolute; z-index: 3; width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius); background: none; color: var(--text-muted);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .25s ease, transform .35s var(--ease-out);
}
.v-btn svg { transition: transform .35s var(--ease-out); }
.v-btn:hover { color: var(--text-primary); }
.v-btn:active { transform: scale(.9); }
.v-btn:focus { outline: none; }
.v-btn:focus-visible { outline: 1px solid rgba(255, 255, 255, .45); outline-offset: -6px; }   /* keyboard only, and never blue */
.v-close { top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); }
.v-close:hover svg { transform: rotate(90deg); }
.v-nav { top: 50%; margin-top: -24px; }
.v-prev { left: max(20px, env(safe-area-inset-left, 0px)); }
.v-next { right: max(20px, env(safe-area-inset-right, 0px)); }
.v-prev:hover svg { transform: translateX(-2px); }
.v-next:hover svg { transform: translateX(2px); }
.v-btn.is-off { visibility: hidden; }
dialog#viewer { overflow: hidden; overscroll-behavior: none; touch-action: none; }
dialog#viewer:focus { outline: none; }
.v-desc { touch-action: pan-y; overscroll-behavior: contain; }
@media (min-width: 701px) { dialog#viewer { --v-gutter: 96px; } }
@media (max-width: 700px) {   /* phones: the photo takes the screen; arrows sit in the bottom corners beside a compact caption */
  dialog#viewer { --v-gutter: 8px; }
  .v-stage { padding: calc(46px + env(safe-area-inset-top, 0px)) 8px 2px; }
  .v-close { top: calc(2px + env(safe-area-inset-top, 0px)); right: max(6px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; }
  .v-nav { top: auto; margin-top: 0; width: 44px; height: 44px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .v-prev { left: max(4px, env(safe-area-inset-left, 0px)); }
  .v-next { right: max(4px, env(safe-area-inset-right, 0px)); }
  .v-bar { padding: 4px 52px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .v-info { gap: 3px; }
  .v-title { font-size: .95rem; }
  .v-desc { max-width: none; max-height: 4.2em; font-size: .78rem; line-height: 1.4; }
  .v-meta { font-size: .7rem; }
}

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); }
.seg[hidden] { display: none; }
.seg button {
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
  padding: .4em 1.1em; border-radius: calc(var(--radius) - 3px);
  font: 500 .85rem/1.3 var(--sans); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.seg button:hover { color: var(--text-primary); }
.seg button.active { background: var(--bg-surface-elevated); border-color: var(--border-active); color: var(--text-primary); }

/* iMessage-style request bubble */
.bubble {
  position: absolute; z-index: 3; top: -14px; left: -8px;
  max-width: min(80%, 300px);
  padding: 9px 14px;
  background: #26262A; color: #EDEDED; border: 1px solid var(--border-subtle);
  border-radius: 18px 18px 18px 5px;
  font: 400 .95rem/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left; overflow-wrap: anywhere;
  transform: rotate(-4deg); transform-origin: bottom left;
  pointer-events: none;
  animation: pop .35s cubic-bezier(.3, 1.4, .5, 1) both;
}
.bubble::before {
  content: ""; position: absolute; left: -8px; bottom: 0; width: 20px; height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M16 0v16H6.5C3 16 1.2 15 0 13.5c2.6-.4 4.8-1.6 5.4-5.2L6 0z' fill='%2326262A'/></svg>") no-repeat center / 100% 100%;
}
.media.hide-req .bubble { display: none; }
@keyframes pop {
  from { opacity: 0; transform: rotate(-4deg) scale(.85); }
  to   { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* "Fold" before/after viewer inside the photo viewer (ba/ba-viewer.css holds the viewer's own styles).
   The figure gets the width that keeps image + control bar inside the room --img-max-h leaves, for any aspect ratio. */
.media.has-ba {
  display: block; line-height: normal;
  width: min(calc(100vw - 2 * var(--v-gutter)), calc((var(--img-max-h) - var(--ba-bar-h, 84px)) * var(--ba-ar, 1.25)));
}
.media.has-ba .ba { width: 100%; margin: 0; }
.media.has-ba .bubble { line-height: 1.35; }

@media (max-width: 480px) {
  .bubble { top: 10px; left: 14px; max-width: 78%; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; }
}

/* Home: contact section */
.section { position: relative; padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 44px); }
.section.words { padding-block: clamp(24px, 4vw, 48px) 0; }
.section.contact { padding-top: clamp(20px, 3.5vw, 40px); }
.section h2 { font: 600 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--font-sans); letter-spacing: -.015em; margin: 0 0 .4em; }
.section > p { margin: 0; max-width: 64ch; }
p { text-wrap: pretty; }
.section.contact .actions { margin-top: 1.4rem; }

/* Shop */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.product:hover { background: var(--bg-surface-hover); border-color: var(--border-hover); }
.product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-surface-elevated); border-bottom: 1px solid var(--border-subtle); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product h3 { margin: 0; font: 500 1.05rem/1.3 var(--font-sans); letter-spacing: -.015em; }
.price { color: var(--text-muted); font: 400 .8rem/1.4 var(--font-mono); }
.product p { margin: .6em 0 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.55; }
.product-cta { margin-top: auto; padding-top: 14px; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.product:hover .product-cta { text-decoration-color: var(--ink); }
.shop-actions { margin-top: 2rem; }


@media (max-width: 360px) { :root { --pad: 16px; } }

/* Mobile menu: the pill shrinks to logo + menu button; the links drop down in a second glass panel */
.menu-btn {
  display: none; position: relative; width: 40px; height: 40px; margin-left: auto;
  padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .25s ease;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .07); }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 700px) {
  .bar { grid-template-columns: 1fr; min-height: 64px; }
  .bar-side { display: none; }
  .nav-pill { width: 100%; }
  .brand { padding: 4px 10px; }
  .menu-btn { display: block; }
  .bar nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 6px;
    background: rgba(18, 18, 20, .55); border: 1px solid rgba(255, 255, 255, .1); border-radius: calc(var(--radius) + 4px);
    -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .bar nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .bar nav a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-pill { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-btn span, .bar nav, .bar nav.open { transition: none; }
}

/* Portfolio hint */
.page-head .hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px 0 0; padding: 5px 14px 5px 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .85rem; line-height: 1.4; color: var(--muted);
}
.page-head .hint[hidden] { display: none; }
.hint-icon {
  flex: none; width: 24px; height: 24px; border-radius: calc(var(--radius) - 4px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-sky-tint); color: var(--accent-sky);
}

/* Online status */
.status-wrap { position: relative; }
.status-wrap[hidden] { display: none; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  background: rgba(24, 24, 27, .5); color: var(--text-secondary);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  font: 500 .6875rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, border-color .2s ease;
}
.status:hover { background: var(--bg-surface-hover); border-color: var(--border-hover); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #52525B; }
.is-online .dot { background: var(--accent-sky); }
.is-online .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-sky);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 75%, 100% { transform: scale(2.8); opacity: 0; } }
.tip {
  display: none; position: absolute; z-index: 5; top: calc(100% + 10px); left: 0;
  width: max-content; max-width: min(270px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: var(--radius);
  background: rgba(24, 24, 27, .55); color: var(--text-primary); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  font-size: .85rem; line-height: 1.45; text-align: center; font-weight: 400; text-transform: none; letter-spacing: 0;
  pointer-events: none;
}
.status-wrap.open .tip, .status:focus-visible + .tip { display: block; animation: tipin .2s ease both; }
@media (hover: hover) {
  .status-wrap:hover .tip { display: block; animation: tipin .2s ease both; }
}
@keyframes tipin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .is-online .dot::after { animation: none; }
  .tip { animation: none !important; }
}

/* FAQ */
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-surface); border-radius: 18px; padding-inline: 22px; transition: background-color .3s ease; }
.faq-item:hover, .faq-item.open { background: var(--bg-surface-hover); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border: 0; background: none; color: var(--text-primary); cursor: pointer; text-align: left;
  font: 500 1.05rem/1.4 var(--font-sans); letter-spacing: -.015em; -webkit-tap-highlight-color: transparent;
}
.faq-icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, border-color .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px;
  border-radius: 2px; background: var(--ink); transition: background .3s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q:hover .faq-icon { border-color: var(--border-hover); background: var(--bg-surface-hover); }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--accent-sky-tint); border-color: rgba(56, 189, 248, .35); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--accent-sky); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.faq-item.open .faq-a-inner { visibility: visible; transition-delay: 0s; }
.faq-a-inner p {
  margin: 0; padding: 0 46px 22px 0; max-width: 62ch; line-height: 1.65; color: var(--text-secondary);
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.faq-item.open .faq-a-inner p { opacity: 1; transform: none; transition-delay: .08s; }
.faq-a-inner a { text-underline-offset: 3px; }
.faq-cta { max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.faq-cta p { margin: 0; }

/* Clients page: a grid of Ko-fi messages, newest first. Everything below the first rows melts into a progressive blur, with the Ko-fi button on top. */
.clients { position: relative; }
.clients-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 980px) { .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.tcard {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px;
  padding: 22px 22px 18px; border: 1px solid var(--border-subtle); border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 46%, rgba(255, 255, 255, 0)), var(--bg-surface);
  color: var(--text-secondary); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: border-color .35s ease, transform .55s var(--ease-out), background-color .35s ease;
}
/* a thin light line across the top edge, brighter on hover */
.tcard::before {
  content: ""; position: absolute; z-index: -1; left: 18px; right: 18px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); opacity: .55; transition: opacity .4s ease;
}
.tcard:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.tcard:hover::before { opacity: 1; }
.t-quote { display: block; height: 1.1rem; font: 500 2rem/1 var(--font-sans); letter-spacing: 0; color: var(--text-muted); }
.t-msg { margin: 0; font-size: 1.02rem; line-height: 1.55; letter-spacing: -.012em; color: var(--text-primary); overflow-wrap: anywhere; }
.t-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.t-av {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--text-primary); font-weight: 600; font-size: .72rem;
}
.t-name { font-weight: 500; font-size: .84rem; letter-spacing: -.005em; color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s ease; }
.tcard:hover .t-name { color: var(--text-primary); }
.t-tag {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px;
  font: 500 .6875rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); transition: color .3s ease;
}
.t-tag svg { transition: transform .35s var(--ease-out); }
.tcard:hover .t-tag { color: var(--text-secondary); }
.tcard:hover .t-tag svg { transform: translate(2px, -2px); }

/* the fade-out over the last rows: blur and dark tint grow towards the bottom edge */
.clients-fade { position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); bottom: -1px; height: clamp(300px, 46vw, 400px); pointer-events: none; }
.clients-fade[hidden] { display: none; }
.cl-blur { inset: 0; --dir: to top; --tint: .96; }
.clients-fade .cl-blur i, .clients-fade .cl-blur::after { transition: opacity 1.4s ease; }
.clients-fade:not(.on) .cl-blur i, .clients-fade:not(.on) .cl-blur::after { opacity: 0; }
.clients-fade .clients-cta > * { transition: opacity 1s ease .5s, transform 1.1s var(--ease-out) .5s, filter 1s ease .5s; }
.clients-fade:not(.on) .clients-cta > * { opacity: 0; transform: translateY(10px); filter: blur(8px); }
.clients-cta { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-inline: var(--pad); text-align: center; pointer-events: auto; }
.clients-cta p { margin: 0; max-width: 34ch; font-size: .9rem; color: var(--text-secondary); }

/* the Ko-fi button: Ko-fi's own orange, with a slow double heartbeat that sends two soft rings outward */
.kofi-btn {
  --k: 255, 100, 51;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
  padding: .85em 1.5em .85em 1.2em; border-radius: var(--radius);
  background: rgb(var(--k)); color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; letter-spacing: -.005em;
  box-shadow: 0 8px 26px rgba(var(--k), .32), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: kofi-beat 3.6s cubic-bezier(.4, 0, .2, 1) infinite;
  transition: filter .25s ease, box-shadow .25s ease;
}
.kofi-btn img { display: block; width: 20px; height: 20px; filter: brightness(0) invert(1); }
.kofi-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 34px rgba(var(--k), .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.kofi-btn:active { transform: scale(.97); }
.kofi-ring {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(var(--k), .22); opacity: 0;
  animation: kofi-ripple 3.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.kofi-ring.r2 { animation-delay: .22s; }
@keyframes kofi-beat {
  0%, 36%, 100% { transform: scale(1); }
  8%   { transform: scale(1.018); }
  16%  { transform: scale(1); }
  24%  { transform: scale(1.011); }
}
@keyframes kofi-ripple {
  0%   { opacity: 0; box-shadow: 0 0 0 0 rgba(var(--k), .2); }
  8%   { opacity: 1; }
  65%  { opacity: 0; box-shadow: 0 0 0 20px rgba(var(--k), 0); }
  100% { opacity: 0; box-shadow: 0 0 0 20px rgba(var(--k), 0); }
}
@media (max-width: 700px) {
  .clients-grid { gap: 10px; }
  .tcard { gap: 10px; padding: 14px 13px 12px; border-radius: 16px; }
  .t-quote { height: .8rem; font-size: 1.5rem; }
  .t-msg { font-size: .84rem; line-height: 1.45; }
  .t-foot { gap: 7px; padding-top: 10px; }
  .t-av { width: 22px; height: 22px; font-size: .64rem; }
  .t-name { font-size: .76rem; }
  .t-tag { font-size: 0; gap: 0; }   /* only the little arrow stays on narrow screens */
}
@media (prefers-reduced-motion: reduce) {
  .tcard, .t-tag svg { transition-duration: .01s; }
  .kofi-btn, .kofi-ring { animation: none; }
}

/* Footer: left links + payment icons */
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.social-icons { display: flex; align-items: center; gap: 10px; }

.site-footer { --ih: 16px; min-height: 96px; }
.pay-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pay-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(var(--ih, 24px) * var(--ar, 1)); height: var(--ih, 24px); text-decoration: none;
  transition: transform .25s cubic-bezier(.3, .8, .3, 1), filter .25s;
}
.pay-ico img { display: block; width: 100%; height: 100%; object-fit: var(--fit, contain); pointer-events: none; -webkit-user-drag: none; opacity: .5; filter: saturate(.55); transition: opacity .3s ease, filter .3s ease; }   /* muted at rest, so they sit behind the copyright line */
.pay-ico:hover img, .pay-ico:focus-visible img { opacity: .95; filter: none; }
a.pay-ico { cursor: pointer; }
span.pay-ico { cursor: default; }
.pay-ico img { transition: opacity .3s ease, filter .3s ease, transform .25s cubic-bezier(.3, .8, .3, 1); }
.pay-ico::before { content: ""; position: absolute; inset: -14px -7px; }   /* a steady hit area: it never moves, so the hover cannot flicker at the edge */
@media (hover: hover) {
  .pay-ico:hover img, .pay-ico:focus-visible img { transform: translateY(-3px) scale(1.08); }
}
a.pay-ico:active img { transform: scale(.92); }
.pay-ico::after {
  content: attr(data-label); position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--bg-surface-elevated); color: var(--text-primary); border: 1px solid var(--border-subtle);
  font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .04em;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s;
}
@media (hover: hover) {
  .pay-ico:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
}
.pay-ico:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
/* phones: copyright on the left, small payment icons on the right, clear gap between */
@media (max-width: 700px) {
  .site-footer {
    --ih: clamp(12px, 3.6vw, 15px);
    min-height: 0; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    gap: 20px; padding-block: 20px 24px; font-size: .8rem;
  }
  .footer-left { flex: none; white-space: nowrap; }
  .social-icons { display: none; }
  .pay-icons { flex-wrap: nowrap; gap: 7px; margin-left: auto; min-width: 0; }
  .pay-ico::after { display: none; }
}
@media (max-width: 360px) {
  .site-footer { --ih: 12px; gap: 12px; }
  .pay-icons { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .pay-ico, .pay-ico::after { transition: none; } }

/* Images / Albums switch */
.view-bar { margin: -6px 0 26px; }
.view-bar[hidden] { display: none; }
.view-seg { position: relative; }
.view-seg button { position: relative; z-index: 1; }
.view-seg button::after { content: ""; position: absolute; inset: -7px -1px; }   /* the toggle looks the same; the tap area is taller (about 45px) */
.view-seg button.active { background: transparent; border-color: transparent; }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: var(--w, 0px);
  transform: translateX(var(--x, 0px)); border-radius: calc(var(--radius) - 3px); background: var(--bg-surface-elevated); border: 1px solid var(--border-active);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.view-seg.no-anim .seg-thumb { transition: none; }

/* Albums: one image accordion per album (built by js/accordion.js).
   Every album gets the same box, whatever its number of photos. */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 40px; padding: 8px 0; }
.album { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.album:focus-visible { outline-offset: 10px; }
.album-name { display: block; margin-top: 16px; font-weight: 500; font-size: 1.05rem; letter-spacing: -.015em; color: var(--text-primary); }
.album-count { display: block; margin-top: 2px; color: var(--text-muted); font: 400 .75rem/1.5 var(--font-mono); }

/* The row is a fixed size; opening a picture is a negotiation between its cells (flex-grow set by JS) */
.acc { display: flex; width: 100%; aspect-ratio: var(--acc-ar, 1.133); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.acc-cell {
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); transition: border-color .2s ease;
}
.acc-cell[data-open] { border-color: var(--border-active); }
.acc-cell img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }

/* "Preview" album card: one photo at a time, the next one fades in and settles (js/main.js makePreview).
   Same box as the accordion, so switching the look in content.js never changes the layout. */
.prev {
  position: relative; width: 100%; aspect-ratio: var(--acc-ar, 1.133); overflow: hidden;
  border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  transition: border-color .2s ease; user-select: none; -webkit-user-select: none;
}
.album:hover .prev, .album:focus-visible .prev { border-color: var(--border-hover); }
.prev::after {   /* soft floor so the dots stay readable on bright photos */
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, .5), rgba(10, 10, 10, 0));
}
.prev-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  pointer-events: none; -webkit-user-drag: none; will-change: opacity, transform;
}
.prev-img.is-under { opacity: 1; z-index: 1; }
.prev-img.is-on { z-index: 2; animation: prev-in 1.25s var(--ease-out) both; }
.prev-img.is-first { opacity: 1; animation: none; }
@keyframes prev-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
.prev-dots { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; gap: 5px; pointer-events: none; }
.prev-dots i {
  display: block; width: 5px; height: 5px; border-radius: 999px; background: rgba(237, 237, 237, .4);
  transition: width .6s var(--ease-out), background-color .4s ease;
}
.prev-dots i.on { width: 18px; background: #EDEDED; }

/* Inside an album */
.album-head { margin: 2px 0 28px; }
.album-head > * { animation: rise .8s var(--ease-out) both; }
.album-head > :nth-child(2) { animation-delay: .06s; }
.album-head > :nth-child(3) { animation-delay: .12s; }
.album-head > :nth-child(4) { animation-delay: .18s; }
.back {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--muted); font-size: .85rem; font-weight: 500; text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .35s var(--ease-out);
}
.back:hover { color: var(--ink); background: var(--bg-surface-hover); border-color: var(--border-hover); transform: translateX(-3px); }
.album-title { font: 600 clamp(1.7rem, 4vw, 2.5rem)/1.1 var(--font-sans); letter-spacing: -.015em; margin: 20px 0 6px; }
.album-desc { margin: 0; max-width: 56ch; }
.album-meta { margin: 8px 0 0; color: var(--text-muted); font: 400 .78rem/1.5 var(--font-mono); }


@media (max-width: 700px) {
  .masonry, .g-col { gap: 12px; }
  .albums { grid-template-columns: 1fr; gap: 34px; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .card.reveal img { opacity: 1; transform: none; transition: none; }
  .gallery, .gallery.is-leaving { transition: none; transform: none; opacity: 1; }
  .seg-thumb, .back { transition: none; }
  .prev-img.is-on { animation: none; opacity: 1; }
  .prev-dots i { transition: none; }
  .album-head > * { animation: none; }
}

/* ==================================================================
   Viewer: smooth open / close, and no stretched photo while the viewer loads
   ================================================================== */
dialog#viewer[open] { animation: v-in .4s var(--ease-out); }
dialog#viewer[open]::backdrop { animation: v-bd .4s ease; }
dialog#viewer.is-closing { animation: v-out .34s ease forwards; }
dialog#viewer.is-closing::backdrop { animation: v-bd-out .34s ease forwards; }
@keyframes v-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes v-bd { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-bd-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  dialog#viewer[open], dialog#viewer[open]::backdrop, dialog#viewer.is-closing, dialog#viewer.is-closing::backdrop { animation: none; }
}
/* Before the Fold viewer has loaded, the plain <img> carries width/height attributes. The global "img { max-width: 100% }" then
   squeezed the width but kept the attribute height, so phones showed the photo stretched top to bottom. Keep the ratio instead,
   and keep the room the control bar will take, so nothing jumps when the viewer starts. */
.media.has-ba > figure:not(.ba) { margin: 0; padding-bottom: var(--ba-bar-h, 84px); }
.media.has-ba > figure:not(.ba) > img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border-subtle); }

/* ==================================================================
   Gallery cards: Before -> After fade (js/main.js adds .fade-on, once per card per visit)
   ================================================================== */
.card .fade-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.card.reveal.in img.fade-after { transition: transform 1.3s var(--ease-out) var(--d, 0ms), opacity 1.25s cubic-bezier(.45, 0, .25, 1); }
.card.has-fade.fade-on img.fade-after { opacity: 1; }

/* ==================================================================
   Home: one-screen hero. Never scrolls, at any size.
   Wide screens: name across the top, avatar centred, text + buttons bottom-left, services bottom-right.
   Phones and portrait screens: name, avatar, description, buttons, all centred (the services list is left out).
   ================================================================== */
html.is-home, html.is-home body { height: 100%; overflow: hidden; }
html.is-home body { height: 100vh; height: 100dvh; min-height: 0; }
[data-page="home"] .hdr-blur { display: none; }          /* nothing scrolls under the bar on this page */
[data-page="home"] .site-header { flex: none; }
[data-page="home"] .site-footer { flex: none; min-height: 0; padding-block: 12px calc(16px + env(safe-area-inset-bottom, 0px)); }

.hero {
  /* --fs: size of the big name. --nb: where the bottom of the name sits inside the avatar box. --ov: how far the head reaches up into the name. */
  --fs: min(23vw, 40dvh, 20rem); --pt: clamp(2px, 1.2dvh, 14px);
  --nb: calc(var(--pt) + .6 * var(--fs)); --ov: 0px;
  position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; overflow: hidden;
}
.hero > * { grid-area: 1 / 1; min-width: 0; min-height: 0; }

.hero-name {
  align-self: start; justify-self: center; z-index: 2; margin: 0; pointer-events: none; white-space: nowrap; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; height: calc(var(--pt) + .8 * var(--fs)); padding-top: var(--pt);
  font: 900 var(--fs)/.8 var(--font-sans); text-transform: uppercase; color: var(--text-primary);
}
.hn { position: relative; display: inline-block; letter-spacing: -.03em; line-height: .8; }
/* heat map (js/heat.js): the canvas draws the name; the text stays underneath, invisible, so the size and the page text are unchanged */
.hn.has-heat { color: transparent; }
.heat-canvas { position: absolute; display: block; pointer-events: none; }

.hero-art { position: relative; align-self: end; z-index: 1; width: 100%; height: 100%; pointer-events: none; container-type: size; }
.hero.is-cutout .hero-art { z-index: 3; }   /* the cut-out head sits in FRONT of the name; the name only goes a little way behind it */
/* the avatar is sized and placed from the name: its head top lands on the middle line of the name, so the head covers the lower half of the letters (head top = 18% of the image) */
.hero-img, .hero-glow { --S: calc(.8 * min(112cqh, calc((100cqh - var(--nb) + var(--ov)) / .72))); }
.hero-img {   /* .8 = the avatar's size: lower it to show more shoulders */
  position: absolute; left: 50%; margin-left: calc(var(--S) / -2); display: block; max-width: none;   /* centred even when wider than the screen */
  width: var(--S); height: var(--S); top: calc(var(--nb) - var(--ov) - .18 * var(--S));
  /* feathered edges: the body melts into the page at the sides and the bottom */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 84%, transparent), linear-gradient(to bottom, #000 62%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 20%, #000 84%, transparent), linear-gradient(to bottom, #000 62%, transparent 99%);
  mask-composite: intersect;
  user-select: none; -webkit-user-drag: none;
}

.hero-left {
  align-self: end; justify-self: start; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding-bottom: clamp(10px, 4dvh, 48px); text-align: left;
}
.hero-role { margin: 0; font: 500 clamp(1.05rem, min(1.7vw, 3dvh), 1.5rem)/1.25 var(--font-sans); letter-spacing: -.012em; color: var(--text-primary); }
.hero-left #aboutText p { margin: 0; max-width: min(34ch, 27vw); font-size: clamp(.82rem, min(1vw, 2dvh), 1rem); line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(20px, 2.6vw, 40px); margin-top: 2px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: .6em; padding: 10px 0; text-decoration: none; color: var(--text-primary); white-space: nowrap;
  font: 600 clamp(.92rem, min(1.3vw, 2.6dvh), 1.2rem)/1 var(--font-sans); letter-spacing: .03em; text-transform: uppercase;
}
.hero-cta .hc-slash { color: var(--text-muted); font-style: italic; letter-spacing: 0; }
.hero-cta svg { flex: none; transition: transform .35s var(--ease-out); }
.hero-cta:hover svg, .hero-cta:focus-visible svg { transform: translateX(6px); }
.hero-cta[hidden] { display: none; }

.hero-services {
  align-self: end; justify-self: end; z-index: 4; list-style: none; margin: 0; padding: 0 0 clamp(10px, 4dvh, 48px);
  display: flex; flex-direction: column; align-items: flex-start; gap: .55em; text-align: left;
}
.hero-services[hidden] { display: none; }
/* all the same size, in capitals, shortest first (js/main.js sorts them by length). Mouse near a letter makes it heavier (Geist Variable). */
.hero-services li { font: 400 clamp(.8rem, min(1.1vw, 2.1dvh), 1.05rem)/1.2 "Geist Variable", var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: rgba(237, 237, 237, .9); white-space: nowrap; }

@media (min-width: 761px) and (max-height: 620px) { .hero-left #aboutText { display: none; } }
@media (min-width: 761px) and (max-height: 520px) { .hero { --fs: min(23vw, 31dvh, 20rem); } }

@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .hero { --fs: min(calc((100vw - 2 * var(--pad)) / 3.45), 17dvh, 15rem); --pt: clamp(0px, 1.5dvh, 14px); --nb: 0px; --ov: calc(var(--fs) * .11);
          display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 6px; }
  .hero > * { grid-area: auto; }
  .hero-name { order: 1; flex: none; align-self: center; }
  .hero-art { order: 2; flex: 1 1 0; align-self: stretch; width: 100%; height: auto; }
  .hero-img, .hero-glow { --S: calc(.8 * min(170cqw, calc((100cqh + var(--ov)) / .72))); }
  .hero-services { display: none; }
  .hero-left { order: 3; flex: none; align-self: center; align-items: center; text-align: center; padding: 0 0 clamp(22px, 6.5dvh, 64px); gap: 6px; }
  .hero { --alias-fs: clamp(1.5rem, 9.4vw, 3rem); }
  .hero-role { font-size: 1.05rem; }
  .hero-left #aboutText p { max-width: 34ch; font-size: .9rem; line-height: 1.5; }
  .hero-ctas { justify-content: center; gap: 0 28px; }
  .hero-cta { padding: 12px 0; font-size: .95rem; }
}
@media (max-width: 760px) and (max-height: 640px), (max-aspect-ratio: 1 / 1) and (max-height: 640px) { .hero-left #aboutText { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-cta svg { transition: none; }  }

/* footer: a plain fade on load (no scroll observer, so it can never stay hidden at the bottom of a short phone page) */
.site-footer { animation: foot-in .9s ease .35s both; }
@keyframes foot-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site-footer { animation: none; } }
.hero-services .px { font-variation-settings: "wght" 450; }


/* ==================================================================
   Locked page (js/locked.js): what visitors see on private pages (studio, album editor)
   ================================================================== */
.lock-page { padding-top: clamp(48px, 12vh, 140px); }
.lock-kicker { margin: 0 0 14px; font: 500 .75rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted, #71717A); }
.lock-page .page-head h1 { max-width: 18ch; text-wrap: balance; }
.lock-page .page-head .lock-text + .lock-text, .lock-page .page-head .lock-code { margin-top: 14px; }
.lock-actions { margin-top: 28px !important; }

/* ==================================================================
   The avatar: a soft shadow on the name behind it, and an entrance that rises out of a blur with a glow behind it, then hangs in
   the air with a slow float
   ================================================================== */
.hero-img:not(.hero-img-b) { filter: drop-shadow(0 calc(var(--S) * .018) calc(var(--S) * .05) rgba(0, 0, 0, .55)); }
html.pre .hero-img { opacity: 0; }
/* one picture, one smooth move: it fades and rises with the same curve as the rest of the page (opacity and transform only, so the GPU does all of it) */
html:not(.pre) .hero-img { animation: avatar-in 1.5s var(--ease-out) .1s both, avatar-float 9s ease-in-out 1.7s infinite alternate; }
@keyframes avatar-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes avatar-float { from { translate: 0 0; } to { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { html:not(.pre) .hero-img { animation: none !important; } }

/* the editor name (same font and heat map as the big name, but smaller) above "Photo Editor and Retoucher" */
.hero { --alias-fs: clamp(1.75rem, min(2.84vw, 5dvh), 2.5rem); }   /* desktop: about as wide as the description paragraph */
.hero-alias { margin: 0 0 2px; font: 900 var(--alias-fs)/.9 var(--font-sans); text-transform: uppercase; color: var(--text-primary); }
.hero-alias[hidden] { display: none; }
.hero-alias .hn { line-height: .9; letter-spacing: -.01em; }


.lock-text { margin: 0; max-width: 56ch; font: 400 1rem/1.6 var(--font-sans, system-ui, sans-serif); color: var(--text-secondary, #a1a1aa); }
.lock-text b { color: var(--text-primary, #EDEDED); font-weight: 600; }
.lock-code { display: block; max-width: 100%; overflow-x: auto; padding: 14px 20px; border-radius: 14px; font: 500 .85rem/1.4 var(--font-mono, ui-monospace, monospace); color: var(--text-primary, #EDEDED); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }

/* leaving a page: the content fades out before the next page loads */
html.leaving main, html.leaving .site-footer { opacity: 0; transform: translateY(-8px); filter: blur(8px); transition: opacity .22s ease, transform .22s ease, filter .22s ease; }

/* the "available for work" pill is only there at the top of the page */
.status-wrap { transition: opacity .35s ease, transform .35s ease; }
html.scrolled .status-wrap { opacity: 0 !important; transform: translateY(-6px) !important; pointer-events: none; }
/* phones: the editor name a bit bigger */
@media (max-width: 760px), (max-aspect-ratio: 1 / 1) { .hero { --alias-fs: clamp(1.5rem, 9.2vw, 2.6rem); } }
/* clients: the blurred rows run edge to edge, so the blur has no visible edge at the sides */
.clients-fade { left: calc(50% - 50vw); right: calc(50% - 50vw); }
body { overflow-x: clip; }

.hero-img.hero-img-b, .hero-img.hero-img-c { -webkit-mask-image: none; mask-image: none; filter: none; }

/* the big name is a large canvas: its entrance only fades and rises (a live blur on something that size competes with the avatar's entrance) */
@keyframes enter-in-lite { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
html.anim .hero-name.enter.in { animation-name: enter-in-lite; }
html.anim .hero-name.enter { filter: none; }
