:root {
  --bg:#101010;
  --ink:#eee9e1;
  --muted:#a9a49c;
  --line:#35312f;
  --wine:#711B2B;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  font:inherit;
}

header {
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:0 clamp(22px,7vw,110px);
}

.brand {
  font:18px Georgia,serif;
  letter-spacing:.26em;
}

.nav {
  display:flex;
  gap:32px;
  color:#c8c3bb;
  font-size:12px;
  letter-spacing:.09em;
}

.nav a:hover,
.venture:hover .arrow {
  color:#D69AA2;
}

.hero {
  max-width:1440px;
  margin:auto;
  min-height:660px;
  display:grid;
  grid-template-columns:46% 1fr;
  align-items:stretch;
}

.hero-copy {
  grid-column:2;
  grid-row:1;
  padding:clamp(80px,11vw,165px) clamp(22px,6vw,90px) 100px clamp(30px,5vw,90px);
  z-index:1;
}

.hero h1 {
  font:normal clamp(60px,7.3vw,108px)/.98 Georgia,'Times New Roman',serif;
  letter-spacing:-.048em;
  margin:34px 0;
}

.lead {
  max-width:410px;
  color:#c6c0b8;
  font:clamp(18px,2vw,23px)/1.55 Georgia,serif;
}

.portrait {
  grid-column:1;
  grid-row:1;
  position:relative;
  min-height:600px;
  overflow:hidden;
  background:#222;
}

.portrait img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:48% 53%;
  filter:brightness(.91);
}

