/* ===== v32 typography: self-hosted Lora (SIL OFL 1.1) for editorial serif accents ===== */
@font-face { font-family: "Lora"; src: url("fonts/Lora-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
/* =====================================================================
   ui.css - the ONE visual design system (v21). Clean editorial portfolio.
   Light by default, dark on toggle. Dark "rooms" stay dark in both themes.
   Loaded last on every page. No WebGL, no 3D hover, no pointer effects.
   ===================================================================== */

/* ---------- tokens (they feed the older page stylesheets too) ---------- */
:root, html[data-theme="light"] {
  color-scheme: light;
  --bg: #ecebe7; --surface: #ffffff; --alt: #e3e2dd;
  --forest: var(--bg); --ink: var(--alt); --paper: #15161a; --mute: #6a6c72;
  --line: rgba(21, 22, 26, .12); --line-strong: rgba(21, 22, 26, .3);
  --crimson: #15161a; --accent: #b9810c; --gold: #b9810c;
  --f-head: "Bricolage Grotesque", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --f-display: var(--f-head); --f-serif: "Lora", Georgia, "Times New Roman", serif;
  --btn-bg: #15161a; --btn-fg: #f4f3ef;
}
html:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #1d2024; --surface: #272b30; --alt: #23272b;
  --forest: var(--bg); --ink: var(--alt); --paper: #f2f1ed; --mute: #9da0a6;
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .28);
  --crimson: #f2f1ed; --accent: #e8b83a; --gold: #e8b83a;
  --btn-bg: #f2f1ed; --btn-fg: #15161a;
}
.band-dark { --bg: #1d2024; --surface: #272b30; --alt: #23272b; --paper: #f2f1ed; --mute: #9da0a6; --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .28); --accent: #e8b83a; --btn-bg: #f2f1ed; --btn-fg: #15161a; background: #1d2024; color: #f2f1ed; }
/* aliases used by the older page stylesheets */
:root { --sp-bg: var(--bg); --sp-text: var(--paper); --sp-mute: var(--mute); --sp-med: var(--mute); --sp-gold: var(--accent); --sp-gold-line: var(--line-strong); --sp-border: var(--line); --sp-border-solid: var(--line-strong);
  --sp-btn: var(--btn-bg); --sp-btn-text: var(--btn-fg); --sp-glass: var(--surface); --sp-hi: transparent; --sp-glow: transparent; --sp-shadow-1: none; --sp-shadow-2: none; --sp-ease: cubic-bezier(.2, .7, .1, 1); --sp-r-md: 14px; --sp-r-lg: 20px; --header-h: 68px; }

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--paper); font-family: var(--f-body); font-weight: 500; letter-spacing: -.005em; }
body::before, body::after { display: none !important; }
::selection { background: var(--paper); color: var(--bg); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.section, .section--ink { background: transparent; }

/* ---------- type ---------- */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 600 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.kicker::before, .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow::before { height: 7px; width: 7px; }
.sec-h, .section-title, .page-title, .ab-title { font-family: var(--f-head); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--paper); }
.sec-h { font-size: clamp(38px, 6.4vw, 92px); margin: 0 0 18px; }
.sec-sub { color: var(--mute); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; max-width: 52ch; margin: 0; }
.section-title em, .page-title em, .ab-title em, .sec-h em, .contact-h em, .hero-h1 em { font-style: normal; color: var(--accent); }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; transition: opacity .25s; }
.tlink:hover { opacity: .6; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; border: 1.5px solid var(--line-strong); background: transparent; color: var(--paper); transition: background .25s, color .25s, border-color .25s, transform .25s; backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn:hover { border-color: var(--paper); transform: none; background: transparent; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg); opacity: .86; }
.btn-ghost { background: transparent; }
.btn:active { transform: scale(.97); }
.pill { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 8px 0 26px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 15px; transition: opacity .25s, transform .25s; }
.pill i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-fg); color: var(--btn-bg); transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.pill:hover i { transform: translateY(3px); }
.pill:active { transform: scale(.97); }

/* ---------- header: plain text nav ---------- */
.site-header, .site-header.is-scrolled, body:not([data-page="home"]) .site-header { background: transparent; border-bottom: 1px solid transparent; backdrop-filter: none; -webkit-backdrop-filter: none; height: var(--header-h); transition: background .3s, border-color .3s; }
.site-header::before { display: none; }
.site-header.is-scrolled, body:not([data-page="home"]) .site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand-text { font-family: var(--f-body); font-weight: 800; font-size: 14px; letter-spacing: -.01em; text-transform: none; }
.mark { border: 1.5px solid var(--paper); background: transparent; font-family: var(--f-body); font-style: normal; font-weight: 800; font-size: 11px; }
.nav a, .nav-panel a.nav-link { font-family: var(--f-body); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a::after { background: var(--paper); height: 1.5px; }
.header-action .btn { font-family: var(--f-body); font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: none; background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-action .btn:hover { background: var(--btn-bg); opacity: .85; border-color: var(--btn-bg); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--paper); display: inline-grid; place-items: center; }
.theme-toggle .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* menu button + panel (mobile) */
.burger { width: auto; height: 40px; margin: 0; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); display: none; align-items: center; gap: 10px; background: transparent; }
.burger span { display: none; }
.burger::before { content: "Menu"; font: 700 13px var(--f-body); }
.burger::after { content: ""; width: 14px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: transform .35s; }
.menu-open .burger::before { content: "Close"; }
.menu-open .burger::after { height: 0; border-bottom: 0; transform: rotate(45deg) translateY(1px); }
@media (max-width: 900px) { .burger { display: inline-flex; } }
.nav-panel { background: var(--bg); padding: calc(var(--header-h) + 24px) 20px 28px; }
.nav-panel ul { display: grid; gap: 0; }
.nav-panel li { border-bottom: 1px solid var(--line); overflow: hidden; }
.nav-panel a.nav-link { display: flex !important; justify-content: space-between; align-items: center; padding: 16px 0; font: 600 clamp(32px, 9vw, 50px)/1.1 var(--f-head); letter-spacing: -.03em; color: var(--paper); text-transform: none; }
.nav-panel a.nav-link::after { content: "\2197"; font-size: .5em; color: var(--mute); }
.nav-panel-foot { font-family: var(--f-mono); color: var(--mute); }

