/* Self-hosted Google Fonts (Inter, Montserrat, Newsreader) — SIL Open Font License. Latin subsets only. */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Lake38 Advisory — design tokens
   Palette sampled from the Lake38 mark and Introduction deck (Sept 2026).
   ========================================================================== */

:root {
  /* Brand */
  --navy: #09165e;          /* mark navy */
  --navy-deep: #07124c;     /* deck gradient, upper */
  --ink: #09165e;           /* deck gradient, lower: near-black navy */
  --grey-dark: #8c8c8c;     /* mark, upper band */
  --grey-light: #b0b0b0;    /* mark, lower band */

  /* Surfaces */
  --paper: #f2f1ed;         /* warm off-white: editorial, not clinical */
  --paper-2: #e8e6e0;
  --white: #ffffff;

  /* Text */
  --text-on-paper: #09165e;
  --muted-on-paper: #5a5f78;
  --text-on-ink: #efefef;
  --muted-on-ink: #b0b0b0;

  /* Lines */
  --line-on-paper: rgba(11, 23, 94, 0.16);
  --line-on-ink: rgba(242, 241, 237, 0.16);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Montserrat", "Inter", system-ui, sans-serif;

  --fs-hero: clamp(3.4rem, 10.5vw, 10.5rem);
  --fs-xxl: clamp(2.6rem, 6vw, 5.6rem);
  --fs-xl: clamp(2rem, 4.2vw, 3.8rem);
  --fs-l: clamp(1.55rem, 2.7vw, 2.4rem);
  --fs-m: clamp(1.2rem, 1.6vw, 1.45rem);
  --fs-body: clamp(1rem, 1.05vw, 1.075rem);
  --fs-s: 0.875rem;
  --fs-label: 0.75rem;

  --tracking-label: 0.32em; /* echoes the ADVISORY lettering in the mark */

  /* Space */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(6rem, 14vw, 13rem);
  --maxw: 1440px;
  --measure: 36rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 900ms;
  --dur-slow: 1600ms;

  /* The Lake38 angle: diagonals in the deck, set at 38° */
  --angle: 38deg;
}

/* ==========================================================================
   Base: reset, typography, layout primitives, motion primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--navy); color: var(--paper); }
.theme-ink ::selection { background: var(--paper); color: var(--navy); }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--navy);
  font-size: var(--fs-s);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Type roles ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display em,
.statement em,
.h2 em { font-style: italic; font-weight: 300; }

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-xl);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-l);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-l);
  line-height: 1.28;
  letter-spacing: -0.012em;
  max-width: 30ch;
}

.lede {
  font-size: var(--fs-m);
  line-height: 1.55;
  max-width: var(--measure);
  font-weight: 400;
}

.label {
  font-family: var(--font-brand);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.4;
}

.muted { color: var(--muted-on-paper); }
.theme-ink .muted { color: var(--muted-on-ink); }

.prose p + p { margin-top: 1.1em; }
.prose { max-width: var(--measure); }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.theme-ink {
  background: var(--ink);
  color: var(--text-on-ink);
}
.theme-navy {
  background: var(--navy-deep);
  color: var(--text-on-ink);
}
.theme-paper {
  background: var(--paper);
  color: var(--text-on-paper);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-on-paper);
}
.theme-ink .rule,
.theme-navy .rule { background: var(--line-on-ink); }

/* Section header: label + index number, the recurring editorial device */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line-on-paper);
}
.theme-ink .section-head,
.theme-navy .section-head { border-color: var(--line-on-ink); }
.section-head .label:last-child { opacity: 0.72; }

/* ---------- Links & buttons ---------- */

.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.35rem;
  font-family: var(--font-brand);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0.35);
  transition: transform 700ms var(--ease-out);
}
.link-line:hover::after,
.link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link-line .arrow { transition: transform 600ms var(--ease-out); }
.link-line:hover .arrow { transform: translateX(6px); }

.arrow { width: 1.4em; height: 0.5em; flex: none; overflow: visible; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.15rem 1.9rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-brand);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 600ms var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 600ms var(--ease-out);
}
.btn span, .btn svg { transition: color 600ms var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:disabled { cursor: progress; opacity: 0.6; }
.theme-paper .btn:hover span, .theme-paper .btn:focus-visible span { color: var(--paper); }
.theme-ink .btn:hover span, .theme-navy .btn:hover span,
.theme-ink .btn:focus-visible span, .theme-navy .btn:focus-visible span { color: var(--navy); }
.theme-paper .btn:hover svg { color: var(--paper); }
.theme-ink .btn:hover svg, .theme-navy .btn:hover svg { color: var(--navy); }

/* ---------- Duotone imagery (deck treatment: navy over monochrome) ---------- */

.duotone {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  opacity: 0.55;
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 22, 94, 0.25), rgba(9, 22, 94, 0.75));
  pointer-events: none;
}

