/* ==================================================================
   VIETERA MEDIA — main.css
   Port of design/src-v3/styles.css (v3, dark + gold, crane motif).
   React inline styles replaced by the semantic layout classes below.
   Fonts are self-hosted (no external requests).
   ================================================================== */

/* === self-hosted fonts =========================================== */
@font-face {
  font-family: 'Cascadia Code';
  src: url('../fonts/cascadia-code/CascadiaCode.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro/be-vietnam-pro-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro/be-vietnam-pro-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro/be-vietnam-pro-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro/be-vietnam-pro-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro/be-vietnam-pro-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === VIETERA MEDIA — design tokens ============================== */
:root {
  /* Core */
  --ink:       #0a0908;
  --ink-2:     #15110d;
  --ink-3:     #211c15;
  --line:      #2a2319;
  --line-2:    #3a3122;

  --cream:     #f5efe6;
  --cream-2:   #ebe2d2;
  --paper:     #faf6ed;

  /* Gold pulled from logo gradient */
  --gold-50:   #fff6e3;
  --gold-100:  #fde2b6;
  --gold-300:  #f9c47e;
  --gold-500:  #f4a85a;       /* primary accent */
  --gold-700:  #d68030;
  --gold-900:  #8a4a16;

  --red:       #c8331e;        /* sparingly */
  --red-deep:  #7a1c0e;

  /* Type — brand font per Vietera Media spec is Cascadia Code */
  --f-display: 'Cascadia Code', 'Be Vietnam Pro', ui-monospace, monospace;
  --f-body:    'Be Vietnam Pro', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono:    'Cascadia Code', ui-monospace, monospace;

  /* Rhythm */
  --container: 1320px;
  --pad-x:     clamp(20px, 4vw, 56px);
}

/* === reset & base ================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* === typography utilities ======================================== */
.f-display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; }
.f-mono    { font-family: var(--f-mono); font-feature-settings: 'ss01'; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--gold-500);
}

/* Cascadia Code is monospace — tighten letter-spacing slightly,
   reduce some scale so it doesn't visually overflow */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 96px); }
h2 { font-size: clamp(32px, 4.4vw, 64px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
p  { margin: 0; }

/* === layout primitives ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.full      { width: 100%; }

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }

/* divider with the V-wing motif */
.wing-rule {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; color: var(--gold-500);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.wing-rule::before, .wing-rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}

/* placeholder image (striped) — used wherever real assets are missing */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(244,168,90,0.08) 0 12px,
      rgba(244,168,90,0.02) 12px 24px),
    var(--ink-2);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: var(--gold-500);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px;
}
.ph--cream {
  background:
    repeating-linear-gradient(135deg,
      rgba(10,9,8,0.06) 0 12px,
      rgba(10,9,8,0.02) 12px 24px),
    var(--cream-2);
  border-color: rgba(10,9,8,0.14);
  color: var(--ink);
}
.ph .ph__tag {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(10,9,8,0.7);
  border: 1px solid var(--line-2);
  color: var(--gold-500);
}
.ph--cream .ph__tag { background: rgba(255,255,255,0.7); color: var(--ink); border-color: rgba(10,9,8,0.18); }
.ph .ph__tag { position: relative; z-index: 2; pointer-events: none; }
/* a real image in the frame: fills it, caption hidden */
.ph.is-filled { padding: 0; margin: 0; }
.ph.is-filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.is-filled .ph__tag { display: none; }
.logo-marquee .ph.is-filled img { object-fit: contain; padding: 10px; }

