/* ==========================================================
   Pramahira Ventures LLP — Profile Website (v2)
   Typeface: Lato  |  Palette drawn from the PMR mark
   Light + dark themes via [data-theme] on <html>
   ========================================================== */

:root {
  /* Brand constants */
  --plum: #5c2088;
  --plum-deep: #45166a;
  --plum-bright: #7a3bb0;
  --lavender: #c4a8e6;
  --tan: #b39a7c;
  --night: #1f1d1c;

  /* Semantic tokens — light */
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3eef8;      /* lavender mist band */
  --surface-3: #efe7dc;      /* tan band */
  --text: #1f1d1c;
  --text-2: #3a3634;
  --muted: #67615b;
  --line: #e4ddd3;
  --accent: #5c2088;         /* accent used for text/lines */
  --field: #faf8f5;
  --field-line: #d8cfc3;
  --header-bg: rgba(250, 248, 245, 0.92);
  --shadow: 0 30px 60px -30px rgba(31, 29, 28, 0.35);

  /* Type */
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);
  --fs-small: 0.875rem;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 84px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141212;
  --surface: #1c1a19;
  --surface-2: #1c1622;
  --surface-3: #1f1b17;
  --text: #efe9e2;
  --text-2: #d6cfc7;
  --muted: #a39b93;
  --line: #2f2b29;
  --accent: #c4a8e6;
  --field: #141212;
  --field-line: #3a3532;
  --header-bg: rgba(20, 18, 18, 0.9);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-weight: 700; letter-spacing: 0; line-height: 1.3; font-size: var(--fs-h3); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--plum); color: #fff; padding: .75rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); font-weight: 300; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.75rem;
  font: 700 .9375rem/1 var(--font); letter-spacing: .02em;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-bright); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--night); border-color: #fff; }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--lavender); }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

