/* ==========================================================================
   Kinasih Global — main stylesheet
   Brand: docs/reference/01-brand-guidelines.md, 02-font-style.md
   Square corners everywhere. Gold is an accent only (about 10%).
   ========================================================================== */

:root {
  /* Colour palette */
  --navy: #1B2233;
  --navy-2: #232B3F;       /* hover tone for navy surfaces */
  --ink: #1E2230;
  --ivory: #F8F4EE;
  --stone: #EFE7DC;
  --gold: #8A6A3E;
  --gold-light: #C9A876;
  --soft: #4D5260;
  --mist: #D9D2C6;
  --frame: #FFFDF9;
  --error: #F2B8A8;

  --ivory-82: rgba(248, 244, 238, .82);
  --ivory-60: rgba(248, 244, 238, .6);
  --gold-line: rgba(138, 106, 62, .45);
  --gold-light-35: rgba(201, 168, 118, .35);

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, Helvetica, sans-serif;

  --fs-h1: clamp(2.5rem, 1.5rem + 4vw, 4rem);           /* 40 → 64 */
  --fs-h2: clamp(2rem, 1.45rem + 2vw, 2.75rem);          /* 32 → 44 */
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.625rem);     /* 22 → 26 */
  --fs-quote: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);    /* 28 → 40 */
  --fs-hook: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);      /* 20 → 24 */
  --fs-num: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);      /* 20 → 24 */
  --fs-eyebrow: clamp(.75rem, .72rem + .12vw, .8125rem); /* 12 → 13 */
  --fs-body: clamp(1rem, .94rem + .25vw, 1.125rem);      /* 16 → 18 */
  --fs-lead: clamp(1.0625rem, .98rem + .4vw, 1.25rem);   /* 17 → 20 */
  --fs-small: clamp(.8125rem, .79rem + .1vw, .875rem);   /* 13 → 14 */
  --fs-for: clamp(.875rem, .85rem + .1vw, .9375rem);     /* 14 → 15 */

  /* Layout */
  --gutter: clamp(24px, 5vw, 64px);
  --frame-inset: clamp(8px, 1.8vw, 24px);
  --max: 1200px;
  --header-h: 76px;
  --space-section: clamp(88px, 10vw, 144px);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.45, 0, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--soft);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.is-locked, html.is-locked body { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, blockquote {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3, h4 { font-size: var(--fs-h3); line-height: 1.2; }
em, cite { font-style: italic; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero :focus-visible,
.site-header :focus-visible,
.mobile-menu :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible,
.to-top:focus-visible { outline-color: var(--gold-light); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px;
  background: var(--ivory); color: var(--navy);
  font: 500 14px/1 var(--sans); letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Shared type pieces ---------- */
.eyebrow {
  display: block;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.rule {
  width: 64px;
  height: 0;
  margin: 28px 0;
  border: 0;
  border-top: 2px solid var(--gold);
  transform-origin: left center;
}

.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 640px; }
.prose p { max-width: 640px; }

.num {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-num);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

.for {
  font-size: var(--fs-for);
  font-style: italic;
  line-height: 1.5;
  color: var(--gold);
}

.note {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.5;
  color: var(--soft);
}

.caption-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.center { text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 32px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .55s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }

.btn--light { color: var(--navy); background: var(--ivory); border-color: var(--ivory); }
.btn--light::after { background: var(--gold); }
.btn--light:hover { background: var(--frame); border-color: var(--frame); }

.btn--ghost { color: var(--ivory); background: transparent; border-color: rgba(201, 168, 118, .6); }
.btn--ghost:hover { background: rgba(201, 168, 118, .08); border-color: var(--gold-light); }

.text-link,
.programme__cta {
  display: inline-block;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 28px 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.text-link:hover, .text-link:focus-visible,
.programme__cta:hover, .programme__cta:focus-visible { background-size: 100% 1px; color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ivory);
  transition: transform .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(27, 34, 51, .97);
  box-shadow: 0 1px 0 rgba(201, 168, 118, .18);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(27, 34, 51, .9); backdrop-filter: blur(10px); }
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: transform .5s var(--ease);
}
.site-header:not(.is-scrolled):not(.is-menu-open) .site-header__bar { transform: translateY(var(--frame-inset)); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
  text-decoration: none;
}
.kg { width: 40px; height: 34px; overflow: visible; }
.kg__k { fill: var(--kg-k, var(--ivory)); }
.kg__g { fill: var(--kg-g, var(--gold-light)); }
.brand__name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.site-nav__list {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 12px 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-82);
  transition: color .3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ivory); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left center; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 0 0 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory);
}
.menu-toggle__icon { position: relative; width: 26px; height: 10px; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: var(--gold-light);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 4.5px; transform: rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--gold-light);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  background: var(--navy);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__list li {
  border-bottom: 1px solid rgba(201, 168, 118, .18);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; }
