/* Ameer Hamza — portfolio. Hand-written, no framework. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0a0d10;
  --bg-2: #0f1317;
  --surface: #13181d;
  --surface-2: #181e24;
  --line: #232b33;
  --line-2: #2e3842;
  --text: #e8edf1;
  --muted: #9aa6b2;
  --faint: #6f7b87;
  --accent: #3ddc97;
  --accent-ink: #04140c;
  --amber: #f5b13d;
  --infra: #3ddc97;
  --data: #6cb4ff;
  --obs: #f5b13d;
  --sec: #ff6b81;
  --free: #b49cff;
  --ops: #5fd4e0;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --text-2: #c6d0d8;
  --accent-2: #8ff0c4;
  --grid: rgba(255, 255, 255, .035);
  --shadow: rgba(0, 0, 0, .7);
  --code-bg: #080a0d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding-left: 1.1em; }
code, kbd { font-family: var(--mono); font-size: .88em; }

@view-transition { navigation: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Background grid + glow */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, color-mix(in srgb, var(--data) 7%, transparent), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* Labels */
.label { font: 500 12.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.label .n { color: var(--accent); }
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.label.plain::before { display: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, transform .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--mono); text-decoration: none; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 8px; font: 500 14px/1 var(--font); color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-links .nav-num { font: 500 11px/1 var(--mono); color: var(--accent); margin-right: 5px; }
.nav-cta { margin-left: 8px; }
.nav-cta-mobile { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--b); background: var(--surface); color: var(--text);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { min-height: 38px; padding: 9px 15px; font-size: 14px; }
.btn.ghost { background: transparent; }

/* Hero */
.hero { padding: clamp(120px, 18vh, 170px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font: 500 13px/1.2 var(--mono); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); margin: 22px 0 22px; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--accent); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero .lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 60ch; animation: fade 1s .3s var(--ease) both; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fade 1s .42s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-side { position: relative; animation: fade 1.1s .25s var(--ease) both; }
.portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); aspect-ratio: 810 / 950; max-width: 420px; margin-left: auto; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 85%, transparent)); }
.term {
  position: absolute; left: -8%; bottom: -26px; z-index: 2; width: min(360px, 92%);
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 60px -20px var(--shadow);
  font: 400 12.8px/1.65 var(--mono); color: var(--muted); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:nth-child(1) { background: #ff6b81; } .term-bar i:nth-child(2) { background: #f5b13d; } .term-bar i:nth-child(3) { background: #3ddc97; }
.term-bar span { margin-left: 8px; color: var(--faint); font-size: 11.5px; }
.term-body { padding: 12px 14px 14px; }
.term-body p { margin: 0; }
.term .p { color: var(--accent); }
.term .o { color: var(--text); padding-left: 14px; }
.term .ok { color: var(--accent); }
.term.solo { position: relative; left: auto; bottom: auto; width: 100%; max-width: 460px; margin-left: auto; font-size: 13.5px; }
.term.solo .term-body { padding: 18px 20px 20px; }
.term.solo .term-body p + .p, .term.solo .o { margin-bottom: 6px; }
.term .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 70%, transparent); margin-top: clamp(56px, 7vw, 88px); }
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 clamp(28px, 3.4vw, 40px)/1 var(--display); letter-spacing: -.03em; color: var(--text); }
.stat b em { font-style: normal; color: var(--accent); }
.stat > span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 500 14px/1 var(--mono); color: var(--muted); padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.marquee li::after { content: "/"; color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 58px); margin-top: 16px; }
.section-head h2 .count { font: 500 .32em/1 var(--mono); color: var(--accent); vertical-align: super; margin-left: 6px; letter-spacing: 0; }
.section-head p { color: var(--muted); margin: 0; max-width: 52ch; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.about-copy p { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); }
.about-copy p:first-child { font: 500 clamp(22px, 2.3vw, 28px)/1.4 var(--display); color: var(--text); letter-spacing: -.01em; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts li > span:first-child { font: 500 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  --c: var(--accent);
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px);
  transition: border-color .3s, transform .4s var(--ease), background .3s; isolation: isolate; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%);
}
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.card:hover::before { opacity: 1; }
.pillar .pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pillar .idx { font: 500 13px/1 var(--mono); color: var(--c); }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: clamp(22px, 2.2vw, 27px); margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--bg-2); }
.c-infra { --c: var(--infra); } .c-data { --c: var(--data); } .c-obs { --c: var(--obs); } .c-sec { --c: var(--sec); } .c-ops { --c: var(--ops); } .c-free { --c: var(--free); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 16px; }
.step { padding: 24px; border-left: 1px solid var(--line); background: var(--bg-2); }
.step:first-child { border-left: 0; }
.step b { font: 500 12px/1 var(--mono); color: var(--accent); display: block; margin-bottom: 12px; letter-spacing: .08em; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 500 13px/1 var(--mono); padding: 10px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.filter:hover { color: var(--text); border-color: var(--faint); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work { display: flex; flex-direction: column; padding: 0; text-decoration: none; color: inherit; }
.work:hover { color: inherit; transform: translateY(-4px); }
.work.is-hidden { display: none; }
.work-media { aspect-ratio: 16 / 9.5; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); position: relative; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.work:hover .work-media img { transform: scale(1.04); }
.work-media.diagram { display: grid; place-items: center; padding: 18px; }
.work-media.diagram svg { width: 100%; height: 100%; }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font: 500 12px/1.3 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.tag { display: inline-flex; align-items: center; gap: 7px; color: var(--c); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.work h3 { font-size: clamp(21px, 2vw, 25px); margin-bottom: 10px; }
.work p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.work .kpis { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 18px; font: 500 13px/1.4 var(--mono); color: var(--text-2); }
.work .kpis li::before { content: "▸ "; color: var(--c); }
.work .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); color: var(--text); }
.work .more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.work:hover .more { color: var(--c); }
.work:hover .more svg { transform: translateX(4px); }
.work.feature { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; }
.work.feature .work-media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.work.feature .work-body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.work.feature h3 { font-size: clamp(24px, 2.6vw, 32px); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.role-when { font: 500 13px/1.6 var(--mono); color: var(--faint); }
.role-when b { display: block; color: var(--accent); font-weight: 500; }
.role h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 4px; }
.role .org { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.role ul { margin: 0; padding: 0; list-style: none; }
.role li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--text-2); font-size: 15.5px; }
.role li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }

/* Education & certifications */
.c-muted { --c: var(--faint); }
.is-hidden { display: none !important; }
.pop { animation: pop .5s var(--ease) both; animation-delay: var(--pd, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sub-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sub-label span { display: inline-flex; align-items: center; gap: 10px; }
.sub-label span::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.sub-label small { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--faint); text-transform: none; }
.filter-n { font-size: 11px; opacity: .7; margin-left: 2px; }

.edu-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) 260px; gap: 24px 28px; align-items: start; margin-bottom: clamp(44px, 6vw, 72px); }
.edu-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.edu-icon svg { width: 28px; height: 28px; }
.edu-kicker { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.edu-main h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 10px 0 6px; }
.edu-school { color: var(--text); font-weight: 500; margin-bottom: 12px; }
.edu-main p { color: var(--muted); font-size: 15.5px; }
.edu-main .chips { margin-top: 6px; }
.edu-facts { margin: 0; border-left: 1px solid var(--line); padding-left: 24px; display: grid; gap: 16px; }
.edu-facts dt { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.edu-facts dd { margin: 0; font-size: 15.5px; color: var(--text); }

.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.cert { padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.cert:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.cert.wide { grid-column: span 2; }
.cert-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cert-mark { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; font: 700 12.5px/1 var(--mono); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .4s var(--ease); }
.cert:hover .cert-mark { transform: rotate(-6deg) scale(1.06); }
.cert-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; font: 500 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.cert-meta time { color: var(--muted); letter-spacing: .04em; }
.cert-badge { margin-left: auto; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); padding: 6px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.cert h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.cert p { font-size: 14.5px; color: var(--muted); margin: 0; }
.cert.featured { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--c) 28%, var(--line)); }
.cert.featured h3 { font-size: clamp(19px, 1.9vw, 23px); }
.cert-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cert-status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--faint); }
.cert-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.cert-status.ok { color: var(--accent); }
.cert-status.ok i { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.cert-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 13px/1 var(--font); text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.cert-link svg { width: 13px; height: 13px; flex: none; transition: transform .25s var(--ease); }
.cert-link:hover, .cert-link:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cert-link:hover svg { transform: translate(2px, -2px); }
.cert-link:active { transform: scale(.97); }

/* Reviews */
.rating { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating b { font: 600 56px/1 var(--display); letter-spacing: -.04em; }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 18px; }
.rating small { display: block; color: var(--muted); font-size: 14px; }
.review { break-inside: avoid; margin: 0 0 16px; padding: 24px; }
.review blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.review blockquote::before { content: "“"; display: block; font: 600 44px/0.8 var(--display); color: var(--accent); margin-bottom: 6px; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 14px/1 var(--mono); color: var(--text); flex: none; }
.review figcaption b { color: var(--text); font-weight: 600; display: block; font-family: var(--mono); font-size: 13.5px; }
.review.is-extra { display: none; }
.reviews.show-all .review.is-extra { display: block; }
.center { text-align: center; }
.note { font-size: 13.5px; color: var(--faint); }

/* Writing */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-row a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .25s, padding .35s var(--ease); }
.post-row a:hover { background: var(--bg-2); padding-left: 16px; color: inherit; }
.post-row time { font: 500 13px/1.5 var(--mono); color: var(--faint); }
.post-row h3 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 6px; }
.post-row p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post-row .rt { font: 500 12.5px/1 var(--mono); color: var(--faint); white-space: nowrap; }