/* ---------- Reveal motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Line-masked text reveal: each line rises from behind a baseline */
.js [data-split] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.js [data-split] .line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1300ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + var(--delay, 0ms));
}
.js [data-split].is-in .line > span { transform: none; }

/* Hairline that draws itself */
.js [data-draw] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1800ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-draw].is-in { transform: scaleX(1); }

/* ---------- Page transitions (cross-document View Transitions) ---------- */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 420ms var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-in 900ms var(--ease-out) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes vt-in {
  from { opacity: 0; clip-path: inset(50% 0 50% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal],
  .js [data-split] .line > span,
  .js [data-draw] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ==========================================================================
   Components: header, menu, footer, hero, page hero, closing
   ========================================================================== */

/* ---------- Underline link ---------- */
.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 600ms var(--ease-out);
  padding-bottom: 1px;
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; }

/* ---------- Brand lockup ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}
.brand__mark { width: 30px; height: 30px; flex: none; transition: transform 900ms var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__word {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-top: 0.2em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--text-on-ink);
  transition:
    transform 700ms var(--ease-out),
    color 500ms var(--ease),
    background-color 500ms var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.25rem;
  transition: height 500ms var(--ease-out);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 4.25rem; }
.site-header.is-scrolled { background: rgba(9, 22, 94, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header.is-scrolled::after { opacity: 0.1; }
.site-header[data-theme="light"] { color: var(--navy); }
.site-header[data-theme="light"].is-scrolled { background: rgba(242, 241, 237, 0.8); }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { color: var(--text-on-ink); background: transparent; transform: none; }
.menu-open .site-header::after { opacity: 0; }

.site-nav ul { display: flex; gap: clamp(1.75rem, 3.5vw, 3.25rem); }
.site-nav a {
  position: relative;
  display: inline-block;
  font-family: var(--font-brand);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-block: 0.9rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__contact { opacity: 0.65; transition: opacity 400ms; }
.site-nav__contact:hover { opacity: 1; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.75rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-brand);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.menu-toggle__lines { display: grid; gap: 6px; width: 22px; }
.menu-toggle__lines i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 500ms var(--ease-out);
}
.menu-open .menu-toggle__lines i:first-child { transform: translateY(3.5px) rotate(19deg); }
.menu-open .menu-toggle__lines i:last-child { transform: translateY(-3.5px) rotate(-19deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 800ms var(--ease-out), visibility 0s linear 800ms;
  visibility: hidden;
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 800ms var(--ease-out); }
.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 7rem;
  padding-bottom: 2.5rem;
  min-height: 100%;
}
.menu__list li { border-top: 1px solid var(--line-on-ink); }
.menu__list li:last-child { border-bottom: 1px solid var(--line-on-ink); }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.1rem;
}
.menu__list .label { opacity: 0.5; min-width: 1.5rem; }
.menu__link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.menu__foot { display: grid; gap: 0.5rem; padding-top: 2rem; }
.menu__mail { font-size: var(--fs-s); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.hero__media img {
  opacity: 0.55;
  transform: scale(1.12);
  animation: hero-drift 28s var(--ease) forwards;
  transform-origin: 70% 60%;
}
.hero__media::after {
  background:
    radial-gradient(120% 80% at 20% 50%, rgba(9, 22, 94, 0.55), rgba(9, 22, 94, 0.9) 80%),
    linear-gradient(180deg, rgba(9, 22, 94, 0.55), rgba(9, 22, 94, 0.9));
}
@keyframes hero-drift {
  to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding-top: 7rem;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__eyebrow { align-self: start; opacity: 0.75; }

.hero__title {
  font-size: var(--fs-hero);
  line-height: 0.92;
  position: relative;
  display: grid;
  margin-block: 2rem;
}
.hero__above,
.hero__below { display: block; overflow: hidden; }
.hero__above > span,
.hero__below > span { display: block; }
.hero__above > span { padding-bottom: 0.14em; }
.hero__below > span { padding-top: 0.06em; padding-bottom: 0.12em; color: var(--grey-light); }
.hero__below em { font-weight: 300; }

/* The horizon: the line in the Lake38 mark, running the full width */
.hero__horizon {
  display: block;
  height: 1px;
  margin-inline: calc(var(--gutter) * -1);
  background: linear-gradient(90deg, rgba(242, 241, 237, 0), rgba(242, 241, 237, 0.7) 12%, rgba(242, 241, 237, 0.7) 88%, rgba(242, 241, 237, 0));
}

.hero__foot {
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem 4rem;
  flex-wrap: wrap;
}
.hero__lede {
  max-width: 34rem;
  font-size: var(--fs-m);
  line-height: 1.5;
  color: rgba(242, 241, 237, 0.86);
}
.hero__terms {
  display: flex;
  gap: 0;
  opacity: 0.75;
}
.hero__terms li + li::before {
  content: "×";
  margin-inline: 0.9em;
  opacity: 0.5;
  letter-spacing: 0;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  top: 50%;
  display: none;
  writing-mode: vertical-rl;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 3.5rem;
  background: currentColor;
  transform-origin: top;
  animation: scroll-cue 2.4s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (min-width: 1100px) { .hero__scroll { display: flex; } }

/* Oversized line drawing of the mark, sitting on the same horizon as the headline */
.hero__mark {
  position: absolute;
  z-index: 0;
  right: calc(var(--gutter) + 2vw);
  top: var(--horizon, 50%);
  width: min(44vw, 64vh);
  height: auto;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(242, 241, 237, 0.26);
  stroke-width: 0.25;
  overflow: visible;
}
.hero__mark .hero__mark-ring { stroke: rgba(242, 241, 237, 0.14); }
.js .hero .hero__mark circle,
.js .hero .hero__mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2600ms var(--ease-out);
}
.hero.is-in .hero__mark circle { stroke-dashoffset: 0; transition-delay: 600ms; }
.hero.is-in .hero__mark path { stroke-dashoffset: 0; transition-delay: 1200ms; }
@media (max-width: 760px) {
  .hero__mark { width: 90vw; right: -30vw; opacity: 0.6; }
}

/* Hero choreography: both sides converge on the horizon */
.js .hero [data-hero-step] { transition: transform 1600ms var(--ease-out), opacity 1200ms var(--ease); }
.js .hero .hero__above > span { transform: translate3d(0, -105%, 0); }
.js .hero .hero__below > span { transform: translate3d(0, 105%, 0); }
.js .hero .hero__horizon { transform: scaleX(0); transition: transform 1800ms var(--ease-out); }
.js .hero .hero__eyebrow,
.js .hero .hero__lede,
.js .hero .hero__terms { opacity: 0; transform: translate3d(0, 16px, 0); }

.hero.is-in .hero__horizon { transform: scaleX(1); }
.hero.is-in .hero__above > span,
.hero.is-in .hero__below > span { transform: none; transition-delay: 450ms; }
.hero.is-in .hero__eyebrow { opacity: 0.75; transform: none; transition-delay: 900ms; }
.hero.is-in .hero__lede { opacity: 1; transform: none; transition-delay: 1100ms; }
.hero.is-in .hero__terms { opacity: 0.75; transform: none; transition-delay: 1250ms; }

@media (max-width: 760px) {
  .hero__inner { grid-template-rows: auto 1fr auto; padding-top: 6.5rem; }
  .hero__title { align-self: center; }
  .hero__terms { font-size: 0.625rem; }
}

/* ---------- Inner-page hero ---------- */
.page-hero {
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line-on-paper);
}
.page-hero__eyebrow { margin-bottom: clamp(2rem, 4vw, 3.5rem); opacity: 0.7; }
.page-hero__title { font-size: var(--fs-xxl); max-width: 16ch; }
.page-hero__title em { color: var(--muted-on-paper); }
.page-hero__foot {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}
.page-hero__foot > .lede:only-child { grid-column: 2; }
.page-index { display: grid; border-top: 1px solid var(--line-on-paper); }
.page-index a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-on-paper);
  font-family: var(--font-display);
  font-size: 1.3rem;
  transition: padding 500ms var(--ease-out), color 400ms;
}
.page-index a::after { content: "↓"; font-family: var(--font-body); font-size: 0.9rem; opacity: 0.45; }
.page-index a:hover { padding-left: 0.75rem; }
@media (max-width: 860px) {
  .page-hero__foot { grid-template-columns: 1fr; }
  .page-hero__foot > .lede:only-child { grid-column: 1; }
}