/* partner logos — pans across the screen, pauses on hover */
.logo-marquee { overflow: hidden; container-type: inline-size; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-marquee .track { display: flex; gap: 16px; width: max-content; animation: logoPan 36s ease-in-out infinite alternate; }
.logo-marquee:hover .track { animation-play-state: paused; }
.logo-marquee .cell { width: 200px; flex: none; }
.logo-marquee .ph { min-height: 0 !important; }
@keyframes logoPan { from { transform: translateX(0); } to { transform: translateX(min(0px, calc(100cqw - 100%))); } }

/* live Google Maps embed, tinted to the dark theme */
.map-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: invert(.92) hue-rotate(180deg) grayscale(.35) sepia(.35) brightness(.95) contrast(1.05); }

/* careers: expandable position rows */
.pos-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 24px; align-items: center; padding: 24px 28px; cursor: pointer; transition: background .25s ease; }
.pos-row:hover, .pos-row.is-open { background: var(--ink-2); }
.pos-detail { padding: 0 28px 32px 112px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--ink-2); }
.pos-detail ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; opacity: .85; }
@media (max-width: 980px) { .pos-detail { grid-template-columns: 1fr; padding-left: 28px; gap: 24px; } }

/* contact: line icons */
.ic { width: 26px; height: 26px; color: var(--gold-500); }
.ic svg { width: 100%; height: 100%; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--gold-500);
  color: var(--ink); background: var(--gold-500);
  cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--gold-300); }
.btn--ghost { background: transparent; color: var(--gold-500); }
.btn--ghost:hover { background: rgba(244,168,90,0.08); }
.btn--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-3); }

.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* gold gradient text used for accent words */
.gold-grad {
  background: linear-gradient(135deg, #fde2b6 0%, #f4a85a 50%, #d68030 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* a thin frame used to bracket numbers/labels — echoing logo */
.frame-num {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; color: var(--gold-500);
  letter-spacing: 0.12em;
}
.frame-num span:first-child { color: var(--cream); opacity: .5; }

/* === HEADER ====================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x);
  background: rgba(10,9,8,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.is-light {
  background: rgba(245,239,230,0.85);
  border-bottom-color: rgba(10,9,8,0.08);
  color: var(--ink);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-lockup img { height: 38px; width: auto; mix-blend-mode: screen; }
.brand-lockup svg { height: 38px; width: auto; display: block; }
.brand-lockup .bn { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.01em; }
.brand-lockup .bs { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--gold-500); text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: inherit; opacity: .82;
  cursor: pointer;
}
.nav a:hover { opacity: 1; color: var(--gold-500); }
.nav a.active { color: var(--gold-500); opacity: 1; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--gold-500);
}
.nav .has-drop { position: relative; }
.nav .drop {
  position: absolute; top: 100%; left: 0;
  background: var(--ink-2); border: 1px solid var(--line);
  padding: 12px; min-width: 280px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav .has-drop:hover .drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav .has-drop:focus-within .drop { opacity: 1; pointer-events: auto; transform: none; }
.nav .drop a { display: block; padding: 10px 14px; font-size: 12px; letter-spacing: 0.06em; text-transform: none; }
.nav .drop a:hover { background: var(--ink-3); }

.header-right { display: flex; align-items: center; gap: 16px; }
.lang { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; opacity: .5; }
.lang strong { color: var(--gold-500); opacity: 1; font-weight: 500; }

/* scrolled state + WP admin bar offset */
.site-header.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(10,9,8,.92); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* mobile nav: hide desktop nav, show hamburger */
.mobile-toggle { display: none; }
@media (max-width: 980px) {
  .nav, .header-right .lang { display: none; }
  .mobile-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    background: transparent; color: inherit; border: 1px solid currentColor; padding: 10px 14px; border-radius: 999px;
    cursor: pointer;
  }
}

/* === FOOTER ====================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--line);
  padding: 100px var(--pad-x) 40px;
  position: relative;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-500); font-weight: 500; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { opacity: .8; cursor: pointer; }
.footer-grid a:hover { opacity: 1; color: var(--gold-500); }
.site-footer .brand-lockup { margin-bottom: 24px; }
.footer-desc { opacity: .7; max-width: 360px; margin-top: 24px; font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.soc-dot {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--gold-500);
}
.footer-grid a.soc-dot { opacity: 1; transition: border-color .25s ease, background .25s ease; }
.footer-grid a.soc-dot:hover { border-color: var(--gold-500); background: var(--ink-2); }
.footer-tag { color: var(--gold-500); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; margin-top: 8px; }

.footer-bottom {
  max-width: var(--container); margin: 80px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; opacity: .6;
}

/* === TICKER (continuous scroll strip) ============================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink-2);
}
.ticker__track {
  display: flex; gap: 64px;
  animation: tick 32s linear infinite;
  width: max-content;
  align-items: center;
}
.ticker__item {
  font-family: var(--f-display); font-size: 36px; letter-spacing: -0.01em; opacity: .85;
  display: inline-flex; align-items: center; gap: 64px;
}
.ticker__item .star { color: var(--gold-500); font-size: 22px; }
@keyframes tick {
  to { transform: translateX(-50%); }
}

/* === re-usable cards ============================================== */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--gold-700); }
.card .card__no {
  position: absolute; top: 22px; right: 28px;
  font-family: var(--f-mono); font-size: 11px; color: var(--gold-500); letter-spacing: 0.14em;
}

