/* Atlantis Private Acquisition — site styles
   Palette: deep navy / charcoal / cool off-white / pewter */

:root {
  --logo-ground: #FEFEFE;
  --ink: #0E1A26;          /* deep navy */
  --ink-2: #16242F;        /* raised navy */
  --charcoal: #1F252C;
  --paper: #F2F3F1;        /* cool off-white */
  --paper-2: #E7E9E7;
  --rule: #CDD2D4;
  --pewter: #8E9BA7;       /* metallic accent */
  --pewter-light: #B9C2CA;
  --text: #1B232B;
  --muted: #56616C;
  --on-dark: #E8ECEE;
  --on-dark-muted: #A3AEB8;
  --focus: #5B8DB8;

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--pewter); }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .5rem .9rem;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 38em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.kicker { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-bottom: .9rem; }
.dark .kicker { color: var(--on-dark-muted); }

/* ---------- Header ----------
   The supplied logo is a PNG on a near-white background (no transparency).
   --logo-ground matches that background (measured average rgb 254,254,254)
   so the image edge disappears. If a transparent PNG/SVG is supplied, this can be any colour. */
.site-header {
  background: var(--logo-ground);
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 6rem; gap: 1.5rem;
}
.brand { display: block; line-height: 0; padding: .5rem 0; }
.brand img.logo { height: 4.75rem; width: auto; max-width: 100%; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none; background: var(--logo-ground); border: 1px solid var(--rule);
  color: var(--ink); font: inherit; font-size: .9rem; padding: .45rem .8rem; cursor: pointer;
}

@media (max-width: 52rem) {
  .site-header .wrap { min-height: 4.75rem; }
  .brand img.logo { height: 3.6rem; }
  .nav-toggle { display: inline-block; flex: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--logo-ground); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav a { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--paper-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--paper-2); color: var(--ink); font-weight: 500; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead, .dark p.muted { color: var(--on-dark-muted); }
.section.dark + .section, .section + .section.dark { border-top: 0; }
.charcoal { background: var(--charcoal); color: var(--on-dark); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; row-gap: 1rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4.5rem, 10vw, 8rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 9em; margin-bottom: .45em; }
.hero .lead { color: var(--on-dark-muted); }
.hero .secondary { color: var(--pewter-light); font-size: .98rem; margin-top: 1.4rem; }
.page-hero { padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 14em; }

.contours {
  position: absolute; z-index: 0;
  width: min(62rem, 120vw); right: -18rem; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.contours path { fill: none; stroke: var(--pewter); stroke-width: 1; opacity: .28; vector-effect: non-scaling-stroke; }
.contours path:nth-child(4n) { opacity: .45; }
@media (max-width: 52rem) { .contours { right: -22rem; opacity: .6; } }

/* single orchestrated load moment: contours draw in once */
@media (prefers-reduced-motion: no-preference) {
  .contours path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.6s cubic-bezier(.3,.6,.2,1) forwards; animation-delay: calc(var(--i) * 70ms); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.btn {
  display: inline-block; text-decoration: none; font-size: .98rem;
  padding: .85rem 1.4rem; border: 1px solid currentColor; line-height: 1.2;
  cursor: pointer; font-family: var(--sans);
}
.btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-solid:hover { background: #fff; }
.btn-ghost { color: var(--on-dark); border-color: rgba(185,194,202,.5); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }

/* ---------- Mandate statement ---------- */
.statement {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3;
  margin: 2.5rem 0 0; padding-left: 1.4rem; border-left: 1px solid var(--pewter);
  max-width: 20em; color: var(--ink);
}

/* ---------- Asset index (ruled rows, not cards) ---------- */
.index { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule); }
.index a {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem;
  padding: 1.6rem 0; text-decoration: none; align-items: baseline;
}
.index a:hover h3 { text-decoration: underline; text-decoration-color: var(--pewter); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.index h3 { margin: 0; }
.index p { margin: 0; color: var(--muted); }
@media (max-width: 40rem) { .index a { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Process steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.35rem 0 1.35rem 3.6rem; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1.2rem;
  font-family: var(--serif); font-size: 1.6rem; color: var(--pewter); line-height: 1;
}
.steps h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.steps p { margin: 0; color: var(--muted); }
.steps.compact li { padding-top: 1rem; padding-bottom: 1rem; }
.steps.compact li::before { top: .95rem; font-size: 1.3rem; }
.steps.compact h3 { margin: 0; font-size: 1.15rem; }

/* ---------- Principles (dark section) ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 4rem; margin-top: 3rem; }
.principles h3 { font-size: 1.3rem; margin-bottom: .45rem; padding-top: 1.1rem; border-top: 1px solid rgba(185,194,202,.25); }
.principles p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 44rem) { .principles { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Asset class detail ---------- */
.asset { scroll-margin-top: 1.5rem; }
.asset .examples { list-style: none; margin: 1.25rem 0 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.asset .examples li { break-inside: avoid; padding: .55rem 0; border-top: 1px solid var(--rule); }
@media (max-width: 40rem) { .asset .examples { columns: 1; } }

/* ---------- Founder / contact blocks ---------- */
.person { margin-top: 1rem; }
.person .name { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.person .role { color: var(--muted); margin: .15rem 0 1rem; }

.contact-details dl { margin: 1.5rem 0 0; }
.contact-details dt { font-size: .9rem; color: var(--muted); margin-top: 1.1rem; }
.contact-details dd { margin: .15rem 0 0; font-size: 1.1rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.2rem; max-width: 38rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 40rem) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .92rem; margin-bottom: .35rem; }
.field .opt { color: var(--muted); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  padding: .75rem .85rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: .92rem; padding: 3rem 0 2.5rem; border-top: 1px solid rgba(185,194,202,.14); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.site-footer .foot-name { font-family: var(--serif); color: var(--on-dark); font-size: 1.1rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(185,194,202,.14); padding-top: 1.5rem; margin-top: 1rem; font-size: .84rem; }
.site-footer .legal p { max-width: 52em; margin: 0 0 .4rem; }
@media (max-width: 44rem) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- About: approach list ---------- */
.approach { margin: 0; border-top: 1px solid var(--rule); }
.approach dt { font-family: var(--serif); font-size: 1.3rem; padding-top: 1.3rem; }
.approach dd { margin: .3rem 0 0; padding-bottom: 1.3rem; border-bottom: 1px solid var(--rule); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }

/* ---------- Regional grounding (Tetons) ----------
   Secondary visual, lower on the home page. Muted so it reads as a quiet
   photograph rather than a postcard; the content keeps visual priority. */
.region-figure { margin: 0 0 clamp(2rem, 5vw, 3.25rem); }
.region-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 1; object-fit: cover; object-position: center 45%;
  /* colour already muted in the image files themselves; no CSS filter */
  background: var(--paper-2);
}
.region-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.region-figure .credit { margin-left: .75rem; opacity: .8; font-size: .76rem; }
.region-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); max-width: 14em; }
.region-copy .lead { margin: 0; }
@media (max-width: 40rem) { .region-img { aspect-ratio: 3 / 2; } }

/* Placeholder shown only while /assets/img/tetons.jpg is missing */
.img-placeholder {
  aspect-ratio: 3 / 1; width: 100%;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  border: 1px dashed var(--pewter); background: var(--paper-2);
  color: var(--muted); font-size: .9rem;
}
@media (max-width: 40rem) { .img-placeholder { aspect-ratio: 3 / 2; } }
