/* France Wing Chun — Section 60 */
/* Mobile-First Rewrite            */
/* ─────────────────────────────── */

:root {
  --bg: rgb(252, 250, 245);
  --bg-2: rgb(246, 243, 234);
  --bg-3: rgb(238, 233, 220);
  --fg: rgb(24, 20, 14);
  --fg-2: rgba(24, 20, 14, 0.62);
  --fg-3: rgba(24, 20, 14, 0.36);
  --rule: rgba(24, 20, 14, 0.12);
  --rule-strong: rgba(24, 20, 14, 0.22);
  --gold: rgb(235, 190, 20);
  --gold-soft: rgba(235, 190, 20, 0.22);

  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 80px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection {
  background: var(--gold);
  color: var(--bg);
}

.mandarin {
  font-family: "Ma Shan Zheng", var(--serif);
}

/* ─────────────────────────── Layout ─────────────────────────── */

.page {
  width: 100%;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ─────────────────────────── Nav ─────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(to bottom, rgba(252, 250, 245, 0.9), rgba(252, 250, 245, 0));
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s, background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
  height: 80px;
}

.nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(252, 250, 245, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand .name {
  display: none;
}

/* À partir de 640px : assez de place pour logo + texte + bouton CTA */
@media (min-width: 640px) {
  .brand .name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 2px;
  }
}

.brand .name .l1 {
  color: var(--fg);
}

.brand .name .l2 {
  color: var(--fg-3);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--fg);
  font-family: "Ma Shan Zheng", var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--gold);
  transform: translateY(1px);
  padding-top: 2px;
}

.brand .num {
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: none;
}

/* Mobile : nav-links masqués */
.nav-links {
  display: none;
}

.nav-cta {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgb(24, 20, 14) !important;
  background: var(--gold);
  padding: 12px 20px;
  white-space: nowrap;
  transition: transform 0.3s, background 0.3s;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

/* Desktop : nav-links visibles */
@media (min-width: 880px) {
  .nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .nav-links a {
    position: relative;
    padding: 6px 0;
    color: var(--fg-2);
    transition: color 0.3s;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nav-links a:hover {
    color: var(--fg);
  }

  .nav-links a:hover::after {
    right: 0;
  }
}

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  font-family: "Ma Shan Zheng", var(--serif);
  font-weight: 400;
  color: var(--gold);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-size: clamp(136px, 30vw, 420px);
  line-height: 0.95;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: -1;
  right: 0;
  /*top: clamp(3vh, 90px, 6vh);*/
  top:0;
}

/* Mobile : meta en colonne */
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 60px;
}

.hero-meta .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-meta .item .k {
  color: var(--fg-3);
}

