:root {
  --hue: 265;
  --accent-hue: 268;

  --paper: oklch(98.6% 0.004 var(--hue));
  --paper-2: oklch(96.4% 0.007 var(--hue));
  --surface: oklch(99.6% 0.002 var(--hue));
  --line: oklch(89% 0.012 var(--hue));
  --line-strong: oklch(82% 0.016 var(--hue));
  --ink: oklch(21% 0.02 var(--hue));
  --ink-2: oklch(40% 0.018 var(--hue));
  --ink-3: oklch(52% 0.016 var(--hue));

  --accent: oklch(50% 0.2 var(--accent-hue));
  --accent-hover: oklch(44% 0.2 var(--accent-hue));
  --accent-ink: oklch(99% 0 0);
  --accent-soft: oklch(94% 0.03 var(--accent-hue));
  --accent-text: var(--accent);
  --deep: oklch(22% 0.06 var(--accent-hue));
  --dot: oklch(72% 0.17 55);

  --code-bg: oklch(20% 0.025 var(--hue));
  --code-bar: oklch(25% 0.03 var(--hue));
  --code-ink: oklch(92% 0.01 var(--hue));
  --code-ink-2: oklch(72% 0.03 var(--hue));
  --code-line: oklch(32% 0.03 var(--hue));
  --success: oklch(78% 0.15 155);
  --orbit-line: oklch(78% 0.04 var(--hue));

  --tile-tint-l: 95%;
  --tile-tint-c: 0.035;
  --spot: oklch(60% 0.18 var(--accent-hue) / 0.1);

  --font-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--2: 0.78rem;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);
  --tracking-display: -0.03em;
  --tracking-caps: 0.1em;
  --leading-display: 1.08;
  --leading-body: 1.65;
  --measure: 60ch;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(72px, 6vw + 40px, 144px);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1160px;

  /* Shape system: pills for interactive controls, 16px for tiles and panels, 10px nested. */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-icon: 22.5%;
  --shadow-1: 0 1px 2px oklch(25% 0.04 var(--hue) / 0.06), 0 6px 16px oklch(25% 0.04 var(--hue) / 0.08);
  --shadow-2: 0 2px 4px oklch(25% 0.04 var(--hue) / 0.06), 0 18px 40px oklch(25% 0.04 var(--hue) / 0.12);

  --dur-press: 120ms;
  --dur-state: 240ms;
  --dur-reveal: 640ms;
  --dur-enter: 700ms;
  --orbit-1: 46s;
  --orbit-2: 70s;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(16.5% 0.018 var(--hue));
    --paper-2: oklch(19% 0.02 var(--hue));
    --surface: oklch(21.5% 0.022 var(--hue));
    --line: oklch(29% 0.025 var(--hue));
    --line-strong: oklch(36% 0.03 var(--hue));
    --ink: oklch(95% 0.008 var(--hue));
    --ink-2: oklch(78% 0.015 var(--hue));
    --ink-3: oklch(66% 0.018 var(--hue));
    --accent: oklch(80% 0.11 var(--accent-hue));
    --accent-hover: oklch(86% 0.09 var(--accent-hue));
    --accent-ink: oklch(18% 0.05 var(--accent-hue));
    --deep: oklch(30% 0.12 var(--accent-hue));
    --accent-soft: oklch(30% 0.07 var(--accent-hue));
    --accent-text: oklch(78% 0.12 var(--accent-hue));
    --code-bg: oklch(13% 0.016 var(--hue));
    --code-bar: oklch(18% 0.02 var(--hue));
    --code-line: oklch(27% 0.025 var(--hue));
    --orbit-line: oklch(40% 0.05 var(--hue));
    --tile-tint-l: 24%;
    --tile-tint-c: 0.04;
    --spot: oklch(75% 0.12 var(--accent-hue) / 0.1);
    --shadow-1: 0 1px 2px oklch(5% 0.02 var(--hue) / 0.4), 0 6px 16px oklch(5% 0.02 var(--hue) / 0.35);
    --shadow-2: 0 2px 4px oklch(5% 0.02 var(--hue) / 0.4), 0 18px 40px oklch(5% 0.02 var(--hue) / 0.5);
    --leading-body: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-press: 0ms; --dur-state: 0ms; --dur-enter: 0ms; --dur-reveal: 0ms; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 var(--step-0) / var(--leading-body) var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
ul, dl, dd, figure, pre { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.ph { font-size: 1.15em; line-height: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: var(--space-8); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
}
.skip:focus { top: var(--space-4); }

.eyebrow {
  font: 500 var(--step--1) / 1.4 var(--font-mono);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 var(--step--1) / 1.2 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-state) var(--ease-out), transform var(--dur-press) var(--ease-out), box-shadow var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: none; }