/* ---------- Closing band ---------- */
.closing {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.closing__media { position: absolute; inset: -12% 0; }
.closing__media img { opacity: 0.5; }
.closing__media::after {
  background: linear-gradient(180deg, rgba(9, 22, 94, 0.92) 0%, rgba(9, 22, 94, 0.45) 45%, rgba(9, 22, 94, 0.95) 100%);
}
.closing__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--section);
  display: grid;
  gap: 2.5rem;
}
.closing__title { font-size: var(--fs-xxl); max-width: 15ch; }
.closing__title em { color: var(--grey-light); }
.closing__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-on-ink);
}
.closing__foot p { max-width: 30rem; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: 2rem; }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-on-ink);
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 1rem; }
.site-footer__brand svg { width: 52px; height: 52px; }
.site-footer__brand > span { display: grid; gap: 0.35rem; }
.site-footer__brand .brand__word { font-size: 1.6rem; }
.site-footer__line {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  max-width: 20ch;
  line-height: 1.15;
  color: var(--muted-on-ink);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--fs-s);
  line-height: 1.8;
}
.site-footer__grid .label { margin-bottom: 0.9rem; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.75rem;
  color: var(--muted-on-ink);
}
.site-footer__grid > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > div:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.notfound__title { font-size: var(--fs-xxl); }

