/* Hoàng Kiến Design & Build — production visual system */
:root {
  --red: #b1292b;
  --red-bright: #ff3333;
  --red-deep: #c20000;
  --ink: #171b1b;
  --ink-2: #6e575a;
  --ink-soft: #252c2c;
  --charcoal: #303535;
  --cream: #f4f0e7;
  --cream-deep: #e9e2d6;
  --white: #ffffff;
  --paper: #ffffff;
  --paper-2: #fbf5f4;
  --muted: #706b66;
  --line: rgba(23, 27, 27, 0.16);
  --line-2: #e3c9cc;
  --line-light: rgba(255, 255, 255, 0.2);
  --font-display: "Playfair Display", "Be Vietnam Pro", Georgia, serif;
  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(76px, 9vw, 132px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Lexend Deca", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

::selection {
  background: var(--red);
  color: var(--white);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

figure,
p,
h1,
h2,
h3,
h4,
dl,
dd {
  margin-top: 0;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 4px;
}

.site-shell,
.wrap {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.visually-hidden.focusable:focus {
  position: fixed !important;
  z-index: 2000;
  top: 12px;
  left: 12px;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  overflow: visible !important;
  background: var(--white);
  color: var(--red-deep);
  font-weight: 800;
}

/* Minimal bottom loading bar — brand red, no fullscreen block (driven by hk-cons.js) */
.page-loader {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 3px;
  pointer-events: none;
}

.page-loader-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
}

.page-loader.is-loading .page-loader-bar {
  animation: page-loader-trickle 2.5s ease-out forwards;
}

.page-loader.is-done .page-loader-bar {
  animation: none;
  width: 100%;
  opacity: 0;
  transition: width 200ms ease, opacity 300ms ease;
}

@keyframes page-loader-trickle {
  from { width: 0; }
  to { width: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none; }
}

/* Header — v1 menubar: fixed, frosted on scroll, transparent over the home hero */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(76, 7, 19, 0.35);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.site-header.solid {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Transparent gradient over the hero video while at the top */
body.has-hero .site-header:not(.solid) {
  background: linear-gradient(180deg, rgba(12, 5, 7, 0.5) 0%, rgba(12, 5, 7, 0) 100%);
  border-bottom: 0;
  box-shadow: none;
}

/* Fixed header leaves the flow: inner pages open padded, the home hero slides under it */
body:not(.has-hero) {
  padding-top: 82px;
}

body.has-hero .home-hero,
body.has-hero .hero-content {
  min-height: max(620px, 100svh);
}

.header-inner {
  position: relative;
  display: flex;
  width: min(100% - 40px, 1600px);
  min-height: 82px;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 48px);
}

.brand-mark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-right: auto;
  line-height: 1;
}

.brand-mark img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-sub {
  color: var(--ink);
  font-size: 0.36rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  white-space: nowrap;
}

body.has-hero .site-header:not(.solid) .logo-sub {
  color: var(--white);
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

body.has-hero .site-header:not(.solid) .header-nav a {
  color: rgba(255, 255, 255, 0.85);
}

body.has-hero .site-header:not(.solid) .header-nav a:hover {
  color: var(--white);
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.header-nav a:hover {
  color: var(--red);
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-nav a.is-active {
  color: var(--red);
}

/* CSS-only mobile toggle (v1): the checkbox stays focusable, the label draws the hamburger */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nav-toggle:focus-visible ~ .nav-toggle-label {
  outline: 3px solid var(--red-bright);
  outline-offset: 4px;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  content: "";
  transition: transform 240ms var(--ease), opacity 180ms ease, background 200ms ease;
}

.nav-toggle-label span {
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

body.has-hero .site-header:not(.solid) .nav-toggle-label span,
body.has-hero .site-header:not(.solid) .nav-toggle-label span::before,
body.has-hero .site-header:not(.solid) .nav-toggle-label span::after {
  background: var(--white);
}

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  transform: translateY(7px) rotate(45deg);
  background: var(--red);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--red);
}

.hk-search { position: relative; display: flex; align-items: center; order: 2; }
.hk-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: none; border: 0; color: var(--ink-2);
}
.hk-search-toggle svg { width: 20px; height: 20px; }
.hk-search-toggle:hover { color: var(--red); }
body.has-hero .site-header:not(.solid) .hk-search-toggle { color: rgba(255, 255, 255, .85); }
body.has-hero .site-header:not(.solid) .hk-search-toggle:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
  .hk-search-form.is-open {
    animation: none;
  }
}

.hk-search-form {
  position: absolute; top: calc(100% + .8rem); right: 0; z-index: 120;
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  max-width: calc(100vw - 2rem);
  background:
    radial-gradient(420px at 108% 112%, rgba(197, 22, 46, .1), transparent 65%),
    linear-gradient(rgba(197, 22, 46, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 22, 46, .05) 1px, transparent 1px),
    #fff;
  background-size: auto, 44px 44px, 44px 44px, auto;
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  padding: .8rem;
  /* ponytail: visibility flips instantly on open, delayed on close — smooth both ways, no JS timers on the fade itself. */
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .25s cubic-bezier(.22,1,.36,1), visibility 0s linear .25s;
}
.hk-search-form[hidden] { display: none; }
.hk-search-form.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.hk-search-row { display: flex; gap: .5rem; flex-basis: 100%; align-items: stretch; }
.hk-search-form input[type="search"] {
  flex: 1 1 200px; min-width: 0; padding: .6rem .8rem;
  border: 1px solid var(--line-2); border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  font: inherit; font-size: .9rem; color: var(--ink); background: var(--paper);
}
/* ponytail: no focus ring on this input per owner request — the box itself is the affordance. */
.hk-search-form input[type="search"]:focus,
.hk-search-form input[type="search"]:focus-visible { outline: none; }
.hk-search-form button[type="submit"] {
  flex: none; padding: .6rem 1rem; cursor: pointer; white-space: nowrap;
  background: var(--red); color: #fff; border: 0;
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  font: inherit; font-size: .9rem; font-weight: 700;
}
.hk-search-form button[type="submit"]:hover { background: var(--red-deep); }
/* ---------- search chips : TM Villa chamfered solid buttons ---------- */
.hk-chips { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.hk-chips-label { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.hk-chips a {
  text-decoration: none; font-size: .88rem; font-weight: 700;
  color: #fff; background: var(--red); border: 0; border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: .45rem 1.1rem; transition: background .2s, color .2s;
}
.hk-chips a:hover { background: var(--red-deep); color: #fff; }
/* ponytail: quick-search pills inside the dropdown — same language, smaller, touch-friendly. */
.hk-search-form .hk-chips { flex-basis: 100%; gap: .45rem; margin-top: .1rem; }
.hk-search-form .hk-chips-label { font-size: .8rem; }
.hk-search-form .hk-chips a { font-size: .8rem; padding: .4rem .85rem; }

@media (min-width: 761px) {
  .hk-search-form { width: 405px; }
}

.hk-search-form::after {
  content: "HK";
  position: absolute;
  right: 1.2rem;
  bottom: .3rem;
  z-index: 0;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(197, 22, 46, .16);
  pointer-events: none;
  user-select: none;
}
.hk-search-row,
.hk-search-form .hk-chips {
  position: relative;
  z-index: 1;
}

/* Shared section language */
.section-pad {
  padding-block: var(--section-space);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-index {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-dark .section-index,
.section-heading--light .section-index {
  color: #ef777e;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(38px, 5vw, 68px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading--light {
  border-color: var(--line-light);
}

.section-heading h2,
.about-story h2,
.philosophy-intro h2,
.contact-copy h2 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: uppercase;
}

.button-link,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--red);
  color: var(--white);
  padding: 11px 18px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button-link:hover,
.text-link:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.button-link--outline {
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: var(--red);
  clip-path: none;
}

.button-link--outline::before,
.button-link--outline::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.button-link--outline::before {
  inset: 0;
  z-index: -2;
  background: var(--red);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.button-link--outline::after {
  inset: 1px;
  z-index: -1;
  background: var(--white);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color 180ms ease;
}

.button-link--outline:hover {
  background: transparent;
  color: var(--white);
}

.button-link--outline:hover::after,
.button-link--outline:active::after {
  background: var(--red);
}

.button-link--outline:active {
  color: var(--white);
  transform: translateY(0);
}

.button-link--light,
.text-link--light {
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  clip-path: none;
  padding-inline: 0;
  color: var(--white);
}

.button-link--light:hover,
.text-link--light:hover {
  background: transparent;
  color: var(--cream-deep);
}

/* Solid-light button: white chamfered button for red panels (services CTA). */
.button-link--fill-light {
  background: var(--white);
  color: var(--red);
}

.button-link--fill-light:hover {
  background: var(--cream);
  color: var(--red-deep);
}

/* ponytail: .prose a (0,1,1) outranks .button-link (0,1,0) — without this,
   button text goes red-on-red and looks like an empty bar. */
.prose .button-link,
.prose .text-link {
  color: var(--white);
}

/* Hero */
.home-hero {
  position: relative;
  min-height: max(620px, calc(100svh - var(--header-height)));
  overflow: hidden;
  background: #150b0c;
  color: var(--white);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  margin: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.06);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(11, 7, 7, 0.45) 0%, rgba(11, 7, 7, 0.05) 58%, rgba(11, 7, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 7, 7, 0.02) 32%, rgba(11, 7, 7, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100% - 40px, 1600px);
  min-height: max(620px, 100svh);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: end;
  gap: clamp(34px, 6vw, 90px);
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 48px);
  padding-top: 120px;
  padding-bottom: clamp(32px, 4vw, 56px);
}

.hero-headline {
  margin: 0;
  color: transparent;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.04;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--white);
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

.hero-headline span {
  display: block;
}

.hero-headline-fill {
  /* Brand-red statement over the dark video scrim: bright red keeps contrast where standard red would sink */
  color: var(--red-bright);
  -webkit-text-stroke-width: 0;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.55);
  opacity: 0.9;
}

/* Headline-only left column: pin to the same bottom edge as the panel */
.hero-copy {
  align-self: end;
  margin: 0;
  padding-bottom: 10px;
  opacity: 0.6;
}

.hero-panel {
  display: flex;
  min-height: 348px;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px 30px;
  background: linear-gradient(145deg, rgba(255, 51, 51, 0.82), rgba(188, 34, 34, 0.82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  box-shadow: 0 30px 90px rgba(70, 0, 12, 0.28);
  opacity: 0.9;
}

.hero-panel-kicker {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.35vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-panel p:not(.hero-panel-kicker) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.65;
}

/* News rail */
.news-rail {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
  color: var(--white);
}

.news-rail-inner {
  display: grid;
  min-height: 48px;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 0;
}

.news-rail-label {
  display: flex;
  min-width: 136px;
  align-items: center;
  /* Full-bleed deep red from the viewport left edge — text stays put */
  margin-left: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--shell)) / 2)));
  padding: 0 28px 0 calc(20px + var(--gutter) + max(0px, (100vw - var(--shell)) / 2));
  background: var(--red-deep);
  font-size: 14px;
  font-weight: 800;
}

/* Standalone triangle dividers (own artwork, Coteccons-style placement) */
.news-rail-notch {
  display: block;
  width: 18px;
  height: 48px;
  color: var(--red-deep);
}

.news-rail-notch--wide {
  width: 54px;
  margin-left: -1px;
}

.news-rail-notch--flip {
  width: 54px;
  margin-right: -1px;
}

.news-rail-viewport {
  min-width: 0;
  height: 48px;
  overflow: hidden;
}

.news-rail-track {
  margin: 0;
  padding: 0 24px;
  list-style: none;
  transition: transform 640ms var(--ease);
  will-change: transform;
}

.news-rail-track li {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}

.news-rail-track a {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-rail-track a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-rail-end {
  min-width: 136px;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--shell)) / 2)));
  background: var(--red-deep);
}

/* About — blueprint paper: faint architectural grid on white */
.about-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-space);
  padding-bottom: clamp(54px, 7vw, 96px);
  background:
    linear-gradient(rgba(23, 27, 27, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 27, 27, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(52px, 9vw, 140px);
  align-items: start;
}

.about-story h2 {
  margin-bottom: 24px;
}

.about-title-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
}

.about-section > .about-title-banner {
  margin: 0 0 24px;
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}

.about-title-banner svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--red);
}

/* Position marker: the full-height bar matches the section's order on the page,
   neighbors taper off smoothly with distance from the peak */
.about-title-banner svg rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.35);
}

#about .about-title-banner svg rect:nth-child(1),
#services .about-title-banner svg rect:nth-child(2),
#segments .about-title-banner svg rect:nth-child(3),
#lien-he .about-title-banner svg rect:nth-child(3),
#featured .about-title-banner svg rect:nth-child(4),
#news .about-title-banner svg rect:nth-child(4),
#philosophy .about-title-banner svg rect:nth-child(5) {
  transform: scaleY(1);
}

#about .about-title-banner svg rect:nth-child(2),
#services .about-title-banner svg rect:nth-child(1),
#services .about-title-banner svg rect:nth-child(3),
#segments .about-title-banner svg rect:nth-child(2),
#segments .about-title-banner svg rect:nth-child(4),
#lien-he .about-title-banner svg rect:nth-child(2),
#lien-he .about-title-banner svg rect:nth-child(4),
#featured .about-title-banner svg rect:nth-child(3),
#featured .about-title-banner svg rect:nth-child(5),
#news .about-title-banner svg rect:nth-child(3),
#news .about-title-banner svg rect:nth-child(5),
#philosophy .about-title-banner svg rect:nth-child(4) {
  transform: scaleY(0.8);
}

#about .about-title-banner svg rect:nth-child(3),
#services .about-title-banner svg rect:nth-child(4),
#segments .about-title-banner svg rect:nth-child(1),
#segments .about-title-banner svg rect:nth-child(5),
#lien-he .about-title-banner svg rect:nth-child(1),
#lien-he .about-title-banner svg rect:nth-child(5),
#featured .about-title-banner svg rect:nth-child(2),
#news .about-title-banner svg rect:nth-child(2),
#philosophy .about-title-banner svg rect:nth-child(3) {
  transform: scaleY(0.62);
}

#about .about-title-banner svg rect:nth-child(4),
#services .about-title-banner svg rect:nth-child(5),
#featured .about-title-banner svg rect:nth-child(1),
#news .about-title-banner svg rect:nth-child(1),
#philosophy .about-title-banner svg rect:nth-child(2) {
  transform: scaleY(0.47);
}

/* Section headings share the compact architectural title treatment. */
.section-heading h2.about-title-banner,
.philosophy-intro h2.about-title-banner,
.contact-copy h2.about-title-banner {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.25;
}

.about-lead {
  max-width: 690px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}

.about-collage {
  display: grid;
  max-width: 100%;
  grid-template-columns: minmax(110px, 0.68fr) minmax(0, 1.32fr);
  grid-template-rows: 184px 232px;
  gap: 10px;
  overflow: hidden;
}

.about-brand-tile {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  background: var(--red);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: background-color 600ms ease;
}

.about-brand-tile img {
  width: 72px;
  height: auto;
  filter: brightness(0) invert(1);
}

.about-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--charcoal);
  filter: saturate(0.82) brightness(0.92);
}

.about-image--main {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.about-image--secondary {
  grid-row: 2;
  grid-column: 1;
}

.about-image-img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(101%);
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.about-image-img.is-active {
  z-index: 1;
  transform: translateY(0);
}

.about-image-img.is-entering {
  z-index: 2;
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-stats {
  padding-top: 0;
}

.stat-line {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.stat-line:last-child {
  border-bottom: 1px solid var(--line);
}

.stat-line span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.stat-line strong {
  color: var(--red);
  font-size: clamp(2.8rem, 5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.about-manifesto {
  display: flex;
  flex-direction: column;
  margin-top: clamp(64px, 9vw, 128px);
  color: transparent;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(23, 27, 27, 0.28);
}

.about-manifesto span:last-child {
  align-self: flex-end;
  color: rgba(188, 34, 34, 0.18);
  -webkit-text-stroke-width: 0;
}

/* Services — plain cream */
.services-section {
  background: var(--cream);
}

.services-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
}

.service-card {
  /* One knob for every hover property: mismatched durations read as unsynchronized */
  --card-speed: 1200ms;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 500px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  transition: box-shadow var(--card-speed) var(--ease);
}

.service-card:hover,
.service-card:focus-visible {
  box-shadow: 0 30px 60px rgba(84, 6, 22, 0.35);
}

/* Crossfade the bottom-third gradient from black to brand red on hover/focus. */
.service-card::before {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 33.333%;
  background: linear-gradient(180deg, rgba(177, 41, 43, 0), rgba(177, 41, 43, 0.92));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--card-speed) var(--ease);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-card-media {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--ink-soft);
}

.service-card-media::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 33.333%;
  background: linear-gradient(180deg, rgba(10, 4, 5, 0), rgba(10, 4, 5, 0.88));
  content: "";
  transition: opacity var(--card-speed) var(--ease);
}

.service-card:hover .service-card-media::after,
.service-card:focus-visible .service-card-media::after {
  opacity: 0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform var(--card-speed) var(--ease), filter var(--card-speed) var(--ease);
}

.service-card:hover .service-card-media img,
.service-card:focus-visible .service-card-media img {
  filter: saturate(1.05);
  transform: scale(1.06);
}

.service-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 22px;
}

.service-card-number {
  display: none;
}

.service-card strong {
  display: block;
  min-height: 2.3em; /* longest titles wrap to 2 lines: reserve both so 1-line titles align */
  padding-right: 40px;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.service-card small {
  display: block;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height var(--card-speed) var(--ease),
    margin-top var(--card-speed) var(--ease),
    opacity var(--card-speed) var(--ease),
    transform var(--card-speed) var(--ease);
}

.service-card:hover small,
.service-card:focus-visible small,
.service-card:focus-within small {
  max-height: 180px;
  margin-top: 12px;
  opacity: 1;
  transform: none;
}

.service-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--card-speed) var(--ease);
}

.service-card:hover .service-card-arrow,
.service-card:focus-visible .service-card-arrow {
  transform: translate(4px, -4px);
}

/* Project segments — same header language as about/services (.section-heading +
  .about-title-banner + .button-link); accordion + chamfered image panel only here. */
.segments-section {
  background: var(--white);
}

.segments-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: stretch;
}

.segment-list {
  min-width: 0;
}

.segment-item {
  border-bottom: 1px solid var(--line);
}

.segment-item:first-child {
  border-top: 1px solid var(--line);
}

.segment-button {
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  padding: 20px 24px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}

.segment-button-title {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.segment-item:not(.is-open) .segment-button:hover,
.segment-item:not(.is-open) .segment-button:focus-visible {
  background: rgba(188, 34, 34, 0.09);
}

.segment-item.is-open .segment-button {
  background: var(--red);
  color: var(--white);
}

.segment-item.is-open .segment-button:hover,
.segment-item.is-open .segment-button:focus-visible {
  background: var(--red-deep);
}

.segment-symbol {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1.5px solid var(--red);
  background: var(--white);
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}

.segment-symbol::before,
.segment-symbol::after {
  position: absolute;
  background: var(--red);
  content: "";
  transition: transform 300ms var(--ease), opacity 300ms var(--ease), background 300ms var(--ease);
}

.segment-symbol::before {
  width: 12px;
  height: 1.5px;
}

.segment-symbol::after {
  width: 1.5px;
  height: 12px;
}

.segment-item:not(.is-open):hover .segment-symbol,
.segment-item:not(.is-open) .segment-button:focus-visible .segment-symbol {
  background: var(--red);
}

.segment-item:not(.is-open):hover .segment-symbol::before,
.segment-item:not(.is-open):hover .segment-symbol::after,
.segment-item:not(.is-open) .segment-button:focus-visible .segment-symbol::before,
.segment-item:not(.is-open) .segment-button:focus-visible .segment-symbol::after {
  background: var(--white);
}

.segment-item.is-open .segment-symbol::after {
  opacity: 0;
  transform: scaleY(0);
}

.segment-panel {
  height: 0;
  overflow: hidden;
  transition: height 420ms var(--ease);
}

.segment-item.is-open .segment-panel {
  height: auto;
}

.segment-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0 32px 24px;
}

.segment-panel h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Lexend Deca", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.segment-panel p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

/* Keep the reveal offset independent from the button's hover transform. */
.segment-link {
  align-self: flex-start;
  opacity: 0;
  translate: 0 10px;
  transition:
    opacity 320ms var(--ease),
    translate 320ms var(--ease),
    color 180ms ease,
    transform 180ms ease;
}

.segment-item.is-open .segment-panel h3 {
  opacity: 1;
  transform: none;
  transition-delay: 180ms;
}

.segment-item.is-open .segment-panel p {
  opacity: 1;
  transform: none;
  transition-delay: 260ms;
}

.segment-item.is-open .segment-link {
  opacity: 1;
  translate: 0;
  transition-delay: 260ms, 260ms, 0ms, 0ms;
}

.segment-mobile-image {
  display: none;
  overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.segment-mobile-image img {
  width: 100%;
  height: 308px;
  object-fit: cover;
}

.segment-image-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink-soft);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

/* The segment artwork enters with opacity only; image changes stay as crossfades. */
.segment-image-panel.reveal-target,
.segment-image-panel.reveal-target.is-revealed {
  transform: none;
  transition-property: opacity;
}

.segment-panel-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity .8s var(--ease);
  will-change: opacity;
}

.segment-panel-image.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
}

/* Do not reveal an image until its first decode is complete. */
.segment-panel-image.is-managed:not(.is-ready) {
  opacity: 0;
}

.segment-empty {
  padding: 28px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .segments-layout {
    grid-template-columns: 1fr;
  }

  .segment-item {
    margin-bottom: 12px;
  }

  .segment-button {
    min-height: 68px;
    padding: 16px 18px;
  }

  .segment-panel-inner {
    padding: 24px 0 12px;
  }

  .segment-mobile-image {
    display: block;
  }

  .segment-image-panel {
    display: none;
  }
}

/* Featured projects */
.featured-section {
  /* White caro: 1px lines in a 28px tile — tiled repetition stays pixel-crisp,
     unlike full-area repeating gradients which blur on some renderers */
  background-color: #fff;
  background-image:
    linear-gradient(rgba(188, 34, 34, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 34, 34, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
}

.featured-section .section-heading--light {
  border-bottom: 0;
}

.featured-title-banner {
  color: var(--ink);
}

.featured-title-banner {
  color: var(--ink);
}

.featured-grid {
  --featured-content-duration: 420ms;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.project-feature {
  position: relative;
  /* Coteccons icp-section recipe: grow-only flex distribution animates
     buttery-smooth; basis-percentage transitions stutter during shrink. */
  flex: 1 0 0;
  min-width: 0;
  height: clamp(480px, 43vw, 560px);
  overflow: hidden;
  background: var(--charcoal);
  /* Own GPU layer so the per-frame cover re-crop during expansion doesn't jank */
  transform: translateZ(0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 0);
  transition:
    flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-feature.is-active {
  /* 2.076:1 matches Coteccons Figma 652px active / 314px inactive */
  flex-grow: 2.076;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

/* Scroll reveal also targets these cards, but its `transition` shorthand would
   wipe the flex-grow glide above (same specificity, later in file). Re-declare
   the card motion here at higher specificity: staggered fade on first reveal,
   zero delay afterwards so hover expansion starts instantly. */
.project-feature.reveal-target {
  transform: none;
  transition: opacity 700ms var(--ease), flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1), clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.project-feature.reveal-target.is-revealed {
  transform: none;
  transition: opacity 700ms var(--ease), flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1), clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0ms;
}

.project-feature-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.project-feature-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchored left so card expansion "reveals" rightward (Coteccons icp-card-img) */
  object-position: left center;
  /* Zoom rides the same 450ms curve as the card's flex-grow expansion */
  transition: filter 300ms ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-feature-link:hover img {
  filter: saturate(1.05);
}

.project-feature.is-active img {
  transform: scale(1.12);
}

.project-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 8, 0.02) 35%, rgba(6, 8, 8, 0.9) 100%);
}

.project-feature-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 126px;
  align-items: center;
  gap: 8px 20px;
  padding: 24px 26px;
  /* Ink fading from transparent to solid over the photo */
  background: linear-gradient(180deg, rgba(23, 27, 27, 0) 0%, var(--ink) 82%);
  color: var(--white);
  transition: background-color var(--featured-content-duration) var(--ease);
}

.project-feature.is-active .project-feature-copy {
  background: linear-gradient(180deg, rgba(23, 27, 27, 0) 0%, var(--ink) 82%);
}

.project-feature.is-active .project-feature-copy > span {
  color: var(--white);
}