.portrait:after {
  content:'';
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  background:linear-gradient(270deg,#101010 0%,transparent 24%),linear-gradient(0deg,#101010 0%,transparent 22%);
}

.wrap {
  max-width:1220px;
  margin:auto;
  padding:0 36px;
}

.section {
  padding:100px 0;
  border-top:1px solid var(--line);
}

.wrap > .section:first-child {
  border-top:none;
}

.section-head {
  display:flex;
  gap:24px;
  align-items:baseline;
  margin-bottom:42px;
}

.section h2 {
  font:normal clamp(44px,6vw,75px)/1.05 Georgia,serif;
  letter-spacing:-.045em;
  margin:0;
}

.education {
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:45px;
}

.education p {
  color:var(--muted);
  line-height:1.8;
  max-width:480px;
  margin:0;
}

.edu-subheading + .edu-entry {
  border-top:0;
}

.edu-entry {
  border-top:1px solid var(--line);
  padding:25px 0;
  color:#e5e0d8;
}

.edu-entry small {
  display:block;
  color:var(--muted);
  margin-top:8px;
}

.edu-location {
  display:block;
  color:#938b86;
  font-size:12px;
  letter-spacing:.025em;
  margin-top:6px;
}

.venture {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding:30px 0;
  transition:padding .2s;
}

.venture:last-child {
  border-bottom:1px solid var(--line);
}

.venture:hover {
  padding-left:12px;
}

.venture strong {
  font:normal clamp(26px,4vw,42px) Georgia,serif;
}

.venture small {
  display:block;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.08em;
  margin-top:9px;
}

.arrow {
  font-size:28px;
  transition:transform .2s;
}

.venture:hover .arrow {
  transform:translate(5px,-5px);
}

footer {
  padding:28px clamp(22px,7vw,110px);
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.1em;
}

@media (max-width:760px) {
  header {
    height:68px;
  }
  .brand {
    font-size:13px;
  }
  .nav {
    gap:16px;
    font-size:10px;
  }
  .hero {
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .portrait {
    min-height:390px;
    height:57vh;
  }
  .portrait:after {
    background:linear-gradient(0deg,#101010,transparent 40%);
  }
  .hero-copy {
    padding:25px 26px 90px;
  }
  .hero h1 {
    font-size:clamp(58px,12vw,88px);
    margin:24px 0;
  }
  .lead {
    font-size:19px;
  }
  .wrap {
    padding:0 26px;
  }
  .section {
    padding:72px 0;
  }
  .education {
    grid-template-columns:1fr;
    gap:25px;
  }
}

.nav {
  align-items:center;
}

@media (max-width:760px) {
  header {
    padding:0 16px;
  }
  .nav {
    gap:10px;
  }
  .nav a {
    font-size:9px;
  }
}

@media (max-width:390px) {
  .brand {
    font-size:11px;
    letter-spacing:.16em;
  }
  .nav {
    gap:7px;
  }
  .nav a {
    font-size:9px;
  }
}

.venture-group {
  margin-top:34px;
}

.venture-group.past {
  margin-top:58px;
}

.venture-label {
  font-size:11px;
  letter-spacing:.22em;
  color:#bda79c;
  font-weight:600;
  margin-bottom:16px;
}

header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(16,16,16,.94);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.nav a {
  position:relative;
  padding:12px 0;
  white-space:nowrap;
  transition:color .2s ease;
}

.nav a::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:4px;
  height:1px;
  background:#B96573;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}

.nav a:hover,
.nav a.active {
  color:#f4eee7;
}

.nav a.active::after {
  transform:scaleX(1);
}

section[id] {
  scroll-margin-top:92px;
}

@media (max-width:760px) {
  header {
    height:auto;
    min-height:76px;
    padding:13px 18px;
    flex-wrap:wrap;
    gap:9px;
  }
  .nav {
    width:100%;
    justify-content:space-between;
    gap:10px;
  }
  .nav a {
    font-size:10px;
  }
  .brand {
    font-size:14px;
  }
}

@media (max-width:390px) {
  .nav {
    gap:7px;
  }
  .nav a {
    font-size:9px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .nav a::after {
    transition:none;
  }
}

.brand {
  font-family:Georgia,'Times New Roman',serif;
  font-size:23px;
  letter-spacing:.075em;
  font-weight:normal;
  white-space:nowrap;
  line-height:1;
}

.hero h1 {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:normal;
  font-size:clamp(47px,5.7vw,82px);
  line-height:1.08;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin:34px 0;
  white-space:nowrap;
}

.hero-period {
  color:#B96573;
  letter-spacing:0;
}

@media (max-width:760px) {
  .brand {
    font-size:22px;
  }
  .hero h1 {
    font-size:clamp(43px,9.2vw,70px);
    letter-spacing:.095em;
  }
}

@media (max-width:390px) {
  .hero h1 {
    font-size:clamp(39px,9vw,56px);
    letter-spacing:.07em;
  }
}

.edu-subsection {
  margin-top:42px;
  padding-top:25px;
  border-top:1px solid var(--line);
}

.edu-subheading {
  font-size:11px;
  letter-spacing:.15em;
  color:#b4a39a;
  margin-bottom:22px;
}

.program-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.program-grid strong,
.recognition-row strong {
  display:block;
  font-size:13px;
  font-weight:500;
  line-height:1.5;
  color:#e6ded5;
}

.program-grid span,
.recognition-row span {
  display:block;
  font-size:12px;
  color:#938b86;
  margin-top:6px;
}

.program-note {
  font-size:11px!important;
  color:#938b86!important;
  margin-top:22px!important;
  line-height:1.5!important;
}

.recognition-row {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}

.recognition-row:first-of-type {
  padding-top:0;
}

.recognition-row>span {
  white-space:nowrap;
  margin:0;
}

@media (max-width:760px) {
  .program-grid {
    grid-template-columns:1fr;
    gap:17px;
  }
  .edu-subsection {
    margin-top:32px;
  }
}

#education {
  position:relative;
  border-top:0;
}

#education::before {
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  border-top:1px solid var(--line);
  pointer-events:none;
}

.media-section .section-head {
  margin-bottom:42px;
}

.media-entry h3 {
  font:normal clamp(28px,3.5vw,42px)/1.2 Georgia,serif;
  margin:0 0 14px;
}

.media-entry p {
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
  margin:0 0 20px;
}

.media-link {
  display:inline-block;
  color:inherit;
  font-size:12px;
  letter-spacing:.12em;
  text-decoration:none;
  border-bottom:1px solid var(--wine);
  padding-bottom:8px;
  transition:color .2s ease;
}

.media-link:hover {
  color:var(--wine);
}

#artieksi {
  position:relative;
  border-top:0;
}

#artieksi::before {
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  border-top:1px solid var(--line);
  pointer-events:none;
}

html[dir="rtl"] [data-i18n="intro"],
html[dir="rtl"] [data-i18n="educationIntro"],
html[dir="rtl"] [data-i18n="mediaIntro"] {
  direction:rtl;
  text-align:right;
  unicode-bidi:plaintext;
}

html[dir="rtl"] .nav {
  direction:rtl;
}

.language-control {
  position:relative;
  display:inline-flex;
  align-items:center;
  z-index:100;
}

.language-control {
  position:relative;
  z-index:1001;
}

.language-details {
  position:relative;
  color:inherit;
}

.language-details summary {
  cursor:pointer;
  list-style:none;
  white-space:nowrap;
  padding:10px 8px;
  font-size:12px;
}

.language-details summary::-webkit-details-marker {
  display:none;
}

.language-links {
  position:absolute;
  right:0;
  top:100%;
  width:190px;
  max-height:65vh;
  overflow:auto;
  background:#202020;
  border:1px solid #555;
  box-shadow:0 12px 35px #0008;
  padding:5px;
  z-index:9999;
}

.language-links a {
  display:block;
  padding:11px;
  color:#eee;
  text-decoration:none;
  font-size:12px;
  white-space:nowrap;
}

.language-links a:hover,
.language-links a[aria-current=page] {
  background:#393035;
  color:#fff;
}

html[dir=rtl] .language-links {
  right:auto;
  left:0;
}

html[dir="rtl"] .nav,
html[dir="rtl"] .nav a,
html[dir="rtl"] .venture small,
html[dir="rtl"] .venture-label,
html[dir="rtl"] .edu-subheading,
html[dir="rtl"] .media-link,
html[dir="rtl"] footer,
html[dir="rtl"] .program-note {
  letter-spacing:0!important;
}

.nav .language-links a {
  display:block!important;
  position:static;
  padding:11px;
  font-size:12px!important;
  letter-spacing:0;
  white-space:nowrap;
  direction:ltr;
  text-align:left;
}

.nav .language-links a::after {
  display:none;
}

#lang-suggest {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px 14px;
  padding:10px 44px 10px 16px;
  background:#26201f;
  border-bottom:1px solid #783A45;
  color:#eee9e1;
  font-size:13px;
  line-height:1.5;
  position:relative;
  text-align:center;
}

#lang-suggest a {
  color:#fff;
  background:#711B2B;
  padding:6px 14px;
  border-radius:3px;
  font-size:12px;
  letter-spacing:.02em;
  white-space:nowrap;
}

#lang-suggest a:hover {
  background:#8a2236;
}

#lang-suggest button {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:transparent;
  border:0;
  color:#c8c3bb;
  font-size:20px;
  line-height:1;
  width:32px;
  height:32px;
  cursor:pointer;
}

#lang-suggest button:hover {
  color:#fff;
}

/* ==========================================================================
   Cross-browser, device and accessibility layer
   ========================================================================== */

/* --- Base: text scaling, colour scheme, scrollbars, tap behaviour --------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: #4a4343 #101010;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;               /* full-bleed section dividers use 100vw */
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
.portrait picture { display: block; width: 100%; height: 100%; }
.portrait img { display: block; }
a, button, summary { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }

/* --- Notched phones / landscape: keep content out of the safe areas -------- */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

