/* Soft pink and blossoms: Hà Linh's chosen look ("nhẹ nhàng").
   The page structure follows the inspiration shots; surfaces stay light and rounded. */
:root {
  --ink: #3f2432;        /* plum, softer than black */
  --muted: #6e5360;
  --paper: #ffffff;
  --wash: #fdf0f4;
  --blush: #f9d9e3;
  --petal: #f2b3c8;
  --pink: #e283a8;       /* decoration only */
  --rose: #b03a68;       /* text, buttons, focus */
  --rose-deep: #93294f;
  --sage: #a9c4a8;
  --butter: #f8d57e;
  --rule: #f1d3dd;

  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --script: 'Dancing Script', cursive;
  --step-body: 1rem;
  --step-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  --step-h3: 1.25rem;
  --step-h2: clamp(1.75rem, 1.25rem + 2vw, 2.625rem);
  --step-h1: clamp(2.25rem, 1.1rem + 4.2vw, 4rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow: 0 10px 28px -14px rgb(147 41 79 / 0.35);
  --shadow-lift: 0 20px 38px -16px rgb(147 41 79 / 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--pink) var(--wash); accent-color: var(--rose); }
body { margin: 0; font-family: var(--font); font-size: var(--step-body); line-height: 1.7; color: var(--ink); background: var(--paper); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h4 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--step-h1); letter-spacing: -0.02em; line-height: 1.18; }
h2 { font-size: var(--step-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--step-h3); }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.25em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
::selection { background: var(--blush); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 0.6rem 1rem; background: var(--rose); color: var(--paper); border-radius: var(--radius-s); }
.skip:focus { top: 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Blossoms ---------- */
.flower, .bouquet { overflow: visible; pointer-events: none; }
.petals { fill: var(--pink); }
.heart { fill: var(--butter); }
.stamens { fill: var(--butter); }
.leaf { fill: var(--sage); }
.tone-rose .petals { fill: var(--pink); }
.tone-petal .petals { fill: var(--petal); }
.tone-soft .petals { fill: var(--blush); stroke: var(--petal); stroke-width: 1.5; }

/* ---------- Header ---------- */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--script); font-weight: 600; font-size: 1.75rem; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 0.35rem; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1rem; border-radius: 99px; text-decoration: none; color: var(--muted); font-size: 0.9375rem; transition: background-color 0.2s, color 0.2s; }
.site-nav ul a:hover { background: var(--wash); color: var(--ink); }
.site-nav ul a[aria-current] { background: var(--blush); color: var(--ink); font-weight: 600; }
.lang { display: flex; padding: 3px; border: 1px solid var(--rule); border-radius: 99px; font-size: 0.8125rem; font-weight: 600; }
.lang > * { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.5rem; border-radius: 99px; text-decoration: none; }
.lang-on { background: var(--rose); color: var(--paper); }
.lang a:hover { background: var(--wash); }
.menu-btn { display: none; min-height: 2.75rem; padding: 0.5rem 1.2rem; background: var(--wash); border: 1px solid var(--rule); border-radius: 99px; font-weight: 600; }