/* Icons: never larger than their text unless a rule says so */
svg.i { width: 1em; height: 1em; flex: none; }

/* Blog cards */
.head-side { display: grid; gap: 16px; justify-items: start; }
.head-side p { color: var(--muted); margin: 0; max-width: 52ch; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-item.is-hidden { display: none; }
.post-item:first-child { grid-column: 1 / -1; }
.post-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: clamp(22px, 2.6vw, 30px); text-decoration: none; color: inherit; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 18px 44px -26px color-mix(in srgb, var(--c) 70%, transparent); }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-topic { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); padding: 7px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.post-topic i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.post-num { font: 600 13px/1 var(--mono); color: var(--line-2); transition: color .3s; }
.post-card:hover .post-num { color: var(--c); }
.post-card h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; transition: color .25s; }
.post-card:hover h3 { color: var(--c); }
.post-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.post-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.post-meta { font: 500 12.5px/1 var(--mono); color: var(--faint); }
.post-more { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); color: var(--text); }
.post-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.post-card:hover .post-more { color: var(--c); }
.post-card:hover .post-more svg { transform: translateX(4px); }
.post-card.featured { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface) 55%); border-color: color-mix(in srgb, var(--c) 28%, var(--line)); }
.post-card.featured h3 { font-size: clamp(24px, 3vw, 36px); max-width: 22ch; }
.post-card.featured p { font-size: 17px; max-width: 64ch; }
@media (max-width: 860px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-box { border: 1px solid var(--line-2); border-radius: 28px; background: linear-gradient(160deg, var(--surface), var(--bg-2)); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.contact-box h2 { font-size: clamp(36px, 5.4vw, 68px); margin: 16px 0 18px; }
.contact-box h2 .accent { color: var(--accent); }
.contact-links { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: color-mix(in srgb, var(--bg) 40%, transparent); transition: border-color .2s, background .2s; }
.contact-links a:hover { border-color: var(--accent); background: var(--bg); color: var(--text); }
.contact-links .k { font: 500 12px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; min-width: 82px; }
.contact-links .v { flex: 1; font-weight: 500; overflow-wrap: anywhere; }
.contact-links svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
form.contact-form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 7px; }
.field label { font: 500 12.5px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { display: none !important; }
.form-status { min-height: 1.4em; font-size: 14.5px; color: var(--muted); margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--sec); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.clock { font-family: var(--mono); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Article pages (case studies, blog) */
.page-hero { padding: clamp(120px, 16vh, 160px) 0 clamp(36px, 5vw, 56px); }
.crumbs { font: 500 13px/1.4 var(--mono); color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 70px); letter-spacing: -.035em; margin: 18px 0 20px; max-width: 18ch; }
.page-hero .lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 62ch; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 36px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.meta-grid div { padding: 16px 20px; border-left: 1px solid var(--line); }
.meta-grid div:first-child { border-left: 0; }
.meta-grid dt { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.meta-grid dd { margin: 0; font-size: 15px; }
.cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.cover img { width: 100%; }
.article { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 7vw, 88px) 0; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; font: 500 13px/1.5 var(--mono); }
.toc ol { list-style: none; padding: 0; margin: 12px 0 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--faint); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); }
.prose { font-size: 17.5px; color: var(--text-2); }
.prose h2 { font-size: clamp(25px, 2.6vw, 31px); color: var(--text); margin: 2.2em 0 .7em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; color: var(--text); margin: 1.8em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 400 14px/1.6 var(--mono); color: var(--text-2); margin: 0 0 1.4em; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--text-2); }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line-2); }
.prose figcaption { font-size: 14px; color: var(--faint); margin-top: 10px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--text); font-size: 19px; }
.callout { border: 1px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 18px 20px; margin: 0 0 1.4em; font-size: 16px; }
.callout b { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 8px; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.outcomes li { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-2); margin: 0; font-size: 15.5px; }
.outcomes li b { display: block; font: 600 22px/1.15 var(--display); color: var(--text); margin-bottom: 4px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(64px, 8vw, 110px); }
.pager a { padding: 24px; text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager small { font: 500 12px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.pager b { font: 600 20px/1.25 var(--display); }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.notfound h1 { font-size: clamp(64px, 14vw, 160px); color: var(--accent); }

/* ---------- Motion & interaction layer ---------- */

/* Brand: bold name, typed in */
.brand { gap: 12px; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font: 700 19px/1 var(--display); letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand-text small { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.brand-name .ch { display: inline-block; white-space: pre; animation: chIn .45s var(--ease) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(.45em) scale(.6); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.type-caret { display: inline-block; width: 2px; height: .95em; margin-left: 2px; background: var(--accent); vertical-align: -.1em; animation: blink 1s steps(1) infinite; }
.type-caret.done { animation: caretOut .4s 1.6s ease forwards; }
@keyframes caretOut { to { opacity: 0; width: 0; margin: 0; } }

/* Hero headline: words rise in, accent word decodes and gets underlined */
.hero h1 .line { display: block; padding-bottom: .04em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; animation: wordIn 1s var(--ease) both; animation-delay: var(--wd, 0s); }
@keyframes wordIn { from { transform: translateY(105%) rotate(5deg); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.hero h1 .accent { position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--data)); transform: scaleX(0); transform-origin: left; animation: underline .9s 1.15s var(--ease) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero h1 .accent.scrambling { color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-family: var(--mono); letter-spacing: -.04em; }

/* Stats: count up + progress line */
.stat { position: relative; overflow: hidden; transition: background .35s; }
.stat:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.stat b { font-variant-numeric: tabular-nums; }
.stat b em { display: inline-block; transition: transform .4s var(--ease); }
.stat:hover b em { transform: rotate(-12deg) scale(1.15); }
.stat-bar { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.stat.counted .stat-bar { transform: scaleX(1); }

/* Buttons: fill sweep + magnetic pull (transform set by JS) */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s; will-change: transform; }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--text); transform: translateY(102%); transition: transform .45s var(--ease); }
.btn:hover { transform: none; color: var(--bg); border-color: var(--text); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn.primary::before { background: var(--accent-2); }
.btn.primary:hover { color: var(--accent-ink); border-color: var(--accent-2); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); opacity: 0; }
.btn.primary:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 0; } }
.btn:active { transform: scale(.97) !important; }
.btn .label-text, .btn > * { position: relative; }

/* Nav: sliding underline */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Filter chips & small links */
.filter { transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.filter:hover { transform: translateY(-1px); }
.contact-links a { transition: border-color .25s, background .25s, transform .35s var(--ease); }
.contact-links a:hover { transform: translateX(4px); }
.contact-links a:hover svg { color: var(--accent); transform: translate(2px, -2px); }
.contact-links svg { transition: transform .3s var(--ease), color .3s; }

/* Contact links with brand icons */
.contact-links a { gap: 14px; }
.contact-links .ci { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--brand, var(--accent)); background: color-mix(in srgb, var(--brand, var(--accent)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 30%, transparent); transition: transform .4s var(--ease), background .3s, color .3s; }
.contact-links .ci svg { width: 20px; height: 20px; }
.contact-links a:hover .ci { transform: rotate(-8deg) scale(1.08); background: var(--brand, var(--accent)); color: var(--bg); }
.contact-links .kv { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.contact-links .kv .k { min-width: 0; }
.contact-links .kv .v { flex: none; }

/* Rotating typed headline */
.type-stage { display: grid; }
.type-sizer, .type-live { grid-area: 1 / 1; }
.type-sizer { visibility: hidden; }
.type-live { align-self: start; }
.type-live.is-name { align-self: center; }
.type-live .name-first { color: var(--text); font-weight: 500; }
.type-live .name-last { font-weight: 700; background: linear-gradient(95deg, var(--accent) 10%, var(--data) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.type-live .accent { position: relative; }
.type-live .accent::after { animation-delay: .1s; }
.type-live .t-caret { display: inline-block; width: .07em; min-width: 3px; height: .82em; margin-left: .06em; vertical-align: -.04em; background: var(--accent); border-radius: 2px; animation: blink 1s steps(1) infinite; }
.type-live.typing .t-caret { animation: none; }

/* Logo mark: draws itself in, glows on hover */
.brand-mark { width: 36px; height: 36px; display: block; flex: none; overflow: visible; transition: transform .5s var(--ease), filter .4s; }
.brand-mark .lm-a, .brand-mark .lm-h, .brand-mark .lm-x { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .brand-mark .lm-a { animation: lmDraw .9s .1s var(--ease) both; }
.js .brand-mark .lm-h { animation: lmDraw .8s .45s var(--ease) both; }
.js .brand-mark .lm-x { animation: lmDraw .7s .85s var(--ease) both; }
.js .brand-mark .lm-node { animation: lmNode 2.8s 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lmDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lmNode { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.07); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent)); }
.brand:hover .brand-mark .lm-x { animation: lmDraw .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .js .brand-mark .lm-a, .js .brand-mark .lm-h, .js .brand-mark .lm-x, .js .brand-mark .lm-node { animation: none; } }

/* Contact tiles: icon + name, compact grid */
.contact-tiles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contact-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; min-height: 104px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 45%, transparent); text-decoration: none; color: var(--text); overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease), background .3s; }
.contact-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; }
.contact-tile:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); transform: translateY(-3px); }
.contact-tile:hover::before { opacity: 1; }
.contact-tile .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .45s var(--ease), background .3s, color .3s; }
.contact-tile .ci svg { width: 20px; height: 20px; }
.contact-tile:hover .ci { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: var(--bg); }
.ct-name { font: 600 15px/1 var(--display); letter-spacing: -.01em; }
.contact-tile > svg.i { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.contact-tile:hover > svg.i { color: var(--brand); transform: translate(2px, -2px); }
.contact-direct { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font: 500 13.5px/1.4 var(--mono); color: var(--faint); }
.contact-direct a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.contact-direct a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) { .contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-tile { min-height: 92px; } }

