/*
Theme Name: Satopia Group
Theme URI: https://satopiagroup.com
Description: Custom theme for the Satopia Group website. Hand-written templates, no page builder. Design signed off 14 October 2026.
Author: Satopia Group
Version: 1.2.4
Requires PHP: 7.4
Text Domain: satopia-group
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #FFFEFB;
  --ground: #0A0A0A;
  --cover: #0C0C0B;
  --hair: rgba(255, 254, 251, 0.16);
  --rule: rgba(255, 254, 251, 0.55);
  --soft: rgba(255, 254, 251, 0.8);
  --dim: rgba(255, 254, 251, 0.5);
  --field: rgba(255, 254, 251, 0.4);
  --gutter: clamp(20px, 5.5vw, 88px);
  --header-h: 80px;
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/albert-sans-latin-300-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/albert-sans-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/albert-sans-latin-500-normal.woff2) format('woff2');
}
/* Lato carries the Home cover line, matching the live site's hero exactly
   (Lato 100 headline, Lato 400 + italic byline). Self-hosted, SIL OFL. */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url(assets/fonts/lato-latin-100-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/lato-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/lato-latin-400-italic.woff2) format('woff2');
}
/* Size-matched fallback so the swap causes no layout shift (metrics in docs/font-fallback.md). */
@font-face {
  font-family: 'Albert Sans Fallback';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
  size-adjust: 102%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Albert Sans', 'Albert Sans Fallback', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { display: block; }
button { font-family: inherit; }
a { color: var(--ink); transition: color 200ms ease; }
a:hover { color: rgba(255, 254, 251, 0.7); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ground);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

[id] { scroll-margin-top: var(--header-h); }

/* ---------- Shared bits ---------- */
.sg-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.sg-eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}
.sg-body {
  max-width: 640px;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--soft);
}
.sg-grain {
  position: relative;
  overflow: hidden;
  background: var(--cover);
}
.sg-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url(assets/img/grain-256.png) repeat;
  opacity: 0.16;
  z-index: 0;
}
.sg-grain > * { position: relative; z-index: 1; }

/* Full-screen sections, content centred */
.sg-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pill button */
.sg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.sg-pill:hover { background: rgba(255, 254, 251, 0.88); color: var(--ground); }

/* Text link with arrow */
.sg-textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Underlined inline link (venture website, privacy) */
.sg-ulink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-bottom: 4px;
  box-shadow: inset 0 -1px 0 var(--rule);
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
@media (max-width: 767px) { .sg-ulink { font-size: 16px; } }

/* Scroll reveal (JS adds .sg-reveal; .is-in plays it once) */
.sg-reveal { opacity: 0; transform: translateY(12px); }
.sg-reveal.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft); }
html.no-js .sg-reveal, html.sg-reduced .sg-reveal { opacity: 1; transform: none; }

/* ---------- Header / navigation ---------- */
.sg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: var(--ground);
}
.sg-header__nav {
  max-width: 1440px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.sg-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.sg-header__logo img { height: 17px; width: auto; }
.sg-header__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 clamp(20px, 3vw, 44px);
}
.sg-navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.sg-header__menu-btn { display: none; }

/* On Home the nav lies over the cover, transparent, logo hidden */
.sg-header--home {
  background: transparent;
  transition: background-color 300ms ease;
}
.sg-header--home .sg-header__logo { visibility: hidden; opacity: 0; transition: opacity 300ms ease; }
.sg-header--home.is-fixed { background: var(--ground); }
.sg-header--home.is-fixed .sg-header__logo { visibility: visible; opacity: 1; }

/* Mobile header */
@media (max-width: 767px) {
  .sg-header__nav { min-height: 64px; padding: 0 20px; flex-wrap: nowrap; }
  .sg-header__logo img { height: 14px; }
  .sg-header__links { display: none; }
  .sg-header__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .sg-header--inner { background: var(--cover); }
}

