/* VMG Companies site styles.
   Layout idea: a light masthead over a deep navy opening with an architectural field, then
   paper, sage, paper, navy and sand bands. Two line serif headlines, the second line in italic.
   One scaled figure (years of ownership) carries the thesis. Single theme by choice. */
:root {
  color-scheme: light;
  --paper: #F6F4EF;
  --sage: #E9EBE5;
  --sand: #E7E2D6;
  --field: #FCFBF8;
  --ink: #14232D;
  --slate: #535F68;
  --rule: #D3D4CB;
  --navy: #13242F;
  --navy-line: #2F4654;
  --on-navy: #F3F1EA;
  --on-navy-muted: #ABB7BE;
  --gold: #C6A66D;
  --gold-deep: #86672A;
  --conv: #A7B0B5;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(19, 36, 47, 0.12);
  overflow-wrap: break-word;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.hero :focus-visible, .value :focus-visible, .page-head :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  background: var(--navy); color: var(--on-navy); padding: 12px 18px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.mast .wrap, footer .wrap { max-width: none; padding-left: clamp(20px, 3.2vw, 44px); padding-right: clamp(20px, 3.2vw, 44px); }

.label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* Masthead */
.mast { background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; line-height: 1; }
.brand-mark { font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: -0.01em; }
.brand-word { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav-links a.plain { font-size: 0.9375rem; text-decoration: none; color: var(--ink); }
.nav-links a.plain:hover { color: var(--gold-deep); }
.nav-links a.plain[aria-current="page"] { color: var(--gold-deep); box-shadow: 0 2px 0 var(--gold); }

.btn {
  display: inline-block; cursor: pointer;
  font: 600 0.9375rem/1.2 var(--font-body);
  padding: 16px 26px; border-radius: 0; text-decoration: none;
  background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #20384A; border-color: #20384A; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #D6B982; border-color: #D6B982; }
.btn.gold .arrow { display: inline-block; margin-left: 34px; font-size: 1.125em; line-height: 1; }
.btn.line { background: transparent; color: var(--ink); padding: 11px 20px; }
.btn.line:hover, .btn.line[aria-current="page"] { background: var(--navy); color: var(--on-navy); }

.menu-btn { display: none; font: 600 0.9375rem/1.2 var(--font-body); background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 12px 18px; min-height: 44px; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--gold-deep); }

/* Opening */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.tower { position: absolute; top: 0; right: 0; width: 64%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 34%, rgba(19, 36, 47, 0.55) 62%, rgba(19, 36, 47, 0.15) 100%);
}
.hero-body { position: relative; z-index: 1; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(120px, 21vw, 290px); }
.hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.375rem); line-height: 1.08; letter-spacing: -0.012em;
}
h1 em, h2 em { font-style: italic; }
.hero h1 em { color: var(--gold); display: block; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 38px; }
.hero-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 32px; margin-top: clamp(56px, 7vw, 84px); padding-top: 28px; border-top: 1px solid var(--navy-line); font-size: 0.9375rem; color: var(--on-navy); }
.scroll-cue { background: none; border: 0; padding: 12px 0; cursor: pointer; color: var(--on-navy); font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 22px; }
.scroll-cue .arrow { font-size: 1.25rem; letter-spacing: 0; }
.scroll-cue:hover { color: var(--gold); }