.project-feature-copy strong {
  position: relative;
  justify-self: start;
  padding-bottom: 8px;
  font-size: clamp(1.25rem, 2.1vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: pretty;
}

/* Underline sweeps left -> right when the card is selected */
.project-feature-copy strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-feature.is-active .project-feature-copy strong::after {
  transform: scaleX(1);
}

.project-feature-copy small {
  grid-column: 1;
  overflow: hidden;
  max-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  opacity: 1;
  transition:
    max-height var(--featured-content-duration) var(--ease),
    opacity 300ms ease;
}

.project-feature-desc {
  grid-column: 1;
  overflow: hidden;
  margin: 0;
  max-height: 3.6em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
  opacity: 1;
  transition:
    max-height var(--featured-content-duration) var(--ease),
    opacity 300ms ease;
}

.project-feature:not(.is-active) .project-feature-copy small,
.project-feature:not(.is-active) .project-feature-copy .project-feature-desc {
  max-height: 0;
  opacity: 0;
}

/* Reveal text only after the card's width expansion has finished (450ms) */
.project-feature.is-active .project-feature-copy small,
.project-feature.is-active .project-feature-copy .project-feature-desc {
  transition-delay: 450ms;
}

.project-feature-copy > span {
  grid-row: 1;
  grid-column: 2;
  font-size: 24px;
  transition: transform var(--featured-content-duration) var(--ease);
}

.project-feature-link:hover .project-feature-copy > span {
  transform: translate(5px, -5px);
}

/* Philosophy */
.philosophy-section {
  background: var(--cream);
}

.philosophy-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 8vw, 128px);
  margin-bottom: clamp(48px, 7vw, 90px);
}

.philosophy-intro p:last-child {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
  align-items: start;
}

.discipline-card {
  position: relative;
  height: clamp(380px, 40vw, 560px);
  overflow: hidden;
  background: var(--charcoal);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.discipline-card:nth-child(even) {
  margin-top: 56px;
}

.discipline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.discipline-card:hover img {
  transform: scale(1.045);
}

.discipline-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 78%, rgba(177, 41, 43, 0.92));
  content: "";
}

.discipline-card figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--white);
}

.discipline-card figcaption span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.discipline-card figcaption strong {
  font-size: clamp(1rem, 1.65vw, 1.5rem);
  line-height: 1.15;
}

/* News */
.news-section {
  background: var(--white);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(40px, 7vw, 100px);
}

.news-feature-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-deep);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.news-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 760ms var(--ease);
}

.news-feature-media:hover img {
  transform: scale(1.035);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-meta span {
  color: var(--red);
}

.news-feature h3,
.news-list-item h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.news-feature h3 {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
}

.news-feature h3 a,
.news-list-item h3 a,
.listing-card h2 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 320ms var(--ease);
}

.news-feature h3 a:hover,
.news-list-item h3 a:hover,
.listing-card h2 a:hover {
  background-size: 100% 1px;
}

.news-feature > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 20px;
  min-height: 128px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-list-number {
  align-self: start;
  padding-top: 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.news-list-item .news-meta {
  margin: 0 0 8px;
}

.news-list-item h3 {
  font-size: 15px;
}

.news-list-thumb {
  width: 104px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-empty {
  padding: 48px;
  border: 1px solid var(--line);
}

/* Contact */
.contact-section {
  padding-block: clamp(70px, 8vw, 112px);
  background: var(--cream-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: clamp(52px, 10vw, 156px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 760px;
  color: var(--ink);
}

.contact-copy > p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-actions {
  display: grid;
  gap: 8px;
}

.contact-action {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  overflow: hidden;
  padding-inline: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 var(--red);
  transition: color 420ms var(--ease), border-color 420ms var(--ease), box-shadow 420ms var(--ease);
}

.contact-action::before {
  position: absolute;
  inset: 0;
  background: rgba(177, 41, 43, 0.08);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease);
}

.contact-action > * {
  position: relative;
}

.contact-action:hover,
.contact-action:focus-visible {
  border-color: rgba(177, 41, 43, 0.42);
  box-shadow: inset 3px 0 0 var(--red);
  color: var(--red);
}

.contact-action:hover::before,
.contact-action:focus-visible::before {
  transform: scaleX(1);
}

.contact-action > span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 420ms var(--ease);
}

.contact-action:hover > span:first-child,
.contact-action:focus-visible > span:first-child {
  color: var(--ink);
}

.contact-action strong {
  overflow-wrap: anywhere;
  font-size: clamp(0.94rem, 1.25vw, 1.12rem);
}

.contact-action > span:last-child {
  transition: transform 420ms var(--ease);
}

.contact-action:hover > span:last-child,
.contact-action:focus-visible > span:last-child {
  transform: translate(3px, -3px);
}

.contact-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.contact-note:empty {
  display: none;
}

/* Footer */
.site-footer {
  background: #131919;
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 0.75fr));
  gap: clamp(32px, 6vw, 88px);
  padding-top: 72px;
  padding-bottom: 56px;
}

.brand-mark--footer {
  margin-right: 0;
}

.brand-mark--footer img {
  width: 86px;
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-mark--footer .logo-sub {
  color: var(--white);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
}

.footer-column h2 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  transition: color 180ms ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-column p {
  max-width: 250px;
  margin: 8px 0 0;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* Content pages */
.page-masthead,
.detail-masthead,
.article-masthead {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(215, 25, 32, 0.18), transparent 32%),
    var(--ink);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--white);
}

.page-masthead::after,
.detail-masthead::after,
.article-masthead::after {
  position: absolute;
  right: -6vw;
  bottom: -52%;
  width: 36vw;
  height: 36vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  transform: rotate(35deg);
}

.page-masthead-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 4.5vw, 60px);
}

.page-masthead h1,
.detail-masthead h1,
.article-masthead h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-transform: uppercase;
}

/* ponytail: info pages keep the masthead look at a smaller scale. */
.page-masthead h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.page-masthead-inner > p:last-child {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

/* ponytail: dark mastheads need the light-red eyebrow — base .section-index
   (#b1292b) is unreadable on near-black. */
.page-masthead .section-index,
.detail-masthead .section-index,
.article-masthead .section-index {
  color: #ef777e;
}

.listing-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* Project type filter (/du-an?loai=...): buttons reuse the .button-link
   language — solid red chamfer when active, red outline chamfer when
   inactive. */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.project-filter nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Centered variant: buttons centered. */
.project-filter--center {
  flex-direction: column;
  justify-content: center;
}
.project-filter--center nav {
  justify-content: center;
}

/* ponytail: the projects masthead already ends with up to 60px air — a full
   section-space below it doubles the gap, so the filter hugs the header. */
.page-masthead--projects + .listing-section {
  padding-top: clamp(28px, 4vw, 48px);
}

.project-listing-grid,
.article-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 92px) clamp(20px, 4vw, 54px);
}

.article-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-card {
  min-width: 0;
}

.listing-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--cream-deep);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 760ms var(--ease);
}

.listing-card-media:hover img {
  transform: scale(1.04);
}

.listing-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--red);
  color: var(--white);
}

.listing-card-copy {
  padding-top: 20px;
}

