/* ============================================================
   Tutrix Learn — "Ink & Gold"
   Plain CSS, self-hosted fonts, no third-party requests.
   ============================================================ */

@font-face {
  font-family: 'Playfair';
  src: url('/assets/fonts/playfair.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('/assets/fonts/inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ink */
  --ink-950: #05090F;
  --ink-900: #0A111C;
  --ink-850: #0E1826;
  --ink-800: #132134;
  --ink-700: #1C2E47;
  --ink-600: #2A3F5C;

  /* cream / paper */
  --paper: #FBF8F3;
  --paper-2: #F4EEE4;
  --paper-3: #EBE2D3;

  /* gold */
  --gold-200: #F3E3BB;
  --gold-300: #E6CE92;
  --gold-400: #D4B25E;
  --gold-500: #BE9633;
  --gold-600: #9A7822;

  /* text */
  --on-dark: #EEF2F8;
  --on-dark-soft: #AFBDD1;
  --on-dark-faint: #7C8CA3;
  --on-light: #101A28;
  --on-light-soft: #4B5A6E;
  --on-light-faint: #6E7D91;

  --line-dark: rgba(255, 255, 255, 0.10);
  --line-light: rgba(16, 26, 40, 0.10);

  --serif: 'Playfair', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;

  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
::selection { background: var(--gold-300); color: var(--ink-900); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.15rem); font-weight: 500; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); font-weight: 500; }
h3 { font-family: var(--sans); font-size: 1.09rem; font-weight: 640; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0 0 1.05em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.small { font-size: 0.9rem; }
.muted { color: var(--on-light-soft); }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* gold rule under section titles */
.rule { width: 46px; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); border-radius: 2px; margin: 0 auto 22px; }
.rule.left { margin-left: 0; }

/* ============================================================ buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.97rem; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform 0.35s var(--e-out), box-shadow 0.35s var(--e-out), background 0.3s var(--e-soft), color 0.3s var(--e-soft), border-color 0.3s var(--e-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 60%, var(--gold-600));
  color: var(--ink-950);
  box-shadow: 0 10px 30px -8px rgba(190, 150, 51, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { box-shadow: 0 18px 44px -10px rgba(190, 150, 51, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
/* sheen sweep */
.btn-gold::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
}
.btn-gold:hover::after { transform: translateX(120%); transition: transform 0.75s var(--e-out); }

.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.btn-outline-light:hover { border-color: var(--gold-300); color: var(--gold-200); background: rgba(255, 255, 255, 0.04); }

.btn-ink { background: var(--ink-900); color: var(--on-dark); box-shadow: 0 10px 28px -10px rgba(10, 17, 28, 0.6); }
.btn-ink:hover { background: var(--ink-800); }

.btn-outline-dark { background: transparent; color: var(--on-light); border-color: var(--line-light); }
.btn-outline-dark:hover { border-color: var(--ink-900); background: rgba(16, 26, 40, 0.04); }

