:root {
  --night: #050816;
  --navy: #0a1130;
  --panel: rgb(6 10 28 / 0.72);
  --gold: #d8b46a;
  --gold-hi: #f3dca4;
  --gold-lo: #9c7a3c;
  --line: rgb(216 180 106 / 0.45);
  --text: #ece6d6;
  --muted: #b9b4a6;
  --danger: #ff9d8a;
  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --header-h: 84px;
  /* Anchored to the bottom so the desk in the photo stays in view below the content. */
  --scene: url('/img/bg-desktop.jpg') center bottom / cover no-repeat;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgb(216 180 106 / 0.18); scroll-padding-top: 16px; }
::selection { background: rgb(216 180 106 / 0.35); color: #fff; }

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--gold);
  color: #1a1305;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.45;
}

/* Backdrop: painted dusk scene, darkened towards the edges and the bottom. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(5 8 22 / 0.4) 0, rgb(5 8 22 / 0) 20%),
    radial-gradient(ellipse 46% 50% at 50% 52%, rgb(5 8 22 / 0.62), rgb(5 8 22 / 0) 72%),
    var(--scene),
    var(--night);
}
body.inner::before {
  background:
    linear-gradient(rgb(5 8 22 / 0.62), rgb(5 8 22 / 0.82)),
    var(--scene),
    var(--night);
}

a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

/* ---- header ---- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 0 clamp(20px, 6vw, 96px);
  background: rgb(5 8 22 / 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--gold); }
.brand-name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 3.2vw, 52px); }
.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--text);
  font-size: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--gold-hi); }
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: clamp(0px, 2vw, 32px);
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-nav .nav-cta:hover { border-color: var(--gold); background: rgb(216 180 106 / 0.08); }
.nav-cta svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.5; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 10px 2px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--gold); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 2.6vh, 32px) 20px 17vh;
  text-align: center;
}

.hero-crest { display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; }
.hero-crest img {
  display: block;
  flex: none;
  width: clamp(150px, 24vh, 240px);
  height: auto;
  filter: drop-shadow(0 0 22px rgb(255 205 110 / 0.45)) drop-shadow(0 10px 22px rgb(0 0 0 / 0.6));
}
.hero-crest .rule { flex: 0 1 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-crest .rule:last-child { transform: scaleX(-1); }

h1 { margin: clamp(12px, 2vh, 26px) 0 0; font-weight: 400; }
.eyebrow {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text);
}
h1 .name {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(2.2rem, min(7.4vw, 6vh), 3.3rem);
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fbeecb, var(--gold) 52%, #b08a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; width: min(440px, 80vw); margin: 10px auto 0; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 26px; height: 26px; fill: var(--gold); }

.motto { margin: 14px 0 0; font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: 0.42em; text-transform: uppercase; }
.motto-en { margin: 4px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-style: italic; color: var(--gold); }

.sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(880px, 100%);
  margin: clamp(14px, 2.6vh, 34px) auto 0;
  padding: 12px 0;
  list-style: none;
  background: linear-gradient(90deg, rgb(5 8 22 / 0), rgb(5 8 22 / 0.7) 15%, rgb(5 8 22 / 0.7) 85%, rgb(5 8 22 / 0));
}
.sections li + li { border-left: 1px solid var(--line); }
.sections a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 6px 12px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s;
}
.sections a:hover { transform: translateY(-3px); }
.sections a:hover .t { color: var(--gold-hi); }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sections .t {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.sections .d { margin-top: 8px; font-size: 1rem; line-height: 1.25; color: var(--muted); }

/* ---- footer ---- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  padding: 16px 20px 22px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--muted); text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold-hi); }

/* ---- inner pages ---- */
.panel-wrap { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: clamp(24px, 6vh, 64px) 16px; }
.panel {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
  text-align: center;
}
.panel-narrow { width: min(460px, 100%); }
.panel-crest { display: block; width: 92px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 0 14px rgb(255 205 110 / 0.35)); }
.panel .eyebrow { font-size: 0.78rem; color: var(--gold); }
.panel h1, .sent h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.sent h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.lead { margin: 14px auto 0; max-width: 34em; color: var(--muted); }
.aside { margin: 22px 0 0; font-size: 1.05rem; color: var(--muted); }

