/* MCAP Management — single-page site */

:root {
  /* Default palette: Snow (matches the runtime React-applied palette to avoid FOUC) */
  --bg:        #FBFFFF;
  --bg-card:   #eef3f3;
  --bg-deep:   #0e1313;
  --ink:       #0e1313;
  --ink-2:     #3d4646;
  --ink-3:     #7a8484;
  --ink-4:     #cdd4d4;
  --line:      rgba(14,19,19,0.12);
  --line-soft: rgba(14,19,19,0.06);
  --accent:    #0e1313;
  --accent-2:  #7a8484;
  --mcap-red:  #A8323F;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1280px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-body:    "Newsreader", ui-serif, Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2,.7,.1,1);
  --motion-dur: 900ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  animation: pageFadeIn 700ms cubic-bezier(.2,.7,.1,1) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero word-stagger reveal — each word fades up with a slight delay */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: heroWordIn 1100ms cubic-bezier(.2,.7,.1,1) forwards;
  will-change: opacity, transform;
}
@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Respect motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ── Layout ─────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
.section-tight { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.hr { height: 1px; background: var(--line); width: 100%; }

/* ── Typography ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}
.body-lg {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.body-sm {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.italic-accent { font-style: italic; font-family: "Instrument Serif", "Manrope", serif; font-weight: 400; letter-spacing: -0.01em; color: var(--mcap-red); }

/* ── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  min-height: 92px;
  padding: 12px 0;
  display: flex; align-items: stretch;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line-soft);
}
/* Light text over the dark hero when at top */
.nav:not(.scrolled) .nav-links a { color: rgba(251,255,255,0.82); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .nav-cta { background: #fbffff; color: #0e1313; }
.nav:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.nav .wrap { padding-left: clamp(16px, 2vw, 28px); }
.nav-inner { display: flex; align-items: center; justify-content: flex-start; width: 100%; gap: 32px; }
.brand-adjust {
  outline: 1px dashed rgba(14,19,19,0.45);
  outline-offset: 6px;
  border-radius: 4px;
}
.nav:not(.scrolled) .brand-adjust { outline-color: rgba(251,255,255,0.7); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; margin-right: auto; }
.brand img { display: block; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 15px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { opacity: 0.85; }

/* ── Burger (mobile menu trigger) ────────────────────────────── */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  margin-left: auto;
}
.burger-bars {
  position: relative;
  display: inline-block;
  width: 22px; height: 14px;
}
.burger-bars span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease), background-color .2s var(--ease);
}
.burger-bars span:nth-child(1) { top: 1px; }
.burger-bars span:nth-child(2) { top: 7px; }
.burger-bars span:nth-child(3) { top: 13px; }
.burger-bars.is-open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger-bars.is-open span:nth-child(2) { opacity: 0; }
.burger-bars.is-open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
/* Light burger over dark hero, dark when scrolled / menu open */
.nav:not(.scrolled):not(.menu-open) .burger-bars span { background: #fbffff; }

/* ── Nav overlay (mobile expanded menu) ─────────────────────── */
.nav-overlay {
  position: fixed; inset: 0;
  z-index: 45;
  background: rgba(14, 19, 19, 0.32);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay-inner {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px clamp(24px, 6vw, 40px) 32px;
}
.nav-overlay-inner a {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #fbffff;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(251,255,255,0.14);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.nav-overlay-inner a:last-child { border-bottom: 0; }
.nav-overlay-inner a:hover { color: #fff; transform: translateX(2px); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fbffff;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(200px, 26vh, 320px);
  opacity: var(--hero-fade, 1);
  pointer-events: none;
  will-change: opacity;
  z-index: 1;
}
.hero-wrap { width: 100%; pointer-events: auto; }
.hero-h1 {
  font-family: "Garamond", "EB Garamond", serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: right;
  color: #fbffff;
  text-shadow: 0 1px 24px rgba(0,0,0,0.25);
  margin: 0;
}
.hero-h1 em {
  font-style: italic;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f4d8a8;
}
.hero-inner > * { pointer-events: auto; }
.hero::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("assets/hero-bangkok.jpg");
  background-size: cover;
  background-position: center 30%;
  opacity: var(--hero-fade, 1);
  transform: scale(var(--hero-scale, 1));
  transform-origin: center 40%;
  z-index: -2;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero::after {
  content: "";
  position: fixed; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,16,0.55) 0%, rgba(8,10,16,0.30) 45%, rgba(8,10,16,0.55) 100%);
  opacity: var(--hero-fade, 1);
  z-index: -1;
  pointer-events: none;
  will-change: opacity;
}
.hero .eyebrow { color: rgba(251,255,255,0.78); }
.hero h1 { color: #fbffff; text-shadow: 0 1px 24px rgba(0,0,0,0.25); font-size: clamp(32px, 5.6vw, 88px); }
.hero h1 em { font-style: italic; font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -0.02em; color: #f4d8a8; }
.hero-eye { margin-bottom: 32px; }
.hero h1 { margin-bottom: 36px; }
.hero-sub {
  max-width: 620px;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: rgba(251,255,255,0.85);
  margin: 0 0 56px auto;
  text-wrap: pretty;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 620px;
  margin: 56px 0 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(251,255,255,0.22);
  text-align: right;
}
.hero-meta-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251,255,255,0.6); }
.hero-meta-v { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.01em; margin-top: 6px; font-weight: 500; color: #fbffff; }

/* Hero hero-image strip removed — full-bleed background now */
.hero-image { display: none; }

/* ── Stat / KPI row ─────────────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.kpi-v { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; text-wrap: nowrap; }
.kpi-sub { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ── About / philosophy ─────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.two-col .col-left { position: sticky; top: 100px; }
.about-body p { margin: 0 0 1.2em; }
.about-body p:last-child { margin-bottom: 0; }

/* ── Strategy pillars ───────────────────────────────────────────── */
.pillars {
  margin-top: clamp(56px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(14, 19, 19, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(14, 19, 19, 0.22);
}
.pillar {
  background: var(--bg);
  padding: clamp(32px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px;
}
.pillar-t { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; font-weight: 500; margin: 0 0 8px; }
.pillar-d { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ── Contact (email + map) ─────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-email { border-bottom: 1px solid currentColor; }
.map-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.map-frame iframe { display: block; width: 100%; height: 100%; filter: grayscale(0.15) contrast(1.02); }

/* ── Sectors ───────────────────────────────────────────────────── */
.sectors {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.sector {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  cursor: default;
  transition: transform .5s var(--ease);
}
.sector-1 { grid-column: span 5; aspect-ratio: 4 / 5; }
.sector-2 { grid-column: span 7; aspect-ratio: 7 / 5; }
.sector-3 { grid-column: span 4; aspect-ratio: 4 / 5; }
.sector-4 { grid-column: span 4; aspect-ratio: 4 / 5; }
.sector-5 { grid-column: span 4; aspect-ratio: 4 / 5; }
.sector:hover { transform: translateY(-2px); }
.sector-label {
  position: absolute; left: 24px; top: 24px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.sector-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sector-tag { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,0.78); letter-spacing: 0.14em; text-transform: uppercase; }
.sector-cap {
  position: absolute; left: 24px; bottom: 22px; right: 24px;
  color: rgba(255,255,255,0.82); font-size: 13.5px; line-height: 1.45;
  z-index: 2;
}
.sector::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* ── Team ──────────────────────────────────────────────────────── */
.team-grid {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}
.team-card { display: flex; flex-direction: column; gap: 16px; }
.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 800ms var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-name { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.005em; font-weight: 500; margin: 0; }
.team-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.team-bio { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 4px 0 0; }

/* ── Insights ──────────────────────────────────────────────────── */
.insights-grid {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.insight {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  transition: opacity .2s var(--ease);
}
.insight:hover { opacity: 0.72; }
.insight-img { aspect-ratio: 4 / 3; background: var(--bg-card); border-radius: 10px; overflow: hidden; }
.insight-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.insight-title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; margin: 0; text-wrap: balance; }
.insight-dek { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ── Contact / Office ─────────────────────────────────────────── */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  margin-top: clamp(48px, 5vw, 72px);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: none;
  transition: border-color .2s var(--ease);
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; font-family: var(--font-body); }
.submit {
  align-self: flex-start;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.submit:hover { opacity: 0.88; }
.submit:disabled { opacity: 0.5; cursor: not-allowed; }

.office-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex; flex-direction: column;
}
.map { height: 320px; background: var(--bg-card); position: relative; }
.office-info { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; background: var(--bg-card); }
.office-line { display: flex; gap: 14px; align-items: baseline; }
.office-line .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); flex: 0 0 80px; }
.office-line .v { font-size: 14.5px; color: var(--ink); line-height: 1.45; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  padding: clamp(56px, 6vw, 88px) 0 32px;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--mcap-red);
  color: #fbffff;
}
.footer .brand img { filter: brightness(0) invert(1); }
.footer .body-sm { color: rgba(251, 255, 255, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251, 255, 255, 0.6); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(251, 255, 255, 0.82); transition: color .2s var(--ease); }
.footer-col ul a:hover { color: #fbffff; }
.footer-col ul li { color: rgba(251, 255, 255, 0.7); }
.footer-bottom {
  margin-top: clamp(56px, 8vw, 100px);
  padding-top: 24px;
  border-top: 1px solid rgba(251, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 12px; color: rgba(251, 255, 255, 0.62);
}

/* ── Cookie banner ──────────────────────────────────────────────── */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px;
  max-width: 460px; margin-left: auto;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  z-index: 60;
  transform: translateY(0); opacity: 1;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  font-size: 13.5px; line-height: 1.5;
}
.cookie.hidden { transform: translateY(20px); opacity: 0; pointer-events: none; }
.cookie a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn { padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.cookie-btn.primary { background: var(--bg); color: var(--ink); }
.cookie-btn.ghost { background: transparent; color: var(--bg); border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn:hover { opacity: 0.88; }

/* ── Privacy modal ─────────────────────────────────────────────── */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 720px; width: 100%;
  max-height: 80vh; overflow: hidden;
  display: flex; flex-direction: column;
  transform: scale(0.96); transition: transform .25s var(--ease);
}
.modal-scrim.open .modal { transform: scale(1); }
.modal-hd { padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-hd h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin: 0; font-weight: 500; }
.modal-x { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-3); }
.modal-x:hover { background: var(--bg-card); color: var(--ink); }
.modal-body { padding: 24px 32px 32px; overflow-y: auto; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.modal-body h4 { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin: 24px 0 8px; font-weight: 500; }
.modal-body p { margin: 0 0 14px; }

/* ── Reveal animation ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--motion-dur) var(--ease), transform var(--motion-dur) var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Image placeholders ─────────────────────────────────────────── */
.imgph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      var(--ph-stripe-a, #cdc8bd) 0 10px,
      var(--ph-stripe-b, #c5c0b3) 10px 20px
    );
  color: rgba(0,0,0,0.45);
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.imgph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 6px;
  margin: 14px;
  color: #2a2a2a;
}
.imgph-dark {
  --ph-stripe-a: #2a2a2a;
  --ph-stripe-b: #1f1f1f;
  color: rgba(255,255,255,0.7);
}
.imgph-dark .imgph-label { background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.92); }

/* sector tinted placeholders */
.tint-food   { background: linear-gradient(160deg, #6e4a2e 0%, #2a1a10 100%); }
.tint-cos    { background: linear-gradient(160deg, #b8856d 0%, #4a2e26 100%); }
.tint-fash   { background: linear-gradient(160deg, #2e3438 0%, #0f1316 100%); }
.tint-goods  { background: linear-gradient(160deg, #7b7160 0%, #2c2820 100%); }
.tint-well   { background: linear-gradient(160deg, #4a6357 0%, #1a2622 100%); }

/* ── Portfolio ─────────────────────────────────────────────────── */
.portfolio-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portfolio-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-img .imgph { width: 100%; height: 100%; }
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms var(--ease);
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.04); }
.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portfolio-name { font-size: 17px; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.2; }
.portfolio-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px 6px;
  border-radius: 999px;
  border: 1px solid var(--ink-4);
  color: var(--ink-2);
  white-space: nowrap;
}
.status-exited { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.portfolio-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 4px 0 0;
  text-wrap: pretty;
}
.portfolio-card.is-link { cursor: pointer; transition: transform .25s var(--ease); }
.portfolio-card.is-link:hover { transform: translateY(-2px); }
.portfolio-card.is-link:hover .portfolio-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 920px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .col-left { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(6, 1fr); }
  .sector-1, .sector-2 { grid-column: span 6; aspect-ratio: 7/5; }
  .sector-3, .sector-4, .sector-5 { grid-column: span 2; aspect-ratio: 3/4; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 560px) {
  :root { --gutter: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .sector-1, .sector-2, .sector-3, .sector-4, .sector-5 { grid-column: span 1; aspect-ratio: 7/5; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(28px, 6vw, 48px) 0; }
  .kpi-v { font-size: clamp(32px, 9vw, 48px); }
  .section { padding-top: clamp(56px, 14vw, 96px); padding-bottom: clamp(56px, 14vw, 96px); }
  .hero-inner { padding-top: clamp(140px, 22vh, 220px); }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); text-align: right; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; margin-left: 0; padding: 16px 18px; }
  .cookie-actions { flex-wrap: wrap; }
  .modal { max-height: 88vh; border-radius: 14px; }
  .modal-hd { padding: 20px 22px; }
  .modal-body { padding: 20px 22px 24px; font-size: 14px; }
  .nav { min-height: 72px; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-overlay-inner { top: 64px; }
  .nav-overlay-inner a { font-size: 24px; padding: 12px 4px; }
  .pillars {
    margin-top: clamp(28px, 6vw, 40px);
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .pillar {
    min-height: 180px;
    padding: 22px 22px;
    gap: 8px;
  }
  .pillar-t { font-size: 20px; margin-bottom: 2px; }
  .pillar-d { font-size: 14px; line-height: 1.5; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