.btn-wa { background: #1FA855; color: #fff; box-shadow: 0 10px 28px -10px rgba(31, 168, 85, 0.6); }
.btn-wa:hover { background: #17904a; }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }

/* ============================================================ header */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--e-soft), border-color 0.4s var(--e-soft), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(10, 17, 28, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
/* on cream pages the bar is dark from the start */
body.light-top header.site { background: rgba(10, 17, 28, 0.95); border-bottom-color: var(--line-dark); }

.nav { display: flex; align-items: center; gap: 20px; height: 82px; transition: height 0.4s var(--e-soft); }
header.site.scrolled .nav { height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--on-dark); }
/* The mark is drawn navy-on-transparent with no dark-background variant, so it needs a light
   backing plate wherever the header sits on the dark theme, or the navy body vanishes into it. */
.brand-mark { width: 38px; height: 38px; flex: none; background: var(--paper); border-radius: 10px; padding: 4px; box-sizing: border-box; }
.brand-text { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap; }
.brand-text b { font-weight: 500; color: var(--gold-300); }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  position: relative; color: var(--on-dark-soft); text-decoration: none;
  font-size: 0.93rem; font-weight: 500; letter-spacing: 0.01em; padding: 6px 0;
  transition: color 0.25s var(--e-soft);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--e-out);
}
.nav-links a:hover { color: var(--gold-200); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none; margin-left: auto; background: transparent; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px; padding: 9px 11px;
}
.menu-btn span { display: block; width: 19px; height: 1.6px; background: var(--on-dark); margin: 4px 0; border-radius: 2px; transition: transform 0.35s var(--e-out), opacity 0.25s; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links, .nav-cta .desktop-only { display: none; }
  .nav { gap: 12px; }
  .menu-btn { margin-left: auto; order: 3; }
  .nav-cta { order: 2; margin-left: auto; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 17, 28, 0.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
    padding: 18px 24px 26px;
  }
  .nav-links.open a { font-size: 1.06rem; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
}

/* ============================================================ hero */
.hero {
  position: relative; overflow: hidden; background: var(--ink-900);
  padding: 178px 0 118px; color: var(--on-dark);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .mesh {
  position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(46% 42% at 18% 22%, rgba(190, 150, 51, 0.30), transparent 62%),
    radial-gradient(40% 44% at 82% 18%, rgba(42, 63, 92, 0.85), transparent 66%),
    radial-gradient(52% 48% at 62% 88%, rgba(190, 150, 51, 0.13), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 2%, 0) scale(1.07); }
}
/* fine grid + vignette */
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(72% 62% at 50% 38%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 38%, #000 30%, transparent 78%);
}
.hero-bg .fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 190px; background: linear-gradient(transparent, var(--paper)); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 64px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 46px; } .hero { padding: 140px 0 90px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 17px 8px 13px; border-radius: 999px;
  border: 1px solid rgba(230, 206, 146, 0.30); background: rgba(190, 150, 51, 0.10);
  color: var(--gold-200); font-size: 0.79rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300); flex: none; }
.pulse::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--gold-400); animation: ping 2.4s var(--e-out) infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.hero h1 { color: #fff; }
.hero h1 .accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-200), var(--gold-400) 55%, var(--gold-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.14rem; color: var(--on-dark-soft); max-width: 33em; }
.hero .lead strong { color: var(--on-dark); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }

.trust { display: flex; flex-wrap: wrap; gap: 11px 26px; }
.trust span { display: inline-flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--on-dark-faint); }
.trust svg { color: var(--gold-400); flex: none; }

/* hero board card */
.board-card {
  position: relative; border-radius: var(--r-lg); padding: 15px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 46px 90px -30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(7px);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
  animation: float 8s ease-in-out infinite alternate;
}
@keyframes float { from { transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg) translateY(0); } to { transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg) translateY(-14px); } }
@media (max-width: 1000px) { .board-card { transform: none; animation: none; } }