.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.5rem + 2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ivory);
}
.mobile-menu__foot {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ivory-60);
}
.mobile-menu__foot a { color: var(--gold-light); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--frame-inset) + 40px) 0 104px;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(55% 60% at 78% 42%, rgba(201, 168, 118, .09), transparent 70%),
    var(--navy);
}
.hero__frame {
  position: absolute;
  inset: var(--frame-inset);
  z-index: -1;
  pointer-events: none;
}
.hero__frame span { position: absolute; background: rgba(201, 168, 118, .42); }
.hero__frame span:nth-child(1) { top: 0; left: 0; right: 0; height: 1px; transform-origin: left center; }
.hero__frame span:nth-child(2) { top: 0; right: 0; bottom: 0; width: 1px; transform-origin: center top; }
.hero__frame span:nth-child(3) { bottom: 0; left: 0; right: 0; height: 1px; transform-origin: right center; }
.hero__frame span:nth-child(4) { top: 0; left: 0; bottom: 0; width: 1px; transform-origin: center bottom; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__title { color: var(--ivory); font-size: var(--fs-h1); line-height: 1.05; }
.hero__title .hero__eyebrow { margin-bottom: 28px; color: var(--gold-light); }
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero__title .line > span { display: block; }

.hook {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: var(--fs-hook);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gold-light);
}
.hero .rule { margin: 32px 0; border-color: var(--gold-light); }
.hero__sub { max-width: 34em; color: var(--ivory-82); font-size: var(--fs-lead); line-height: 1.55; }
.hero__byline {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
  margin: 0 22px 22px 0;
}
.hero__photo { position: relative; z-index: 1; overflow: hidden; background: var(--navy-2); }
.hero__photo picture { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }
.hero__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero__offset {
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: 0;
  border: 1px solid var(--gold-light);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 4vw, 44px);
  width: 24px;
  height: 52px;
  margin-left: -12px;
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-light) 50%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll span { animation: scroll-cue 2.4s var(--ease) infinite; }
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--space-section); }
.section--ivory { background: var(--ivory); }
.section--stone {
  background: var(--stone);
  /* Brand gold (#8A6A3E) is 4.07:1 on stone; this near-identical shade reaches
     4.62:1 so small labels and captions meet WCAG AA. */
  --gold: #7F6239;
}
.section--navy { color: var(--ivory-82); background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--ivory); }
.section--navy .eyebrow { color: var(--gold-light); }
.section--navy .rule { border-color: var(--gold-light); }

.section--ruled { padding-top: 0; }
.section--ruled > .wrap { padding-top: var(--space-section); border-top: 1px solid var(--mist); }

.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { max-width: 22em; }
.section-head .lead { margin-top: -4px; }