/* ==========================================================
   Header (sticky)
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: height .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.25rem; }

.brand { display: block; flex-shrink: 0; position: relative; margin-right: auto; }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease), opacity .3s var(--ease); }
.brand .logo-light { position: absolute; inset: 0; opacity: 0; }
:root[data-theme="dark"] .brand .logo-dark { opacity: 0; }
:root[data-theme="dark"] .brand .logo-light { opacity: 1; }

/* Transparent header over hero media */
.has-hero .site-header:not(.is-scrolled) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.has-hero .site-header:not(.is-scrolled) .logo-dark { opacity: 0; }
.has-hero .site-header:not(.is-scrolled) .logo-light { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .nav-link,
.has-hero .site-header:not(.is-scrolled) .theme-toggle { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .theme-toggle { border-color: rgba(255,255,255,.45); }
.has-hero .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.has-hero .site-header:not(.is-scrolled) .nav-link::after { background: var(--lavender); }

.site-header.is-scrolled { height: 68px; }
.site-header.is-scrolled .brand img { height: 38px; }

.nav-list { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); list-style: none; }
.nav-link {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .9375rem; letter-spacing: .01em; color: var(--text); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { font-weight: 700; }
.nav-cta .btn { min-height: 42px; padding: 0 1.25rem; font-size: .875rem; }

/* Theme toggle */
.theme-toggle {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  transition: color .25s, border-color .25s, background-color .25s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.has-hero .site-header:not(.is-scrolled) .theme-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle:active { transform: rotate(40deg); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

/* ==========================================================
   Home hero — background video
   ========================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--night) center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,16,24,.6) 0%, rgba(20,16,24,.2) 38%, rgba(20,16,24,.85) 100%),
    linear-gradient(90deg, rgba(40,14,60,.65) 0%, rgba(40,14,60,0) 65%);
}
.hero-inner { padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(5rem, 12vh, 8rem); position: relative; z-index: 1; }
.hero h1 { font-size: var(--fs-h1); font-weight: 300; }
.hero h1 .line { display: block; }
.hero-sub { margin-top: 1.5rem; max-width: 46ch; font-size: var(--fs-lead); font-weight: 300; color: rgba(255,255,255,.88); }
.hero .btn-row { margin-top: 2.5rem; }
.hero-swash { position: absolute; right: -4%; bottom: -2px; width: min(62vw, 860px); height: auto; z-index: 0; pointer-events: none; }

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 2rem; z-index: 2;
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--fs-small); color: rgba(255,255,255,.75); text-decoration: none;
}
.hero-scroll i { display: block; width: 1px; height: 44px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.reveal-line { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.reveal-line:nth-child(2) { animation-delay: .12s; }
.hero-sub.reveal-line, .page-hero .lead.reveal-line { animation-delay: .35s; }
.hero .btn-row.reveal-line { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================
   Inner-page hero — photographic
   ========================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  min-height: clamp(460px, 68vh, 640px); display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: var(--night) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,16,24,.55) 0%, rgba(20,16,24,.35) 40%, rgba(20,16,24,.88) 100%),
    linear-gradient(90deg, rgba(40,14,60,.6) 0%, rgba(40,14,60,0) 70%);
}
.page-hero .crumb { font-size: var(--fs-small); color: rgba(255,255,255,.75); margin-bottom: 1.25rem; }
.page-hero .crumb a { text-decoration: none; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1.5rem; max-width: 54ch; color: rgba(255,255,255,.85); }
.page-hero .hero-swash { width: min(48vw, 640px); opacity: .9; }

/* ==========================================================
   Shared section patterns
   ========================================================== */
.section-head { max-width: 42ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 1.25rem; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { font-size: var(--fs-h2); }
.body { color: var(--text-2); }
.body p { max-width: 62ch; }

.band-mist { background: var(--surface-2); }
.band-tan { background: var(--surface-3); }
.band-surface { background: var(--surface); }
.band-night { background: var(--night); color: #efe9e2; }
:root[data-theme="dark"] .band-night { background: #0e0c0c; }
.band-night .lead, .band-night .body { color: rgba(239,233,226,.78); }

/* Media frames */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.04); }

/* Intro collage */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.collage { position: relative; padding: 0 12% 14% 0; }
.collage .frame--main { aspect-ratio: 4 / 5; }
.collage .frame--small {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1;
  border: 8px solid var(--bg);
}
.collage::before {
  content: ""; position: absolute; left: -22px; top: -22px; width: 55%; height: 55%;
  border: 1.5px solid var(--tan); border-radius: var(--radius-lg); z-index: -1;
}
.intro h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }

/* Purpose — full-bleed image with the big question */
.purpose {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: clamp(6rem, 14vw, 11rem) 0;
  background: var(--night) center / cover no-repeat;
}
.purpose::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(40,14,60,.88) 0%, rgba(31,29,28,.55) 60%, rgba(31,29,28,.3) 100%); }
.purpose .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.purpose h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.purpose .body { color: rgba(255,255,255,.85); }
.purpose-q {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 300; font-style: italic;
  line-height: 1.18; color: #fff; padding-left: 1.5rem; border-left: 2px solid var(--lavender); margin: 0;
}

/* Pillars with icons */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pillar:hover { border-color: var(--accent); transform: translateY(-4px); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); margin-bottom: 1.5rem;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--muted); font-size: 1rem; }

/* Featured venture */
.venture { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.venture-panel {
  position: relative; background: var(--plum); color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; overflow: hidden;
}
.venture-panel::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03);
}
.venture-name { font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: var(--lavender); }
.venture-tagline { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 300; font-style: italic; line-height: 1.12; max-width: 12ch; position: relative; z-index: 1; }
.venture-kits { display: flex; gap: .5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.chip { display: inline-block; padding: .4rem .9rem; border-radius: 999px; font-size: var(--fs-small); border: 1px solid rgba(255,255,255,.4); }
.venture-body { padding: clamp(2.5rem, 5vw, 4.5rem); }
.venture-body h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 1.25rem; }
.venture-body p { color: var(--text-2); }
.venture-body .btn { margin-top: 1.25rem; }

/* Image + text split (ambition, story, etc.) */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.media-split .frame { aspect-ratio: 5 / 4; }
.media-split--flip .frame { order: 2; }
.media-split h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }

/* Callout with image */
.callout {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg); padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 6vw, 5.5rem);
  background: var(--night) center / cover no-repeat;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: end;
}
.callout::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(40,14,60,.92) 0%, rgba(40,14,60,.7) 45%, rgba(31,29,28,.35) 100%); }
.callout h2 { font-size: var(--fs-h2); max-width: 20ch; }
.callout p { color: rgba(255,255,255,.85); margin-top: 1.25rem; max-width: 52ch; }
.callout .btn-row { justify-content: flex-end; }

