/*
 * site.css: v2 design system ("Signal landscape").
 * Used by the redesigned home page. Other pages still load global.css
 * until they are migrated.
 */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #17171a;
  --text-muted: #56565e;
  --text-dim: #8b8b94;
  --line: #e7e7e3;
  --guide: rgba(23, 23, 26, 0.13);
  --pill: rgba(255, 255, 255, 0.62);
  --pill-active: #ffffff;
  --pill-border: rgba(23, 23, 26, 0.07);
  --accent: #2f5bea;
  --signal: #f08a3c;
  --hl-blue: #dde7ff;
  --hl-green: #d9f4e1;
  --hl-amber: #ffe3c8;
  --shadow: 0 1px 2px rgba(23, 23, 26, 0.06), 0 8px 24px -8px rgba(23, 23, 26, 0.14);

  /* scene */
  --sky-1: #b7d0f1;
  --sky-2: #dfe6f3;
  --sky-3: #f8e2cf;
  --ridge-far: #c3cfe2;
  --ridge-mid: #a9bcc4;
  --ridge-near: #c9d8cc;
  --wire: rgba(60, 76, 104, 0.3);
  --cloud: #ffffff;

  --paper: #fffdf8;
  --paper-dot: #dcd8cc;
  --tape: rgba(240, 190, 96, 0.72);

  --col: 640px;
  --gutter: 20px;
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0b10;
  --surface: #14151b;
  --text: #f2f2f4;
  --text-muted: #a9a9b3;
  --text-dim: #71717c;
  --line: #23242b;
  --guide: rgba(255, 255, 255, 0.11);
  --pill: rgba(34, 36, 46, 0.66);
  --pill-active: #32343f;
  --pill-border: rgba(255, 255, 255, 0.08);
  --accent: #7d9bff;
  --signal: #ffb066;
  --hl-blue: rgba(96, 130, 255, 0.28);
  --hl-green: rgba(70, 190, 120, 0.26);
  --hl-amber: rgba(240, 140, 60, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -8px rgba(0, 0, 0, 0.6);

  --sky-1: #070a18;
  --sky-2: #0e1430;
  --sky-3: #1a2146;
  --ridge-far: #1b2242;
  --ridge-mid: #131931;
  --ridge-near: #0d1122;
  --wire: rgba(170, 186, 235, 0.3);
  --paper: #15161c;
  --paper-dot: #2b2d38;
  --tape: rgba(240, 190, 96, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
::selection { background: var(--hl-blue); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Icons (CSS masks so they follow currentColor) ---------- */
.ico {
  display: inline-block; flex: none; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.ico-user { --i: url(../assets/icons/user.svg); }
.ico-grid { --i: url(../assets/icons/layout-grid.svg); }
.ico-route { --i: url(../assets/icons/route.svg); }
.ico-pen { --i: url(../assets/icons/pen-line.svg); }
.ico-sun { --i: url(../assets/icons/sun.svg); }
.ico-moon { --i: url(../assets/icons/moon.svg); }
.ico-folder { --i: url(../assets/icons/folder.svg); }
.ico-mail { --i: url(../assets/icons/mail.svg); }
.ico-up { --i: url(../assets/icons/arrow-up.svg); }
.ico-copy { --i: url(../assets/icons/copy.svg); }
.ico-check { --i: url(../assets/icons/check.svg); }
.ico-out { --i: url(../assets/icons/arrow-up-right.svg); }
.ico-back { --i: url(../assets/icons/arrow-left.svg); }
.ico-sticker { --i: url(../assets/icons/sticker.svg); }
.ico-github { --i: url(../assets/logos/github.svg); }
.ico-linkedin { --i: url(../assets/logos/linkedin.svg); }

/* ---------- Scene ---------- */
.scene {
  position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.scene svg { width: 100%; height: 100%; }
.scene-top {
  top: 0; height: 660px;
  -webkit-mask-image: linear-gradient(#000 38%, rgba(0,0,0,0.45) 62%, transparent 94%);
  mask-image: linear-gradient(#000 38%, rgba(0,0,0,0.45) 62%, transparent 94%);
}
.scene-bottom {
  bottom: 0; height: 420px;
  -webkit-mask-image: linear-gradient(transparent 4%, #000 60%);
  mask-image: linear-gradient(transparent 4%, #000 60%);
}

.sky-a { stop-color: var(--sky-1); }
.sky-b { stop-color: var(--sky-2); }
.sky-c { stop-color: var(--sky-3); }
.ridge-far { fill: var(--ridge-far); }
.ridge-mid { fill: var(--ridge-mid); }
.ridge-near { fill: var(--ridge-near); }
.ridge-far, .ridge-mid, .ridge-near, .sky-a, .sky-b, .sky-c { transition: fill 0.5s var(--ease), stop-color 0.5s var(--ease); }
.wire { fill: none; stroke: var(--wire); stroke-width: 1.1; }
.pylon { fill: none; stroke: var(--wire); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pulse { fill: var(--signal); }
.cloud { fill: var(--cloud); }
.sun-glow { opacity: 0.9; }

.only-dark { opacity: 0; transition: opacity 0.6s var(--ease); }
.only-light { opacity: 1; transition: opacity 0.6s var(--ease); }
[data-theme="dark"] .only-dark { opacity: 1; }
[data-theme="dark"] .only-light { opacity: 0; }

.star { fill: #dfe6ff; }
.constellation line { stroke: rgba(160, 182, 255, 0.5); stroke-width: 1; stroke-dasharray: 3 4; }
.constellation rect { fill: rgba(125, 155, 255, 0.12); stroke: rgba(180, 198, 255, 0.75); stroke-width: 1; }
.constellation circle { fill: #cfdaff; }

@keyframes twinkle { 50% { opacity: 0.25; } }
.star.tw { animation: twinkle 4s ease-in-out infinite; }
.star.tw:nth-of-type(3n) { animation-duration: 6s; animation-delay: -2s; }
@keyframes drift { to { transform: translateX(40px); } }
.cloud-group { animation: drift 40s ease-in-out infinite alternate; }
.cloud-group.slow { animation-duration: 70s; animation-direction: alternate-reverse; }

/* ---------- Page column ---------- */
.page { position: relative; z-index: 1; }
.column {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--col));
  margin-inline: auto;
}
/* dashed guide rails */
.rails {
  position: absolute; inset: 0 auto 0 50%; z-index: 0; pointer-events: none;
  width: min(100%, calc(var(--col) + 2 * var(--gutter)));
  transform: translateX(-50%);
  border-inline: 1px dashed var(--guide);
  -webkit-mask-image: linear-gradient(transparent 80px, #000 220px);
  mask-image: linear-gradient(transparent 80px, #000 220px);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  pointer-events: none;
}
.topbar-inner {
  width: min(100% - 2 * var(--gutter) + 24px, calc(var(--col) + 36px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pill {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--pill);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.tab .ico { width: 0; opacity: 0; margin-right: -6px; transition: width 0.3s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease); }
.tab:hover { background: color-mix(in srgb, var(--pill-active) 55%, transparent); }
.tab[aria-current="true"], .tab[aria-current="page"] { background: var(--pill-active); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.tab[aria-current="true"] .ico, .tab[aria-current="page"] .ico, .tab-static .ico { width: 14px; opacity: 1; margin-right: 0; }
.tab-sep { width: 1px; height: 16px; margin: 0 4px; background: var(--guide); }

.theme-toggle { gap: 0; }
.theme-toggle button {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  color: var(--text-dim);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle button[aria-pressed="true"] { background: var(--pill-active); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* ---------- Intro ---------- */
.intro { padding-top: 140px; }

.avatar-link { position: relative; display: inline-block; }
.avatar {
  width: 64px; height: 64px; border-radius: 16px; object-fit: cover; object-position: 50% 32%;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}
.avatar-link:hover .avatar, .avatar-link:focus-visible .avatar { transform: rotate(-5deg) scale(1.05); }
.avatar-tag {
  position: absolute; left: calc(100% + 10px); top: 50%;
  translate: -6px -50%; opacity: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}
.avatar-link:hover .avatar-tag, .avatar-link:focus-visible .avatar-tag { opacity: 1; translate: 0 -50%; }

.intro-name { margin-top: 28px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.intro-role { color: var(--text-muted); font-size: 16px; }
.intro-body { margin-top: 24px; display: grid; gap: 16px; color: var(--text); text-wrap: pretty; }
.intro-body p { color: color-mix(in srgb, var(--text) 86%, var(--bg)); }

mark {
  color: inherit; padding: 1px 4px; margin: 0 -1px; border-radius: 5px;
  background: var(--hl-blue);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
mark.green { background: var(--hl-green); }
mark.amber { background: var(--hl-amber); }

.intro-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .ico { width: 14px; height: 14px; }

.links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-muted); font-size: 15px; }
.links a, .copy-email { transition: color 0.2s; }
.links a:hover, .copy-email:hover { color: var(--text); }
.links .dot { color: var(--text-dim); }
.copy-email { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); }
.copy-email .ico { width: 13px; height: 13px; opacity: 0.7; }

/* tool marquee */
.marquee {
  margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 52px; padding-right: 52px; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo {
  width: 26px; height: 26px; flex: none; color: var(--text-dim); opacity: 0.75;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.lg-n8n { --i: url(../assets/logos/n8n.svg); }
.lg-openai { --i: url(../assets/logos/openai.svg); }
.lg-ollama { --i: url(../assets/logos/ollama.svg); }
.lg-airtable { --i: url(../assets/logos/airtable.svg); }
.lg-gmail { --i: url(../assets/logos/gmail.svg); }
.lg-googlesheets { --i: url(../assets/logos/googlesheets.svg); }
.lg-googledrive { --i: url(../assets/logos/googledrive.svg); }
.lg-slack { --i: url(../assets/logos/slack.svg); }
.lg-python { --i: url(../assets/logos/python.svg); }
.lg-github { --i: url(../assets/logos/github.svg); }
.lg-vercel { --i: url(../assets/logos/vercel.svg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: 96px; }
.kicker {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 20px;
}

/* work */
.work-list { display: grid; gap: 56px; }
.work-card { display: block; }
.cover {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: var(--cover-bg, var(--line));
  box-shadow: 0 0 0 1px var(--pill-border);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-card:hover .cover, .work-card:focus-visible .cover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--pill-border), 0 24px 40px -24px rgba(0, 0, 0, 0.35); }
.cover-rag { --cover-bg: linear-gradient(135deg, #4a55e8 0%, #8f6bf0 55%, #d9a3f5 100%); }
.cover-hitl { --cover-bg: linear-gradient(135deg, #f0683c 0%, #f59f52 55%, #fbd58a 100%); }
.cover-lead { --cover-bg: linear-gradient(135deg, #0f9b78 0%, #45c08f 55%, #b9e6a8 100%); }
.cover-speed { --cover-bg: linear-gradient(135deg, #0a6fb0 0%, #2fa6e0 55%, #a9e1f5 100%); }
.cover-recep { --cover-bg: linear-gradient(135deg, #b0234f 0%, #e0577f 55%, #f8b9c6 100%); }

.cv-panel { fill: #fff; }
.cv-dots { fill: #d9dbe3; }
.cv-chrome { fill: #f3f4f7; }
.cv-edge { fill: none; stroke: #b9bdcb; stroke-width: 1.6; }
.cv-edge.sub { stroke-dasharray: 3 4; stroke-width: 1.3; }
.cv-node { fill: #fff; stroke: #d3d6e0; stroke-width: 1.2; }
.cv-node.sub { fill: #f7f8fb; }
.cv-chip { fill: var(--cv-accent); }
.cv-label { font: 500 10.5px var(--font-sans); fill: #23242b; }
.cv-sub { font: 400 8.5px var(--font-mono); fill: #8a8d99; }
.cv-tag { font: 500 9px var(--font-mono); fill: #8a8d99; letter-spacing: 0.04em; }
.cv-pulse { fill: var(--cv-accent); }
[data-theme="dark"] .cv-panel { fill: #15161d; }
[data-theme="dark"] .cv-chrome { fill: #1d1f28; }
[data-theme="dark"] .cv-dots { fill: #2c2e3a; }
[data-theme="dark"] .cv-node { fill: #1d1f28; stroke: #343747; }
[data-theme="dark"] .cv-node.sub { fill: #191b23; }
[data-theme="dark"] .cv-edge { stroke: #4a4e62; }
[data-theme="dark"] .cv-label { fill: #eeeef2; }

.work-title { margin-top: 18px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.work-title .ico { width: 14px; height: 14px; color: var(--text-dim); opacity: 0; translate: -4px 4px; transition: opacity 0.3s var(--ease), translate 0.3s var(--ease); }
.work-card:hover .work-title .ico, .work-card:focus-visible .work-title .ico { opacity: 1; translate: 0 0; }
.work-meta { margin-top: 2px; font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.01em; }
.work-desc { margin-top: 12px; color: var(--text-muted); font-size: 15px; text-wrap: pretty; }

.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.more-link:hover { color: var(--text); border-color: var(--text-dim); }
.more-link .ico { width: 13px; height: 13px; }

/* cta */
.cta {
  margin-top: 72px; padding: 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta h2 { font-size: 17px; letter-spacing: -0.01em; }
.cta p { margin-top: 4px; color: var(--text-muted); font-size: 15px; max-width: 38ch; }

/* timeline */
.timeline { position: relative; display: grid; gap: 36px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 0; width: 1.5px; background: var(--accent); opacity: 0.85; }
.timeline::after {
  content: ""; position: absolute; left: -1px; bottom: -6px; width: 13.5px; height: 13.5px;
  background: var(--accent);
  -webkit-mask: url(../assets/icons/route.svg) center / contain no-repeat; mask: url(../assets/icons/route.svg) center / contain no-repeat;
}
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tl-title { font-size: 16px; font-weight: 500; }
.tl-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.tl-role { color: var(--text-muted); font-size: 15px; }
.tl-desc { margin-top: 8px; color: color-mix(in srgb, var(--text) 80%, var(--bg)); font-size: 15px; text-wrap: pretty; }
.tl-desc a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.tl-desc a:hover { border-color: var(--text-dim); }

/* about teaser: a taped scrap of dotted paper with a pile of stickers */
.teaser {
  position: relative; margin-top: 80px; rotate: -0.6deg;
  display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 20px;
  padding: 26px 28px 26px 16px; border-radius: 6px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 11px 11px;
  box-shadow: 0 0 0 1px var(--pill-border), 0 26px 44px -28px rgba(20, 20, 30, 0.4);
  transition: rotate 0.5s var(--ease), translate 0.5s var(--ease), opacity 0.8s var(--ease);
}
.teaser:hover, .teaser:focus-visible { rotate: 0deg; }
.teaser::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; rotate: -3deg;
  background: var(--tape);
  clip-path: polygon(0 0, 4% 50%, 0 100%, 100% 100%, 96% 50%, 100% 0);
}
.teaser-pile { position: relative; height: 170px; }
.teaser-pile img {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto;
  rotate: var(--r); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
  transition: translate 0.6s var(--ease), rotate 0.6s var(--ease);
}
.teaser-pile img.photo { border: 4px solid #fff; border-radius: 8px; aspect-ratio: 4 / 5; object-fit: cover; }
.teaser:hover .teaser-pile img, .teaser:focus-visible .teaser-pile img { translate: var(--hx, 0) var(--hy, 0); rotate: calc(var(--r) * -0.6); }
.teaser h2 { font-size: 17px; letter-spacing: -0.01em; }
.teaser p { margin-top: 4px; color: var(--text-muted); font-size: 15px; text-wrap: pretty; }
.teaser-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; }
[data-theme="dark"] .teaser-go { color: #0a0b10; }
.teaser-go .ico { width: 13px; height: 13px; transition: translate 0.3s var(--ease); }
.teaser:hover .teaser-go .ico { translate: 2px -2px; }

/* now playing */
.now-playing { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.np-link { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; color: var(--text-muted); }
.np-link strong { color: var(--text); font-weight: 500; }
.np-disc {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 16%, #1b1b1f 17% 34%, #3a3a42 35% 38%, #1b1b1f 39% 60%, #3a3a42 61% 64%, #1b1b1f 65%);
  animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.np-toggle { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.np-toggle:hover { color: var(--text); border-color: var(--text-dim); }
.np-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.np-drawer.open { grid-template-rows: 1fr; }
.np-drawer > div { overflow: hidden; }
.np-drawer iframe { display: block; border: 0; border-radius: 14px; margin-bottom: 16px; }

/* footer */
.footer-wrap { position: relative; margin-top: 40px; }
.footer { position: relative; z-index: 1; padding: 150px 0 190px; font-size: 15px; }
.footer p + p { color: var(--text-muted); }
.footer a { border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.footer a:hover { color: var(--text); border-color: var(--text-dim); }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; translate: -50% 0;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: var(--pill); border: 1px solid var(--pill-border); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 24px);
}
.dock-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  background: color-mix(in srgb, var(--pill-active) 70%, transparent);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.dock-btn:hover { background: var(--pill-active); transform: translateY(-2px); }
.dock-btn.icon-only { padding: 0; width: 40px; }
.dock-cta { background: var(--text); color: var(--bg); padding: 0 16px; }
.dock-cta:hover { background: var(--text); }
.dock-cta .short { display: none; }
.dock-sep { width: 1px; height: 22px; background: var(--guide); margin: 0 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 14px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .intro { padding-top: 112px; }
  .tab { padding: 0 10px; }
  .tab .label { display: none; }
  .tab .ico { width: 15px; opacity: 1; margin-right: 0; height: 15px; }
  .tab[aria-current="true"] .label, .tab[aria-current="page"] .label { display: inline; }
  .tab-sep { margin: 0 1px; }
  .teaser { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .teaser-pile { height: 150px; }
  .section { padding-top: 76px; }
  .work-list { gap: 44px; }
  .cover { border-radius: 16px; }
  .dock-cta .long { display: none; }
  .dock-cta .short { display: inline; }
  .dock-btn .top-label { display: none; }
  .dock-btn.top { width: 40px; padding: 0; }
  .tl-head { flex-direction: column; gap: 0; }
  .cta { padding: 22px; }
  .avatar-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .pulse, .cv-pulse { display: none; }
  .reveal { opacity: 1; translate: 0 0; }
}