/* About + Why */
.about { max-width: 980px; }
.statement {
  margin: 0;
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
}
.why { margin-top: clamp(96px, 12vw, 160px); }
.why .section-head h2 { max-width: 18em; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.why__item h3 { margin-bottom: 12px; }
.why__item p { font-size: 16.5px; line-height: 1.6; }

/* Founder */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.founder__role {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.creds { margin: 0; padding: 0; list-style: none; }
.cred { position: relative; padding: 20px 0 22px; }
.cred::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-line);
  transform-origin: left center;
}
.cred:last-child { padding-bottom: 0; }
.cred p { margin: 0; }
.cred__label {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gold);
}
.cred .cred__title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.cred .cred__detail { margin-top: 6px; font-size: 15px; line-height: 1.55; }

/* Framed photos (brand frame: 10px white mat, 1px light-gold border, soft shadow, square) */
.framed { margin: 0; }
.frame {
  position: relative;
  display: block;
  padding: 10px;
  background: var(--frame);
  border: 1px solid var(--gold-light);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(27, 34, 51, .10);
}
.frame picture { overflow: hidden; }
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.framed figcaption {
  margin-top: 18px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--soft);
}

.frame--button {
  width: 100%;
  margin: 0;
  text-align: inherit;
  cursor: zoom-in;
  appearance: none;
}
.frame--button::after {
  /* enlarge indicator */
  content: "";
  position: absolute;
  right: 20px; bottom: 20px;
  width: 38px; height: 38px;
  background:
    linear-gradient(var(--ivory), var(--ivory)) center / 14px 1px no-repeat,
    linear-gradient(var(--ivory), var(--ivory)) center / 1px 14px no-repeat,
    rgba(27, 34, 51, .82);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.frame--button:hover::after,
.frame--button:focus-visible::after { opacity: 1; transform: none; }
.frame--button:hover img,
.frame--button:focus-visible img,
.journey .framed:hover img { transform: scale(1.04); }

/* Journey */
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Philosophy */
.philosophy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.quote { margin: 8px 0 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  max-width: 13em;
  font-family: var(--serif);
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ivory);
  text-wrap: balance;
}
.quote__by {
  margin-top: 24px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.philosophy .rule { margin-top: 32px; }
.philosophy__body { max-width: 34em; }
.philosophy__media { margin: 0; justify-self: end; width: min(100%, 460px); }
.frame--line {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .35);
}
.frame--line::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 168, 118, .85);
  pointer-events: none;
}
.frame--line img { aspect-ratio: auto; }

.w { display: inline-block; }

/* Story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.story__head { position: sticky; top: calc(var(--header-h) + 40px); }
.story__title { font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); line-height: 1.02; }
.story__byline {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.story__body p { margin-bottom: 1.2em; }
.story__close { color: var(--gold); }

/* Path (approach + engagement) */
.path { position: relative; --p: 0; }
.path__track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--mist);
}
.path__fill {
  position: absolute;
  top: -.5px; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(var(--p));
  transform-origin: left center;
}
.path__steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.path__steps--5 { --n: 5; }
.path__steps--6 { --n: 6; }
.path__step { position: relative; padding-top: 30px; }
.path__step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: background-color .5s var(--ease);
}
.path__step.is-reached::before { background: var(--gold); }
.path__step .num { margin-bottom: 14px; }
.path__step h3 { margin-bottom: 10px; }
.path__step p { font-size: 15.5px; line-height: 1.55; }

/* Services */
.services__group {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  font-style: italic;
}
.services__grid + .services__group { margin-top: clamp(64px, 8vw, 96px); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}
.service {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
}
.service h4 { margin: 14px 0 12px; }
.service p { font-size: 16px; line-height: 1.6; }
.service .for { margin-top: auto; padding-top: 8px; font-size: var(--fs-for); }

