/* Palancica Vladimir Lee — "gold" version: navy, gold, Angkor at dawn */
:root {
  --navy-950: #050f24;
  --navy-900: #071531;
  --navy-800: #0b1d40;
  --navy-700: #12295a;
  --gold: #d6a84f;
  --gold-hi: #f6e2a2;
  --gold-lo: #a97a2c;
  --gold-line: rgba(214, 168, 79, .45);
  --gold-soft: rgba(214, 168, 79, .14);
  --ink: #f5f1e8;
  --muted: #b8c0d2;
  --pink: #f2b6cd;
  --paper: #fbf8f2;
  --paper-ink: #13213f;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Onest", system-ui, sans-serif;
  --km: "Kantumruy Pro", "Onest", system-ui, sans-serif;

  --m: clamp(20px, 3.4vw, 56px);
  --gap: clamp(88px, 10vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  background: var(--navy-900);
  background-image: radial-gradient(1200px 700px at 85% -10%, #163470 0%, transparent 60%), radial-gradient(900px 600px at -10% 40%, #0f2756 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
html[lang="km"] body { font-family: var(--km); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy-900); }
svg { flex: none; }
.ic, .ic-s, .ic-l { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }
.ic-l { width: 26px; height: 26px; color: var(--gold); }

/* ---------- type ---------- */
.gold-text {
  background: linear-gradient(180deg, var(--gold-hi) 0%, #e4bd6a 45%, var(--gold) 70%, #f0d184 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display, .display-1, .display-2 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; line-height: 1; }
.display { font-size: clamp(2.8rem, 1.2rem + 5vw, 6.2rem); filter: drop-shadow(0 3px 14px rgba(3, 9, 22, .75)); }
.hero .lead, .hero .eyebrow, .pillars { text-shadow: 0 1px 10px rgba(3, 9, 22, .9); }
.display-1 { font-size: clamp(3rem, 1.6rem + 5vw, 6.4rem); }
.display-2 { font-size: clamp(2.3rem, 1.4rem + 2.8vw, 4.2rem); }
html[lang="km"] .display-2 { font-family: var(--km); font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1.3; }
html[lang="km"] .display-1 { font-family: var(--km); line-height: 1.25; font-size: clamp(2.4rem, 1.4rem + 3vw, 4.4rem); }
.eyebrow { margin: 0 0 14px; font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
html[lang="km"] .eyebrow, html[lang="km"] .caps { letter-spacing: 0; text-transform: none; }
.eyebrow-line { display: flex; align-items: center; gap: 18px; }
.eyebrow-line::after { content: ""; width: 120px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.caps { margin: 8px 0 0; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.rule { display: block; width: 120px; height: 2px; margin: 22px 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 12px rgba(246, 226, 162, .45); }
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); line-height: 1.4; margin: 0; max-width: 36ch; }
.caption { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); text-align: center; }
html[lang="km"] .caption { font-family: var(--km); font-style: normal; font-size: 1rem; }

/* ---------- shared pieces ---------- */
.angkor { position: absolute; pointer-events: none; background: url(assets/angkor-footer.webp) left center / cover no-repeat; z-index: 0; }
section, .foot { position: relative; }
section > *:not(.angkor), .foot > *:not(.angkor) { position: relative; z-index: 1; }
.card { background: linear-gradient(180deg, rgba(18, 41, 90, .55), rgba(7, 21, 49, .7)); border: 1px solid var(--gold-line); border-radius: var(--radius); }
.panel { background: linear-gradient(180deg, rgba(14, 33, 74, .7), rgba(7, 21, 49, .85)); border: 1px solid var(--gold-line); border-radius: 22px; box-shadow: 0 0 0 1px rgba(246, 226, 162, .05) inset, 0 24px 60px rgba(0, 0, 0, .35); }
.gframe { border: 2px solid var(--gold); border-radius: 14px; overflow: hidden; box-shadow: 0 0 24px rgba(214, 168, 79, .25); background: var(--navy-950); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--gold-line); font-weight: 600; font-size: .95rem; color: var(--gold-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-loc { color: var(--ink); font-weight: 500; }
.pill-loc .ic-s { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #f7e2a2, #dcae55 55%, #c08f3c); color: #1a1405; font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 8px 24px rgba(214, 168, 79, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(214, 168, 79, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--gold-hi); border: 1px solid var(--gold); box-shadow: none; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--gold); background: rgba(7, 21, 49, .7); color: var(--gold-hi); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s; }
.arrow:hover { background: var(--gold); color: var(--navy-900); }
.arrow:active { transform: scale(.94); }
.arrow:disabled { opacity: .35; cursor: default; background: transparent; color: var(--gold-hi); }
.arrow .ic { width: 20px; height: 20px; stroke-width: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--gold-line); background: rgba(7, 21, 49, .6); color: var(--ink); font-size: 1rem; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.chips button .ic-s { color: var(--gold); width: 20px; height: 20px; }
.chips button:hover { border-color: var(--gold); }
.chips button:active { transform: scale(.97); }
.chips button[aria-pressed="true"] { background: linear-gradient(180deg, #f7e2a2, #d7a74e); color: #1a1405; border-color: transparent; box-shadow: 0 6px 20px rgba(214, 168, 79, .35); }
.chips button[aria-pressed="true"] .ic-s { color: #1a1405; }
.rail { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.rail.fits { grid-template-columns: 1fr; }
.rail.fits .arrow { display: none; }
.sec-head { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head-ic { align-items: center; }
.sec-ic { width: 72px; height: 72px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.2; padding-right: 28px; border-right: 1px solid var(--gold-line); box-sizing: content-box; }
.sec-note { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink); }
.goldline { display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent); box-shadow: 0 0 14px rgba(246, 226, 162, .5); }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 12px var(--m); background: linear-gradient(180deg, rgba(7, 21, 49, .97), rgba(5, 15, 36, .95));
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-hi) 50%, var(--gold) 75%, transparent) 1;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding-right: 28px; border-right: 1px solid var(--gold-line); }
.brand-crest { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--gold-hi); white-space: nowrap; }
.brand-sub { font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; margin-top: 6px; color: var(--ink); }
html[lang="km"] .brand-sub { letter-spacing: 0; text-transform: none; font-size: .75rem; }
.nav { display: flex; gap: clamp(14px, 2vw, 34px); justify-content: center; flex-wrap: wrap; }
.nav a { position: relative; text-decoration: none; font-family: var(--serif); font-size: 1.22rem; font-weight: 500; color: var(--ink); padding: 6px 0; white-space: nowrap; transition: color .2s; }
html[lang="km"] .nav a { font-family: var(--km); font-size: .98rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.on { color: var(--gold-hi); }
.nav a.on::after { transform: none; }
.bar-contact { display: none; }
.langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--gold); }
.langs button { min-width: 46px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s; }
.langs button[lang="km"] { font-family: var(--km); font-size: .95rem; }
.langs button:hover { color: var(--gold-hi); }
.langs button[aria-pressed="true"] { background: linear-gradient(180deg, #f7e2a2, #d7a74e); color: #1a1405; }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - 80px); display: grid; grid-template-columns: minmax(280px, 30%) 1fr; grid-template-rows: 1fr auto; overflow: hidden; padding-top: 40px; }
.angkor-hero { inset: 0 0 auto 60%; height: 58%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(180deg, #000 55%, transparent 100%); mask-composite: intersect; opacity: .85; }
.hero-portrait { grid-row: 1 / span 2; align-self: end; width: 100%; max-width: 440px; margin-left: calc(var(--m) * .3); -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.hero-body { padding: 0 var(--m) 0 clamp(8px, 2vw, 40px); max-width: 1100px; }
.pillars { list-style: none; margin: 30px 0; padding: 0; display: flex; flex-wrap: wrap; }
.pillars li { display: flex; align-items: center; gap: 14px; padding: 4px 28px; font-size: 1.15rem; line-height: 1.25; max-width: 15em; }
.pillars li:first-child { padding-left: 0; }
.pillars li + li { border-left: 1px solid var(--gold-line); }
.pillars .ic-l { width: 40px; height: 40px; stroke-width: 1.3; }
.frame-box { border: 1.5px solid var(--gold); border-radius: 22px; padding: 18px; background: rgba(5, 15, 36, .5); box-shadow: 0 0 30px rgba(214, 168, 79, .18); }
.hero-rail .track { height: clamp(190px, 18vw, 250px); }
.slide { margin: 0; flex: 0 0 auto; height: 100%; scroll-snap-align: start; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.slide img { height: 100%; width: auto; transition: transform .5s var(--ease); }
.slide:hover img { transform: scale(1.04); }
.hero-foot { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--m) 36px clamp(8px, 2vw, 40px); border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold-line), transparent) 1; margin-top: 30px; }
.facts { display: flex; margin: 0; }
.facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 0 26px; align-items: center; }
.facts > div:first-child { padding-left: 0; }
.facts > div + div { border-left: 1px solid var(--gold-line); }
.facts .ic-l { grid-row: span 2; width: 32px; height: 32px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.05rem; }

/* ---------- biography ---------- */
.bio { display: grid; grid-template-columns: minmax(260px, 28%) 1fr; gap: 0 clamp(24px, 3vw, 56px); padding: var(--gap) var(--m) var(--gap) 0; overflow: hidden; }
.angkor-bio { top: 0; right: 0; width: 55%; height: 380px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(180deg, #000 50%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(180deg, #000 50%, transparent); mask-composite: intersect; opacity: .7; }
.bio-side { display: flex; flex-direction: column; gap: 28px; padding-left: var(--m); }
.bio-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%; border-radius: 0 var(--radius) var(--radius) 0; margin-left: calc(var(--m) * -1); width: calc(100% + var(--m)); -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.bio-crest { margin: 0; text-align: center; }
.bio-crest img { width: 78%; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(214, 168, 79, .3)); }
.bio-crest figcaption { margin-top: 14px; font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }
html[lang="km"] .bio-crest figcaption { letter-spacing: 0; text-transform: none; }
.bio-main h2 { margin-bottom: 36px; }
.bio-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; }
.bio-facts { margin: 0; }
.bio-facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--gold-line); }
.bio-facts > div:first-child { padding-top: 0; }
.bio-facts .ic-l { grid-row: span 2; }
.bio-facts dt { color: var(--gold-hi); font-weight: 600; }
.bio-facts dd { margin: 2px 0 0; }
.born { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline dotted var(--gold); text-underline-offset: 5px; }
.born:hover { color: var(--gold-hi); }
.bio-text { margin: 0; padding-left: 32px; border-left: 2px solid var(--gold); font-size: 1.12rem; line-height: 1.65; max-width: 64ch; }
.sub-h { display: flex; align-items: center; gap: 16px; margin: 48px 0 20px; font-family: var(--serif); font-weight: 600; font-size: 2rem; color: var(--gold-hi); }
html[lang="km"] .sub-h { font-family: var(--km); font-size: 1.4rem; }
.sub-h .ic-l { width: 34px; height: 34px; }
.sub-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card { display: flex; gap: 20px; align-items: center; padding: 22px 26px; }
.edu-ic { width: 56px; height: 56px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.2; flex: none; }
.edu-card h4 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; }
.edu-card p { margin: 0 0 6px; color: var(--muted); }
.edu-card .loc { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.edu-card .loc .ic-s { color: var(--gold); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.skills li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 22px 12px; font-size: .98rem; line-height: 1.3; transition: border-color .2s, transform .25s var(--ease); }
.skills li:hover { border-color: var(--gold); transform: translateY(-4px); }
.sk-ic { width: 44px; height: 44px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- companies ---------- */
.companies { padding: var(--gap) var(--m); overflow: hidden; }
.angkor-corner { top: 0; right: 0; width: 42%; height: 260px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 40%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 40%, transparent); mask-composite: intersect; opacity: .6; }
.companies .display-2 { position: relative; padding-bottom: 14px; }
.companies .display-2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60%; height: 2px; background: linear-gradient(90deg, var(--gold-hi), transparent); }
.co-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.co { display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 16px; overflow: hidden; border: 1px solid var(--gold-line); padding-bottom: 18px; min-height: 360px; transition: transform .3s var(--ease), box-shadow .3s; }
.co:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 0 1px var(--gold); }
.co-top { width: 100%; height: 130px; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.co-ic { width: 40px; height: 40px; margin-top: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.co-name { margin: 10px 8px 10px; font-size: 1.05rem; line-height: 1.15; font-weight: 700; }
.co-name a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.co-meta { margin: 0 8px auto; font-size: .86rem; line-height: 1.35; opacity: .85; }
.co-year { margin-top: 16px; padding: 4px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.02em; border-radius: 999px; font-weight: 700; font-size: .9rem; background: linear-gradient(180deg, #f7e2a2, #d7a74e); color: #1a1405; }
.co-w { background: var(--paper); color: var(--paper-ink); }
.co-p { background: var(--pink); color: var(--paper-ink); }
.co-n { background: var(--navy-700); color: var(--ink); }
.co-d { background: var(--navy-950); color: var(--ink); }
.legend { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 1.05rem; }
.legend li { display: flex; align-items: center; gap: 12px; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gold-line); }
.dot-p { background: var(--pink); } .dot-w { background: var(--paper); } .dot-n { background: var(--navy-700); } .dot-d { background: var(--navy-950); }

/* ---------- honours ---------- */
.honours { display: grid; grid-template-columns: minmax(260px, 24%) 1fr minmax(260px, 24%); gap: clamp(24px, 3vw, 48px); padding: var(--gap) var(--m); align-items: start; }
.hon-intro { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hon-crown { width: 70px; height: 70px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.2; margin-bottom: 10px; }
.hon-intro .caps { max-width: 22em; }
.order-box { margin-top: 36px; padding: 0; border: 2px solid var(--gold); border-radius: 16px; overflow: hidden; background: #3a0b12; cursor: zoom-in; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.order-box img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.hon-lists { display: grid; gap: 34px; }
.hon-lists .panel { padding: 30px 26px 16px; }
.tab-h { position: absolute; top: -20px; left: 22px; margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px; border-radius: 999px 999px 999px 0; background: linear-gradient(180deg, #f7e2a2, #d7a74e); color: #1a1405; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html[lang="km"] .tab-h { font-family: var(--km); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.panel { position: relative; }
.hlist { list-style: none; margin: 0; padding: 0; }
.hlist li { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(214, 168, 79, .2); font-size: 1.05rem; line-height: 1.35; }
.hlist li:last-child { border-bottom: 0; }
.hlist .ic { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.3; }
.hon-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hon-pics .wbtn { padding: 0; cursor: zoom-in; }
.hon-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hp-main { grid-column: 1 / -1; background: #fff !important; }
.hp-main img { aspect-ratio: 1200 / 1114; object-fit: contain; }
.hon-pics .caption { grid-column: 1 / -1; font-size: 1.1rem; }

/* ---------- wall of honours ---------- */
.wall { padding: var(--gap) var(--m); overflow: hidden; }
.wall .chips { margin-bottom: 36px; }
.wall-stage { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.wall-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.wcard .wbtn { width: 100%; padding: 8px; cursor: zoom-in; border: 2px solid var(--gold); border-radius: 14px; background: linear-gradient(145deg, #3b2a0f, #c79a46 40%, #6d4c18); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.wcard .wbtn:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 24px rgba(214, 168, 79, .35); }
.wcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #fff; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); }

/* ---------- photographs ---------- */
.photos { padding: var(--gap) var(--m); overflow: hidden; }
.photos .chips { margin-bottom: 30px; }
.pruns { display: grid; gap: 26px; }
.prun { border: 1.5px solid var(--gold); border-radius: 24px; padding: 22px 26px 26px; background: rgba(5, 15, 36, .55); box-shadow: 0 0 30px rgba(214, 168, 79, .12); }
.prun-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.prun-ic { width: 40px; height: 40px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.3; padding-right: 18px; border-right: 1px solid var(--gold-line); box-sizing: content-box; }
.prun h3 { margin: 0; flex: 1; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 1rem + .9vw, 1.9rem); line-height: 1.15; color: var(--ink); }
html[lang="km"] .prun h3 { font-family: var(--km); font-size: 1.15rem; }
.count { color: var(--gold-hi); font-weight: 600; }
.prun .track { height: clamp(150px, 15vw, 220px); }
.pthumb { flex: 0 0 auto; height: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--navy-950); }
.pthumb img { height: 100%; width: auto; transition: transform .4s var(--ease); }
.pthumb:hover img { transform: scale(1.05); }

/* ---------- press and media ---------- */
.media { display: grid; grid-template-columns: minmax(260px, 28%) 1fr; gap: clamp(24px, 3vw, 56px); padding: var(--gap) var(--m); }
.media-intro { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 40px 10px; overflow: hidden; border-radius: 24px; }
.angkor-media { inset: auto 0 0 0; height: 300px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); opacity: .9; }
.cam-box { display: grid; place-items: center; width: 110px; height: 90px; border: 2px dashed var(--gold); border-radius: 18px; margin-bottom: 26px; }
.cam-ic { width: 58px; height: 58px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.4; }
.media-main { display: grid; gap: 28px; align-content: start; }
.media-panel { padding: 24px 28px; }
.panel-h { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gold-line); font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-hi); }
html[lang="km"] .panel-h { font-family: var(--km); font-size: 1.4rem; }
.vcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard h4 { margin: 14px 0 8px; font-size: 1.08rem; line-height: 1.3; font-weight: 500; }
.vcard h4 a { text-decoration: none; }
.vcard h4 a:hover { color: var(--gold-hi); }
.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--navy-700); cursor: pointer; }
.vthumb img, .vthumb iframe, .vthumb video { width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .4s var(--ease); }
.vthumb:hover img { transform: scale(1.05); }
.vplay { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 15, 36, .7); border: 2px solid #fff; color: #fff; }
.vplay .ic-s { width: 22px; height: 22px; margin-left: 3px; }
.vph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); }
.vph .ic-s { width: 48px; height: 48px; stroke-width: 1.2; }
.src { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .95rem; }
.src .ic-s { color: var(--gold); }
.arts { list-style: none; margin: 0; padding: 0; }
.art { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(214, 168, 79, .2); }
.art:last-child { border-bottom: 0; }
.art-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy-700); }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art h4 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; font-weight: 500; }
.art h4 a { text-decoration: none; }
.art h4 a:hover { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--gold); }
.art-date { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; padding-left: 24px; border-left: 1px solid var(--gold-line); min-height: 40px; font-variant-numeric: tabular-nums; }
.art-date .ic-s { color: var(--gold); width: 20px; height: 20px; }
.art-date:empty { border-left: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: clamp(24px, 3vw, 56px); align-items: center; padding: var(--gap) var(--m) calc(var(--gap) * .9); overflow: hidden; }
.angkor-contact { inset: 0 auto 0 0; width: 34%; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); opacity: .85; }
.ct-lead { margin: 0 0 30px; font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.4; max-width: 24em; }
.ct-boxes { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.ct-boxes li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 22px; font-size: 1.05rem; }
.ct-boxes li:first-child { padding-left: 0; }
.ct-boxes li + li { border-left: 1px solid var(--gold-line); }
.box { display: grid; place-items: center; width: 54px; height: 54px; border: 1.5px solid var(--gold); border-radius: 14px; flex: none; background: rgba(5, 15, 36, .5); }
.ct-boxes .box { width: 96px; height: 96px; border-radius: 20px; }
.ct-boxes .ic-l { width: 46px; height: 46px; stroke-width: 1.3; }
.ct-photo { border-radius: 26px; }
.ct-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.ct-name { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 1.3rem + 1.8vw, 3.1rem); line-height: 1.05; }
.ct-card .eyebrow { margin: 0; letter-spacing: .2em; }
.ct-card .rule { margin: 18px 0 24px; }
.ct-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-rows a { display: flex; align-items: center; gap: 18px; padding: 4px 18px 4px 4px; border-radius: 16px; border: 1px solid var(--gold-line); text-decoration: none; font-size: 1.12rem; background: rgba(5, 15, 36, .45); transition: border-color .2s, background-color .2s; word-break: break-word; }
.ct-rows a:hover { border-color: var(--gold); background: rgba(214, 168, 79, .1); }
.ct-rows .box { width: 54px; height: 46px; }
.ct-rows .ic-l { width: 24px; height: 24px; }
.ct-city { display: flex; align-items: flex-start; gap: 16px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--gold-line); color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding: 230px var(--m) 30px; overflow: hidden; background: linear-gradient(180deg, transparent, var(--navy-950) 60%); }
.angkor-foot { top: 0; right: 0; left: auto; width: 62%; height: 320px; background-position: left center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 28%, #000 62%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 28%, #000 62%, transparent 100%); mask-composite: intersect; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand .brand-crest { width: 76px; }
.foot-brand .brand-name { font-size: 2.3rem; }
.foot .goldline { margin: 34px 0 26px; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-row p { margin: 0; display: flex; align-items: center; gap: 10px; }
.foot-row .ic-s { color: var(--gold); width: 20px; height: 20px; }
.credit { margin: 22px 0 0; font-size: .82rem; color: var(--muted); }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--navy-900); max-width: min(1100px, 94vw); border-radius: 16px; border: 1px solid var(--gold); }
dialog::backdrop { background: rgba(3, 9, 22, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; }
.lightbox figcaption { padding: 14px 20px 0; color: var(--muted); }
.lightbox form, .bday-close { display: flex; justify-content: flex-end; padding: 14px 18px; }
.bday { width: min(1200px, 94vw); max-width: none; background: #0c1a36; }
.bday-render { width: 100%; height: auto; }
dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- entrances ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .angkor.rv { transform: none; }
.js .angkor.rv.in { opacity: inherit; }

.btn-early { display: none; margin-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .nav { display: none; }
  .bar { grid-template-columns: auto 1fr auto auto; }
  .bar-contact { display: inline-flex; justify-self: end; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-hi); border-bottom: 2px solid var(--gold); }
  .co-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .honours { grid-template-columns: 1fr 1fr; }
  .hon-intro { grid-column: 1 / -1; }
  .order-box { display: none; }
  .skills { grid-template-columns: repeat(3, 1fr); }
  .vcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-portrait { grid-row: auto; order: 2; max-width: 300px; margin: 20px auto 0; }
  .angkor-hero { inset: 0 0 auto 0; height: 340px; }
  .hero-body { padding: 0 var(--m); order: 1; }
  .btn-early { display: inline-flex; }
  .hero-foot .btn { display: none; }
  .hero-foot { grid-column: 1; order: 3; flex-direction: column; align-items: flex-start; padding: 24px var(--m) 32px; }
  .facts { flex-direction: column; gap: 16px; }
  .facts > div { padding: 0; border: 0 !important; }
  .bio { grid-template-columns: 1fr; padding: var(--gap) var(--m); }
  .bio-side { flex-direction: row; padding: 0; align-items: center; order: 2; margin-top: 40px; }
  .bio-portrait { margin: 0; width: 55%; border-radius: var(--radius); -webkit-mask-image: none; mask-image: none; }
  .bio-crest { width: 45%; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-text { padding-left: 20px; }
  .edu { grid-template-columns: 1fr; }
  .honours { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .media { grid-template-columns: 1fr; }
  .media-intro { padding: 20px 10px; }
  .art { grid-template-columns: 120px 1fr; }
  .art-date { grid-column: 2; padding-left: 0; border: 0; min-height: 0; }
  .contact { grid-template-columns: 1fr; padding: var(--gap) var(--m); }
  .angkor-contact { width: 100%; height: 300px; inset: 0 0 auto 0; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); opacity: .5; }
  .ct-photo { max-width: 360px; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .bar { padding: 8px 16px; gap: 10px; grid-template-columns: auto 1fr auto; }
  .brand { padding-right: 0; border: 0; gap: 8px; }
  .brand-crest { width: 40px; }
  .brand-text { display: none; }
  .bar-contact { font-size: 1.05rem; }
  .langs { padding: 3px; }
  .langs button { min-width: 38px; min-height: 36px; padding: 0 6px; font-size: .95rem; }
  .eyebrow { letter-spacing: .2em; font-size: .78rem; }
  .pillars { flex-direction: column; gap: 14px; margin: 24px 0; }
  .pillars li { padding: 0 !important; border: 0 !important; font-size: 1.05rem; }
  .pillars .ic-l { width: 32px; height: 32px; }
  .frame-box { padding: 10px; border-radius: 16px; }
  .rail { grid-template-columns: 1fr; }
  .rail .arrow { display: none; }
  .hero-rail .track, .prun .track { height: 170px; }
  .caption { font-size: 1.1rem; }
  .bio-side { flex-direction: column; }
  .bio-portrait, .bio-crest { width: 100%; }
  .bio-crest img { width: 60%; }
  .skills { grid-template-columns: 1fr 1fr; }
  .co-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co { min-height: 0; }
  .sec-ic { width: 48px; height: 48px; padding-right: 16px; }
  .sec-head { gap: 16px; }
  .chips { gap: 8px; }
  .chips button { min-height: 44px; padding: 0 16px; font-size: .92rem; }
  .wall-stage { grid-template-columns: 1fr; }
  .wall-stage .arrow { display: none; }
  .wall-grid { gap: 12px; }
  .prun { padding: 16px; border-radius: 18px; }
  .hlist li { grid-template-columns: 28px 1fr; }
  .hlist li .pill { grid-column: 2; justify-self: start; }
  .hon-lists .panel { padding: 40px 16px 8px; }
  .tab-h { font-size: .95rem; white-space: nowrap; padding: 8px 16px; left: 14px; }
  .hon-pics .caption { font-size: 1rem; }
  .vcards { grid-template-columns: 1fr; }
  .media-panel { padding: 18px 16px; }
  .panel-h { font-size: 1.6rem; }
  .art { grid-template-columns: 96px 1fr; gap: 14px; }
  .art h4 { font-size: 1rem; }
  .ct-boxes .box { width: 72px; height: 72px; }
  .ct-boxes li { padding: 0 12px; font-size: .95rem; }
  .ct-rows a { font-size: 1rem; gap: 12px; }
  .foot-brand .brand-name { font-size: 1.7rem; }
  .foot-brand .brand-crest { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

@media (max-width: 680px) {
  .angkor-foot { width: 100%; height: 180px; }
  .foot { padding-top: 150px; }
}
@media (max-width: 680px) {
  .foot-brand .brand-text { display: flex; }
  .foot-row p:last-child { display: block; }
}

/* Biography without the portrait: the crest leads the side column */
.bio-side { justify-content: flex-start; padding-top: 70px; }
.bio-crest img { width: 86%; }
@media (max-width: 1000px) { .bio-side { padding-top: 0; justify-content: center; } .bio-crest { width: 60%; margin: 0 auto; } }
@media (max-width: 680px) { .bio-crest { width: 80%; } }
@media (min-width: 1321px) and (max-width: 1500px) { .brand-name { font-size: 1.45rem; } .nav { gap: 16px; } .nav a { font-size: 1.1rem; } }

/* Holiday Adventures: documents button and dialog */
.co-docs { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(19, 33, 63, .35); background: rgba(255, 255, 255, .55); color: var(--paper-ink); font-size: .82rem; font-weight: 600; cursor: pointer; transition: background-color .2s, transform .15s; }
.co-docs:hover { background: #fff; }
.co-docs:active { transform: scale(.96); }
.co-docs .ic-s { width: 15px; height: 15px; }
.docs { width: min(1100px, 94vw); max-width: none; padding: 28px clamp(16px, 3vw, 36px) 20px; }
.docs-head { margin-bottom: 22px; }
.docs-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.1; }
.docs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.docs-grid .wbtn { width: 100%; padding: 6px; border: 2px solid var(--gold); border-radius: 12px; background: #fff; cursor: zoom-in; transition: transform .25s var(--ease); }
.docs-grid .wbtn:hover { transform: translateY(-4px); }
.docs-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.docs-grid p { margin: 10px 2px 0; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.docs-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.docs-foot .btn { min-height: 48px; }
@media (max-width: 680px) { .docs-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .docs-grid p { font-size: .85rem; } }
.co-docs { width: calc(100% - 14px); justify-content: center; gap: 5px; padding: 0 6px; font-size: .8rem; white-space: nowrap; }
@media (max-width: 680px) { .co-docs { font-size: .9rem; min-height: 40px; } }
@media (min-width: 1321px) { .co-docs .ic-s { display: none; } }