.board-top { display: flex; align-items: center; gap: 7px; padding: 4px 6px 13px; }
.board-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.board-top .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7BE6A8;
}
.board-top .live i { width: 6px; height: 6px; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.board {
  position: relative; border-radius: 16px; padding: 26px 28px 30px; min-height: 262px; overflow: hidden;
  background:
    repeating-linear-gradient(transparent, transparent 37px, rgba(16, 26, 40, 0.07) 37px, rgba(16, 26, 40, 0.07) 38px),
    #FEFDFB;
  color: var(--on-light);
}
.board .ln { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; margin-bottom: 9px; opacity: 0; }
.board .ln.s { padding-left: 30px; font-size: 1.22rem; color: var(--on-light-soft); }
.board .ln.ans { color: var(--gold-600); }
.js .board .ln { animation: write 0.62s var(--e-out) forwards; }
.js .board .ln:nth-child(1) { animation-delay: 0.5s; }
.js .board .ln:nth-child(2) { animation-delay: 1.15s; }
.js .board .ln:nth-child(3) { animation-delay: 1.75s; }
.js .board .ln:nth-child(4) { animation-delay: 2.4s; }
@keyframes write { from { opacity: 0; transform: translateX(-14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.board .curve { position: absolute; right: 20px; bottom: 16px; }
.board .curve path { stroke-dasharray: 240; stroke-dashoffset: 240; }
.js .board .curve path { animation: draw 1.5s var(--e-out) 2.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.board .curve circle { opacity: 0; }
.js .board .curve circle { animation: pop 0.5s var(--e-out) 4s forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

.board-foot { display: flex; align-items: center; gap: 10px; padding: 14px 6px 4px; font-size: 0.83rem; color: var(--on-dark-faint); }
.who-dots { display: flex; }
.who-dots span {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.63rem; font-weight: 700; color: var(--ink-900); border: 2px solid var(--ink-900);
}
.who-dots span:nth-child(1) { background: var(--gold-300); }
.who-dots span:nth-child(2) { background: #9DB8D8; margin-left: -9px; }

/* ============================================================ sections */
section { padding: 108px 0; position: relative; }
section.ink { background: var(--ink-900); color: var(--on-dark); }
section.ink h2 { color: #fff; }
section.paper { background: var(--paper); }
section.paper-2 { background: var(--paper-2); }

.sec-head { max-width: 700px; margin: 0 auto 62px; text-align: center; }
.sec-head p { color: var(--on-light-soft); font-size: 1.06rem; margin: 0; }
section.ink .sec-head p { color: var(--on-dark-soft); }
.kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 15px;
}
section.ink .kicker { color: var(--gold-300); }

/* ============================================================ cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--r); padding: 32px 28px 30px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 26, 40, 0.04);
  transition: transform 0.45s var(--e-out), box-shadow 0.45s var(--e-out), border-color 0.45s var(--e-out);
}
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--e-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(16, 26, 40, 0.35); border-color: rgba(190, 150, 51, 0.35); }
.card:hover::before { transform: scaleX(1); }
.card p { margin: 0; color: var(--on-light-soft); font-size: 0.97rem; }
.card h3 { margin-bottom: 9px; }

.i-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900)); color: var(--gold-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
section.ink .card { background: rgba(255, 255, 255, 0.035); border-color: var(--line-dark); }
section.ink .card p { color: var(--on-dark-soft); }
section.ink .card h3 { color: #fff; }
section.ink .i-badge { background: linear-gradient(150deg, rgba(190, 150, 51, 0.22), rgba(190, 150, 51, 0.06)); }

/* ============================================================ teacher */
.teachers { display: grid; gap: 64px; }
.teachers .teacher + .teacher { padding-top: 64px; border-top: 1px solid var(--line-dark); }
.teacher { display: grid; grid-template-columns: 370px 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .teacher { grid-template-columns: 1fr; gap: 36px; } }

.portrait-frame { position: relative; }
.portrait-frame::before {
  content: ''; position: absolute; inset: 15px -15px -15px 15px; border-radius: var(--r-lg);
  border: 1px solid var(--gold-500); opacity: 0.55;
}
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--ink-700), var(--ink-900) 55%, #060B13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.8);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono {
  font-family: var(--serif); font-size: 4.1rem; font-weight: 500; letter-spacing: 0.04em;
  background: linear-gradient(140deg, var(--gold-200), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.t-name { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: #fff; margin: 0 0 3px; line-height: 1.1; }
.t-role { color: var(--gold-300); font-size: 0.79rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 26px; }

.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.creds li { display: flex; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line-dark); }
.creds li:last-child { border-bottom: 1px solid var(--line-dark); }
.creds .no { font-family: var(--serif); font-size: 0.95rem; color: var(--gold-400); flex: none; width: 26px; padding-top: 2px; }
.creds b { display: block; color: #fff; font-weight: 600; font-size: 1rem; }
.creds span.d { color: var(--on-dark-soft); font-size: 0.94rem; }

.quote { position: relative; margin: 34px 0 0; padding: 30px 32px 30px 40px; border-radius: var(--r);
  background: linear-gradient(140deg, rgba(190, 150, 51, 0.12), rgba(190, 150, 51, 0.03));
  border: 1px solid rgba(230, 206, 146, 0.22); }
.quote::before {
  content: '"'; position: absolute; left: 14px; top: 4px; font-family: var(--serif);
  font-size: 4.4rem; line-height: 1; color: var(--gold-500); opacity: 0.5;
}
.quote p { font-family: var(--serif); font-size: 1.14rem; line-height: 1.62; color: var(--on-dark); font-style: italic; margin: 0 0 14px; }
.quote cite { font-style: normal; font-size: 0.83rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; }

/* ============================================================ subject blocks (Maths / Accountancy) */
.subject-block + .subject-block { margin-top: 56px; }
.subject-head { margin-bottom: 22px; }
.subject-kicker {
  display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--on-light); margin-bottom: 6px;
}
.subject-head p { color: var(--on-light-soft); font-size: 0.96rem; margin: 0; }

/* ============================================================ regions */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
@media (max-width: 940px) { .regions { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.region {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--r); padding: 32px 30px;
  transition: transform 0.45s var(--e-out), box-shadow 0.45s var(--e-out), border-color 0.45s var(--e-out);
}
.region:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(16, 26, 40, 0.32); border-color: rgba(190, 150, 51, 0.38); }
.region .code {
  display: inline-block; margin-bottom: 15px; padding: 5px 11px; border-radius: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--gold-600); background: rgba(190, 150, 51, 0.10); border: 1px solid rgba(190, 150, 51, 0.28);
}
.region h3 { font-family: var(--serif); font-size: 1.42rem; font-weight: 500; margin-bottom: 8px; }
.region > p { color: var(--on-light-soft); font-size: 0.96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 550;
  background: var(--paper-2); border: 1px solid var(--line-light); color: var(--on-light);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.region:hover .chip { background: rgba(190, 150, 51, 0.1); border-color: rgba(190, 150, 51, 0.35); color: var(--gold-600); }
.region .note { margin: 18px 0 0; font-size: 0.87rem; color: var(--on-light-faint); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 22px 4px; border-top: 1px solid var(--line-light); }
.fact svg { color: var(--gold-600); flex: none; margin-top: 3px; }
.fact b { display: block; font-size: 1rem; font-weight: 640; }
.fact span { color: var(--on-light-soft); font-size: 0.93rem; }

/* ============================================================ steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
@media (max-width: 940px) { .steps { grid-template-columns: 1fr 1fr; gap: 34px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 30px; } }
.step { position: relative; padding: 0 26px; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 27px; right: 0; width: 1px; height: calc(100% - 40px);
  background: linear-gradient(var(--line-dark), transparent);
}
@media (max-width: 940px) { .step::after { display: none; } .step { padding: 0; } }
.step .n {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--serif); font-size: 1.24rem; color: var(--gold-300);
  border: 1px solid rgba(230, 206, 146, 0.32); background: rgba(190, 150, 51, 0.08);
  transition: transform 0.5s var(--e-out), background 0.4s, box-shadow 0.4s;
}
.step:hover .n { transform: translateY(-4px) scale(1.06); background: rgba(190, 150, 51, 0.18); box-shadow: 0 12px 30px -12px rgba(190, 150, 51, 0.6); }
.step h3 { color: #fff; margin-bottom: 9px; }
.step p { color: var(--on-dark-soft); font-size: 0.95rem; margin: 0; }

/* ============================================================ slots band */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 74px 48px; text-align: center;
  background: linear-gradient(140deg, var(--ink-800), var(--ink-950));
  border: 1px solid rgba(230, 206, 146, 0.26);
  box-shadow: 0 40px 90px -40px rgba(5, 9, 15, 0.85);
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(48% 62% at 50% 0%, rgba(190, 150, 51, 0.30), transparent 68%);
}
.band > * { position: relative; }
.band h2 { color: #fff; }
.band p { color: var(--on-dark-soft); max-width: 54ch; margin: 0 auto 30px; }
@media (max-width: 640px) { .band { padding: 52px 26px; } }

/* ============================================================ faq */
.faq { max-width: 830px; margin: 0 auto; }
details.q {
  border-bottom: 1px solid var(--line-light); background: transparent;
  transition: background 0.3s var(--e-soft);
}
details.q summary {
  cursor: pointer; list-style: none; padding: 25px 8px; display: flex; gap: 20px;
  align-items: center; justify-content: space-between;
  font-size: 1.06rem; font-weight: 580; letter-spacing: -0.005em;
  transition: color 0.25s;
}
details.q summary:hover { color: var(--gold-600); }
details.q summary::-webkit-details-marker { display: none; }
details.q .sign { position: relative; width: 15px; height: 15px; flex: none; }
details.q .sign::before, details.q .sign::after {
  content: ''; position: absolute; background: var(--gold-600); border-radius: 2px;
  transition: transform 0.4s var(--e-out), opacity 0.3s;
}
details.q .sign::before { left: 0; top: 6.7px; width: 15px; height: 1.6px; }
details.q .sign::after { top: 0; left: 6.7px; width: 1.6px; height: 15px; }
details.q[open] .sign::after { transform: rotate(90deg); opacity: 0; }
details.q .a { padding: 0 46px 26px 8px; color: var(--on-light-soft); animation: fadeDown 0.42s var(--e-out); }
details.q .a p:last-child { margin-bottom: 0; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }

/* ============================================================ enquiry */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: start; }
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; gap: 36px; } }

form.enquiry {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 36px;
  box-shadow: 0 34px 74px -40px rgba(16, 26, 40, 0.4);
}
@media (max-width: 520px) { form.enquiry { padding: 26px 22px; } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label.f { display: block; margin-bottom: 18px; font-size: 0.79rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-light-faint); }
label.f .req { color: #C2410C; }
input, select, textarea {
  width: 100%; margin-top: 8px; padding: 13px 15px; font: inherit; font-size: 0.97rem;
  color: var(--on-light); background: var(--paper); border: 1px solid var(--line-light);
  border-radius: var(--r-sm); outline: none; text-transform: none; letter-spacing: normal;
  transition: border-color 0.25s var(--e-soft), box-shadow 0.25s var(--e-soft), background 0.25s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-400); background: #fff; box-shadow: 0 0 0 4px rgba(190, 150, 51, 0.14); }
textarea { resize: vertical; min-height: 104px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 0.86rem; color: var(--on-light-faint); text-transform: none; letter-spacing: normal; font-weight: 400; }
.consent input { width: auto; margin: 4px 0 0; flex: none; accent-color: var(--gold-500); }
.form-msg { display: none; border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.93rem; margin-bottom: 18px; }
.form-msg.ok { display: block; background: #ECFDF3; border: 1px solid #A6E9C3; color: #05603A; }
.form-msg.err { display: block; background: #FEF3F2; border: 1px solid #FBD3CE; color: #912018; }

.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 6px; }
.contact-list li { display: flex; gap: 17px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-light); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-light); }
.c-ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--ink-900); color: var(--gold-300); }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 1rem; transition: color 0.25s; }
.contact-list a:hover { color: var(--gold-600); }
.contact-list .sub { display: block; font-size: 0.85rem; color: var(--on-light-faint); font-weight: 400; }
.next-card { margin-top: 28px; padding: 26px 28px; border-radius: var(--r); background: var(--ink-900); color: var(--on-dark-soft); }
.next-card h3 { color: #fff; margin-bottom: 10px; }
.next-card p { margin: 0; font-size: 0.95rem; }

/* ============================================================ footer */
footer.site { background: var(--ink-950); color: var(--on-dark-faint); padding: 78px 0 34px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 46px; }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr; gap: 34px; } }
footer.site h4 { color: var(--gold-300); font-size: 0.73rem; letter-spacing: 0.17em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; font-family: var(--sans); }
footer.site a { color: var(--on-dark-soft); text-decoration: none; display: block; margin-bottom: 12px; font-size: 0.95rem; transition: color 0.25s, transform 0.25s var(--e-out); }
footer.site a:hover { color: var(--gold-200); transform: translateX(3px); }
footer.site p { font-size: 0.95rem; line-height: 1.75; }
.f-fine {
  border-top: 1px solid var(--line-dark); margin-top: 52px; padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.86rem;
}
.f-fine a { display: inline; margin: 0; }
.f-fine .inline a { display: inline-block; margin-left: 18px; }