/* form */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-500); }
.field input, .field textarea, .field select {
  background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  color: inherit; font: inherit; padding: 10px 0;
  font-family: var(--f-body);
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--gold-500); }

/* visually-hidden helper */
.sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ==================================================================
   LAYOUT CLASSES — semantic replacements for the React inline styles
   (shared class contract; markup in templates uses exactly these)
   ================================================================== */

/* page shell */
.page-main { padding-top: 96px; }
.has-crane { position: relative; overflow: hidden; }
.z2 { position: relative; z-index: 2; }

/* grids (gap overridable with style="--gap:24px") */
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap, 80px); }
.svc-detail .g-2 { align-items: center; } /* only the services detail grid is vertically centred in the design; why / apply / form grids stretch */
.g-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap, 32px); }
.g-1-12 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.g-14-1 { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap, 64px); align-items: center; }
.g-14-1.ai-end { align-items: flex-end; }
.ai-start { align-items: flex-start !important; }
.g-09-11 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: flex-start; }

/* rows */
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; }

/* section head */
.section-head h2 { margin-top: 18px; text-wrap: balance; }
.section-head h2 + .section-head__lead { margin-top: 22px; }
.section-head__lead { opacity: .78; max-width: 720px; font-size: 17px; }
.section-head--center { text-align: center; max-width: 880px; margin: 0 auto; }
.section-head--center .section-head__lead { margin-left: auto; margin-right: auto; }

/* small modifiers */
.eyebrow--dark { color: var(--gold-700); }
.eyebrow--dark::before { background: var(--gold-700); }
.btn--sm { padding: 12px 20px; }
.gold { color: var(--gold-500); }
.gold-dark { color: var(--gold-700); }
em.gold, em.gold-dark, em.gold-grad { font-style: normal; }

/* --- home: hero ---------------------------------------------------- */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .ph, .hero__bg video, .hero__bg img, .hero__video, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fallback { position: absolute; inset: 0; z-index: 0; }
.hero__fallback[hidden] { display: none; }
.hero__ph {
  border: none;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(244,168,90,.18), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(200,51,30,.14), transparent 50%),
    repeating-linear-gradient(135deg, rgba(244,168,90,.04) 0 14px, rgba(244,168,90,.01) 14px 28px),
    var(--ink);
}
.hero__ph .ph__tag { position: absolute; top: 100px; right: 24px; z-index: 2; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,.55) 55%, rgba(10,9,8,.92) 100%);
  pointer-events: none; z-index: 1;
}
.hero__content { position: relative; z-index: 2; padding-top: 180px; padding-bottom: 80px; }
.hero__copy { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1180px; }
.hero__lead { max-width: 680px; font-size: 19px; opacity: .82; line-height: 1.5; }
.hero__cue {
  position: absolute; bottom: 28px; right: var(--pad-x); z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--gold-500);
}

