/* ── Tokens ── */
:root {
  --bg: #F2F1EE;
  --surface: #FFFFFF;
  --ink: #141414;
  --text: #2B2B28;
  --muted: #55554F;
  --muted-2: #6B6B64;
  --line: #E2E0DA;
  --line-2: #EEEDE9;
  --chip: #F2F1EE;
  --accent: #4338CA;
  --accent-soft: #E4E2F7;
  --dark: #141414;
  --dark-card: #1D1D1B;
  --dark-line: #2E2E2B;
  --dark-muted: #A3A39C;
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1200px;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.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; }
[hidden] { display: none !important; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242,241,238,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; display: flex; background: #E6E4DE; border-radius: 999px; padding: 3px; }
.lang-switch::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: 40px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .3s var(--ease); }
.lang-switch[data-active="en"]::before { transform: translateX(40px); }
.lang-switch button { position: relative; z-index: 1; width: 40px; border: 0; background: transparent; font-size: 12px; font-weight: 500; padding: 6px 0; border-radius: 999px; color: var(--muted); cursor: pointer; transition: color .3s var(--ease); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang-auto { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--muted-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--ink); }

/* ── Buttons & chips ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: var(--chip); color: var(--ink); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid #D6D5CF; }
.chip { display: inline-flex; align-items: center; font-size: 12px; padding: 4px 10px; background: var(--chip); border-radius: 999px; color: #3A3A37; }
.pill { position: absolute; font-size: 11px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); }

/* ── Section heads ── */
.section { padding: 80px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head .num { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 15px; color: var(--muted); }

/* ── Hero / bento ── */
.hero { display: flex; flex-wrap: wrap; gap: 16px; padding: 48px 0 72px; }
.card { background: var(--surface); border-radius: var(--radius); }
.hero-intro { flex: 7 1 520px; min-width: 0; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-side { flex: 5 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.profile { display: flex; align-items: center; gap: 16px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background-color: var(--accent-soft); background-image: radial-gradient(rgba(67,56,202,.18) 1px, transparent 1px); background-size: 8px 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: var(--accent); }
.profile-name { font-size: 17px; font-weight: 600; }
.profile-role { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.035em; }
.hero-bio { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36rem; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.now { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.now-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #9BE3B9; background: rgba(155,227,185,.12); padding: 5px 11px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); animation: breathe 2.4s ease-in-out infinite; }
.now-job { display: flex; align-items: center; gap: 14px; }
.now-logo { width: 52px; height: 52px; border-radius: 14px; background: #2A2A27; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #C9C9C2; font-size: 15px; }
.now-title { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.now-company { font-size: 14px; color: var(--dark-muted); }

.map-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #E7E4DC; min-height: 230px; flex: 1 1 auto; isolation: isolate; }
.map-card .map { position: absolute; inset: 0; z-index: 0; }
.map-card .map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-info { position: absolute; z-index: 500; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.map-info small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.map-info strong { font-size: 15px; font-weight: 500; }
.map-info .clock { text-align: right; font-variant-numeric: tabular-nums; }
.pin { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--accent); z-index: -1; animation: pulse 2s var(--ease) infinite; }
.leaflet-container { font-family: var(--sans); background: #E7E4DC; }
.map-card .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.7) !important; }

/* ── Grids & cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tile { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,20,20,.10); }
.thumb { position: relative; aspect-ratio: 16 / 10; background-color: #DCE4EE; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 14px 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb.wide { aspect-ratio: 16 / 9; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pill-tr { top: 14px; right: 14px; }
.thumb .pill-tl { top: 14px; left: 14px; }
.thumb .pill-dark { background: var(--ink); color: #fff; }
.tile-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tile-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-title strong { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.tile-title span { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.tile-desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted-2); }
.tile-foot .go { color: var(--accent); font-weight: 500; font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed #D6D5CF; border-radius: var(--radius); font-size: 15px; }

/* Default visuals */
.phone { width: 118px; height: 236px; margin-top: 70px; border-radius: 26px; background: #0D0D1A; padding: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: rotate(-6deg); transition: transform .5s var(--ease); }
.phone-screen { width: 100%; height: 100%; border-radius: 20px; background: #FAFAFA; padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.phone-screen i { display: block; border-radius: 4px; background: #E9E8E4; height: 18px; }
.phone-screen i:first-child { height: 5px; width: 40%; }
.phone-screen i:nth-child(2) { height: 8px; width: 75%; background: #141414; }
.phone-screen b { display: flex; gap: 5px; margin-top: 4px; }
.phone-screen b span { flex: 1; height: 34px; border-radius: 8px; opacity: .85; }
.app-icon { position: absolute; left: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 12px; background: #FAFAFA; box-shadow: 0 8px 20px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; overflow: hidden; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.repo { width: 80%; border-radius: 12px; background: #161B22; border: 1px solid #30363D; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.repo-name { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #E6EDF3; overflow: hidden; }
.repo-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo i { display: block; height: 6px; border-radius: 3px; background: #30363D; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: #8B949E; }
.lang-dot { display: inline-flex; align-items: center; gap: 6px; }
.lang-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #3FB950); }
.browser { width: 78%; border-radius: 10px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.25); overflow: hidden; }
.browser-bar { height: 22px; background: #ECEBE7; display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #C9C7C0; }
.browser-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.browser-body i { display: block; height: 8px; border-radius: 3px; background: #E9E8E4; }
.monogram { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; color: rgba(255,255,255,.9); }
.placeholder-label { font-family: var(--mono); font-size: 12px; color: var(--muted-2); background: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 999px; }

/* ── Pro section (dark) ── */
.pro { background: var(--dark); color: #fff; }
.pro .section-head .num { color: #A5A0F5; }
.pro .section-head p { color: var(--dark-muted); }
.pro-card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.pro-card:hover { transform: translateY(-4px); border-color: #55554F; }
.pro-card .thumb { aspect-ratio: 16 / 9; overflow: visible; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); }
.pro-card .thumb > img { border-radius: 0; }
.pro-logo { position: absolute; left: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: 12px; background: #2A2A27; border: 3px solid var(--dark-card); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #C9C9C2; overflow: hidden; }
.pro-logo img { width: 100%; height: 100%; object-fit: cover; }
.pro-body { padding: 34px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.pro-body .period { font-family: var(--mono); font-size: 12px; color: var(--dark-muted); }
.pro-body strong { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.pro-body .who { font-size: 14px; color: #C9C9C2; }
.pro-body .desc { font-size: 14px; line-height: 1.55; color: var(--dark-muted); }
.pro-body .stack { font-family: var(--mono); font-size: 12px; color: #8A8A83; padding-top: 6px; }
.pro .empty { border-color: var(--dark-line); color: var(--dark-muted); }

/* ── Articles ── */
.article-card .thumb { background-image: radial-gradient(rgba(20,20,20,.07) 1px, transparent 1px); }
.article-card .meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.article-card strong { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.article-card .read { font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 4px; margin-top: auto; }

/* ── Path ── */
.path { display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 0 0 80px; }
.path .section-head { flex: 1 1 260px; margin: 0; align-items: start; }
.path ol { flex: 2 1 520px; margin: 0; list-style: none; background: var(--surface); border-radius: var(--radius); padding: 12px 28px; }
.path li { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.path li:last-child { border-bottom: 0; }
.path li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #C9C7C0; flex-shrink: 0; }
.path li:first-child::before { background: var(--accent); }
.path .when { font-family: var(--mono); font-size: 12px; color: var(--muted-2); min-width: 100px; }
.path .what { font-size: 16px; flex: 1 1 240px; }
.path .where { color: var(--muted-2); }

/* ── Contact ── */
.contact { padding: 0 0 64px; }
.contact-card { background-color: var(--accent); background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 16px 16px; color: #fff; border-radius: 28px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.contact-card h2 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
.contact-card .mail { display: inline-block; margin-top: 14px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.5); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; }

/* ── Project page ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 32px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.p-hero { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 40px 0 56px; align-items: start; }
.p-hero-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.p-icon { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; color: #fff; overflow: hidden; }
.p-icon img { width: 100%; height: 100%; object-fit: cover; }
.p-hero h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.p-tagline { font-size: 20px; line-height: 1.55; color: #3A3A37; max-width: 40rem; }
.facts { flex: 1 1 300px; margin: 0; background: var(--surface); border-radius: 18px; padding: 8px 24px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.facts dd { margin: 0; font-size: 14px; text-align: right; }
.p-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 56px; }
.p-cover .thumb { aspect-ratio: 21 / 9; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 56px; scroll-snap-type: x mandatory; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #ECEBE7; scroll-snap-align: start; }
.p-block { padding: 56px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px 56px; }
.p-block > h2, .p-block > .p-side { flex: 1 1 240px; max-width: 320px; }
.p-block > h2 { font-size: 28px; letter-spacing: -0.02em; }
.p-block > .p-content { flex: 999 1 560px; min-width: 0; }
.gh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.gh-stat { background: var(--surface); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.gh-stat small { font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.gh-stat strong { font-size: 20px; font-weight: 500; }
.legal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.legal-card { background: var(--surface); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease; }
.legal-card:hover { transform: translateY(-3px); }
.legal-card code { font-family: var(--mono); font-size: 12px; color: var(--muted-2); word-break: break-all; }
.legal-card strong { font-size: 17px; font-weight: 500; }
.legal-card span { font-size: 13px; color: var(--accent); font-weight: 500; }
.p-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 64px; border-top: 1px solid var(--line); font-size: 14px; }

/* ── Prose (markdown) ── */
.prose { font-size: 16px; line-height: 1.7; color: var(--text); max-width: 680px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 20px; letter-spacing: -0.015em; color: var(--ink); margin-top: 36px; }
.prose h3 { font-size: 17px; letter-spacing: -0.01em; color: var(--ink); margin-top: 28px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: 14px; background: #ECEBE7; padding: 2px 6px; border-radius: 5px; }
.prose blockquote { margin: 18px 0; padding: 16px 20px; background: var(--surface); border-radius: 12px; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }

/* ── Legal page ── */
.legal-layout { display: flex; flex-wrap: wrap; gap: 40px 72px; padding: 48px 0 96px; align-items: flex-start; }
.legal-side { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 20px; }
.legal-side .owner { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.legal-side .owner span:first-child { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; }
.legal-side .owner img { width: 100%; height: 100%; object-fit: cover; }
.legal-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.legal-tabs a { margin-left: -1px; border-left: 2px solid transparent; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.legal-tabs a[aria-current="page"] { border-left-color: var(--ink); color: var(--ink); font-weight: 500; }
.legal-tabs a:hover { color: var(--ink); }
.legal-main { flex: 999 1 560px; min-width: 0; }
.legal-head { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.legal-head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.legal-head p { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.notice { padding: 12px 16px; background: #FFF6E5; color: #6B4A00; border-radius: 12px; font-size: 14px; margin-bottom: 24px; }

.loading { padding: 120px 0; text-align: center; color: var(--muted-2); font-family: var(--mono); font-size: 13px; }

@media (max-width: 640px) {
  .hero-intro { padding: 26px; }
  .now { padding: 22px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 30px; }
  .contact-card { padding: 40px 24px; }
  .nav { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Squelettes de chargement (shimmer) ── */
.sk { display: block; position: relative; overflow: hidden; background: #E6E4DE; border-radius: 8px; flex-shrink: 0; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk-dark { background: #2A2F36; }
.sk-dark::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); }
.sk-line { height: 12px; border-radius: 6px; }
.sk-pill { height: 22px; border-radius: 999px; }
.sk-btn { height: 44px; border-radius: 12px; }
.sk-col { display: flex; flex-direction: column; gap: 10px; }
@keyframes sk-shimmer { to { transform: translateX(100%); } }
.fade-in { animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } .fade-in { animation: none; } }

/* ── FAQ (même gabarit que les pages légales) ── */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.faq-item { background: var(--surface); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-size: 16px; font-weight: 500; line-height: 1.45; position: relative; border-radius: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .prose { padding: 0 20px 20px; font-size: 15px; }
.faq-item[open] .prose { animation: swap .3s var(--ease) both; }

/* ── Animations (proposition v1.1) ── */

/* 01 · Entrée en cascade au premier affichage */
html.motion-intro .up { animation: up .6s var(--ease) both; }
html.motion-intro .d1 { animation-delay: .08s; }
html.motion-intro .d2 { animation-delay: .16s; }
html.motion-intro .d3 { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 02 · Révélation au défilement (une fois) */
html.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); }
html.js-motion [data-reveal].in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }

/* 03 · Survol des cartes : levée, zoom de la vignette, flèche qui glisse (idem au clavier) */
a.tile, .pro-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
a.tile:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,20,20,.10); }
a.pro-card:focus-visible { transform: translateY(-4px); border-color: #55554F; }
.tile .thumb > img, .pro-card .thumb > img { transition: transform .5s var(--ease); }
a.tile:hover .thumb > img, a.tile:focus-visible .thumb > img, a.pro-card:hover .thumb > img { transform: scale(1.05); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a.tile:hover .go .arrow, a.tile:focus-visible .go .arrow { transform: translateX(4px); }
a.tile:hover .read .arrow, a.tile:focus-visible .read .arrow { transform: translate(2px, -2px); }

/* 04 · Le téléphone se redresse */
a.tile:hover .phone, a.tile:focus-visible .phone { transform: rotate(0deg) translateY(-8px); }

/* 05 · Signes de vie */
@keyframes pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,.22); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,.06); } }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 06 · Changement de langue : les contenus se remplacent en fondu */
#root.lang-swap > main, #root.lang-swap > .pro, #root.lang-swap > footer { animation: swap .35s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 07 · Stats GitHub : apparition en fondu (le compteur est en JS) */
.fade-meta { animation: fade-in .5s ease both; }

/* 08 · Transition de page : la vignette devient la couverture (View Transitions, navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-group(project-cover) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.motion-intro .up, .blink, .pin::before, .status::before, #root.lang-swap > *, .fade-meta { animation: none !important; }
  .lang-switch::before, a.tile, .pro-card, .arrow, .phone, .tile .thumb > img { transition: none !important; }
}
