/* ==========================================================================
   Abyss Ventures
   --------------------------------------------------------------------------
   Palette   Meltwater paper, abyssal navy ink, deep teal as a second ink.
             One inverted section. No gradients, no glows.
   Type      Newsreader (display + italic labels) / Instrument Sans (text).
             No monospace anywhere.
   Signature The waterline. A full-bleed rule the page is organised around:
             above it is what a company shows the world, below it is what is
             actually happening.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Surfaces */
  --paper:        #edf1f0;
  --paper-raised: #f5f7f6;
  --deep:         #061826;
  --deep-raised:  #0b2839;

  /* Ink */
  --ink:          #06182a;
  --ink-2:        #33474f;
  --ink-3:        #4f646b;
  --teal:         #00646c;

  /* Ink on deep */
  --on-deep:      #dfe9e8;
  --on-deep-2:    #9db6bc;
  --teal-light:   #74c2c1;

  /* Rules */
  --rule:         rgba(6, 24, 42, .14);
  --rule-strong:  rgba(6, 24, 42, .32);
  --rule-deep:    rgba(223, 233, 232, .17);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Measure */
  --shell:  1240px;
  --gutter: clamp(22px, 5vw, 64px);
  --bay:    clamp(84px, 11vw, 152px); /* vertical section rhythm */
}

/* --- Reset ---------------------------------------------------------------- */

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

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

/* Anchored sections clear the fixed header */
[id] { scroll-margin-top: 86px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--teal); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.deep :focus-visible,
.contact :focus-visible { outline-color: var(--teal-light); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

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

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

/* Editorial two-column: narrow label rail, wide content column. */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
}

.section { padding-block: var(--bay); }
.section--tint { background: var(--paper-raised); }
/* Consecutive light sections share one gap. Dark sections always keep their own
   top padding, otherwise content sits flush against the colour edge. */
.section + .section:not(.deep) { padding-top: 0; }
/* A tinted section has a visible edge, so it always keeps its own padding. */
.section + .section.section--tint { padding-top: var(--bay); }
.section.section--tint + .section { padding-top: var(--bay); }
.section.deep + .section { padding-top: calc(var(--bay) * .7); }

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

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.display em { font-style: italic; color: var(--teal); }
.deep .display em, .contact .display em { color: var(--teal-light); }

.t-hero  { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: .98; letter-spacing: -.032em; }
.t-major { font-size: clamp(2.1rem, 4.4vw, 3.65rem); line-height: 1.02; }
.t-mid   { font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.1; letter-spacing: -.022em; }
.t-minor { font-size: clamp(1.22rem, 1.7vw, 1.42rem); line-height: 1.2; letter-spacing: -.016em; }

/* Section labels are italic serif, lowercase. Not tracked-out uppercase. */
.label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.3;
  color: var(--teal);
}
.deep .label, .contact .label { color: var(--teal-light); }