.hero-meta .item .v {
  color: var(--fg);
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Desktop : meta en ligne */
@media (min-width: 880px) {
  .hero-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(50px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
  position: relative;
}

.hero h1 .b {
  font-weight: 800;
}

.hero h1 .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-sub {
  margin-top: 44px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 300;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ─────────────────────────── Section base ─────────────────────────── */

.section {
  position: relative;
  padding: clamp(100px, 80px, 180px) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.section-num .of {
  color: var(--fg-3);
  margin-left: 6px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

h2.section-title {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 56px;
  text-wrap: balance;
}

h2.section-title .b {
  font-weight: 800;
}

h2.section-title .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2.section-title .gold {
  color: var(--gold);
}

/* ─────────────────────────── L'Art ─────────────────────────── */

/* Mobile : colonne unique */
.art {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

/* Desktop : deux colonnes */
@media (min-width: 880px) {
  .art {
    grid-template-columns: 1fr 1fr;
  }
}

.art .lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: pretty;
}

.art .lead em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.art .body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.art .body p {
  margin: 0;
}

.art .body strong {
  color: var(--fg);
  font-weight: 600;
}

/* Principles — Mobile : 1 colonne, séparateur bas */
.principles {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.principle {
  padding: 28px 0;
  border-right: 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.principle:last-child {
  border-bottom: 0;
}

/* Tablette : 2 colonnes */
@media (min-width: 480px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
  }

  .principle {
    padding: 28px 12px;
  }

  /* Séparateur vertical entre les deux colonnes */
  .principle:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

  /* Supprimer le border-bottom sur la dernière rangée */
  .principle:nth-last-child(-n+2):nth-child(odd),
  .principle:nth-last-child(-n+2):nth-child(even) {
    border-bottom: 0;
  }
}

/* Desktop : 4 colonnes, séparateur droit */
@media (min-width: 880px) {
  .principles {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .principle {
    padding: 36px 24px 36px 24px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }

  /* Réinitialiser la règle tablette */
  .principle:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

  .principle:last-child {
    border-right: 0;
    padding-right: 0;
    border-bottom: 0;
  }
}

.principle .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.principle .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.principle .name .cn {
  font-family: "Ma Shan Zheng", var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.7;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.principle .name .cn .latin {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 1;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

.principle .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* ─────────────────────────── Le Maître ─────────────────────────── */

/* Mobile : colonne unique */
.master {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

/* Desktop : deux colonnes */
@media (min-width: 880px) {
  .master {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
  }
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
}

.portrait .ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      rgba(28, 24, 18, 0.04) 14px,
      rgba(28, 24, 18, 0.04) 15px
    );
}

.master .bio {
  padding-top: 8px;
}

.master .name {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.master .name .last {
  font-weight: 800;
  display: block;
}

.master .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 36px;
}

.master .text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.master .text p {
  margin: 0;
}

/* Mobile : lineage en colonne unique */
.lineage {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 40px;
}

/* Tablette et + : 2 colonnes */
@media (min-width: 600px) {
  .lineage {
    grid-template-columns: 1fr 1fr;
  }
}

.lineage .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lineage .row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.lineage .row .v {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}

.lineage .row .v em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

/* ─────────────────────────── Académie ─────────────────────────── */

/* Mobile : intro en colonne unique */
.acad-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

/* Desktop : deux colonnes */
@media (min-width: 880px) {
  .acad-intro {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.acad-intro .lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.acad-intro .lead em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

.acad-intro .body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-2);
}

.acad-intro .body p {
  margin: 0 0 14px;
}

/* Mobile : grille en colonne unique, tiles pleine largeur */
.acad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
}

.tile.t1,
.tile.t2,
.tile.t3,
.tile.t4 {
  grid-column: 1 / -1;
}

/* Desktop : grille 12 colonnes avec proportions d'origine */
@media (min-width: 880px) {
  .acad-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 500px 500px;
  }

  .tile.t1 { grid-column: span 7; }
  .tile.t2 { grid-column: span 5; }
  .tile.t3 { grid-column: span 5; }
  .tile.t4 { grid-column: span 7; }
}

.tile {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate; /* stacking context propre : z-index des enfants fiables */
  /* Hauteur minimale sur mobile pour les tiles sans aspect-ratio fixe */
  min-height: 200px;
}

@media (min-width: 880px) {
  .tile {
    min-height: unset;
  }
}

.tile .ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      rgba(28, 24, 18, 0.04) 14px,
      rgba(28, 24, 18, 0.04) 15px
    );
}

.tile .ph::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid var(--rule);
}

.tile .label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  z-index: 2;
}

/* ── Tile avec image réelle ── */

/* ── Mobile : tile-inner en flow, hauteur définie par l'image ── */
.tile:has(.tile-inner) {
  min-height: unset; /* l'image définit la hauteur, pas min-height */
}

.tile-inner {
  position: relative; /* en flow sur mobile */
  margin: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.tile-inner .tile-img {
  display: block;
  width: 100%;
  height: auto; /* ratio naturel de l'image */
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--rule);
}

/* Le portrait a déjà aspect-ratio: 4/5 — on garde tile-inner en absolu */
.portrait .tile-inner {
  position: absolute;
  inset: 20px;
  margin: 0;
}

.portrait .tile-inner .tile-img {
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* Label en flux normal sous l'image, hors du cadre */
.tile-inner .label {
  position: static;
  flex-shrink: 0;
  padding-top: 18px;
  color: var(--fg-3);
}

/* Supprimer le ::before du .ph (remplacé par le border sur l'image) */
.tile:has(.tile-inner) .ph::before {
  display: none;
}

/* Plus besoin de ::after sur la tile */
.tile:has(.tile-inner)::after {
  display: none;
}

/* ── Desktop : tile-inner absolu, image remplit le conteneur ── */
@media (min-width: 880px) {
  .tile:has(.tile-inner) {
    min-height: unset;
  }

  .tile-inner {
    position: absolute;
    inset: 20px;
    margin: 0;
  }

  .tile-inner .tile-img {
    flex: 1;
    min-height: 0;
    height: 100%;
  }
}

/* ─────────────────────────── Horaires ─────────────────────────── */

/* Mobile : colonne unique */
.schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* Desktop : deux colonnes */
@media (min-width: 880px) {
  .schedule {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
}

.schedule .copy {
  padding-top: 4px;
}

.schedule .copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0 0 20px;
}

.schedule .copy .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg);
  margin: 40px 0 0;
  padding-left: 20px;
  border-left: 1px solid var(--gold);
}

.schedule .copy .quote .who {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.timetable {
  border-top: 1px solid var(--rule-strong);
}

/* Mobile : grille 2 colonnes, heure sur ligne dédiée */
.tt-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s, padding 0.4s;
}

.tt-time {
  grid-column: 1 / -1;
  padding-left: 88px; /* aligne avec la 2e colonne (64px + 24px gap) */
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Desktop : grille 3 colonnes, heure à droite */
@media (min-width: 880px) {
  .tt-row {
    grid-template-columns: 80px 1fr auto;
  }

  .tt-time {
    grid-column: auto;
    padding-left: 0;
    text-align: right;
  }
}

.tt-day {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.tt-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tt-class {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.tt-class em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg-2);
  font-size: 18px;
  margin-left: 6px;
}

.tt-sub {
  font-size: 13.5px;
  color: var(--fg-3);
}

/* ─────────────────────────── Contact ─────────────────────────── */

.contact {
  position: relative;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 60px;
  text-wrap: balance;
}

.contact h2 .b {
  font-weight: 800;
}

.contact h2 .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.contact h2 .gold {
  color: var(--gold);
}

/* Mobile : grille en colonne unique */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}

/* Desktop : 3 colonnes */
@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
  }
}

.contact-grid .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-grid .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.contact-grid .v {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg);
}

.contact-grid .v a {
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.contact-grid .v a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.bigcta {
  margin-top: 60px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 24px 36px;
  background: var(--gold);
  color: rgb(24, 20, 14);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), gap 0.4s;
}

.bigcta:hover {
  transform: translateY(-2px);
  gap: 28px;
}

.bigcta .arr {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ─────────────────────────── Footer ─────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  padding: 48px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  flex-wrap: wrap;
}

.footer .glyph {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer .glyph .cn {
  font-family: "Ma Shan Zheng", var(--serif);
  font-size: 20px;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ─────────────────────────── Reveal on scroll ─────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 {
  transition-delay: 0.08s;
}

.reveal.d2 {
  transition-delay: 0.16s;
}

.reveal.d3 {
  transition-delay: 0.24s;
}

.reveal.d4 {
  transition-delay: 0.32s;
}

/* ─────────────────────────── Tweak overlay ─────────────────────────── */

body.glyph-off .hero-mark,
body.glyph-off .portrait .glyph,
body.glyph-off .principle .name .cn {
  display: none;
}