/* ===================================================================
   v4
   =================================================================== */
.nowrap { white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line-on-ink); }
.hero .hero__horizon { background: none; }
.hero .hero__title { font-size: clamp(2.3rem, 6.6vw, 7.4rem); line-height: 0.98; }


/* Lake38 logo: one mark symbol, coloured per context through custom properties */
.lg-b1 { fill: #8c8c8c; }
.lg-b2 { fill: #b0b0b0; }
.lg-t1 { fill: var(--lg-t1, #09165e); }
.lg-t2 { fill: var(--lg-t2, #09165e); }
.lg-w1 { fill: var(--lg-w1, #09165e); }
.lg-w2 { fill: var(--lg-w2, #09165e); }
.theme-ink, .theme-navy, .site-header, .site-footer, .menu-open .site-header {
  --lg-t1: #efefef; --lg-t2: #d6d6d6; --lg-w1: #efefef; --lg-w2: #d6d6d6;
}
.theme-paper, .site-header[data-theme="light"] {
  --lg-t1: #09165e; --lg-t2: #09165e; --lg-w1: #09165e; --lg-w2: #09165e;
}
.menu-open .site-header[data-theme="light"] { --lg-t1: #efefef; --lg-t2: #d6d6d6; --lg-w1: #efefef; --lg-w2: #d6d6d6; }

.brand { gap: 7px; }
.brand__mark { width: 42px; height: 42px; transition: transform 900ms var(--ease-out), width 400ms, height 400ms; animation: mark-spin 1600ms var(--ease-out) 250ms backwards; }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: rotate(180deg); }
.brand__wordmark { height: 37px; width: auto; transition: height 400ms; }
.site-header.is-scrolled .brand__mark { width: 34px; height: 34px; }
.site-header.is-scrolled .brand__wordmark { height: 30px; }
@keyframes mark-spin { from { transform: rotate(-180deg); } to { transform: rotate(0deg); } }
@media (max-width: 760px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__wordmark { height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .brand__mark { animation: none; transition: none; } }

.section-mark { width: 22px; height: 22px; flex: none; align-self: center; }

/* hero mark: sized and placed by hero.js so it never sits under the text */
.hero .hero__mark {
  width: var(--mark-size, min(40vw, 60vh));
  top: var(--mark-top, var(--horizon, 50%));
  right: calc(var(--gutter) + var(--mark-extra, 0px));
}
@media (max-width: 760px) {
  .hero .hero__mark { width: var(--mark-size, 40vw); right: calc(var(--gutter) + var(--mark-extra, 0px)); opacity: 1; }
}

.section-logo { display: inline-flex; align-items: center; gap: 4px; align-self: center; }
.section-logo .section-mark { width: 24px; height: 24px; }
.section-word { height: 21px; width: auto; }
@media (max-width: 760px) { .section-word { display: none; } .section-logo .section-mark { width: 22px; height: 22px; } }

/* v6 */
.hero__lede { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 1.75vw, 1.7rem); line-height: 1.35; max-width: 40rem; }
.site-footer__logo { height: 42px; }
@media (max-width: 760px) { .site-footer__logo { height: 34px; } .hero__lede { font-size: 1.35rem; } }

/* v7 */
.site-footer__brand { gap: 7px; align-self: flex-start; }
.site-footer__brand .brand__mark { animation: none; }
.site-footer__brand:hover .brand__mark { transform: rotate(180deg); }
@media (max-width: 760px) {
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .hero .hero__title { align-self: start; margin-top: 2.5rem; }
}

.site-footer__brand .brand__mark { width: 42px; height: 42px; }
.site-footer__brand .brand__wordmark { width: auto; height: 37px; }
@media (max-width: 760px) {
  .site-footer__brand .brand__mark { width: 34px; height: 34px; }
  .site-footer__brand .brand__wordmark { height: 30px; }
}

/* Mobile only: large blue areas set one step deeper than the logo navy,
   so on a phone screen they read as the same blue as the logo (desktop keeps #09165e) */
@media (max-width: 760px) {
  :root { --ink: #050c38; --navy-deep: #040a30; }
  .hero__media::after {
    background:
      radial-gradient(120% 80% at 20% 50%, rgba(5, 12, 56, 0.6), rgba(5, 12, 56, 0.92) 80%),
      linear-gradient(180deg, rgba(5, 12, 56, 0.6), rgba(5, 12, 56, 0.92));
  }
  .site-header.is-scrolled:not([data-theme="light"]) { background: rgba(5, 12, 56, 0.85); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* ---------- Home · 01 Position ---------- */
.position__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}
.position__statement { max-width: 26ch; font-size: clamp(1.7rem, 3.1vw, 2.85rem); }
.position__statement em { color: var(--muted-on-paper); }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line-on-paper); }
.fact {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line-on-paper);
}
.fact__figure {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact__figure span { font-size: 0.55em; vertical-align: 0.55em; margin-left: 0.05em; }
.fact__figure .fact__unit { vertical-align: baseline; font-size: 0.5em; margin: 0 0.08em; }
.fact dd { font-size: var(--fs-s); color: var(--muted-on-paper); line-height: 1.55; }

@media (max-width: 960px) {
  .position__grid { grid-template-columns: 1fr; }
}

/* ---------- Home · 02 Practices ---------- */
.practices__title { margin-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.practices__title em { color: var(--muted-on-ink); }
.practices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-on-ink);
}
.practice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(2.5rem, 4.5vw, 4.5rem) clamp(1.25rem, 3.5vw, 3.5rem) clamp(2.5rem, 4.5vw, 4rem) 0;
  isolation: isolate;
  overflow: hidden;
}
.practice + .practice {
  border-left: 1px solid var(--line-on-ink);
  padding-left: clamp(1.25rem, 3.5vw, 3.5rem);
}
.practice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 22, 94, 0.0), rgba(9, 22, 94, 0.55));
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.practice:hover::before { opacity: 1; }
.practice__num {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.8;
  color: var(--grey-dark);
  font-style: italic;
  min-width: 1.6ch;
  transition: color 700ms var(--ease);
}
.practice:hover .practice__num { color: var(--paper); }
.practice__body { display: grid; gap: 1.1rem; align-content: start; }
.practice__title { display: block; max-width: 17ch; }
.practice__text { display: block; color: var(--muted-on-ink); max-width: 30rem; }
.practice__terms {
  display: block;
  font-size: var(--fs-s);
  padding-block: 1.1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
  color: rgba(242, 241, 237, 0.8);
}
.practice .link-line { justify-self: start; margin-top: 0.75rem; }

@media (max-width: 860px) {
  .practices__grid { grid-template-columns: 1fr; }
  .practice { padding-right: 0; }
  .practice + .practice { border-left: 0; border-top: 1px solid var(--line-on-ink); padding-left: 0; }
}

/* ---------- Home · 03 Both sides of the table ---------- */
.table-sec__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7.5rem);
}
.table-sec__intro .h2 em { color: var(--muted-on-paper); }

.tableviz {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem repeat(4, minmax(0, 1fr));
  grid-template-rows: auto minmax(10rem, auto) auto minmax(10rem, auto);
  column-gap: clamp(0.75rem, 1.8vw, 1.75rem);
}
.tableviz__rowlabels {
  grid-column: 1;
  grid-row: 1 / 5;
  display: grid;
  grid-template-rows: subgrid;
}
.tableviz__rowlabels span:nth-child(1) { grid-row: 2; align-self: end; padding-bottom: 2.25rem; }
.tableviz__rowlabels span:nth-child(2) { grid-row: 3; align-self: center; }
.tableviz__rowlabels span:nth-child(3) { grid-row: 4; align-self: start; padding-top: 2.25rem; color: var(--muted-on-paper); }
.tableviz__mid-label { position: relative; z-index: 1; justify-self: start; padding-right: 0.9rem; background: var(--paper); }

.tableviz__axis {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: center;
  height: 1px;
  background: var(--navy);
  opacity: 0.55;
  pointer-events: none;
}

.tableviz__cols {
  grid-column: 2 / -1;
  grid-row: 1 / 5;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}
.tv-col {
  grid-row: 1 / 5;
  display: grid;
  grid-template-rows: subgrid;
  transition: opacity 600ms var(--ease);
}
.tableviz__cols:hover .tv-col:not(:hover) { opacity: 0.38; }

.tv-col__head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-on-paper);
  color: var(--muted-on-paper);
}
.tv-col__top,
.tv-col__bottom {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.3;
}
.tv-col__top { align-self: end; padding-top: 2rem; padding-bottom: 2.25rem; }
.tv-col__bottom { align-self: start; padding-top: 2.25rem; font-style: italic; color: var(--muted-on-paper); }
/* ticks tying each side to the line */
.tv-col__top::after,
.tv-col__bottom::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 1.35rem;
  background: var(--navy);
  opacity: 0.4;
}
.tv-col__top::after { bottom: 0; }
.tv-col__bottom::before { top: 0; }

.tv-col__mid {
  align-self: center;
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.3;
}
.tv-side { display: block; margin-bottom: 0.6rem; font-size: 0.6875rem; color: var(--muted-on-paper); font-style: normal; }
.tv-col__mid .tv-side { color: rgba(242, 241, 237, 0.72); }
@media (min-width: 1000px) {
  .tv-col__top .tv-side,
  .tv-col__bottom .tv-side { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tv-col__mid .tv-side { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* choreography: the two sides move toward the line */
.js .tableviz .tv-col__top { opacity: 0; transform: translateY(-28px); }
.js .tableviz .tv-col__bottom { opacity: 0; transform: translateY(28px); }
.js .tableviz .tv-col__mid { opacity: 0; clip-path: inset(50% 0 50% 0); }
.js .tableviz .tv-col__top,
.js .tableviz .tv-col__bottom,
.js .tableviz .tv-col__mid {
  transition: opacity 1000ms var(--ease), transform 1400ms var(--ease-out), clip-path 1100ms var(--ease-out);
}
.js .tableviz.is-in .tv-col__top,
.js .tableviz.is-in .tv-col__bottom { opacity: 1; transform: none; transition-delay: calc(var(--c, 0) * 140ms + 300ms); }
.js .tableviz.is-in .tv-col__mid { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: calc(var(--c, 0) * 140ms + 900ms); }
.js .tableviz.is-in .tv-col__bottom { opacity: 1; }
.tv-col:nth-child(2) { --c: 1; }
.tv-col:nth-child(3) { --c: 2; }
.tv-col:nth-child(4) { --c: 3; }

@media (max-width: 999px) {
  .table-sec__intro { grid-template-columns: 1fr; }
  .tableviz { display: block; }
  .tableviz__rowlabels, .tableviz__axis { display: none; }
  .tableviz__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 3rem 1.5rem; }
  .tv-col { grid-row: auto; display: flex; flex-direction: column; }
  .tv-col__top { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .tv-col__top::after, .tv-col__bottom::before { left: 1.2rem; }
  .tv-col__bottom { padding-top: 1.5rem; }
}
@media (max-width: 600px) {
  .tableviz__cols { grid-template-columns: 1fr; }
}

/* ---------- Home · 04 Experience ---------- */
.experience__intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.experience__intro .h2 em { color: var(--muted-on-ink); }
.experience__intro p { max-width: 22rem; }

.deals { border-top: 1px solid var(--line-on-ink); }
.deal {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 18rem);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line-on-ink);
  align-items: baseline;
}
.deal::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px;
  width: 100%;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
.deal:hover::before { transform: scaleX(1); }
.deal__when { color: var(--muted-on-ink); }
.deal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.2;
}
.deal__desc { color: var(--muted-on-ink); margin-top: 0.4rem; max-width: 40rem; font-size: var(--fs-s); }
.deal__tag { justify-self: end; color: var(--muted-on-ink); }
.deal--feature { padding-block: clamp(2.2rem, 4vw, 3.2rem); align-items: start; }
.deal--feature .deal__title { font-weight: 300; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
.deal--feature .deal__desc { font-size: var(--fs-body); margin-top: 1rem; }
.deal--feature .x { font-style: italic; color: var(--grey-dark); margin-inline: 0.1em; }
.deal__role {
  display: grid;
  gap: 0.55rem;
  font-size: var(--fs-s);
  padding-top: 0.6rem;
}
.deal__role li { display: flex; gap: 0.75rem; }
.deal__role li::before { content: ""; flex: none; width: 0.9rem; height: 1px; background: var(--grey-dark); margin-top: 0.8em; }

@media (max-width: 860px) {
  .deal { grid-template-columns: 1fr; gap: 0.6rem; }
  .deal__tag { justify-self: start; }
}

.names { margin-top: clamp(5rem, 10vw, 9rem); }
.names__title { margin-bottom: 2.5rem; }
.names__split {
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.names__line { grid-column: 1 / -1; height: 1px; background: rgba(242, 241, 237, 0.45); margin-block: 1.5rem; }
.names__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.names__row li { transition: color 400ms var(--ease); }
.names__row li:hover { color: var(--paper); }
.names__row li:not(:last-child)::after { content: "·"; margin-inline: 0.55em; color: var(--grey-dark); }
.names__row--top { color: rgba(242, 241, 237, 0.88); }
.names__row--bottom { color: rgba(242, 241, 237, 0.6); font-style: italic; }
.names__note { margin-top: 2.5rem; font-size: 0.8125rem; }
@media (max-width: 760px) {
  .names__split { grid-template-columns: 1fr; }
  .names__side { margin-bottom: 0.75rem; }
  .names__line { order: 0; }
}

/* ---------- Advisory · practice pages ---------- */
.practice-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 8rem);
}
.practice-page__sticky { position: sticky; top: 7.5rem; display: grid; gap: 1.25rem; }
.practice-page__num {
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 0.8;
  font-style: italic;
  color: var(--grey-dark);
  margin-bottom: 1rem;
}
.theme-paper .practice-page__num { color: var(--grey-light); }
.practice-page .h2 em { color: var(--muted-on-ink); }
.theme-paper.practice-page .h2 em { color: var(--muted-on-paper); }
.practice-page__main { display: grid; gap: clamp(3rem, 6vw, 5rem); align-content: start; }
.practice-page__main > .statement { max-width: 28ch; }

.caps { border-top: 1px solid var(--line-on-ink); }
.theme-paper .caps { border-color: var(--line-on-paper); }
.cap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-on-ink);
}
.theme-paper .cap { border-color: var(--line-on-paper); }
.cap dt { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.cap dd { font-size: var(--fs-s); color: var(--muted-on-ink); line-height: 1.6; }
.theme-paper .cap dd { color: var(--muted-on-paper); }
.caps--compact .cap { grid-template-columns: 1fr; gap: 0.45rem; padding-block: 1.3rem; }
.caps--compact .cap dt { font-size: 1.2rem; }

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  font-size: var(--fs-s);
}
.audience .label { margin-bottom: 0.75rem; }