/* ---------- reveal (scroll) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .1, 1), transform .8s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i, 0) * 80ms); }
html.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 40px) var(--gutter) 110px; background: var(--bg); }
.hero-in { width: 100%; max-width: 1280px; margin: 0 auto; }
.hero-i { margin: .28em 0 12px; font: 600 clamp(36px, 7vw, 108px)/1 var(--f-head); letter-spacing: -.04em; color: color-mix(in srgb, var(--paper) 38%, transparent); }
.hero-tag { margin: 34px 0 6px; font-weight: 700; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.02em; }
.hero-sup { margin: 0 0 30px; color: var(--mute); max-width: 44ch; }
.cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-in > * { opacity: 0; transform: translateY(22px); animation: ui-in .9s cubic-bezier(.2, .7, .1, 1) forwards; }
.hero-in > :nth-child(1) { animation-delay: .05s; } .hero-in > :nth-child(2) { animation-delay: .15s; } .hero-in > :nth-child(3) { animation-delay: .25s; } .hero-in > :nth-child(4) { animation-delay: .32s; }
.hero-in > :nth-child(5) { animation-delay: .42s; } .hero-in > :nth-child(6) { animation-delay: .5s; } .hero-in > :nth-child(7) { animation-delay: .58s; }
@keyframes ui-in { to { opacity: 1; transform: none; } }
.hero-meta { position: absolute; top: calc(var(--header-h) + 14px); right: var(--gutter); display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font: 600 12px var(--f-body); }
.chip small { font-size: 11px; color: var(--mute); font-weight: 600; }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; }
.hero-strip-inner { display: flex; justify-content: space-between; gap: 16px; font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.hero-strip-inner a { color: var(--paper); }

/* notebook (rotating role) */
.notebook { position: relative; display: inline-block; margin: 6px 0 0; color: #15161a; transform: rotate(-2deg); perspective: 900px; perspective-origin: 50% 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.nb-stack { display: block; position: relative; width: 100%; height: 100%; }
.nb-card { position: absolute; left: 0; top: 0; width: max-content; white-space: nowrap; padding: 30px 38px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 22px 40px -22px rgba(0, 0, 0, .45); transform-origin: 50% 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform, opacity; z-index: 1; opacity: 0; transform: translate3d(0, 10px, 0) rotateX(-16deg) scale(.97); }
.nb-card b { display: block; text-align: center; font: 600 clamp(34px, 6vw, 88px)/1.15 var(--f-head); letter-spacing: -.04em; padding-bottom: .04em; }
.nb-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: .22; pointer-events: none; }
.nb-card.on { z-index: 2; opacity: 1; transform: none; transition: transform .95s cubic-bezier(.2, .8, .2, 1), opacity .45s ease; }
.nb-card.on::after { opacity: 0; transition: opacity .95s ease; }
.nb-card.out { z-index: 3; opacity: 0; transform: translate3d(0, -4px, 0) rotateX(112deg); transition: transform .85s cubic-bezier(.5, .05, .3, 1), opacity .2s linear .6s; }
.nb-card.out::after { opacity: .28; transition: opacity .6s ease; }
html:not(.js) .nb-card:not(.on) { display: none; }
html:not(.js) .nb-card.on { position: relative; }
.nb-rings { position: absolute; top: -9px; left: 22px; right: 22px; height: 18px; background: radial-gradient(circle at 50% 50%, #cfcfcf 0 3px, transparent 3.5px) 0 0 / 22px 18px repeat-x; }
.nb-rings::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 5px, #8d8d8d 5px 7px, transparent 7px 22px) 0 3px / 22px 12px repeat-x; opacity: .8; }

  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 2px, transparent 2px 16px), linear-gradient(180deg, #4a5058, #353a41 60%, #2b2f35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -40px 80px -30px rgba(0, 0, 0, .55); }

/* ---------- DOORS (Explore) ---------- */
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(180deg, #59616b, #3c424a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 6px 0 18px -6px rgba(0, 0, 0, .5); backface-visibility: hidden; }

/* ---------- PHONE SHOWCASE ---------- */
.showcase { padding: clamp(80px, 11vw, 160px) var(--gutter); background: var(--bg); overflow: hidden; }
.show-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--paper); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.phone-wrap { display: grid; place-items: center; }
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19; border-radius: 15% / 7%; padding: 3.2%; background: #0d0e10; box-shadow: 0 0 0 2px #3a3d42, 0 40px 70px -30px rgba(0, 0, 0, .55); }
.ph-island { position: absolute; z-index: 2; top: 2.6%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; border-radius: 99px; background: #000; }
.ph-screen { position: relative; height: 100%; border-radius: 12.5% / 6%; overflow: hidden; background: #ecebe7; color: #15161a; padding: 14% 7% 6%; font-family: var(--f-body); }
.ph-bar { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: clamp(9px, 2.8vw, 12px); }
.ph-bar i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #15161a; display: grid; place-items: center; font: 800 7px var(--f-body); }
.ph-k { margin: 14% 0 0; font: 600 clamp(6px, 1.9vw, 8px) var(--f-mono); letter-spacing: .14em; color: #6a6c72; }
.ph-h { margin: 3% 0 0; font: 600 clamp(22px, 7vw, 30px)/.98 var(--f-head); letter-spacing: -.04em; }
.ph-i { margin: 4% 0 3%; font: 800 clamp(16px, 5vw, 22px) var(--f-body); letter-spacing: -.04em; color: rgba(21, 22, 26, .35); }
.ph-tag { display: inline-block; padding: 6px 14px; border-radius: 8px; background: #fff; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .35); font: 800 clamp(13px, 4vw, 18px) var(--f-body); letter-spacing: -.04em; transform: rotate(-2deg); }
.ph-list { list-style: none; margin: 10% 0 0; padding: 0; display: grid; gap: 7px; }
.ph-list li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #fff; font-weight: 700; font-size: clamp(9px, 2.8vw, 12px); }
.ph-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ph-list em { margin-left: auto; font-style: normal; color: #6a6c72; }
.ph-home { position: absolute; left: 50%; bottom: 2.2%; transform: translateX(-50%); width: 34%; height: 1.2%; border-radius: 9px; background: #15161a; }

/* ---------- ABOUT (short) + CONTACT ---------- */
.contact { padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(60px, 8vw, 110px); }
.contact-h { font: 600 clamp(40px, 8vw, 128px)/.98 var(--f-head); letter-spacing: -.04em; margin: 0 0 clamp(34px, 5vw, 64px); }
.contact .social-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.contact .social-card { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; min-height: 0; border-radius: 999px; background: transparent; border: 1.5px solid rgba(255, 255, 255, .28); box-shadow: none; color: #f2f1ed; }
.contact .social-card:hover { background: #f2f1ed; color: #15161a; border-color: #f2f1ed; transform: none; }
.contact .social-card * { color: inherit; }
.share-wrap { margin-top: 40px; }

/* ---------- footer ---------- */
.site-footer { background: #15171a; color: #f2f1ed; border-top: 0; --paper: #f2f1ed; --mute: #9da0a6; --line: rgba(255, 255, 255, .12); }
.site-footer a:hover { opacity: .65; }
.footer-brand p, .footer-bottom { color: #9da0a6; }
.ui-foot-mark { text-align: center; font: 600 clamp(48px, 15vw, 280px)/.86 var(--f-head); letter-spacing: -.04em; text-transform: none; white-space: nowrap; overflow: hidden; padding: 20px 0 0; margin-top: 30px; color: #f2f1ed; user-select: none; opacity: .08; transform: translateY(40%); transition: transform 1.1s cubic-bezier(.2, .7, .1, 1), opacity 1.1s; }
.ui-foot-mark.in { transform: none; opacity: .16; }

/* ---------- pull cord ---------- */
.pull-cord { position: fixed; z-index: 90; top: 0; right: clamp(14px, 3.2vw, 46px); width: 30px; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pull-cord .cord { position: absolute; left: 50%; top: 0; width: 2px; height: 96px; margin-left: -1px; background: var(--paper); opacity: .75; transition: height .25s; }
.pull-cord .bead { position: absolute; left: 50%; top: 92px; width: 16px; height: 22px; margin-left: -8px; border-radius: 8px; background: linear-gradient(90deg, #f6dc8a, #c89a2e); transition: top .25s; box-shadow: 0 4px 8px rgba(0, 0, 0, .35); }
.pull-cord:hover .cord { height: 106px; } .pull-cord:hover .bead { top: 102px; }
.pull-cord.pulled { animation: ui-pull .5s cubic-bezier(.2, .7, .1, 1); }
@keyframes ui-pull { 35% { transform: translateY(14px); } }


/* ---------- inner pages: hero + flat cards ---------- */
.page-hero { background: transparent; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); border: 0; }
.page-hero .wrap, .page-hero { color: var(--paper); }
.page-title { font-size: clamp(48px, 10vw, 150px); margin: 0 0 20px; }
.page-sub { color: var(--mute); font-size: clamp(16px, 1.7vw, 21px); max-width: 54ch; font-family: var(--f-body); font-style: normal; }
.ab-intro { padding-top: calc(var(--header-h) + 60px); }
.ab-title { font-size: clamp(48px, 9.6vw, 140px); }
.ab-label { font: 600 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.ab-lead { font-weight: 700; letter-spacing: -.03em; }
body :is(.lk-card, .note-card, .social-card, .ab-card, .project-card, .tool-card, .mem-card, .memory, .g-toolbar, .auth-panel, .share-box, .nt-stat, .connect-card, .nt-hero, .lk-bar, .mem-panel, .confirm-box, .empty-note, .read-callout, .note-toc, .note-info) {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--paper); }
@media (hover: hover) and (pointer: fine) { body :is(.lk-card, .note-card, .project-card, .tool-card, .mem-card, .memory):hover { border-color: var(--paper); transform: translateY(-3px); } }
input, select, textarea { font-family: var(--f-body); }
.site-header .btn, .nav-panel { transition-duration: .25s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .show-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: 2; margin-top: 10px; }
  .hero-meta { display: none; }
  .pull-cord { right: 12px; }
}
@media (max-width: 640px) {
  :root, html { --header-h: 64px; }
  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + 36px); padding-bottom: 96px; min-height: 100svh; }
  .hero-i { font-size: clamp(34px, 10.5vw, 52px); }
  .nb-card { padding: 26px 26px 12px; }
  .nb-card b { font-size: clamp(34px, 11vw, 54px); }
  .cta { gap: 18px; }
  .hero-strip-inner { flex-direction: column; gap: 4px; font-size: 10px; }
  .hero-strip-inner span:nth-child(2) { display: none; }
  .contact .social-card { padding: 12px 18px; }
  .pull-cord .cord { height: 70px; } .pull-cord .bead { top: 66px; } .pull-cord { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in > * { animation: none; opacity: 1; transform: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .nb-card, .nb-card::after, .notebook { transition: none !important; } .ui-wipe { display: none; } .ui-foot-mark { transform: none; transition: none; opacity: .14; }
}
.hero::before, .hero::after { display: none !important; }
.hero { background: var(--bg) !important; }
.hero-meta { right: calc(var(--gutter) + 56px); }

/* ---------- about page: map its private palette onto the theme tokens ---------- */
body[data-page="about"] { --a-bg: var(--bg); --a-forest: var(--bg); --a-dark: var(--alt); --a-card: var(--surface); --a-text: var(--paper); --a-mute: var(--mute); --a-gold: var(--accent); --a-line: var(--line); --a-btn: var(--btn-bg); --a-btn-text: var(--btn-fg); background: var(--bg); color: var(--paper); }
.ab-intro::before { display: none; }
.ab-title { text-transform: none; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.ab-head h2 { text-transform: none; font-family: var(--f-head); font-weight: 600; letter-spacing: -.03em; }
.ab-quote { background: var(--alt); }
.ab-lead { font-weight: 700; max-width: 26ch; }
.scroll-progress span { background: var(--paper); }

/* ---------- flatter notes hero, pill social links ---------- */
body .nt-hero { background: transparent; border: 0; border-radius: 0; padding-inline: 0; }
.contact .social-card { aspect-ratio: auto; width: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 14px 24px; min-height: 0; border-radius: 999px; }
.contact .social-card .social-num, .contact .social-card .social-index, .contact .social-card [class*="num"], .contact .social-card [class*="index"] { display: none; }
.contact .social-card .social-arrow { margin-left: 4px; }
.contact .social-card strong, .contact .social-card h3, .contact .social-card [class*="name"] { font: 700 17px var(--f-body); letter-spacing: -.02em; margin: 0; }
.contact .social-card [class*="handle"], .contact .social-card small, .contact .social-card p { font-size: 13px; opacity: .65; margin: 0; }
.pull-cord { top: var(--header-h); height: 90px; } .pull-cord .cord { height: 56px; } .pull-cord .bead { top: 52px; }
.pull-cord:hover .cord { height: 64px; } .pull-cord:hover .bead { top: 60px; }
@media (max-width: 640px) { .pull-cord { top: var(--header-h); height: 80px; } .pull-cord .cord { height: 46px; } .pull-cord .bead { top: 42px; } .ui-foot-mark { font-size: 15vw; } }
.ui-foot-mark { font-family: "Anton", "Impact", sans-serif; text-transform: uppercase; letter-spacing: .01em; line-height: .9; font-size: clamp(52px, 15vw, 300px); }


/* ================= v23: editorial scroll system (all driven by ui.js, transform/opacity only) ================= */
/* hero: name as identity, masked line reveal, layered parallax */
.hero-h1 .mk { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h1 .ln { display: block; transform: translateY(108%); animation: ui-line 1.1s cubic-bezier(.2, .8, .1, 1) .1s forwards; }
.hero-h1 .mk:nth-child(2) .ln { animation-delay: .24s; }
@keyframes ui-line { to { transform: none; } }
.hero-in > .hero-h1 { opacity: 1; animation: none; transform: translate3d(0, calc(var(--py, 0) * -.12px), 0); }
.hero-in, .hero-meta, .hero-foot { position: relative; z-index: 1; } .hero-meta, .hero-foot { position: absolute; }
.hero { overflow: hidden; }

/* horizontal showcase */

/* story: sticky heading + word-by-word reveal */
.story { padding: clamp(90px, 12vw, 180px) var(--gutter); background: var(--bg); }
.story-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(30px, 7vw, 120px); align-items: start; }
.story-head { position: sticky; top: calc(var(--header-h) + 30px); }
.story-head .tlink { display: inline-block; margin-top: 24px; }
.story-body p { font: 600 clamp(24px, 3.3vw, 50px)/1.22 var(--f-head); letter-spacing: -.04em; margin: 0 0 .7em; }
.story-body .w { opacity: calc(.16 + clamp(0, (var(--wp, 0) * 1.25 - var(--wi)) * 7, 1) * .84); }
.story-body.no-split .w { opacity: 1; }
@media (max-width: 899px) { .story-grid { grid-template-columns: 1fr; gap: 26px; } .story-head { position: static; } .story-body p { font-size: clamp(21px, 6vw, 30px); } }


/* phone: 3D settles with scroll, screen content scrolls */
.phone-wrap { perspective: 1400px; }
.phone { transform: translate3d(0, calc((1 - var(--pp, 1)) * 60px), 0) rotateX(calc((1 - var(--pp, 1)) * 22deg)) rotateY(calc((1 - var(--pp, 1)) * -16deg)); transform-origin: 50% 60%; will-change: transform; }
.ph-list { transform: translate3d(0, calc(var(--pp, 1) * -4%), 0); }

/* contact: bigger statement */
.contact-h { font-size: clamp(44px, 9vw, 150px); line-height: .98; text-transform: none; }

/* section label rhythm + generic reveal variety */
html.js [data-reveal] { transition-duration: .9s; }

/* inner pages: editorial titles */
body:not([data-page="home"]) h1 .mk { display: block; overflow: hidden; padding-bottom: .08em; }
body:not([data-page="home"]) h1 .ln { display: block; transform: translateY(108%); animation: ui-line 1s cubic-bezier(.2, .8, .1, 1) .05s forwards; }
body:not([data-page="home"]) h1 { letter-spacing: -.06em; }
@media (prefers-reduced-motion: reduce) { body:not([data-page="home"]) h1 .ln { animation: none; transform: none; } }

/* ================= v24 ================= */
/* hero name: soft serif, mixed case; scroll fades the intro away */
.hero-h1 { font: 400 clamp(88px, min(23vw, 23.5vh), 290px)/.86 "Anton", "Impact", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .005em; margin: 0 0 clamp(10px, 1.4vw, 20px) -.02em; will-change: transform; }
.hero-h1 .mk:nth-child(2) .ln { color: var(--accent); }
.hero-in { opacity: clamp(0, calc(1.15 - var(--py, 0) / 560), 1); }

/* explore: stacking cards with line-drawn art */
.stack { padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(70px, 9vw, 130px); }
.stack-head { margin-bottom: clamp(30px, 5vw, 64px); }
.stack-list { list-style: none; margin: 0; padding: 0; display: block; border: 0; }
.stack-list .explore-row { position: sticky; top: calc(var(--header-h) + 12px + var(--n, 0) * 14px); margin: 0 0 clamp(26px, 7vh, 70px); padding: 0; border: 0; background: none; }
.stack-list .explore-row a.scard { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; min-height: min(62vh, 540px); padding: clamp(24px, 3.4vw, 52px); border: 0; border-radius: 30px; background: var(--c); color: #15161a; overflow: hidden; width: 100%; align-items: stretch; transform: scale(var(--sc, 1)); transform-origin: 50% 0; box-shadow: 0 -24px 70px -34px rgba(0, 0, 0, .55); will-change: transform; transition: filter .3s; }
.scard::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.sc-main { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.sc-num { font: 600 12px var(--f-mono); letter-spacing: .18em; opacity: .65; }
.sc-title { display: block; font: 600 clamp(46px, 7.4vw, 118px)/.94 var(--f-head); letter-spacing: -.04em; }
.sc-text { display: block; max-width: 34ch; margin-top: 16px; font: 500 clamp(15px, 1.35vw, 18px)/1.5 var(--f-body); opacity: .72; }
.sc-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #15161a; color: #f2f1ed; font: 700 14px var(--f-body); transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.scard:hover .sc-go, .scard:focus-visible .sc-go { transform: translateX(6px); }
.sc-art { place-self: center; width: min(100%, 340px); height: auto; color: #15161a; overflow: visible; }
.sc-art * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-art .fl { fill: currentColor; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.scard.is-in .sc-art * { animation: ui-draw 1.7s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(var(--k, 0) * .14s); }
.scard.is-in .sc-art .fl { animation: ui-pop .7s cubic-bezier(.3, 1.6, .5, 1) 1.2s forwards; }
@keyframes ui-draw { to { stroke-dashoffset: 0; } }
@keyframes ui-pop { to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .stack-list .explore-row a.scard { grid-template-columns: 1fr; min-height: min(66svh, 500px); border-radius: 24px; padding: 22px; }
  .sc-art { position: absolute; right: 18px; top: 16px; width: 96px; opacity: .9; }
  .sc-title { font-size: clamp(44px, 14vw, 68px); }
  .stack-list .explore-row { top: calc(var(--header-h) + 8px + var(--n, 0) * 10px); }
}

/* contact: icon buttons, quiet share */
.contact .kicker { color: #9da0a6; }
.contact .social-grid { gap: 12px; }
.contact .social-card.soc { width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
.soc svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soc svg .fl { fill: currentColor; stroke: none; }
.contact .social-card.soc:hover { transform: translateY(-3px); }
.contact .social-card.soc > :not(svg) { display: none; }
.share-wrap { margin-top: clamp(26px, 4vw, 44px); }
body .share-box { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.share-box h2 { margin: 0; font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #9da0a6; }
.share-box h2 + p, .qr-box { display: none; }
.share-box > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-actions { display: flex; gap: 8px; }
.share-box .btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
.share-status { margin: 0; font-size: 12px; color: #9da0a6; }

/* inner pages: tinted top wash per page, 3D card entrance */
body[data-page="about"] { --pg: #d6dfca; } body[data-page="links"] { --pg: #d0d9ee; } body[data-page="notes"] { --pg: #f1e2b6; } body[data-page="tools"] { --pg: #f0d6c8; }
body[data-page="memories"] { --pg: #ecd5e6; } body[data-page="projects"] { --pg: #d4e4e1; } body[data-page="gallery"] { --pg: #dedcd4; } body[data-page="tool"] { --pg: #f0d6c8; }
html:not([data-theme="light"]) body[data-page="about"] { --pg: #29332a; } html:not([data-theme="light"]) body[data-page="links"] { --pg: #252c40; } html:not([data-theme="light"]) body[data-page="notes"] { --pg: #3a3322; } html:not([data-theme="light"]) body[data-page="tools"] { --pg: #3b2c26; }
html:not([data-theme="light"]) body[data-page="memories"] { --pg: #35283a; } html:not([data-theme="light"]) body[data-page="projects"] { --pg: #223433; } html:not([data-theme="light"]) body[data-page="gallery"] { --pg: #2b2d2f; } html:not([data-theme="light"]) body[data-page="tool"] { --pg: #3b2c26; }
body[data-page]:not([data-page="home"]) { background: linear-gradient(180deg, var(--pg, var(--bg)) 0, var(--bg) 620px) no-repeat, var(--bg); }
body[data-page]:not([data-page="home"]) .page-sub, body[data-page]:not([data-page="home"]) .nt-hero p { max-width: 52ch; }
@media (max-width: 640px) { .hero-h1 { font-size: clamp(80px, 26vw, 140px); } }
@media (prefers-reduced-motion: reduce) { .hero-h1 .ln { animation: none; transform: none; } .story-body .w { opacity: 1; } .phone { transform: none; } .hero-in { opacity: 1; } .scard { transform: none; } .sc-art * { stroke-dashoffset: 0; animation: none !important; } .sc-art .fl { opacity: 1; transform: none; animation: none !important; } html.js .rv3d[data-reveal] { transform: none; } }

/* ================= v25 ================= */
/* page transition: colour wipe (no doors). Cover colour + label come from the clicked card. */
html.fw-in::after { content: attr(data-fwt); position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; background: var(--fwc, #e8b83a); color: #15161a; font: 600 clamp(52px, 13vw, 200px)/1 var(--f-head); letter-spacing: -.04em; text-align: center; padding: 0 var(--gutter); }

/* every inner page opens with a coloured hero card + line-drawn art (same language as the home cards) */
.pg-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(250px, 38vh, 400px); padding: clamp(24px, 4.2vw, 60px); border-radius: 30px; background: var(--c, #e8b83a); overflow: hidden; transform: translate3d(0, calc(var(--pyy, 0) * .12px), 0) scale(calc(1 - var(--pyy, 0) / 5000)); transform-origin: 50% 0; will-change: transform; }
.pg-card, .pg-card :where(h1, h2, p, a, span, small, em, li, b):not(.btn) { color: #15161a; }
.pg-card .kicker::before, .pg-card .eyebrow::before, .pg-card .ab-label::before { background: #15161a; }
.pg-card .page-sub, .pg-card .ab-text { opacity: .72; max-width: 46ch; }
.pg-card .ab-rule { background: #15161a; opacity: .5; }
.pg-card .page-title, .pg-card .ab-title { margin-top: 0; }
.pg-card .chip, .pg-card .nt-stat, .pg-card [class*="stat"] { border-color: rgba(21, 22, 26, .3); background: transparent; }
.pg-art { position: absolute; right: clamp(18px, 5vw, 80px); top: 50%; width: clamp(120px, 24vw, 340px); height: auto; transform: translateY(calc(-50% + var(--pyy, 0) * .2px)); color: #15161a; pointer-events: none; }
.pg-art * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg-art .fl { fill: currentColor; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.pg-card.is-in .pg-art * { animation: ui-draw 1.8s cubic-bezier(.3, .7, .2, 1) .3s forwards; animation-delay: calc(.3s + var(--k, 0) * .14s); }
.pg-card.is-in .pg-art .fl { animation: ui-pop .7s cubic-bezier(.3, 1.6, .5, 1) 1.5s forwards; }
.pg-card .wrap, .pg-card > * { position: relative; z-index: 1; } .pg-card > .pg-art { position: absolute; z-index: 0; }
body[data-page]:not([data-page="home"]) .page-hero > .wrap.pg-card { padding: clamp(24px, 4.2vw, 60px); }
.page-hero { padding-left: var(--gutter); padding-right: var(--gutter); }
.page-hero > .wrap.pg-card { max-width: 1280px; }
.ab-intro > .ab-wrap.pg-card { max-width: 1280px; margin-left: auto; margin-right: auto; }
.ab-intro { padding-left: var(--gutter); padding-right: var(--gutter); padding-top: calc(var(--header-h) + clamp(30px, 6vw, 80px)); }
.ab-intro .ab-lead { font-size: clamp(20px, 2.4vw, 30px); max-width: 28ch; }
@media (max-width: 760px) { .pg-art { position: static !important; transform: none; width: 84px; margin: 0 0 14px; order: -1; } .pg-card { border-radius: 24px; min-height: 0; } }

/* coloured content cards (about values, notes, tools, projects, memories) */
@media (prefers-reduced-motion: reduce) { .ui-wipe { display: none; } .pg-card { transform: none; } .pg-art * { stroke-dashoffset: 0; animation: none !important; } .pg-art .fl { opacity: 1; transform: none; animation: none !important; } .pg-art { transform: translateY(-50%); } }

/* ================= v26: original lighting, layered stack, label roll ================= */
:root, html[data-theme="light"] { --glow: rgba(255, 255, 255, .95); --glow-warm: rgba(185, 129, 12, .09); --grid: rgba(21, 22, 26, .11); }
html:not([data-theme="light"]) { --glow: rgba(255, 255, 255, .07); --glow-warm: rgba(232, 184, 58, .09); --grid: rgba(255, 255, 255, .09); }
/* A. one soft light behind the content + a faint floor grid that fades away from the text (static, no animation) */
.hero-light { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hl-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 76% 42%, var(--glow), transparent 70%), radial-gradient(ellipse 38% 40% at 80% 52%, var(--glow-warm), transparent 70%); }
.hl-grid { position: absolute; left: -10%; right: -10%; bottom: -2%; height: 58%; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 100%, #000 15%, transparent 78%); mask-image: radial-gradient(ellipse 70% 80% at 72% 100%, #000 15%, transparent 78%); }
@media (max-width: 640px) { .hl-grid { height: 40%; background-size: 44px 44px; } .hl-glow { background: radial-gradient(ellipse 90% 45% at 60% 70%, var(--glow), transparent 70%); } }

/* B. layered stack: slabs separate as the section passes through the viewport (scroll progress, no pointer, no idle motion) */
.layers { padding: clamp(80px, 11vw, 160px) var(--gutter); background: var(--alt); overflow: hidden; --lp: 0; }
.ly-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ly-legend { list-style: none; margin: clamp(26px, 4vw, 48px) 0 0; padding: 0; border-top: 1.5px solid var(--line-strong); }
.ly-legend li { border-bottom: 1.5px solid var(--line-strong); opacity: calc(.25 + clamp(0, var(--lp) * 6 - var(--k) * .8, 1) * .75); transform: translate3d(calc((1 - clamp(0, var(--lp) * 6 - var(--k) * .8, 1)) * 18px), 0, 0); }
.ly-legend a { display: flex; align-items: center; gap: 16px; padding: 16px 2px; font: 600 clamp(26px, 3.4vw, 44px)/1.1 var(--f-head); letter-spacing: -.03em; color: var(--paper); }
.ly-legend b { font: 600 12px var(--f-mono); letter-spacing: .16em; color: var(--mute); width: 28px; }
.ly-legend i { margin-left: auto; font-style: normal; font-family: var(--f-body); transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.ly-legend a:hover i, .ly-legend a:focus-visible i { transform: translateX(6px); }
.ly-scene { position: relative; height: clamp(340px, 46vw, 560px); perspective: 1300px; display: grid; place-items: center; }
.ly-stack { position: relative; width: min(64%, 360px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(calc(-24deg + var(--lp) * 10deg)); }
.ly-slab { position: absolute; inset: 0; display: block; border-radius: 26px; background: var(--c); border: 2px solid #15161a; transform: translate3d(0, 0, calc(var(--i) * (6px + var(--lp) * 58px))); will-change: transform; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.ly-slab::before { content: ""; position: absolute; inset: 14px; border-radius: 16px; border: 1.5px dashed rgba(21, 22, 26, .35); }
.ly-slab em { position: absolute; left: 22px; bottom: 18px; font: 600 12px var(--f-mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #15161a; }
.ly-shadow { position: absolute; width: min(58%, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); transform: translateY(18%) scaleY(.32); opacity: calc(.7 - var(--lp) * .4); filter: blur(6px); }
@media (max-width: 899px) { .ly-grid { grid-template-columns: 1fr; gap: 10px; } .ly-scene { order: -1; height: clamp(280px, 78vw, 400px); } .ly-stack { width: min(66%, 300px); } .ly-slab { transform: translate3d(0, 0, calc(var(--i) * (5px + var(--lp) * 40px))); } }
@media (prefers-reduced-motion: reduce) { .layers { --lp: 1 !important; } .ly-legend li { opacity: 1; transform: none; } }

/* C. primary button label rolls on hover devices only */
.flip { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; line-height: inherit; }
.flip > span { display: block; transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.flip > .fb { position: absolute; left: 0; top: 100%; }
@media (hover: hover) and (pointer: fine) { :is(.pill, .header-action .btn):hover .flip > span, :is(.pill, .header-action .btn):focus-visible .flip > span { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .flip > span { transition: none; } }

/* desktop: role line sits beside "I am a" so the call-to-action stays above the fold */
@media (min-width: 900px) {
  .hero-in > .hero-i { display: inline-block; margin: .1em 20px 0 0; font-size: clamp(28px, min(4.2vw, 6.5vh), 64px); vertical-align: middle; }
  .hero-in > .notebook { vertical-align: middle; margin: 0; }
  .nb-card { padding: 20px 28px 10px; }
  .nb-card b { font-size: clamp(30px, min(4.2vw, 6.5vh), 64px); }
  .hero-tag { margin-top: clamp(14px, 3vh, 30px); } .hero-sup { margin-bottom: clamp(16px, 3vh, 30px); }
}

/* ================= v27 ================= */
.footer-brand p { font-style: normal; }
/* per-page single tone (content cards use a soft tint of it instead of a rainbow) */
body[data-page="about"] { --pgc: #e8b83a; } body[data-page="projects"] { --pgc: #cfd9c4; } body[data-page="tools"], body[data-page="tool"] { --pgc: #f0cdbd; } body[data-page="notes"] { --pgc: #c9d3ea; }
body[data-page="links"] { --pgc: #d9d6cc; } body[data-page="memories"] { --pgc: #dccbe8; } body[data-page="gallery"] { --pgc: #f3e2b3; }
:root, html[data-theme="light"] { --mixp: 42%; } html:not([data-theme="light"]) { --mixp: 15%; }
.pcard { background: color-mix(in srgb, var(--pgc, #e8b83a) var(--mixp), var(--surface)) !important; background-image: none !important; border-color: var(--line) !important; color: var(--paper); transition: box-shadow .4s, border-color .4s; }
@media (hover: hover) and (pointer: fine) { .pcard:hover, .lk-card:hover { box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .5); } .lk-card:hover { background: color-mix(in srgb, var(--pgc, #e8b83a) var(--mixp), var(--surface)); } }
.pcard:active, .lk-card:active { transform: scale(.985); }

/* hero: footer strip now sits in the flow, so it can never cross the buttons on short phones */
.hero { padding-bottom: 28px; }
.hero-foot { position: static !important; width: 100%; max-width: 1280px; margin: clamp(28px, 6vh, 56px) auto 0; }
@media (max-width: 640px) { .hero { padding-bottom: 28px; } }

/* menu: a compact card under the header, not a full-screen sheet */
body .nav-panel { inset: auto; top: calc(var(--header-h) + 8px); right: 12px; left: auto; bottom: auto; width: min(380px, calc(100vw - 24px)); height: auto; max-height: calc(100svh - var(--header-h) - 24px); overflow: auto; padding: 14px; border-radius: 28px; background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .5); display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; transform-origin: 85% 0; transform: translate3d(0, -10px, 0) scale(.9); opacity: 0; visibility: hidden; transition: transform .5s cubic-bezier(.2, .9, .25, 1.12), opacity .22s, visibility .5s; }
body.menu-open .nav-panel { transform: none; opacity: 1; visibility: visible; }
body .nav-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .nav-panel li { border: 0; overflow: visible; }
body .nav-panel a.nav-link { display: flex !important; align-items: center; justify-content: flex-start; gap: 10px; padding: 15px 14px; border-radius: 18px; background: var(--alt); color: var(--paper); font: 600 17px/1.1 var(--f-head); letter-spacing: -.02em; opacity: 0; transform: translate3d(0, 14px, 0); transition: transform .5s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 45ms + 120ms), opacity .4s calc(var(--i, 0) * 45ms + 120ms), background .25s, color .25s; }
body.menu-open .nav-panel a.nav-link { opacity: 1; transform: none; }
body .nav-panel a.nav-link::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #e8b83a); flex: none; }
body .nav-panel a.nav-link::after { content: none; }
body .nav-panel a.nav-link[aria-current="page"], body .nav-panel a.nav-link:active { background: var(--btn-bg); color: var(--btn-fg); }
body .nav-panel .nav-panel-foot { padding: 2px 8px 4px; font-size: 10.5px; }
body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 54; background: rgba(10, 12, 14, .42); animation: ui-fade .3s both; }
@keyframes ui-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body .nav-panel, body .nav-panel a.nav-link { transition: opacity .2s, visibility .2s; transform: none; } }

/* footer: short icon row */
.footer-links { gap: 10px; }
.footer-links a.fi { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); color: #f2f1ed; transition: background .25s, color .25s, transform .3s; }
.footer-links a.fi:hover, .footer-links a.fi:focus-visible { background: #f2f1ed; color: #15161a; transform: translateY(-2px); }
.fi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .fi svg .fl { fill: currentColor; stroke: none; }

/* ABOUT: "The way I think" = stacking cards, charcoal + amber only */
body[data-page="about"] ul.ab-stack { display: block; }
body[data-page="about"] ul.ab-stack > li.ab-card { position: sticky; top: calc(var(--header-h) + 16px + var(--n, 0) * 12px); grid-column: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: min(44vh, 360px); margin: 0 0 22px; padding: clamp(22px, 3vw, 40px); border-radius: 28px; border: 0; background: var(--ab-bg); color: var(--ab-fg); transform: scale(var(--sc, 1)); transform-origin: 50% 0; will-change: transform; overflow: hidden; }
body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(odd) { --ab-bg: #e8b83a; --ab-fg: #15161a; } body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(even) { --ab-bg: #1d2024; --ab-fg: #f2f1ed; }
body[data-page="about"] ul.ab-stack > li.ab-card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.ab-stack .ab-num { margin: 0; font-size: 12px; color: inherit; opacity: .7; }
.ab-stack h3 { margin: 0; font: 600 clamp(38px, 7vw, 96px)/.95 var(--f-head); letter-spacing: -.045em; color: inherit; }
.ab-stack p { margin: 12px 0 0; max-width: 34ch; font-size: clamp(15px, 1.4vw, 19px); color: inherit; opacity: .75; }
/* ABOUT: "Things I enjoy" = focus slider (centre card grows, icon draws itself) */
body[data-page="about"] section.ab-section--alt { overflow: clip; }
body[data-page="about"] ul.fx-focus { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 18px calc(50% - 130px) 26px; margin: 0 calc(var(--gutter) * -1); }
body[data-page="about"] ul.fx-focus::-webkit-scrollbar { display: none; }
body[data-page="about"] ul.fx-focus > li.enjoy { flex: 0 0 min(260px, 68vw); min-height: 300px; scroll-snap-align: center; align-items: flex-start; justify-content: space-between; padding: 24px; border-radius: 28px; background: var(--surface); border: 1.5px solid var(--line-strong); transform: scale(var(--fs, .9)); opacity: var(--fo, .55); transition: border-color .3s, background .3s; will-change: transform, opacity; }
body[data-page="about"] ul.fx-focus > li.enjoy.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
body[data-page="about"] .enjoy .ico { width: 72px; height: 72px; margin: 0; stroke-width: 1.3; color: var(--accent); stroke: var(--accent); }
.fx-focus .ico * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx-focus .is-on .ico * { animation: ui-draw 1.3s cubic-bezier(.3, .7, .2, 1) forwards; }
body[data-page="about"] .enjoy h3 { font: 600 clamp(24px, 2.4vw, 32px)/1.05 var(--f-head); letter-spacing: -.035em; margin: 0 0 8px; }
.fx-nav { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.fx-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; transition: background .25s, color .25s; }
.fx-nav button:hover, .fx-nav button:focus-visible { background: var(--btn-bg); color: var(--btn-fg); }
@media (prefers-reduced-motion: reduce) { body[data-page="about"] ul.ab-stack > li.ab-card { transform: none; } .fx-focus .ico * { stroke-dashoffset: 0; animation: none !important; } body[data-page="about"] ul.fx-focus > li.enjoy { transform: none; opacity: 1; } }

/* TOOLS / NOTES: cards react to scroll position (tilt up on tools, slide in from alternating sides on notes) */
.tp { opacity: calc(.15 + var(--tp, 1) * .85); will-change: transform, opacity; transition: box-shadow .4s, background .4s, border-color .4s !important; }
.tp-tilt { transform: perspective(1000px) translate3d(0, calc((1 - var(--tp, 1)) * 46px), 0) rotateX(calc((1 - var(--tp, 1)) * 24deg)) scale(calc(.93 + var(--tp, 1) * .07)); transform-origin: 50% 100%; }
.tp-side { transform-origin: 50% 0; transform: perspective(1100px) translate3d(0, calc((1 - var(--tp, 1)) * -16px), 0) rotateX(calc((1 - var(--tp, 1)) * -58deg)); }
.tp-side { position: relative; }
.tp-side::before { content: ""; position: absolute; top: -1px; right: 22px; width: 12px; height: 30px; background: var(--accent); border-radius: 0 0 5px 5px; transform-origin: 50% 0; transform: scaleY(var(--tp, 1)); pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .tp { transform: none !important; opacity: 1; } }
.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* page transition: the clicked card grows to fill the screen (clip-path), then the next page peels away upward */
.ui-wipe { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--fwc, #e8b83a); color: #15161a; clip-path: inset(100% 0 0 0); pointer-events: none; will-change: clip-path; }
.ui-wipe b { font: 600 clamp(52px, 13vw, 200px)/1 var(--f-head); letter-spacing: -.045em; padding: 0 var(--gutter); text-align: center; opacity: 0; transform: translateY(24px); transition: opacity .3s .2s, transform .5s .2s cubic-bezier(.2, .7, .1, 1); }
.ui-wipe.shut { clip-path: inset(0 0 0 0 round 0); transition: clip-path .62s cubic-bezier(.76, 0, .24, 1); pointer-events: all; }
.ui-wipe.shut b { opacity: 1; transform: none; }
.ui-wipe.here { clip-path: inset(0 0 0 0 round 0); transition: none; } .ui-wipe.here b { opacity: 1; transform: none; transition: none; }
.ui-wipe.gone { clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); } .ui-wipe.gone b { opacity: 0; transition: opacity .25s; }
html.fw-in::after { font-family: var(--f-head); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ui-wipe { display: none; } }
html, body { overflow-x: clip; } main { overflow-x: clip; }

/* ===== v28 ===== */
/* About: richer, premium card palette */
body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(1) { --ab-bg: #17594a; --ab-fg: #eef5f1; }
body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(2) { --ab-bg: #2c2f73; --ab-fg: #eef0fb; }
body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(3) { --ab-bg: #e0ac36; --ab-fg: #17181b; }
body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(4) { --ab-bg: #7a2441; --ab-fg: #fbeff3; }
body[data-page="about"] ul.ab-stack > li.ab-card:nth-child(5) { --ab-bg: #1c3a44; --ab-fg: #e9f3f5; }
/* Journey: plain, with a drawing line + sweep */
body[data-page="about"] section[aria-labelledby="ab-journey"] { background: var(--bg); }
body[data-page="about"] .journey-body { border-left: 0; }
body[data-page="about"] .journey-body::before { left: -4px; top: 0; width: 9px; height: 9px; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) .2s; }
body[data-page="about"] .journey-body::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 0; width: 1px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 1.6s cubic-bezier(.3, .7, .2, 1) .3s; }
body[data-page="about"] .journey-body.in-view::before { transform: none; }
body[data-page="about"] .journey-body.in-view::after { transform: none; }
body[data-page="about"] .journey-statement { font-weight: 500; letter-spacing: -.03em; background: linear-gradient(90deg, var(--paper) 0 50%, var(--mute) 50% 100%) 100% 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.8s cubic-bezier(.3, .7, .2, 1) .4s; }
body[data-page="about"] .journey-body.in-view .journey-statement { background-position: 0 0; }
@media (prefers-reduced-motion: reduce) { body[data-page="about"] .journey-body::before, body[data-page="about"] .journey-body::after { transform: none; transition: none; } body[data-page="about"] .journey-statement { background-position: 0 0; transition: none; } }
/* About: connect -> compact icon dock */
body[data-page="about"] .connect-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; margin: 8px auto 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
body[data-page="about"] .connect-grid > li { display: block; }
body[data-page="about"] a.connect-card { display: grid; place-items: center; width: 56px; height: 56px; min-height: 0; padding: 0; gap: 0; border-radius: 50%; background: var(--alt); border: 1px solid var(--line); position: relative; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), background .3s, color .3s; }
body[data-page="about"] a.connect-card > div { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--bg); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
body[data-page="about"] a.connect-card > div .handle { display: none; }
body[data-page="about"] a.connect-card > div strong { font-size: 12px; font-weight: 600; }
body[data-page="about"] a.connect-card .ico { width: 24px; height: 24px; stroke: var(--paper); transition: stroke .3s; }
body[data-page="about"] a.connect-card::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s; }
@media (hover: hover) { body[data-page="about"] a.connect-card:hover, body[data-page="about"] a.connect-card:focus-visible { transform: translateY(-5px) scale(1.08); background: var(--accent); } body[data-page="about"] a.connect-card:hover .ico { stroke: #15161a; } body[data-page="about"] a.connect-card:hover > div, body[data-page="about"] a.connect-card:focus-visible > div { opacity: 1; transform: translate(-50%, 0); } body[data-page="about"] a.connect-card:hover::after { opacity: 1; transform: none; } }
body[data-page="about"] a.connect-card:active { transform: scale(.92); }
body[data-page="about"] .connect-grid > li[data-reveal] { transform: translateY(14px) scale(.7); transition-delay: calc(var(--i, 0) * 90ms); }
body[data-page="about"] .connect-grid > li[data-reveal].in-view { transform: none; }

body[data-page="about"] .tl-item { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* ===== v29 finishing pass ===== */
html { -webkit-tap-highlight-color: transparent; }
/* focus ring that stays visible on both themes */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ab-card :focus-visible, .band-dark :focus-visible { outline-color: var(--accent); }
/* touch targets >= 44px on touch screens */
@media (pointer: coarse) {
  .brand, .tlink, .strip-link, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn, .btn-sm, .pill { min-height: 44px; }
}
/* contact dock: amber hover/press, floating labels, touch feedback */
body[data-page="about"] a.connect-card > div { z-index: 2; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
body[data-page="about"] a.connect-card > div::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: inherit; transform: translate(-50%, -50%) rotate(45deg); }
body[data-page="about"] a.connect-card:focus-visible { background: var(--accent); outline-offset: 5px; }
body[data-page="about"] a.connect-card:focus-visible .ico { stroke: #15161a; }
body[data-page="about"] a.connect-card:focus-visible > div { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) {
  body[data-page="about"] a.connect-card:active { background: var(--accent); transform: scale(.92); transition-duration: .1s; }
  body[data-page="about"] a.connect-card:active .ico { stroke: #15161a; }
  body[data-page="about"] a.connect-card:active > div { opacity: 1; transform: translate(-50%, 0); }
  body[data-page="about"] a.connect-card:active::after { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { body[data-page="about"] a.connect-card, body[data-page="about"] a.connect-card > div { transition: none; } }
/* about cards: contrast + spacing */
body[data-page="about"] .ab-stack .ab-num { opacity: .85; letter-spacing: .12em; }
body[data-page="about"] .ab-stack p { opacity: .9; line-height: 1.5; }
body[data-page="about"] ul.ab-stack > li.ab-card { padding: clamp(22px, 4vw, 40px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .12); }
/* journey: line, dots and timeline share one axis */
body[data-page="about"] .journey-body { padding-left: 26px; }
body[data-page="about"] .journey-body::before { left: 2px; top: 6px; }
body[data-page="about"] .journey-body::after { left: 6px; top: 10px; }
body[data-page="about"] .journey { gap: 16px; }
body[data-page="about"] .timeline { margin-top: 36px; }
body[data-page="about"] .tl-item { padding-bottom: 36px; }
body[data-page="about"] .tl-item:last-child { padding-bottom: 0; }
body[data-page="about"] .tl-dot { top: 3px; border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
body[data-page="about"] .timeline::before { background: linear-gradient(180deg, var(--accent), transparent); }
body[data-page="about"] .tl-date { color: var(--accent); }
body[data-page="about"] .tl-text { color: var(--mute); }
@media (min-width: 768px) { body[data-page="about"] .journey-body { padding-left: 26px; } }
body[data-page="about"] a.connect-card { justify-content: center; align-content: center; justify-items: center; }
@media (pointer: coarse) { body .btn, body .btn-sm, body .pill { min-height: 44px; } }
@media (pointer: coarse) { body .btn, body .btn-sm, body .share-box .btn { min-height: 44px !important; } }

/* v32: serif accents - used only where an editorial voice helps; headings, body and UI stay as they were */
.section-title em, .page-title em, .ab-title em, .sec-h em, .contact-h em, .hero-h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.hero-tag, .footer-brand p { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.005em; }
.hero-tag { font-size: clamp(20px, 2.2vw, 28px); }
body[data-page="about"] .ab-lead { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; line-height: 1.28; }
body[data-page="about"] .ab-quote p { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; line-height: 1.3; }
body[data-page="about"] .journey-statement { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
body .note-body { font-family: var(--f-serif); font-weight: 400; line-height: 1.75; }
body .note-body :is(h2, h3, h4) { font-family: var(--f-head); }
body .note-quote { font-family: var(--f-serif); }

/* v33 unslop pass: calmer hero background (neutral wash only, no coloured glow) */
.hl-glow { background: radial-gradient(ellipse 55% 65% at 76% 42%, var(--glow), transparent 70%); }
@media (max-width: 640px) { .hl-glow { background: radial-gradient(ellipse 90% 45% at 60% 70%, var(--glow), transparent 70%); } }

/* ===== v34 ===== */
/* footer icons: the contact section already has them on Home and About */
body[data-page="home"] .footer-links, body[data-page="about"] .footer-links { display: none; }
/* About: way I think -> pop-up */
body[data-page="about"] ul.ab-stack > li.ab-card { cursor: pointer; -webkit-user-select: none; user-select: none; }
.ab-plus { position: absolute; top: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font: 400 24px/1 var(--f-body); opacity: .8; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), background .3s, color .3s; }
@media (hover: hover) { body[data-page="about"] ul.ab-stack > li.ab-card:hover .ab-plus { transform: rotate(90deg) scale(1.1); background: var(--ab-fg); color: var(--ab-bg); } }
.ab-pop { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 16px; }
.ab-pop.show { display: grid; }
.ab-pop-scrim { position: absolute; inset: 0; background: rgba(8, 9, 11, .6); opacity: 0; transition: opacity .45s ease; }
.ab-pop.open .ab-pop-scrim { opacity: 1; }
.ab-pop-card { position: relative; width: min(520px, 100%); max-height: min(88vh, 680px); overflow: auto; border-radius: 30px; padding: clamp(26px, 5vw, 44px); background: var(--pb, #e8b83a); color: var(--pf, #15161a); transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; overscroll-behavior: contain; }
.ab-pop-card > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.ab-pop.open .ab-pop-card > * { opacity: 1; transform: none; transition-delay: .18s; }
.ab-pop-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 300 28px/1 var(--f-body); cursor: pointer; display: grid; place-items: center; }
.ab-pop-num { display: block; font: 500 12px var(--f-mono); letter-spacing: .14em; opacity: .75; }
.ab-pop-h { margin: 10px 0 6px; font: 600 clamp(42px, 11vw, 68px)/.95 var(--f-head); letter-spacing: -.045em; }
.ab-pop-p { margin: 0; font: italic 500 clamp(17px, 4.4vw, 20px)/1.4 var(--f-serif); opacity: .9; }
.ab-pop-l { margin: 26px 0 10px; font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ab-pop-ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.ab-pop-ol li { counter-increment: s; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); font: 500 16px/1.4 var(--f-body); opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.ab-pop-ol li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font: 500 12px var(--f-mono); }
.ab-pop.open .ab-pop-ol li { opacity: 1; transform: none; transition-delay: calc(.32s + var(--k, 0) * .09s); }
html.pop-lock, html.pop-lock body { overflow: hidden; }
/* About: things I enjoy -> 3D flip */
body[data-page="about"] ul.fx-focus > li.enjoy { perspective: 1000px; padding: 0; cursor: pointer; }
.ef-in { position: relative; width: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.3, .9, .3, 1); }
li.enjoy.flipped .ef-in { transform: rotateY(180deg); }
.ef { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ef-back { transform: rotateY(180deg); background: var(--accent); color: #15161a; justify-content: flex-start; gap: 14px; }
.ef-k { font: 600 clamp(26px, 2.6vw, 32px)/1 var(--f-head); letter-spacing: -.04em; }
.ef-t { margin: 0; font: italic 500 17px/1.45 var(--f-serif); color: #15161a; }
.ef-hint { margin-top: auto; align-self: flex-start; font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
body[data-page="about"] .ef-front .ef-hint { margin-top: 10px; }
@media (hover: hover) { li.enjoy:not(.flipped):hover .ef-in { transform: rotateY(-9deg) rotateX(3deg); } }
@media (prefers-reduced-motion: reduce) { .ab-pop-card, .ab-pop-card > *, .ab-pop-ol li, .ab-pop-scrim, .ef-in { transition: none !important; } .tp-side::before { transform: none; } }
/* Gallery sign-in: entrance, lock, eye */
@keyframes g-rise { from { opacity: 0; transform: perspective(900px) translate3d(0, 28px, 0) rotateX(-14deg) scale(.97); } to { opacity: 1; transform: none; } }
body[data-page="gallery"] .auth-panel:not([hidden]) { animation: g-rise .85s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 100%; }
.g-lock { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--accent); }
.g-lock svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.g-lock .sh { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 16px 11px; }
.g-lock.open .sh { transform: translate3d(0, -3px, 0) rotate(-24deg); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--mute); border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: color .25s, transform .25s; }
.pw-eye:hover, .pw-eye.on { color: var(--accent); }
.pw-eye:active { transform: translateY(-50%) scale(.88); }
.pw-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .slash { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease; }
.pw-eye.on .slash { stroke-dashoffset: 0; }
body[data-page="gallery"] .field input { transition: border-color .3s, box-shadow .3s; }
body[data-page="gallery"] .field input:focus { box-shadow: 0 2px 0 0 var(--accent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { body[data-page="gallery"] .auth-panel:not([hidden]) { animation: none; } .g-lock .sh, .pw-eye .slash { transition: none; } }
body[data-page="about"] .ef-back .ef-t, body[data-page="about"] .ef-back .ef-k { color: #15161a; opacity: 1; }
body[data-page="about"] .ef-back .ef-hint { color: #15161a; opacity: .7; }
body[data-page="gallery"] .auth-panel .field input { background: var(--alt); color: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; }
body[data-page="gallery"] .auth-panel .field input::placeholder { color: var(--mute); }

/* v38 Tools & Projects: icon draws itself as each card unfolds into view */
.tool-card .ico > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tool-card.is-on .ico > * { animation: ui-draw 1.2s cubic-bezier(.3, .7, .2, 1) forwards; }
@media (prefers-reduced-motion: reduce) { .tool-card .ico > * { stroke-dashoffset: 0; animation: none !important; } }