.advisory {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 40px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 88px);
  padding: 28px clamp(24px, 3vw, 36px);
  background: var(--frame);
  border: 1px solid var(--gold-light);
}
.advisory__label {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.advisory p { margin: 0; font-size: 16px; }

/* Programmes */
.programmes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.programmes__head .note { max-width: 22em; margin: 0 0 28px; text-align: right; }
.programmes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.programme {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--frame);
  border: 1px solid var(--gold-light);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.programme:hover, .programme:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(27, 34, 51, .10);
}
.programme h3 { margin: 14px 0 12px; }
.programme p { font-size: 15.5px; line-height: 1.6; }
.programme .for { margin-top: auto; padding-top: 12px; }
.programme__cta { align-self: flex-start; margin-top: 18px; }
.programmes + .center { margin-top: clamp(48px, 6vw, 72px); }

/* Training */
.training {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.training__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.training__intro .note { margin-top: 20px; }
.gallery, .featured__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.featured { margin-top: clamp(88px, 11vw, 144px); }
.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.featured__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); line-height: 1.12; }
.featured__head .note { max-width: 22em; margin: 0; text-align: right; }

/* Engagement */
.howto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--mist);
}
.howto .eyebrow { margin-bottom: 12px; }
.howto p { max-width: 34em; font-size: 16.5px; }

/* Ebook */
.ebook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.ebook__title { font-size: clamp(3.5rem, 2.2rem + 5.5vw, 7rem); line-height: .95; }
.ebook__body .rule { margin-top: 0; }
.ebook__body .lead { margin-bottom: 32px; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.contact h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.08; }
.contact__details { display: grid; gap: 28px; margin: 0; }
.contact__details .eyebrow { margin-bottom: 8px; }
.contact__details dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  font-size: 18px;
  color: var(--ivory);
}
.contact__details a,
.contact__socials a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 118, .5);
  transition: border-color .3s, color .3s;
}
.contact__details a:hover, .contact__socials a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.contact__socials { display: inline-flex; gap: 16px; font-size: 15px; }
.copy-btn {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--gold-light-35);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.copy-btn:hover { border-color: var(--gold-light); background: rgba(201, 168, 118, .08); }
.copy-status { font-size: 13px; color: var(--gold-light); }