/* Mobile menu overlay */
.sg-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  flex-direction: column;
  background: var(--cover);
  color: var(--ink);
}
.sg-menu.is-open { display: flex; }
.sg-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url(assets/img/grain-256.png) repeat;
  opacity: 0.16;
}
.sg-menu > * { position: relative; }
.sg-menu__bar {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sg-menu__bar img { height: 14px; width: auto; }
.sg-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.sg-menu__nav {
  padding: 56px 20px 0;
  flex-grow: 1;
  overflow-y: auto;
}
.sg-menu__nav ul { box-shadow: inset 0 1px 0 var(--hair); }
.sg-menu__nav li { box-shadow: inset 0 -1px 0 var(--hair); }
.sg-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.sg-menu__link > span:first-child {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 300;
}
.sg-menu__ring {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.sg-menu__legal {
  padding: 24px 20px 36px;
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ---------- Home cover + opening sequence ---------- */
.sg-cover {
  height: 100svh;
  padding: var(--header-h) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sg-cover__line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  opacity: 0;
}
/* The opening line matches the live site's hero: Lato 100 at 100px/110px
   on desktop, 45px/49.5px on mobile; byline Lato 400 at 16px, no tracking. */
.sg-cover__line p {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: clamp(45px, 7vw, 100px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 100;
  text-align: center;
}
.cv-l { display: block; }
.cv-w { display: inline-block; }
.cv-sub {
  margin-top: 26px;
  font-family: 'Lato', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 400;
}
.cv-sub em { font-style: italic; }
@media (max-width: 767px) {
  .cv-sub { font-size: 13px; margin-top: 18px; }
}
.sg-cover__logo-wrap {
  position: relative;
  line-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sg-cover__logo-hair {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: min(62vw, 620px);
  height: 1px;
  transform: translateX(-50%) scaleX(1);
  background: var(--rule);
  opacity: 0;
  transform-origin: center;
}
.sg-cover__logo-crop { display: block; overflow: hidden; padding-bottom: 2px; }
.sg-cover__logo { height: clamp(44px, 4.4vw, 64px); width: auto; }
.sg-cover__est {
  position: relative;
  margin-top: clamp(32px, 3.3vw, 48px);
  padding-left: 0.32em;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.sg-cover__cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 96px;
  background: linear-gradient(to bottom, rgba(255, 254, 251, 0), rgba(255, 254, 251, 0.6));
}
@media (max-width: 767px) {
  .sg-cover { padding: 64px 20px; }
  .sg-cover__line { padding: 0 28px; }
  .sg-cover__line p { font-size: 28px; line-height: 1.25; }
  .sg-cover__logo { height: 32px; }
  .sg-cover__est { margin-top: 28px; padding-left: 0.3em; font-size: 10px; line-height: 1.6; letter-spacing: 0.3em; }
  .sg-cover__cue { height: 72px; }
}

/* Pre-intro hold: an inline head script adds .sg-intro-wait before first
   paint on Home, so the end state (logo, EST, cue, nav) never flashes before
   the sequence begins. The animations' fill modes take over once .sg-intro
   lands; skipping removes the class. */
html.sg-intro-wait .sg-cover__logo { transform: translateY(112%); }
html.sg-intro-wait .sg-cover__est { opacity: 0; }
html.sg-intro-wait .sg-cover__cue { transform: scaleY(0); transform-origin: top center; }
html.sg-intro-wait .sg-header--home { opacity: 0; }

/* Intro animation: runs only when JS adds .sg-intro after document.fonts.ready.
   Default (no class, no JS, reduced motion or a repeat visit) is the end state.
   The words fade in place, as on the live site; the logo then rises out of a
   hairline that draws across and fades away. */
html.sg-intro .sg-cover__line { opacity: 1; animation: cv-out 1s var(--ease-out) var(--cv-out-delay, 4.15s) both; }
/* Each word flips up from edge-on, exactly as the live site's rotate_in:
   rotateX(90deg) + 35px below, 400ms easeOutQuad, one word every 370ms;
   the byline follows on a slower 650ms flip. */
html.sg-intro .cv-w {
  animation: cv-word 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: var(--d, 0.4s);
  transform-style: preserve-3d;
}
html.sg-intro .cv-sub .cv-w { animation-duration: 0.65s; }
html.sg-intro .sg-cover__logo-hair {
  animation:
    cv-hair-draw 1.1s var(--ease-soft) var(--cv-hair-delay, 4.75s) both,
    cv-hair-fade 0.9s ease calc(var(--cv-logo-delay, 5.15s) + 1.3s) forwards;
}
html.sg-intro .sg-cover__logo { animation: cv-rise 1.5s var(--ease-soft) var(--cv-logo-delay, 5.15s) both; }
html.sg-intro .sg-cover__est { animation: cv-est 1.8s var(--ease-soft) var(--cv-est-delay, 6.65s) both; }
html.sg-intro .sg-cover__cue { transform-origin: top center; animation: cv-cue 1.4s var(--ease-soft) var(--cv-cue-delay, 7.35s) both; }
html.sg-intro .sg-header--home { animation: cv-fade 1.4s ease var(--cv-nav-delay, 5.35s) both; }

/* Skipping: .sg-intro-skip jumps everything to the end state immediately. */
html.sg-intro.sg-intro-skip .sg-cover__line,
html.sg-intro.sg-intro-skip .cv-w,
html.sg-intro.sg-intro-skip .sg-cover__logo,
html.sg-intro.sg-intro-skip .sg-cover__logo-hair,
html.sg-intro.sg-intro-skip .sg-cover__est,
html.sg-intro.sg-intro-skip .sg-cover__cue,
html.sg-intro.sg-intro-skip .sg-header--home { animation: none; }
html.sg-intro.sg-intro-skip .sg-cover__line { opacity: 0; }

@keyframes cv-word {
  from { opacity: 0; transform: rotateX(90deg) translateY(35px); }
  to { opacity: 1; transform: rotateX(0deg) translateY(0); }
}
@keyframes cv-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-14px); } }
@keyframes cv-hair-draw { from { opacity: 0.9; transform: translateX(-50%) scaleX(0); } to { opacity: 0.9; transform: translateX(-50%) scaleX(1); } }
@keyframes cv-hair-fade { from { opacity: 0.9; } to { opacity: 0; } }
@keyframes cv-rise { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes cv-est { from { opacity: 0; letter-spacing: 0.6em; } to { opacity: 1; letter-spacing: 0.32em; } }
@keyframes cv-cue { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cv-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) {
  @keyframes cv-est { from { opacity: 0; letter-spacing: 0.6em; } to { opacity: 1; letter-spacing: 0.3em; } }
}
@media (prefers-reduced-motion: reduce) {
  html.sg-intro .sg-cover__line { opacity: 0; animation: none; }
  html.sg-intro .cv-w,
  html.sg-intro .sg-cover__logo,
  html.sg-intro .sg-cover__logo-hair,
  html.sg-intro .sg-cover__est,
  html.sg-intro .sg-cover__cue,
  html.sg-intro .sg-header--home { animation: none; }
}

/* ---------- Home sections ---------- */
.sg-statement h1, .sg-statement h2 {
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.sg-statement .is-light { display: block; font-weight: 300; }
.sg-statement .is-medium { display: block; font-weight: 500; }
.sg-statement__line { margin-top: 56px; }
.sg-statement__actions {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
}
@media (max-width: 767px) {
  .sg-statement { min-height: 100svh; }
  .sg-statement h1, .sg-statement h2 { font-size: 36px; line-height: 1.2; }
  .sg-statement__line { margin-top: 40px; }
  .sg-statement__actions { margin-top: 56px; flex-direction: column; align-items: stretch; gap: 8px; }
  .sg-statement__actions .sg-pill,
  .sg-statement__actions .sg-textlink { justify-content: center; display: flex; }
}

/* The record */
.sg-record__band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  box-shadow: inset 0 1px 0 var(--hair), inset 0 -1px 0 var(--hair);
}
.sg-record__cell {
  min-height: 280px;
  padding: 44px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}
.sg-record__cell:first-child { padding-left: 0; }
.sg-record__cell:last-child { padding-right: 0; }
.sg-record__cell + .sg-record__cell { box-shadow: inset 1px 0 0 var(--hair); }
.sg-record__num {
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 300;
}
.sg-record__num small {
  font-size: 0.42em;
  vertical-align: top;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-left: 0.06em;
}
.sg-record__source {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--soft);
}
/* numerals rise into their crop line once */
.sg-rise { overflow: hidden; }
.sg-rise > span { display: block; transform: translateY(100%); }
.sg-rise.is-in > span { transform: none; transition: transform 900ms var(--ease-soft); }
.sg-rise.is-in:nth-child(2) > span { transition-delay: 120ms; }
.sg-rise.is-in:nth-child(3) > span { transition-delay: 240ms; }
html.no-js .sg-rise > span, html.sg-reduced .sg-rise > span { transform: none; }
@media (max-width: 767px) {
  .sg-record__band { display: block; box-shadow: inset 0 1px 0 var(--hair); }
  .sg-record__cell {
    min-height: 0;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    column-gap: 16px;
    align-items: end;
    padding: 32px 0 30px;
    box-shadow: inset 0 -1px 0 var(--hair);
    gap: 0 16px;
  }
  .sg-record__cell + .sg-record__cell { box-shadow: inset 0 -1px 0 var(--hair); }
  .sg-record__num { font-size: 60px; line-height: 0.84; }
  .sg-record__num small { line-height: 1.3; letter-spacing: normal; }
  .sg-record__cell .sg-eyebrow { letter-spacing: 0.16em; }
  .sg-record__source { margin-top: 24px; letter-spacing: normal; }
}

/* Market / Group / Impact */
.sg-section__h {
  margin-top: 56px;
  max-width: 16em;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.sg-section__p { margin-top: 48px; }
.sg-foundations {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.sg-foundations li { white-space: nowrap; }
.sg-foundations .sep { margin: 0 0.9em; }
@media (max-width: 767px) {
  .sg-eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: 0.22em; }
  .sg-section__h { margin-top: 40px; max-width: none; font-size: 34px; line-height: 1.1; }
  .sg-section__p { margin-top: 32px; font-size: 17px; }
  .sg-foundations {
    margin-top: 44px;
    padding-top: 20px;
    box-shadow: inset 0 1px 0 var(--hair);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.22em;
  }
  .sg-foundations li { white-space: normal; }
  .sg-foundations .sep { display: none; }
  .sg-home-screen { min-height: 90svh; }
  .sg-impact { min-height: 76svh; }
}

/* Portfolio */
.sg-portfolio { padding-top: 240px; padding-bottom: 240px; }
.sg-portfolio__list { margin-top: 144px; box-shadow: inset 0 1px 0 var(--hair); }
.sg-portfolio__list li { box-shadow: inset 0 -1px 0 var(--hair); }
.sg-portfolio__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  width: 100%;
  padding: 56px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 320ms ease;
}
/* One open at a time; the others step back, as the enquiry routes do. */
.sg-portfolio__list.has-open .sg-portfolio__row[aria-expanded="false"] { color: var(--dim); }

/* The expanded venture panel: the statement, no cover or title sections,
   sized so an open venture takes the screen. */
.sg-vpanel__inner {
  max-width: none;
  padding: 24px 0 120px;
  min-height: calc(100svh - var(--header-h) - 170px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.sg-vpanel__h {
  max-width: 15em;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 300;
}
.sg-vpanel__p {
  margin-top: 48px;
  max-width: 640px;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--soft);
}
.sg-vpanel__link { margin-top: 44px; }
@media (max-width: 767px) {
  .sg-vpanel__inner { padding: 8px 0 88px; min-height: calc(100svh - 64px - 150px); }
  .sg-vpanel__h { max-width: none; font-size: 34px; line-height: 1.1; }
  .sg-vpanel__p { margin-top: 32px; font-size: 17px; line-height: 1.6; }
  .sg-vpanel__link { margin-top: 32px; }
}
.sg-portfolio__no { grid-column: 1 / span 1; display: flex; }
.sg-circle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease, color 200ms ease;
}
.sg-portfolio__row:hover .sg-circle,
.sg-portfolio__row:focus-visible .sg-circle {
  background: var(--ink);
  color: var(--ground);
}
.sg-portfolio__name {
  grid-column: 2 / span 5;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}
.sg-portfolio__line {
  grid-column: 7 / span 3;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}
.sg-portfolio__stage {
  grid-column: 10 / span 3;
  justify-self: end;
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sg-portfolio__row:hover { color: var(--ink); }
@media (max-width: 767px) {
  .sg-portfolio { padding-top: 160px; padding-bottom: 160px; }
  .sg-portfolio__list { margin-top: 72px; }
  .sg-portfolio__row {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
    padding: 44px 0 42px;
  }
  .sg-circle { width: 32px; height: 32px; font-size: 11px; }
  .sg-portfolio__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
  .sg-portfolio__name { grid-column: auto; font-size: 26px; line-height: 1.1; white-space: normal; }
  .sg-portfolio__line, .sg-portfolio__stage {
    grid-column: auto;
    justify-self: start;
    text-align: left;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.22em;
  }
}
@media (min-width: 768px) { .sg-portfolio__meta { display: contents; } }

/* ---------- Enquiries ---------- */
.sg-enquiries {
  min-height: 100svh;
  padding-top: max(160px, calc(50svh - 140px));
  padding-bottom: 160px;
}
.sg-enquiries__h {
  font-size: clamp(56px, 6.7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 300;
}
/* Ruled above only — Emma: no rule at the bottom of the enquiries block. */
.sg-routes {
  margin-top: 96px;
  box-shadow: inset 0 1px 0 var(--hair);
}
.sg-routes > li { min-width: 0; }
.sg-routes h3 { font-size: inherit; font-weight: inherit; }
.sg-route__btn {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 320ms ease;
}
.sg-routes.has-open .sg-route__btn[aria-expanded="false"] { color: var(--dim); }
.sg-route__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color 320ms ease, color 320ms ease, box-shadow 320ms ease;
}
.sg-route__icon svg { transform: rotate(0deg); transition: transform 480ms var(--ease-soft); }
.sg-route__btn[aria-expanded="true"] .sg-route__icon { background: var(--ink); color: var(--ground); box-shadow: none; }
.sg-route__btn[aria-expanded="true"] .sg-route__icon svg { transform: rotate(45deg); }
.sg-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 600ms var(--ease-soft), visibility 0s linear 600ms;
}
.sg-panel.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s, 0s; }
.sg-panel__clip { min-height: 0; overflow: hidden; }
.sg-panel__inner {
  max-width: 720px;
  padding: 64px 0 8px;
  opacity: 0;
  transition: opacity 480ms ease;
}
.sg-panel.is-open .sg-panel__inner { opacity: 1; }

/* Desktop: four-column route grid, one markup */
@media (min-width: 768px) {
  .sg-routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-routes > li { display: contents; }
  .sg-routes h3 { grid-row: 1; min-width: 0; }
  .sg-routes > li + li h3 { box-shadow: inset 1px 0 0 var(--hair); }
  .sg-routes > li:first-child .sg-route__btn { padding-left: 0; }
  .sg-routes > li:last-child .sg-route__btn { padding-right: 0; }
  .sg-panel { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sg-enquiries {
    min-height: 90svh;
    padding-top: max(120px, calc(45svh - 180px));
    padding-bottom: 120px;
  }
  .sg-enquiries__h { font-size: 52px; }
  .sg-routes { margin-top: 56px; box-shadow: inset 0 1px 0 var(--hair); }
  .sg-routes > li { box-shadow: inset 0 -1px 0 var(--hair); }
  .sg-routes > li:last-child { box-shadow: none; }
  .sg-route__btn { min-height: 64px; padding: 0; font-size: 10px; line-height: 1.6; letter-spacing: 0.22em; }
  .sg-route__icon { width: 26px; height: 26px; }
  .sg-panel__inner { max-width: none; padding: 8px 0 48px; }
}

/* Form fields */
.sg-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 40px;
}
.sg-form__grid .is-full { margin-top: 8px; }
.sg-form__grid .is-full { grid-column: 1 / -1; }
.sg-form__grid > div { min-width: 0; }
.sg-label {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}
.u-field {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 6px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--field);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 24px;
  font-weight: 300;
  outline: none;
  transition: border-color 240ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.u-field:hover { border-bottom-color: rgba(255, 254, 251, 0.7); }
.u-field:focus { border-bottom-color: var(--ink); }
.u-field:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--cover) inset;
  caret-color: var(--ink);
}
.u-lines {
  height: 108px;
  padding: 0;
  border-bottom: 0;
  resize: none;
  overflow: auto;
  line-height: 36px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--field) 35px, var(--field) 36px);
  background-attachment: local;
}
.u-lines:focus {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--ink) 35px, var(--ink) 36px);
}
.u-file {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.u-file > span { color: var(--soft); }
.u-file:focus-within { border-bottom-color: var(--ink); }
.u-file input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sg-field--error .u-field { border-bottom-color: var(--ink); }
.sg-error {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.sg-form__actions {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
}
.sg-form__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.sg-form__send:hover { background: rgba(255, 254, 251, 0.88); }
.sg-form__privacy { font-size: 12px; line-height: 1.6; color: var(--soft); }
.sg-form__privacy a { color: var(--ink); }
.sg-form__fail { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.sg-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sg-sent__h { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 300; }
.sg-sent__p { font-size: 15px; line-height: 1.6; color: var(--soft); }
.sg-sent__again {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 767px) {
  .sg-form__grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 36px 24px; }
  .u-field { font-size: 16px; }
  .u-lines {
    height: 102px;
    line-height: 34px;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--field) 33px, var(--field) 34px);
  }
  .u-lines:focus {
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--ink) 33px, var(--ink) 34px);
  }
  .sg-form__send { width: 100%; }
}