.form { display: grid; gap: 18px; margin-top: 28px; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(216 180 106 / 0.35);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgb(216 180 106 / 0.6); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--gold-hi); background: rgb(255 255 255 / 0.07); box-shadow: 0 0 0 3px rgb(216 180 106 / 0.2); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--danger); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px #101735 inset; caret-color: var(--text); }
.field ::placeholder { color: rgb(236 230 214 / 0.38); opacity: 1; font-style: italic; }
.field input:focus::placeholder, .field textarea:focus::placeholder { color: rgb(236 230 214 / 0.24); }
.field input, .field textarea, .btn, .captcha-refresh { touch-action: manipulation; }
.field input, .field textarea { scroll-margin-block: 90px; }

.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.counter { font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.near { color: var(--gold-hi); }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 52px; }
.reveal {
  position: absolute;
  top: 1px; right: 1px; bottom: 1px;
  width: 48px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 0 5px 5px 0;
  cursor: pointer;
}
.reveal svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.reveal:hover svg, .reveal[aria-pressed='true'] svg { stroke: var(--gold-hi); }
.reveal[aria-pressed='true'] .slash { display: none; }
input::-ms-reveal { display: none; }

.suggest { margin: 6px 0 0; font-size: 1rem; color: var(--muted); }
.suggest button { padding: 0; background: none; border: 0; color: var(--gold-hi); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.hint.caps { color: var(--gold-hi); }
.hint { margin: 6px 0 0; font-size: 1rem; color: var(--muted); }
.error { margin: 6px 0 0; font-size: 1rem; color: var(--danger); }
.error:empty, .form-status:empty { display: none; }
.form-status { margin: 0; padding: 10px 14px; border: 1px solid rgb(255 157 138 / 0.5); border-radius: 6px; background: rgb(255 120 100 / 0.08); color: var(--danger); font-size: 1.05rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.captcha-img { flex: none; width: 180px; height: 60px; border-radius: 6px; border: 1px solid var(--line); background: #f3ead2; cursor: pointer; user-select: none; transition: opacity 0.2s; }
.captcha-img.loading { opacity: 0.35; }
.captcha-img.loading + .captcha-refresh svg { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form[aria-busy='true'] { cursor: progress; }
.form noscript .form-status { display: block; }
.captcha-refresh {
  flex: none;
  width: 48px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid rgb(216 180 106 / 0.35);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.captcha-refresh:hover { border-color: var(--gold); background: rgb(216 180 106 / 0.08); }
.captcha-refresh svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.captcha-row input { flex: 1 1 130px; width: auto; min-height: 60px; font-size: 1.4rem; letter-spacing: 0.2em; }
.captcha-row input::placeholder { font-size: 1.1rem; letter-spacing: 0.02em; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(180deg, #ecd397, #c69f52);
  color: #1a1305;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { margin-top: 26px; background: none; color: var(--gold-hi); }
.btn-ghost:hover { background: rgb(216 180 106 / 0.08); filter: none; }

.sent { padding-top: 12px; outline: none; }
.sent .icon { width: 52px; height: 52px; margin-top: 12px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- heraldry: a public copy of the register entry ---- */
.heraldry { width: min(1040px, 100%); text-align: left; }
.heraldry-head { text-align: center; }
.heraldry h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.heraldry-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(24px, 4vh, 40px); }
.arms-figure { margin: 0; padding-top: 8px; }
.arms-figure img { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; filter: drop-shadow(0 0 22px rgb(255 205 110 / 0.35)) drop-shadow(0 10px 22px rgb(0 0 0 / 0.55)); }

.register { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 8px; background: rgb(216 180 106 / 0.06); }
.register-name { margin: 8px 0 0; font-family: var(--display); font-size: clamp(1.05rem, 2.2vw, 1.3rem); letter-spacing: 0.04em; color: var(--gold-hi); }
.register-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 14px 0 0; }
.register-meta div { min-width: 0; }
.register-meta dt { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.register-meta dd { margin: 2px 0 0; font-size: 1.3rem; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.register-link { gap: 10px; margin-top: 18px; min-height: 48px; padding: 10px 22px; font-size: 0.82rem; }
.register-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.blazon { margin: 22px 0 0; }
.blazon div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 18px; padding: 11px 0; border-top: 1px solid rgb(216 180 106 / 0.2); }
.blazon div:last-child { border-bottom: 1px solid rgb(216 180 106 / 0.2); }
.blazon dt { padding-top: 4px; font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.blazon dd { margin: 0; }
.motto-text { font-variant: small-caps; letter-spacing: 0.08em; }

.heraldry > .ornament { margin: clamp(28px, 5vh, 44px) auto clamp(20px, 3vh, 28px); }
.symbolism { max-width: 46em; margin: 0 auto; }
.symbolism h2 { margin-bottom: 14px; text-align: center; }
.symbolism p { margin: 0 0 14px; }
.symbolism .rights { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgb(216 180 106 / 0.2); font-size: 1rem; font-style: italic; color: var(--muted); }
.badge-figure { float: right; width: clamp(110px, 18vw, 160px); margin: 4px 0 12px 28px; text-align: center; }
.badge-figure img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 16px rgb(255 205 110 / 0.3)); }
.badge-figure figcaption { margin-top: 8px; font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1000px) {
  .blazon div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .blazon dt { padding-top: 0; }
}
@media (max-width: 760px) {
  .heraldry-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .arms-figure img { width: min(62vw, 260px); }
  .register { padding: 16px 16px 18px; }
  .register-link { width: 100%; padding-inline: 14px; letter-spacing: 0.1em; text-align: center; }
  .blazon div { grid-template-columns: 1fr; gap: 2px; }
  .blazon dt { padding-top: 0; }
  .badge-figure { float: none; width: 112px; margin: 0 auto 18px; }
}

/* ---- wide screens: forms in two columns so they fit one screen without scrolling ---- */
@media (min-width: 1001px) {
  .panel-wrap { align-items: center; padding: clamp(10px, 2.4vh, 48px) 24px; }
  .panel { padding: clamp(18px, 3.4vh, 40px) clamp(28px, 3vw, 44px); }
  .inner .site-footer { padding: 6px 20px 10px; }

  .panel-split { width: min(860px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; align-items: center; }
  .panel-split .form { margin-top: 0; }
  .panel-split .panel-intro { padding-right: 44px; border-right: 1px solid var(--line); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

  .panel-wide { width: min(980px, 100%); }
  .panel-wide .lead { margin-top: 8px; max-width: none; }
  .panel-wide .form {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto 1fr auto;
    gap: clamp(10px, 1.8vh, 18px) 36px;
    margin-top: clamp(14px, 2.4vh, 26px);
  }
  .panel-wide .form > * { grid-column: 1; }
  .panel-wide .form > .field:has(textarea) { grid-column: 2; grid-row: 1 / 4; display: flex; flex-direction: column; }
  .panel-wide .form textarea { flex: 1; min-height: 120px; resize: none; }
  .panel-wide .form > .captcha { grid-column: 1; grid-row: 4; }
  .panel-wide .form > .btn { grid-column: 2; grid-row: 4; align-self: start; margin-top: 25px; min-height: 60px; }
  .panel-wide .form > .form-status, .panel-wide .form > noscript { grid-column: 1 / -1; }
  .panel-wide .captcha-row { flex-wrap: nowrap; }
  .panel-wide .captcha-img { width: 150px; height: 50px; }
  .panel-wide .captcha-refresh { min-height: 50px; }
  .panel-wide .captcha-row input { flex: 1 1 0; min-width: 0; min-height: 50px; font-size: 1.25rem; }
  .panel-wide .form > .btn { min-height: 50px; }
}
@media (min-width: 1001px) and (max-height: 760px) {
  .form { gap: 12px; }
  .field label { margin-bottom: 5px; }
  .field input, .field textarea { padding: 8px 13px; }
  .hint, .error, .suggest { margin-top: 4px; font-size: 0.95rem; line-height: 1.25; }
  .panel h1 { margin-top: 6px; font-size: 1.9rem; }
  .panel-crest { width: 76px; margin-bottom: 12px; }
  .btn { min-height: 46px; }
  .panel-wide .field-row .hint { display: none; }
  .panel-wide .lead { margin-top: 4px; }
}

/* ---- tablet & mobile ---- */
@media (max-width: 1000px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(20px, 6vw, 96px) 20px;
    background: rgb(5 8 22 / 0.97);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgb(216 180 106 / 0.15); font-size: 1.2rem; }
  .site-nav a[aria-current='page']::after { display: none; }
  .site-nav .nav-cta { margin: 16px 0 0; justify-content: center; padding: 12px 20px; border: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .brand { gap: 14px; }
  .brand-sub { padding-left: 14px; font-size: 0.64rem; letter-spacing: 0.28em; }
  .hero-crest .rule { display: none; }
  .hero-crest img { width: clamp(130px, 37vw, 200px); }
  .eyebrow { letter-spacing: 0.26em; }
  .motto { letter-spacing: 0.34em; }
  .sections { grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; background: none; }
  .sections li, .sections li + li { border: 1px solid var(--line); border-radius: 12px; background: rgb(6 10 28 / 0.72); backdrop-filter: blur(3px); }
  .sections a { position: relative; padding: 10px 20px 11px 8px; }
  .sections a::after {
    content: '';
    position: absolute;
    right: 9px; top: 50%;
    width: 8px; height: 8px;
    border-top: 1.5px solid var(--gold);
    border-right: 1.5px solid var(--gold);
    transform: translateY(-50%) rotate(45deg);
  }
  .sections .t { font-size: clamp(0.7rem, 3.5vw, 0.86rem); letter-spacing: 0.04em; }
  .sections .d { font-size: clamp(0.78rem, 3.7vw, 0.95rem); white-space: nowrap; }
  .site-footer .dot { display: none; }
  :root { --scene: url('/img/bg-mobile.jpg') center bottom / cover no-repeat; --header-h: 64px; }
  .hero { padding-top: 18px; padding-bottom: 13vh; }
  h1 .name { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .ornament { margin-top: 6px; }
  .motto { margin-top: 10px; }
  .sections { margin-top: 16px; }
  .sections .icon { width: 28px; height: 28px; }
  .sections .t { margin-top: 6px; }
  .sections .d { margin-top: 3px; line-height: 1.2; }
  .sections { gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1.4rem; }
  .sections { gap: 10px; }
}

/* ---- about: long-read page on a plain night ground, the scene lives in the hero and the quote ---- */
body.about::before { background: radial-gradient(ellipse 90% 60% at 50% 0, #0b1334, rgb(5 8 22 / 0) 70%), var(--night); }
.about { --gutter: clamp(20px, 6vw, 96px); --measure: 1180px; }
.about main { flex: 1; }
.about-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
}
.about-kicker::after { content: ''; width: 72px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 44vw, 600px);
  padding: 48px var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.about-hero picture, .about-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.about-hero img { object-fit: cover; object-position: 70% 40%; }
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 8 22 / 0.86) 0, rgb(5 8 22 / 0.55) 34%, rgb(5 8 22 / 0) 62%),
    linear-gradient(to top, rgb(5 8 22 / 0.7), rgb(5 8 22 / 0) 30%);
}
.about-hero-text { max-width: min(34rem, 54%); }
.about-roles span { white-space: nowrap; }
.about-hero h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fbeecb, var(--gold) 52%, #b08a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-hero h1 span { display: block; }
.about-roles { margin: 22px 0 0; font-family: var(--display); font-size: clamp(0.78rem, 1.3vw, 0.95rem); letter-spacing: 0.3em; line-height: 1.8; text-transform: uppercase; }
.about-roles i { margin: 0 0.5em; font-style: normal; color: var(--gold); }
.about-tagline { margin: 18px 0 0; max-width: 26em; font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-style: italic; line-height: 1.35; color: var(--gold); text-wrap: balance; }

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 0;
}
.about-portrait { margin: 0; border: 1px solid var(--line); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.about-intro h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--gold);
}
.about-tags { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 12px 0 22px; overflow: hidden; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
/* The divider sits left of every item and is clipped at the start of a line, so a wrapped row never begins with a bar. */
.about-tags span { margin: 0 33px 0 -17px; padding-left: 16px; border-left: 1px solid var(--line); }
.about-intro-text p:not([class]), .chapter p { margin: 0 0 0.85em; text-wrap: pretty; }
.about-intro-text p:last-child, .chapter p:last-child { margin-bottom: 0; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 0 var(--gutter);
  list-style: none;
  text-align: center;
}
.about-pillars li { display: flex; flex-direction: column; align-items: center; padding: 6px 18px; }
.about-pillars li + li { border-left: 1px solid var(--line); }
.about-pillars .icon { width: 46px; height: 46px; }
.about-pillars .t { margin-top: 14px; font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; text-wrap: balance; }
.about-pillars .d { margin-top: 8px; font-size: 1.05rem; line-height: 1.3; color: var(--muted); text-wrap: balance; }

.about-chapters { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--gutter); }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(28px, 5vw, 72px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid rgb(216 180 106 / 0.28); }
.chapter header { display: flex; align-items: baseline; gap: 18px; align-self: start; }
.chapter-no { flex: none; min-width: 1.6em; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.08em; color: var(--gold-lo); }
.chapter h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.9vw, 1.45rem); letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase; color: var(--gold-hi); text-wrap: balance; }
.chapter > div { max-width: 40em; }
.chapter a { text-decoration-color: var(--line); text-underline-offset: 3px; }

.about-quote {
  position: relative;
  margin: clamp(20px, 3vw, 40px) 0 0;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgb(5 8 22 / 0.72), rgb(5 8 22 / 0.8)),
    url('/img/about-hero.jpg') 60% 55% / cover no-repeat;
  text-align: center;
}
.quote-mark { width: 40px; height: 30px; fill: var(--gold); }
.about-quote blockquote { margin: 14px auto 0; max-width: 40em; }
.about-quote blockquote p { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-style: italic; line-height: 1.4; text-wrap: balance; }
.about-quote .ornament { margin-top: 26px; }
.about-quote figcaption { margin-top: 14px; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); }

.about-close {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 12px;
}
.about-close-arms { justify-self: start; }
.about-close-arms img { display: block; width: clamp(84px, 9vw, 120px); height: auto; filter: drop-shadow(0 0 16px rgb(255 205 110 / 0.35)); }
.about-close-motto { text-align: center; }
.about-close-motto .motto { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--gold); }
.about-close-motto .motto-en { margin-top: 12px; }
.about-close-cta { justify-self: end; margin-top: 0; }

@media (max-width: 1000px) {
  .about-pillars { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 0; }
  .about-pillars li { grid-column: span 2; }
  .about-pillars li:nth-child(4) { grid-column: 2 / span 2; border-left: 0; }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .about-intro { align-items: start; }
  .chapter > div { padding-left: calc(1.6em * 1.05 / 1.1875 + 18px); }
}
@media (max-width: 760px) {
  .about-hero { align-items: flex-end; min-height: min(128vw, 560px); padding-bottom: 32px; }
  .about-hero img { object-position: 60% 30%; }
  .about-hero::after { background: linear-gradient(to top, rgb(5 8 22 / 0.94) 0, rgb(5 8 22 / 0.72) 38%, rgb(5 8 22 / 0) 74%); }
  .about-hero-text { max-width: none; }
  .about-roles { letter-spacing: 0.2em; }
  .about-intro { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { width: min(100%, 420px); margin: 0 auto; }
  .about-tags { font-size: 0.74rem; letter-spacing: 0.14em; }
  .about-tags span { margin: 0 21px 0 -11px; padding-left: 10px; }
  .about-pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-pillars li, .about-pillars li + li, .about-pillars li:nth-child(4) { grid-column: auto; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; }
  .about-pillars li:last-child { grid-column: 1 / -1; }
  .about-pillars .icon { width: 36px; height: 36px; }
  .about-pillars .t { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.08em; }
  .about-pillars .d { font-size: 1rem; }
  .chapter > div { padding-left: 0; }
  .about-quote { background-image: linear-gradient(rgb(5 8 22 / 0.72), rgb(5 8 22 / 0.82)), url('/img/about-hero-mobile.jpg'); background-position: center; }
  .about-quote figcaption { letter-spacing: 0.3em; }
  .about-close { grid-template-columns: 1fr; justify-items: center; }
  .about-close-arms, .about-close-cta { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
