/* perfbythanh — Concept 3 "Two Doors". Mobile first; desktop from 900px. */

:root {
  --ink: #1B1D24;
  --body: #3C404A;
  --muted: #5A5F6B;
  --bg: #FFFFFF;
  --stone: #F3F4F6;
  --line: #E4E6EB;
  --line-2: #DADDE3;
  --pill-line: #D5D8DE;
  --field-line: #7A808C;
  --indigo: #3341A6;
  --indigo-tint: #E8EAF8;
  --teal: #0E6B66;
  --teal-tint: #E3F2F1;
  --error: #B42318;
  --error-tint: #FCEEEC;
  --menu-bg: #1B1D24;
  --menu-muted: #B9BDC6;
  --menu-seg: #2A2D36;
  --menu-line: #383B45;
  --menu-cv: #C7CCF7;
  --menu-brief: #A8E0DB;
  --chart-before: #8A8F9A;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --header-h: 64px;
  --h1-leading: 1.1;
  --head-leading: 1.15;
}
html[lang="vi"] { --h1-leading: 1.18; --head-leading: 1.2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 60px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
.menu :focus-visible { outline-color: #FFFFFF; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #FFFFFF;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Door state: hide what does not belong to the chosen door (JS sets data-door). */
html.js[data-door="none"] [data-show]:not([data-show~="none"]),
html.js[data-door="role"] [data-show]:not([data-show~="role"]),
html.js[data-door="client"] [data-show]:not([data-show~="client"]) { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-indigo { background: var(--indigo); color: #FFFFFF; }
.btn-teal { background: var(--teal); color: #FFFFFF; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-line-indigo { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-line-teal { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-line-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn:hover { filter: brightness(1.08); }
.btn-line-indigo:hover, .btn-line-teal:hover, .btn-line-ink:hover { filter: none; background: var(--stone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-row {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-right: 10px;
}
.wordmark { font-family: var(--serif); font-size: 25px; font-weight: 500; text-decoration: none; color: var(--ink); line-height: 1; padding: 8px 0; }
.nav-desktop { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--pill-line); }
.lang a {
  width: 44px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink);
}
.lang a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; border-radius: 8px;
}
.header-cta { display: none; }

@media (min-width: 900px) {
  .header-row { padding-right: var(--gutter); }
  .wordmark { font-size: 27px; }
  .nav-desktop { display: flex; align-items: center; gap: 4px 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
  .nav-desktop a { text-decoration: none; padding: 12px 0; }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .header-tools { gap: 16px; margin-left: 22px; }
  .lang a { width: 46px; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 22px; font-size: 15px; }
}

/* ---------- Menu (mobile, dark) ---------- */
.menu {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: var(--menu-bg); color: #FFFFFF;
  display: none; flex-direction: column;
}
.menu[open] { display: flex; }
.menu::backdrop { background: var(--menu-bg); }
.menu-top { height: var(--header-h); flex: 0 0 auto; padding: 0 10px 0 20px; display: flex; align-items: center; justify-content: space-between; }
.menu-top .wordmark { color: #FFFFFF; }
.menu-close { width: 44px; height: 44px; border: 0; background: transparent; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; }
.menu-nav { padding: 8px 20px 0; display: flex; flex-direction: column; }
.menu-nav a {
  min-height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--menu-line);
  color: #FFFFFF; text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: -0.025em;
}
.menu-lang { padding: 24px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.menu-lang-label { font-size: 14px; color: var(--menu-muted); }
.menu-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--menu-seg); }
.menu-seg a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 15px; }
.menu-seg a[aria-current="true"] { background: #FFFFFF; color: var(--ink); }
.menu-bottom { margin-top: auto; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.menu-ctas { display: flex; gap: 10px; }
.menu-ctas a { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; font-weight: 700; text-align: center; padding: 0 10px; }
.menu-ctas .m-cv { background: var(--menu-cv); color: var(--ink); }
.menu-ctas .m-brief { background: var(--menu-brief); color: var(--ink); }
.menu-ctas .m-line { border: 1.5px solid #FFFFFF; color: #FFFFFF; }
.menu-social { display: flex; gap: 22px; font-size: 15px; }
.menu-social a { color: #FFFFFF; padding: 10px 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 22px; padding-bottom: 28px; display: grid; gap: 18px; }
.hero-id { display: flex; align-items: center; gap: 14px; }
.hero-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; background: var(--stone); }
.hero-id-text { display: flex; flex-direction: column; line-height: 1.35; }
.hero-id-text strong { font-weight: 800; }
.hero-id-text span { font-size: 14px; color: var(--muted); }
.hero-portrait { display: none; }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: var(--h1-leading);
  letter-spacing: -0.015em;
}
.hero h1 span { display: block; }
.hero-lead { color: var(--body); max-width: 36em; }

.stats { display: grid; border-top: 1px solid var(--line-2); }
.stat { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.stat-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.stat-l { font-size: 14px; color: var(--muted); line-height: 1.45; }

.doors { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.doors-q { font-size: 14px; font-weight: 800; }
.doors-list { display: flex; flex-direction: column; gap: 10px; }
.door {
  min-height: 84px; padding: 14px 16px 14px 18px; border-radius: 16px; border: 1.5px solid;
  background: #FFFFFF; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%;
  color: var(--body);
}
.door-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.door-title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.door-sub { font-size: 14px; line-height: 1.45; }
.door svg { flex: 0 0 auto; }
.door .i-check { display: none; }
.door[aria-pressed="true"] .i-check { display: block; }
.door[aria-pressed="true"] .i-arrow { display: none; }
.door-role { border-color: var(--indigo); }
.door-role .door-title, .door-role .i-arrow { color: var(--indigo); }
.door-role[aria-pressed="true"] { background: var(--indigo); color: #FFFFFF; }
.door-client { border-color: var(--teal); }
.door-client .door-title, .door-client .i-arrow { color: var(--teal); }
.door-client[aria-pressed="true"] { background: var(--teal); color: #FFFFFF; }
.door[aria-pressed="true"] .door-title { color: #FFFFFF; }
.door:hover { box-shadow: inset 0 0 0 1px currentColor; }
.browse { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }

@media (min-width: 900px) {
  .hero {
    padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px);
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 32px clamp(40px, 5vw, 72px); align-items: start;
  }
  .hero-id { display: none; }
  .hero-portrait { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--stone); }
  .hero-portrait figcaption { margin-top: 12px; display: flex; flex-direction: column; line-height: 1.4; }
  .hero-portrait figcaption strong { font-weight: 800; }
  .hero-portrait figcaption span { font-size: 14px; color: var(--muted); }
  .hero-text { gap: 26px; }
  .hero h1 { font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -0.02em; }
  .hero-lead { font-size: 18px; line-height: 1.65; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ink); padding-top: 18px; }
  .stat { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; }
  .stat-v { font-size: clamp(28px, 2.6vw, 36px); }
  .doors-q { font-size: 15px; }
  .doors-list { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .door { flex: 1 1 250px; min-height: 96px; padding: 18px 22px; }
  .door-title { font-size: 18px; }
  .door-sub { font-size: 15px; }
  .browse { align-self: flex-start; }
}

/* Door status bar (mobile only) */
.door-bar {
  position: sticky; top: var(--header-h); z-index: 15; height: 52px;
  padding: 0 8px 0 20px; display: flex; align-items: center; justify-content: space-between;
}
html[data-door="role"] .door-bar { background: var(--indigo-tint); }
html[data-door="client"] .door-bar { background: var(--teal-tint); }
.door-bar-label { font-size: 14px; font-weight: 800; }
.door-bar-label.is-role { color: var(--indigo); }
.door-bar-label.is-client { color: var(--teal); }
.switch-view { min-height: 44px; padding: 0 12px; border: 0; background: transparent; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (min-width: 900px) { .door-bar { display: none !important; } }

/* ---------- Door sections ---------- */
.door-section { background: var(--stone); }
.door-inner { padding-top: 28px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.section-title {
  font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: var(--head-leading); letter-spacing: -0.01em;
}
.points { display: flex; flex-direction: column; }
.point { padding: 14px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.point h3 { font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--indigo); }
.point p { font-size: 15px; color: var(--body); }
.point .point-k { font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; padding-top: 6px; }
.also { font-size: 14px; color: var(--muted); }

.client-lead { color: var(--body); max-width: 40em; }
.packages {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.package {
  flex: 0 0 276px; scroll-snap-align: start; border-radius: 16px; background: #FFFFFF; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--teal);
}
.package h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.package dl { display: flex; flex-direction: column; gap: 10px; }
.package dt { font-size: 13px; font-weight: 800; color: var(--muted); }
.package dd { font-size: 15px; color: var(--body); }
.swipe-hint { font-size: 13px; color: var(--muted); }
.pkg-note { font-size: 15px; font-weight: 700; }
.steps-mini h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 4px; }
.steps-mini li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.steps-mini .n { font-family: var(--serif); font-size: 28px; line-height: 1.05; color: var(--teal); }
.steps-mini .t { font-size: 15px; color: var(--body); padding-top: 4px; }

@media (min-width: 900px) {
  .door-inner { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); gap: 32px; }
  .section-title { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.015em; max-width: 18em; }
  .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .point { border-top: 2px solid var(--indigo); padding: 18px 0 0; gap: 10px; }
  .point h3 { font-size: 19px; line-height: 1.35; color: var(--ink); }
  .point p { font-size: 16px; }
  /* Keep label, title and text of the three points on the same rows, even when one title wraps to two lines. */
  @supports (grid-template-rows: subgrid) {
    .points { row-gap: 0; }
    .point { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  }
  .quote { font-size: clamp(24px, 2.4vw, 32px); max-width: 26em; }
  .packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .package { padding: 22px 22px 24px; }
  .swipe-hint { display: none; }
  .steps-mini { padding-top: 28px; border-top: 1px solid var(--line-2); }
  .steps-mini h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 18px; }
  .steps-mini ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .steps-mini li { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; }
  .steps-mini .n { font-size: 40px; line-height: 1; }
  .steps-mini .t { padding: 0; }
}

/* ---------- Track record ---------- */
.work { padding-top: 34px; }
.work-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.work-note { font-size: 13px; color: var(--muted); max-width: 36em; }
.case-row { border-bottom: 1px solid var(--line); }
.case-row-h { font-size: inherit; font-weight: inherit; }
.case-row-btn {
  width: 100%; background: none; border: 0; margin: 0; padding: 18px 0 20px; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "main sign" "metrics metrics"; gap: 14px 12px;
}
.row-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-tag { font-size: 13px; color: var(--muted); }
.row-title { font-size: 18px; line-height: 1.32; font-weight: 800; letter-spacing: -0.01em; }
.row-metrics { grid-area: metrics; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.row-m { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.row-mlabel { font-size: 12px; color: var(--muted); line-height: 1.4; }
.row-mval { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--teal); }
.row-sub { font-size: 14px; font-weight: 700; line-height: 1.45; padding-top: 4px; }
.row-sign {
  grid-area: sign; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.row-sign::before, .row-sign::after { content: ""; position: absolute; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
.row-sign::after { transform: rotate(90deg); transition: transform .2s ease; }
.case-row-btn[aria-expanded="true"] .row-sign::after { transform: rotate(0deg); }
.case-row-btn:hover .row-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.row-panel { padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
html.js .row-panel[data-collapsed] { display: none; }
.row-box { padding: 16px; border-radius: 12px; background: var(--stone); display: flex; flex-direction: column; gap: 14px; }
.row-box h4 { font-size: 13px; font-weight: 800; margin: 0 0 2px; }
.row-box p { font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.row-note { font-size: 13px; color: var(--muted); }
.row-link { align-self: stretch; }

@media (min-width: 900px) {
  .work { padding-top: clamp(48px, 6vw, 88px); }
  .work-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 8px 32px; padding-bottom: 16px; }
  .work-note { font-size: 14px; max-width: 32em; text-align: right; }
  .case-row-btn {
    padding: 26px 0; grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "main metrics sign";
    align-items: center; gap: 16px 40px;
  }
  .row-tag { font-size: 14px; }
  .row-title { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; }
  .row-metrics { grid-template-columns: minmax(150px, 220px) minmax(130px, 220px); gap: 12px 32px; }
  .row-mlabel { font-size: 13px; }
  .row-mval { font-size: 34px; line-height: 1.1; }
  .row-sub { font-size: 15px; }
  .row-panel { padding-bottom: 30px; gap: 18px; }
  .row-box { padding: 24px 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 36px; }
  .row-box h4 { font-size: 14px; }
  .row-box p { font-size: 18px; line-height: 1.6; }
  .row-note { font-size: 14px; }
  .row-link { align-self: flex-start; }
}

/* ---------- Experience ---------- */
.exp { padding-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.jobs li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.jobs .when { font-size: 13px; color: var(--muted); }
.jobs strong { font-size: 16px; line-height: 1.4; }
.jobs .note { font-size: 15px; color: var(--body); }
.skills { border-radius: 14px; background: var(--stone); padding: 0 16px; }
.skills summary {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; font-weight: 800; cursor: pointer; list-style: none;
}
.skills summary::-webkit-details-marker { display: none; }
.skills summary::after { content: "+"; font-size: 22px; font-weight: 500; line-height: 1; }
.skills[open] summary::after { content: "−"; }
.skills dl { padding-bottom: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.skills dt { font-weight: 800; }
.skills dd { color: var(--body); margin-top: 2px; }
.tools { padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.tools h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.tools li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--body); position: relative; }
.tools li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }

@media (min-width: 900px) {
  .exp {
    padding-top: clamp(56px, 7vw, 104px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; align-items: start;
    grid-template-areas: "title jobs" "skills jobs" "tools tools";
  }
  .exp > .section-title { grid-area: title; }
  .jobs { grid-area: jobs; border-bottom: 1px solid var(--line); }
  .jobs li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 32px; padding: 22px 0; }
  .jobs .when { font-size: 15px; grid-row: span 2; }
  .jobs strong { font-size: 18px; }
  .jobs .note { font-size: 16px; }
  .skills { grid-area: skills; background: transparent; padding: 0; }
  .skills summary { min-height: 0; padding-bottom: 12px; cursor: default; pointer-events: none; }
  .skills summary::after, .skills[open] summary::after { content: none; }
  .skills dl { font-size: 15px; gap: 14px; }
  .tools { grid-area: tools; padding-top: 24px; }
  .tools h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
  .tools ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
  .tools li { font-size: 16px; }
}

/* ---------- Closing block ---------- */
.closing { padding-top: 40px; padding-bottom: 40px; }
.closing-box { border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--stone); }
html[data-door="role"] .closing-box { background: var(--indigo-tint); }
html[data-door="client"] .closing-box { background: var(--teal-tint); }
.closing-box p { color: var(--body); font-size: 16px; max-width: 36em; }
.closing-box .btn-row { margin-top: 6px; }
@media (min-width: 900px) {
  .closing { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
  .closing-box { padding: clamp(28px, 4vw, 56px); flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
  .closing-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
  .closing-box p { font-size: 17px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { padding-top: 24px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-row strong { font-size: 15px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--ink); padding: 10px 0; }
@media (min-width: 900px) {
  .footer-row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 28px; }
  .footer-links a { padding: 4px 0; }
}

/* ---------- Bottom bar (mobile) ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 18;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.bottom-bar > div { display: flex; gap: 10px; width: 100%; }
.bottom-bar .btn { min-height: 50px; padding: 0 12px; }
.bottom-bar .btn:first-child { flex: 1.4; }
.bottom-bar .btn:last-child { flex: 1; }
html.js[data-door="role"] body.has-bar, html.js[data-door="client"] body.has-bar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .bottom-bar { display: none !important; }
  html.js[data-door="role"] body.has-bar, html.js[data-door="client"] body.has-bar { padding-bottom: 0; }
}

/* ---------- Case page ---------- */
.back-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.case-head { padding-top: 16px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.case-tag { font-size: 14px; font-weight: 700; color: var(--muted); }
.case-head h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: var(--h1-leading); letter-spacing: -0.01em; max-width: 18em; }
.kpis { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.kpi { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.kpi dt { font-size: 13px; color: var(--muted); line-height: 1.4; }
.kpi dd { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.kpis.n3 .kpi:first-child { grid-column: 1 / -1; }

.case-body { padding-bottom: 48px; display: grid; gap: 28px; }
.glance { border-radius: 16px; background: var(--stone); padding: 18px 18px 6px; }
.glance h2 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.glance div { padding: 12px 0; border-top: 1px solid var(--line-2); }
.glance div:first-of-type { border-top: 0; }
.glance dt { font-size: 13px; color: var(--muted); }
.glance dd { font-size: 15px; font-weight: 600; margin-top: 2px; }
.case-article { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.block { display: flex; flex-direction: column; gap: 10px; }
.block h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.7; max-width: 34em; }
.block-note { font-size: 14px; color: var(--muted); max-width: 40em; padding: 12px 14px; border-left: 3px solid var(--line-2); }
.case-steps { counter-reset: step; display: flex; flex-direction: column; }
.case-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.case-steps li:last-child { border-bottom: 1px solid var(--line); }
.case-steps .n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--teal); }
.case-steps h3 { font-size: 16px; font-weight: 800; line-height: 1.4; margin-bottom: 4px; }
.case-steps p { font-family: var(--serif); font-size: 18px; line-height: 1.65; }

.figure img { border-radius: 10px; border: 1px solid var(--line); }
.figure.narrow img { max-width: min(100%, 380px); }
.figure figcaption, .gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gallery-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.gallery-items img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-weight: 800; font-size: 13px; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); }
.data-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.data-table td:first-child { font-weight: 800; color: var(--ink); }
@media (max-width: 699px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .data-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .data-table td::before { content: attr(data-label); font-size: 12px; font-weight: 800; color: var(--muted); padding-top: 2px; }
  .data-table td:first-child { display: block; font-size: 16px; padding-bottom: 6px; }
  .data-table td:first-child::before { content: none; }
}

.case-ctas { padding-bottom: 40px; display: grid; gap: 14px; }
.cta-card { border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-card h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.cta-card.role { background: var(--indigo-tint); }
.cta-card.client { background: var(--teal-tint); }
.next-case { display: block; border-top: 1px solid var(--line); text-decoration: none; }
.next-case .wrap { padding-top: 28px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 6px; }
.next-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.next-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; display: inline-flex; align-items: center; gap: 10px; }
.next-case:hover .next-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

@media (min-width: 900px) {
  .case-head { padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(28px, 4vw, 48px); gap: 16px; }
  .case-head h1 { font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.02em; }
  .kpis { margin-top: 16px; padding-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
  .kpis.n3 .kpi:first-child { grid-column: auto; }
  .kpi dt { font-size: 15px; }
  .kpi dd { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
  .case-body { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 40px 72px; align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
  .glance { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); background: #FFFFFF; border: 1px solid var(--line); padding: 22px 22px 8px; }
  .case-article { grid-column: 1; grid-row: 1; gap: 44px; }
  .block h2 { font-size: 22px; }
  .prose, .case-steps p { font-size: 20px; }
  .case-steps li { grid-template-columns: 48px minmax(0, 1fr); padding: 20px 0; }
  .case-steps .n { font-size: 38px; }
  .case-steps h3 { font-size: 17px; }
  .case-ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(40px, 5vw, 64px); }
  .cta-card { padding: clamp(24px, 3vw, 40px); }
  .cta-card h2 { font-size: clamp(26px, 2.6vw, 36px); }
  .next-case .wrap { padding-top: 36px; padding-bottom: 40px; }
  .next-title { font-size: clamp(26px, 2.6vw, 36px); }
}

/* ---------- Charts ---------- */
.chart { border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.chart-title { font-size: 17px; font-weight: 800; line-height: 1.35; }
.chart-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.chart-plot { position: relative; height: 210px; margin-top: 26px; }
.chart-bars { position: absolute; inset: 0 0 0 0; z-index: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; border-bottom: 1px solid var(--line-2); }
.bar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar { width: 62%; max-width: 44px; border-radius: 4px 4px 0 0; background: var(--chart-before); position: relative; }
.bar.after { background: var(--indigo); }
.bar.hatch { background: repeating-linear-gradient(135deg, var(--chart-before) 0 2px, #FFFFFF 2px 6px); box-shadow: inset 0 0 0 1px var(--chart-before); }
.bar-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; background: #FFFFFF; padding: 0 2px; line-height: 1.3; }
.bar.after .bar-val { color: var(--ink); font-weight: 800; }
.chart-ref { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--ink); z-index: 0; pointer-events: none; }
.chart-ref.ref-left span { right: auto; left: 0; }
.chart-ref span { position: absolute; right: 0; bottom: 3px; z-index: 2; font-size: 11px; color: var(--muted); background: #FFFFFF; padding: 0 3px; white-space: nowrap; }
.chart-marker { position: absolute; top: -22px; bottom: 0; border-left: 1px dashed var(--field-line); }
.chart-marker span { position: absolute; left: 5px; top: -2px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart-x { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); text-align: center; font-size: 12px; color: var(--muted); padding-top: 6px; }
.chart-foot { font-size: 12px; color: var(--muted); }
.chart details { font-size: 13px; }
.chart summary { cursor: pointer; color: var(--muted); font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }
.chart table { border-collapse: collapse; margin-top: 6px; }
.chart th, .chart td { text-align: left; padding: 4px 16px 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
@media (min-width: 900px) {
  .chart { padding: 24px 24px 18px; }
  .chart-title { font-size: 18px; }
  .chart-sub { font-size: 14px; }
  .chart-plot { height: 260px; }
  .bar-val { font-size: 13px; }
  .chart-ref span, .chart-marker span { font-size: 12px; }
  .chart-x { font-size: 13px; }
}

/* ---------- Contact page ---------- */
.contact-main { padding-top: 24px; padding-bottom: 48px; display: grid; gap: 36px; }
.contact-intro { display: flex; flex-direction: column; gap: 10px; }
.contact-intro h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: var(--h1-leading); letter-spacing: -0.01em; }
.contact-intro p { color: var(--body); max-width: 34em; }
.form-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.error-summary { padding: 16px 18px; border-radius: 14px; background: var(--error-tint); border: 1.5px solid var(--error); display: flex; flex-direction: column; gap: 6px; }
.error-summary strong { color: var(--error); font-size: 16px; }
.error-summary ul { list-style: disc; padding-left: 20px; font-size: 15px; }
.error-summary a { color: var(--ink); }
.brief-form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 800; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 12px;
  font: 500 16px var(--sans); color: var(--ink); background: #FFFFFF;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6B7079; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { font-size: 14px; font-weight: 600; color: var(--error); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1.5px solid var(--field-line); border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.25; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: 0 0 auto; }
.chip:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.form-actions { display: none; }
.submit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); }
.submit-bar .btn { width: 100%; min-height: 52px; }
body.has-submit-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.sent { padding: 28px 22px; border-radius: 20px; background: var(--teal-tint); display: flex; flex-direction: column; gap: 14px; }
.sent-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; }
.sent h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: var(--h1-leading); }
.sent p { color: var(--body); max-width: 34em; }
.contact-side { display: flex; flex-direction: column; gap: 22px; }
.side-box { padding: 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.side-box h2 { font-size: 17px; font-weight: 800; }
.side-box.plain { background: var(--stone); }
.side-box.role { background: var(--indigo-tint); }
.side-box.role p { color: var(--body); font-size: 15px; }
.side-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.side-steps .n { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--teal); }
.side-steps .t { font-size: 15px; color: var(--body); }
.direct a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line-2); }
.direct a:last-child { border-bottom: 0; }
.direct a span { font-weight: 500; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .contact-main { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px 72px; align-items: start; }
  .contact-intro h1 { font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -0.02em; }
  .contact-intro p { font-size: 18px; }
  .brief-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .brief-form .full { grid-column: 1 / -1; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-actions { display: flex; grid-column: 1 / -1; }
  .form-actions .btn { min-height: 54px; padding: 0 32px; }
  .submit-bar { display: none; }
  body.has-submit-bar { padding-bottom: 0; }
  .sent { padding: clamp(28px, 4vw, 48px); }
  .sent h1 { font-size: clamp(36px, 4vw, 56px); }
}

/* Root language page */
.root-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.root-page main { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.root-page h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .bottom-bar, .submit-bar, .menu, .door-bar { display: none !important; }
  html.js .row-panel[data-collapsed] { display: flex; }
}

/* Tablet in portrait: keep reading lines short */
@media (min-width: 600px) and (max-width: 899px) {
  .points, .jobs, .tools, .row-box, .row-note, .skills, .steps-mini { max-width: 640px; }
}

/* ---------- Dashboard layout (schematic, Ru9 case) ---------- */
.dash-frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #FFFFFF; }
.dash-name { font-weight: 800; font-size: 14px; line-height: 1.35; }
.dash-tool { font-size: 12px; font-weight: 700; color: var(--ink); background: #FFFFFF; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.dash-inner { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--stone); }
.dash-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.dash-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-filters ul { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-filters li { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line-2); }
.dash-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dash-kpis div { background: #FFFFFF; border-radius: 10px; padding: 10px 12px; border-top: 3px solid var(--indigo); }
.dash-kpis dt { font-size: 13px; font-weight: 800; }
.dash-kpis dd { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dash-views { display: grid; gap: 8px; }
.dash-view { background: #FFFFFF; border-radius: 10px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.dash-view svg { width: 100%; height: auto; max-height: 84px; display: block; }
.dash-view span { font-size: 12px; font-weight: 700; line-height: 1.35; }
.dash .s-axis { stroke: var(--line-2); stroke-width: 1.5; }
.dash .s-base { fill: #C9CCD3; }
.dash .s-thin { fill: #E1E3E8; }
.dash .s-rev { fill: var(--indigo); }
.dash .s-area { fill: var(--indigo); opacity: .14; }
.dash .s-rev-line { fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linejoin: round; }
.dash .s-line { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dash .s-dash { stroke-dasharray: 4 4; }
.dash .s-dot { fill: #FFFFFF; stroke: var(--teal); stroke-width: 2; }
.dash figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 640px) {
  .dash-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dash-views { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-view svg { max-height: none; }
  .dash-inner { padding: 16px; gap: 14px; }
}

/* =====================================================================
   Đợt sửa 22/10/2026 (đã chốt với Thanh)
   ===================================================================== */

/* No lone words at the end of headings and titles; nicer paragraph endings. */
h1, h2, h3, .section-title, .row-title, .row-sub, .door-title, .case-head h1 { text-wrap: balance; }
p, li, dd, .stat-l, .row-mlabel { text-wrap: pretty; }

/* Hero numbers on phones and tablets: three tiles in one row (kiểu 2). Desktop unchanged. */
.stat-l .l-short { display: none; }
@media (max-width: 899px) {
  .stats { grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; border-top: 0; }
  .stat { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border: 0; border-radius: 12px; background: var(--stone); min-width: 0; }
  .stat-v { font-size: clamp(16px, 4.6vw, 22px); }
  .stat-l { font-size: 11.5px; line-height: 1.35; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .stat { padding: 14px; }
  .stat-l { font-size: 13px; }
}
@media (max-width: 599px) {
  .stat-l .l-long { display: none; }
  .stat-l .l-short { display: inline; }
}

/* Door bar on phones: slides up under the header while reading, comes back on scroll up. */
.door-bar { transition: transform .25s ease, opacity .2s ease; }
.door-bar.is-tucked { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Bottom bar on phones: hidden while the closing block (same two buttons) is on screen. */
.bottom-bar { transition: transform .25s ease, visibility 0s; }
.bottom-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }

/* Closing block: dark card, same tone as the mobile menu (phương án B), all screen sizes. */
.closing-box,
html[data-door="role"] .closing-box,
html[data-door="client"] .closing-box { background: var(--menu-bg); color: #FFFFFF; }
.closing-box .section-title { color: #FFFFFF; }
.closing-box p { color: var(--menu-muted); }
.closing-box .btn-teal { background: var(--menu-brief); color: var(--ink); }
.closing-box .btn-indigo { background: var(--menu-cv); color: var(--ink); }
.closing-box .btn-line-teal,
.closing-box .btn-line-indigo,
.closing-box .btn-line-ink { color: #FFFFFF; border-color: rgba(255, 255, 255, .45); background: transparent; }
.closing-box .btn-line-teal:hover,
.closing-box .btn-line-indigo:hover,
.closing-box .btn-line-ink:hover { background: rgba(255, 255, 255, .08); }
.closing-box :focus-visible { outline-color: #FFFFFF; }

/* Two buttons sharing a row on phones: equal width, short labels. */
.lbl-short { display: none; }
@media (max-width: 599px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .closing-box { padding: 22px 20px 20px; gap: 0; }
  .closing-box .section-title { font-size: 26px; line-height: 1.15; }
  .closing-box p { display: none; }
  .closing-box .btn-row,
  .door-inner > .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .closing-box .btn-row { margin-top: 18px; }
  .closing-box .btn,
  .door-inner > .btn-row .btn { min-width: 0; padding: 0 10px; }
}

/* Bigger touch targets without changing the look (≥ 44 px). */
.lang a, .footer-links a, .menu-social a { position: relative; }
.lang a::after { content: ''; position: absolute; inset: -3px 0; }
.footer-links a::after, .menu-social a::after { content: ''; position: absolute; inset: -2px -8px; }

/* Brief form: honeypot and the "could not send" message. */
.brief-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send-error { padding: 16px 18px; border-radius: 14px; background: var(--error-tint); border: 1.5px solid var(--error); display: flex; flex-direction: column; gap: 8px; }
.send-error p { font-size: 15px; color: var(--ink); }
.send-error-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.send-error-links a { color: var(--ink); font-weight: 700; padding: 10px 0; }
.btn[disabled] { opacity: .7; cursor: progress; filter: none; }