/* ---------- Title cards (About, Press, Terms, Investors, 404) ---------- */
.sg-titlecard {
  height: calc(100svh - var(--header-h));
  padding: 56px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sg-titlecard h1 {
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 300;
  text-align: center;
}
.sg-titlecard--big h1 { font-size: clamp(64px, 9vw, 128px); }
@media (max-width: 767px) {
  .sg-titlecard { padding: 44px 20px; }
  .sg-titlecard h1, .sg-titlecard--big h1 { font-size: 44px; }
}

/* ---------- About / Investors body ---------- */
.sg-prose-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.sg-prose-grid > div { grid-column: 3 / span 8; }
.sg-prose {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 300;
}
.sg-invest-block {
  margin-top: 96px;
  padding-top: 28px;
  box-shadow: inset 0 1px 0 var(--hair);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sg-invest-cta { margin-top: 72px; }
.sg-signin--after { margin-top: 96px; padding-top: 28px; box-shadow: inset 0 1px 0 var(--hair); }
.sg-ulink--prose { font-size: inherit; letter-spacing: inherit; padding-bottom: 6px; }
.sg-signin__contact { margin-top: 32px; }
.sg-signin__contact a { color: var(--ink); }
@media (max-width: 767px) {
  .sg-prose-grid { display: block; }
}

/* ---------- Press ---------- */
.sg-press-boiler { padding-top: 200px; padding-bottom: 200px; }
.sg-press__rows { margin-top: 64px; box-shadow: inset 0 1px 0 var(--hair); }
.sg-press__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: 56px 0;
  box-shadow: inset 0 -1px 0 var(--hair);
}
.sg-press__name {
  grid-column: 1 / span 4;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
}
.sg-press__text {
  grid-column: 6 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.sg-press__text p { font-size: 18px; line-height: 1.65; }
.sg-copybtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.sg-facts { margin-top: 64px; box-shadow: inset 0 1px 0 var(--hair); }
.sg-facts__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
  padding: 48px 0;
  box-shadow: inset 0 -1px 0 var(--hair);
}
.sg-facts__row dt {
  grid-column: 1 / span 4;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.sg-facts__row dd {
  grid-column: 6 / -1;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.sg-press__actions { margin-top: 96px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sg-press__actions > div { grid-column: 6 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
@media (max-width: 767px) {
  .sg-press-boiler { padding-top: 120px; padding-bottom: 120px; }
  .sg-press__row { display: block; padding: 44px 0; }
  .sg-press__text { margin-top: 24px; }
  .sg-press__text p { font-size: 17px; }
  .sg-facts__row { display: block; padding: 36px 0; }
  .sg-facts__row dd { margin-top: 16px; font-size: 28px; }
  .sg-press__actions { display: block; }
  .sg-press__actions > div { display: flex; }
}

/* ---------- Terms ---------- */
.sg-terms { padding-top: 160px; padding-bottom: 160px; }
.sg-terms__rows { box-shadow: inset 0 1px 0 var(--hair); }
.sg-terms__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
  padding: 56px 0;
  box-shadow: inset 0 -1px 0 var(--hair);
}
.sg-terms__row h2 {
  grid-column: 1 / span 4;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}
.sg-terms__row > div { grid-column: 5 / -1; }
.sg-legal__updated {
  margin-bottom: 40px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.sg-legal__body p, .sg-legal__body li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--soft);
  max-width: 720px;
}
.sg-legal__body p + p, .sg-legal__body ul { margin-top: 16px; }
.sg-legal__body a { color: var(--ink); }
.sg-legal__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.sg-legal__list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--dim);
}
@media (max-width: 767px) {
  .sg-terms { padding-top: 120px; padding-bottom: 120px; }
  .sg-terms__row { display: block; padding: 44px 0; }
  .sg-terms__row > div { margin-top: 20px; }
}

/* ---------- Venture pages ---------- */
.sg-venture-cover {
  height: calc(100svh - var(--header-h));
  padding: 56px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.sg-venture-cover__line {
  padding-left: 0.32em;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
}
.sg-mark { display: flex; flex-direction: column; align-items: center; }
.sg-mark__word {
  display: block;
  padding-left: 0.24em;
  font-size: clamp(64px, 8.75vw, 126px);
  line-height: 0.8;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}
.sg-mark__wordmark { height: clamp(12px, 1.1vw, 16px); width: auto; }
.sg-mark__gap { display: block; height: clamp(32px, 3.3vw, 48px); }
.sg-mark__logo--elkemist { height: clamp(64px, 6.9vw, 100px); width: auto; }
.sg-mark__logo--prive-100 { height: clamp(150px, 16.4vw, 236px); width: auto; }
.sg-venture-statement {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}
.sg-venture-statement__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.sg-venture-statement__h {
  grid-column: 1 / span 10;
  max-width: 15em;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 300;
}
.sg-venture-statement__p {
  margin-top: 56px;
  grid-column: 1 / span 6;
  max-width: 640px;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--soft);
}
.sg-venture-statement__link { margin-top: 48px; grid-column: 1 / span 6; }
.sg-venture-statement__all {
  align-self: end;
  padding-bottom: 56px;
}
.sg-allventures {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
@media (max-width: 767px) {
  .sg-venture-cover { padding: 44px 20px; }
  .sg-venture-cover__line { padding-left: 0.3em; font-size: 10px; line-height: 1.6; letter-spacing: 0.3em; }
  .sg-mark__word { font-size: 44px; }
  .sg-mark__wordmark { height: 10px; }
  .sg-mark__gap { height: 24px; }
  .sg-mark__logo--elkemist { height: 60px; }
  .sg-mark__logo--prive-100 { height: 150px; }
  .sg-venture-statement__grid { display: block; }
  .sg-venture-statement__h { max-width: none; font-size: 38px; line-height: 1.08; }
  .sg-venture-statement__p { margin-top: 40px; font-size: 17px; line-height: 1.6; }
  .sg-venture-statement__link { margin-top: 36px; }
  .sg-venture-statement__all { padding-bottom: 40px; }
  .sg-allventures { gap: 10px; font-size: 10px; line-height: 1.6; }
}

/* ---------- 404 ---------- */
.sg-404 { height: calc(100svh - var(--header-h)); }
.sg-404__link { margin-top: 48px; }

/* ---------- Cookie banner (equal-weight Accept / Reject) ---------- */
.sg-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--cover);
  box-shadow: inset 0 1px 0 var(--hair);
}
.sg-cookie__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}
.sg-cookie__text { font-size: 14px; line-height: 1.6; color: var(--soft); max-width: 640px; }
.sg-cookie__actions { display: flex; gap: 12px; }
.sg-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 112px;
  padding: 0 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.sg-cookie__btn:hover { background: var(--ink); color: var(--ground); }
.sg-footer__cookie {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.sg-footer { background: var(--ground); }
.sg-footer__inner { padding: 72px 0; display: flex; flex-direction: column; gap: 56px; }
.sg-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.sg-footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
.sg-footer__logo img { height: 16px; width: auto; }
.sg-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 36px; }
.sg-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 24px;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
}
.sg-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Page transitions ---------- */
/* Pages arrive on a soft fade and leave on one; JS adds .sg-leaving before
   internal navigation. Animations always end visible, so no-JS is safe. */
@media (prefers-reduced-motion: no-preference) {
  body { animation: sg-enter 450ms ease both; }
  html.sg-leaving body { animation: none; opacity: 0; transition: opacity 280ms ease; }
}
@keyframes sg-enter { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Spacing helpers ---------- */
.mt-0 { margin-top: 0; }

/* Main content offset for the fixed header on inner pages */
.sg-main { padding-top: var(--header-h); }
.sg-main--home { padding-top: 0; }