.proof {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.4;
  padding-left: 1.5rem;
  border-left: 1px solid var(--grey-dark);
  max-width: 38rem;
}
.proof .label { display: block; font-family: var(--font-brand); margin-bottom: 0.75rem; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.sides__head { padding-bottom: 1rem; }

.categories { display: grid; gap: 1.25rem; }
.categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.categories__list li {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-on-paper);
  font-size: var(--fs-s);
  transition: background 400ms, color 400ms;
}
.categories__list li:hover { background: var(--navy); color: var(--paper); }
.categories__next {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-on-paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}
.categories__next .label { font-family: var(--font-brand); margin-right: 0.75rem; color: var(--muted-on-paper); }

@media (max-width: 960px) {
  .practice-page__grid { grid-template-columns: 1fr; }
  .practice-page__sticky { position: static; }
  .sides, .audience { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 1fr; gap: 0.45rem; }
}

/* ---------- Advisory · III Signature ---------- */
.signature__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.signature__intro .h2 em { color: var(--muted-on-ink); }

.sig { position: relative; }
/* Two chevrons, as in the mark: converging on the signature, then opening out.
   Each is revealed with reading progress (--p above the line, --q below). */
.sig__frame {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
}
/* lines fade out toward the centre column so they never cross the copy */
.sig__frame {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 33%, transparent 67%, #000 82%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 33%, transparent 67%, #000 82%, #000 100%);
}
.sig__frame--top { top: 0; clip-path: inset(0 0 calc((1 - var(--p, 1)) * 100%) 0); }
.sig__frame--bottom { bottom: 0; clip-path: inset(0 0 calc((1 - var(--q, 1)) * 100%) 0); }
.sig__v {
  fill: none;
  stroke: rgba(242, 241, 237, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sig__steps { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.sig__steps--before { padding-bottom: clamp(2rem, 4vw, 3rem); }
.sig__steps--after { padding-top: clamp(2rem, 4vw, 3rem); }
.sig__step {
  width: var(--w, 100%);
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}
.sig__step .label { color: var(--grey-dark); }
.sig__step h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.sig__step p { color: var(--muted-on-ink); font-size: var(--fs-s); max-width: 26rem; }
.sig__steps--after .sig__step h3 { font-style: italic; }

.sig__line {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.sig__line-rule { flex: 1; height: 1px; background: rgba(242, 241, 237, 0.7); }
.sig__line-rule:last-child { transform-origin: right; }
.sig__line-mark svg { width: 44px; height: 44px; }
.sig__line-label { letter-spacing: 0.42em; }

@media (max-width: 860px) {
  .signature__intro { grid-template-columns: 1fr; }
  .sig__frame { display: none; }
  .sig__step { width: 100%; }
}

/* ---------- Firm · Approach ---------- */
.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.approach__grid .statement em { color: var(--muted-on-paper); }
.principles { border-top: 1px solid var(--line-on-paper); }
.principle {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line-on-paper);
  align-items: baseline;
}
.principle .label { color: var(--muted-on-paper); }
.principle h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.principle p { font-size: var(--fs-s); color: var(--muted-on-paper); }
@media (max-width: 960px) {
  .approach__grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 2.5rem 1fr; }
  .principle p { grid-column: 2; }
}

/* ---------- Firm · Founder ---------- */
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.founder__media {
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.duotone--portrait img { opacity: 0.8; filter: grayscale(1) contrast(1.05) brightness(1.05); }
.duotone--portrait::after { background: linear-gradient(180deg, rgba(9, 22, 94, 0.15), rgba(9, 22, 94, 0.55)); }
.founder__body .section-head { margin-bottom: 2.5rem; }
.founder__role { margin-top: 1.25rem; margin-bottom: 2.5rem; }
.founder__prose { color: rgba(242, 241, 237, 0.82); }
@media (max-width: 860px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__media { max-width: 26rem; }
}

/* ---------- Firm · Reach ---------- */
.reach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.reach .h2 em { color: var(--muted-on-ink); }
.coords { margin-top: 3rem; display: grid; gap: 1rem; }
.coords li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-on-ink);
}
.coords__city { font-family: var(--font-display); font-size: 1.6rem; font-weight: 300; }
.markets { border-top: 1px solid var(--line-on-ink); }
.market { padding-block: 1.5rem; border-bottom: 1px solid var(--line-on-ink); display: grid; gap: 0.4rem; }
.market dt { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.market dd { color: var(--muted-on-ink); font-size: var(--fs-s); max-width: 30rem; }
@media (max-width: 860px) {
  .reach__grid { grid-template-columns: 1fr; }
}

/* ---------- Firm · Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.contact__intro { display: grid; gap: 1.75rem; }
.contact__intro .h2 em { color: var(--muted-on-paper); }
.contact__intro > p.muted { max-width: 26rem; }
.contact__direct { display: grid; border-top: 1px solid var(--line-on-paper); margin-top: 1rem; }
.contact__direct > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-on-paper);
}

.enquiry { display: grid; gap: 2.25rem; padding-top: 0.5rem; }
.enquiry__side { border: 0; padding: 0; margin: 0; min-width: 0; }
.enquiry__side legend { margin-bottom: 1.1rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--line-on-paper);
  font-size: var(--fs-s);
  transition: background 400ms var(--ease), color 400ms var(--ease), border-color 400ms;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.chip input:focus-visible + span { outline: 1px solid var(--navy); outline-offset: 3px; }

.enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 1.6rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line-on-paper);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  transition: border-color 400ms;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: 0; border-bottom-color: var(--navy); }
.field label {
  position: absolute;
  left: 0;
  top: 1.65rem;
  font-size: 1rem;
  color: var(--muted-on-paper);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 500ms var(--ease-out), color 400ms;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.55rem) scale(0.78);
  color: var(--navy);
}
.field.is-invalid input { border-bottom-color: #9b2c2c; }
.enquiry__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.enquiry__note { font-size: 0.8125rem; }
.enquiry__note.is-error { color: #9b2c2c; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .enquiry__row { grid-template-columns: 1fr; }
}

/* ---------- Legal ---------- */
.legal + .legal { border-top: 1px solid var(--line-on-paper); }
.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 7rem);
}
.legal__body { max-width: 44rem; }
.legal__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
}
.legal__body p + p { margin-top: 1em; }
.legal__body p { color: var(--muted-on-paper); }
.legal__facts { border-top: 1px solid var(--line-on-paper); }
.legal__facts > div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-on-paper);
}
@media (max-width: 860px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ===================================================================
   v3 sections
   =================================================================== */
.approach__intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}
.approach__intro .h2 em { color: var(--muted-on-paper); }
.tenets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.tenet { display: grid; gap: 0.9rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--line-on-paper); }
.tenet h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.tenet p { color: var(--muted-on-paper); font-size: var(--fs-s); line-height: 1.65; max-width: 26ch; }
.tenet__bar,
.practice-page__bar {
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy) 0 55%, var(--grey-dark) 55% 100%);
}
@media (max-width: 1000px) { .tenets { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 760px) {
  .approach__intro { grid-template-columns: 1fr; }
  .tenets { grid-template-columns: 1fr; }
}

.practice-page__sub { font-family: var(--font-display); font-size: var(--fs-m); line-height: 1.35; }
.practice-page__sub i { font-style: normal; opacity: 0.4; margin-inline: 0.15em; }
.theme-paper .practice-page__sub { color: var(--navy); }

.svc { border-top: 1px solid var(--line-on-ink); }
.theme-paper .svc { border-color: var(--line-on-paper); }
.svc li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-on-ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.35;
}
.theme-paper .svc li { border-color: var(--line-on-paper); }

/* contact on ink */
.contact { position: relative; overflow: hidden; }
.contact .wrap { position: relative; }
.theme-ink .contact__intro .h2 em { color: var(--muted-on-ink); }
.contact__li { font-size: var(--fs-s); }
.theme-ink .field input,
.theme-ink .field textarea { border-bottom-color: var(--line-on-ink); color: var(--text-on-ink); }
.theme-ink .field input:focus,
.theme-ink .field textarea:focus { border-bottom-color: var(--paper); }
.theme-ink .field label { color: var(--muted-on-ink); }
.theme-ink .field input:focus + label,
.theme-ink .field input:not(:placeholder-shown) + label,
.theme-ink .field textarea:focus + label,
.theme-ink .field textarea:not(:placeholder-shown) + label { color: var(--text-on-ink); }
.theme-ink .enquiry__note.is-error { color: #f0a3a3; }
.field.is-invalid textarea { border-bottom-color: #9b2c2c; }


.approach__intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(3rem, 7vw, 8rem); }
.approach__statement { max-width: 28ch; }
.approach__statement em { color: var(--muted-on-paper); }
@media (max-width: 860px) { .approach__intro { grid-template-columns: 1fr; } }
