/* ==========================================================================
   INVEST BEACHFRONT — design system
   Reference language: stoneinvestment.fr (system replicated, no assets copied)
   ========================================================================== */

:root {
  --ink-dark: #0B0B0C;        /* page background, dark sections */
  --ink-light: #F7F4EF;       /* warm off-white, light sections */
  --text-on-dark: #EDEAE4;
  --text-on-light: #1A1A1A;
  --gold: #C9A96A;            /* champagne accent — rules, labels, hovers */
  --teal: #12343B;            /* deep sea teal — identity, footer */
  --teal-deep: #0D272C;
  --muted-on-dark: rgba(237, 234, 228, 0.64);
  --muted-on-light: rgba(26, 26, 26, 0.64);
  --hairline-dark: rgba(237, 234, 228, 0.16);
  --hairline-light: rgba(26, 26, 26, 0.14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --pad-section: clamp(80px, 12vw, 160px);
  --pad-x: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-dark);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .body-copy a { border-bottom: 1px solid var(--gold); transition: color 300ms var(--ease); }
p a:hover { color: var(--gold); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink-dark); padding: 8px 16px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---- type ---------------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

h1, h2, h3.serif, .serif { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
.h3 { font-size: clamp(24px, 3vw, 34px); font-family: var(--serif); font-weight: 400; }
h1 em, h2 em { font-style: italic; font-weight: 300; }

.lede { font-size: 17px; max-width: 65ch; color: var(--muted-on-dark); }
.light .lede, .light p { color: var(--muted-on-light); }
.body-copy { max-width: 65ch; }
.body-copy p { margin: 0 0 1.4em; }

/* ---- header --------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease);
  background: transparent;
}
.site-header.solid, body[data-header="solid"] .site-header {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--pad-x);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--gold);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 8px;
  background: linear-gradient(to bottom, transparent 0 3px, var(--gold) 3px 4px, transparent 4px 6px, rgba(201,169,106,.55) 6px 7px, transparent 7px);
}
.brand-word {
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400;
  white-space: nowrap;
}
.main-nav ul { display: flex; gap: clamp(16px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 400;
  padding: 6px 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 420ms var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.nav-n { color: var(--gold); margin-right: 7px; font-size: 10px; }
.header-utils { display: flex; align-items: center; gap: 14px; }
.util-mark { font-size: 11px; letter-spacing: 0.2em; color: var(--muted-on-dark); }
.util-sep { color: var(--hairline-dark); }
.util-ghost {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  border: 1px solid var(--hairline-dark); padding: 8px 18px;
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.util-ghost:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px 4px;
}
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text-on-dark); margin: 5px 0; transition: transform 300ms var(--ease), opacity 300ms; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: rgba(11,11,12,0.98);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  font-family: var(--serif); font-size: clamp(30px, 7vw, 44px); line-height: 2;
}
.mobile-nav .nav-n { font-family: var(--sans); font-size: 12px; vertical-align: super; }
.mobile-nav-foot { margin-top: 32px; color: var(--muted-on-dark); font-size: 13px; letter-spacing: 0.08em; }

@media (max-width: 980px) {
  .main-nav, .util-ghost, .util-mark, .util-sep { display: none; }
  .nav-toggle { display: block; }
}

/* ---- hero ------------------------------------------------------------------ */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media picture, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media video { z-index: 1; } /* video above the poster fallback on desktop; hidden <768px */
.hero-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 2; }
.hero-scrim::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34vh;
  background: linear-gradient(to bottom, transparent, rgba(11,11,12,0.85));
}
.hero-content { position: relative; z-index: 3; padding: 120px var(--pad-x) 80px; max-width: 1100px; }
.hero-content .eyebrow { color: var(--text-on-dark); opacity: 0.85; }
.hero-sub { margin: 26px auto 0; font-size: 15px; letter-spacing: 0.08em; color: var(--text-on-dark); opacity: 0.85; max-width: 56ch; }
.hero-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 56px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-cta .chev { animation: chev 2.4s var(--ease) infinite; color: var(--gold); font-size: 14px; }
@keyframes chev { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(8px); opacity: 1; } }

.hero--page { min-height: 62vh; }
.hero--page .hero-content { padding-top: 160px; }

/* ---- sections ---------------------------------------------------------------- */

