:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ink: #24364f;
  --muted: #55657c;
  --cream: #fffdf8;
  --sky: #6db3ec;
  --sky-soft: #dff1ff;
  --sun: #aeb7c2;
  --sun-deep: #4a5563;
  --amber-text: #56616f;
  --ice: #dfe5ec;
  --line: rgba(11, 37, 69, 0.12);
  --error: #b3261e;
  --ok: #19703c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.progress {
  --scroll: 0;
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, #8e99a6, #eef1f5);
  transform-origin: 0 50%; transform: scaleX(var(--scroll));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background-color .4s, box-shadow .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(255, 253, 248, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(11, 37, 69, 0.5);
  padding-top: 11px; padding-bottom: 11px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.3em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav nav a {
  text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy);
  opacity: .8; transition: opacity .25s;
}
.nav nav a:hover { opacity: 1; }
.nav nav .nav-cta { opacity: 1; background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; }

/* ---------- Hero scene ---------- */
.hero { position: relative; height: 100svh; }
.js .hero { height: 190svh; }
.scene {
  --p: 0; --px: 0; --py: 0;
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
}
.photo {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 30%;
  transform: translate3d(calc(var(--px) * -14px), 0, 0) scale(calc(1.06 + var(--p) * 0.14));
  transform-origin: 50% 38%; will-change: transform;
  animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(6, 22, 46, 0.5) 0%, rgba(6, 22, 46, 0) 26%, rgba(6, 22, 46, 0) 50%, rgba(6, 22, 46, 0.55) 100%);
}
.glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(60% 45% at 50% 34%, rgba(255, 244, 220, 0.4), rgba(255, 244, 220, 0) 70%);
  opacity: calc(0.15 + var(--p) * 0.85);
}
@keyframes settle { from { opacity: 0; filter: blur(12px) brightness(1.4); } to { opacity: 1; filter: none; } }
.hero-copy {
  position: absolute; inset: auto 0 0 0; height: 46%;
  padding: 0 24px 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.copy-a { opacity: calc(1 - var(--p) * 2.8); transform: translateY(calc(var(--p) * -60px)); }
.copy-b { opacity: 0; pointer-events: none; }
.js .copy-b { opacity: calc((var(--p) - 0.42) * 3.4); transform: translateY(calc((1 - var(--p)) * 50px)); }

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy);
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 8px 18px; border-radius: 999px;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) .1s both;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

.hero-title {
  margin: clamp(12px, 3svh, 26px) 0 clamp(16px, 4svh, 34px);
  font-size: clamp(2.3rem, min(7.4vw, 12svh), 6.2rem); line-height: 1.02; letter-spacing: -0.025em;
  color: #fff; text-shadow: 0 2px 28px rgba(4, 16, 36, 0.75);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .25s both;
}
.sunlit {
  font-style: italic; white-space: nowrap;
  background: linear-gradient(100deg, #a3adb9 0%, #d5dbe2 30%, #ffffff 50%, #d5dbe2 70%, #a3adb9 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none; padding: 0 .08em .1em 0;
  animation: sheen 7s linear infinite;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .45s both; }

.hero-second {
  font-family: var(--serif); font-style: italic; color: #fff;
  font-size: clamp(2.2rem, min(7vw, 11svh), 5.4rem); line-height: 1.05; letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(4, 16, 36, 0.8);
}
.hero-sub { margin-top: 16px; max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.22rem); color: #fff; font-weight: 500; text-shadow: 0 1px 16px rgba(4, 16, 36, 0.9); }
.btn-sun { background: linear-gradient(135deg, #ffffff, #c9d0d9 55%, #a9b3bf); color: var(--navy); box-shadow: 0 14px 34px -12px rgba(200, 210, 222, 0.8), inset 0 1px 0 #fff; }
.btn-sun:hover { box-shadow: 0 20px 40px -12px rgba(220, 228, 238, 0.95), inset 0 1px 0 #fff; }

/* Nav sits on the photograph until the page is scrolled */
.nav:not(.is-scrolled) .brand, .nav:not(.is-scrolled) nav a:not(.nav-cta) { color: #fff; text-shadow: 0 1px 14px rgba(4, 16, 36, 0.8); }
.nav:not(.is-scrolled) nav a:not(.nav-cta) { opacity: 1; }
.nav:not(.is-scrolled) .nav-cta { background: #fff; color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 17px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s, box-shadow .3s, background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(11, 37, 69, 0.8); }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 20px 36px -14px rgba(11, 37, 69, 0.85); }
.btn-glass { background: rgba(255, 255, 255, 0.7); color: var(--navy); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, 0.9); }
.btn-glass:hover { background: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; width: 26px; height: 44px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 14px; opacity: calc(1 - var(--p) * 4);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 2.2s ease-in-out infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber-text);
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--sun); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 19ch; }
.lede { margin-top: 20px; max-width: 58ch; color: var(--muted); font-size: 1.1rem; }

/* Order */
.order { background: var(--cream); }
.pillars { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  padding: 34px 30px 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -44px rgba(11, 37, 69, 0.55);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(11, 37, 69, 0.6); }
.pillar-num {
  display: block; font-family: var(--serif); font-size: clamp(3.6rem, 7vw, 5.4rem); line-height: 1;
  background: linear-gradient(135deg, var(--sky) 10%, var(--sun) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.pillar h3 { font-size: 1.85rem; margin: 14px 0 10px; }
.pillar p { color: var(--muted); }

/* Investments */
.invest { background: linear-gradient(180deg, var(--cream), #eef7fb 30%, #eef7fb 70%, var(--cream)); }
.stack { display: grid; gap: 26px; margin-top: 60px; }
.panel {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 340px; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--navy);
  box-shadow: 0 -18px 50px -30px rgba(11, 37, 69, 0.55), 0 30px 60px -40px rgba(11, 37, 69, 0.6);
}
.panel-photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.panel-photo.is-low { object-position: 50% 100%; }
.panel:hover .panel-photo { transform: scale(1.06); }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 22, 46, 0.9) 0%, rgba(6, 22, 46, 0.68) 42%, rgba(6, 22, 46, 0.12) 100%),
              linear-gradient(0deg, rgba(6, 22, 46, 0.55), rgba(6, 22, 46, 0) 55%);
}
.panel-copy { max-width: 34em; }
.panel-num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ice); }
.panel h3 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 10px 0 16px; }
.panel p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; max-width: 40ch; }
.tag {
  display: inline-block; margin-top: 24px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.45); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}