.btn-small { min-height: 40px; padding-inline: var(--space-4); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-quiet.is-done { border-color: var(--accent); color: var(--accent-text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur-state) var(--ease-out);
}
.link-arrow:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand-dot { fill: var(--dot); }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-state) var(--ease-out);
}
.nav-link a:hover { color: var(--ink); }
.lang {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 var(--step--2) / 1 var(--font-mono);
}
.lang > * {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding-inline: var(--space-2);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-3);
  transition: color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.lang a:hover { color: var(--ink); }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .nav-link { display: none; }
  .nav { gap: var(--space-3); }
}

/* Hero (approved, keep as is) */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-9) var(--section-y);
}
.hero-copy { display: grid; gap: var(--space-5); }
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-2); }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.facts dt {
  font: 500 var(--step--1) / 1.4 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.facts dd { margin: var(--space-1) 0 0; font-weight: 600; font-size: var(--step-1); }

.orbit {
  --size: min(440px, 100%);
  --planet: clamp(48px, 13%, 64px);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  justify-self: center;
}
.ring {
  position: absolute;
  border: 1px dashed var(--orbit-line);
  border-radius: 50%;
  animation: spin var(--orbit) linear infinite;
}
.ring-1 { --orbit: var(--orbit-1); inset: 22%; }
.ring-2 { --orbit: var(--orbit-2); inset: 4%; animation-direction: reverse; }
.planet {
  position: absolute;
  width: var(--planet);
  height: var(--planet);
  margin: calc(var(--planet) / -2) 0 0 calc(var(--planet) / -2);
}
.planet img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-icon);
  box-shadow: var(--shadow-2);
  animation: spin var(--orbit) linear infinite reverse;
}
.ring-2 .planet img { animation-direction: normal; }
.ring-1 .p-a { left: 50%; top: 0; }
.ring-1 .p-b { left: 50%; top: 100%; }
.ring-2 .p-a { left: 50%; top: 0; }
.ring-2 .p-b { left: 93.3%; top: 75%; }
.ring-2 .p-c { left: 6.7%; top: 75%; }
.core {
  position: absolute;
  inset: 38%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--deep) 75%);
  box-shadow: 0 0 0 10px var(--accent-soft), var(--shadow-2);
  color: oklch(98% 0.02 var(--accent-hue) / 0.18);
}
.core svg { width: 60%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ring, .planet img { animation: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-7); padding-top: var(--space-8); }
  .orbit { --size: min(340px, 78vw); grid-row: 1; }
}

/* Shared section header: headline stacked over one short line. */
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.section-head h2 { font-size: var(--step-3); max-width: 22ch; }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }

/* Products: bento with one large screenshot tile */
.products {
  padding-block: var(--section-y);
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}
.tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(var(--tile-tint-l) var(--tile-tint-c) var(--tile-hue)) 0%, transparent 60%),
    var(--surface);
  transition: transform var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--spot), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-state) var(--ease-out);
  pointer-events: none;
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.tile:hover::before { opacity: 1; }
.tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-icon);
  box-shadow: 0 0 0 1px oklch(25% 0.03 var(--hue) / 0.1), var(--shadow-1);
  transition: transform var(--dur-state) var(--ease-expo);
}
.tile:hover .app-icon { transform: translateY(-2px) rotate(-4deg) scale(1.04); }
.tile-body { display: grid; align-content: start; gap: var(--space-3); }
.tile h3 { font-size: var(--step-2); letter-spacing: -0.025em; }
.tile-body > p { font-size: var(--step--1); line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  font: 500 var(--step--2) / 1.4 var(--font-mono);
  color: var(--ink-2);
}
.chips-quiet li { background: transparent; }

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 500 var(--step--2) / 1.4 var(--font-mono);
  white-space: nowrap;
}

/* Bento placement: large web tile, two phone tiles stacked, two Mac tiles, a slim upcoming strip. */
.tile-duhoctrungquoc { grid-column: span 7; grid-row: span 2; }
.tile-gut-buddy, .tile-billiard { grid-column: span 5; }
.tile-ledge, .tile-latch { grid-column: span 6; }
.tile.is-soon {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  border-style: dashed;
  background: transparent;
}
.tile.is-soon .tile-head { flex-direction: row-reverse; gap: var(--space-4); }
.tile.is-soon .app-icon { width: 52px; height: 52px; }
.tile.is-soon h3 { font-size: var(--step-1); }
.tile.is-soon:hover { transform: none; box-shadow: none; }

