/* ══════════════════════════════════════════════════
   DILLON AGENCY — AdvisorOS / Dieter Rams DNA
   Ivory base. Cognac leather accents. Walnut warmth.
   Panel-seam grids. Chronograph precision.
   Cormorant Garamond + Inter. Clean restraint.
   ══════════════════════════════════════════════════ */

:root {
  --ivory: #FAF8F0;
  --cream: #F0EBE0;
  --parchment: #E4DDD0;
  --sand: #C8BFA8;
  --chrome: #B0AAA0;
  --stone: #9C9484;
  --warm-gray: #6E6860;
  --charcoal: #3A3630;
  --deep: #1E1C18;
  --cognac: #8C6840;
  --tan: #B8956A;
  --saddle: #6B4E30;
  --walnut: #4A3A28;
  --signal-red: #C8302A;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1120px;
  --pad: 48px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── WALNUT TOP BAR ── */
.walnut-bar {
  height: 3px;
  background: linear-gradient(90deg,
    var(--saddle) 0%, var(--cognac) 25%,
    var(--tan) 50%, var(--cognac) 75%, var(--saddle) 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--parchment);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-mark {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-mark span { color: var(--cognac); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cognac);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--deep); }
.nav-links a.active::after { width: 100%; }

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── LEATHER STITCH DIVIDER ── */
.stitch {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 1px;
  position: relative;
}

.stitch::after {
  content: '';
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg,
    var(--sand) 0px, var(--sand) 8px,
    transparent 8px, transparent 14px
  );
  opacity: 0.5;
}

.stitch-full {
  height: 1px;
  position: relative;
}

.stitch-full::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg,
    var(--sand) 0px, var(--sand) 8px,
    transparent 8px, transparent 14px
  );
  opacity: 0.5;
}

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-label {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--deep);
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.hero h1 em { font-style: italic; color: var(--cognac); }

.hero-sub {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 560px;
  margin-top: 28px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.65s forwards;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px var(--pad) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero-label {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--deep);
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.page-hero h1 em { font-style: italic; color: var(--cognac); }

.page-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 560px;
  margin-top: 24px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.45s forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--deep);
  padding: 14px 32px;
  text-decoration: none;
  border: 1px solid var(--deep);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-primary svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

.btn-secondary {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--sand);
  transition: all 0.3s;
}

.btn-secondary:hover {
  color: var(--deep);
  border-color: var(--cognac);
}

/* ── GAUGE STRIP ── */
.gauge-strip {
  background: var(--cream);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
}

.gauge-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gauge-cell {
  padding: 40px var(--pad);
  text-align: center;
  position: relative;
}

.gauge-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%; width: 1px;
  background: var(--parchment);
}

.gauge-num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--deep);
  line-height: 1;
}

.gauge-unit {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 8px;
}

/* ── SECTIONS ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--pad);
}

.section-label {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--deep);
  line-height: 1.2;
  max-width: 640px;
}

.section-title em { font-style: italic; color: var(--cognac); }

.section-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.8;
  max-width: 600px;
  margin-top: 24px;
}

/* ── DARK SECTION ── */
.dark-section {
  background: var(--deep);
  color: var(--cream);
  padding: 100px 0;
}

.dark-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.dark-label {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}

.dark-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  max-width: 700px;
}

.dark-title em { font-style: italic; color: var(--tan); }

/* ── PANEL-SEAM GRID (2-col dark) ── */
.panel-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  margin-top: 56px;
  border: 1px solid rgba(255,255,255,0.06);
}

.panel-card {
  padding: 40px 36px;
  background: var(--deep);
  position: relative;
  transition: background 0.3s;
}

.panel-card:hover { background: #242220; }

.panel-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cognac);
  opacity: 0;
  transition: opacity 0.3s;
}

.panel-card:hover::before { opacity: 1; }

.panel-card-num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 16px;
}

.panel-card-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.3;
}

.panel-card-body {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.7;
}

/* ── PANEL-SEAM GRID (3-col light) ── */
.panel-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--parchment);
  border: 1px solid var(--parchment);
  margin-top: 56px;
}

.cap-card {
  padding: 44px 36px;
  background: var(--ivory);
  position: relative;
  transition: background 0.3s;
}

.cap-card:hover { background: var(--cream); }

.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--cognac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cap-card:hover::before { transform: scaleX(1); }

.cap-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--cognac);
}

.cap-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 12px;
  line-height: 1.3;
}

.cap-body {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ── TWO COLUMN LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.col-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.85;
}

.col-text p + p { margin-top: 20px; }
.col-text strong { color: var(--deep); font-weight: 500; }

/* ── NUMBERED LIST ── */
.num-list { display: flex; flex-direction: column; }

.num-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--parchment);
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.num-item:first-child { border-top: 1px solid var(--parchment); }

.num-item-num {
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--cognac);
  flex-shrink: 0;
  width: 24px;
}

.num-item-text {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.5;
}

/* ── TIMELINE ── */
.timeline { margin-top: 56px; }

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--parchment);
  align-items: start;
}

.timeline-item:first-child { border-top: 1px solid var(--parchment); }

.timeline-era {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 4px;
}

.timeline-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.2;
}

.timeline-name em { font-style: italic; color: var(--cognac); }

.timeline-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-top: 10px;
  max-width: 540px;
}

.timeline-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cognac);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.timeline-stat-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cognac);
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--deep);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}

.cta-band::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.02);
}

.cta-inner { position: relative; z-index: 1; }

.cta-text {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 36px;
}

.cta-text em { font-style: italic; color: var(--tan); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--cream);
  padding: 16px 40px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-cta:hover { background: var(--ivory); }

.btn-cta svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.form-group { margin-bottom: 28px; }

.form-label {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--deep);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sand);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cognac);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--sand);
}

.contact-side-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 16px;
}

.contact-side-body {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--deep);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--parchment);
  transition: color 0.25s;
}

.contact-link:first-of-type { border-top: 1px solid var(--parchment); }
.contact-link:hover { color: var(--cognac); }

.contact-link svg {
  width: 16px; height: 16px;
  stroke: var(--stone); fill: none; stroke-width: 1.5;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--ivory);
  border-top: 1px solid var(--parchment);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--stone);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--deep); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad: 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--parchment);
    padding: 20px var(--pad);
    gap: 16px;
  }
  .gauge-inner { grid-template-columns: 1fr; }
  .gauge-cell:not(:last-child)::after { display: none; }
  .gauge-cell { border-bottom: 1px solid var(--parchment); }
  .gauge-cell:last-child { border-bottom: none; }
  .panel-grid-2 { grid-template-columns: 1fr; }
  .panel-grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .hero { min-height: 80vh; padding-top: 100px; }
}
