/* Grid & Gauge — public site styles. Fonts are self-hosted (SIL Open Font License). */
@font-face { font-family: "GG Text"; src: url("fonts/WorkSans-Regular.woff") format("woff"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "GG Text"; src: url("fonts/WorkSans-Bold.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "GG Text"; src: url("fonts/WorkSans-Italic.woff") format("woff"); font-weight: 300 500; font-style: italic; font-display: swap; }

:root {
  /* Brand colours taken from the Grid & Gauge logo */
  --paper: #ECEDED;      /* light grey page background */
  --paper-2: #E0E1E1;    /* slightly darker grey for alternate sections */
  --card: #FFFFFF;
  --ink: #000000;
  --ink-soft: #5E6062;
  --gray: #787A7B;
  --gray-light: #BABBBB;
  --rule: #CFD0D0;
  --signal: #AB3C35;
  --on-signal: #FFFFFF;
  --grid-minor: rgba(120, 122, 123, 0.10);
  --grid-major: rgba(120, 122, 123, 0.24);

  --display: "GG Text", "Myriad Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: "GG Text", "Myriad Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 6.2rem); line-height: .98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1; letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
#main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 38ch; font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--text);
  padding: 1rem 1.4rem; border-radius: 3px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: .7rem 1rem; font-size: .95rem; }

/* Header */
#header { position: sticky; top: 0; z-index: 50; }
.site-header { position: relative; background: rgba(236, 237, 237, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 5rem; }
.site-nav { margin-left: auto; }
@media (max-width: 1020px) { .site-nav { margin: 0; } }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: .01em; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: .6rem; }
.brand img { height: 3.1rem; width: auto; max-width: 62vw; }
.site-footer .brand img { height: 3rem; }
.wordmark { font: 700 1.7rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.wordmark > span:first-child { color: var(--signal); }
.wm-accent { color: #2B2A29; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav ul a:hover { border-bottom-color: var(--ink); }
.nav-toggle { display: none; font: 600 1rem var(--text); background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 3px; padding: .5rem .9rem; cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .header-row > .lang-seg { margin-left: auto; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.75rem; }
.hero h1 .accent { color: var(--signal); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 40ch; margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-gauge { margin: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); }
.hero-gauge .gauge-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; font-weight: 600; }
.hero-gauge figcaption { color: var(--ink-soft); font-size: 1rem; margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.hero-gauge figcaption a { color: var(--ink); font-weight: 600; }

/* Gauge SVG */
.gauge { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .g-track { stroke: #E6E6E6; }
.gauge .g-value { stroke: var(--signal); }
.gauge .g-tick { stroke: var(--ink); }
.gauge .g-tick-minor { stroke: var(--gray-light); }
.gauge .g-label { font: 700 13px var(--text); fill: var(--ink-soft); }
.gauge .g-needle { fill: var(--signal); }
.gauge .g-hub { fill: var(--signal); stroke: var(--card); stroke-width: 5; }
.gauge .g-reading { font: 700 56px var(--display); fill: var(--ink); letter-spacing: -0.03em; }
.gauge .g-unit { font: 600 13px var(--text); fill: var(--ink-soft); }

/* Statement */
.statement { padding: var(--section) 0 0; border-top: 1px solid var(--rule); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.statement-grid.has-image { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
.statement p { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 34ch; margin: 0; }
.statement { border-top-color: var(--rule); }
.statement figure { margin: 0; }
.statement img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Services */
.services-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.services-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem 4rem; align-items: baseline; border-top: 1px solid var(--ink); padding: clamp(1.4rem, 2.6vw, 2.1rem) 0; }
.services-list h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0; transition: color .15s; }
.services-list li:hover h3 { color: var(--signal); }
.services-list p { color: var(--ink-soft); margin: 0; max-width: 46ch; font-size: 1.08rem; }

/* Method — a ruler track */
.method { background: var(--paper-2); }
.method-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); position: relative; }
.method-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  border-top: 2px solid var(--ink);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, var(--gray-light) 0 1px, transparent 1px 100%);
  background-size: 60px 14px, 12px 7px;
  background-repeat: repeat-x;
  opacity: .9;
}
.method-track li { position: relative; padding: 3.25rem 2rem 0 0; }
.method-track li::before { content: ""; position: absolute; left: 0; top: -2px; width: 2px; height: 34px; background: var(--signal); }
.step-num { font: 700 .95rem var(--text); color: var(--signal); display: block; margin-bottom: .4rem; }
.method-track h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.step-time { font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.method-track p:last-child { color: var(--ink-soft); font-size: 1.05rem; }

/* Work */
.work { background: var(--ink); color: var(--paper); }
.work .section-head p { color: #BABBBB; }
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 2rem 4rem; padding: 2.75rem 0; border-top: 1px solid #333333; }
.case.has-image { grid-template-columns: minmax(0, 3.2fr) minmax(0, 4.4fr) minmax(0, 3.4fr); }
.case:last-child { border-bottom: 1px solid #333333; }
.metric { font: 700 clamp(3.2rem, 6vw, 5rem)/1 var(--display); letter-spacing: -0.04em; display: block; color: #fff; }
.work .metric { color: #fff; }
.metric-label { display: block; color: #BABBBB; margin-top: .75rem; max-width: 22ch; }
.case-client { color: #9A9C9D; font-size: 1rem; margin-bottom: .5rem; }
.case h3 { font-size: 1.5rem; margin-bottom: .9rem; color: #fff; }
.case-body p:last-child { color: #D4D5D5; margin: 0; max-width: 46ch; }
.case figure { margin: 0; }
.case img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* What we did */
.portfolio { background: var(--paper); border-top: 1px solid var(--rule); }
.pf-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pf-tabs button {
  font: 600 1rem var(--text); color: var(--ink); background: transparent; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 3px; padding: .65rem 1rem; display: inline-flex; align-items: center; gap: .5rem;
}
.pf-tabs button:hover { background: var(--card); }
.pf-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pf-count { font-size: .8rem; font-weight: 700; background: var(--signal); color: #fff; border-radius: 999px; padding: .05rem .5rem; }
.pf-intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.75rem; }
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pf-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; cursor: zoom-in;
  background: var(--card); border: 2px solid transparent; border-radius: 4px; padding: 0; overflow: hidden;
  font: inherit; color: inherit; transition: border-color .15s, transform .15s;
}
.pf-card:hover { border-color: var(--signal); }
@media (prefers-reduced-motion: no-preference) { .pf-card:hover { transform: translateY(-3px); } }
.pf-media { display: block; aspect-ratio: 3 / 2; background: #fff; border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; }
.pf-media .pf-bg { display: none; }
.pf-media.fit { background: #2a2a2a; }
.pf-media.fit .pf-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); filter: blur(16px) brightness(.62) saturate(1.15); }
.pf-media.fit .pf-img { position: relative; object-fit: contain; padding: 6% 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.pf-text .pf-badge { margin-top: .4rem; }
.pf-text { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.15rem 1.25rem; }
.pf-text strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.pf-text span { color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }

/* Featured work: full width, badge, stands out from the rest */
.pf-grid > li.pf-feature { grid-column: 1 / -1; }
.pf-feature .pf-card { flex-direction: row; border-color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.pf-feature .pf-card:hover { border-color: var(--signal); }
.pf-feature .pf-media { flex: 1.9 1 0; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--rule); }
.pf-feature .pf-text { flex: 1 1 0; justify-content: center; padding: 2rem 2.25rem; gap: .75rem; border-top: 6px solid var(--signal); }
.pf-feature .pf-text strong { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; }
.pf-feature .pf-text span { font-size: 1.05rem; }
.pf-badge { display: inline-flex; align-self: flex-start; font-style: normal; font-weight: 700; font-size: .85rem; letter-spacing: .01em; background: var(--signal); color: #fff; padding: .35rem .7rem; border-radius: 3px; }
.pf-more { color: var(--signal) !important; font-weight: 700; font-size: .95rem !important; margin-top: .25rem; }
@media (max-width: 820px) {
  .pf-feature .pf-card { flex-direction: column; }
  .pf-feature .pf-media { flex: none; width: 100%; min-height: 0; aspect-ratio: 2 / 1; border-right: 0; border-bottom: 1px solid var(--rule); }
  .pf-feature .pf-text { flex: none; }
  .pf-feature .pf-text { padding: 1.25rem 1.25rem 1.5rem; border-top: 0; border-left: 0; }
}

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .78); display: grid; place-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lb-inner { background: var(--card); border-radius: 4px; width: min(1000px, 100%); max-height: calc(100vh - 2rem); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); position: relative; }
.lb-left { display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--rule); min-width: 0; }
.lb-media { background: #fff; display: grid; place-items: center; min-height: 260px; position: relative; }
.lb-caption { position: absolute; left: .75rem; bottom: .75rem; margin: 0; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: .9rem; padding: .3rem .6rem; border-radius: 3px; }
.lb-thumbs { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--rule); overflow-x: auto; }
.lb-thumbs[hidden] { display: none; }
.lb-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 3px; background: var(--paper); cursor: pointer; overflow: hidden; }
.lb-thumbs button[aria-current="true"] { border-color: var(--signal); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-badge { align-self: flex-start; margin-bottom: .75rem; }
.lb-media img { width: 100%; height: auto; max-height: calc(100vh - 12rem); object-fit: contain; }
.lb-info { padding: 3.25rem 1.75rem 1.75rem; display: flex; flex-direction: column; }
.lb-count { color: var(--ink-soft); font-size: .92rem; margin-bottom: .5rem; }
.lb-title { font-size: 1.7rem; margin-bottom: .75rem; }
.lb-text { color: var(--ink-soft); flex: 1; }
.lb-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.lb-close { position: absolute; top: .75rem; right: .75rem; font: 600 .95rem var(--text); background: var(--ink); color: #fff; border: 0; border-radius: 3px; padding: .5rem .8rem; cursor: pointer; }
.lb-close:hover { background: var(--signal); }
@media (max-width: 1020px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .lb-inner { grid-template-columns: 1fr; }
  .lb-left { border-right: 0; border-bottom: 1px solid var(--rule); }
  .lb-info { padding: 1.5rem; }
}
@media (max-width: 560px) { .pf-grid { gap: 1rem; } .pf-tabs button { padding: .55rem .8rem; font-size: .95rem; } }
@media (max-width: 420px) { .pf-grid { grid-template-columns: 1fr; } }

/* Recent work: featured projects, large, right after the hero */
.recent { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.recent-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.025em; }
.recent-all { font-weight: 700; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.recent-all:hover { color: var(--signal); }
.recent-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recent-grid.recent-1 { grid-template-columns: minmax(0, 1fr); }
.recent-grid.recent-3 { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.recent-tile { position: relative; display: block; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; background: #000; aspect-ratio: 16 / 10; font: inherit; color: #fff; text-align: left; }
.recent-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.recent-tile:hover img { transform: scale(1.03); opacity: .92; }
.recent-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4.5rem 1.4rem 1.3rem; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.recent-cat { font-size: .92rem; font-weight: 600; color: #DCDDDD; }
.recent-cap strong { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.1; }
.recent-cap .pf-badge { margin-top: .35rem; }

/* Publications: a black band, covers rendered as books */
.pubs { background: #000; color: #fff; }
.pubs .section-head p { color: #BABBBB; }
.pub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.pub { display: flex; flex-direction: column; }
.pub-cover { position: relative; aspect-ratio: 3 / 4.25; margin-bottom: 1.5rem; border-radius: 2px 4px 4px 2px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 22px 40px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); background: #222; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(255,255,255,.18) 1.2%, rgba(0,0,0,.12) 3.2%, rgba(0,0,0,0) 7%); }
.pub-blank { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; font-weight: 700; }
.pub-body { display: flex; flex-direction: column; flex: 1; }
.pub h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: .2rem; }
.pub-sub { color: #BABBBB; font-size: 1rem; margin: 0 0 .8rem; }
.pub-text { color: #DCDDDD; font-size: 1rem; line-height: 1.55; margin: 0 0 .8rem; }
.pub-meta { color: #9A9C9D; font-size: .92rem; margin: auto 0 1rem; padding-top: .25rem; }
.pub-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pubs .btn-ghost { border-color: #fff; color: #fff; }
.pubs .btn-ghost:hover { background: #fff; color: #000; }
.pubs .btn-primary:hover { background: #fff; color: #000; }

/* Download dialog */
.pub-dlg-inner { background: var(--card); border-radius: 4px; width: min(820px, 100%); max-height: calc(100vh - 2rem); overflow: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); position: relative; }
.pub-dlg-cover { background: #000; display: grid; place-items: center; padding: 2rem; }
.pub-dlg-cover img { width: 100%; max-width: 260px; height: auto; box-shadow: 0 18px 36px -10px rgba(0,0,0,.9); border-radius: 2px 4px 4px 2px; }
.pub-dlg-body { padding: 3.25rem 2rem 2rem; }
.pub-dlg-book { color: var(--ink-soft); font-weight: 600; margin: 0 0 .3rem; }
.pub-dlg-body h3 { font-size: 1.9rem; letter-spacing: -0.03em; margin-bottom: .6rem; }
.pub-dlg-text { color: var(--ink-soft); margin-bottom: 1.25rem; }
.pub-form { display: grid; gap: 1rem; }
.pub-form[hidden] { display: none; }
.pub-form .field input { padding: .7rem .85rem; }
.pub-form .btn { justify-self: start; }
.pub-privacy { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.pub-done p { margin: 0 0 .75rem; }
.pub-done-title { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.pub-link { font-weight: 700; color: var(--signal); }

@media (max-width: 1020px) {
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid.recent-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid.recent-3 .recent-tile:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .recent-grid, .recent-grid.recent-3 { grid-template-columns: minmax(0, 1fr); }
  .recent-tile { aspect-ratio: 4 / 3; }
  .pub-dlg-inner { grid-template-columns: 1fr; }
  .pub-dlg-cover { padding: 1.25rem; }
  .pub-dlg-cover img { max-width: 140px; }
  .pub-dlg-body { padding: 1.5rem; }
}
@media (max-width: 480px) { .pub-grid { grid-template-columns: minmax(0, 1fr); } .pub-cover { max-width: 260px; } }

/* Brands and institutions */
.clients { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.clients h2 { font-size: 1.05rem; letter-spacing: 0; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.1rem; }
.client-list { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; }
.client-list li { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }

/* About Luis */
.about { background: #000; color: #fff; padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-photos { position: relative; padding: 0 12% 18% 0; }
.about-portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.about-action { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 4px; border: 6px solid #000; }
.about h2 { color: #fff; margin-bottom: 1.25rem; }
.about-lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; color: #fff; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.1rem; max-width: 40ch; }
.about-text { color: #C9CACA; max-width: 58ch; margin-bottom: 1.6rem; }
.about-facts { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.about-facts li { padding: .75rem 0 .75rem 1.1rem; border-top: 1px solid #333; position: relative; font-weight: 600; font-size: 1rem; }
.about-facts li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: .45rem; height: .45rem; background: var(--signal); }
.about .btn-ghost { border-color: #fff; color: #fff; }
.about .btn-ghost:hover { background: #fff; color: #000; }
.about .btn-primary:hover { background: #fff; color: #000; }

/* Telegram */
.tg-fab { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: .55rem;
  background: #229ED9; color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem; padding: .75rem 1.05rem .75rem .85rem; border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
.tg-fab:hover { background: #1b87bb; }
.tg-fab svg { flex: none; }

/* Language switch: both languages always visible, at the top and in the footer */
.lang-seg { display: inline-flex; flex: none; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; }
.lang-seg a { padding: .38rem .65rem; font-weight: 700; font-size: .92rem; line-height: 1.2; text-decoration: none; color: var(--ink); background: transparent; white-space: nowrap; }
.lang-seg a[lang="km"] { font-family: "Kantumruy Pro", "Khmer OS Battambang", "Noto Sans Khmer", "Khmer Sangam MN", "Khmer UI", sans-serif; font-weight: 600; }
.lang-seg a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang-seg a:not([aria-current="true"]):hover { background: var(--card); }
.footer-bottom { align-items: center; }
.lang-short { display: none; }
.lang-seg-bottom { margin-left: auto; margin-right: 1.25rem; }

/* Khmer: a Khmer typeface first, taller lines, no tightened spacing */
.lang-km { --text: "Kantumruy Pro", "Khmer OS Battambang", "Noto Sans Khmer", "Khmer Sangam MN", "Khmer UI", "GG Text", sans-serif; --display: var(--text); }
.lang-km body, body.lang-km { line-height: 1.85; }
.lang-km h1, .lang-km h2, .lang-km h3, .lang-km .about-lead, .lang-km .statement p, .lang-km .services-list h3, .lang-km .recent-cap strong, .lang-km .client-list li, .lang-km .pf-text strong { letter-spacing: 0; }
.lang-km h1, .lang-km h2 { line-height: 1.4; }
.lang-km .hero h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.lang-km .section-head h2, .lang-km .about h2, .lang-km .diag-intro h2, .lang-km .contact-grid h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.lang-km .site-nav ul { gap: 1.1rem; }
.lang-km .site-nav ul a, .lang-km .site-nav .btn { font-size: .95rem; }
.lang-km h3 { line-height: 1.5; }
.lang-km .statement p { line-height: 1.6; }
.lang-km .services-list h3 { line-height: 1.45; }
.lang-km .lead, .lang-km .about-lead { line-height: 1.7; }
.lang-km .btn { line-height: 1.4; padding-top: .75rem; padding-bottom: .75rem; }

@media (max-width: 1020px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photos { max-width: 520px; }
}
@media (max-width: 560px) {
  .about-facts { grid-template-columns: 1fr; }
  .tg-fab span { display: none; }
  .header-row { gap: .5rem; }
  .header-row .lang-long { display: none; }
  .header-row .lang-short { display: inline; }
  .lang-seg a { padding: .35rem .5rem; font-size: .85rem; }
  .brand img { height: 2rem; max-width: 46vw; }
  .nav-toggle { padding: .42rem .65rem; font-size: .92rem; }
  .lang-seg-bottom { margin: 0; order: -1; }
  .tg-fab { padding: .8rem; }
  .client-list { gap: .35rem 1.4rem; }
}

/* Video */
.pf-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(171, 60, 53, .92); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); pointer-events: none; }
.pf-play svg { margin-left: 3px; }
.recent-tile .pf-play { top: 42%; }
.lb-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.lb-video video, .lb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lb-thumbs button.is-video { position: relative; }
.lb-thumbs button.is-video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* Video hero: the Jaguar laser show behind the headline */
.hero-video { min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem); background: #000; color: #fff; overflow: hidden; }
.hero-video::before { z-index: 1; -webkit-mask-image: none; mask-image: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.66) 38%, rgba(0,0,0,.12) 72%, rgba(0,0,0,0) 100%),
  linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero-video .hero-copy { max-width: 46rem; }
.hero-video h1 { color: #fff; }
.hero-video .lead { color: #E4E5E5; max-width: 34ch; font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.hero-video .btn-ghost { border-color: #fff; color: #fff; }
.hero-video .btn-ghost:hover { background: #fff; color: #000; }
.hero-video .btn-primary:hover { background: #fff; color: #000; }
.hero-credit { flex: none; max-width: 21rem; display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 3px; background: rgba(0,0,0,.55); color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.35; text-decoration: none; border: 1px solid rgba(255,255,255,.25); }
.hero-credit:hover { background: rgba(0,0,0,.8); border-color: #fff; }
.hero-credit-dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--signal); }

/* Case study pages */
.cs-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.cs-back { display: inline-block; font-weight: 700; color: var(--ink); text-underline-offset: 4px; margin-bottom: 2rem; }
.cs-back:hover { color: var(--signal); }
.cs-meta { color: var(--ink-soft); font-weight: 600; margin: 0 0 .5rem; }
.cs-head h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); margin-bottom: 1.1rem; }
.cs-summary { max-width: 46ch; margin: 1.2rem 0 0; }
.cs-hero-media { margin-bottom: clamp(3rem, 6vw, 5rem); }
.cs-hero-media > img { width: 100%; border-radius: 4px; max-height: 720px; object-fit: cover; }
.cs-hero-media .lb-video { border-radius: 4px; overflow: hidden; }
.cs-results { background: #000; color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cs-results h2 { font-size: 1.05rem; letter-spacing: 0; color: #BABBBB; margin-bottom: 1.25rem; }
.cs-results ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem 3rem; }
.cs-results li { border-top: 2px solid var(--signal); padding-top: 1rem; }
.cs-results strong { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; }
.cs-results span { display: block; color: #DCDDDD; margin-top: .4rem; max-width: 26ch; }
.cs-story { padding: var(--section) 0 calc(var(--section) * .6); }
.cs-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem 4rem; padding: clamp(1.5rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--ink); }
.cs-row:last-child { border-bottom: 1px solid var(--ink); }
.cs-row h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.025em; }
.cs-row p { margin: 0; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.65; max-width: 60ch; }
.cs-quote { padding: 0 0 var(--section); }
.cs-quote blockquote { margin: 0; padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 4px solid var(--signal); max-width: 52rem; }
.cs-quote p { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 1rem; }
.cs-quote footer { color: var(--ink-soft); font-weight: 600; }
.cs-gallery { padding: 0 0 var(--section); }
.cs-gallery h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1.5rem; }
.cs-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.cs-gallery figure { margin: 0; }
.cs-gallery figure > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; cursor: zoom-in; background: #fff; }
.cs-gallery .lb-video { border-radius: 4px; overflow: hidden; }
.cs-gallery figcaption { color: var(--ink-soft); font-size: .95rem; margin-top: .55rem; }
.cs-cta { border-top: 3px solid var(--ink); padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
.cs-cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.cs-cta h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1.5rem; max-width: 18ch; }
.cs-next { display: block; text-decoration: none; color: var(--ink); padding: 1.25rem 1.4rem; background: var(--card); border-radius: 4px; border: 2px solid transparent; }
.cs-next:hover { border-color: var(--signal); }
.cs-next span { display: block; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.cs-next strong { display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; margin-top: .25rem; }
a.pf-card, a.recent-tile { cursor: pointer; text-decoration: none; }
.lang-km .cs-head h1, .lang-km .cs-results strong, .lang-km .cs-quote p, .lang-km .cs-row h2, .lang-km .cs-next strong { letter-spacing: 0; line-height: 1.45; }

@media (max-width: 820px) {
  .hero-video { min-height: 78vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.25) 100%); }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-credit { max-width: 100%; }
  .cs-row, .cs-cta-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-gallery ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }

/* Diagnostic */
.diag { border-top: 1px solid var(--rule); }
.diag-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.diag-intro h2 { margin-bottom: 1.25rem; }
.diag-intro > p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 2.5rem; }
.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.questions li { counter-increment: q; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.questions fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.questions legend { padding: 0; font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem; display: flex; gap: .9rem; }
.questions legend::before { content: counter(q); font: 700 1.05rem/1.6 var(--text); color: var(--signal); min-width: 1.1rem; }
.scale { display: flex; gap: .4rem; padding-left: 2rem; }
.scale label { flex: 1; position: relative; cursor: pointer; }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale span { display: block; text-align: center; padding: .6rem 0; border: 2px solid var(--rule); border-radius: 3px; font-weight: 600; transition: border-color .12s, background-color .12s; }
.scale label:hover span { border-color: var(--ink); }
.scale input:checked + span { background: var(--signal); border-color: var(--signal); color: #fff; }
.scale input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; padding-left: 2rem; margin-top: .45rem; font-size: .85rem; color: var(--ink-soft); }

.diag-panel { position: sticky; top: 6.5rem; background: var(--card); border: 2px solid var(--ink); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); }
.diag-progress { font-weight: 600; margin: .5rem 0 0; }
.diag-progress small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.diag-result { border-top: 1px solid var(--rule); margin-top: 1.25rem; padding-top: 1.25rem; }
.diag-result h3 { font-size: 1.8rem; margin-bottom: .5rem; color: var(--signal); }
.diag-result p { color: var(--ink-soft); }
.lead-form { display: grid; gap: .9rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.lead-form[hidden] { display: none; }
.lead-intro { font-weight: 700; color: var(--ink) !important; margin: 0; }
.lead-form .field input { padding: .65rem .8rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.lead-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.lead-done { margin: 1.25rem 0 0; padding: 1rem 1.1rem; background: var(--paper-2); border-left: 4px solid var(--signal); font-weight: 700; color: var(--ink) !important; }
.diag-result .form-status { margin: 0; }
.diag-reset { background: none; border: 0; padding: .5rem; margin-left: .5rem; font: 500 1rem var(--text); text-decoration: underline; color: var(--ink-soft); cursor: pointer; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 3rem 2rem; list-style: none; padding: 0; margin: 0; }
.member-photo { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--card); margin-bottom: 1rem; display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font: 700 3.5rem var(--display); color: var(--gray-light); }
.team-grid h3 { font-size: 1.35rem; }
.member-role { font-weight: 600; margin: .2rem 0 .5rem; }
.member-bio { color: var(--ink-soft); font-size: 1rem; }

/* Contact */
.contact { border-top: 3px solid var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); }
.contact-grid h2 { margin-bottom: 1.25rem; }
.contact-intro > p { color: var(--ink-soft); max-width: 38ch; }
.contact-details { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-details li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.contact-details a { font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  font: 400 1.05rem var(--text); color: var(--ink); background: #fff;
  border: 2px solid var(--gray-light); border-radius: 3px; padding: .8rem .9rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 500; }
.form-status.ok { color: #1D6B3A; }
.form-status.err { color: #A3261B; }
.form .btn { justify-self: start; }

/* Footer: light, so the logo always shows in its true colours */
.site-footer { background: var(--paper-2); color: var(--ink-soft); padding: 4rem 0 2.5rem; font-size: 1rem; border-top: 3px solid var(--signal); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer .brand { color: var(--ink); margin-bottom: 1.25rem; }
.site-footer p { max-width: 34ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.footer-head { font-weight: 700; color: var(--ink-soft); margin-bottom: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-light); color: var(--ink-soft); font-size: .92rem; }
.footer-bottom a { color: var(--ink-soft); }

/* Content pages */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1rem; }
.page-hero .lead { margin: 0; }
.page-image { margin: 3rem auto 0; }
.page-image img { border-radius: 4px; width: 100%; max-height: 560px; object-fit: cover; }
.prose { max-width: 68ch; padding: 3.5rem 0 var(--section); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4rem; }
.notfound { padding: var(--section) 0; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.noscript { padding: 4rem 0; }

/* Responsive */
@media (max-width: 1020px) {
  .method-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .method-track::before { display: none; }
  .method-track li { border-top: 2px solid var(--ink); padding-top: 1.75rem; }
  .method-track li::before { top: -2px; height: 18px; }
  .case.has-image { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .case.has-image figure { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero-grid, .diag-grid, .contact-grid, .statement-grid.has-image, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-gauge { max-width: 460px; }
  .diag-panel { position: static; }
  .case, .case.has-image { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .method-track { grid-template-columns: minmax(0, 1fr); }
  .services-list li { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: 1fr; }
  .scale { padding-left: 0; }
  .scale-ends { padding-left: 0; }
  .header-row { height: 4.25rem; }
  .brand img { height: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Lightbox fixes: captions clear of video controls; hidden nav buttons stay hidden */
.lb-media .lb-video ~ .lb-caption { top: .75rem; bottom: auto; }
.lb-nav .btn[hidden] { display: none; }

/* Brand red lifted slightly where it sits on the dark video, for legibility */
.hero-video h1 .accent { color: #E0574D; }

/* ===== Page structure: short home page, separate pages ===== */
.page-intro { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1rem, 3vw, 2rem); }
.page-intro h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin-bottom: 1rem; }
.page-intro .lead { margin: 0; max-width: 46ch; }

/* The two departments on the home page */
.depts { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.dept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.dept-card { display: flex; flex-direction: column; background: var(--card); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s; }
.dept-card:hover { border-color: var(--ink); }
.dept-card-media { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #000; }
.dept-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dept-card:hover .dept-card-media img { transform: scale(1.03); }
.dept-card-body { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.4rem, 3vw, 2.2rem); flex: 1; }
.dept-card-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.dept-card-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 44ch; }
.dept-card-points { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.dept-card-points span { font-size: .9rem; font-weight: 600; padding: .3rem .65rem; border: 1px solid var(--gray-light); border-radius: 999px; }
.dept-card-link { margin-top: auto; padding-top: .6rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Department page hero */
.dept-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.dept-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dept-label { font-weight: 700; color: var(--ink-soft); margin: 0 0 .9rem; }
.dept-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); margin-bottom: 1.4rem; }
.dept-hero h1 .accent { color: var(--signal); }
.dept-hero .lead { max-width: 42ch; margin-bottom: 2rem; }
.dept-hero-media { margin: 0; }
.dept-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Case study cards */
.cases { border-top: 1px solid var(--rule); }
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.case-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s; }
.case-card:hover { border-color: var(--ink); }
.case-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card-media img { transform: scale(1.03); }
.case-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.case-card-meta { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.case-card-body strong { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.case-card-body .pf-more { margin-top: auto; padding-top: .4rem; }

/* Home: short About teaser */
.about-teaser { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.about-teaser .about-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.about-photos.teaser { padding: 0; max-width: 300px; }

/* ===== Red used sparingly: kept for the main action, the logo and highlight lines ===== */
.pf-badge { background: #000; color: #fff; }
.recent-cap .pf-badge, .about .pf-badge, .cs-results .pf-badge, .pubs .pf-badge { background: #fff; color: #000; }
.pf-count { background: var(--gray); }
.pf-more { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pf-card:hover, .pf-feature .pf-card:hover { border-color: var(--ink); }
.pf-feature .pf-text { border-top-color: var(--ink); }
.pf-play { background: rgba(0, 0, 0, .78); }
.lb-thumbs button[aria-current="true"] { border-color: var(--ink); }
.scale input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.questions legend::before { color: var(--ink-soft); }
.diag-result h3 { color: var(--ink); }
.lead-done { border-left-color: var(--ink); }
.step-num { color: var(--ink-soft); }
.method-track li::before { background: var(--ink); }
.services-list li:hover h3 { color: var(--ink); }
.about-facts li::before { background: #fff; }
.cs-results li { border-top-color: #fff; }
.cs-next:hover { border-color: var(--ink); }
.cs-back:hover, .recent-all:hover { color: var(--ink); text-decoration-thickness: 3px; }
.site-footer { border-top-color: var(--ink); }
.site-footer a:hover { color: var(--ink); }
.pub-link { color: var(--ink); text-decoration: underline; }
/* Secondary actions in black (or white on dark bands); red stays for "Book a diagnosis" and the contact form */
.btn-dark, .pub-btn, .pub-form .btn-primary, .lead-form .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover, .pub-btn:hover, .pub-form .btn-primary:hover, .lead-form .btn-primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.pubs .pub-btn { background: #fff; border-color: #fff; color: #000; }
.pubs .pub-btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }

@media (max-width: 860px) {
  .dept-grid, .dept-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .about-teaser .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) { .case-grid { grid-template-columns: minmax(0, 1fr); } }
.lang-km .dept-card-title, .lang-km .page-intro h1, .lang-km .dept-hero h1, .lang-km .case-card-body strong { letter-spacing: 0; line-height: 1.4; }

.site-nav ul a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }

/* ===== We measure what we build ===== */
.measure { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--rule); }
.measure-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.measure-head h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.measure-head p { margin: 0; color: var(--ink-soft); font-size: 1.15rem; max-width: 44ch; }
.measure-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: ms; }
.measure-steps li { position: relative; padding-top: 1.4rem; }
.measure-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.measure-steps li:nth-child(2) .measure-line { transition-delay: .25s; }
.measure-steps li:nth-child(3) .measure-line { transition-delay: .5s; background: var(--signal); }
.measure.in .measure-line { transform: scaleX(1); }
.measure-steps h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .5rem; }
.measure-steps p { color: var(--ink-soft); margin: 0; max-width: 32ch; }
.measure-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.measure-foot p { margin: 0; font-weight: 600; max-width: 56ch; }
.measure-foot .actions { align-items: center; }
.text-link { font-weight: 700; color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Department cross-links */
.cross { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--paper-2); }
.cross-grid { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cross h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.cross p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* ===== The Standard ===== */
.standard { background: #000; color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0 var(--section); }
.standard-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.standard-head h1 { color: #fff; font-size: clamp(2.8rem, 6.6vw, 6rem); margin-bottom: 1.2rem; }
.standard-head .lead { color: #DCDDDD; max-width: 46ch; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem 2rem; padding: clamp(1.4rem, 3vw, 2.2rem) 0; position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #fff; opacity: .55; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.standard.in .principles li::before { transform: scaleX(1); }
.principles li:nth-child(2)::before { transition-delay: .08s; } .principles li:nth-child(3)::before { transition-delay: .16s; }
.principles li:nth-child(4)::before { transition-delay: .24s; } .principles li:nth-child(5)::before { transition-delay: .32s; }
.principles li:nth-child(6)::before { transition-delay: .40s; } .principles li:nth-child(7)::before { transition-delay: .48s; }
.p-num { font-weight: 700; font-size: 1.1rem; color: #9A9C9D; padding-top: .45rem; font-variant-numeric: tabular-nums; }
.principles h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.9rem); margin-bottom: .5rem; }
.principles li:last-child h2 { color: #E0574D; }
.principles p { color: #C9CACA; margin: 0; max-width: 54ch; font-size: 1.1rem; }
.signature { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid #333; display: flex; flex-direction: column; gap: .2rem; }
.sig-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.sig-role { color: #9A9C9D; }
.standard-cta { margin-top: 2.5rem; }
.standard .btn-ghost { border-color: #fff; color: #fff; }
.standard .btn-ghost:hover { background: #fff; color: #000; }

/* ===== Personal Brand Gauge report ===== */
.report { padding: clamp(1.5rem, 4vw, 3rem) 0 var(--section); }
.report .wrap { max-width: 900px; }
.rp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.rp-head, .rp-score, .rp-block { background: var(--card); padding: clamp(1.4rem, 4vw, 2.6rem); }
.rp-head { border-radius: 4px 4px 0 0; border-top: 6px solid var(--ink); }
.rp-logo { height: 2.6rem; width: auto; margin-bottom: 1.6rem; }
.rp-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .4rem; }
.rp-meta { color: var(--ink-soft); margin: 0; }
.rp-score { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem 2.5rem; align-items: center; border-top: 1px solid var(--rule); }
.rp-label { font-weight: 700; color: var(--ink-soft); margin: 0 0 .3rem; }
.rp-score h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.rp-score p { color: var(--ink-soft); }
.rp-block { border-top: 1px solid var(--rule); }
.rp-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.1rem; }
.rp-priorities { margin: 0; padding-left: 1.4rem; display: grid; gap: 1.1rem; }
.rp-priorities li::marker { font-weight: 700; }
.rp-q { margin: 0 0 .3rem; font-weight: 600; }
.rp-you { display: inline-block; font-weight: 600; font-size: .85rem; color: var(--ink-soft); border: 1px solid var(--gray-light); border-radius: 999px; padding: .05rem .55rem; margin-left: .3rem; white-space: nowrap; }
.rp-advice { margin: 0; color: var(--ink-soft); }
.rp-answers { list-style: none; margin: 0; padding: 0; }
.rp-answers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.rp-bar { display: inline-flex; gap: 3px; }
.rp-bar span { width: 18px; height: 10px; background: var(--paper-2); border-radius: 1px; }
.rp-bar span.on { background: var(--ink); }
.rp-scale { color: var(--ink-soft); font-size: .88rem; margin: .7rem 0 0; }
.rp-next { border-radius: 0 0 4px 4px; }
.rp-contact { font-weight: 600; }
@media (max-width: 700px) {
  .measure-head, .rp-score { grid-template-columns: minmax(0, 1fr); }
  .measure-steps { grid-template-columns: minmax(0, 1fr); }
  .principles li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem 1rem; }
  .rp-answers li { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .measure-line, .principles li::before { transform: none; transition: none; }
}
.lang-km .measure-head h2, .lang-km .principles h2, .lang-km .standard-head h1, .lang-km .rp-head h1 { letter-spacing: 0; line-height: 1.45; }

/* Print: the report becomes a clean A4 document */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  #header, #footer, .tg-fab, .rp-actions, .no-print, .skip { display: none !important; }
  .report { padding: 0; }
  .report .wrap { max-width: none; padding: 0; }
  .rp-head, .rp-score, .rp-block { padding: 7mm 0; background: #fff; }
  .rp-block, .rp-score { break-inside: avoid; }
  .rp-bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
}

/* ===== Bilingual typography: Khmer and English composed together ===== */
:root { --khmer: "Kantumruy Pro", "Khmer OS Battambang", "Noto Sans Khmer", "Khmer Sangam MN", "Khmer UI", sans-serif; }
[lang="km"].bi-alt, [lang="km"].bi-inline, [lang="km"].p-alt, [lang="km"].bi-foot { font-family: var(--khmer); letter-spacing: 0; }
[lang="en"].bi-alt, [lang="en"].bi-inline, [lang="en"].p-alt, [lang="en"].bi-foot { font-family: "GG Text", "Helvetica Neue", Arial, sans-serif; }
/* Companion line above a headline: a short rule, then the other language */
.bi-alt { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; font-weight: 600; color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.9vw, 1.55rem); line-height: 1.55; max-width: 40ch; }
.bi-alt::before { content: ""; flex: none; width: 2.4rem; height: 2px; background: currentColor; opacity: .7; }
[lang="km"].bi-alt { line-height: 1.75; font-weight: 600; }
[lang="en"].bi-alt { letter-spacing: -0.01em; }
/* on dark backgrounds */
.hero-video .bi-alt, .about .bi-alt, .standard .bi-alt { color: rgba(255,255,255,.8); }
/* Larger pairing on the big statement headlines */
.hero-video .bi-alt, .standard-head .bi-alt { font-size: clamp(1.15rem, 2.2vw, 1.85rem); max-width: 34ch; }
/* Department names share a baseline with their translation */
.bi-inline { font-size: .5em; font-weight: 600; color: var(--gray); letter-spacing: 0; vertical-align: .08em; margin-left: .25em; white-space: nowrap; }
[lang="km"].bi-inline { font-size: .55em; }
/* The Standard: each principle in both languages */
.p-alt { color: #9A9C9D !important; font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.4rem) !important; margin: -.1rem 0 .7rem !important; line-height: 1.6; }
/* Footer tagline */
.bi-foot { margin-left: .4rem; }
@media (max-width: 560px) {
  .bi-alt { gap: .6rem; }
  .bi-alt::before { width: 1.4rem; }
}
/* Keep the hero's main action visible on laptop screens now that the headline has a companion line */
.hero-video { padding-top: clamp(3.5rem, 8vw, 6rem); }
.hero-video h1 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.hero-video h1 { margin-bottom: 1.4rem; }
.hero-video .lead { margin-bottom: 1.8rem; }
@media (max-height: 820px) and (min-width: 821px) {
  .hero-video { padding-top: 2.5rem; padding-bottom: 2.5rem; min-height: 0; }
  .hero-video h1 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); margin-bottom: 1rem; }
  .hero-video .bi-alt { font-size: 1.1rem; margin-bottom: .7rem; }
  .hero-video .lead { font-size: 1.1rem; margin-bottom: 1.4rem; }
}

/* ===== Partners ===== */
.partners-hero { background: #000; color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.partners-hero h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin-bottom: 1rem; }
.partners-hero .lead { color: #DCDDDD; max-width: 44ch; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.partners-hero .bi-alt { color: rgba(255,255,255,.8); }
/* the network map */
.pmap { margin: 0; }
.pmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.pm-grid line { stroke: rgba(255,255,255,.09); stroke-width: 1; }
.pm-line { fill: none; stroke: #fff; stroke-width: 1.6; opacity: .85; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pmap.in .pm-line { animation: pmDraw 1.6s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes pmDraw { to { stroke-dashoffset: 0; } }
.pm-dot { fill: #fff; }
.pm-hub { fill: var(--signal); }
.pm-hub-ring { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: .6; }
.pm-label { fill: #DCDDDD; font-family: var(--text); font-weight: 600; }
.pm-hub-label { fill: #fff; font-weight: 700; }
.lang-km .pm-label { font-family: var(--khmer); }
/* partner cards */
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.partner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); background: var(--card); border-radius: 4px; overflow: hidden; }
.partner-logo { display: grid; place-items: center; padding: 2rem; border-right: 1px solid var(--rule); background: #fff; min-height: 220px; }
.partner-logo-img { max-width: 80%; max-height: 120px; width: auto; height: auto; }
.partner-wordmark { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-align: center; }
.partner-body { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.partner-body h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: .2rem 0 0; }
.partner-type { font-weight: 700; margin: 0; }
.partner-where { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.partner-text { margin: .4rem 0 .6rem; max-width: 62ch; color: var(--ink-soft); }
.partner-group { border-top: 1px solid var(--rule); }
/* compact strip */
.pstrip { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.pstrip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--ink); padding-top: 1.1rem; margin-bottom: 1rem; }
.pstrip-head h2 { font-size: 1.05rem; letter-spacing: 0; color: var(--ink-soft); font-weight: 600; }
.pstrip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.pstrip-list a { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.2rem; background: var(--card); border-radius: 4px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.pstrip-list a:hover { border-color: var(--ink); }
.pstrip-logo { flex: none; width: 110px; display: grid; place-items: center; }
.pstrip-img { max-width: 110px; max-height: 54px; width: auto; height: auto; }
.pstrip-logo .partner-wordmark { font-size: 1.05rem; }
.pstrip-text { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.pstrip-text strong { font-size: 1.15rem; }
.pstrip-text span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 760px) {
  .partner { grid-template-columns: minmax(0, 1fr); }
  .partner-logo { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 140px; }

}
@media (max-width: 400px) { .pstrip-list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pm-line { stroke-dashoffset: 0; animation: none !important; } }

/* The menu folds into the Menu button below 1240px, so the header always fits */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .header-row > .lang-seg { margin-left: auto; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
}

/* Partner logos that need a dark background (e.g. gold on black) */
.pstrip-logo.has-bg { border-radius: 3px; padding: .5rem .7rem; width: 120px; }
.pstrip-logo.has-bg .pstrip-img { max-height: 64px; }
.partner-logo-img { max-height: 150px; }

.pm-num { fill: #fff; font-weight: 700; }
.pm-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: #DCDDDD; font-weight: 600; }
.pm-legend li { display: flex; align-items: center; gap: .45rem; }
.pm-legend span { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); font-size: .85rem; color: #fff; }
.lang-km .pm-legend { font-family: var(--khmer); }
@media (max-width: 380px) {
  .brand img { max-width: 40vw; }
  .header-row { gap: .4rem; }
  .lang-seg a { padding: .32rem .42rem; }
  .nav-toggle { padding: .4rem .55rem; }
}

.pm-dot-num { fill: #fff; }
.pm-numtext { fill: #000; font-family: var(--text); font-weight: 700; }
.lang-km .pm-numtext { font-family: var(--khmer); }