@media (min-width: 761px) and (min-height: 660px) {
  .panel { position: sticky; top: 92px; min-height: min(58vh, 460px); }
  .panel:nth-child(2) { top: 106px; }
  .panel:nth-child(3) { top: 120px; }
  .panel:nth-child(4) { top: 134px; }
  .panel:nth-child(5) { top: 148px; }
  .panel:nth-child(6) { top: 162px; }
}

/* Values: editorial list */
.vlist { list-style: none; margin: 56px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.vrow {
  position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px 32px; align-items: baseline;
  padding: 30px 20px 30px 0; border-top: 1px solid var(--line);
}
.vrow::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--sun), var(--sky)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.vrow:hover::before { transform: scaleX(1); }
.vnum { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--amber-text); }
.vrow h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; transition: color .3s; }
.vrow:hover h3 { color: var(--sun-deep); }
.vrow p { color: var(--muted); font-size: 1.05rem; }

/* Quote */
.quote {
  position: relative; overflow: hidden; text-align: center; padding: clamp(90px, 13vw, 170px) 0;
  background: radial-gradient(80% 120% at 50% 110%, rgba(205, 214, 225, 0.4), rgba(205, 214, 225, 0) 60%), linear-gradient(135deg, #081a33, #0f2d52 60%, #3b4a5f);
}
.quote blockquote { position: relative; margin: 0 auto; max-width: 20ch; }
.quote p { font-family: var(--serif); color: #fff; font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
.quote em { color: var(--ice); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--cream), #e9f5ff 70%, #d3ebff); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.assure { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; color: var(--ink); font-size: 0.98rem; }
.assure li { display: flex; align-items: center; gap: 12px; }
.assure li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none; }

.form {
  padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgba(11, 37, 69, 0.55);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--navy);
  background: #f7fafd; border: 1px solid rgba(11, 37, 69, 0.22); border-radius: 12px;
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(109, 179, 236, 0.3); }
.field .is-invalid { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:not(:empty) { margin-bottom: 18px; }
.form-note { margin-top: 14px; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.form-status { min-height: 1.6em; margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }

/* Footer */
.footer { padding: 50px 0 42px; background: var(--navy); color: #fff; }
.footer .brand { color: #fff; }
.footer-wrap { display: grid; gap: 12px; }
.fine { color: #b9c7da; font-size: 0.86rem; max-width: 72ch; }

/* Simple page (404) */
.simple {
  min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px;
  background: linear-gradient(180deg, #6db3ec 0%, #b7defa 50%, #ffe9c2 100%);
}
.simple h1 { font-size: clamp(4rem, 16vw, 9rem); line-height: 1; }
.simple p { margin: 10px 0 28px; color: var(--navy-2); font-size: 1.15rem; }

/* Reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .pillar.reveal.in:hover { transform: translateY(-6px); }

/* Responsive */
@media (max-width: 900px) {
  .pillars, .grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .vrow { grid-template-columns: 1fr; gap: 6px; padding-right: 0; }
  
  .nav nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 19px; }
  .hero-copy { height: 52%; padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero { height: 100svh; }
  .js .copy-b { display: none; }
}