.lede {
  max-width: 34em;
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.deep .lede { color: var(--on-deep-2); }

.body   { max-width: 36em; color: var(--ink-2); }
.fine   { font-size: .93rem; line-height: 1.55; color: var(--ink-3); }

/* --- Controls ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px 14px;
  border: 1px solid var(--ink);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn .tick { font-size: .8em; transition: transform .2s ease; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover .tick { transform: translateX(3px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--teal); border-color: var(--teal); }

.btn--pale { border-color: var(--on-deep); color: var(--on-deep); }
.btn--pale:hover { background: var(--on-deep); color: var(--deep); }

.tlink {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--teal);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.tlink:hover { border-bottom-color: currentColor; }
.deep .tlink, .contact .tlink { color: var(--teal-light); }

/* --- Header --------------------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding-block: 18px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.masthead.is-stuck { border-bottom-color: var(--rule); }

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.wordmark .berg { width: 26px; height: 26px; }
.wordmark .mark-type { height: 15px; aspect-ratio: 2909 / 970; fill: currentColor; }
.deep .wordmark, .contact .wordmark { color: var(--on-deep); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  font-size: .94rem;
}
.nav a { color: var(--ink-2); transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
/* The CTA is a button first: its own hover colours must win over the nav rule. */
.nav a.btn:hover { color: var(--paper); }
.nav a.btn--solid:hover { color: var(--paper); }
.nav .btn { padding: 9px 16px 10px; font-size: .88rem; }

.burger { display: none; width: 34px; padding: 8px 0; cursor: pointer; }
.burger i { display: block; height: 1.5px; margin: 5px 0; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-top: clamp(140px, 20vh, 210px); }

.hero h1 { max-width: 21ch; margin-bottom: 26px; }

.hero .lede { max-width: 33em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* --- The waterline (signature) -------------------------------------------- */

.waterline {
  position: relative;
  margin-top: clamp(72px, 10vw, 120px);
}

/* The rule runs edge to edge. The berg sits on it, and the rule reads as the
   continuation of the berg's own waterline. */
.waterline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 1.5px;
  background: var(--rule-strong);
}

.waterline .berg {
  position: absolute;
  left: -4px;
  top: 0;
  width: 132px;
  /* the mark's own waterline is 41.4% down its box, so shift by that, not 50% */
  transform: translateY(-41.36%);
}

/* Soundings: the surface statement, with what's underneath revealed on open.
   Distinct from the FAQ accordion on purpose - this one descends. */
.waterline .spread { padding-top: 88px; }

.sounding-head { margin-bottom: 34px; }
.sounding-head h2 {
  max-width: 20ch;
  margin-bottom: 16px;
  font-size: clamp(1.72rem, 2.9vw, 2.5rem);
  line-height: 1.06;
}
.sounding-head .lede { font-size: 1.02rem; }

.sounding-list { border-top: 1px solid var(--rule); }
.sounding { border-bottom: 1px solid var(--rule); }

.sounding-q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding-block: 19px;
  text-align: left;
  cursor: pointer;
}

.sounding-surface {
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.9vw, 1.6rem);
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: pretty;
  transition: color .2s ease;
}
.sounding-q:hover .sounding-surface { color: var(--teal); }

/* A chevron that points down, then turns back up once you've looked */
.sounding-cue {
  justify-self: end;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.sounding.is-open .sounding-cue { transform: translateY(2px) rotate(225deg); }

.sounding-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1);
}
.sounding.is-open .sounding-a { grid-template-rows: 1fr; }
.sounding-a > div { overflow: hidden; }
.sounding-a p {
  max-width: 42em;
  padding: 1px 42px 24px 22px;
  border-left: 1px solid var(--teal);
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.52;
  text-wrap: pretty;
}

.turn {
  max-width: 26em;
  margin-top: clamp(52px, 7vw, 84px);
  margin-left: auto;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.022em;
  text-align: right;
  text-wrap: balance;
}
.turn em { font-style: italic; color: var(--teal); }

/* --- Deep (inverted) ------------------------------------------------------ */

.deep {
  background: var(--deep);
  color: var(--on-deep);
}
.deep .body { color: var(--on-deep-2); }
.deep .fine { color: var(--on-deep-2); }
.deep .btn { border-color: var(--on-deep); color: var(--on-deep); }
.deep .btn:hover { background: var(--on-deep); color: var(--deep); }

/* --- Method --------------------------------------------------------------- */

.method-head { margin-bottom: clamp(46px, 6vw, 72px); }
.method-head h2 { max-width: 17ch; margin-bottom: 22px; }

.steps--four { grid-template-columns: repeat(4, 1fr) !important; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule-deep);
  border-top: 1px solid var(--rule-deep);
  border-bottom: 1px solid var(--rule-deep);
}

.steps { color: var(--on-deep); }
.step {
  padding: 24px 16px 30px 0;
  background: var(--deep);
}
.step h3 { color: var(--on-deep); }
.step + .step { padding-left: 18px; }
.step-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  color: var(--teal-light);
}
.step h3 { margin: 16px 0 10px; font-family: var(--serif); font-size: 1.32rem; line-height: 1.12; letter-spacing: -.02em; }
.step p { font-size: .93rem; line-height: 1.5; color: var(--on-deep-2); }

/* --- Practice (the menu) -------------------------------------------------- */

.practice-head { margin-bottom: clamp(46px, 6vw, 76px); }
.practice-head h2 { max-width: 16ch; margin-bottom: 22px; }

.areas { border-top: 1px solid var(--rule); }

.area {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) minmax(0, 224px);
  gap: clamp(20px, 3.4vw, 56px);
  padding-block: clamp(34px, 4.4vw, 54px);
  border-bottom: 1px solid var(--rule);
}

.area-name { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.78rem); line-height: 1.08; letter-spacing: -.024em; }

.area-symptom {
  max-width: 24em;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--teal);
  text-wrap: balance;
}

.area-body { max-width: 33em; color: var(--ink-2); }
.area-body p + p { margin-top: 12px; }

.area-shift {
  max-width: 33em;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: .97rem;
  line-height: 1.5;
}
.area-shift b { font-weight: 500; }

.area-aside { padding-top: 5px; }
.area-aside .label { display: block; margin-bottom: 10px; font-size: .95rem; }
.area-scope {
  margin: 0;
  font-size: .88rem;
  line-height: 1.68;
  word-spacing: .12em;
  color: var(--ink-3);
}

/* --- CEO sounding board --------------------------------------------------- */

.counsel {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 56px);
  margin-top: clamp(48px, 6vw, 78px);
  padding: clamp(30px, 3.6vw, 46px) clamp(26px, 3.4vw, 52px) clamp(34px, 4vw, 50px);
  background: var(--deep);
  color: var(--on-deep);
}
.counsel-mark .berg { width: 62px; }
.counsel .label { color: var(--teal-light); margin-bottom: 14px; }
.counsel h3 {
  max-width: 22ch;
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.026em;
}
.counsel p { max-width: 40em; color: var(--on-deep-2); line-height: 1.55; }
.counsel-shift {
  max-width: 40em;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-deep);
  font-size: .97rem;
  color: var(--on-deep) !important;
}
.counsel-shift b { font-weight: 500; }
.counsel .area-scope { margin-top: 14px; color: var(--on-deep-2); }

/* --- Sprints -------------------------------------------------------------- */

.sprints-head { margin-bottom: clamp(42px, 5vw, 66px); }
.sprints-head h2 { max-width: 16ch; margin-bottom: 22px; }

.sprint-list { border-top: 1px solid var(--rule-deep); }

.sprint {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 46px);
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule-deep);
}
.sprint-name { font-family: var(--serif); font-size: clamp(1.24rem, 1.8vw, 1.55rem); line-height: 1.12; letter-spacing: -.022em; }
.sprint-what { font-size: .97rem; line-height: 1.5; color: var(--on-deep-2); }
.sprint-span { font-family: var(--serif); font-style: italic; font-size: .96rem; color: var(--teal-light); white-space: nowrap; }

.sprints-foot { margin-top: 26px; }

/* --- Questions ------------------------------------------------------------ */

.qa-head { margin-bottom: clamp(40px, 5vw, 64px); }

.qa { border-top: 1px solid var(--rule); }

.qa-item { border-bottom: 1px solid var(--rule); }

.qa-q {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding-block: 24px;
  text-align: left;
  cursor: pointer;
}
.qa-q h3 { font-family: var(--serif); font-size: clamp(1.16rem, 1.7vw, 1.46rem); line-height: 1.2; letter-spacing: -.02em; transition: color .2s ease; }
.qa-q:hover h3 { color: var(--teal); }

