/* =========================================================
   PORTFOLIO · Lê Tuấn Anh
   Sáng gắt: nền kem lạnh, mực đen đậm, accent đỏ signal.
   Chuyển động: Lenis + GSAP ScrollTrigger (script.js).
   ========================================================= */

:root {
  --paper: #f1efe9;          /* nền kem sáng */
  --paper-soft: #e9e6dd;
  --ink: #0e0e0c;            /* mực đen gắt */
  --ink-soft: #6b6a63;
  --accent: #e8380c;         /* đỏ signal */
  --line: rgba(14, 14, 12, 0.16);
  --line-strong: rgba(14, 14, 12, 0.4);

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
sup { font-size: 0.45em; }

::selection { background: var(--ink); color: var(--paper); }

/* Ẩn phần tử chờ animation: chỉ khi JS chạy được */
html.js [data-reveal] { opacity: 0; transform: translateY(44px); }
html.js .hline__inner { transform: translateY(112%); }
html.js [data-split] .w-in { transform: translateY(112%); display: inline-block; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-split] .w-in { display: inline-block; }

/* ---------- Underline link ---------- */
.u-line { position: relative; }
.u-line::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.u-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.9em;
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  line-height: 1; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill::before { background: var(--accent); }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -2px); }

/* ---------- Grain (chất phim phủ nền kem) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (hover: none) { .grain { opacity: 0.22; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end;
}
.loader__row {
  width: 100%; padding: var(--pad);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.loader__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem); opacity: 0.7;
}
.loader__count {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 14vw, 11rem); line-height: 0.85;
  letter-spacing: -0.03em;
}
html:not(.js) .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 250;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background-color 0.3s;
}
.cursor__label {
  font-family: var(--font-display); font-weight: 500; font-size: 0.85rem;
  color: var(--paper); opacity: 0; transition: opacity 0.25s;
  white-space: nowrap;
}
.cursor.is-view { width: 84px; height: 84px; background: var(--ink); }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.4vw, 28px) var(--pad);
  mix-blend-mode: difference; color: #f1efe9;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; letter-spacing: 0.01em;
}
.nav__status {
  display: flex; align-items: center; gap: 0.55em;
  font-size: 0.85rem; opacity: 0.85;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.nav__burger {
  display: flex; flex-direction: column; gap: 7px;
  background: none; border: 0; cursor: pointer; padding: 6px 2px;
}
.nav__burger span {
  width: 34px; height: 2px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease);
}
.menu__link {
  display: flex; align-items: baseline; gap: 0.35em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 1.06; letter-spacing: -0.02em;
  width: fit-content;
  transition: color 0.3s;
}
.menu__link sup { color: var(--accent); font-size: 0.28em; font-family: var(--font-body); font-weight: 500; }
.menu__link:hover { color: var(--accent); }
.menu__link span { transform: translateY(60px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s; }
.menu.is-open .menu__link span { transform: translateY(0); opacity: 1; }
.menu.is-open .menu__link:nth-child(2) span { transition-delay: 0.06s; }
.menu.is-open .menu__link:nth-child(3) span { transition-delay: 0.12s; }
.menu.is-open .menu__link:nth-child(4) span { transition-delay: 0.18s; }
.menu__meta {
  position: absolute; bottom: var(--pad); left: var(--pad);
  display: flex; flex-wrap: wrap; gap: 1.6em;
  font-size: 0.9rem; opacity: 0.75;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--pad) + 60px) var(--pad) var(--pad);
  position: relative;
}
/* topline: eyebrow trái + toạ độ phải (đọc như spec bản vẽ) */
.hero__topline {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero__eyebrow {
  font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__eyebrow span { color: var(--accent); }
.hero__coord {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); text-align: right; line-height: 1.55; white-space: nowrap;
}
.hero__coord span { display: block; color: var(--ink); font-weight: 600; }

.hero__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 7.8vw, 8.6rem);
  line-height: 0.98; letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hline { display: block; overflow: hidden; }
/* dòng serif: mask riêng cho chữ để gạch tay thò xuống dưới không bị cắt */
.hline--serif { position: relative; overflow: visible; }
.hline__mask { display: block; overflow: hidden; }

/* Kinetic: Archivo là variable font (wght 100–900 · wdth 62–125).
   Vào trang: chữ nở từ condensed → full. Hover: từng dòng phình ra. */