.tile-media {
  margin: 0 calc(var(--space-6) * -1) calc(var(--space-6) * -1);
  padding: 0 var(--space-6);
}
.tile-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: var(--shadow-2);
  transform: translateY(6px);
  transition: transform var(--dur-reveal) var(--ease-expo);
}
.tile:hover .tile-media img { transform: translateY(0); }

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-duhoctrungquoc { grid-column: 1 / -1; grid-row: auto; }
  .tile-gut-buddy, .tile-billiard, .tile-ledge, .tile-latch { grid-column: span 1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile-gut-buddy, .tile-billiard, .tile-ledge, .tile-latch { grid-column: auto; }
  .tile { padding: var(--space-5); gap: var(--space-4); }
  .tile-media { margin: 0 calc(var(--space-5) * -1) calc(var(--space-5) * -1); padding: 0 var(--space-5); }
  .tile.is-soon { grid-template-columns: 1fr; }
  .tile.is-soon .tile-head { flex-direction: row; }
}

/* Open source: repo rows paired with a real install command */
.open-source { padding-block: var(--section-y); }
.repos { display: grid; grid-template-columns: minmax(0, 1fr); }
.repo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
}
.repo:first-child { border-top: 0; padding-top: 0; }
.repo-info { display: grid; gap: var(--space-3); }
.repo-kind { font: 500 var(--step--2) / 1.4 var(--font-mono); color: var(--accent-text); }
.repo h3 { font-size: var(--step-1); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.repo h3 a { display: inline-block; padding-block: 11px; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--dur-state) var(--ease-out); }
.repo h3 a:hover { background-size: 100% 2px; }
.repo-owner { color: var(--ink-3); font-weight: 500; }
.repo-desc { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }

.terminal {
  display: grid;
  min-width: 0;
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  background: var(--code-bar);
  border-bottom: 1px solid var(--code-line);
  font: 500 var(--step--2) / 1 var(--font-mono);
  color: var(--code-ink-2);
}
.terminal-bar > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.copy-btn { font: inherit; }
.terminal .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--code-ink-2);
  cursor: pointer;
  transition: color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.terminal .copy-btn:hover { color: var(--code-ink); background: var(--code-line); }
.terminal .copy-btn:active { transform: scale(0.96); }
.terminal .copy-btn.is-done { color: var(--success); }
.terminal .copy-btn:focus-visible { outline-color: var(--code-ink); }
.terminal pre {
  min-width: 0;
  padding: var(--space-5) var(--space-4);
  overflow-x: auto;
  font: 500 var(--step--1) / 1.7 var(--font-mono);
  white-space: pre;
  scrollbar-width: thin;
}
.terminal .prompt { color: var(--success); user-select: none; }
.terminal .link-arrow {
  padding: 0 var(--space-4);
  border-top: 1px solid var(--code-line);
  color: var(--code-ink-2);
  text-decoration: none;
}
.terminal .link-arrow:hover { color: var(--code-ink); }
.terminal .link-arrow:focus-visible { outline-color: var(--code-ink); outline-offset: -3px; }

@media (max-width: 900px) {
  .repo { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media (max-width: 680px) {
  .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Stack: which tools ship which products */
.stack { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.stack-row {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.stack-row dt { font: 500 var(--step--1) / 1.4 var(--font-mono); color: var(--ink); }
.stack-row ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stack-row li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 500;
}
.stack-row li img { width: 24px; height: 24px; border-radius: var(--radius-icon); }
.stack-row li .ph { width: 24px; text-align: center; color: var(--ink-2); }
@media (max-width: 760px) {
  .stack-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact { padding-block: 0 var(--section-y); }
.contact-panel {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: clamp(32px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 100%, var(--accent-soft), transparent 60%),
    var(--paper-2);
}
.contact h2 { font-size: var(--step-4); max-width: 16ch; }
.contact-sub { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.email {
  display: inline-block;
  margin-top: var(--space-4);
  padding-block: var(--space-2);
  font-weight: 600;
  font-size: clamp(1.15rem, 0.6rem + 2.8vw, 2.75rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out);
}
.email:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-2); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5);
  font-size: var(--step--1);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.footer-links > a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; text-decoration: none; transition: color var(--dur-state) var(--ease-out); }
.footer-links > a:hover { color: var(--ink); }

/* Motion: one hero entrance, then each block rises once when it scrolls into view.
   .reveal-ready is only set when motion is allowed, so content is never hidden otherwise. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise var(--dur-enter) var(--ease-expo) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .orbit { animation: fade 900ms var(--ease-out) both; }

  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity var(--dur-reveal) var(--ease-expo) calc(var(--i, 0) * 60ms),
      transform var(--dur-reveal) var(--ease-expo) calc(var(--i, 0) * 60ms),
      border-color var(--dur-state) var(--ease-out),
      box-shadow var(--dur-state) var(--ease-out);
  }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
  .reveal-ready .tile.is-in:hover { transform: translateY(-3px); transition-delay: 0ms; }
  .reveal-ready .tile.is-soon.is-in:hover { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; transform: scale(0.96); } }

/* The large web tile keeps its action next to the copy; the screenshot fills the rest. */
.tile-duhoctrungquoc { grid-template-rows: auto auto auto 1fr; }
.tile-duhoctrungquoc .tile-media { align-self: end; margin-top: var(--space-3); }