/* ---------- Shared pieces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3.25rem; padding: 0.75rem 1.75rem;
  background: var(--rose); color: var(--paper); border: 0; border-radius: 99px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn:hover { background: var(--rose-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow); }

.text-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-weight: 600; font-size: 0.9375rem; color: var(--rose); text-decoration: none; }
.text-link:hover span { text-decoration: underline; }

.round { display: grid; place-items: center; width: 2.875rem; height: 2.875rem; padding: 0; border-radius: 50%; background: var(--wash); border: 1px solid var(--rule); color: var(--rose); transition: background-color 0.2s, color 0.2s; }
.round:hover { background: var(--rose); color: var(--paper); }

.pill { display: inline-block; padding: 0.25rem 1rem; border-radius: 99px; background: var(--wash); color: var(--rose-deep); font-size: 0.8125rem; font-weight: 600; }

.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 { max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 46ch; }
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: clamp(2rem, 5vw, 4rem) clamp(4.5rem, 8vw, 7rem); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.greeting { display: flex; align-items: center; gap: 0.7rem; font-family: var(--script); font-weight: 600; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.35; color: var(--rose); }
.greeting-bloom { width: 1.9rem; height: 1.9rem; flex: none; }
.hero h1 span { display: block; }
.hero h1 { font-size: clamp(1.9rem, 0.7rem + 4.2vw, 3.5rem); }
.hero h1:lang(vi) { font-size: clamp(1.75rem, 0.7rem + 3.6vw, 3.125rem); }
.lead { max-width: 48ch; font-size: var(--step-lead); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; margin-top: 0.5rem; }
.reach { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 0.9375rem; }
.reach > span { margin-right: 0.5rem; }

.hero-art { position: relative; justify-self: end; width: min(100%, 25rem); margin-right: 2rem; }
.portrait, .arch-back { border-radius: 999px 999px var(--radius-l) var(--radius-l); }
.portrait { position: relative; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 55% 50%; background: var(--wash); box-shadow: var(--shadow-lift); }
.arch-back { position: absolute; inset: -1.1rem; border: 2px solid var(--petal); background: var(--wash); }
.bouquet { position: absolute; }
.bouquet-top { width: 8.5rem; left: -4.25rem; top: 1.5rem; transform: rotate(-70deg); }
.bouquet-bottom { width: 14rem; right: -5.5rem; bottom: -4.25rem; }
.scroll-badge { position: absolute; z-index: 1; left: -4.25rem; bottom: 9%; width: 7.5rem; height: 7.5rem; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; }
.scroll-badge svg:first-child { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.scroll-badge text { font-size: 12.5px; font-weight: 600; fill: var(--rose-deep); }
.scroll-badge > span { position: absolute; inset: 1.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--rose-deep); transition: background-color 0.2s, color 0.2s; }
.scroll-badge:hover > span { background: var(--rose); color: var(--paper); }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 2; margin: 0 -2vw; padding-block: 1.25rem; }
.ticker::before { content: ''; position: absolute; inset: 1.25rem 0; background: var(--petal); transform: rotate(1deg); }
.ticker-track { position: relative; display: flex; width: 104vw; overflow: hidden; background: var(--blush); transform: rotate(-0.8deg); }
.ticker ul { display: flex; flex: none; animation: slide 48s linear infinite; }
.ticker li { display: flex; align-items: center; gap: 2.5rem; padding: 1.1rem 0 1.1rem 2.5rem; font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.375rem); font-weight: 600; white-space: nowrap; }
.ticker-bloom { width: 1.6rem; height: 1.6rem; }
.ticker-bloom .petals { fill: var(--paper); }
.ticker:hover ul { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.motion-toggle { position: absolute; z-index: 1; right: calc(2vw + 1rem); bottom: -1rem; display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; background: var(--paper); color: var(--rose); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.js .motion-toggle { display: grid; }
.motion-toggle .icon-play, .motion-paused .motion-toggle .icon-pause { display: none; }
.motion-paused .motion-toggle .icon-play { display: block; }
.motion-paused .ticker ul, .motion-paused .scroll-badge svg:first-child { animation-play-state: paused; }

/* ---------- About ---------- */
.about { padding-top: var(--section); text-align: center; }
.about-bloom { width: 3rem; height: 3rem; margin: 0 auto 1.25rem; }
.about > h2 { max-width: 25ch; margin-inline: auto; }
.tabs { margin-top: 2.5rem; }
.tab-list { display: none; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.js .tab-list { display: flex; }
.tab-list button { min-height: 2.75rem; padding: 0.5rem 1.4rem; background: none; border: 0; border-radius: 99px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.tab-list button:hover { background: var(--wash); color: var(--ink); }
.tab-list button[aria-selected='true'] { background: var(--blush); color: var(--ink); font-weight: 600; }
.tab-panel { max-width: 52rem; margin-inline: auto; text-align: left; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.panel-title { margin: 2rem 0 1rem; }

.timeline li { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when { font-size: 0.875rem; font-weight: 600; color: var(--rose); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.timeline .where { font-weight: 500; font-size: 0.9375rem; margin-top: 0.2rem; }
.timeline .where + p { margin-top: 0.4rem; color: var(--muted); max-width: 60ch; }

.sub { margin: 3rem 0 1.25rem; }
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem 2rem; }
.certs li { display: flex; flex-direction: column; }
.certs strong { font-weight: 600; font-size: 0.9375rem; }
.certs span { color: var(--muted); font-size: 0.875rem; }

.skills > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.skills > div:last-child { border-bottom: 1px solid var(--rule); }
.skills dt { font-weight: 600; }
.skills ul { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skills li { padding: 0.3rem 1rem; border-radius: 99px; background: var(--wash); font-size: 0.875rem; }
.goal { margin-top: 2.5rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { padding-top: var(--section); }
.service-list li { display: grid; grid-template-columns: auto 1fr 14rem; gap: 1.5rem 2rem; align-items: center; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.service-list li:first-child { border-top: 1px solid var(--rule); }
.tile { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; color: var(--rose-deep); }
.tile > * { grid-area: 1 / 1; }
.tile-bloom { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.tile-bloom .petals { fill: var(--blush); }
.tile-bloom .heart, .tile-bloom .stamens { display: none; }
.tile .icon { position: relative; width: 1.6rem; height: 1.6rem; }
.service-list li:hover .tile-bloom { transform: rotate(36deg); }
.service-list p { color: var(--muted); max-width: 58ch; margin-top: 0.25rem; }
.service-list .done-at { margin: 0; color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-align: right; }
.done-at span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }

/* ---------- Project cards ---------- */
.projects { padding-block: var(--section); }
.project-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.project-cards a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; height: 100%; border-radius: var(--radius-l); text-decoration: none; }
.project-cards img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: var(--radius-l); margin-bottom: 0.75rem; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.project-cards a:hover img, .project-cards a:focus-visible img { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.project-cards img[src$='kv-santana.jpg'] { object-position: 50% 0; }
.project-cards p { color: var(--muted); }
.project-cards .pill { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: clip; background: var(--blush); }
.bouquet-footer { width: 17rem; right: -4rem; bottom: -3.5rem; opacity: 0.9; }
.bouquet-footer .tone-soft .petals { fill: var(--paper); }
.cta { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta h2 { max-width: 20ch; }
.cta p { margin-top: 1rem; color: var(--muted); }
.cta-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta .cta-links { margin-top: 1.75rem; color: var(--ink); }
.cta-links a { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3rem; padding-inline: 1.4rem; border-radius: 99px; background: var(--paper); font-weight: 600; text-decoration: none; transition: box-shadow 0.25s var(--ease); }
.cta-links .icon { color: var(--rose); }
.cta-links a:hover { box-shadow: var(--shadow); }
.mail-card { position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; max-width: 100%; padding: 2.75rem 2.25rem 1.75rem; border-radius: var(--radius-l); background: var(--paper); box-shadow: var(--shadow); text-align: center; text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.mail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mail-bloom { position: absolute; width: 4rem; height: 4rem; top: -2rem; left: calc(50% - 2rem); transition: transform 0.5s var(--ease); }
.mail-card:hover .mail-bloom { transform: rotate(36deg); }
.mail-tag { font-family: var(--script); font-weight: 600; font-size: 1.75rem; line-height: 1.3; color: var(--rose); }
.mail-address { font-weight: 600; font-size: clamp(0.9375rem, 0.75rem + 0.7vw, 1.1875rem); overflow-wrap: anywhere; }
.copyright { position: relative; padding-block: 1.5rem; border-top: 1px solid var(--petal); color: var(--muted); font-size: 0.875rem; }

/* ---------- Project page ---------- */
.case-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem 4rem; align-items: center; padding-block: clamp(2rem, 6vw, 5rem) clamp(3.5rem, 7vw, 5.5rem); }
.case-head h1 { margin-bottom: 1.5rem; max-width: 17ch; font-size: clamp(2.25rem, 1.1rem + 3.4vw, 3.5rem); }
.facts-card { position: relative; }
.bouquet-facts { width: 8rem; right: -3.5rem; top: -5.75rem; z-index: 1; }
.facts { padding: 1.25rem 1.75rem 0.75rem; border-radius: var(--radius-l); background: var(--wash); }
.facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { font-weight: 600; font-size: 0.9375rem; text-wrap: balance; }

.results { background: var(--wash); padding-block: clamp(3.5rem, 7vw, 6rem); }
.results-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2.5rem 4rem; align-items: start; }
.results h2 { margin-bottom: 1.5rem; }
.results-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; text-align: left; background: var(--paper); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.results-table th, .results-table td { padding: 1.1rem 1rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--rule); }
.results-table tbody tr:last-child > * { border-bottom: 0; }
.results-table thead th, .results-table thead td { background: var(--blush); border-bottom: 0; font-size: 1.0625rem; }
.results-table tbody th { width: 34%; padding-left: 1.5rem; padding-top: 1.55rem; font-weight: 500; font-size: 0.9375rem; color: var(--muted); }
.big { display: block; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.delta { display: block; color: var(--rose); font-weight: 600; font-size: 0.875rem; }
.note { color: var(--muted); font-size: 0.875rem; max-width: 52ch; }
.note + .note { margin-top: 0.75rem; }

.spotlight { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 3rem clamp(3rem, 8vw, 7rem); align-items: center; padding-block: var(--section) 0; }
.spot-art { position: relative; isolation: isolate; }
.spot-art::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: var(--radius-l); background: var(--blush); transform: rotate(-5deg); }
.spot-art img { width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.spot-bloom { position: absolute; width: 5.5rem; height: 5.5rem; right: -1.75rem; bottom: -1.75rem; }
.spotlight > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.spotlight p { color: var(--muted); max-width: 54ch; }

.table-scroll { overflow-x: auto; max-width: 100%; align-self: stretch; }
.stats { width: 100%; max-width: 34rem; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.stats th, .stats td { padding: 0.65rem 0.6rem; text-align: right; border-bottom: 1px solid var(--rule); }
.stats thead th { font-weight: 500; font-size: 0.75rem; color: var(--muted); border-bottom: 1.5px solid var(--petal); }
.stats tbody th { text-align: left; padding-left: 0; font-weight: 600; }
.stats tbody td:first-of-type { font-weight: 600; color: var(--rose); }

.gallery { padding-top: var(--section); scroll-margin-top: 1rem; }
.gallery .section-head { grid-template-columns: 1fr auto; }
.gallery .section-head p { margin-top: 0.75rem; }
.filters { display: none; flex-wrap: wrap; gap: 0.6rem; }
.js .filters { display: flex; }
.filters button { min-height: 2.75rem; padding: 0.5rem 1.2rem; background: var(--paper); border: 1px solid var(--petal); border-radius: 99px; font-size: 0.875rem; font-weight: 600; transition: background-color 0.2s; }
.filters button:hover { background: var(--wash); }
.filters button[aria-pressed='true'] { background: var(--rose); border-color: var(--rose); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 2.5rem 1.5rem; }
.work-grid li[hidden] { display: none; }
.work-card { display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem; width: 100%; height: 100%; padding: 0; background: none; border: 0; border-radius: var(--radius); text-align: left; }
.thumb { position: relative; display: block; margin-bottom: 0.85rem; overflow: hidden; border-radius: var(--radius); background: var(--wash); box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.thumb img[src$='hook-tall.jpg'] { object-position: 50% 12%; }
.work-card:hover .thumb, .work-card:focus-visible .thumb { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.badge { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.1rem 0.7rem; background: var(--paper); color: var(--rose-deep); border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.work-title { font-weight: 600; line-height: 1.45; }
.work-product { color: var(--muted); font-size: 0.875rem; }
.work-views { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: auto; padding-top: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.work-views b { color: var(--rose); font-variant-numeric: tabular-nums; }

.design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; align-items: start; padding-block: var(--section); scroll-margin-top: 1rem; }
.design-copy p { margin-top: 1rem; color: var(--muted); }
.kv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.kv-list li:nth-child(2) { margin-top: 3.5rem; }
.kv-list .thumb img { aspect-ratio: 4 / 5; }

/* ---------- Post dialog ---------- */
.post { width: min(100% - 2rem, 60rem); max-height: min(100% - 2rem, 46rem); padding: 0; border: 0; border-radius: var(--radius-l); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); overscroll-behavior: contain; scrollbar-width: thin; }
.post::backdrop { background: rgb(63 36 50 / 0.55); }
.post-inner { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem; }
.post form { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; }
.post-close { margin: 1rem 1rem 0 0; }
.post figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.post figcaption { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); }
.post h2 { font-size: 1.5rem; margin-block: 0.35rem; padding-right: 2rem; }
.post h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }
.meta, .product { color: var(--muted); font-size: 0.875rem; }
.product { margin-bottom: 1.25rem; }
.caption { white-space: pre-line; overflow-wrap: anywhere; font-size: 0.9375rem; }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 66rem) {
  .js .menu-btn { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .js .site-nav { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; padding: 1.25rem; background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--shadow-lift), 0 0 0 1px var(--rule); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }

  .hero, .case-head, .section-head, .cta, .design, .spotlight, .results-inner { grid-template-columns: minmax(0, 1fr); }
  .gallery .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 4.5rem; }
  .hero-art { justify-self: center; width: min(100% - 5rem, 23rem); margin: 0; }
  .bouquet-top { width: 7rem; left: -3rem; }
  .bouquet-bottom { width: 11rem; right: -3.5rem; }
  .scroll-badge { left: -2.75rem; }
  .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail-card { justify-self: start; margin-top: 1rem; }
  .bouquet-footer { width: 11rem; right: -3rem; bottom: -2.5rem; opacity: 0.7; }
  .bouquet-facts { width: 6rem; right: -1.25rem; top: -4.25rem; }
  .spot-art { max-width: 24rem; width: calc(100% - 1.5rem); justify-self: center; }
}

@media (max-width: 40rem) {
  .timeline li, .skills > div { grid-template-columns: minmax(0, 1fr); }
  .tab-list { gap: 0.25rem; }
  .tab-list button { padding-inline: 0.9rem; font-size: 0.9375rem; }
  .copyright { padding-right: 5rem; }
  .service-list li { grid-template-columns: auto 1fr; align-items: start; gap: 1rem 1.25rem; }
  .service-list .done-at { grid-column: 2; text-align: left; }
  .project-cards { grid-template-columns: minmax(0, 1fr); }
  .results-table th, .results-table td { padding: 0.9rem 0.45rem; }
  .results-table thead th { font-size: 0.875rem; }
  .results-table tbody th { width: 34%; padding-left: 0.85rem; font-size: 0.75rem; overflow-wrap: anywhere; }
  .big { font-size: 1.3125rem; }
  .delta { font-size: 0.75rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .mail-card { justify-self: stretch; padding-inline: 1.25rem; }
  .post-inner { grid-template-columns: minmax(0, 1fr); padding: 4.5rem 1.25rem 1.5rem; gap: 2rem; }
  .post figure { max-width: 15rem; }
  .kv-list { gap: 1rem; }
  .stats th, .stats td { padding-inline: 0.35rem; font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker ul { flex-wrap: wrap; justify-content: center; width: 100%; }
  .ticker ul[aria-hidden] { display: none; }
  .ticker li:nth-child(n + 6) { display: none; }
  .js .motion-toggle { display: none; }
}
