/* ==========================================================================
   DETERMINED VISION LLC: Design System
   Vibe: Soft Structuralism + Navy Vault  |  Layout: Editorial Split + Bento
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand: sampled from the DV metallic-blue mark */
  --ink:          #0A1526;
  --navy-950:     #050F22;
  --navy-900:     #071B3D;
  --navy-800:     #0C2B5E;
  --navy-700:     #10387A;
  --brand-600:    #1249B8;
  --brand-500:    #2060DC;
  --brand-400:    #4C86EE;
  --brand-200:    #A9C6F8;
  --brand-050:    #EDF3FE;

  /* Accent: generational wealth */
  --gold-600:     #A8842F;
  --gold-500:     #C8A24A;
  --gold-300:     #E5CE93;
  --gold-050:     #FBF6E9;

  /* Neutrals */
  --paper:        #F6F8FC;
  --paper-deep:   #ECF0F7;
  --white:        #FFFFFF;
  --slate-700:    #3C4A61;
  --slate-500:    #64748B;
  --slate-400:    #8B98AC;
  --hairline:     rgba(7, 27, 61, 0.08);
  --hairline-str: rgba(7, 27, 61, 0.14);
  --hairline-inv: rgba(255, 255, 255, 0.12);

  /* Ambient shadows: highly diffused, never harsh */
  --lift-sm: 0 1px 2px rgba(7,27,61,.04), 0 4px 12px -4px rgba(7,27,61,.06);
  --lift-md: 0 2px 4px rgba(7,27,61,.03), 0 12px 32px -8px rgba(7,27,61,.10);
  --lift-lg: 0 4px 8px rgba(7,27,61,.03), 0 28px 64px -16px rgba(7,27,61,.14);
  --lift-xl: 0 8px 16px rgba(7,27,61,.04), 0 48px 96px -24px rgba(7,27,61,.18);
  --inner-hi: inset 0 1px 1px rgba(255,255,255,.9);
  --inner-hi-inv: inset 0 1px 1px rgba(255,255,255,.14);

  /* Motion */
  --ease:      cubic-bezier(.32,.72,0,1);
  --ease-soft: cubic-bezier(.22,1,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);

  /* Geometry */
  --r-shell: 2rem;
  --r-core:  1.625rem;
  --r-pill:  999px;
  --shell-pad: .375rem;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --maxw-narrow: 780px;
  --nav-h: 74px;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 32px);
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-500); color: #fff; }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -150%);
  z-index: 60; padding: .75rem 1.25rem; border-radius: 0 0 1rem 1rem;
  background: var(--navy-900); color: #fff; font-size: .875rem; font-weight: 600;
  transition: transform .4s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1, .t-h1 { font-size: clamp(2.6rem, 6vw, 4.625rem); }
h2, .t-h2 { font-size: clamp(2rem, 4.3vw, 3.25rem); line-height: 1.08; }
h3, .t-h3 { font-size: clamp(1.3125rem, 2vw, 1.6875rem); line-height: 1.2; letter-spacing: -0.015em; }
h4, .t-h4 {
  font-family: var(--font-sans);
  font-size: 1.0625rem; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.012em;
  color: var(--navy-900);
}