.section { padding: var(--pad-section) 0; }
.section.dark { background: var(--ink-dark); color: var(--text-on-dark); }
.section.light { background: var(--ink-light); color: var(--text-on-light); }
.section.teal { background: var(--teal); color: var(--text-on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 24px; }
.gold-rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ---- property cards ------------------------------------------------------------ */

.card-grid { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.property-card { position: relative; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #101012; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.property-card:hover .card-media img { transform: scale(1.04); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 42%, transparent 62%);
}
.card-overlay { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; }
.card-featured {
  position: absolute; top: 16px; inset-inline-start: 20px; z-index: 3;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 5px; border-bottom: 1px solid var(--gold);
}
.card-loc { font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.card-name { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); font-weight: 400; line-height: 1.2; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.card-price { font-size: 14px; letter-spacing: 0.06em; }
.card-fig { font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted-on-dark); }
.light .card-fig { color: var(--muted-on-light); }
.card-rule { height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); margin-top: 12px; }
.property-card:hover .card-rule { transform: scaleX(1); }
.card-view { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 10px; display: inline-block; opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.property-card:hover .card-view, .property-card:focus-visible .card-view { opacity: 1; transform: none; }

/* ---- text link ------------------------------------------------------------------ */

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400;
}
.text-link::after { content: "→"; color: var(--gold); transition: transform 400ms var(--ease); }
.text-link:hover::after { transform: translateX(6px); }

/* ---- expertise columns ------------------------------------------------------------ */

.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.4vw, 48px); }
@media (max-width: 980px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise-grid { grid-template-columns: 1fr; } }
.expertise-item .n { font-family: var(--serif); font-size: 40px; color: var(--gold); font-style: italic; }
.expertise-item h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 10px 0 12px; }
.expertise-item p { font-size: 14.5px; margin: 0; }

/* ---- islands split panel ------------------------------------------------------------ */

.islands-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 74vh; }
.islands-split.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .islands-split, .islands-split.three { grid-template-columns: 1fr; } }
.island-panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 380px; }
.island-panel .panel-media, .island-panel video, .island-panel picture, .island-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.island-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,10,11,0.82), rgba(6,10,11,0.12) 55%); }
.island-panel .panel-content { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px); }
.island-panel h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); color: #fff; }
.island-panel p { max-width: 46ch; color: rgba(255,255,255,0.82); font-size: 14.5px; }
.island-panel:hover img, .island-panel:hover video { transform: scale(1.03); transition: transform 1400ms var(--ease); }

/* ---- journal ------------------------------------------------------------------------- */

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 980px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-card .card-media { aspect-ratio: 3 / 2; }
.journal-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 16px 0 8px; }
.journal-card p { font-size: 14px; margin: 0 0 12px; color: var(--muted-on-light); }
.dark .journal-card p { color: var(--muted-on-dark); }
.journal-kicker { font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }

/* ---- newsletter --------------------------------------------------------------------- */

.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 0; max-width: 520px; margin: 36px auto 0; border-bottom: 1px solid var(--hairline-dark); }
.newsletter input[type="email"] {
  flex: 1; background: transparent; border: 0; color: var(--text-on-dark);
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.06em; padding: 14px 4px;
}
.newsletter input::placeholder { color: var(--muted-on-dark); }
.newsletter button {
  background: transparent; border: 0; color: var(--gold); cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
}
.newsletter .form-note { font-size: 12px; color: var(--muted-on-dark); margin-top: 16px; }

/* ---- collection filters ---------------------------------------------------------------- */

.filter-bar {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); align-items: center;
  padding: 22px 0; border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-on-dark); }
.filter-group select {
  background: transparent; color: var(--text-on-dark); border: 0; border-bottom: 1px solid var(--hairline-dark);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; padding: 6px 22px 6px 2px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%23C9A96A' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.filter-group select:focus { border-color: var(--gold); outline: none; }
.filter-count { margin-left: auto; font-size: 12px; letter-spacing: 0.12em; color: var(--muted-on-dark); }

/* ---- property detail ---------------------------------------------------------------------- */

.prop-hero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; }
.prop-hero picture, .prop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,12,0.92), rgba(11,11,12,0.15) 55%, rgba(0,0,0,0.25)); }
.prop-hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(32px, 5vw, 64px); width: 100%; }
.prop-title { font-size: clamp(30px, 4.6vw, 58px); max-width: 20ch; }

.figures-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--hairline-dark);
}
.figure {
  padding: 22px 20px 22px 0; border-bottom: 1px solid var(--hairline-dark);
}
.figure dt { font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 8px; }
.figure dd { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }

.gallery { display: grid; gap: 14px; }
.gallery-main { aspect-ratio: 16 / 10; overflow: hidden; background: #101012; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.gallery-thumbs button {
  padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 4/3; overflow: hidden;
  opacity: 0.55; transition: opacity 300ms var(--ease); border-bottom: 2px solid transparent;
}
.gallery-thumbs button[aria-current="true"], .gallery-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.feature-chips li {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--hairline-dark); padding: 8px 14px; color: var(--muted-on-dark);
}

.prop-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 980px) { .prop-layout { grid-template-columns: 1fr; } }
.prop-aside { position: sticky; top: 96px; border: 1px solid var(--hairline-dark); padding: clamp(24px, 3vw, 36px); }

/* ---- forms ------------------------------------------------------------------------------------ */

.form-grid { display: grid; gap: 22px; }
.form-field label { display: block; font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline-dark);
  color: var(--text-on-dark); font-family: var(--sans); font-weight: 300; font-size: 15px;
  padding: 10px 2px; border-radius: 0;
}
.light .form-field input, .light .form-field textarea, .light .form-field select { color: var(--text-on-light); border-color: var(--hairline-light); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field .err { display: none; font-size: 12px; color: #C96A6A; margin-top: 6px; }
.form-field.invalid .err { display: block; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #C96A6A; }
.form-actions { margin-top: 8px; }
.btn-text {
  background: none; border: 0; cursor: pointer; color: var(--gold);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; padding: 0;
}
.btn-text::after { content: "→"; transition: transform 400ms var(--ease); }
.btn-text:hover::after { transform: translateX(6px); }
.form-status { font-size: 13px; margin-top: 14px; color: var(--muted-on-dark); }

/* ---- article ------------------------------------------------------------------------------------ */

.article-body { max-width: 68ch; margin: 0 auto; }
.article-body p { margin: 0 0 1.55em; font-size: 16.5px; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 0.7em; }
.article-body ul { margin: 0 0 1.55em; padding-left: 1.1em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  margin: 2em 0; padding-left: 24px; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.5;
}
.article-meta { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-on-dark); }
.light .article-meta { color: var(--muted-on-light); }
.article-cta {
  margin-top: 64px; padding: 36px; border: 1px solid var(--hairline-dark); text-align: center;
}

/* ---- misc ------------------------------------------------------------------------------------ */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.stat .stat-v { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); color: var(--gold); }
.stat .stat-l { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-on-dark); }
.light .stat .stat-l { color: var(--muted-on-light); }

.breadcrumb { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }

.island-map { width: 100%; height: auto; }
.island-map .land { fill: rgba(201, 169, 106, 0.12); stroke: var(--gold); stroke-width: 0.6; }
.island-map .marker { fill: var(--gold); }
.island-map text { font-family: var(--sans); font-size: 6.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--muted-on-dark); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.media-block { overflow: hidden; }
.media-block img { transition: transform 900ms var(--ease); }
.media-block:hover img { transform: scale(1.03); }

/* ---- reveal on scroll ------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(40px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.d1.in { transition-delay: 90ms; } .reveal.d2.in { transition-delay: 180ms; } .reveal.d3.in { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-cta .chev { animation: none; }
  .card-media img, .island-panel img, .island-panel video, .media-block img { transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- footer ------------------------------------------------------------------------------------ */

.site-footer { background: var(--teal); color: var(--text-on-dark); padding: clamp(56px, 8vw, 96px) 0 40px; }
.footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: clamp(32px, 5vw, 72px); padding-bottom: 48px; border-bottom: 1px solid rgba(237,234,228,0.14); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-word { font-size: 14px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(237,234,228,0.75); margin: 14px 0 0; }
.footer-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.office p { font-size: 13.5px; line-height: 1.9; color: rgba(237,234,228,0.75); margin: 0; }
.office a:hover { color: var(--gold); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(237,234,228,0.75); transition: color 300ms var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(237,234,228,0.14); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.footer-legal p { font-size: 12px; color: rgba(237,234,228,0.55); margin: 0; }
.legal-note { max-width: 72ch; }

/* mobile hero: hide video, show poster (JS also skips loading it) */
@media (max-width: 767px) {
  .hero video { display: none; }
}

/* spam honeypot — hidden from users, filled only by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- principal profile card --------------------------------------------------- */

.principal-card {
  margin: 56px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--hairline-light);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
}
.principal-card img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
}
.principal-card figcaption { padding-top: 4px; }
.principal-name { font-size: 26px; font-weight: 400; line-height: 1.2; margin: 0 0 6px; }
.principal-role { margin: 0; color: var(--gold); }
.principal-contact { font-size: 13.5px; line-height: 1.95; margin: 0; color: var(--muted-on-light); }
.principal-contact a { border-bottom: 1px solid var(--hairline-light); }
.principal-contact a:hover { color: var(--gold); border-color: var(--gold); }
.principal-label {
  display: block; font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted-on-light); margin-bottom: 2px;
}
@media (max-width: 560px) {
  .principal-card { grid-template-columns: 1fr; gap: 22px; }
  .principal-card picture { display: block; max-width: 220px; }
}