.page-head { background: var(--navy); color: var(--on-navy); }
.page-head .wrap { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(40px, 6vw, 84px); }
.page-head h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.375rem, 5.2vw, 4rem); line-height: 1.1; letter-spacing: -0.012em; }
.page-head p { margin-top: 18px; max-width: 58ch; color: var(--on-navy-muted); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.sage { background: var(--sage); --rule: #CDD0C7; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 104px); align-items: start; }
h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 2.875rem); line-height: 1.1; letter-spacing: -0.01em; margin-top: 0;
}
h2 em { display: block; color: var(--slate); }
.prose p { max-width: 60ch; color: var(--slate); }
.prose p + p { margin-top: 1.1em; }
.prose h2 + p { margin-top: 22px; }
.prose h3.sub { font-size: 1rem; font-weight: 600; margin-top: 34px; margin-bottom: 12px; }
.intro { max-width: 62ch; margin-top: 22px; color: var(--slate); }
.more { display: inline-block; margin-top: 26px; padding: 6px 0; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(36px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.pillars.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.pillar { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.pillar h3, .lever h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.pillar p { margin-top: 10px; color: var(--slate); max-width: 50ch; }

.levers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--on-navy-muted); }
.lever { padding: 28px clamp(18px, 2.6vw, 36px) 32px; border-left: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.lever:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.lever p { margin-top: 10px; color: var(--on-navy-muted); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.pair.flush { margin-top: 0; }
.list-head { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.list > div { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.list dt { font-weight: 600; }
.list dd { margin-top: 6px; color: var(--slate); }
.faq { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--ink); max-width: 860px; }
.faq dt { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.25; }
.faq dd { margin-top: 10px; max-width: 68ch; }

/* Navy bands */
.value { background: var(--navy); color: var(--on-navy); }
.value .label { color: var(--gold); }
.value h2 em { display: inline; color: var(--gold); }
.value .intro { color: var(--on-navy-muted); }
.credo { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 2.875rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 24ch; }
.credo-note { margin-top: 26px; color: var(--on-navy-muted); max-width: 56ch; }

/* Years of ownership figure: one linear scale, 0 to 30 years across 94% of the track */
.horizon { margin-top: clamp(44px, 6vw, 76px); border-top: 1px solid var(--ink); padding-top: 24px; }
.h-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px 20px; align-items: center; margin-top: 22px; }
.h-name { font-size: 0.9375rem; font-weight: 500; }
.h-track { position: relative; height: 44px; }
.h-reveal { height: 100%; animation: reveal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.h-reveal.long { animation-duration: 2.4s; animation-delay: 0.35s; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.h-bar { height: 100%; display: flex; align-items: center; }
.h-conv { width: 18.8%; background: var(--conv); border-right: 3px solid var(--ink); }
.h-vmg {
  width: 100%; color: var(--on-navy);
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 45%, rgba(19, 36, 47, 0.12) 100%);
  padding-left: 14px; font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
}
.h-note { position: absolute; top: 50%; left: calc(18.8% + 14px); transform: translateY(-50%); font-size: 0.875rem; color: var(--slate); white-space: nowrap; }
.h-axis { position: relative; height: 34px; border-top: 1px solid var(--rule); }
.h-axis span {
  position: absolute; top: 0; padding-top: 10px; transform: translateX(-50%);
  font-size: 0.8125rem; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.h-axis span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 6px; background: var(--slate); }
.h-axis .t0 { left: 0; transform: none; }
.h-axis .t0::before { left: 0; }
.h-axis .t10 { left: 31.33%; }
.h-axis .t20 { left: 62.67%; }
.h-axis .t30 { left: 94%; }
.h-source { margin-top: 14px; font-size: 0.8125rem; color: var(--slate); max-width: 70ch; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.model { width: 100%; border-collapse: collapse; margin-top: clamp(40px, 6vw, 72px); }
.model th, .model td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.model thead th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); border-bottom: 1px solid var(--ink); padding-top: 0; }
.model thead th:last-child { color: var(--slate); }
.model tbody th { font-weight: 600; width: 24%; }
.model td { color: var(--slate); width: 38%; }
.model td.ours { color: var(--ink); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); margin-top: clamp(36px, 5vw, 60px); }
.card { display: flex; flex-direction: column; background: var(--field); border: 1px solid var(--rule); border-top: 2px solid var(--navy); padding: 30px 28px 26px; text-decoration: none; transition: border-color 0.15s ease; }
.card:hover { border-color: var(--navy); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.card p { margin-top: 12px; color: var(--slate); }
.card span { margin-top: auto; padding-top: 24px; font-weight: 600; color: var(--gold-deep); }

.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.phase { padding: 28px clamp(20px, 3vw, 40px) 8px; border-left: 1px solid var(--rule); }
.phase:first-child { padding-left: 0; border-left: 0; }
.num { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.08em; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.phase .when { margin-top: 18px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.phase h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; margin-top: 8px; }
.phase p { margin-top: 12px; color: var(--slate); }

.process { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--ink); }
.process > div { display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 9fr); gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.process h3 { font-size: 1.0625rem; font-weight: 600; }
.process p { color: var(--slate); }

.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rules.spaced { margin-top: 26px; }
.rules li { padding: 18px 0; border-bottom: 1px solid var(--rule); }

/* Inquiries */
.contact { background: var(--sand); }
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body);
  color: var(--ink); background: var(--field);
  border: 1px solid #C8C2B2; border-radius: 0; padding: 13px 14px; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-hint { font-size: 0.875rem; color: var(--slate); flex: 1 1 220px; }
.form-status { font-size: 0.9375rem; border-left: 2px solid var(--gold-deep); padding-left: 14px; overflow-wrap: anywhere; }
.form-status:empty { display: none; }

.legal { max-width: calc(76ch + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.legal h2 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); margin-top: 44px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 12px; color: var(--slate); }
.legal a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }

.cta { background: var(--sand); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

footer { background: var(--paper); font-size: 0.875rem; color: var(--slate); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 40px; padding-bottom: 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot-nav a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.foot-nav a:hover { color: var(--gold-deep); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--rule); font-size: 0.8125rem; }
.foot-legal { display: inline-block; margin-left: 14px; padding: 6px 0; color: var(--ink); text-underline-offset: 4px; }

/* Tablet */
@media (max-width: 920px) {
  .menu-btn { display: inline-block; }
  .nav-links { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .cards, .phases { grid-template-columns: minmax(0, 1fr); }
  .pillars.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 48px); }
  .levers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lever:nth-child(3n+1) { padding-left: clamp(18px, 2.6vw, 36px); border-left: 1px solid var(--navy-line); }
  .lever:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tower { width: 100%; opacity: 0.5; }
  .hero::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(19, 36, 47, 0.8) 100%); }
  .phases { border-top: 0; }
  .phase, .phase:first-child { padding: 26px 0 28px; border-left: 0; border-top: 1px solid var(--rule); }
  .process > div { grid-template-columns: 48px minmax(0, 1fr); }
  .process p { grid-column: 2; }
  /* Keep the last axis label inside the track on narrower screens */
  .h-axis .t30 { transform: translateX(-100%); }
  .h-axis .t30::before { left: auto; right: 0; }
}

/* Phone */
@media (max-width: 640px) {
  .pair, .pillars, .pillars.three, .levers { grid-template-columns: minmax(0, 1fr); }
  .lever, .lever:nth-child(3n+1), .lever:nth-child(odd) { padding: 24px 0 26px; border-left: 0; }
  .hero-body { padding-top: 56px; padding-bottom: 72px; }
  .hero-strip { justify-content: flex-start; }
  .h-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .h-grid .h-track { margin-bottom: 12px; }
  .h-grid .h-spacer { display: none; }
  .h-track { height: 40px; }
  .model, .model tbody, .model tr, .model th, .model td { display: block; width: auto; }
  .model thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .model { border-top: 1px solid var(--ink); }
  .model tr { padding: 18px 0 16px; border-bottom: 1px solid var(--rule); }
  .model tbody th, .model td { padding: 0; border: 0; width: auto; }
  .model td { margin-top: 10px; }
  .model td::before { content: attr(data-label); display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
  .model td.ours::before { color: var(--gold-deep); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .actions .btn, .form-foot .btn, .cta .btn { width: 100%; text-align: center; }
  .btn.gold .arrow { margin-left: 18px; }
  .card { padding: 26px 22px 22px; }
  .foot-legal { margin-left: 0; margin-right: 14px; }
  .foot-base > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-reveal { animation: none; }
  .btn, .card { transition: none; }
}

@media print {
  .mast, .mobile-nav, .cta, .hero-strip, .tower, .skip { display: none !important; }
  .hero, .page-head, .value { background: none; color: var(--ink); }
  .hero::after { display: none; }
}