/* ============================================================ legal pages */
.legal { max-width: 800px; margin: 0 auto; padding: 148px 0 92px; }
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
.legal h2 { font-size: 1.32rem; margin-top: 44px; font-family: var(--sans); font-weight: 640; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--on-light-soft); }
.legal ul { padding-left: 24px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }
.legal .stamp { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-light-faint); }

/* ============================================================ reveal */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.85s var(--e-out), transform 0.85s var(--e-out); }
.js .reveal.d1.in { transition-delay: 0.09s; }
.js .reveal.d2.in { transition-delay: 0.18s; }
.js .reveal.d3.in { transition-delay: 0.27s; }
.js .reveal.d4.in { transition-delay: 0.36s; }
.js .reveal.d5.in { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .board .ln { opacity: 1; }
  .js .board .curve path { stroke-dashoffset: 0; }
  .js .board .curve circle { opacity: 1; }
}

/* very narrow phones: keep the header on one line */
@media (max-width: 420px) {
  .brand-text { font-size: 1.1rem; }
  .brand-mark { width: 32px; height: 32px; padding: 3px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.8rem; }
}

/* founder biography paragraph */
.t-bio {
  font-size: 1.06rem; line-height: 1.85; color: var(--on-dark-soft);
  padding-top: 22px; border-top: 1px solid var(--line-dark); margin: 0;
}

/* keyboard users: jump straight past the navigation */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-400); color: var(--ink-950); padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 650; text-decoration: none;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }
