/* ==========================================================================
   Oren Ventures — orenventures.co.uk
   Hand-built. No framework, no dependencies, no third-party requests.
   Palette sampled directly from the Oren Ventures brand board.

   Two grounds only: warm ivory and deep navy. Orange is an event, not a
   decoration — the mark, the second line of a two-tone headline, the primary
   call to action, one band per page, hover, and pre-publication flags.
   Small type is ink at reduced opacity: quieter and more legible.
   ========================================================================== */

/* ---------------------------------------------------------------- 0. Fonts */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- 1. Tokens */

:root {
  color-scheme: light;

  --orange:        #E36C45;
  --orange-ink:    #A6401C;   /* only where orange must carry small text */

  --ink:           #0A1030;
  --ink-deep:      #05081F;
  --ink-78:        rgba(10, 16, 48, 0.78);
  --ink-68:        rgba(10, 16, 48, 0.68);
  --ink-52:        rgba(10, 16, 48, 0.60);
  --ink-14:        rgba(10, 16, 48, 0.13);
  --ink-08:        rgba(10, 16, 48, 0.07);

  --ivory:         #F7F3ED;
  --ivory-warm:    #FBF8F3;
  --ivory-78:      rgba(247, 243, 237, 0.78);
  --ivory-58:      rgba(247, 243, 237, 0.62);
  --ivory-16:      rgba(247, 243, 237, 0.15);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.5rem, 5.2vw, 6rem);
  --measure: 36rem;
  --rule: 1px solid var(--ink-14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- 2. Reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.985rem, 0.95rem + 0.16vw, 1.0625rem);
  line-height: 1.72;
  letter-spacing: -0.004em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--orange); color: var(--ivory-warm); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--ivory);
  padding: 0.9rem 1.4rem; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

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

/* ----------------------------------------------------------- 3. Typography */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.014em;
  line-height: 1.08;
  text-wrap: balance;
}

.d1 { font-size: clamp(2.65rem, 1.4rem + 4.6vw, 5.5rem); line-height: 1.0;  letter-spacing: -0.024em; }
.d2 { font-size: clamp(2.1rem, 1.4rem + 2.7vw, 3.9rem);   line-height: 1.06; letter-spacing: -0.022em; }
.d3 { font-size: clamp(1.65rem, 1.3rem + 1.3vw, 2.4rem);  line-height: 1.14; letter-spacing: -0.018em; }

.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 1.2rem + 1.65vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* The two-tone headline — the brand's typographic signature.
   Line one in the primary colour, line two in the secondary. Two lines only. */
.tt > span { display: block; font-weight: inherit; }
.tt__b { color: rgba(10, 16, 48, 0.62); }
.on-ink .tt__b { color: var(--orange); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.675rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink-52);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.eyebrow--rule::before {
  content: "";
  width: clamp(1.25rem, 3.5vw, 2.5rem);
  height: 1px;
  background: var(--orange);
  opacity: 0.9;
  transform: translateY(-0.28em);
  flex: none;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-78);
  max-width: 34rem;
}

.prose { max-width: var(--measure); color: var(--ink-68); }
.prose p + p { margin-top: 1.15em; }
.prose strong { color: var(--ink); font-weight: 500; }

/* Quiet supporting type: microcopy under an action, an adviser's route in */
.microcopy { font-size: 0.9375rem; line-height: 1.62; color: var(--ink-52); max-width: 32rem; text-wrap: pretty; }
.on-ink .microcopy { color: var(--ivory-58); }

/* --------------------------------------------------------------- 4. Layout */

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

.section { padding-block: clamp(4.75rem, 9.5vw, 11rem); position: relative; }
.section--tight { padding-block: clamp(3.25rem, 6vw, 6.5rem); }
.section--divided { border-top: var(--rule); }

.grid { display: grid; gap: clamp(2rem, 4vw, 4.5rem); }
.g-12 { grid-template-columns: repeat(12, 1fr); }

@media (max-width: 63.99em) { .g-12 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 47.99em) {
  .g-12 { display: block; }
  .g-12 > * + * { margin-top: clamp(2rem, 7vw, 3rem); }
}

.col-1  { grid-column-end: span 1; }
.col-2  { grid-column-end: span 2; }
.col-3  { grid-column-end: span 3; }
.col-4  { grid-column-end: span 4; }
.col-5  { grid-column-end: span 5; }
.col-6  { grid-column-end: span 6; }
.col-7  { grid-column-end: span 7; }
.col-8  { grid-column-end: span 8; }
.col-9  { grid-column-end: span 9; }
.col-10 { grid-column-end: span 10; }
.col-12 { grid-column: 1 / -1; }
.start-2 { grid-column-start: 2; }
.start-4 { grid-column-start: 4; }
.start-5 { grid-column-start: 5; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }

@media (max-width: 63.99em) {
  .col-1, .col-2, .col-3, .col-4 { grid-column-end: span 3; }
  .col-5, .col-6, .col-7 { grid-column-end: span 6; }
  .col-8, .col-9, .col-10 { grid-column-end: span 6; }
  .start-2, .start-4, .start-5, .start-6, .start-7, .start-8, .start-9 { grid-column-start: auto; }
}


.stack > * + * { margin-top: clamp(1.5rem, 2.4vw, 2.25rem); }

/* The left rail travels with the reader rather than emptying out beneath its
   label. Sticky needs an explicit start alignment inside a grid row. */
@media (min-width: 48em) {
  .grid > [class*="col-"] > .eyebrow:only-child {
    position: sticky;
    top: clamp(7.5rem, 12vw, 9.5rem);
  }
  .rail {
    position: sticky;
    top: clamp(7.5rem, 12vw, 9.5rem);
    align-self: start;
  }
}

/* ------------------------------------------------------ 5. Colour surfaces */

.on-ink { background: var(--ink); color: var(--ivory); }
.on-ink .eyebrow { color: var(--ivory-58); }
.on-ink .lede, .on-ink .prose { color: var(--ivory-78); }
.on-ink .prose strong { color: var(--ivory); }
.on-ink .section--divided { border-color: var(--ivory-16); }

.on-orange { background: var(--orange); color: var(--ink); }
.on-orange .eyebrow { color: rgba(10, 16, 48, 0.82); }
.on-orange .eyebrow--rule::before { background: var(--ink); }
.on-orange .lede, .on-orange .prose { color: rgba(10, 16, 48, 0.84); }

.on-ivory-warm { background: var(--ivory-warm); }

/* -------------------------------------------------------------- 6. Actions */

.btn {
  --btn-fg: var(--ivory-warm);
  --btn-bg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.15rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  cursor: pointer;
  transition: background 460ms var(--ease), color 460ms var(--ease), border-color 460ms var(--ease);
}
.btn .arw { width: 0.85rem; height: 1px; background: currentColor; flex: none; position: relative; }
.btn .arw::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.btn--orange { --btn-bg: var(--orange); --btn-fg: var(--ink); }
.btn--orange:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory-warm); }
.on-ink .btn--orange:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink-14); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory-warm); }
.on-ink .btn--ghost { --btn-fg: var(--ivory); border-color: var(--ivory-16); }
.on-ink .btn--ghost:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

@media (max-width: 30em) {
  .btn { font-size: 0.66rem; letter-spacing: 0.11em; padding: 1rem 1.25rem; gap: 0.7rem; }
}

.tlink {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink-14);
  transition: border-color 460ms var(--ease), color 460ms var(--ease);
}
.tlink .arw { width: 0.85rem; height: 1px; background: currentColor; position: relative; flex: none; }
.tlink .arw::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.tlink:hover { color: var(--orange-ink); border-color: var(--orange-ink); }

.on-ink .tlink { border-color: var(--ivory-16); }
.on-ink .tlink:hover { color: var(--orange); border-color: var(--orange); }
.on-orange .tlink { border-color: rgba(10, 16, 48, 0.28); }
.on-orange .tlink:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 30em) {
  .tlink { font-size: 0.66rem; letter-spacing: 0.11em; gap: 0.6rem; }
}

/* ------------------------------------------------------------- 7. Masthead */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 520ms var(--ease), border-color 520ms var(--ease), color 400ms var(--ease);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: clamp(4.75rem, 6.4vw, 6.5rem);
  transition: height 520ms var(--ease);
}
.masthead.is-stuck {
  background: rgba(247, 243, 237, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--ink-08);
}
.masthead.is-stuck .masthead__inner { height: clamp(4rem, 5vw, 4.9rem); }

/* Every page opens on a navy band, so the masthead inverts until it sticks. */
.masthead:not(.is-stuck) { color: var(--ivory); }
.masthead:not(.is-stuck) .nav__link { color: var(--ivory-78); }
.masthead:not(.is-stuck) .nav__link:hover,
.masthead:not(.is-stuck) .nav__link[aria-current="page"] { color: var(--ivory); }
.masthead:not(.is-stuck) .nav__cta { border-color: var(--ivory-16); color: var(--ivory); }
.masthead:not(.is-stuck) .nav__cta:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.lockup { display: flex; align-items: center; gap: 0.8rem; }
.lockup__mark {
  width: clamp(2.15rem, 2.5vw, 2.45rem); aspect-ratio: 1;
  background: var(--orange); display: grid; place-items: center;
  transition: background 460ms var(--ease);
}
.lockup__mark svg { width: 52%; height: auto; color: var(--ink); }
.lockup__word { width: clamp(4.3rem, 5.2vw, 5rem); color: currentColor; }
.lockup:hover .lockup__mark { background: var(--ink); }
.lockup:hover .lockup__mark svg { color: var(--ivory); }
.masthead:not(.is-stuck) .lockup:hover .lockup__mark { background: var(--ivory); }
.masthead:not(.is-stuck) .lockup:hover .lockup__mark svg { color: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.7vw, 2.9rem); }
.nav__link {
  font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  position: relative; padding-block: 0.4rem; white-space: nowrap;
  color: var(--ink-78);
  transition: color 400ms var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 520ms var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__cta {
  padding: 0.9rem 1.35rem; font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink-14); white-space: nowrap;
  transition: background 460ms var(--ease), color 460ms var(--ease), border-color 460ms var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--ivory-warm); border-color: var(--ink); }

.menu-btn {
  display: none; align-items: center; gap: 0.75rem;
  background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.menu-btn__bars { width: 1.5rem; display: grid; gap: 5px; }
.menu-btn__bars i { display: block; height: 1px; background: currentColor; transition: transform 420ms var(--ease), opacity 300ms var(--ease); }
body.menu-open .menu-btn__bars i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-btn__bars i:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn__bars i:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 63.99em) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--ivory);
  padding: clamp(6.5rem, 18vw, 8.5rem) var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 760ms var(--ease);
  overflow-y: auto; visibility: hidden;
}
body.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__nav { display: grid; gap: 0.25rem; }
.drawer__nav a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.2; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ivory-16);
  padding-block: 0.65rem;
  opacity: 0; transform: translateY(0.75rem);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease), color 300ms var(--ease);
}
body.menu-open .drawer__nav a { opacity: 1; transform: none; }
body.menu-open .drawer__nav a:nth-child(1) { transition-delay: 200ms; }
body.menu-open .drawer__nav a:nth-child(2) { transition-delay: 255ms; }
body.menu-open .drawer__nav a:nth-child(3) { transition-delay: 310ms; }
body.menu-open .drawer__nav a:nth-child(4) { transition-delay: 365ms; }
body.menu-open .drawer__nav a:nth-child(5) { transition-delay: 420ms; }
.drawer__nav a:hover { color: var(--orange); }
.drawer__foot { margin-top: 3rem; font-size: 0.8rem; color: var(--ivory-58); letter-spacing: 0.02em; }
.drawer__foot a { color: var(--ivory); }

body.menu-open { overflow: hidden; }
body.menu-open .masthead {
  color: var(--ivory); background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}
body.menu-open .lockup__mark { background: var(--orange); }

/* ----------------------------------------------------------------- 8. Hero */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(7.75rem, 13.5vw, 11.5rem) clamp(3.5rem, 7vw, 6.5rem);
  max-width: 41rem;
  min-height: min(84vh, 46rem);
  min-height: min(84svh, 46rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title { margin-top: clamp(1.5rem, 3.2vw, 2.5rem); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(104%); transition: transform 1150ms var(--ease); }
.js .hero.is-in .hero__title .line > span { transform: none; }
.js .hero__title .line:nth-child(2) > span { transition-delay: 100ms; }

.hero__foot {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
  justify-items: start;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.js .hero__foot { opacity: 0; transition: opacity 950ms var(--ease) 500ms; }
.js .hero.is-in .hero__foot { opacity: 1; }

/* The photograph bleeds to the right and bottom edges of the viewport and
   butts directly against the navy. A single orange hairline marks the join. */
.hero__media { position: absolute; inset: 0 0 0 auto; width: 46vw; max-width: 60rem; z-index: 1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 42%; }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Two scrims: one carries the photograph into the navy on the left, the
     other keeps the masthead legible where it crosses the image. */
  background:
    linear-gradient(180deg, rgba(10, 16, 48, 0.82) 0%, rgba(10, 16, 48, 0.34) 12%, rgba(10, 16, 48, 0) 24%),
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 16, 48, 0.72) 20%, rgba(10, 16, 48, 0.12) 52%, rgba(10, 16, 48, 0.28) 100%);
}
.hero__media::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 3px;
  top: clamp(4.75rem, 6.4vw, 6.5rem);
  background: var(--orange); z-index: 2;
}

@media (max-width: 63.99em) {
  .hero__inner { max-width: none; min-height: 0; padding-block: clamp(7rem, 17vw, 9rem) clamp(2.5rem, 6vw, 3.5rem); }
  .hero__media {
    position: relative; inset: auto; width: auto; max-width: none;
    aspect-ratio: 4 / 3;
  }
  .hero__media img { object-position: 54% 34%; }
  .hero__media::before { background: linear-gradient(180deg, rgba(10, 16, 48, 0.45) 0%, rgba(10, 16, 48, 0) 18%); }
  .hero__media::after { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 3px; }
}

/* --------------------------------------------------------- 9. Reveals */

.js [data-reveal] { opacity: 0; transition: opacity 1100ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; }
[data-reveal-delay="1"] { transition-delay: 90ms; }
[data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal-delay="3"] { transition-delay: 270ms; }
[data-reveal-delay="4"] { transition-delay: 360ms; }

.mask-img { overflow: hidden; position: relative; }
.mask-img > img { width: 100%; }
.js .mask-img > img {
  transform: scale(1.04);
  transition: transform 1700ms var(--ease), clip-path 1500ms var(--ease);
  clip-path: inset(0 0 100% 0);
}
.js .mask-img.is-in > img { transform: none; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js .hero__foot { opacity: 1 !important; transform: none !important; }
  .js .hero__title .line > span { transform: none !important; }
  .js .mask-img > img { clip-path: none !important; transform: none !important; }
}

/* ------------------------------------------------- 10. Editorial components */

/* An index, not a bullet list: title and gloss in two columns, divided by hairlines */
.ruled { border-top: var(--rule); }
.ruled > li {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(0.75rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.3rem, 2.2vw, 1.95rem);
  border-bottom: var(--rule);
}
.ruled .t {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(1.15rem, 1.02rem + 0.42vw, 1.45rem);
  line-height: 1.24; letter-spacing: -0.012em;
}
.ruled .d { font-size: 0.95rem; line-height: 1.6; color: var(--ink-52); max-width: 38rem; }
@media (max-width: 47.99em) {
  .ruled > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .ruled .t { text-wrap: initial; }
}
.on-ink .ruled, .on-ink .ruled > li { border-color: var(--ivory-16); }
.on-ink .ruled .d { color: var(--ivory-58); }
.on-orange .ruled, .on-orange .ruled > li { border-color: rgba(10, 16, 48, 0.28); }
.on-orange .ruled .d { color: rgba(10, 16, 48, 0.86); }

/* Numbered variant — used only where a genuine sequence or rank exists */
.ruled--num > li { grid-template-columns: 2.5rem minmax(0, 0.85fr) minmax(0, 1.1fr); }
.ruled--num .n {
  font-family: var(--sans); font-size: 0.675rem; letter-spacing: 0.2em; font-weight: 500;
  color: var(--ink-52); font-variant-numeric: tabular-nums; padding-top: 0.35em;
}
.on-ink .ruled--num .n { color: var(--ivory-58); }
@media (max-width: 47.99em) {
  .ruled--num > li { grid-template-columns: 2.25rem 1fr; }
  .ruled--num > li > .d { grid-column: 2; margin-top: 0.4rem; }
}

/* Definition blocks — a label and a short paragraph under a hairline */
.defs { display: grid; gap: clamp(2rem, 3.5vw, 3.5rem); }
.defs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 63.99em) { .defs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .defs--2, .defs--3 { grid-template-columns: 1fr; } }
.def { border-top: 1px solid var(--ink-14); padding-top: 1.2rem; }
.def h3 {
  font-family: var(--sans); font-size: 0.675rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-52);
}
.def p { margin-top: 0.9rem; color: var(--ink-68); font-size: 0.985rem; line-height: 1.62; }
.on-ink .def { border-color: var(--ivory-16); }
.on-ink .def h3 { color: var(--ivory-58); }
.on-ink .def p { color: var(--ivory-78); }
.on-orange .def { border-color: rgba(10, 16, 48, 0.28); }
.on-orange .def h3 { color: rgba(10, 16, 48, 0.82); }
.on-orange .def p { color: rgba(10, 16, 48, 0.82); }

/* Four one-word stages, divided by vertical hairlines */
.stages4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule); }
.stages4 > li {
  padding: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 2.6vw, 2.4rem);
  border-left: var(--rule);
}
.stages4 > li:first-child { padding-left: 0; border-left: 0; }
.stages4 .n {
  display: block; font-size: 0.675rem; letter-spacing: 0.2em; font-weight: 500;
  color: var(--ink-52); font-variant-numeric: tabular-nums;
}
.stages4 h3 { margin-top: 0.9rem; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.16; }
.stages4 p { margin-top: 0.75rem; font-size: 0.925rem; line-height: 1.6; color: var(--ink-52); }
.on-ink .stages4, .on-ink .stages4 > li { border-color: var(--ivory-16); }
.on-ink .stages4 .n, .on-ink .stages4 p { color: var(--ivory-58); }
@media (max-width: 63.99em) {
  .stages4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages4 > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stages4 > li { padding-bottom: clamp(1.5rem, 3vw, 2rem); }
}
@media (max-width: 40em) {
  .stages4 { grid-template-columns: 1fr; }
  .stages4 > li { padding-inline: 0; border-left: 0; border-bottom: var(--rule); padding-block: 1.5rem; }
  .stages4 > li:last-child { border-bottom: 0; }
}

/* Three promises, set as statements rather than a card row */
.promises { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); max-width: 46rem; }
.promises h3 { font-size: clamp(1.4rem, 1.15rem + 0.85vw, 2rem); line-height: 1.16; }
.promises p { margin-top: 0.7rem; font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem); line-height: 1.62; color: var(--ink-68); }

/* A blunt list, where the value is the bluntness and not the indexing */
.plainlist { display: grid; gap: 1.1rem; max-width: 40rem; }
.plainlist li { position: relative; padding-left: 1.6rem; color: var(--ink-68); line-height: 1.66; }
.plainlist li::before {
  content: ""; position: absolute; left: 0; top: 0.82em;
  width: 0.7rem; height: 1px; background: var(--orange);
}

/* A rail carrying a photograph stretches to the foot of the list beside it */
@media (min-width: 48em) {
  .rail--plate { align-self: stretch; display: flex; flex-direction: column; }
  .rail--plate > div:last-child, .rail--plate > .plate--taller { flex: 1; min-height: 0; }
  .rail--plate .plate--taller { display: flex; flex-direction: column; }
  .rail--plate .plate--taller .shot, .rail--plate .plate--taller picture { flex: 1; min-height: 0; display: block; }
  .rail--plate .plate--taller img { height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* Numbered steps — the long-form sequence on Selling Your Business */
.steps { border-top: var(--rule); }
.steps > li {
  border-bottom: var(--rule);
  padding-block: clamp(1.6rem, 3vw, 2.7rem);
  display: grid;
  grid-template-columns: minmax(0, 2.25rem) minmax(0, 0.72fr) minmax(0, 1.75fr);
  column-gap: clamp(0.9rem, 1.6vw, 1.6rem);
  row-gap: 0;
  align-items: start;
}
.steps .step-n {
  font-size: 0.675rem; letter-spacing: 0.2em; font-weight: 500;
  color: var(--ink-52); padding-top: 0.55rem; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: clamp(1.3rem, 1.1rem + 0.85vw, 1.75rem); line-height: 1.16; }
.steps p { color: var(--ink-68); font-size: 0.95rem; line-height: 1.66; max-width: 32rem; padding-left: clamp(0px, 2vw, 2rem); }
.on-ink .steps p { color: var(--ivory-78); }
.on-ink .steps .step-n { color: var(--ivory-58); }
.on-ink .steps, .on-ink .steps > li { border-color: var(--ivory-16); }
@media (max-width: 47.99em) {
  .steps > li { grid-template-columns: 1fr; }
  .steps .step-n { padding-top: 0; margin-bottom: 0.45rem; }
  .steps > li > p { margin-top: 0.7rem; padding-left: 0; }
}

/* A photographic plate carrying the mark at full strength */
.oplate { position: relative; margin: 0; }
.oplate .shot { position: relative; overflow: hidden; }
.oplate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Photographic plates set into the left rail */
.plate { margin: clamp(2.25rem, 4vw, 3.25rem) 0 0; max-width: 24rem; }
.plate img { width: 100%; }
/* Where the rail would otherwise empty out beside a long list, the plate runs
   down it instead of stopping a third of the way. */
.plate--tall { max-width: none; }
.plate--taller img { aspect-ratio: 2 / 4.4; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 47.99em) { .plate--taller img { aspect-ratio: 4 / 3; } }
@media (max-width: 47.99em) { .plate { max-width: none; } }

/* A short standing row of facts under hairlines — not a statistics strip */
.trust { border-block: var(--rule); }
.trust ul {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(1.15rem, 2vw, 1.6rem);
}
.trust li { grid-column-end: span 4; }
@media (max-width: 47.99em) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li, .trust li + li, .trust li:last-child { text-align: left; }
}
.trust li {
  font-size: 0.675rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink-52);
}
@media (max-width: 40em) { .trust li { font-size: 0.625rem; letter-spacing: 0.18em; } }

/* The adviser's route in — one quiet line, deliberately undesigned */
.adviser {
  border-block: var(--rule);
  padding-block: clamp(1.4rem, 2.4vw, 2.1rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  font-size: 0.9375rem; line-height: 1.7; color: var(--ink-68);
}
.adviser strong { color: var(--ink); font-weight: 500; }
@media (max-width: 47.99em) { .adviser { grid-template-columns: 1fr; gap: 1.1rem; } }
.adviser a { color: var(--orange-ink); border-bottom: 1px solid currentColor; }
.adviser a:hover { color: var(--ink); }

/* Portraits — a hairline and space, rather than a colour block behind */
.portrait { position: relative; }
.portrait figure { margin: 0; }
@media (max-width: 47.99em) {
  .portrait--tall img { aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 55% 2%; }
}
.figure-note {
  margin-top: 1.15rem; padding-top: 0.9rem;
  border-top: 1px solid var(--ink-14);
  font-size: 0.675rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-52);
  display: flex; justify-content: space-between; gap: 1rem;
}
.on-ink .figure-note { border-color: var(--ivory-16); color: var(--ivory-58); }
@media (max-width: 47.99em) { .portrait--tall .figure-note { display: none; } }


/* The closing sentence of the business, set apart */
.coda {
  font-family: var(--serif); font-optical-sizing: auto;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
  line-height: 1.34; letter-spacing: -0.014em; color: var(--ink);
  border-top: 1px solid var(--ink); padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
  text-wrap: pretty;
}
.on-ink .coda { color: var(--ivory); border-color: var(--ivory); }

/* ----------------------------------------------------------------- 11. Form */

.form { display: grid; gap: clamp(1.5rem, 2.4vw, 2rem); }
.field { display: grid; gap: 0.6rem; }
.field label {
  font-size: 0.675rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-52);
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--ink-14);
  padding: 0.75rem 0 0.85rem;
  font-size: 1.05rem; letter-spacing: -0.008em;
  border-radius: 0; transition: border-color 400ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field textarea::-webkit-resizer { display: none; }
.field ::placeholder { color: rgba(10, 16, 48, 0.60); opacity: 1; }
.field select {
  padding-right: 2.25rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230A1030' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 13px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--orange); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 2.4vw, 2rem); }
@media (max-width: 40em) {
  .field { gap: 0.35rem; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; justify-content: space-between; }
}

.form__note { font-size: 0.85rem; line-height: 1.6; color: var(--ink-52); max-width: 34rem; }
.form__note a { border-bottom: 1px solid var(--ink-14); }
.form__note a:hover { color: var(--orange-ink); border-color: var(--orange-ink); }

.form__status {
  font-size: 0.95rem; padding: 1.05rem 1.2rem;
  border-left: 2px solid var(--orange); background: rgba(227, 108, 69, 0.07);
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.form__status a { border-bottom: 1px solid var(--ink-14); }
.form__status a:hover { color: var(--orange-ink); border-color: var(--orange-ink); }
.form__status.is-visible {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--orange-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { display: grid; gap: 1.75rem; }
.contact-list div { border-top: 1px solid var(--ink-14); padding-top: 1.1rem; }
.contact-list dt {
  font-size: 0.675rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-52); font-weight: 500; margin-bottom: 0.6rem;
}
.contact-list dd { font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere; }
.contact-list a { border-bottom: 1px solid var(--ink-14); transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.contact-list a:hover { color: var(--orange-ink); border-color: var(--orange-ink); }

/* ------------------------------------------------------ 12. Page furniture */

/* Every page except Home opens on a navy band. The section that follows
   begins immediately beneath it — never an empty run of background. */
.pagehead {
  background: var(--ink);
  color: var(--ivory);
  padding-top: clamp(8.5rem, 14vw, 12.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}
.pagehead .eyebrow { color: var(--ivory-58); }
.pagehead .eyebrow--rule::before { background: var(--orange); }
.pagehead__grid { align-items: end; }
.pagehead--doc { padding-top: clamp(7rem, 11vw, 9.5rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.pagehead__title { max-width: 20ch; margin-top: clamp(1.35rem, 2.6vw, 2.25rem); }
.pagehead .lede { color: var(--ivory-78); max-width: none; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem); }
.pagehead__aside .lede { padding-top: 1.3rem; border-top: 1px solid var(--ivory-16); }
@media (max-width: 47.99em) {
  .pagehead__aside .lede { border-top: 0; padding-top: 0; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); }
}

.cta-band { position: relative; }

/* A quieter close: one line and one action, on a hairline. Used where the page
   has already made its argument and a second dark band would be a funnel. */
.closer { border-top: var(--rule); padding-block: clamp(3rem, 6vw, 5.5rem); }
.closer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 4rem); flex-wrap: wrap;
}
.closer__line {
  font-family: var(--serif); font-optical-sizing: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
  line-height: 1.3; letter-spacing: -0.014em; color: var(--ink);
  max-width: 38rem; text-wrap: pretty;
}

.footer { background: var(--ink-deep); color: var(--ivory); padding-block: clamp(3.75rem, 6vw, 5.75rem) clamp(2rem, 3vw, 2.75rem); }
.footer a { color: var(--ivory); transition: color 300ms var(--ease); }
.footer li { color: var(--ivory-78); }
.footer a:hover { color: var(--orange); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (max-width: 63.99em) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40em) { .footer__top { grid-template-columns: 1fr; } }
.footer__label { font-size: 0.675rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-58); }
.footer ul { margin-top: 1.2rem; display: grid; gap: 0.75rem; font-size: 0.94rem; }
/* The footer carries the identity at proper scale — the one place the
   wordmark and the line are allowed to be large. */
.footer__brand .lockup { align-items: flex-start; gap: 1.15rem; }
.footer__brand .lockup__mark { width: clamp(3rem, 4.2vw, 3.75rem); }
.footer__brand .lockup__word { width: clamp(6.25rem, 9vw, 7.75rem); }
.footer__tag { width: clamp(11rem, 16vw, 14rem); margin-top: 2.5rem; color: var(--ivory); opacity: 0.85; }
.footer__legal {
  margin-top: clamp(3rem, 5vw, 4.5rem); padding-top: 1.7rem;
  border-top: 1px solid var(--ivory-16);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between;
  font-size: 0.78rem; color: rgba(247, 243, 237, 0.62); line-height: 1.65;
}
.footer__legal p { max-width: 48rem; }

/* Pre-publication markers. Visible and findable, but set as an editorial
   note rather than an error: no red, no dotted rule, no browser-warning look. */

/* Contents index for the two legal documents */
.toc ul { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.toc a {
  font-size: 0.82rem; line-height: 1.45; color: var(--ink-52);
  border-bottom: 1px solid transparent; transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.toc a:hover { color: var(--ink); border-color: var(--ink-14); }
@media (min-width: 48em) { .toc { position: sticky; top: clamp(7.5rem, 12vw, 9.5rem); } }
@media (max-width: 47.99em) { .toc { display: none; } }
[id] { scroll-margin-top: clamp(6rem, 12vw, 8rem); }
main:focus:not(:focus-visible) { outline: none; }

.smallprint { font-size: 0.925rem; line-height: 1.7; color: var(--ink-68); max-width: 48rem; }
.smallprint h2 {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink); font-weight: 500; margin-top: 2.75rem;
}
.smallprint > h2:first-child { margin-top: 0; }
.smallprint p { margin-top: 0.9rem; max-width: 44rem; }
.smallprint ul { margin-top: 0.9rem; display: grid; gap: 0.55rem; max-width: 44rem; }
.smallprint li { padding-left: 1.25rem; position: relative; }
.smallprint li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 7px; height: 1px; background: var(--ink-52); }
.smallprint a { border-bottom: 1px solid var(--ink-14); }
.smallprint a:hover { color: var(--orange-ink); border-color: var(--orange-ink); }

@media print {
  .masthead, .drawer, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