/* --- home: metrics ------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 120px; padding-top: 28px; }
.metric { padding-right: 24px; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric__n { font-size: 56px; line-height: 1; color: var(--gold-500); }
.metric__l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-top: 12px; }

/* --- home: service cards ------------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.svc-card { padding: 40px; border-right: 1px solid var(--line); min-height: 420px; display: flex; flex-direction: column; transition: background .3s ease; color: inherit; }
.svc-card:last-child { border-right: none; }
.svc-card:hover { background: var(--ink-2); }
.svc-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-card__icon { font-size: 36px; color: var(--gold-500); line-height: 1; }
.svc-card__body { margin-top: auto; padding-top: 40px; }
.svc-card__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--gold-500); margin-bottom: 14px; text-transform: uppercase; }
.svc-card h3 { font-size: 24px; margin-bottom: 16px; }
.svc-card p { opacity: .7; font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.svc-card__more { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold-500); }

/* --- news cards --------------------------------------------------- */
.news-card { display: block; color: inherit; }
.news-card__meta { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--gold-500); text-transform: uppercase; }
.news-card__meta span:last-child { opacity: .7; }
.news-card--cream .news-card__meta { color: var(--gold-700); }
.news-card--grid .news-card__meta { margin-top: 16px; font-size: 10px; letter-spacing: .14em; }
.news-card h3 { font-size: 22px; margin: 12px 0 10px; text-wrap: balance; }
.news-card p { opacity: .7; font-size: 14px; line-height: 1.6; }

/* --- CTA ---------------------------------------------------------- */
.cta { padding: 120px 0; background: var(--ink); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta--center { text-align: center; }
.cta--center .eyebrow { justify-content: center; }

/* --- banners (about / services / news hero) ----------------------- */
.banner { position: relative; overflow: hidden; }
.banner--540 { height: 540px; }
.banner--460 { height: 460px; }
.banner__ph { position: absolute; inset: 0; height: 100% !important; border: none; }
.banner__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.4), rgba(10,9,8,.85)); pointer-events: none; z-index: 1; }
.banner--news .banner__overlay { background: linear-gradient(180deg, rgba(10,9,8,.45), rgba(10,9,8,.85)); }
.banner__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 64px; z-index: 2; }
.banner--news .banner__content { padding-bottom: 56px; }

/* --- about -------------------------------------------------------- */
.sticky-col { position: sticky; top: 120px; }

.pillar-card { background: var(--ink); color: var(--cream); padding: 40px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.pillar-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pillar-card__no { font-size: 56px; line-height: 1; }
.pillar-card__kw { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--gold-500); text-transform: uppercase; }
.pillar-card h3 { font-size: 22px; margin-bottom: 16px; }
.pillar-card p { opacity: .75; font-size: 14px; line-height: 1.65; }

.pillar-list { margin-top: 64px; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
.pillar-row { display: grid; grid-template-columns: 80px 220px 1fr auto; gap: 32px; align-items: center; padding: 32px 28px; border-bottom: 1px solid var(--line); transition: background .25s ease; color: inherit; }
.pillar-row:last-child { border-bottom: none; }
.pillar-row:hover { background: var(--ink-2); }
.pillar-no { font-size: 36px; color: var(--gold-500); }
.pillar-en { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold-500); text-transform: uppercase; }
.pillar-vi { font-size: 26px; }
.pillar-sub { opacity: .6; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }

/* --- services ----------------------------------------------------- */
.svc-hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.svc-detail { scroll-margin-top: 100px; }
.svc-detail--first { padding-top: 40px; }
.svc-detail__media.is-right { order: 1; }
.svc-no-row { display: flex; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.svc-no { font-size: 80px; line-height: 1; }
.svc-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--gold-500); text-transform: uppercase; }
.section--cream .svc-tag, .section--cream .svc-bullet__i { color: var(--gold-700); }
.svc-detail h2 { font-size: clamp(28px, 3.4vw, 48px); margin-bottom: 18px; }
.svc-sub { font-size: 17px; opacity: .8; margin-bottom: 32px; line-height: 1.6; }
.svc-bullets { display: flex; flex-direction: column; gap: 18px; }
.svc-bullet { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.section--cream .svc-bullet { border-top-color: rgba(10,9,8,.14); }
.svc-bullet__i { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; min-width: 120px; color: var(--gold-500); }
.svc-bullet strong { display: block; margin-bottom: 6px; font-size: 16px; font-family: var(--f-display); font-weight: 500; }
.svc-bullet p { opacity: .78; font-size: 14.5px; line-height: 1.6; }

.why-item { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: flex-start; border-top: 1px solid rgba(10,9,8,.14); padding-top: 28px; }
.why-item__no { font-size: 44px; color: var(--gold-700); line-height: 1; }
.why-item h3 { font-size: 24px; margin-bottom: 12px; }
.why-item p { opacity: .8; font-size: 15.5px; line-height: 1.65; }

/* --- careers ------------------------------------------------------ */
.career-tiles { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; margin-top: 56px; }
.tile { background: var(--ink); color: var(--cream); padding: 36px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tile--big { grid-row: span 2; padding: 44px; min-height: 480px; }
.tile--wide { grid-column: span 2; }
.tile--media { background: transparent; color: inherit; padding: 0; min-height: 0; }
.tile h3 { font-size: 22px; margin-bottom: 14px; }
.tile--big h3 { font-size: 32px; }
.tile p { font-size: 14px; opacity: .78; line-height: 1.6; }
.tile--big p { font-size: 16px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 10px 16px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); background: transparent; color: var(--cream); cursor: pointer; }
.pill.is-active { border-color: var(--gold-500); background: var(--gold-500); color: var(--ink); }

.pos-list { border: 1px solid var(--line); border-bottom: none; }
.pos-item { border-bottom: 1px solid var(--line); }
.pos-item[hidden], .pos-detail[hidden] { display: none; }
button.pos-row { width: 100%; text-align: left; background: transparent; border: 0; color: inherit; font: inherit; }
.pos-row__no { font-size: 22px; color: var(--gold-500); min-width: 56px; }
.pos-row__team { text-transform: uppercase; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--gold-500); margin-bottom: 6px; }
.pos-row h3 { font-size: 22px; }
.pos-meta { font-family: var(--f-mono); font-size: 11px; opacity: .7; }
.pos-cta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold-500); }
.pos-detail__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--gold-500); margin-bottom: 10px; text-transform: uppercase; }
.pos-detail__desc { font-size: 15px; line-height: 1.65; opacity: .85; margin-bottom: 22px; }

.apply-info { border-left: 1px solid rgba(10,9,8,.14); padding-left: 56px; display: flex; flex-direction: column; gap: 28px; }
.kv { display: block; }
.kv__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--gold-700); text-transform: uppercase; margin-bottom: 6px; }
.kv__v { font-family: var(--f-display); font-size: 22px; }

/* --- news listing / single ---------------------------------------- */
.news-tabs { border-bottom: 1px solid var(--line); position: sticky; top: 78px; background: rgba(10,9,8,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 10; }
.admin-bar .news-tabs { top: 110px; }
.news-tabs__inner { display: flex; gap: 4px; align-items: center; overflow-x: auto; padding: 12px 0; }
.news-tab { padding: 14px 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; opacity: .7; white-space: nowrap; color: var(--cream); }
.news-tab.is-active { border-bottom-color: var(--gold-500); color: var(--gold-500); opacity: 1; }
.news-tabs__count { margin-left: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; opacity: .5; white-space: nowrap; }

.post-meta { display: flex; gap: 16px; margin-top: 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold-500); text-transform: uppercase; }
.section--cream .post-meta { color: var(--gold-700); }
.byline { font-family: var(--f-mono); font-size: 11px; opacity: .6; letter-spacing: .12em; margin-bottom: 24px; text-transform: uppercase; }