/* ---- language switcher ------------------------------------------------------ */

.lang-switch select {
  background: transparent; color: var(--muted-on-dark); border: 0;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em;
  padding: 6px 18px 6px 2px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%23C9A96A' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.lang-switch select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-switch option { background: var(--ink-dark); color: var(--text-on-dark); }
.mobile-lang { margin-top: 28px; }
.mobile-lang select {
  background: transparent; color: var(--text-on-dark); border: 1px solid var(--hairline-dark);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; padding: 10px 16px;
}
@media (max-width: 980px) { .header-utils .lang-switch { display: none; } }

/* ---- internationalisation: script-specific typography ----------------------- */

/* CJK: no letter-spacing tricks, taller line-height, system serif/sans stacks */
html[lang="ja"] { --serif: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; --sans: 'Jost', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
html[lang="ko"] { --serif: 'Cormorant Garamond', 'AppleMyungjo', 'Nanum Myeongjo', 'Noto Serif KR', serif; --sans: 'Jost', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
html[lang="zh-Hans"] { --serif: 'Cormorant Garamond', 'Songti SC', 'SimSun', 'Noto Serif SC', serif; --sans: 'Jost', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
html[lang="zh-Hant-HK"], html[lang="zh-Hant"] { --serif: 'Cormorant Garamond', 'Songti TC', 'PMingLiU', 'Noto Serif TC', serif; --sans: 'Jost', 'PingFang HK', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; }
html[lang="ar"] { --serif: 'Cormorant Garamond', 'Amiri', 'Times New Roman', serif; --sans: 'Jost', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif; }

html[lang="ja"] body, html[lang="ko"] body, html[lang^="zh"] body { line-height: 1.9; }
html[lang="ja"] .eyebrow, html[lang="ko"] .eyebrow, html[lang^="zh"] .eyebrow, html[lang="ar"] .eyebrow,
html[lang="ja"] .main-nav a, html[lang="ko"] .main-nav a, html[lang^="zh"] .main-nav a, html[lang="ar"] .main-nav a,
html[lang="ja"] .card-loc, html[lang="ko"] .card-loc, html[lang^="zh"] .card-loc, html[lang="ar"] .card-loc,
html[lang="ja"] .text-link, html[lang="ko"] .text-link, html[lang^="zh"] .text-link, html[lang="ar"] .text-link,
html[lang="ja"] .figure dt, html[lang="ko"] .figure dt, html[lang^="zh"] .figure dt, html[lang="ar"] .figure dt {
  letter-spacing: 0.06em;
}
html[lang="ja"] h1, html[lang="ko"] h1, html[lang^="zh"] h1,
html[lang="ja"] h2, html[lang="ko"] h2, html[lang^="zh"] h2 { line-height: 1.3; }
html[lang="ja"] h1 em, html[lang="ko"] h1 em, html[lang^="zh"] h1 em, html[lang="ar"] h1 em,
html[lang="ja"] h2 em, html[lang="ko"] h2 em, html[lang^="zh"] h2 em, html[lang="ar"] h2 em { font-style: normal; color: var(--gold); }

/* ---- RTL (Arabic) ------------------------------------------------------------ */

[dir="rtl"] .text-link::after { content: "←"; }
[dir="rtl"] .text-link:hover::after { transform: translateX(-6px); }
[dir="rtl"] .btn-text::after { content: "←"; }
[dir="rtl"] .btn-text:hover::after { transform: translateX(-6px); }
[dir="rtl"] .figure { padding: 22px 0 22px 20px; }
[dir="rtl"] .main-nav a::after { transform-origin: right; }
[dir="rtl"] .card-rule { transform-origin: right; }
[dir="rtl"] .filter-group select { background-position: left 4px center; padding: 6px 2px 6px 22px; }
[dir="rtl"] .lang-switch select { background-position: left 2px center; padding: 6px 2px 6px 18px; }
[dir="rtl"] .article-body blockquote { padding-left: 0; padding-right: 24px; border-left: 0; border-right: 1px solid var(--gold); }
[dir="rtl"] .hero-cta .chev { animation-name: chev; }
