/* fonts-start */
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-800-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts-end */
/* Hà Tùng — personal site
   Layout: one 1200px column, generous white space, big type at the top of each page,
   neutral stone palette with one bronze accent used sparingly. */
:root {
  /* Fixed dark theme for every visitor (chosen by Hà Tùng, 2026-12-02); bronze accent kept */
  --bg: #0c111c;          /* nền chính */
  --surface: #1a2131;     /* nền phụ */
  --fg: #f5f3ee;          /* heading */
  --text: #d3d8e0;        /* nội dung */
  --muted: #9aa3b2;       /* chữ phụ */
  --line: #273045;
  --accent: #c5a572;      /* button / điểm nhấn */
  --accent-fg: #111827;   /* chữ trên nút vàng đồng */
  --accent-ink: #d4b886;  /* điểm nhấn dạng chữ nhỏ */
  --invert-bg: #111827;   /* footer + khối liên hệ */
  --invert-fg: #f5f3ee;
  --invert-muted: #a3abb9;
  --invert-line: #2a3346;
  color-scheme: dark;

  --font: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--invert-bg); } /* fills tall screens below the footer in the footer colour */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--fg); margin: 0; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: calc(var(--maxw) + 40px); margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }

/* Header */
/* The header itself reaches up behind the iPhone notch / Dynamic Island and keeps its content below it */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; color: var(--fg); }
.brand svg .mark-dot { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
/* The gold underline marks the page you are on; Contact is a normal link */
.nav a { border-bottom: 1.5px solid transparent; padding-bottom: 2px; }
.nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--accent); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--fg);
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  padding: 16px 28px; border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 600;
  transition: transform .2s ease, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-invert { background: var(--invert-fg); color: var(--invert-bg); border-color: var(--invert-fg); }
.text-link { text-decoration: none; font-weight: 600; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }

/* Page hero */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(56px, 10vw, 132px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.hero .tagline { margin-top: 28px; font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 30ch; }
.hero .tagline strong { color: var(--fg); font-weight: 600; }
.hero .actions { margin-top: 40px; }
.hero-art { aspect-ratio: 1 / 1; max-width: 100%; }
.hero-simple h1 { font-size: clamp(48px, 8vw, 104px); max-width: 12ch; }
.hero-simple .tagline { max-width: 40ch; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--muted); max-width: 42ch; margin-top: 14px; }

/* Art (inline SVG illustrations) */
.art .bg { fill: var(--surface); }
.art .fg { fill: var(--fg); }
.art .ac { fill: var(--accent); }
.art .pg { fill: var(--bg); }
.art .ln { fill: none; stroke: var(--line); stroke-width: 1; }
.art .st { fill: none; stroke: var(--fg); stroke-width: 2; }
.art .sa { fill: none; stroke: var(--accent); stroke-width: 2; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.project { display: flex; flex-direction: column; gap: 18px; text-decoration: none; min-width: 0; }
.project .art { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius); overflow: hidden; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project:hover .art { transform: translateY(-4px); }
.project h3 { font-size: 22px; letter-spacing: -0.015em; }
.project p { color: var(--muted); font-size: 16px; }
.project .meta { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* About + numbers */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about > * { min-width: 0; }
.about h2 { font-size: clamp(36px, 5vw, 60px); }
.about .lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 44ch; }
.about .actions { margin-top: 32px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 32px 0 28px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 28px; }
.stat .num { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num sup { font-size: .45em; color: var(--accent); vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.stat .lbl { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { display: flex; flex-direction: column; gap: 28px; padding: 36px 32px; background: var(--surface); border-radius: var(--radius); min-width: 0; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 56px; line-height: .6; color: var(--accent); margin-bottom: 18px; font-weight: 700; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.quote .name { font-weight: 600; font-size: 15px; }
.quote .role { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; } }

/* Contact band */
.contact { background: var(--invert-bg); color: var(--invert-fg); }
.contact .section-inner { padding-block: clamp(80px, 11vw, 140px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 96px); }
.contact .section-inner > * { min-width: 0; }
.contact h2 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.04em; }
.contact .lead { margin-top: 24px; color: var(--invert-muted); font-size: 19px; max-width: 36ch; }
.contact-lines { margin-top: 48px; display: grid; gap: 4px; }
.contact-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--invert-line); }
.contact-line:last-child { border-bottom: 1px solid var(--invert-line); }
.contact-line .k { color: var(--invert-muted); font-size: 14px; width: 84px; flex: none; }
.contact-line .v { font-size: 18px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.copy-btn { margin-left: auto; background: none; border: 1px solid var(--invert-line); color: var(--invert-fg); border-radius: var(--radius); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.copy-btn:hover { border-color: var(--invert-fg); }
.form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--invert-muted); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--invert-fg); border: 0; border-bottom: 1px solid var(--invert-line);
  padding: 10px 0 12px; font: inherit; font-size: 18px; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--invert-fg); }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--invert-muted); min-height: 1.4em; }
@media (max-width: 860px) { .contact .section-inner { grid-template-columns: 1fr; } }

/* Projects page: case rows */
.cases { display: grid; gap: clamp(72px, 10vw, 128px); }
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.case > * { min-width: 0; }
.case:nth-child(even) .art { order: 2; }
.case .art { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius); overflow: hidden; }
.case h2 { font-size: clamp(32px, 4vw, 48px); }
.case .desc { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40ch; }
.case dl { margin: 32px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.case dt { color: var(--muted); font-size: 15px; }
.case dd { margin: 0; font-size: 15px; font-weight: 500; }
.case .result { margin-top: 28px; display: flex; align-items: baseline; gap: 14px; }
.case .result .num { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.case .result .num em { font-style: normal; color: var(--accent); }
.case .result span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .art { order: 0; }
}

/* CTA band (end of subpages) */
.cta-band { background: var(--invert-bg); color: var(--invert-fg); }
.cta-band .wrap { padding-block: clamp(72px, 10vw, 120px); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.04em; max-width: 14ch; }
.cta-band p { margin-top: 18px; color: var(--invert-muted); font-size: 18px; }

/* Music page */
.release { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.release > * { min-width: 0; }
.cover { aspect-ratio: 1 / 1; width: 100%; border-radius: var(--radius); overflow: hidden; }
.release h2 { font-size: clamp(36px, 5vw, 64px); }
.release .desc { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 40ch; }
.release .facts { margin-top: 20px; color: var(--muted); font-size: 15px; }
.player {
  margin-top: 36px; display: flex; align-items: center; gap: 20px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
}
.play {
  width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fg); color: var(--bg); display: grid; place-items: center; transition: transform .2s;
}
.play:hover { transform: scale(1.05); }
.play svg { width: 18px; height: 18px; }
.player .now { min-width: 0; flex: 1; }
.player .now-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { position: relative; height: 24px; margin-bottom: -11px; cursor: pointer; touch-action: none; border-radius: 4px; }
.progress::before, .progress span { content: ""; position: absolute; left: 0; top: 10px; height: 3px; border-radius: 2px; }
.progress::before { right: 0; background: var(--line); }
.progress span { display: block; width: 0; background: var(--accent); }
.progress span::after { content: ""; position: absolute; right: -6px; top: -4.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .2s; }
.progress:hover span::after, .progress:focus-visible span::after { opacity: 1; }
.progress:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player .time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.player-note { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.4em; }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 40px 64px 1fr auto; gap: 20px; align-items: center;
  padding: 16px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s;
}
.track:hover, .track.is-active { background: var(--surface); }
.track .idx { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
.track.is-active .idx { color: var(--accent); font-weight: 700; }
.track .thumb { width: 64px; height: 64px; border-radius: 2px; overflow: hidden; }
.track .t { min-width: 0; }
.track .t strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.track .t span { color: var(--muted); font-size: 15px; }
.track .dur { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.track button { all: unset; position: absolute; inset: 0; }
.track { position: relative; }
.track:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 600px) {
  .track { grid-template-columns: 28px 52px 1fr auto; gap: 14px; }
  .track .thumb { width: 52px; height: 52px; }
}

.platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.platforms a {
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 500;
  transition: border-color .2s;
}
.platforms a:hover { border-color: var(--fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* Entrance motion: content is visible at rest, motion is a small lift only */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  @keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Fixes */
.quote { margin: 0; }
.hero-simple h1 { line-height: 1.02; }
@media (max-width: 860px) {
  .release { grid-template-columns: 1fr; }
  .release .cover { max-width: 420px; }
}

/* Real project images */
img.art { object-fit: cover; height: auto; background: var(--surface); }
.case { grid-template-areas: "cover text" "gallery gallery"; row-gap: 28px; }
.case > img.art { grid-area: cover; }
.case > div:not(.gallery) { grid-area: text; }
.case:nth-child(even) { grid-template-columns: 1fr 1.25fr; grid-template-areas: "text cover" "gallery gallery"; }
.case:nth-child(even) .art { order: 0; }
.gallery { grid-area: gallery; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; min-width: 0; }
.gallery img { height: clamp(180px, 24vw, 300px); width: auto; flex: none; border-radius: var(--radius); scroll-snap-align: start; background: var(--surface); }
@media (max-width: 860px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; grid-template-areas: "cover" "text" "gallery"; }
}

/* ---- UI/UX Pro Max pass: proof-first hero, a11y, touch targets, lightbox ---- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
a, button, .track { cursor: pointer; }

.clients { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; max-width: 40ch; }
.clients strong { color: var(--fg); font-weight: 600; }

.hero-work { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 3 / 2; max-width: 100%; }
.hero-work a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); min-height: 0; }
.hero-work .hw-main { grid-row: 1 / 3; }
.hero-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-work a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .hero-work { aspect-ratio: 4 / 3; } }

.project .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.project .more { color: var(--fg); font-weight: 600; white-space: nowrap; }
.project .more .arrow { display: inline-block; transition: transform .2s; }
.project:hover .more .arrow { transform: translateX(4px); }
.project h3 { transition: color .2s; }
.project:hover h3 { color: var(--accent); }

/* Touch targets >= 44px */
.copy-btn, .menu-btn { min-height: 44px; padding-inline: 14px; }
.platforms a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a { padding-block: 10px; }

/* Inline form validation */
.field-error { margin: 0; min-height: 0; font-size: 14px; color: #f0a58f; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #f0a58f; }

/* Gallery zoom + lightbox */
.zoom { all: unset; flex: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zoom img { height: clamp(180px, 24vw, 300px); width: auto; display: block; background: var(--surface); transition: transform .4s ease; }
.zoom:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; color: #f1f0eb; }
.lightbox::backdrop { background: rgba(14, 14, 13, .88); }
.lightbox img { max-width: 100%; max-height: calc(92vh - 72px); width: auto; margin: 0 auto; border-radius: var(--radius); }
.lb-bar { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 14px; }
.lb-bar button { min-width: 44px; min-height: 44px; border: 1px solid rgba(241,240,235,.35); background: transparent; color: #f1f0eb; border-radius: var(--radius); font: inherit; font-size: 15px; padding: 0 14px; }
.lb-bar button:hover { border-color: #f1f0eb; }
.lb-bar span { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.clients strong { white-space: nowrap; }

/* ---- Home: photo slideshow ---- */
.slideshow { min-width: 0; display: grid; gap: 14px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); aspect-ratio: 4 / 5; max-height: 640px; background: var(--surface); }
.slides::-webkit-scrollbar { display: none; }
.slide { margin: 0; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slide-ctrl > button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 50%; font: inherit; transition: border-color .2s; }
.slide-ctrl > button:hover { border-color: var(--fg); }
.dots { display: flex; gap: 4px; }
.dot { width: 28px; height: 44px; border: 0; background: none; padding: 0; position: relative; }
.dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 21px; height: 2px; background: var(--line); transition: background .3s; }
.dot[aria-current="true"]::after { background: var(--accent); }
@media (max-width: 860px) { .slides { aspect-ratio: 4 / 4.4; } }

/* ---- About page ---- */
.portrait { aspect-ratio: 4 / 4.2; border-radius: var(--radius); overflow: hidden; background: var(--surface); max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.xps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.xp { padding: 32px 28px 8px 0; min-width: 0; }
.xp + .xp { padding-left: 28px; border-left: 1px solid var(--line); }
.xp h3 { font-size: clamp(24px, 2.6vw, 32px); }
.xp p { margin-top: 12px; color: var(--muted); }
@media (max-width: 760px) { .xps { grid-template-columns: 1fr; } .xp + .xp { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .xp { padding-bottom: 28px; } }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-item > div { min-width: 0; }
.tl-year { color: var(--accent); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.tl-item h3 { font-size: 22px; letter-spacing: -0.015em; }
.tl-org { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tl-item ul { margin: 14px 0 0; padding-left: 18px; color: var(--fg); font-size: 16px; display: grid; gap: 6px; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 8px; } }
.edu { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.edu h3 { font-size: 22px; }
.edu p { margin-top: 6px; color: var(--muted); }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.skills li { border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-weight: 500; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; } }
.hero h1 { overflow-wrap: anywhere; }
.slide img { display: block; max-width: none; width: 100%; height: 100%; }
.photo-row img { height: auto; }
.portrait img { height: 100%; }

/* ---- Palette pass ---- */
.btn { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn:hover { background: #b8955e; border-color: #b8955e; }
.btn-invert { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.contact h2, .cta-band h2 { color: var(--invert-fg); }
.site-footer { background: var(--invert-bg); border-top: 0; }
.site-footer .wrap { color: var(--invert-muted); }
.site-footer a:hover { color: var(--invert-fg); }
.tl-year, .track.is-active .idx { color: var(--accent-ink); }
.text-link { border-bottom-color: var(--accent); }
.quote .avatar { background: var(--fg); color: var(--bg); }
.play { background: var(--accent); color: var(--accent-fg); }

/* Slideshow v2 (transform based) */
.slides-view { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; max-height: 640px; background: var(--surface); touch-action: pan-y; }
.slides-view .slides { display: flex; height: 100%; overflow: visible; aspect-ratio: auto; max-height: none; border-radius: 0; transition: transform .6s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slides-view .slide { flex: 0 0 100%; height: 100%; }
@media (max-width: 860px) { .slides-view { aspect-ratio: 4 / 4.4; } }
@media (prefers-reduced-motion: reduce) { .slides-view .slides { transition: none !important; } }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-item { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; min-width: 0; }
.ai-item h3 { font-size: 20px; }
.ai-item p { margin-top: 10px; font-size: 15px; color: var(--text); }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }
.hero .tagline strong { color: var(--fg); }

/* Language switcher (top right) */
.site-header .wrap { gap: 20px; }
.nav { margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.lang a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="page"] { background: var(--surface); color: var(--fg); }
.lang .flag { width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(17,24,39,.12); flex: none; }
@media (max-width: 760px) {
  .menu-btn { margin-left: auto; order: 2; }
  .lang { order: 3; }
  .lang a { padding: 0 8px; }
  .lang a span { display: none; }
  .lang a { min-width: 44px; justify-content: center; min-height: 44px; }
  .brand { min-height: 44px; }
  .dots { gap: 0; }
  .dot { width: 44px; }
  .dot::after { left: 12px; right: 12px; }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* Header: logo flush top-left, menu centered, language switcher flush top-right */
@media (min-width: 761px) {
  .site-header .wrap {
    max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
  .brand { justify-self: start; }
  .nav { margin: 0; justify-self: center; }
  .lang { justify-self: end; }
}
@media (min-width: 761px) and (max-width: 1080px) { .nav { gap: 22px; } .brand span { display: none; } }

/* Music covers: square at rest, turn into a spinning record while playing */
.disc { position: relative; overflow: hidden; border-radius: var(--radius); background: #111827; transition: border-radius .6s cubic-bezier(.4,0,.2,1), box-shadow .6s; }
.disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .6s; pointer-events: none;
  background: repeating-radial-gradient(circle at center, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px), radial-gradient(circle at center, transparent 0 30%, rgba(0,0,0,.18) 31% 100%); }
.disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 3px rgba(17,24,39,.55); opacity: 0; transition: opacity .6s; }
.music-player.is-playing .cover.disc, .tracks.is-playing .track.is-active .disc { border-radius: 50%; box-shadow: 0 18px 40px -18px rgba(17,24,39,.55); }
@media (prefers-reduced-motion: no-preference) {
  .music-player.is-playing .cover.disc, .tracks.is-playing .track.is-active .disc { animation: disc-spin 7s linear infinite !important; }
}
.music-player.is-playing .cover.disc::before, .music-player.is-playing .cover.disc::after,
.tracks.is-playing .track.is-active .disc::before, .tracks.is-playing .track.is-active .disc::after { opacity: 1; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.track .thumb.disc { width: 64px; height: 64px; border-radius: 4px; }
@media (max-width: 600px) { .track .thumb.disc { width: 52px; height: 52px; } }
.release .cover.disc { max-width: 520px; }
.track .disc::before { background: radial-gradient(circle at center, transparent 0 40%, rgba(0,0,0,.12) 41% 100%); }
.disc::before { mix-blend-mode: multiply; }

/* Videos (TikTok player loads on click) */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.vcard { margin: 0; }
.vplay, .vcard iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: var(--radius); background: #111827; overflow: hidden; }
.vplay { position: relative; padding: 0; cursor: pointer; }
.vplay img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.vplay svg { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; padding: 18px 16px 18px 20px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); color: var(--accent-fg); box-shadow: 0 10px 30px -10px rgba(17,24,39,.6); transition: transform .3s; }
.vplay:hover img { transform: scale(1.03); }
.vplay:hover svg { transform: translate(-50%, -50%) scale(1.08); }
.vplay:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vcard figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.vcard figcaption a { font-weight: 600; color: var(--fg); line-height: 1.35; text-decoration: none; padding-block: 8px; margin-block: -8px; }
.vcard figcaption a:hover { color: var(--accent); }
.vcard figcaption span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .vgrid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .vcard figcaption { flex-direction: column; gap: 4px; margin-top: 10px; } .vcard figcaption a { font-size: 15px; } .vplay svg { width: 52px; height: 52px; padding: 14px 12px 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .vplay img, .vplay svg { transition: none; } }

/* Video zoom player */
.vmodal-lock, .vmodal-lock body { overflow: hidden; }
.vmodal { position: fixed; inset: 0; z-index: 1000; }
.vmodal-bg { position: absolute; inset: 0; background: rgba(17, 24, 39, .92); opacity: 0; transition: opacity .5s ease; }
.vmodal.is-open .vmodal-bg { opacity: 1; }
.vstage { position: fixed; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  transform-origin: 0 0; will-change: transform;
  transition: transform .55s cubic-bezier(.22,1,.36,1), border-radius .55s cubic-bezier(.22,1,.36,1); }
.vstage img, .vstage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vstage img { object-fit: cover; }
.vstage iframe { opacity: 0; transition: opacity .4s ease .2s; }
.vstage.is-loaded iframe { opacity: 1; }
.vclose { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.vmodal.is-open .vclose { opacity: 1; transform: none; }
.vclose:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vmodal-bg, .vstage, .vstage iframe, .vclose { transition: none; } }
.vstage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; opacity: 0; transition: opacity .3s ease; }
.vstage.is-loaded video { opacity: 1; }
.vfallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; padding: 24px; text-align: center; background: rgba(17,24,39,.82); color: #fff; }

/* Slideshow pause / play (WCAG 2.2.2): small round button on the photo's corner */
.slideshow { position: relative; }
.s-toggle { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.s-toggle::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(245,243,238,.35); background: rgba(12,17,28,.55); transition: border-color .2s, background .2s; }
.s-toggle:hover::before { border-color: var(--fg); background: rgba(12,17,28,.75); }
.s-toggle svg { position: relative; width: 14px; height: 14px; }
.s-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 50%; }
.slides-view img { -webkit-user-drag: none; user-select: none; }

/* Lightbox open: page behind does not scroll; swipe left/right on the photo */
.lb-lock, .lb-lock body { overflow: hidden; }
.lightbox img { touch-action: pan-y pinch-zoom; }

/* Contact consent + privacy notice */
.field-check { gap: 6px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--invert-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] { outline: 2px solid #f0a58f; outline-offset: 2px; }
.check a { color: var(--invert-fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.policy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); }
.policy-item h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.policy-item p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.policy-item a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.policy-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hp { display: none !important; }
