/* =========================================================
   Menoa Intellia Works — homepage redesign
   ========================================================= */
:root {
  --ink: #0b1f33;
  --ink-2: #14304d;
  --text: #1d2a38;
  --muted: #5a6778;
  --line: #e2ddd4;
  --paper: #ffffff;
  --tint: #f5f2ec;
  --accent: #a8814a;        /* brass */
  --accent-soft: #f1e7d6;
  --live: #1f9d63;
  --live-soft: #e3f4ea;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11,31,51,.06), 0 8px 28px rgba(11,31,51,.08);
  --shadow-lg: 0 24px 60px rgba(11,31,51,.18);
  --serif: "Newsreader", "Noto Serif TC", ui-serif, Georgia, serif;
  --sans: "Archivo", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 6px 18px rgba(11,31,51,.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc8bc; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11,31,51,.03); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #b5bcc6; display: inline-block; flex: none; }
.dot-live { background: var(--live); box-shadow: 0 0 0 0 rgba(31,157,99,.5); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,157,99,.45); }
  70% { box-shadow: 0 0 0 8px rgba(31,157,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,99,0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11,31,51,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.005em; }
.brand-zh { font-size: 12px; color: var(--muted); letter-spacing: .18em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--tint); }
.nav-mobile-only, .nav .nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.lang a[aria-current] { color: var(--ink); }
.lang a:hover { color: var(--ink); background: var(--tint); }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; position: relative; padding: 0;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, top .25s;
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 24px; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }

.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.4; max-height: min(600px, calc(100vh - 200px)); min-height: 360px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #ddd6cb;
}
.hero-media figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: right; }
.status-card {
  position: absolute; left: -28px; bottom: 56px; width: min(344px, 88%);
  background: rgba(255,255,255,.96); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.status-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.tag { font-weight: 600; color: var(--ink); }
.status-top .tag { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-top .muted { flex: none; white-space: nowrap; }
.bar { height: 6px; background: #ece7de; border-radius: 6px; margin: 12px 0; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), var(--accent)); border-radius: inherit; }
.status-msg { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; }

.stats {
  margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden;
  position: relative; z-index: 1; margin-bottom: -48px; box-shadow: var(--shadow-lg);
}
.stats > div { padding: 26px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; display: flex; align-items: center; gap: 10px; }
.stats dd { margin: 6px 0 0; font-size: 14px; color: #b6c3d1; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
#process { padding-top: calc(clamp(72px, 10vw, 128px) + 48px); }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-split > div { max-width: 640px; }
.section h2, .cta-band h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08; letter-spacing: -.015em; text-wrap: balance;
}
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40em; }
.more { margin-top: 28px; }

/* ---------- Stepper ---------- */
.stepper {
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow);
}
.stepper-list { border-right: 1px solid var(--line); padding: 10px; background: #fcfbf9; }
.phase-label {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 14px 14px 6px;
}
.step-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 8px 12px; border: 0; background: transparent; border-radius: 10px; cursor: pointer;
  font: 500 15px/1.3 var(--sans); color: var(--text); transition: background-color .15s, color .15s;
}
.step-btn .n {
  font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none;
  background: #fff; transition: all .15s;
}
.step-btn:hover { background: var(--tint); }
.step-btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.step-btn[aria-selected="true"] .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-btn.done .n { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }

.stepper-panel { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; min-height: 420px; }
.stepper-panel:focus-visible { outline-offset: -4px; }
.panel-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 500; gap: 12px; flex-wrap: wrap; }
.panel-meta strong { color: var(--accent); font-weight: 600; }
.panel-progress { height: 4px; background: #ece7de; border-radius: 4px; margin: 14px 0 32px; overflow: hidden; }
.panel-progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.panel-num { font-family: var(--serif); font-size: 80px; line-height: 1; color: var(--accent-soft); margin-bottom: -8px; }
.stepper-panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 14px; }
.panel-text { color: var(--muted); max-width: 34em; font-size: 17px; }
.phase-track { margin-top: auto; padding-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phase-track li { border-top: 3px solid #ece7de; padding-top: 10px; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; color: var(--muted); }
.phase-track small { font-size: 12px; font-weight: 500; }
.phase-track li.past { border-color: var(--accent-soft); }
.phase-track li.now { border-color: var(--accent); color: var(--ink); }
.panel-nav { padding-top: 24px; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.panel-nav .arrows { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); transition: border-color .15s, background-color .15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-fallback { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Loop ---------- */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; position: relative; }
.loop-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line);
  position: relative; transition: transform .25s, box-shadow .25s;
}
.loop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.loop-card:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 40px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.loop-num { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.loop-card h3 { font-size: 21px; font-weight: 600; margin: 14px 0 4px; letter-spacing: -.01em; }
.loop-role { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.loop-card p:last-child { color: var(--muted); font-size: 16px; }

.tech { margin-top: 48px; }
.tech-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none;
}
.chip em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--live); background: var(--live-soft); padding: 2px 8px; border-radius: 999px; }
.chip-soon { color: var(--muted); }
.chip-soon em { color: var(--muted); background: #eeebe5; }
.chip-link { transition: border-color .15s, background-color .15s; }
.chip-link:hover { border-color: var(--ink); }

/* ---------- Services (dark) ---------- */
.section-dark { background: var(--ink); color: #d6dee7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #d4b483; }
.section-dark .link-arrow { color: #fff; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.service { background: var(--ink); padding: clamp(28px, 4vw, 44px); transition: background-color .25s; }
.service:hover { background: var(--ink-2); }
.service-num { font-family: var(--serif); color: #d4b483; font-size: 18px; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin: 18px 0 12px; }
.service p { color: #b6c3d1; font-size: 16px; }

/* ---------- Project types ---------- */
.types { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.types-media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.types-media img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; background: #ddd6cb; }
.types-media figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.type-grid a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.type-grid a:hover { border-color: #cdbfa6; transform: translateY(-2px); box-shadow: var(--shadow); }
.type-go { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); opacity: .0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.type-go::after { content: " →"; }
.type-grid a:hover .type-go, .type-grid a:focus-visible .type-go { opacity: 1; transform: none; }
@media (hover: none) { .type-go { opacity: 1; transform: none; } }
.type-grid h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.type-grid h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
.type-grid p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.type-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Locations ---------- */
.awake { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; margin-bottom: 20px; }
.awake:empty { display: none; }
.offices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.offices a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.offices a:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.office-hq a { border-color: #d9c7a8; background: linear-gradient(180deg, #fff, #fbf7f0); }
.code { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.city { font-weight: 600; color: var(--ink); font-size: 17px; line-height: 1.25; }
.city small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.diff { font-size: 12px; color: var(--muted); }
.time { font-family: var(--serif); font-size: 34px; color: var(--ink); margin-top: auto; padding-top: 14px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.state { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 20px; }
.state.open { color: var(--live); font-weight: 600; }
.markets { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.markets-label { font-size: 15px; color: var(--muted); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.why article { border-top: 1px solid var(--line); padding-top: 24px; }
.why-num { font-family: var(--serif); color: var(--accent); font-size: 18px; }
.why h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin: 10px 0 12px; }
.why p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; margin-bottom: 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,129,74,.35), transparent 65%); pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 14em; }
.cta-band .eyebrow { color: #d4b483; }
.cta-copy > p { color: #b6c3d1; margin-top: 14px; font-size: 18px; }
.cta-inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; }
.cta-steps { margin-top: 32px; display: grid; gap: 14px; }
.cta-steps li { display: flex; gap: 14px; align-items: center; color: #d6dee7; font-size: 16px; }
.cta-steps span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(212,180,131,.6); color: #d4b483; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.cta-copy .cta-alt { margin-top: 32px; font-size: 15px; }
.cta-alt a { color: #fff; }

.brief { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.brief h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 2px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid #d5cfc4;
  font: 400 16px/1.4 var(--sans); color: var(--text); background: #fcfbf9; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(168,129,74,.25); background: #fff; }
.field [aria-invalid="true"] { border-color: #c0392b; }
.form-error { color: #b03a2e; font-size: 14px; font-weight: 500; }
.btn-block { width: 100%; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow-lg); } 30% { box-shadow: 0 0 0 4px rgba(212,180,131,.8), var(--shadow-lg); } }

.hiring {
  margin: 40px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 28px; border-radius: var(--radius); background: var(--accent-soft); text-decoration: none; color: var(--ink);
  transition: background-color .2s;
}
.hiring:hover { background: #ead9bd; }

/* ---------- Footer ---------- */
.site-footer { background: #081726; color: #b6c3d1; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 26em; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4b483; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: #d6dee7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 12px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8a9aac; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .offices { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 62px; }
  .desktop-only { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
  /* backdrop-filter would become the containing block of the fixed nav drawer */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; margin: 0;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { font-family: var(--serif); font-size: 28px; padding: 16px 0; border-radius: 0; }
  .nav a:hover, .nav a.active { background: none; }
  .nav-mobile-only, .nav .nav-mobile-only { display: block; }
  .nav .nav-cta { display: flex; margin-top: 28px; font-family: var(--sans); font-size: 16px; padding: 0 22px; border-radius: 999px; color: #fff; }
  .nav .nav-cta:hover { background: var(--ink-2); }
  .nav .nav-lang { display: flex; gap: 20px; margin-top: 24px; }
  .nav-lang a { font-family: var(--sans); font-size: 15px; padding: 8px 0; color: var(--muted); }
  .nav-lang a[aria-current] { color: var(--ink); font-weight: 600; }
  body.menu-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; max-height: none; min-height: 0; }
  .status-card { left: 16px; bottom: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }

  .stepper { grid-template-columns: 1fr; }
  .stepper-list {
    border-right: 0; border-bottom: 1px solid var(--line);
    display: flex; overflow-x: auto; gap: 6px; padding: 12px; scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .stepper-list::-webkit-scrollbar { display: none; }
  .phase-label { display: none; }
  .step-btn { width: auto; flex: none; scroll-snap-align: start; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; white-space: nowrap; }
  .stepper-panel { min-height: 0; }
  .panel-num { font-size: 60px; }

  .loop { grid-template-columns: 1fr; gap: 16px; }
  .loop-card:not(:last-child)::after { content: "↓"; right: auto; left: 28px; top: auto; bottom: -22px; }

  .services { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .types-media { position: static; }
  .types-media img { aspect-ratio: 16/9; }
  .why { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .brand-en { font-size: 14px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding-top: 28px; }
  .cta-row .btn { flex: 1 1 100%; }
  .status-card { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 12px 0; }
  .hero-media figcaption { text-align: left; }
  .stats > div { padding: 20px; }
  .type-grid { grid-template-columns: 1fr; gap: 10px; }
  .type-grid a { padding: 16px 18px; }
  .offices { grid-template-columns: 1fr 1fr; gap: 10px; }
  .offices li:last-child { grid-column: span 2; }
  .offices a { padding: 16px; }
  .time { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .brief { margin: 0 -4px; }
  .hiring { padding: 18px 20px; }

  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn-primary { flex: 1; }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