.listing-card-copy > p:first-child {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.listing-card-copy > p:last-child:not(:first-child) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.listing-card--article .listing-card-copy .news-meta {
  margin-top: 0;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: clamp(54px, 8vw, 100px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pagination > :last-child {
  justify-self: end;
}

.pagination a {
  color: var(--red);
  transition: color 180ms ease;
}

.pagination a:hover {
  color: var(--red-deep);
}

.pagination > span {
  color: var(--muted);
}

/* ponytail: compact single-column header — title block on top, meta as a
   red-ruled strip below. The old side-by-side hero ate a full viewport. */
.detail-masthead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1160px;
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.detail-masthead-grid h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

.detail-masthead-grid .back-link {
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--white);
}

.detail-deck,
.article-deck {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0 28px;
  margin: 0;
  border-top: 2px solid var(--red);
}

.meta-grid > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}

.meta-grid dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.detail-shell,
.article-shell,
.content-layout {
  padding-top: clamp(58px, 8vw, 112px);
  padding-bottom: var(--section-space);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.content-layout.has-page-toc {
  grid-template-columns: minmax(180px, 220px) minmax(0, 820px);
  justify-content: space-between;
  gap: clamp(46px, 7vw, 104px);
}

.content-shell {
  min-width: 0;
}

.content-layout .prose {
  margin-inline: 0;
}

/* Without a TOC the 820px prose must center in its track — margin 0 above
   (needed beside the TOC) otherwise pins it 80px left of center. */
.content-layout:not(.has-page-toc) .prose {
  margin-inline: auto;
}

/* ponytail: article pages nest the TOC layout inside .article-shell (cover
   stays full-width above) — kill the doubled air, shell + cover own it. */
.article-shell .content-layout {
  padding-top: 0;
  padding-bottom: 0;
}

.page-toc {
  position: sticky;
  top: 118px;
  align-self: start;
  padding-top: 16px;
  border-top: 2px solid var(--red);
}

.page-toc > p {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 180ms ease, padding-left 180ms ease;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  padding-left: 6px;
  color: var(--red);
}

.article-shell {
  max-width: 1100px;
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.detail-cover-image {
  display: block;
  width: 100%;
  max-height: 820px;
  margin: 0 0 clamp(48px, 7vw, 88px);
  object-fit: cover;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.prose {
  max-width: 820px;
  margin-inline: auto;
  color: #373535;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.prose h1,
.prose h2 {
  margin: 2em 0 0.7em;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

.prose p {
  margin-bottom: 1.4em;
}

.prose a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-block: 28px;
}

/* Project detail bodies are often bare photo stacks (no floats/figures in
   this content): honor WP aligncenter and center every image paragraph in
   the shell. Scoped to .detail-page so article prose is untouched. */
.detail-page .prose p:has(img) {
  text-align: center;
}

.prose blockquote {
  margin: 2.2em 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--red);
  color: var(--red-deep);
  font-size: 1.28em;
  font-weight: 700;
  line-height: 1.55;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose iframe {
  max-width: 100%;
}

.prose [style*="text-align: justify"] {
  text-align: left !important;
}

.article-prose .aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

/* Editorial rhythm for /tin-tuc/<id>: lede + drop cap, pull quotes,
   full-column image breaks, red list markers. All class/element hooks —
   no CMS markup changes needed. */
.article-prose .article-lede {
  color: var(--ink);
  font-size: 1.18em;
  font-weight: 600;
  line-height: 1.7;
}

.article-prose .article-lede::first-letter {
  float: left;
  padding-right: 0.12em;
  color: var(--red);
  font-size: 3.4em;
  font-weight: 800;
  line-height: 0.85;
}

.article-prose blockquote {
  position: relative;
  margin: 2.6em 0;
  padding: 0.4em 0;
  border-left: 0;
  color: var(--red-deep);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.5;
}

.article-prose blockquote::before {
  content: "“";
  position: absolute;
  left: -0.32em;
  top: -0.3em;
  color: var(--red);
  font-size: 2.2em;
  line-height: 1;
  opacity: 0.35;
  pointer-events: none;
}

.article-prose p:has(img) {
  margin-block: 2.2em;
}

.article-prose p:has(img) img {
  width: 100%;
  height: auto;
  margin: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.article-prose ul li::marker,
.article-prose ol li::marker {
  color: var(--red);
  font-weight: 800;
}

/* Inset sections: body tabbed in with a faint guide rule, h2 pulled flush.
   Intro content before the first h2 is never wrapped, so it stays full-width. */
.article-prose .article-sec {
  --sec-tab: clamp(1.1rem, 3vw, 1.8rem);
  margin-top: 2.4em;
  padding-left: var(--sec-tab);
}

.article-prose .article-sec > h2:first-child {
  margin-top: 0;
  margin-left: calc(-1 * var(--sec-tab));
}

/* ponytail: body heads must sit under the masthead title (2.1rem max) —
   the global prose h2 runs to 3.5rem and used to dwarf it. */
.article-prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.article-prose h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

/* Services page (/dich-vu): editorial sections assembled by hk-cons.js from flat
   rich text — numbered alternating text/media blocks + red contact panel.
   The flat h2/ul/img rules double as the no-JS fallback (clean stacked page). */
.services-page {
  background: #f5f0e8;
}

.services-page .content-layout {
  grid-template-columns: minmax(0, 100%);
}

.services-page .site-shell.content-layout {
  --shell: 1520px;
  padding-inline: clamp(20px, 3vw, 44px);
}

.services-page .content-layout.has-page-toc {
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  justify-content: start;
  gap: clamp(28px, 4vw, 64px);
}

.services-page .prose {
  max-width: none;
}

.services-page .service-intro {
  max-width: 820px;
}

.services-page .prose > h2 {
  margin-top: 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

/* ponytail: kicker style applies ONLY to JS-tagged .kicker paragraphs — never to
   p > strong:only-child by shape, since body copy like "<p>…<strong>x</strong>…</p>"
   has a sole-strong-element-child too and would get letterspaced like a kicker. */
.services-page .prose > p.kicker > strong {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-page .service-block {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: stretch;
  max-width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(28px, 4vw, 56px);
}

.services-page .service-block:first-of-type {
  padding-top: clamp(28px, 4vw, 52px);
}

.services-page .service-block + .service-block {
  border-top: 1px solid var(--line);
}

.services-page .service-block.is-flip .service-copy {
  order: 2;
}

.services-page .service-copy {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-page .service-num {
  margin: 0;
  color: var(--red);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.9;
  transform-origin: left center;
  transition: transform 280ms var(--ease);
}

.service-num:hover {
  transform: scale(1.04);
}

@supports (-webkit-text-stroke: 2px #b1292b) {
  .services-page .service-num {
    color: #fff;
    -webkit-text-stroke: 2px var(--red);
  }
}

/* Grid fill inside the outlined numerals (reference look). Gated separately so
   browsers without background-clip:text keep the plain outline, never nothing. */
@supports ((-webkit-text-stroke: 2px #b1292b) and (-webkit-background-clip: text)) {
  .services-page .service-num {
    /* ponytail: transparent ink lets the clipped white + grid show through —
       opaque color would bury the caro. */
    color: transparent;
    background-image:
      linear-gradient(rgba(177, 41, 43, 0.35) 1px, transparent 1px),
      linear-gradient(90deg, rgba(177, 41, 43, 0.35) 1px, transparent 1px),
      linear-gradient(#fff, #fff);
    background-size: 4px 4px, 4px 4px, auto;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.services-page .service-copy > p.kicker {
  margin-top: 2px;
  margin-bottom: 8px;
}

.services-page .service-copy > p:empty {
  display: none;
}

.services-page .service-copy > p.kicker > strong {
  font-size: 13px;
  letter-spacing: 0.18em;
}

.services-page .service-copy h2 {
  margin: 0 0 0.55em;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.services-page .service-copy .service-lead {
  color: var(--ink);
  font-size: 1.1em;
  font-weight: 700;
}

.services-page .prose > ul,
.services-page .service-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.services-page .prose > ul li,
.services-page .service-copy ul li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  background: var(--white);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.services-page .service-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  height: 100%;
  max-height: 560px;
  min-height: 240px;
  margin: 0;
  align-self: center;
}

.services-page .service-media img {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 320ms var(--ease);
}

.services-page .service-media img:hover {
  transform: scale(1.03);
}

.services-page .service-media img:first-child {
  grid-column: 1 / -1;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
}

.services-page .service-media img:not(:first-child) {
  aspect-ratio: 3 / 2;
}

/* ponytail: blocks 01 + 03 get a taller main image — the 1fr row absorbs it. */
.services-page .service-block[data-service-index="1"] .service-media,
.services-page .service-block[data-service-index="3"] .service-media {
  max-height: 660px;
}

.services-page .service-block.is-solo {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.services-page .prose > p:has(img) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.services-page .prose > p:has(img) img {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.services-page .prose .services-cta,
.about-page .prose .services-cta {
  max-width: var(--shell);
  margin-top: clamp(60px, 8vw, 110px);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(115deg, var(--red-deep) 0%, var(--red) 55%, #d03538 100%);
  background-size: 76px 76px, 76px 76px, cover;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  color: var(--white);
}

.services-page .prose .services-cta h2,
.about-page .prose .services-cta h2 {
  margin: 0 0 0.5em;
  color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
}

.services-page .prose .services-cta p,
.about-page .prose .services-cta p {
  max-width: 62ch;
  margin-bottom: 1em;
  color: rgba(255, 255, 255, 0.85);
}

.services-page .prose .services-cta p:last-child,
.about-page .prose .services-cta p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: none;
  margin-top: 1.6em;
  margin-bottom: 0;
}

.services-page .prose .services-cta a,
.about-page .prose .services-cta a {
  text-decoration: none;
}

/* Services buttons: keep the site lift, add a touch of scale. */
.services-page .button-link:hover,
.about-page .button-link:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Banner buttons keep red labels on their light surfaces — the global
   .prose .button-link white-text guard must not whiten them. */
.services-page .prose .services-cta .button-link--fill-light,
.about-page .prose .services-cta .button-link--fill-light {
  color: var(--red);
}

.services-page .prose .services-cta .button-link--fill-light:hover,
.about-page .prose .services-cta .button-link--fill-light:hover {
  background: var(--white);
  color: var(--red);
}

.services-page .prose .services-cta .button-link--outline,
.about-page .prose .services-cta .button-link--outline {
  color: var(--red);
}

.services-page .prose .services-cta .button-link--outline:hover,
.about-page .prose .services-cta .button-link--outline:hover {
  color: var(--red-deep);
}

.services-page .prose .services-cta .button-link--outline:hover::after,
.about-page .prose .services-cta .button-link--outline:hover::after {
  background: var(--white);
}

/* About page (/gioi-thieu): bespoke sections ported from v3 — full-bleed
   bands with shelled inners, same red-caro art sheet as the live site.
   The TOC survives as a sticky horizontal bar (same markup/JS as the
   sidebar variant) so bands can bleed edge to edge. */
.ab-kicker {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.about-body h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.about-body h2 em {
  color: var(--red);
  font-style: normal;
}

/* Stats band: red caro grid on white, H.K watermark, red numerals. */
.ab-stats {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px at 92% 110%, rgba(177, 41, 43, 0.07), transparent 65%),
    linear-gradient(rgba(177, 41, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 41, 43, 0.05) 1px, transparent 1px),
    #fff;
  background-size: auto, 44px 44px, 44px 44px, auto;
  padding: clamp(56px, 7vw, 88px) 0;
}

.ab-stats::after {
  content: "H.K";
  position: absolute;
  right: 1rem;
  bottom: -2.2rem;
  font-weight: 800;
  font-size: clamp(8rem, 18vw, 14rem);
  line-height: 1;
  color: rgba(177, 41, 43, 0.04);
  -webkit-text-stroke: 1px rgba(177, 41, 43, 0.12);
  pointer-events: none;
  user-select: none;
}

.ab-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ab-stats-grid > div {
  padding: 0.8rem 1rem;
  text-align: center;
}

.ab-stats-grid b {
  display: block;
  color: var(--red);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ponytail: the "+" lives in its own <i> outside [data-count] so the
   count-up script never duplicates it — and it renders smaller, per ref. */
.ab-stats-grid b i {
  margin-left: 0.06em;
  font-size: 0.58em;
  font-style: normal;
  font-weight: 800;
}

/* ponytail: scope to the div's own last child — a bare span:last-child also
   matches the numeral when a stat has no <i> suffix (the lonely "7"). */
.ab-stats-grid > div > span:last-child {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Intro: sticky title + lead copy + tick list. */
.ab-intro {
  background: var(--paper);
  padding: var(--section-space) 0;
}

.ab-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.ab-intro-grid > div:first-child {
  position: sticky;
  top: calc(var(--header-height) + 22px);
}

.ab-intro-grid > div:first-child .text-link {
  margin-top: 1.2rem;
}

.ab-lead {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 600;
}

.ab-intro-grid > div:last-child p {
  color: var(--ink-2);
}

.ab-intro-grid > div:last-child p.ab-lead {
  color: var(--ink);
}

.ab-ticks {
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.ab-ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.ab-ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  display: inline-flex;
  width: 1.3em;
  height: 1.3em;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Journey: intro + red-ruled timeline cards. */
.ab-journey {
  background: var(--paper-2);
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line-2);
}

.ab-journey-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.ab-journey-grid > div:first-child p {
  margin: 0;
  color: var(--ink-2);
}

.ab-timeline {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0 0 0 1.6rem;
  border-left: 2px solid var(--line-2);
  list-style: none;
}

.ab-timeline li {
  position: relative;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 350ms var(--ease);
}

.ab-timeline li:hover {
  border-color: var(--line-2);
  box-shadow: 0 20px 44px rgba(35, 17, 20, 0.09);
  transform: translateY(-3px);
}

.ab-timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 6px);
  top: 1.7rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(177, 41, 43, 0.15);
}

.ab-timeline b {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--red);
  font-size: 0.8rem;
}

.ab-timeline h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.ab-timeline p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.ab-timeline strong {
  display: block;
  margin-top: 0.7rem;
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ab-timeline strong span {
  margin-left: 0.4rem;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Values: caro art sheet + 3 cards with red top rule and ghost numerals. */
.ab-values {
  background:
    radial-gradient(640px at 6% 96%, rgba(177, 41, 43, 0.13), transparent 70%),
    linear-gradient(rgba(177, 41, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 41, 43, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 56px 56px, 56px 56px, auto;
  padding: var(--section-space) 0;
}

.ab-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ab-values-grid article {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper-2);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 350ms var(--ease), background 350ms var(--ease);
}

.ab-values-grid article::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-bottom: 1.2rem;
  background: var(--red);
}

.ab-values-grid article:hover {
  border-color: var(--line-2);
  background: #fff;
  box-shadow: 0 20px 44px rgba(35, 17, 20, 0.09);
  transform: translateY(-4px);
}

.ab-values-no {
  margin: 0 0 0.6rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  background-image:
    linear-gradient(rgba(177, 41, 43, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 41, 43, 0.3) 1px, transparent 1px);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
}

.ab-values-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.ab-values-grid p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* Letter: photo + pull quote. */
.ab-letter {
  background: var(--paper-2);
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line-2);
}

.ab-letter-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ab-letter-grid figure {
  margin: 0;
}

.ab-letter-grid img {
  width: 100%;
  height: clamp(320px, 36vw, 520px);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(122, 12, 29, 0.45);
}

.ab-letter-grid p {
  color: var(--ink-2);
  font-size: 0.96rem;
}

.ab-sign {
  margin-top: 1.4rem;
  color: var(--ink);
  font-weight: 800;
}

.ab-sign span {
  display: block;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Org: board strip + department cards. */
.ab-org {
  background: #fff;
  padding: var(--section-space) 0;
}

.ab-org-sub {
  max-width: 44em;
  color: var(--ink-2);
}

.ab-org-board {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.4rem 1.8rem;
  border-radius: 10px;
  background: var(--red-deep);
  color: #fff;
}

.ab-org-board strong {
  font-size: 1.2rem;
}

.ab-org-board span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.ab-org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.ab-org-grid article {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: var(--paper-2);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 350ms var(--ease);
}

.ab-org-grid article:hover {
  background: #fff;
  box-shadow: 0 20px 44px rgba(35, 17, 20, 0.09);
  transform: translateY(-3px);
}

.ab-org-grid h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.ab-org-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

/* Culture: 3-up image cards. */
.ab-culture {
  background: var(--paper);
  padding: var(--section-space) 0;
}

.ab-culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ab-culture-card {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
}

.ab-culture-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ab-culture-card h3 {
  margin: 1.1rem 1.3rem 0.3rem;
  font-size: 1.05rem;
}

.ab-culture-card p {
  margin: 0 1.3rem 1.3rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* CTA: red gradient panel; white primary + ghost secondary. */
.ab-cta {
  background: var(--paper);
  padding-top: 0;
  padding-bottom: var(--section-space);
}

.ab-cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 32px 64px -32px rgba(122, 12, 29, 0.55);
}

.ab-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.ab-cta-box h2 {
  position: relative;
  max-width: 22em;
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ab-cta-box h2 em {
  color: #fff;
}

.ab-cta-box p {
  position: relative;
  max-width: 42em;
  color: rgba(255, 255, 255, 0.85);
}

.ab-cta-box p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

/* ponytail: the outline variant's white inset would read as a second solid
   button on red — neutralize it into a true ghost button here. */
.ab-cta-box .ab-cta-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  clip-path: none;
  color: #fff;
}

.ab-cta-box .ab-cta-ghost::before,
.ab-cta-box .ab-cta-ghost::after {
  content: none;
}

.ab-cta-box .ab-cta-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--red-deep);
}

/* Process page (/quy-trinh): bespoke sections ported from v3 process-page —
   full-bleed bands with shelled inners, same red-caro art sheet as /gioi-thieu.
   Keeps the shared page-masthead; v3 page-hero is dropped. */
.proc-body h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.proc-body h2 em {
  color: var(--red);
  font-style: normal;
}

/* Stats band: red caro grid on white, H.K watermark, red numerals. */
.proc-stats {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px at 92% 110%, rgba(177, 41, 43, 0.07), transparent 65%),
    linear-gradient(rgba(177, 41, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 41, 43, 0.05) 1px, transparent 1px),
    #fff;
  background-size: auto, 44px 44px, 44px 44px, auto;
  padding: clamp(56px, 7vw, 88px) 0;
}

.proc-stats::after {
  content: "H.K";
  position: absolute;
  right: 1rem;
  bottom: -2.2rem;
  font-weight: 800;
  font-size: clamp(8rem, 18vw, 14rem);
  line-height: 1;
  color: rgba(177, 41, 43, 0.04);
  -webkit-text-stroke: 1px rgba(177, 41, 43, 0.12);
  pointer-events: none;
  user-select: none;
}

.proc-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proc-stats-grid > div {
  min-width: 0;
  padding: 0.8rem 1rem;
  text-align: center;
}

.proc-stats-grid b {
  display: block;
  margin: 0;
  color: var(--red);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.proc-stats-grid > div > span:last-child {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Overview + principles. */
.proc-overview {
  background: #fff;
  padding: var(--section-space) 0;
}

.proc-overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.proc-overview-grid > div:first-child > p {
  margin: 0;
  color: var(--ink-2);
}

.proc-overview h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.proc-overview-grid > div:last-child > p {
  margin: 0 0 1.2rem;
  color: var(--ink-2);
}

.proc-overview ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proc-overview li {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
}

/* Steps: journey cards with ghost numerals. */
.proc-steps {
  background: var(--paper-2);
  padding: var(--section-space) 0;
}

.proc-steps-head > p {
  max-width: 44em;
  margin: 0 0 2rem;
  color: var(--ink-2);
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.4rem);
}

.proc-grid article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.8rem 4.5rem 1.8rem 1.8rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 350ms var(--ease);
}

.proc-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(177, 41, 43, 0));
}

.proc-grid article:hover {
  border-color: var(--line-2);
  box-shadow: 0 20px 44px rgba(35, 17, 20, 0.09);
  transform: translateY(-4px);
}

/* ponytail: a lone card on the last row spans full width; even rows stay uniform. */
.proc-grid article:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
}

.proc-num {
  position: absolute;
  right: 1rem;
  bottom: -0.4rem;
  margin: 0;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(177, 41, 43, 0.16);
  pointer-events: none;
  user-select: none;
  transition: color 350ms ease;
}

.proc-grid article:hover .proc-num {
  color: rgba(177, 41, 43, 0.3);
}

.proc-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.proc-grid article > p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* CTA: red gradient panel; white primary + ghost secondary. */
.proc-cta {
  background: var(--paper-2);
  padding-top: 0;
  padding-bottom: var(--section-space);
}

.proc-cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 32px 64px -32px rgba(122, 12, 29, 0.55);
}

.proc-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.proc-cta-box h2 {
  position: relative;
  max-width: 20em;
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.proc-cta-box h2 em {
  color: #fff;
}

.proc-cta-box p {
  position: relative;
  max-width: 42em;
  color: rgba(255, 255, 255, 0.85);
}

.proc-cta-box p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

/* ponytail: same ghost-button fix as .ab-cta-box — kill the outline
   variant's white inset so it reads as a ghost on red. */
.proc-cta-box .proc-cta-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  clip-path: none;
  color: #fff;
}

.proc-cta-box .proc-cta-ghost::before,
.proc-cta-box .proc-cta-ghost::after {
  content: none;
}

.proc-cta-box .proc-cta-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--red-deep);
}

@media (max-width: 1024px) {
  .proc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proc-grid article:last-child:nth-child(3n+1) {
    grid-column: auto;
  }

  .proc-grid article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .proc-grid article {
    padding: 1.5rem 4rem 1.5rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .proc-overview-grid {
    grid-template-columns: 1fr;
  }

  .proc-overview-grid > div:last-child {
    margin-top: 0.5rem;
  }

  .proc-overview ul {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .proc-grid article:hover {
    transform: none;
  }
}

@media (max-width: 700px) {
  .proc-stats-grid {
    grid-template-columns: 1fr;
  }

  .proc-stats-grid > div + div {
    border-top: 1px solid var(--line-2);
  }

  .proc-num {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .proc-grid {
    grid-template-columns: 1fr;
  }

  .proc-grid article:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .proc-cta-box {
    border-radius: 10px;
  }
}

/* Detail pages (du-an/<slug>, tin-tuc/<slug>): same cream + caro art sheet
   as /dich-vu. The CTA panel reuses .proc-cta-box — no duplicate styles. */
.detail-page {
  background:
    linear-gradient(rgba(177, 41, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 41, 43, 0.04) 1px, transparent 1px),
    #f5f0e8;
  background-size: 56px 56px, 56px 56px, auto;
}

.project-gallery-area {
  margin-top: clamp(44px, 7vw, 84px);
}

.project-gallery-area img {
  width: 100%;
  height: auto;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 320ms var(--ease);
}

.project-gallery-area img:hover {
  transform: scale(1.02);
}

/* ponytail: image-only projects (e.g. nl-building) dump one photo per <p> —
   without this they hug the left edge instead of centering in the column.
   Multi-image paragraphs are handled by the gallery grid below. */
.detail-shell .prose p:not(:has(> img:nth-of-type(2))):has(> img) img {
  display: block;
  margin-inline: auto;
}

/* ponytail: WP bodies dump all photos into one <p> (e.g. 25 in chung-cu-36).
   Multi-image paragraphs become a uniform 2-col gallery — 4/3 crop evens out
   the mixed native ratios. Single-image paragraphs keep the editorial look. */
.detail-shell .prose p:has(> img:nth-of-type(2)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-shell .prose p:has(> img:nth-of-type(2)) img {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 320ms var(--ease);
}

.detail-shell .prose p:has(> img:nth-of-type(2)) img:hover {
  transform: scale(1.02);
}

.detail-cta-box {
  margin-top: clamp(48px, 7vw, 88px);
}

.detail-cta {
  max-width: 820px;
  margin: 54px auto 0;
}

.article-masthead-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.article-masthead h1 {
  max-width: 1140px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  text-transform: none;
}

.article-masthead .article-deck {
  margin-top: 16px;
}

.article-byline {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Progressive reveals; content remains visible when JavaScript is unavailable. */
.reveal-target {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-target.is-revealed {
  opacity: 1;
  transform: none;
}

/* Compatibility for existing CMS content patterns. */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Tablet */
@media (max-width: 1080px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    min-height: 72px;
  }

  body:not(.has-hero) {
    padding-top: 72px;
  }

  .brand-mark img {
    height: 52px;
  }

  .brand-mark {
    margin-right: auto;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: 0;
    order: 1;
  }

  .hk-search {
    order: 0;
    margin-right: 0;
  }

  .header-nav {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background:
      radial-gradient(420px at 108% 112%, rgba(197, 22, 46, .1), transparent 65%),
      linear-gradient(rgba(197, 22, 46, .05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(197, 22, 46, .05) 1px, transparent 1px),
      #fff;
    background-size: auto, 44px 44px, 44px 44px, auto;
    border-radius: 0;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 260ms var(--ease), visibility 180ms;
  }

  .header-nav::after {
  content: "HK";
  position: absolute;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 0;
  font-weight: 700;
    font-size: 6.5rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(197, 22, 46, .16);
    pointer-events: none;
    user-select: none;
  }

  .header-nav nav {
    position: relative;
    z-index: 1;
  }

  .nav-toggle:checked ~ .header-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

.header-nav {
  order: 3;
}

.header-nav ul {
    display: grid;
    gap: 0;
    padding: 18px var(--gutter) 28px;
  }

  .header-nav li {
    border-bottom: 1px solid var(--line);
  }

  .header-nav a {
    width: 100%;
    min-height: 58px;
    justify-content: space-between;
    font-size: 14px;
  }

  .header-nav a::after {
    right: auto;
    bottom: 0;
    width: 52px;
  }

  /* v1 port: open menu forces ink text (the #id outranks the hero white-link rule),
     active link gets v1's left red bar instead of the underline tick. */
  #nav-toggle:checked ~ .header-nav nav a {
    color: var(--ink);
  }

  #nav-toggle:checked ~ .header-nav nav a.is-active {
    color: var(--red);
  }

  .header-nav nav a {
    padding-left: 1.1rem;
  }

  .header-nav nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 1.3em;
    border-radius: 3px;
    background: var(--red);
    transform: translateY(-50%) scaleY(0);
    transition: transform 250ms ease;
  }

  .header-nav nav a::after {
    display: none;
  }

  #nav-toggle:checked ~ .header-nav nav a.is-active::before {
    transform: translateY(-50%) scaleY(1);
  }

  .hk-search-form {
    top: calc(100% + 14px);
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .stat-line:nth-child(odd) {
    padding-right: 26px;
  }

  .stat-line:nth-child(even) {
    padding-left: 26px;
    border-left: 1px solid var(--line);
  }

  .services-grid,
  .discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipline-card:nth-child(even) {
    margin-top: 0;
    transform: none;
  }

  .featured-grid {
    gap: 18px;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 34px;
  }

  .article-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile + tablet stat list: no divider lines at all — numbers float clean on
   the blueprint grid. Desktop keeps its row dividers. */
@media (max-width: 1080px) {
  .stat-line {
    border-top: 0;
  }

  .stat-line:nth-child(even) {
    border-left: 0;
  }

  .stat-line:last-child {
    border-bottom: 0;
  }
}

/* Mobile and narrow tablet */
@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --section-space: 78px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .hk-search-form {
    position: fixed;
    top: 82px;
    right: 20px;
    left: 20px;
    width: auto;
  }

  .section-heading,
  .philosophy-intro {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .section-heading h2,
  .about-story h2,
  .philosophy-intro h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 11.6vw, 3.45rem);
    line-height: 0.98;
  }

  .home-hero,
  .hero-content {
    min-height: max(660px, calc(100svh - 72px));
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 28px;
    padding-top: 94px;
    padding-bottom: 32px;
  }

  .hero-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero-panel {
    min-height: 250px;
    padding: 26px 24px 22px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  }

  .hero-panel h2 {
    font-size: 1.4rem;
  }

  .news-rail-inner {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-right: 0;
    padding-left: 0;
  }

  .news-rail-label {
    min-width: 92px;
    margin-left: 0;
    padding: 0 18px 0 14px;
    font-size: 12px;
  }

  .news-rail-track {
    padding-inline: 14px;
  }

  .news-rail-track li {
    justify-content: flex-start;
    font-size: 12px;
  }

  .news-rail-end,
  .news-rail-notch {
    display: none;
  }

  .about-collage {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: 124px 168px;
  }

  .about-image--main {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .about-image--secondary {
    grid-row: 2;
    grid-column: 1;
  }

  .about-brand-tile img {
    width: 68px;
  }

  .about-stats {
    display: block;
  }

  .stat-line,
  .stat-line:nth-child(odd),
  .stat-line:nth-child(even) {
    grid-template-columns: 1fr auto;
    padding: 20px 0;
    border-left: 0;
  }

  .stat-line strong {
    font-size: 2.85rem;
  }

  .about-manifesto {
    gap: 8px;
    font-size: clamp(2rem, 12vw, 4.3rem);
  }

  .about-manifesto span:last-child {
    align-self: flex-start;
  }

  .services-grid,
  .discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-card {
    min-height: clamp(430px, 62vw, 470px);
    background: var(--ink-soft);
  }

  .service-card-media {
    position: absolute;
    inset: 0;
  }

  .service-card-body {
    width: 100%;
    padding: 22px 20px 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  }

  .service-card strong {
    min-height: 0;
    padding-right: 32px;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
  }

  .service-card small,
  .service-card:hover small,
  .service-card:focus-visible small,
  .service-card:focus-within small {
    overflow: visible;
    max-height: none;
    margin-top: 10px;
    color: var(--white);
    opacity: 1;
    transform: none;
  }

  .service-card-arrow {
    top: 18px;
    right: 18px;
    bottom: auto;
    font-size: 24px;
  }

  .discipline-card,
  .discipline-card:nth-child(even) {
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 0;
  }

  .discipline-card::after {
    background: linear-gradient(180deg, transparent 38%, rgba(23, 27, 27, 0.28) 58%, rgba(177, 41, 43, 0.96) 100%);
  }

  .discipline-card figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
    gap: 8px;
  }

  .discipline-card figcaption span {
    color: rgba(255, 255, 255, 0.88);
  }

  .discipline-card figcaption strong {
    font-size: clamp(1rem, 3vw, 1.35rem);
  }

  .featured-grid {
    flex-direction: column;
  }

  .project-feature,
  .project-feature.is-active {
    flex: none;
    width: 100%;
    height: min(112vw, 500px);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: none;
  }

  .project-feature:not(.is-active) .project-feature-copy small {
    max-height: 24px;
    opacity: 1;
  }

  .project-feature:not(.is-active) .project-feature-copy .project-feature-desc {
    max-height: 0;
    opacity: 0;
  }

  .philosophy-intro {
    display: grid;
  }

  .news-list-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .news-list-thumb {
    display: none;
  }

  .contact-action {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-masthead h1,
  .detail-masthead h1,
  .article-masthead h1 {
    font-size: clamp(2.8rem, 15vw, 5.6rem);
  }

  .page-masthead h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .detail-masthead-grid h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .article-masthead h1 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }

  .services-page .prose > p:has(img) {
    grid-template-columns: 1fr;
  }

  .services-page .service-block {
    grid-template-columns: 1fr;
  }

  .services-page .service-block.is-flip .service-copy {
    order: 0;
  }

  .services-page .service-block.is-solo {
    grid-template-columns: 1fr;
  }

  .services-page .service-media {
    height: auto;
    grid-template-rows: none;
  }

  .services-page .service-media img {
    height: auto;
  }

  .services-page .service-media img:first-child {
    aspect-ratio: 4 / 3;
    max-height: none;
    min-height: 0;
  }

  .ab-intro-grid,
  .ab-journey-grid,
  .ab-letter-grid {
    grid-template-columns: 1fr;
  }

  .ab-intro-grid > div:first-child {
    position: static;
  }

  .ab-values-grid,
  .ab-org-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ab-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ab-culture-grid {
    grid-template-columns: 1fr;
  }

  .detail-masthead-grid {
    grid-template-columns: 1fr;
  }

  .detail-masthead-grid h1 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .article-masthead h1 {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
  }

  .project-listing-grid,
  .article-listing-grid {
    grid-template-columns: 1fr;
  }

  .content-layout.has-page-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    /* ponytail: the sticky TOC bar docks flush under the masthead on mobile —
       the desktop 58px+ top air would strand it mid-page. */
    padding-top: 0;
  }

  /* ponytail: this outranks the desktop 2-col .services-page rule above,
     so the TOC stacks on top and content-shell drops below on mobile. */
  .services-page .content-layout.has-page-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .page-toc {
    position: static;
    margin-inline: calc(-1 * var(--gutter));
    padding: 14px var(--gutter) 10px;
    overflow: hidden;
    border-top-width: 1px;
    background: rgba(244, 240, 231, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .page-toc > p {
    margin-bottom: 8px;
  }

  /* ponytail: mobile TOC lists top-to-bottom like desktop — no sideways scroll. */
  .page-toc ol {
    display: grid;
    gap: 2px;
  }

  .page-toc a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }

  .page-toc a:hover,
  .page-toc a:focus-visible {
    padding-left: 6px;
  }
}

@media (max-width: 560px) {
  .ab-values-grid,
  .ab-org-grid,
  .ab-stats-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .discipline-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .discipline-card,
  .discipline-card:nth-child(even) {
    height: clamp(230px, 66vw, 340px);
    aspect-ratio: auto;
  }

  .discipline-card figcaption strong {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  }
}

@media (hover: none) {
  .service-card small,
  .service-card:hover small,
  .service-card:focus-visible small,
  .service-card:focus-within small {
    overflow: visible;
    max-height: none;
    margin-top: 10px;
    opacity: 1;
    transform: none;
  }

  .discipline-card:hover img {
    transform: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
  }

  .hk-search-toggle {
    width: 44px;
  }

  .hero-panel p:not(.hero-panel-kicker) {
    font-size: 13px;
  }

  .about-collage {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-target {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero-headline,
  .about-manifesto {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }

  .button-link,
  .text-link,
  .hero-panel,
  .service-card-body {
    border: 1px solid currentColor;
  }
}