/* ---------- About ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; }
.vm-item { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem); }
.vm-item + .vm-item { border-left: 1px solid var(--line); }
.vm-item h2 { font-size: 1rem; font-weight: 700; letter-spacing: .03em; color: var(--accent); margin-bottom: 1rem; }
.vm-item p { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.875rem); font-weight: 300; line-height: 1.35; }

.promise { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 6vw, 5rem); }
.promise li { position: relative; padding: 1.25rem 0 1.25rem 2rem; border-bottom: 1px solid var(--line); }
.promise li::before { content: ""; position: absolute; left: 0; top: 1.95rem; width: 14px; height: 2px; background: var(--accent); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.value h3 { margin-bottom: .6rem; }
.value p { color: var(--muted); font-size: 1rem; }

/* ---------- Approach (sequence — numbered) ---------- */
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.step {
  counter-increment: step; display: grid; grid-template-columns: 110px 1fr 1.3fr; gap: 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.step::before { content: counter(step); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 300; line-height: 1; color: var(--accent); }
.step p { color: var(--muted); }

.lens { list-style: none; display: grid; gap: .875rem; margin-top: 2rem; }
.lens li { background: var(--surface); border-left: 3px solid var(--tan); padding: 1.1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Ventures ---------- */
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; margin: 2rem 0; }
.detail-list dt { font-size: var(--fs-small); color: var(--muted); margin-bottom: .25rem; }
.detail-list dd { margin: 0; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--accent); background: var(--surface-2); padding: .7rem 1.2rem; border-radius: 999px; margin-top: 1.75rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Leadership ---------- */
.leader { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.leader + .leader { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font-size: 5rem; font-weight: 300; color: var(--accent); }
.leader h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.leader .role { color: var(--accent); font-weight: 700; margin: .5rem 0 1.75rem; }

.note { max-width: 880px; }
.note h2 { font-size: 1rem; font-weight: 700; letter-spacing: .03em; color: var(--tan); margin-bottom: 2rem; }
.note blockquote { margin: 0; }
.note blockquote p { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); font-weight: 300; line-height: 1.5; }
.note blockquote p:first-child::before { content: "\201C"; color: var(--lavender); }
.note blockquote p:last-of-type::after { content: "\201D"; color: var(--lavender); }
.note cite { display: block; margin-top: 2rem; font-style: normal; font-weight: 700; color: var(--lavender); }

/* ---------- Contact ---------- */
.enquiries { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.enquiry { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--plum); border-radius: var(--radius-lg); padding: 2rem 1.75rem; }
.enquiry h3 { margin-bottom: .6rem; }
.enquiry p { color: var(--muted); font-size: 1rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); }
.contact-info h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.contact-info dl { margin: 2rem 0 0; }
.contact-info dt { font-size: var(--fs-small); color: var(--muted); }
.contact-info dd { margin: .25rem 0 1.5rem; font-weight: 700; }
.contact-info .frame { aspect-ratio: 4 / 3; margin-top: 2rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 700; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font); color: var(--text); background: var(--field);
  border: 1px solid var(--field-line); border-radius: var(--radius); padding: .85rem 1rem; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: 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='%239a6fcf' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(122,59,176,.2); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.form-foot small { color: var(--muted); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--night); color: rgba(250,248,245,.7); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .9375rem; }