.qa-sign { position: relative; justify-self: end; width: 15px; height: 15px; }
.qa-sign::before, .qa-sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.qa-sign::before { width: 15px; height: 1.5px; }
.qa-sign::after  { width: 1.5px; height: 15px; }
.qa-item.is-open .qa-sign::after { transform: translate(-50%, -50%) rotate(90deg); }

.qa-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1);
}
.qa-item.is-open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { max-width: 44em; padding-right: 48px; padding-bottom: 26px; color: var(--ink-2); }
.qa-a p + p { padding-top: 14px; padding-bottom: 26px; }

/* --- Starts --------------------------------------------------------------- */

.starts-head { margin-bottom: clamp(40px, 5vw, 62px); }

.starts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.start {
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper-raised);
}
.deep .starts { background: var(--rule-deep); border-color: var(--rule-deep); }
.deep .start { background: var(--deep); }
.deep .start p { color: var(--on-deep-2); }
.start h3 { max-width: 20ch; margin-bottom: 14px; font-family: var(--serif); font-size: clamp(1.26rem, 1.8vw, 1.62rem); line-height: 1.14; letter-spacing: -.022em; }
.start p { font-size: .97rem; line-height: 1.55; color: var(--ink-2); }

/* --- Practice note / about ------------------------------------------------ */

.note-body { max-width: 40em; }
.note-body h2 { max-width: 17ch; margin-bottom: 26px; }
.note-body p + p { margin-top: 15px; }
.note-body .pull {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.9vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.deep .note-body .pull { border-top-color: var(--rule-deep); color: var(--on-deep); }

/* --- Contact -------------------------------------------------------------- */

.contact {
  padding-block: clamp(96px, 12vw, 160px);
  background: var(--deep);
  color: var(--on-deep);
  text-align: center;
}
.contact h2 { max-width: 18ch; margin-inline: auto; margin-bottom: 20px; }
.contact .lede { margin-inline: auto; color: var(--on-deep-2); }

.mailto {
  display: inline-block;
  margin-top: clamp(34px, 4.5vw, 54px);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--on-deep);
  word-break: break-word;
  border-bottom: 1px solid var(--rule-deep);
  transition: color .22s ease, border-color .22s ease;
}
.mailto:hover { color: var(--teal-light); border-bottom-color: var(--teal-light); }

.contact-note { margin-top: 26px; color: var(--on-deep-2); }


/* --- Footer --------------------------------------------------------------- */

.footer {
  padding-block: 40px 46px;
  background: var(--deep);
  color: var(--on-deep-2);
  border-top: 1px solid var(--rule-deep);
  font-size: .9rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 34px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: var(--on-deep); }
.footer-line { font-family: var(--serif); font-style: italic; color: var(--teal-light); }


/* ==========================================================================
   Investors page
   --------------------------------------------------------------------------
   Same waterline language, different argument. The founder page shows one
   iceberg: one company, one surface, one depth. This page shows several on the
   same line, because a fund is looking at a portfolio, and the operator moves
   between them.
   ========================================================================== */

/* --- A portfolio on one waterline ----------------------------------------- */

.fleet {
  position: relative;
  height: 150px;
  margin-top: clamp(70px, 9vw, 116px);
}
.fleet::before {
  content: "";
  position: absolute;
  top: 62px;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 1.5px;
  background: var(--rule-strong);
}
.fleet .berg {
  position: absolute;
  top: 62px;
  transform: translateY(-41.36%);
}
/* sizes and positions vary so it reads as a portfolio, not a pattern */
.fleet .berg:nth-child(1) { left: 1%;   width: 76px; }
.fleet .berg:nth-child(2) { left: 21%;  width: 118px; }
.fleet .berg:nth-child(3) { left: 45%;  width: 58px; }
.fleet .berg:nth-child(4) { left: 62%;  width: 92px; }
.fleet .berg:nth-child(5) { left: 84%;  width: 68px; }
/* the one currently being worked stays full strength; the rest recede */
.fleet .berg:not(.is-live) { opacity: .34; }

/* --- Situations the fund already recognises ------------------------------- */

.situations { border-top: 1px solid var(--rule); }
.situations li {
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.7vw, 1.46rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

/* --- Fund, operator, company --------------------------------------------- */

.relay {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule-deep);
  border-bottom: 1px solid var(--rule-deep);
}
.relay-row {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(22px, 2.6vw, 32px);
}
.relay-row + .relay-row { border-top: 1px solid var(--rule-deep); }
.relay-who {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  letter-spacing: -.02em;
  color: var(--on-deep);
}
.relay-who .berg { width: 40px; flex: none; }
.relay-dot {
  width: 9px; height: 9px; flex: none;
  border: 1.5px solid var(--teal-light);
  border-radius: 50%;
}
.relay-row--mid { background: rgba(116, 194, 193, .07); }
.relay-row--mid .relay-who { color: var(--teal-light); }
.relay p { max-width: 44em; color: var(--on-deep-2); line-height: 1.55; }

/* --- Commercial arrangements ---------------------------------------------- */

.terms--three { grid-template-columns: repeat(3, 1fr) !important; }
.terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(34px, 4vw, 52px);
  background: var(--rule);
  border: 1px solid var(--rule);
}
.term { padding: clamp(22px, 2.6vw, 32px); background: var(--paper-raised); }
.term h4 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 400;
}
.term p { font-size: .95rem; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 900px) {
  .terms--three { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 780px) {
  .terms--three { grid-template-columns: 1fr !important; }
  .fleet { height: 128px; }
  .fleet .berg:nth-child(1) { left: -2%; width: 58px; }
  .fleet .berg:nth-child(2) { left: 20%; width: 92px; }
  .fleet .berg:nth-child(3) { left: 47%; width: 46px; }
  .fleet .berg:nth-child(4) { left: 64%; width: 72px; }
  .fleet .berg:nth-child(5) { left: 88%; width: 54px; }
  .relay-row { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .terms { grid-template-columns: 1fr; }
}


/* --- Dark-led pages -------------------------------------------------------
   The investors page opens on the deep tone, so the header starts transparent
   and inverted, then becomes the normal light bar once you scroll off the hero.
   -------------------------------------------------------------------------- */

body.dark-top .masthead {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.dark-top .masthead .wordmark { color: var(--on-deep); }
body.dark-top .masthead .nav a { color: var(--on-deep-2); }
body.dark-top .masthead .nav a:hover,
body.dark-top .masthead .nav a[aria-current="page"] { color: var(--on-deep); }
body.dark-top .masthead .nav a.btn { border-color: var(--on-deep); color: var(--on-deep); }
body.dark-top .masthead .nav a.btn:hover { background: var(--on-deep); color: var(--deep); }
body.dark-top .masthead .burger i { background: var(--on-deep); }

/* Once scrolled, or once the mobile panel opens, revert to the standard bar.
   The open panel is light, so pale nav ink would vanish against it. */
body.dark-top .masthead.is-open {
  background: var(--paper);
  backdrop-filter: none;
}
body.dark-top .masthead.is-open .wordmark { color: var(--ink); }
body.dark-top .masthead.is-open .nav a { color: var(--ink-2); }
body.dark-top .masthead.is-open .nav a:hover,
body.dark-top .masthead.is-open .nav a[aria-current="page"] { color: var(--ink); }
body.dark-top .masthead.is-open .nav a.btn { border-color: var(--ink); color: var(--ink); }
body.dark-top .masthead.is-open .nav a.btn:hover { background: var(--ink); color: var(--paper); }
body.dark-top .masthead.is-open .burger i { background: var(--ink); }

body.dark-top .masthead.is-stuck {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--rule);
}
body.dark-top .masthead.is-stuck .wordmark { color: var(--ink); }
body.dark-top .masthead.is-stuck .nav a { color: var(--ink-2); }
body.dark-top .masthead.is-stuck .nav a:hover,
body.dark-top .masthead.is-stuck .nav a[aria-current="page"] { color: var(--ink); }
body.dark-top .masthead.is-stuck .nav a.btn { border-color: var(--ink); color: var(--ink); }
body.dark-top .masthead.is-stuck .nav a.btn:hover { background: var(--ink); color: var(--paper); }
body.dark-top .masthead.is-stuck .burger i { background: var(--ink); }

.hero.deep { background: var(--deep); color: var(--on-deep); }
.hero.deep .lede { color: var(--on-deep-2); }
.deep .fleet::before { background: var(--rule-deep); }

/* --- A light close --------------------------------------------------------- */

.contact--light { background: var(--paper-raised); color: var(--ink); }
.contact--light .label { color: var(--teal); }
.contact--light .lede { color: var(--ink-2); }
.contact--light .display em { color: var(--teal); }
.contact--light .mailto { color: var(--ink); border-bottom-color: var(--rule); }
.contact--light .mailto:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* --- What the fund gets ---------------------------------------------------- */

.gains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(38px, 4.5vw, 60px);
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.gain { padding: clamp(26px, 3vw, 38px) clamp(22px, 2.4vw, 30px); background: var(--paper); }
.gain h3 {
  max-width: 18ch;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.7vw, 1.52rem);
  line-height: 1.12;
  letter-spacing: -.022em;
}
.gain p { font-size: .97rem; line-height: 1.55; color: var(--ink-2); }

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

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

.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.rise.is-in { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .area { grid-template-columns: minmax(0, 175px) minmax(0, 1fr); }
  .area-aside { grid-column: 2; padding-top: 4px; }
  .area-aside .label { margin-bottom: 6px; }
}

@media (max-width: 900px) {
  .steps, .steps--four { grid-template-columns: repeat(2, 1fr) !important; }
  .step:last-child { grid-column: 1 / -1; }
  .step + .step { padding-left: 18px; }
  .step:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }

  .nav a:not(.nav-cta) { display: none; }
  .burger { display: block; }
  .nav .btn { display: none; }

  .masthead.is-open {
    background: var(--paper);
    backdrop-filter: none;
  }
  .masthead.is-open .nav {
    position: fixed;
    inset: 64px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* was centred, which pushed items up through the header on short viewports */
    justify-content: flex-start;
    gap: clamp(12px, 3.5vh, 26px);
    padding: clamp(18px, 5vh, 44px) var(--gutter) 80px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 5.5vh, 2.1rem);
    line-height: 1;
    letter-spacing: -.028em;
    z-index: 1;
  }
  /* keep the wordmark and close button above the open panel */
  .masthead.is-open .wordmark,
  .masthead.is-open .burger { position: relative; z-index: 2; }
  .masthead.is-open .nav a:not(.nav-cta) { display: block; }
  .masthead.is-open .nav .btn { display: inline-flex; font-family: var(--sans); font-size: 1rem; }
  .masthead.is-open .burger i:first-child { transform: translateY(6.5px) rotate(45deg); }
  .masthead.is-open .burger i:nth-child(2) { opacity: 0; }
  .masthead.is-open .burger i:last-child { transform: translateY(-6.5px) rotate(-45deg); }

  .spread, .area, .counsel { grid-template-columns: 1fr; gap: 16px; }
  .counsel-mark .berg { width: 46px; }
  .area-aside { grid-column: 1; }
  .waterline .spread { padding-top: 66px; }
  .waterline .berg { width: 88px; }
  .sounding-a p { padding-right: 0; }
  .turn { margin-left: 0; text-align: left; }
  .sprint { grid-template-columns: 1fr auto; gap: 6px 18px; }
  .sprint-what { grid-column: 1 / -1; }
  .starts { grid-template-columns: 1fr; }
  .qa-a p { padding-right: 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

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