.lede {
  font-size: clamp(1.0625rem, 1.45vw, 1.1875rem);
  line-height: 1.62;
  color: var(--slate-500);
  max-width: 58ch;
  text-wrap: pretty;
}
.body-lg { font-size: 1.0625rem; line-height: 1.7; }
.fine { font-size: .8125rem; line-height: 1.6; color: var(--slate-400); }
.num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.375rem, 4.4vw, 3.25rem);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--navy-900);
}
.serif-accent {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0,"WONK" 0,"opsz" 144;
  font-style: italic; font-weight: 500;
}
.grad-text {
  background: linear-gradient(120deg, var(--brand-400) 0%, var(--brand-200) 60%, var(--gold-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Eyebrow tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3125rem .75rem .3125rem .625rem;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hairline), var(--lift-sm);
  font-size: .625rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-600);
  white-space: nowrap;
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 0 0 3px rgba(32,96,220,.16);
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--gold::before { background: var(--gold-500); box-shadow: 0 0 0 3px rgba(200,162,74,.18); }
.eyebrow--inv {
  background: rgba(255,255,255,.06); color: var(--brand-200);
  box-shadow: inset 0 0 0 1px var(--hairline-inv);
}
.eyebrow--inv::before { background: var(--brand-400); box-shadow: 0 0 0 3px rgba(76,134,238,.2); }

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3.25rem, 6.5vw, 5.5rem); }
.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: .625rem; }
.stack-lg > * + * { margin-top: 2rem; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

.section-head { max-width: 62ch; }
.section-head .eyebrow { margin-bottom: 1.375rem; }
.section-head h2 + .lede { margin-top: 1.125rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

/* Navy "vault" band */
.band-navy {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(32,96,220,.30) 0%, transparent 55%),
    radial-gradient(90% 80% at 92% 100%, rgba(200,162,74,.13) 0%, transparent 55%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: rgba(255,255,255,.72);
  position: relative; isolation: isolate;
}
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }
.band-navy .lede { color: rgba(255,255,255,.62); }
.band-navy .fine { color: rgba(255,255,255,.44); }
.band-navy .num { color: #fff; }
.band-navy strong { color: #fff; }
.band-white { background: var(--white); }
.band-paper { background: var(--paper); }

.rule { height: 1px; border: 0; background: var(--hairline); }
.band-navy .rule { background: var(--hairline-inv); }

/* Fixed film-grain: pointer-events none, never on scrolling containers */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* --------------------------------------------------------------------------
   5. DOUBLE-BEZEL (Doppelrand) ARCHITECTURE
   -------------------------------------------------------------------------- */
.bezel {
  padding: var(--shell-pad);
  border-radius: var(--r-shell);
  background: rgba(7,27,61,.035);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), background .7s var(--ease);
}
.bezel__core {
  height: 100%;
  border-radius: var(--r-core);
  background: var(--white);
  box-shadow: var(--inner-hi), 0 0 0 1px rgba(7,27,61,.05), var(--lift-md);
  transition: box-shadow .7s var(--ease);
  overflow: hidden;
}
.bezel--inv { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hairline-inv); }
.bezel--inv .bezel__core {
  background: linear-gradient(165deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.022) 100%);
  box-shadow: var(--inner-hi-inv), 0 0 0 1px var(--hairline-inv);
}
.bezel--gold { background: rgba(200,162,74,.13); box-shadow: inset 0 0 0 1px rgba(168,132,47,.22); }
.bezel--gold .bezel__core { background: linear-gradient(165deg, #FFFDF8 0%, var(--gold-050) 100%); }

.bezel--hover { cursor: pointer; }
.bezel--hover:hover { transform: translateY(-4px); background: rgba(18,73,184,.07); }
.bezel--hover:hover .bezel__core { box-shadow: var(--inner-hi), 0 0 0 1px rgba(18,73,184,.10), var(--lift-lg); }
.bezel--inv.bezel--hover:hover { background: rgba(255,255,255,.10); }

.pad-card { padding: clamp(1.375rem, 2.3vw, 2rem); }
.pad-card-lg { padding: clamp(1.75rem, 3.1vw, 2.75rem); }

/* --------------------------------------------------------------------------
   6. BUTTONS: Island / Button-in-Button
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-nest: rgba(255,255,255,.16);
  position: relative;
  display: inline-flex; align-items: center; gap: .875rem;
  padding: .5625rem .5625rem .5625rem 1.375rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9375rem; font-weight: 600; letter-spacing: -0.012em;
  line-height: 1.2; white-space: nowrap;
  box-shadow: var(--inner-hi-inv), var(--lift-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease), color .5s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--inner-hi-inv), var(--lift-lg); }
.btn:active { transform: scale(.978); }
.btn__nest {
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--btn-nest);
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.btn__nest svg { width: 13px; height: 13px; }
.btn:hover .btn__nest { transform: translate(3px, -1px) scale(1.06); background: rgba(255,255,255,.26); }

.btn--primary { --btn-bg: linear-gradient(140deg, var(--brand-500) 0%, var(--brand-600) 55%, var(--navy-800) 100%); }
.btn--gold {
  --btn-bg: linear-gradient(140deg, var(--gold-500) 0%, var(--gold-600) 100%);
  --btn-fg: #2A1F07; --btn-nest: rgba(42,31,7,.14);
  box-shadow: var(--inner-hi), var(--lift-md);
}
.btn--gold:hover .btn__nest { background: rgba(42,31,7,.22); }
.btn--ghost {
  --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-nest: rgba(7,27,61,.07);
  box-shadow: var(--inner-hi), 0 0 0 1px var(--hairline-str), var(--lift-sm);
}
.btn--ghost:hover { box-shadow: var(--inner-hi), 0 0 0 1px rgba(18,73,184,.25), var(--lift-md); color: var(--brand-600); }
.btn--ghost:hover .btn__nest { background: rgba(18,73,184,.11); }
.btn--ghost-inv {
  --btn-bg: rgba(255,255,255,.07); --btn-fg: #fff; --btn-nest: rgba(255,255,255,.14);
  box-shadow: var(--inner-hi-inv), inset 0 0 0 1px var(--hairline-inv);
}
.btn--lg { padding: .75rem .75rem .75rem 1.75rem; font-size: 1rem; }
.btn--lg .btn__nest { width: 2.375rem; height: 2.375rem; }
.btn--lg .btn__nest svg { width: 15px; height: 15px; }
.btn--block { display: flex; width: 100%; justify-content: space-between; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; font-weight: 600; color: var(--brand-600);
  transition: gap .5s var(--ease), color .5s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.link-arrow:hover { gap: .75rem; color: var(--navy-900); }
.link-arrow:hover svg { transform: translateX(2px); }
.band-navy .link-arrow { color: var(--brand-200); }
.band-navy .link-arrow:hover { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row.center { justify-content: center; }

/* --------------------------------------------------------------------------
   7. FLUID ISLAND NAV
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding: 1.125rem var(--gutter) 0;
  pointer-events: none;
  transition: transform .7s var(--ease);
}
.nav-wrap.is-hidden { transform: translateY(-150%); }
.nav {
  pointer-events: auto;
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .5rem .5rem 1.125rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--inner-hi), 0 0 0 1px var(--hairline), var(--lift-md);
  transition: box-shadow .7s var(--ease), background .7s var(--ease);
}
.nav.is-stuck {
  background: rgba(255,255,255,.92);
  box-shadow: var(--inner-hi), 0 0 0 1px var(--hairline-str), var(--lift-lg);
}
.nav__brand { display: flex; align-items: center; flex: none; padding-block: .125rem; }
.nav__brand img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .125rem; }
.nav__link {
  padding: .5rem .8125rem; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; letter-spacing: -0.008em;
  color: var(--slate-700);
  transition: color .5s var(--ease), background .5s var(--ease);
}
.nav__link:hover { color: var(--navy-900); background: rgba(7,27,61,.05); }
.nav__link[aria-current="page"] { color: var(--brand-600); background: var(--brand-050); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 700; color: var(--navy-900);
  transition: background .5s var(--ease);
}
.nav__tel svg { width: 14px; height: 14px; color: var(--brand-500); }
.nav__tel:hover { background: rgba(7,27,61,.05); }

/* Hamburger morph */
.burger {
  display: none; position: relative; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--navy-900);
  box-shadow: var(--inner-hi-inv), var(--lift-sm);
  transition: transform .5s var(--ease);
}
.burger:active { transform: scale(.94); }
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 17px; height: 1.75px; border-radius: 2px; background: #fff;
  transition: transform .6s var(--ease), opacity .35s var(--ease);
}
.burger span:nth-child(1) { transform: translate(-50%, -5px); }
.burger span:nth-child(2) { transform: translate(-50%, 0); }
.burger span:nth-child(3) { transform: translate(-50%, 5px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%,0) scaleX(.4); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* Full-screen menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 39;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 2.5rem;
  background: rgba(246,248,252,.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__list { display: flex; flex-direction: column; max-width: var(--maxw); width: 100%; margin-inline: auto; }
.menu__item {
  opacity: 0; transform: translateY(2.5rem);
  transition: opacity .6s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
}
.menu.is-open .menu__item { opacity: 1; transform: translateY(0); }
.menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .5rem 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0,"WONK" 0,"opsz" 144;
  font-size: clamp(1.875rem, 8vw, 2.75rem); font-weight: 600;
  letter-spacing: -0.03em; color: var(--navy-900);
  border-bottom: 1px solid var(--hairline);
  transition: color .5s var(--ease), padding-left .6s var(--ease);
}
.menu__link:hover { color: var(--brand-600); padding-left: .625rem; }
.menu__link span { font-family: var(--font-sans); font-size: .625rem; font-weight: 700; letter-spacing: .18em; color: var(--brand-400); }
.menu__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; max-width: var(--maxw); width: 100%; margin-inline: auto; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* Scoped to .js so the page is fully visible when JavaScript is off or fails.
   The .js class is set by a tiny inline script in each page <head>. */
.js [data-reveal] {
  opacity: 0; transform: translateY(2.5rem); filter: blur(7px);
  transition:
    opacity .9s var(--ease-out) var(--rd, 0ms),
    transform 1s var(--ease-out) var(--rd, 0ms),
    filter .9s var(--ease-out) var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