.pagination { margin-top: 48px; display: flex; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 14px; border: 1px solid rgba(10,9,8,.18); color: inherit; }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); }

.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--gold-500); opacity: .85; }
.prose a { color: var(--gold-500); text-decoration: underline; }
.prose img { margin: 1.4em 0; }
.prose figure { margin: 1.4em 0; max-width: 100%; }

/* --- contact ------------------------------------------------------ */
.contact-list { display: flex; flex-direction: column; gap: 28px; }
.contact-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.contact-row__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--gold-500); text-transform: uppercase; }
.contact-row__v { font-size: 22px; white-space: pre-line; }

.soc-cell { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; transition: border-color .25s, background .25s; color: inherit; }
.soc-cell:hover { border-color: var(--gold-500); background: var(--ink-2); }
.soc-cell__h { color: var(--gold-500); opacity: .9; }

.form-box { background: var(--ink-2); border: 1px solid var(--line); padding: 48px; }
.form-box h2 { font-size: 32px; margin-bottom: 32px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form[hidden] { display: none; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.form__note { font-family: var(--f-mono); font-size: 11px; opacity: .6; letter-spacing: .1em; }
.form-success { padding: 40px 0; display: flex; flex-direction: column; gap: 14px; }
.form-success[hidden] { display: none; }
.form-success__check { font-size: 44px; line-height: 1; }
.form-success h3 { font-size: 24px; }
.form-success p { opacity: .75; font-size: 15px; line-height: 1.6; }
.form-success .btn { align-self: flex-start; margin-top: 8px; }
.field__err { font-family: var(--f-mono); font-size: 10px; color: var(--red); display: none; }
.field.has-error .field__err { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--red); }
.form__status { font-family: var(--f-mono); font-size: 11px; color: var(--red); }
.form__status:empty { display: none; }
.field select option { color: var(--ink); }

.map-wrap { position: relative; height: 480px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.map-ph { position: absolute; inset: 0; height: 100% !important; border: none; align-items: center; justify-content: center; }
.map-card { position: absolute; left: var(--pad-x); bottom: 24px; pointer-events: none; background: rgba(10,9,8,.85); border: 1px solid var(--line-2); padding: 12px 16px; z-index: 2; }
.map-card__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--gold-500); }
.map-card__v { font-size: 14px; margin-top: 4px; }

/* anchors land below the fixed header */
#vi-tri, #form, .svc-detail { scroll-margin-top: 90px; }

/* drawer accessibility state (JS toggles aria-hidden + .is-open) */
.mobile-drawer[aria-hidden="true"] { visibility: hidden; transition: transform .35s cubic-bezier(.6,.05,.2,1), visibility 0s linear .35s; }
.mobile-drawer.is-open { visibility: visible; transition-delay: 0s; }


/* ============================================================
   RESPONSIVE — Mobile + Tablet
   ============================================================ */

/* Tablet: tighten section padding, smaller container gutter */
@media (max-width: 1100px) {
  :root { --pad-x: clamp(20px, 4vw, 40px); }
  .section { padding: 96px 0; }
}

/* === Mobile menu drawer === */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 100px var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.6,.05,.2,1);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 28px;
  letter-spacing: -0.03em;
  cursor: pointer;
}
.mobile-drawer a.active { color: var(--gold-500); }
.mobile-drawer a .num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--gold-500); opacity: .7;
}
.mobile-drawer .meta {
  margin-top: auto; padding-top: 32px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; opacity: .6;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-drawer .meta .gold { color: var(--gold-500); }
.drawer-close {
  position: absolute; top: 22px; right: var(--pad-x);
  background: transparent; border: 1px solid var(--gold-500); color: var(--gold-500);
  padding: 10px 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 981px) { .mobile-drawer { display: none !important; } }

/* === Tablet (<= 980px) === */
@media (max-width: 980px) {
  /* Hide the desktop-only header CTA on mobile to give room for hamburger */
  .site-header .header-right .btn { display: none; }
  .brand-lockup img { height: 32px; }
  .brand-lockup svg { height: 32px; }
  .brand-lockup .bn { font-size: 16px; }
  .brand-lockup .bs { display: none; }

  /* Headlines smaller */
  h1 { font-size: clamp(36px, 7vw, 64px); }
  h2 { font-size: clamp(28px, 5vw, 44px); }
  h3 { font-size: clamp(18px, 3vw, 24px); }

  /* Stack all multi-column grids to 1 column */
  .g-2, .g-3, .g-1-12, .g-14-1, .g-09-11 { grid-template-columns: 1fr; gap: 28px; } /* .pillar-list is already 1 column and keeps gap 0 (bordered rows) */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none; border-bottom: 1px solid var(--line); }
  .svc-card:last-child { border-bottom: none; }

  /* Tablet-specific exceptions: hero metrics 4→2, logo strip 6→3 */
  [data-grid="metrics"]    { grid-template-columns: repeat(2, 1fr) !important; }
  [data-grid="logos"]      { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  [data-grid="why-2col"]   { grid-template-columns: 1fr !important; gap: 32px !important; }
  [data-grid="career-tile"]{ grid-template-columns: 1fr !important; gap: 16px !important; }
  [data-grid="career-tile"] > * { grid-column: span 1 !important; grid-row: auto !important; }

  /* Position-list rows: drop the type+location columns into a stack */
  .pos-row { grid-template-columns: auto 1fr !important; row-gap: 8px !important; }
  .pos-row > .pos-meta { grid-column: 1 / -1 !important; opacity: .65; font-size: 10px; }
  .pos-row > .pos-cta  { grid-column: 1 / -1 !important; }

  /* About 4-pillar row: stack columns */
  .pillar-row { grid-template-columns: auto 1fr !important; gap: 16px !important; }
  .pillar-row > .pillar-en  { grid-column: 1 / -1 !important; }
  .pillar-row > .pillar-sub { grid-column: 1 / -1 !important; opacity: .6; font-size: 11px; }

  /* Sticky news tabs sit lower on mobile (smaller header) */
  .news-tabs { top: 64px; }
  .admin-bar .news-tabs { top: 110px; }

  .section { padding: 72px 0; }

  /* Hero top padding adjust */
  .hero__content { padding-top: 120px; }

  /* Reset zigzag image order on services page */
  .svc-detail__media.is-right { order: 0; }

  /* Reset sticky in About page (story column) */
  .sticky-col { position: static; }

  /* Careers apply info: rule on top instead of the left */
  .apply-info { border-left: none; padding-left: 0; border-top: 1px solid rgba(10,9,8,.14); padding-top: 28px; }
}

/* === Phone (<= 640px) === */
@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  h1 { font-size: clamp(32px, 9vw, 48px); }
  h2 { font-size: clamp(24px, 7vw, 36px); }

  .ticker__item { font-size: 24px; gap: 36px; }
  .ticker__track { gap: 36px; }

  [data-grid="metrics"]    { grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding-top: 20px !important; }
  [data-grid="metrics"] > * { padding-left: 14px !important; padding-right: 14px !important; padding-top: 18px !important; padding-bottom: 6px !important; border-left: none !important; border-top: 1px solid var(--line) !important; }
  [data-grid="metrics"] > *:first-child { border-top: none !important; }
  [data-grid="metrics"] .f-display, [data-grid="metrics"] .metric__n { font-size: 36px !important; }

  [data-grid="logos"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Card padding tighter */
  .card { padding: 24px; }

  /* Form fields stack */
  .field input, .field textarea, .field select { font-size: 16px; } /* prevents iOS zoom */
  .form-box { padding: 32px 22px; }
  .svc-bullet__i { min-width: 56px; }
  .svc-no { font-size: 56px; }
  .contact-row__v { font-size: 18px; }

  /* Brand lockup compress */
  .brand-lockup img { height: 28px; }
  .brand-lockup svg { height: 28px; }
  .brand-lockup .bn { font-size: 14px; }

  /* Footer top padding */
  .site-footer { padding: 64px var(--pad-x) 28px; }
  .footer-bottom { margin-top: 48px; flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Wrap CTA strip into single column */
  .section { padding: 64px 0; }

  /* Hero scroll cue hidden */
  .hero__cue { display: none; }
}


/* ============================================================
   V3 — HẠC (CRANE) MOTIF
   ============================================================ */

/* Big background crane watermark — full-bleed behind hero/sections */
.v3-crane-bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 0;
}
.v3-crane-bg svg {
  position: absolute;
  width: 90%; height: auto;
  color: var(--gold-500);
  opacity: 0.07;
  right: -8%; top: 8%;
  max-width: 1400px;
}
.v3-crane-bg.crane-left svg { left: -10%; right: auto; top: 12%; transform: scaleX(-1); }
.v3-crane-bg.crane-small svg { width: 55%; max-width: 720px; opacity: 0.08; right: -4%; top: 5%; }
.v3-crane-bg.crane-tile svg { width: 28%; opacity: 0.05; right: 8%; top: 20%; }

/* Cream sections: darker gold + lower opacity */
.section--cream .v3-crane-bg svg,
.section--paper .v3-crane-bg svg { color: var(--gold-700); opacity: 0.09; }

/* Small crane icon used inline (next to eyebrows, headings) */
.v3-crane-icon {
  display: inline-block; vertical-align: middle;
  color: var(--gold-500); margin-right: 10px;
}
.v3-crane-icon svg { width: 100%; height: 100%; display: block; }

/* Crane decorative divider — repeating pattern strip */
.v3-crane-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  padding: 18px 0;
  overflow: hidden;
}
.v3-crane-strip .cell {
  display: flex; align-items: center; justify-content: center;
  height: 56px; color: var(--gold-500); opacity: 0.45;
}
.v3-crane-strip .cell:nth-child(even) { transform: scaleX(-1); opacity: 0.3; }
.v3-crane-strip .cell:nth-child(3n) { opacity: 0.7; color: var(--gold-500); }
.v3-crane-strip .cell svg { width: 80%; height: 100%; }