:root[data-theme="dark"] .site-footer { background: #0e0c0c; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.5rem; }
.footer-brand .tag { color: #faf8f5; font-size: 1.125rem; font-weight: 300; margin-bottom: .75rem; }
.footer-brand p { max-width: 38ch; }
.site-footer h2 { font-size: .9375rem; font-weight: 700; color: #faf8f5; margin-bottom: 1.1rem; }
.footer-links { list-style: none; display: grid; gap: .6rem; }
.footer-links a, .footer-bottom a { text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--lavender); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.75rem; border-top: 1px solid rgba(250,248,245,.12); font-size: var(--fs-small); }
.footer-bottom ul { list-style: none; display: flex; gap: 1.5rem; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 38px; }
  .site-header.is-scrolled { height: 64px; }
  .site-header.is-scrolled .brand img { height: 34px; }
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 110; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav-link { font-size: 1.875rem; font-weight: 300; padding: .35rem 0; color: var(--text) !important; }
  .nav-link[aria-current="page"] { font-weight: 400; color: var(--accent) !important; }
  .nav-link::after { display: none; }
  .nav-cta { display: block; margin-top: 1.75rem; }
  .nav-cta .btn { min-height: 52px; padding: 0 1.75rem; font-size: .9375rem; }

  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open .brand, body.nav-open .theme-toggle { position: relative; z-index: 120; }
  body.nav-open .nav-toggle span { background: var(--text) !important; }
  body.nav-open .theme-toggle { color: var(--text) !important; border-color: var(--line) !important; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  :root:not([data-theme="dark"]) body.nav-open .brand .logo-dark { opacity: 1 !important; }
  :root:not([data-theme="dark"]) body.nav-open .brand .logo-light { opacity: 0 !important; }

  .split, .intro, .media-split, .contact-grid, .purpose .grid { grid-template-columns: 1fr; }
  .media-split--flip .frame { order: 0; }
  .callout { grid-template-columns: 1fr; }
  .callout .btn-row { justify-content: flex-start; }
  .venture { grid-template-columns: 1fr; }
  .venture-panel { min-height: 340px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .enquiries { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .step { grid-template-columns: 70px 1fr; }
  .step p { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .collage { max-width: 520px; }
}

@media (max-width: 640px) {
  .pillars, .promise, .values, .detail-list, .form-grid, .vm { grid-template-columns: 1fr; }
  .vm-item + .vm-item { border-left: 0; border-top: 1px solid var(--line); }
  .hero-scroll { display: none; }
  .hero-swash { width: 110vw; right: -30%; opacity: .7; }
  .btn-row .btn { flex: 1 1 100%; }
  .step { grid-template-columns: 1fr; gap: .75rem; }
  .step p { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .theme-toggle { width: 38px; height: 38px; }
  .collage::before { left: -10px; top: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-line { opacity: 1; transform: none; }
}

/* ==========================================================
   Contact form states + toast notifications
   ========================================================== */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.field-error { margin: 0; font-size: .875rem; color: #c0392b; }
:root[data-theme="dark"] .field-error { color: #ff8a80; }
.field [aria-invalid="true"] { border-color: #c0392b; background: rgba(192,57,43,.04); }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #ff8a80; }

.btn.is-loading { cursor: progress; opacity: .85; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region {
  position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 250;
  display: flex; flex-direction: column; gap: .75rem;
  width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  --toast-accent: var(--plum);
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start;
  padding: 1rem 1rem 1.1rem 1.1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-left: 3px solid var(--toast-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -18px rgba(31,29,28,.45), 0 2px 6px rgba(31,29,28,.06);
  animation: toast-in .45s var(--ease) both;
}
:root[data-theme="dark"] .toast { box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); }
.toast--error { --toast-accent: #c0392b; }
:root[data-theme="dark"] .toast--success { --toast-accent: var(--lavender); }
:root[data-theme="dark"] .toast--error { --toast-accent: #ff8a80; }

.toast-icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--toast-accent); color: #fff;
}
:root[data-theme="dark"] .toast-icon { color: #141212; }
.toast-icon svg { width: 17px; height: 17px; }
.toast-title { margin: 0; font-weight: 700; font-size: .975rem; line-height: 1.35; }
.toast-msg { margin: .2rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.toast-tag {
  display: inline-block; margin-top: .4rem; padding: .2rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--surface-2);
}
.toast-close {
  width: 28px; height: 28px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.toast-close:hover { background: var(--surface-2); color: var(--text); }
.toast-close svg { width: 16px; height: 16px; }
.toast-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--toast-accent); opacity: .35; transform-origin: left;
  animation: toast-progress var(--toast-duration, 6500ms) linear forwards;
}
.toast.is-paused .toast-progress { animation-play-state: paused; }
.toast.is-leaving { animation: toast-out .35s var(--ease) forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 640px) {
  .toast-region { right: 16px; left: 16px; width: auto; top: calc(var(--header-h) + 10px); }
}
#enquiry-form { scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-link { color: var(--accent); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.contact-link:hover { color: var(--plum-bright); }