/* Enquiry form */
.enquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  padding: clamp(24px, 3.5vw, 44px);
  background: rgba(255, 253, 249, .03);
  border: 1px solid var(--gold-light-35);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(248, 244, 238, .28);
  border-radius: 0;
  transition: border-color .3s, box-shadow .3s, background-color .6s;
}
.field select {
  appearance: none;
  padding-right: 28px;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A876' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.field select option, .field select optgroup { color: var(--ink); background: var(--ivory); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-light);
  box-shadow: 0 1px 0 var(--gold-light);
}
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field__error { margin: 0; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.field.is-flash select { background-color: rgba(201, 168, 118, .16); }

.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.enquiry__hint { max-width: 26em; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ivory-60); }
.enquiry__status { margin: 0; font-size: 15px; color: var(--ivory); }
.enquiry__status:empty { display: none; }
.enquiry__status:not(:empty) { padding-left: 14px; border-left: 2px solid var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 32px;
  color: rgba(248, 244, 238, .72);
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 118, .18);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
}
.brand--stacked { flex-direction: column; align-items: flex-start; gap: 16px; }
.brand--stacked .kg { width: 57px; height: 48px; }
.site-footer__about { max-width: 640px; margin-top: 28px; font-size: 15px; line-height: 1.65; }
.site-footer__about strong { margin-right: 4px; font-weight: 500; color: var(--gold-light); }
.site-footer__line { font-size: 13px; color: var(--ivory-60); }
.site-footer__nav { display: flex; justify-content: flex-end; gap: clamp(32px, 5vw, 64px); }
.site-footer__nav ul { display: grid; gap: 12px; align-content: start; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-82);
  transition: color .3s;
}
.site-footer__nav a:hover { color: var(--gold-light); }
.site-footer__base {
  margin-top: 56px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(248, 244, 238, .55);
  border-top: 1px solid rgba(201, 168, 118, .15);
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border: 1px solid rgba(201, 168, 118, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out), visibility 0s linear .4s, border-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--gold-light); }
.to-top span {
  width: 10px; height: 10px;
  margin-top: 5px;
  border-top: 1px solid var(--gold-light);
  border-left: 1px solid var(--gold-light);
  transform: rotate(45deg);
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--ivory);
  background: transparent;
  border: 0;
}
.lightbox::backdrop { background: rgba(27, 34, 51, .94); }
.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 72px 20px 28px;
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1000px, 100%);
  margin: 0;
}
.lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 240px);
  max-height: calc(100dvh - 240px);
  padding: 10px;
  background: var(--frame);
  border: 1px solid var(--gold-light);
}
.lightbox__figure figcaption { margin-top: 18px; font-size: 15px; text-align: center; color: var(--ivory-82); }
.lightbox__figure .caption-label { color: var(--gold-light); }
.lightbox__controls { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.lightbox__count { min-width: 4em; font-size: 13px; letter-spacing: .12em; text-align: center; color: var(--ivory-60); }
.lightbox__btn,
.lightbox__close {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--gold-light-35);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.lightbox__btn:hover, .lightbox__close:hover { border-color: var(--gold-light); background: rgba(201, 168, 118, .08); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__figure { animation: lb-in .5s var(--ease-out); }
  .lightbox__figure.is-switching { animation: lb-switch .45s var(--ease-out); }
}
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lb-switch { from { opacity: .2; } to { opacity: 1; } }

/* ==========================================================================
   Motion: initial states exist only when JS runs and the visitor has not
   asked for reduced motion. Without JS everything is simply visible.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero opening sequence (html.is-ready is set once fonts are ready) */
  html.js .hero__frame span { transition: transform .9s var(--ease); }
  html.js .hero__frame span:nth-child(odd) { transform: scaleX(0); }
  html.js .hero__frame span:nth-child(even) { transform: scaleY(0); }
  html.js.is-ready .hero__frame span { transform: none; }
  html.js.is-ready .hero__frame span:nth-child(2) { transition-delay: .3s; }
  html.js.is-ready .hero__frame span:nth-child(3) { transition-delay: .6s; }
  html.js.is-ready .hero__frame span:nth-child(4) { transition-delay: .9s; }

  html.js [data-hero] { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
  html.js [data-hero="1"],
  html.js [data-hero="4"],
  html.js [data-hero="6"],
  html.js [data-hero="7"] { opacity: 0; transform: translateY(14px); }
  html.js .line > [data-hero] { transform: translateY(108%); }
  html.js .rule[data-hero] { transform: scaleX(0); }
  html.js.is-ready [data-hero] { opacity: 1; transform: none; }
  html.js.is-ready [data-hero="1"] { transition-delay: .1s; }
  html.js.is-ready [data-hero="2"] { transition-delay: .25s; }
  html.js.is-ready [data-hero="3"] { transition-delay: .4s; }
  html.js.is-ready [data-hero="4"] { transition-delay: .7s; }
  html.js.is-ready [data-hero="5"] { transition-delay: .85s; }
  html.js.is-ready [data-hero="6"] { transition-delay: .95s; }
  html.js.is-ready [data-hero="7"] { transition-delay: 1.1s; }

  html.js [data-hero="photo"] .hero__photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease) .2s; }
  html.js [data-hero="photo"] .hero__photo img { transform: scale(1.14); transition: transform 1.9s var(--ease-out) .2s; }
  html.js [data-hero="photo"] .hero__offset { opacity: 0; transform: translate(-22px, -22px); transition: opacity 1s var(--ease) .9s, transform 1.3s var(--ease-out) .9s; }
  html.js.is-ready [data-hero="photo"] .hero__photo { clip-path: inset(0 0 0 0); }
  html.js.is-ready [data-hero="photo"] .hero__photo img { transform: none; }
  html.js.is-ready [data-hero="photo"] .hero__offset { opacity: 1; transform: none; }

  /* Scroll reveals (html.reveal-on is set by main.js, so a failed script never hides content) */
  html.reveal-on [data-reveal],
  html.reveal-on [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  }
  html.reveal-on [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 110ms); }
  html.reveal-on [data-reveal].is-visible,
  html.reveal-on [data-reveal-group].is-visible > * { opacity: 1; transform: none; }

  html.reveal-on [data-reveal] .rule { transform: scaleX(0); transition: transform 1.1s var(--ease-out) .3s; }
  html.reveal-on [data-reveal].is-visible .rule { transform: none; }

  html.reveal-on .creds .cred::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + .2s); }
  html.reveal-on .creds.is-visible .cred::before { transform: none; }

  /* Philosophy quote, word by word */
  html.reveal-on [data-words] .w {
    opacity: 0;
    transform: translateY(.3em);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 75ms);
  }
  html.reveal-on [data-words].is-visible .w { opacity: 1; transform: none; }

  .mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: .05s; }
  .mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: .1s; }
  .mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: .15s; }
  .mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: .2s; }
  .mobile-menu.is-open .mobile-menu__list li:nth-child(6) { transition-delay: .25s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero__photo picture { transform: none; }
  .path__fill { transform: none !important; }
  .path__step::before { background: var(--gold); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav__list { gap: 20px; }
  .site-nav a { font-size: 12px; letter-spacing: .12em; }
}

@media (max-width: 959px) {
  :root { --header-h: 68px; }

  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero { padding-bottom: 96px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__media { justify-self: start; width: min(78%, 360px); }
  .hero__scroll { display: none; }

  .founder,
  .philosophy__grid,
  .story,
  .training,
  .contact__grid,
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }

  .story__head, .training__intro { position: static; }
  .philosophy__media { justify-self: start; }

  .services__grid, .programmes { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__nav { justify-content: flex-start; }

  /* Paths become vertical */
  .path__track { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .path__fill { top: 0; left: -.5px; width: 2px; height: 100%; transform: scaleY(var(--p)); transform-origin: center top; }
  .path__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path__step { padding: 0 0 36px 40px; }
  .path__step:last-child { padding-bottom: 0; }
  .path__step::before { top: 5px; left: 0; }
  .path__step .num { margin-bottom: 10px; }
  .path__step p { max-width: 34em; }
}

@media (max-width: 819px) {
  .why__grid, .journey, .howto, .ebook { grid-template-columns: minmax(0, 1fr); }
  .journey .framed { max-width: 560px; }
  .programmes__head, .featured__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .programmes__head .note, .featured__head .note { margin: 0; text-align: left; }
  .featured__head .note { margin-top: 12px; }
  .advisory { grid-template-columns: minmax(0, 1fr); }
  .ebook { align-items: start; }
}

@media (max-width: 639px) {
  .services__grid, .programmes, .gallery, .featured__photos { grid-template-columns: minmax(0, 1fr); }
  .programme { min-height: 0; }
  .enquiry { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { width: min(82%, 340px); }
  .brand__name { font-size: 11px; letter-spacing: .24em; }
  .site-footer__nav { flex-direction: column; gap: 28px; }
  .lightbox__controls { gap: 12px; }
}

@media (max-width: 379px) {
  .brand__name { display: none; }
}

@media print {
  .site-header, .mobile-menu, .to-top, .hero__scroll, .lightbox, .enquiry { display: none !important; }
  .hero, .section--navy, .site-footer { color: #000; background: #fff; }
  .hero__title, .section--navy h2, .quote blockquote p { color: #000; }
}

/* ---------- 404 page ---------- */
.hero--plain { padding-top: 96px; }
.hero__eyebrow-404 { margin-top: 56px; color: var(--gold-light); }