.hline__inner {
  display: block; transform-origin: left center; cursor: default;
  font-variation-settings: "wght" 600, "wdth" 100;
  transition: font-variation-settings 0.6s var(--ease), color 0.4s var(--ease);
  will-change: font-variation-settings;
}
html.js .hline__inner { font-variation-settings: "wght" 220, "wdth" 78; }
.hero__title.is-live .hline__inner { font-variation-settings: "wght" 600, "wdth" 100; }

.hline__inner--serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none; color: var(--accent);
  letter-spacing: -0.01em;
  font-variation-settings: "wght" 400;
}
html.js .hline__inner--serif { font-variation-settings: "wght" 320; }
.hero__title.is-live .hline__inner--serif { font-variation-settings: "wght" 400; }

@media (hover: hover) {
  .hero__title.is-live .hline:not(.hline--serif):hover .hline__inner {
    font-variation-settings: "wght" 870, "wdth" 118;
  }
  .hero__title.is-live .hline--serif:hover .hline__inner--serif {
    font-variation-settings: "wght" 700;
  }
}

/* Gạch tay dưới "Bán được." (vẽ khi vào trang) */
.hline__scribble {
  position: absolute; left: 0.06em; bottom: -0.22em;
  width: 4.5em; height: 0.26em; color: var(--accent);
  pointer-events: none; overflow: visible;
}
.hline__scribble path {
  stroke-dasharray: 520; stroke-dashoffset: 520;
  transition: stroke-dashoffset 1s var(--ease) 0.5s;
}
.hero__title.is-live .hline__scribble path { stroke-dashoffset: 0; }

/* Decor editorial: registration ticks 4 góc + mark ✺ xoay */
.hero__decor {
  position: absolute; z-index: 0; pointer-events: none;
  inset: calc(var(--pad) + 46px) var(--pad) var(--pad);
}
.hero__tick { position: absolute; width: 15px; height: 15px; opacity: 0.5; }
.hero__tick::before, .hero__tick::after { content: ""; position: absolute; background: var(--line-strong); }
.hero__tick::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.hero__tick::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.hero__tick--tl { top: 0; left: 0; }
.hero__tick--tr { top: 0; right: 0; }
.hero__tick--bl { bottom: 0; left: 0; }
.hero__tick--br { bottom: 0; right: 0; }
.hero__mark {
  position: absolute; top: clamp(30px, 11vh, 120px); right: clamp(10px, 7vw, 90px);
  font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1; color: var(--accent);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .hero__coord { display: none; }
  .hero__mark { font-size: 2rem; top: 6px; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mark { animation: none; }
}
.hero__foot {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem; margin-top: clamp(2.5rem, 6vh, 5rem);
}
.hero__sub { max-width: 520px; font-size: 1.05rem; color: var(--ink); }
.hero__sub strong { font-weight: 600; }
.hero__cta { display: flex; gap: 0.8rem; flex-shrink: 0; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--pad); top: 50%;
  writing-mode: vertical-rl; font-size: 0.78rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 1.1rem 0;
  border-block: 1px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 2rem); white-space: pre;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.marquee__track i { font-style: normal; color: var(--accent); margin: 0 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}
.stat__label { font-size: 0.88rem; color: var(--ink-soft); max-width: 240px; display: block; }

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(6rem, 18vh, 12rem) var(--pad);
  max-width: 1300px;
}
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.4vw, 4.2rem);
  line-height: 1.15; letter-spacing: -0.02em;
}
.manifesto__text .hw { opacity: 0.14; }
.manifesto__press { margin-top: 3rem; font-size: 0.95rem; color: var(--ink-soft); }
.manifesto__press strong { color: var(--ink); font-weight: 600; }

/* ---------- Section head ---------- */
.section-head { padding: clamp(6rem, 16vh, 11rem) var(--pad) clamp(3rem, 8vh, 6rem); }
.eyebrow {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.6rem;
}
.eyebrow i { font-style: normal; color: var(--accent); margin-right: 0.5em; }
.section-head__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5.8vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 18em;
}
.section-head__sub {
  margin-top: 1.8rem; max-width: 600px;
  font-size: 1rem; color: var(--ink-soft);
}

/* ---------- Index: mục lục dự án ---------- */
.index {
  list-style: none;
  margin: 0 var(--pad) clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--line-strong);
}
.index a {
  display: grid;
  grid-template-columns: 3em minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) 7.5rem;
  align-items: baseline; gap: clamp(0.8rem, 2vw, 2rem);
  padding: clamp(1rem, 2.2vh, 1.5rem) 0.4em;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.index a:hover { background: var(--ink); color: var(--paper); padding-left: 1em; }
.index__no {
  font-family: var(--font-display); font-weight: 500; font-stretch: 110%;
  font-size: 0.85rem; color: var(--accent);
}
.index__name {
  font-family: var(--font-display); font-weight: 600; font-stretch: 116%;
  font-size: clamp(1.15rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.index__role, .index__fact { font-size: 0.9rem; color: var(--ink-soft); transition: color 0.35s; }
.index a:hover .index__role, .index a:hover .index__fact { color: rgba(241, 239, 233, 0.65); }
.index__time { font-size: 0.9rem; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Case ---------- */
.case { margin-bottom: clamp(6rem, 16vh, 13rem); }

/* Đoạn dẫn trước mỗi case: kicker định vị + hook một câu */
.case__lead {
  padding: 0 var(--pad) clamp(2.2rem, 6vh, 4rem);
  max-width: 1500px;
}
.case__kicker {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.2rem;
}
.case__kicker i { font-style: normal; color: var(--accent); margin-right: 0.5em; }
.case__hook {
  font-family: var(--font-display); font-weight: 600; font-stretch: 116%;
  font-size: clamp(1.5rem, 3.4vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.02em;
  max-width: 26em;
}

.case__hero { position: relative; height: 100svh; overflow: hidden; }
.case__hero-media { position: absolute; inset: 0; }
.case__hero-media img {
  width: 100%; height: 120%; object-fit: cover;
  will-change: transform;
}
.case__hero-text {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad);
  z-index: 2; color: #fff;
}
/* Nền sáng (mindzone, thinkmay): chữ mực, không cần gradient đè */
.case__hero--ink .case__hero-text { color: var(--ink); }
.case__hero--ink .case__tags span { border-color: rgba(14, 14, 12, 0.4); }
.case__index {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.4rem); opacity: 0.8; margin-bottom: 0.4rem;
}
.case__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
/* Title dài (Atomiton): hạ cỡ chữ để nằm một dòng, không đè lên icon giữa ảnh nền */
#atomiton .case__title { font-size: clamp(2.4rem, 6.2vw, 6.2rem); }
.case__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case__tags span {
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.45em 1em; border: 1px solid rgba(255,255,255,0.45); border-radius: 999px;
}

/* Case hero biến thể: dàn điện thoại trên nền mực */
.case__hero--phones {
  height: auto; background: var(--ink); color: var(--paper);
  padding: calc(var(--pad) + 60px) var(--pad) var(--pad);
}
.case__hero-text--dark { position: static; color: var(--paper); margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.case__hero--phones .case__tags span { border-color: rgba(241, 239, 233, 0.35); }
.phones {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(0.8rem, 2.6vw, 2.4rem);
}
.phone { width: clamp(130px, 20vw, 250px); flex-shrink: 0; cursor: zoom-in; }
.phone img { border-radius: clamp(14px, 1.6vw, 26px); will-change: transform; }
.phone:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.phones__caption {
  text-align: center; font-size: 0.85rem; color: rgba(241, 239, 233, 0.65);
  margin-top: 2.2rem;
}

/* Case body */
.case__body {
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(3.5rem, 9vh, 7rem) var(--pad);
  max-width: 1500px;
}
.case__side { position: relative; }
.case__metrics { position: sticky; top: 110px; }
.case__metrics div { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.case__metrics div:last-child { border-bottom: 1px solid var(--line); }
.case__metrics b {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -0.02em;
}
.case__metrics span { font-size: 0.85rem; color: var(--ink-soft); }

.case__story { max-width: 720px; }
.case__story p, .case__story li { font-size: 1.05rem; line-height: 1.8; }
.case__story p + p, .case__story p + ul, .case__story ul + p { margin-top: 1.6rem; }
.case__story li { padding: 1.1rem 0 1.1rem 1.8rem; position: relative; border-top: 1px solid var(--line); }
.case__story li::before {
  content: "✺"; position: absolute; left: 0; top: 1.15rem;
  color: var(--accent); font-size: 0.85rem;
}
.case__story strong { font-weight: 600; }
.lb {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.hl { background: var(--accent); color: var(--paper); padding: 0.05em 0.22em; font-weight: 600; }
.case__note { font-size: 0.85rem !important; color: var(--ink-soft); font-style: italic; }

/* Gallery cuộn ngang (pin): khối tối, screenshot trượt theo scroll */
.hscroll { overflow: hidden; background: var(--ink); }
.hscroll__track {
  display: flex; align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.hshot { flex-shrink: 0; cursor: zoom-in; }
.hshot img {
  height: min(60svh, 620px); width: auto; max-width: 86vw;
  border: 1px solid rgba(241, 239, 233, 0.16);
  border-radius: clamp(8px, 1vw, 14px);
}
.hshot figcaption { margin-top: 0.9rem; font-size: 0.85rem; color: rgba(241, 239, 233, 0.6); }
@media (min-width: 861px) {
  .hscroll { min-height: 100svh; display: flex; align-items: center; }
}

/* Gallery dạng panel: ảnh UI hiện nguyên vẹn, không crop, không zoom */
.case__gallery {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3.2vw, 3.2rem);
  margin: 0 var(--pad);
  padding: clamp(1.4rem, 3.5vw, 3.6rem);
  background: var(--panel, var(--paper-soft));
  border-radius: clamp(12px, 1.4vw, 22px);
}
.shot { cursor: zoom-in; min-width: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot img {
  width: 100%; height: auto;
  border: 1px solid rgba(14, 14, 12, 0.12);
  border-radius: clamp(8px, 1vw, 14px);
  box-shadow: 0 30px 60px -34px rgba(14, 14, 12, 0.4);
}
.shot figcaption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--panel-cap, var(--ink-soft)); }
.case__gallery--dark .shot img {
  border-color: rgba(241, 239, 233, 0.14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
/* Thinkmay: xếp dọc, khổ hẹp lại cho ảnh đỡ thô */
.case__gallery--stack { grid-template-columns: 1fr; justify-items: center; }
.case__gallery--stack .shot { width: min(100%, 1040px); }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 0 var(--pad);
  max-width: 1500px;
  align-items: start;
}
.about__media { position: sticky; top: 110px; }
.about__photo { overflow: hidden; }
.about__photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  will-change: transform;
}
.about__badge {
  position: absolute; top: -30px; right: -26px;
  width: clamp(64px, 7vw, 92px); height: clamp(64px, 7vw, 92px);
  border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.about__caption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}
.about__lede {
  font-family: var(--font-display); font-weight: 600; font-stretch: 116%;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1.16; letter-spacing: -0.02em;
  max-width: 22em;
  margin-bottom: clamp(2.2rem, 5vh, 3.8rem);
}
.about__beats { border-top: 1px solid var(--line); }
.beat {
  display: grid; grid-template-columns: 3em 1fr; gap: 1.4rem;
  padding: clamp(1.4rem, 3vh, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
.beat__no {
  font-family: var(--font-display); font-weight: 600; font-stretch: 110%;
  font-size: 0.9rem; color: var(--accent); padding-top: 0.4em;
}
.beat h4 {
  font-family: var(--font-display); font-weight: 600; font-stretch: 116%;
  font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}
.beat p { max-width: 640px; font-size: 1rem; line-height: 1.8; color: var(--ink); }

/* Dải facts nhanh */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 2rem var(--pad) 2.2rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-stretch: 116%;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.fact span { font-size: 0.85rem; color: var(--ink-soft); display: block; max-width: 240px; }

/* Khối báo chí: card link ra bài gốc, hover đảo màu như xp rows */
.press {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(4rem, 10vh, 7rem) var(--pad) 0;
  padding: clamp(1.8rem, 4.5vh, 3rem) clamp(0.6rem, 1.5vw, 1.4rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.press:hover { background: var(--ink); color: var(--paper); }
/* Nhiều card báo chí xếp chồng: bỏ khoảng cách + viền trên để dùng chung một đường kẻ */
.press + .press { margin-top: 0; border-top: 0; }
.press__logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: clamp(64px, 7vw, 92px); aspect-ratio: 1;
  border-radius: clamp(10px, 1.2vw, 16px);
  background: #ee1c25; color: #fff;
  font-family: var(--font-display); line-height: 1;
}
.press__logo b {
  font-size: clamp(0.62rem, 0.9vw, 0.8rem); font-weight: 700;
  letter-spacing: 0.2em; margin-bottom: 3px; text-indent: 0.2em;
}
.press__logo i {
  font-style: normal; font-weight: 700; font-stretch: 125%;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}
.press__body { display: block; min-width: 0; }
.press__quote {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 24em;
}
.press__meta {
  display: block; margin-top: 1rem;
  font-size: 0.9rem; color: var(--ink-soft);
  transition: color 0.4s;
}
.press:hover .press__meta { color: rgba(241, 239, 233, 0.65); }
.press__arrow {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1;
  transition: transform 0.35s var(--ease);
}
.press:hover .press__arrow { transform: translate(5px, -5px); }

.skills {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
}
.skill-group { padding: 2.2rem var(--pad) 2.6rem; border-right: 1px solid var(--line); }
.skill-group:last-child { border-right: 0; }
.skill-group h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.skill-group p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; }

/* ---------- Experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp__row {
  display: grid; grid-template-columns: minmax(180px, 300px) 1fr;
  gap: 2rem;
  padding: clamp(1.8rem, 4vh, 2.8rem) var(--pad);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.xp__row:hover { background: var(--ink); color: var(--paper); }
.xp__time {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.01em;
}
.xp__body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.15;
  letter-spacing: -0.015em; margin-bottom: 0.5rem;
}
.xp__body p { max-width: 640px; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.4s; }
.xp__row:hover .xp__body p { color: rgba(241, 239, 233, 0.7); }

/* ---------- Contact ---------- */
.contact { padding: clamp(7rem, 20vh, 14rem) var(--pad); }
.contact__big {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 6.5rem);
  line-height: 1; letter-spacing: -0.03em;
  max-width: 15em; margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.contact__mail {
  display: inline-block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 4.2vw, 4rem);
  letter-spacing: -0.02em; line-height: 1.2;
  border-bottom: 2px solid var(--ink);
  transition: color 0.3s, border-color 0.3s;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__rows {
  display: flex; flex-wrap: wrap; gap: 1em;
  margin-top: 2.2rem; font-size: 0.95rem; color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1.8rem var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(14, 14, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Archivo: độ giãn cho chữ display ---------- */
.loader__count, .hero__title, .menu__link, .stat__num,
.section-head__title, .case__title, .contact__big, .marquee__track span {
  font-stretch: 125%;
  font-weight: 700;
}
.manifesto__text { font-stretch: 122%; font-weight: 600; }
.case__metrics b, .xp__time, .xp__body h3, .contact__mail, .press__quote { font-stretch: 116%; }
.btn, .loader__name, .lb, .skill-group h4, .case__index, .cursor__label { font-stretch: 110%; }
.hline__inner--serif { font-weight: 500; font-stretch: 100%; }

/* Chữ tiếng Việt có dấu chồng cao hơn cap height (ể, ố, Ổ...):
   nới mask để không cắt dấu khi reveal. Thiếu phần nới này,
   dấu hỏi bị xén phần cong, nhìn thành dấu sắc. */
.hline,
[data-split] .w { padding-top: 0.18em; margin-top: -0.18em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .skill-group:nth-child(2n) { border-right: 0; }
  .skill-group:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav__status { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero__scroll { display: none; }
  .case__body { grid-template-columns: 1fr; }
  .case__metrics { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .case__metrics div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 420px; }
  .about__badge { right: -8px; }
  .press { grid-template-columns: auto 1fr; }
  .press__arrow { display: none; }
  .xp__row { grid-template-columns: 1fr; gap: 0.6rem; }
  .case__gallery { grid-template-columns: 1fr; }

  /* Index: giấu cột phụ, giữ số + tên + năm */
  .index a { grid-template-columns: 2.4em minmax(0, 1fr) auto; }
  .index__role, .index__fact { display: none; }

  /* Gallery ngang: mobile trượt tay, không pin */
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-block: 2.4rem; }
  .hscroll__track { padding-bottom: 1rem; }
  .hshot { width: 84vw; scroll-snap-align: center; }
  .hshot img { height: auto; width: 100%; max-width: none; }
  .phones { flex-wrap: wrap; }
  .phone { width: clamp(130px, 42vw, 220px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js .hline__inner,
  html.js [data-split] .w-in { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .loader { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