/* Headline: bigger two-line name */
.type-live.is-name { font-size: 1.45em; line-height: 1; letter-spacing: -.04em; }

/* Code blocks with a copy button */
.code-block { position: relative; margin: 0 0 1.4em; }
.code-block pre { margin: 0; padding-top: 44px; }
.code-bar { position: absolute; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: color-mix(in srgb, var(--surface) 85%, transparent); pointer-events: none; }
.code-bar .code-lang { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.copy-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font: 600 12px/1 var(--font); cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease); }
.copy-btn svg { width: 13px; height: 13px; flex: none; }
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
.copy-btn:active { transform: scale(.95); }
.copy-btn.copied { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.copy-btn .ic-done { display: none; }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-done { display: block; }

/* Hero avatar (round photo badge) */
.hero-side { display: grid; justify-items: end; }
.hero-photo { position: relative; margin: 0; width: min(420px, 100%); aspect-ratio: 1; }
.hero-photo img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 30px 70px -30px var(--shadow); transition: transform .8s var(--ease); }
.hero-photo:hover img { transform: scale(1.02) rotate(-1deg); }
.hero-photo-glow { position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--data) 14%, transparent) 60%, transparent 72%); filter: blur(12px); z-index: 0; animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.hero-photo-orbit { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); z-index: 0; animation: orbit 24s linear infinite; }
.hero-photo-orbit i { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
@keyframes orbit { to { transform: rotate(360deg); } }
.js .hero-photo { animation: fade 1.1s .2s var(--ease) both; }
.hero-side .term { left: auto; right: auto; bottom: auto; position: relative; margin: -70px 0 0 0; justify-self: start; width: min(340px, 92%); z-index: 2; }
@media (max-width: 1020px) {
  .hero-side { justify-items: start; margin-top: 12px; }
  .hero-photo { width: min(380px, 100%); }
}
@media (max-width: 600px) {
  .hero-side { justify-items: center; }
  .hero-photo { width: 78vw; max-width: 320px; }
  .hero-side .term { margin-top: -36px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo-glow, .hero-photo-orbit { animation: none; } }

/* Contact: profile card above the form */
.contact-side { display: grid; gap: 22px; align-content: start; }
.contact-me { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--bg) 45%, transparent); }
.contact-me img { width: 76px; height: 76px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent), 0 10px 26px -10px var(--shadow); transition: transform .5s var(--ease); }
.contact-me:hover img { transform: scale(1.05) rotate(-3deg); }
.cm-text p { margin: 0; }
.cm-name { font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.cm-role { color: var(--muted); font-size: 14px; margin-top: 3px !important; }
.cm-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px !important; font: 500 12px/1 var(--mono); color: var(--accent); }
.cm-status .dot { width: 7px; height: 7px; }
@media (max-width: 600px) { .contact-me img { width: 64px; height: 64px; } .cm-name { font-size: 17px; } }