/* --- Keyboard focus -------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #D69AA2;
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10000;
  padding: 10px 16px;
  background: #711B2B;
  color: #fff;
  font-size: 14px;
  border-radius: 3px;
}
.skip-link:focus { top: 10px; }

/* --- Language-specific type ------------------------------------------------ */
html:lang(zh) body,
html:lang(zh) .section h2,
html:lang(zh) .media-entry h3 {
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
html:lang(ja) body,
html:lang(ja) .section h2,
html:lang(ja) .media-entry h3 {
  font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
}
html:lang(ko) body,
html:lang(ko) .section h2,
html:lang(ko) .media-entry h3 {
  font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
}
html:lang(ar) body,
html:lang(ar) .section h2,
html:lang(ar) .media-entry h3,
html:lang(ar) .lead {
  font-family: "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
html:lang(zh) p, html:lang(ja) p { line-break: strict; }
html:lang(ko) p { word-break: keep-all; }

/* --- Right-to-left polish -------------------------------------------------- */
html[dir="rtl"] .venture:hover { padding-left: 0; padding-right: 12px; }
html[dir="rtl"] .venture:hover .arrow { transform: translate(-5px, -5px); }
html[dir="rtl"] .nav a::after { transform-origin: right; }

/* --- Language menu: never taller than the screen --------------------------- */
.language-links {
  max-height: 65vh;
  max-height: min(65dvh, 440px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* --- Language suggestion bar: no logical-property dependence ---------------- */
#lang-suggest button { right: 10px; }
#lang-suggest[dir="rtl"] { padding: 10px 16px 10px 44px; }
#lang-suggest[dir="rtl"] button { right: auto; left: 10px; }

/* --- Phones: iOS dynamic toolbar-safe hero height --------------------------- */
@media (max-width: 760px) {
  .portrait { height: 57vh; height: 57svh; }
}

/* --- Touch screens: comfortable 44px targets; no sticky hover -------------- */
@media (pointer: coarse) {
  .nav a { padding: 15px 0; }
  .language-details summary { padding: 15px 10px; }
  .language-links a,
  .nav .language-links a { padding: 14px 12px; }
  .media-link { padding: 14px 0 10px; }
  #lang-suggest a { padding: 11px 18px; }
  #lang-suggest button { width: 44px; height: 44px; }
}
@media (hover: none) {
  .nav a:hover { color: inherit; }
  .nav a.active:hover { color: #f4eee7; }
  .venture:hover { padding-left: 0; padding-right: 0; }
  .venture:hover .arrow { transform: none; color: inherit; }
  .media-link:hover { color: inherit; }
}

/* --- Browsers without clamp() get fixed, sensible sizes -------------------- */
@supports not (font-size: clamp(1px, 2vw, 3px)) {
  header, footer { padding-left: 40px; padding-right: 40px; }
  .hero h1 { font-size: 64px; }
  .section h2 { font-size: 56px; }
  .lead { font-size: 20px; }
  .venture strong { font-size: 34px; }
  .media-entry h3 { font-size: 34px; }
  @media (max-width: 760px) {
    header, footer { padding-left: 18px; padding-right: 18px; }
    .hero h1 { font-size: 48px; }
    .section h2 { font-size: 44px; }
  }
}

/* --- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print ------------------------------------------------------------------ */
@media print {
  :root { --bg: #fff; --ink: #111; --muted: #333; --line: #bbb; }
  html { color-scheme: light; }
  body { background: #fff; color: #111; padding: 0; }
  header, footer { position: static; background: none; }
  #lang-suggest, .skip-link, .language-control, .portrait:after, .arrow { display: none !important; }
  .hero { display: block; min-height: 0; }
  .portrait { min-height: 0; height: 320px; }
  .hero h1, .section h2, .media-entry h3, .venture strong, .lead, .brand { color: #111; }
  .lead, .education p, .media-entry p, .venture small, .edu-entry, .edu-entry small, .edu-location,
  .program-grid strong, .program-grid span, .recognition-row strong, .recognition-row span,
  .venture-label, .edu-subheading, .program-note { color: #222 !important; }
  .section { padding: 36px 0; break-inside: avoid-page; }
  a { color: inherit; text-decoration: none; }
}

/* ==========================================================================
   Design touches
   ========================================================================== */

/* --- Accent: text selection ------------------------------------------------- */
::selection { background: #711B2B; color: #fff; }
::-moz-selection { background: #711B2B; color: #fff; }

/* --- Language button: code on phones, full name on desktop ----------------- */
.l-full { display: none; }
@media (min-width: 761px) {
  .l-short { display: none; }
  .l-full { display: inline; }
}

/* --- Header: slides away while scrolling down on phones ---------------------- */
header { transition: transform .28s ease; }
header.is-hidden { transform: translateY(-100%); }
@media (min-width: 761px) { header.is-hidden { transform: none; } }
@media print { header.is-hidden { transform: none; } }
html.nav-jump section[id] { scroll-margin-top: 14px; }

/* --- Venture rows: status / years column ------------------------------------ */
.venture { gap: 24px; }
.v-main { flex: 1; min-width: 0; }
.v-meta {
  display: none;
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.v-meta.is-current {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #D69AA2;
}
.v-meta.is-current::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: #B96573;
  vertical-align: 1px;
}
html[dir="rtl"] .v-meta.is-current::before { margin-right: 0; margin-left: 9px; }
html[dir="rtl"] .v-meta { letter-spacing: 0 !important; }
@media (min-width: 761px) {
  .v-meta { display: block; min-width: 96px; text-align: right; }
  html[dir="rtl"] .v-meta { text-align: left; }
  .v-years-inline { display: none; }
}
@media (hover: hover) {
  .venture:hover strong {
    text-decoration: underline;
    text-decoration-color: #711B2B;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
  }
}

/* --- Education: intro stays in view while the list scrolls (desktop) -------- */
@media (min-width: 761px) {
  .education > .edu-intro { position: sticky; top: 112px; align-self: start; }
}

/* --- Media: pull-quote opening + play marker -------------------------------- */
.media-entry .media-lead {
  max-width: 760px;
  margin: 0 0 22px;
  padding-left: 22px;
  border-left: 2px solid var(--wine);
  color: #e6ded5;
  font: normal clamp(20px, 2.4vw, 27px)/1.5 Georgia, 'Times New Roman', serif;
}
html[dir="rtl"] .media-entry .media-lead { padding-left: 0; padding-right: 22px; border-left: 0; border-right: 2px solid var(--wine); }
html:lang(zh) .media-entry .media-lead { font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
html:lang(ja) .media-entry .media-lead { font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif; }
html:lang(ko) .media-entry .media-lead { font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
html:lang(ar) .media-entry .media-lead { font-family: "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
.media-link::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 10px;
  border-left: 8px solid #B96573;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  vertical-align: -1px;
}
html[dir="rtl"] .media-link::before { margin-right: 0; margin-left: 10px; }

/* --- Pull-quotes: opening sentence of the hero and Education intros ---------- */
.hero .lead-quote,
.education .edu-lead {
  padding-left: 22px;
  border-left: 2px solid var(--wine);
  color: #e6ded5;
  font-style: normal;
}
.hero .lead-quote {
  max-width: 520px;
  margin: 0 0 26px;
  font: normal clamp(21px, 2.2vw, 28px)/1.45 Georgia, 'Times New Roman', serif;
}
.hero .lead-quote + .lead {
  max-width: 470px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}
.education .edu-lead {
  max-width: 480px;
  margin: 0 0 22px;
  font: normal clamp(19px, 1.9vw, 23px)/1.5 Georgia, 'Times New Roman', serif;
}
html[dir="rtl"] .hero .lead-quote,
html[dir="rtl"] .education .edu-lead,
html[dir="rtl"] .media-entry .media-lead {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[dir="rtl"] .hero .lead-quote,
html[dir="rtl"] .education .edu-lead { padding-left: 0; padding-right: 22px; border-left: 0; border-right: 2px solid var(--wine); }
html:lang(zh) .hero .lead-quote, html:lang(zh) .education .edu-lead { font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
html:lang(ja) .hero .lead-quote, html:lang(ja) .education .edu-lead { font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif; }
html:lang(ko) .hero .lead-quote, html:lang(ko) .education .edu-lead { font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
html:lang(ar) .hero .lead-quote, html:lang(ar) .education .edu-lead { font-family: "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
@media (max-width: 760px) {
  .hero .lead-quote { margin-bottom: 20px; }
  .hero .lead-quote + .lead { font-size: 17px; }
}

/* --- Footer links ----------------------------------------------------------- */
.footer-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.social { color: #c8c3bb; border-bottom: 1px solid var(--wine); padding-bottom: 3px; transition: color .2s ease; }
.social:hover { color: #fff; }
@media (max-width: 760px) {
  footer { flex-wrap: wrap; gap: 14px; }
}

/* --- Back to top (phones) --------------------------------------------------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #26201f;
  border: 1px solid #4a3a3d;
  color: #eee9e1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
html[dir="rtl"] .to-top { right: auto; left: 16px; }
@media (min-width: 761px) { .to-top { display: none; } }
@media print { .to-top { display: none !important; } }

/* --- Fade-in on scroll (added by script; skipped for reduced motion) --------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   Header refinements
   ========================================================================== */
header { justify-content: flex-start; }
.brand { margin-right: auto; }
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
.brand-dot { color: #B96573; letter-spacing: 0; }

/* Language switcher: separate utility, with a language-neutral globe */
.language-control { margin-left: 26px; padding-left: 26px; border-left: 1px solid var(--line); }
html[dir="rtl"] .language-control { margin-left: 0; padding-left: 0; margin-right: 26px; padding-right: 26px; border-left: 0; border-right: 1px solid var(--line); }
.language-details summary::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%20stroke-linecap='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9.5'/%3E%3Cpath%20d='M2.5%2012h19M12%202.5c2.8%202.6%204.2%205.8%204.2%209.5s-1.4%206.9-4.2%209.5c-2.8-2.6-4.2-5.8-4.2-9.5s1.4-6.9%204.2-9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%20stroke-linecap='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9.5'/%3E%3Cpath%20d='M2.5%2012h19M12%202.5c2.8%202.6%204.2%205.8%204.2%209.5s-1.4%206.9-4.2%209.5c-2.8-2.6-4.2-5.8-4.2-9.5s1.4-6.9%204.2-9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[dir="rtl"] .language-details summary::before { margin-right: 0; margin-left: 7px; }
.language-links a { direction: ltr; text-align: left; letter-spacing: 0; }

/* Scroll progress: fixed hairline at the top edge, visible even when the header is hidden */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 2px;
  background: #B96573;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  will-change: transform;
}
html[dir="rtl"] .scroll-progress { transform-origin: right; }
@media print { .scroll-progress { display: none !important; } }

/* Phones: row 1 = brand + language, row 2 = the three section links at a readable size */
@media (max-width: 760px) {
  .brand { order: 1; }
  .language-control,
  html[dir="rtl"] .language-control { order: 2; margin: 0; padding: 0; border: 0; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .nav a { font-size: 12px; }
}

/* --- Latin name stays left-to-right inside right-to-left pages (keeps the full stop on the right) --- */
html[dir="rtl"] .brand,
html[dir="rtl"] .hero h1 { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hero h1 { text-align: right; }

/* --- Header and footer edges line up with the content column --- */
header, footer { padding-left: 36px; padding-right: 36px; }
@supports (padding: max(1px, 2px)) {
  @media (min-width: 761px) {
    header, footer {
      padding-left: max(36px, calc((100% - 1220px) / 2 + 36px));
      padding-right: max(36px, calc((100% - 1220px) / 2 + 36px));
    }
  }
}
@media (max-width: 760px) {
  header, footer { padding-left: 26px; padding-right: 26px; }
}

/* --- Footer: Instagram link --------------------------------------------------- */
.social { text-transform: uppercase; }
@media (max-width: 760px) {
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { justify-content: flex-start; gap: 22px; }
}
@media (min-width: 761px) {
  footer { align-items: baseline; }
  .footer-links { align-items: baseline; }
}

/* --- Venture arrows: quieter, thinner, muted until the row is hovered --------- */
.arrow { font-size: 20px; color: #8f8a83; flex: none; }
.venture:hover .arrow,
.venture:focus-visible .arrow { color: #D69AA2; transform: translate(3px, -3px); }
html[dir="rtl"] .venture:hover .arrow,
html[dir="rtl"] .venture:focus-visible .arrow { transform: translate(3px, -3px); }
@supports ((-webkit-mask-image: url("x")) or (mask-image: url("x"))) {
  .arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 0;
    line-height: 0;
    background-color: #8f8a83;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.3'%20stroke-linecap='square'%3E%3Cpath%20d='M6%2018L18%206M8.5%206H18v9.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.3'%20stroke-linecap='square'%3E%3Cpath%20d='M6%2018L18%206M8.5%206H18v9.5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease, background-color .2s ease;
  }
  .venture:hover .arrow,
  .venture:focus-visible .arrow { background-color: #D69AA2; }
}
@media (max-width: 760px) {
  .arrow { width: 18px; height: 18px; }
}
@media (hover: none) {
  .venture:hover .arrow { transform: none; color: #8f8a83; background-color: #8f8a83; }
}

/* --- Arrow on text links (Pros & Cons, Instagram): same quiet arrow as the ventures --- */
.arrow-s { color: #8f8a83; margin-inline-start: 4px; transition: transform .2s ease, color .2s ease, background-color .2s ease; display: inline-block; }
a:hover > .arrow-s, a:focus-visible > .arrow-s { color: #D69AA2; transform: translate(2px, -2px); }
@supports ((-webkit-mask-image: url("x")) or (mask-image: url("x"))) {
  .arrow-s {
    width: 15px; height: 15px; font-size: 0; line-height: 0; vertical-align: -3px;
    margin-inline-start: 7px; background-color: #8f8a83;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.3'%20stroke-linecap='square'%3E%3Cpath%20d='M6%2018L18%206M8.5%206H18v9.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.3'%20stroke-linecap='square'%3E%3Cpath%20d='M6%2018L18%206M8.5%206H18v9.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  a:hover > .arrow-s, a:focus-visible > .arrow-s { background-color: #D69AA2; }
}
@media (hover: none) { a:hover > .arrow-s { transform: none; color: #8f8a83; background-color: #8f8a83; } }
/* align the text-link arrow with the text's optical centre */
.media-link, .social { display: inline-flex; align-items: center; }
.media-link .arrow-s, .social .arrow-s { vertical-align: baseline; margin-top: -2px; }
/* longer hero intro: use the full text column on desktop */
@media (min-width: 761px) {
  .hero .lead-quote + .lead { max-width: 540px; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.6; }
  .hero .lead-quote { max-width: 540px; }
}
/* 404 page */
.not-found { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 max(26px, calc((100% - 1220px)/2 + 36px)); }
.not-found-code { margin: 0 0 12px; font-size: 14px; letter-spacing: .24em; color: #B96573; }
.not-found h1 { margin: 0 0 28px; font-weight: 400; font-size: clamp(34px, 6vw, 64px); }