.section--cream .v3-crane-strip,
.section--paper .v3-crane-strip { background: var(--cream-2); border-color: rgba(10,9,8,0.12); }
.section--cream .v3-crane-strip .cell,
.section--paper .v3-crane-strip .cell { color: var(--gold-700); }

/* Crane "seal" — circular stamp behind big numerals */
.v3-crane-seal {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 999px;
  border: 1px dashed var(--gold-700);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0.5;
}
.v3-crane-seal svg { width: 75%; height: auto; color: var(--gold-500); opacity: 0.4; }

/* Hero: crane drifting in via slow animation */
@keyframes craneDrift {
  0%   { transform: translate3d(0,0,0); }
  50%  { transform: translate3d(-18px,-10px,0); }
  100% { transform: translate3d(0,0,0); }
}
.v3-crane-bg svg { animation: craneDrift 14s ease-in-out infinite; }

/* Crane-bullet for lists (replaces circle bullet) */
.v3-crane-bullet {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  color: var(--gold-500);
}
.v3-crane-bullet svg { width: 100%; height: 100%; }

/* Footer corner crane (silhouette anchor) */
.v3-corner-crane {
  position: absolute; bottom: 0; right: 0;
  width: 320px; height: auto; pointer-events: none;
  color: var(--gold-500); opacity: 0.06;
}