/* Custom cursor (fine pointers only; JS adds .has-cursor) */
.ui-cursor { position: fixed; inset: 0 auto auto 0; z-index: 9999; pointer-events: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); transition: opacity .2s, width .25s, height .25s, margin .25s; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid color-mix(in srgb, var(--text) 55%, transparent); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cursor-label { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.ui-cursor.is-link .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ui-cursor.is-link .cursor-dot { opacity: 0; }
.ui-cursor.is-label .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
.ui-cursor.is-label .cursor-label { opacity: 1; transform: none; }
.ui-cursor.is-label .cursor-dot { opacity: 0; }
.ui-cursor.is-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.ui-cursor.is-text .cursor-ring, .ui-cursor.is-text .cursor-dot, .ui-cursor.is-out .cursor-ring, .ui-cursor.is-out .cursor-dot { opacity: 0; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor .card { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
html.has-cursor select { cursor: pointer; }

@media (max-width: 600px) {
  .brand-name { font-size: 17px; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w > span, .brand-name .ch { animation: none !important; }
  .hero h1 .accent::after { transform: scaleX(1); animation: none; }
  .btn::before { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { max-width: 460px; }
  .portrait { margin-left: 0; }
  .term { left: auto; right: -4%; }
  .term.solo { right: auto; margin-left: 0; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu-card { grid-template-columns: 56px minmax(0, 1fr); }
  .edu-facts { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open { background: var(--bg); border-color: var(--line); }
  .site-header.open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 68px; left: 0; right: 0; height: calc(100dvh - 68px); padding: 20px var(--gutter); background: var(--bg); gap: 2px; overflow-y: auto; }
  .site-header.open .nav-cta-mobile { display: block; }
  .site-header.open .nav-links a { display: block; font-size: 22px; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--display); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head, .about-grid, .contact-box { grid-template-columns: minmax(0, 1fr); }
  .pillars, .work-list { grid-template-columns: minmax(0, 1fr); }
  .work.feature { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .work.feature .work-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9.5; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .role { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .post-row a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .post-row .rt { display: none; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid div:nth-child(3) { border-left: 0; }
  .meta-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .certs, .outcomes, .two, .pager { grid-template-columns: minmax(0, 1fr); }
  .cert.wide { grid-column: auto; }
  .edu-card { grid-template-columns: minmax(0, 1fr); }
  .edu-facts { grid-template-columns: minmax(0, 1fr); }
  .sub-label { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cert-badge { margin-left: 0; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .step { border-left: 0 !important; }
  .step + .step { border-top: 1px solid var(--line); }
  .term { position: relative; left: 0; right: 0; bottom: 0; margin-top: -40px; width: 100%; }
  .term.solo { margin-top: 0; font-size: 12.5px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .edu { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .hide-sm { display: none; }
  .hero-side { max-width: 340px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}


/* Light theme: follows the visitor's system setting */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --bg-2: #eef2f5;
    --surface: #ffffff;
    --surface-2: #f1f4f7;
    --line: #dde3e8;
    --line-2: #c8d1d9;
    --text: #0f1720;
    --text-2: #2b3640;
    --muted: #4c5966;
    --faint: #66727e;
    --accent: #0c935e;
    --accent-2: #0a7a4e;
    --accent-ink: #ffffff;
    --amber: #b06f00;
    --infra: #0c935e;
    --data: #1f6bd0;
    --obs: #b06f00;
    --sec: #cf2f55;
    --free: #6a4bd1;
    --ops: #0e8494;
    --grid: rgba(15, 23, 32, .05);
    --shadow: rgba(15, 23, 32, .18);
    --code-bg: #f3f6f9;
    color-scheme: light;
  }
  .btn::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); }
  .hero-photo img, .contact-me img { box-shadow: 0 24px 50px -28px var(--shadow); }
  /* Diagrams: map the dark-theme SVG colours to the light palette */
  .diagram svg [fill="#13181d"], .cover svg [fill="#13181d"] { fill: var(--surface); }
  .diagram svg [fill="#0a0d10"], .cover svg [fill="#0a0d10"] { fill: var(--bg); }
  .diagram svg [fill="#e8edf1"], .cover svg [fill="#e8edf1"] { fill: var(--text); }
  .diagram svg [fill="#9aa6b2"], .cover svg [fill="#9aa6b2"] { fill: var(--muted); }
  .diagram svg [fill="#6f7b87"], .cover svg [fill="#6f7b87"],
  .diagram svg [fill="#5b6773"], .cover svg [fill="#5b6773"],
  .diagram svg [fill="#4b5763"], .cover svg [fill="#4b5763"] { fill: var(--faint); }
  .diagram svg [stroke="#4b5763"], .cover svg [stroke="#4b5763"],
  .diagram svg [stroke="#5b6773"], .cover svg [stroke="#5b6773"],
  .diagram svg [stroke="#6f7b87"], .cover svg [stroke="#6f7b87"] { stroke: var(--faint); }
  .diagram svg [fill="#3ddc97"], .cover svg [fill="#3ddc97"] { fill: var(--infra); }
  .diagram svg [stroke="#3ddc97"], .cover svg [stroke="#3ddc97"] { stroke: var(--infra); }
  .diagram svg [fill="#6cb4ff"], .cover svg [fill="#6cb4ff"] { fill: var(--data); }
  .diagram svg [stroke="#6cb4ff"], .cover svg [stroke="#6cb4ff"] { stroke: var(--data); }
  .diagram svg [fill="#f5b13d"], .cover svg [fill="#f5b13d"] { fill: var(--obs); }
  .diagram svg [stroke="#f5b13d"], .cover svg [stroke="#f5b13d"] { stroke: var(--obs); }
  .diagram svg [fill="#ff6b81"], .cover svg [fill="#ff6b81"] { fill: var(--sec); }
  .diagram svg [stroke="#ff6b81"], .cover svg [stroke="#ff6b81"] { stroke: var(--sec); }
  .diagram svg [stroke="#b49cff"], .cover svg [stroke="#b49cff"] { stroke: var(--free); }
  /* Logo tile */
  .brand-mark .lm-tile, .lm-tile { fill: var(--surface); }
  .brand-mark stop:first-child { stop-color: var(--infra); }
  .brand-mark stop:last-child { stop-color: var(--data); }
  .brand-mark .lm-node { fill: var(--infra); }
}

/* Icon-only contact tiles */
.contact-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.contact-tile { min-height: 0; aspect-ratio: 1; padding: 0; align-items: center; justify-content: center; }
.contact-tile > svg.i { display: none; }
@media (max-width: 600px) { .contact-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .contact-tile { min-height: 0; } }

/* Layout balance: consistent section rhythm and no dead patches */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.pillar { position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.card-mark { position: absolute; z-index: -1; pointer-events: none; color: var(--c); opacity: .07; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-mark svg { width: 100%; height: 100%; }
.pillar .card-mark { right: -24px; bottom: -30px; width: 200px; height: 200px; opacity: .08; transform: rotate(-8deg); }
.pillar.c-sec .card-mark { width: 250px; height: 250px; right: 20px; bottom: -10px; }
.pillar:hover .card-mark { opacity: .12; transform: rotate(0deg) scale(1.05); }
.post-card { position: relative; isolation: isolate; overflow: hidden; }
.post-mark { right: clamp(24px, 6vw, 90px); top: 50%; width: clamp(150px, 17vw, 210px); height: clamp(150px, 17vw, 210px); margin-top: -105px; opacity: .1; transform: rotate(-10deg); }
.post-card.featured:hover .post-mark { opacity: .16; transform: rotate(0deg) scale(1.04); }
.work.feature .more { margin-top: 6px; }
@media (max-width: 860px) { .post-mark { display: none; } .pillar .card-mark, .pillar.c-sec .card-mark { width: 120px; height: 120px; right: -18px; bottom: -22px; } }
@media (max-width: 600px) { .section { padding: 56px 0; } }

/* ------------------------------------------------ Client reviews: 3D stack */
.rv-rating { gap: 14px 16px; align-items: center; }
.rv-num { font: 600 64px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.rv-unit { font: 500 12px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rv-sep { width: 1px; align-self: stretch; background: var(--line-2); }
.rv-rating small strong { color: var(--text); }
@media (max-width: 600px) { .rv-sep { display: none; } .rv-num { font-size: 52px; min-width: 0; } .rv-rating > div { flex-basis: 100%; } }
.rv-card { margin: 0; padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-stars { color: var(--amber); letter-spacing: 2px; font-size: 15px; }
.rv-badge { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid; }
.rv-fiverr { color: #1dbf73; border-color: color-mix(in srgb, #1dbf73 45%, transparent); background: color-mix(in srgb, #1dbf73 10%, transparent); }
.rv-upwork { color: #14a800; border-color: color-mix(in srgb, #14a800 45%, transparent); background: color-mix(in srgb, #14a800 10%, transparent); }
.rv-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.rv-card blockquote::before { content: "“"; display: block; font: 600 44px/.8 var(--display); color: var(--accent); margin-bottom: 4px; }
.rv-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.rv-card figcaption b { display: block; color: var(--text); font: 600 13.5px/1.3 var(--mono); }
.rv-card .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 14px/1 var(--mono); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); }

/* Default (no JS / reduced motion): a calm grid */
.rv-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rv-progress { display: none; }
.rv-end { margin-top: clamp(28px, 4vw, 44px); display: grid; justify-items: center; gap: 16px; text-align: center; }
.rv-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rv-end .note { margin: 0; }
@media (prefers-reduced-motion: reduce) { .rv-deck .rv-card { animation: rvfade .8s ease both; } }
@keyframes rvfade { from { opacity: 0; } to { opacity: 1; } }

/* Desktop: scroll-driven stack */
.rv-stage.is-stack { height: calc(var(--n) * 48vh + 100vh); }
.rv-stage.is-stack .rv-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: flex-start; padding-top: clamp(72px, 11vh, 110px); overflow: hidden; }
.rv-stage.is-stack .rv-sticky > .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.rv-stage.is-stack .section-head { margin-bottom: clamp(20px, 3vh, 36px); }
.rv-stage.is-stack .rv-deck { display: block; position: relative; width: min(720px, 100%); height: clamp(300px, 44vh, 370px); margin: 46px auto 0; perspective: 1400px; perspective-origin: 50% 50%; }
.rv-stage.is-stack .rv-card { position: absolute; inset: 0; background: var(--surface); transform-origin: 50% 100%; will-change: transform, opacity; backface-visibility: hidden; box-shadow: 0 30px 60px -34px var(--shadow); justify-content: center; }
.rv-stage.is-stack .rv-card.reveal { transition: none; }
.rv-stage.is-stack .rv-card blockquote { font-size: clamp(16px, 1.45vw, 19px); }
.rv-stage.is-stack ~ .wrap .rv-end { margin-top: -8vh; position: relative; }
.rv-stage.is-stack .rv-progress { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(18px, 3vh, 30px); font: 500 12px/1 var(--mono); color: var(--faint); }
.rv-bar { width: 160px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.rv-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.rv-step { color: var(--accent); }

/* Mobile / tablet: swipeable cards with a light tilt */
.rv-stage.is-swipe .rv-deck { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 9% 18px; margin: 0 calc(-1 * var(--gutter)); perspective: 1000px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rv-stage.is-swipe .rv-deck::-webkit-scrollbar { display: none; }
.rv-stage.is-swipe .rv-deck { align-items: flex-start; }
.rv-stage.is-swipe .rv-card { flex: 0 0 82%; scroll-snap-align: center; will-change: transform; transition: transform .2s linear, opacity .2s linear; }
.rv-stage.is-swipe .rv-progress { display: flex; align-items: center; justify-content: center; gap: 12px; font: 500 12px/1 var(--mono); color: var(--faint); }

/* All-reviews modal */
.rv-modal { width: min(1100px, 100% - 24px); max-height: min(88vh, 100% - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg); color: var(--text); box-shadow: 0 40px 100px -30px var(--shadow); overflow: hidden; }
.rv-modal[open] { display: flex; flex-direction: column; animation: rvpop .35s var(--ease) both; }
.rv-modal::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
@keyframes rvpop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.rv-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(18px, 3vw, 30px) 10px; }
.rv-modal-head h3 { font-size: clamp(20px, 2.4vw, 28px); }
.rv-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 400 24px/1 var(--font); cursor: pointer; }
.rv-close:hover { border-color: var(--accent); color: var(--accent); }
.rv-filters { padding: 0 clamp(18px, 3vw, 30px); margin: 0 0 14px; }
.rv-grid { overflow-y: auto; padding: 4px clamp(18px, 3vw, 30px) 20px; columns: 3 280px; column-gap: 14px; overscroll-behavior: contain; }
.rv-grid .rv-card { break-inside: avoid; margin: 0 0 14px; }
.rv-grid .rv-card.is-hidden { display: none; }
.rv-modal > .note { margin: 0; padding: 12px clamp(18px, 3vw, 30px) 18px; border-top: 1px solid var(--line); text-align: center; }
html.rv-lock { overflow: hidden; }

@media print {
  .site-header, .site-footer, .bg-grid, .marquee, .toc, .pager { display: none !important; }
  body { background: #fff; color: #000; }
}
