/* ==========================================================================
   OneSix — Modern Advisory & Wealth Management
   Design system: deep ink surfaces, champagne-gold accent,
   Fraunces (display serif) + Inter (text).
   ========================================================================== */

:root {
  --ink-950: #0a0d12;
  --ink-900: #0e1219;
  --ink-850: #131824;
  --ink-800: #1a2130;
  --ink-700: #273042;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ecf1;
  --text-dim: #9aa4b5;
  --text-faint: #6b7688;
  --gold: #c8a96a;
  --gold-bright: #e8cf9a;
  --gold-deep: #8d7a52;
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --container: 1180px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ink-950);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold-bright);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

p { color: var(--text-dim); }
p + p { margin-top: 1em; }

::selection { background: rgba(200, 169, 106, 0.35); color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #14100a;
  box-shadow: 0 8px 28px rgba(200, 169, 106, 0.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(200, 169, 106, 0.32); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn--block { width: 100%; font-family: var(--sans); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand { display: flex; align-items: baseline; gap: 0.6rem; }

.brand-mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.brand-slash { color: var(--text-faint); font-weight: 300; margin: 0 1px; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav__links { display: flex; align-items: center; gap: 1.9rem; }

.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--gold-bright); }

.nav__links .nav__cta {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold-bright);
}
.nav__links .nav__cta:hover { background: rgba(200, 169, 106, 0.1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 56px) 0 0;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid { position: absolute; inset: 0; mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 75%); }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--a {
  width: 640px; height: 640px;
  top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.16), transparent 65%);
}
.hero__glow--b {
  width: 520px; height: 520px;
  bottom: -180px; left: -160px;
  background: radial-gradient(circle, rgba(58, 82, 128, 0.22), transparent 65%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 4.5rem;
}

.hero__lead {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  max-width: 34rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

.hero__points {
  list-style: none;
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hero__points li {
  color: var(--text-faint);
  font-size: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
}
.hero__points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Chart card */

.chart-card {
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(0.6deg);
}

.chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.chart-card__badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.chart { width: 100%; height: auto; }

.chart__line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 2.4s 0.4s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.chart__dot { opacity: 0; animation: fadeDot 0.5s 2.5s ease forwards; }
.chart__area { opacity: 0; animation: fadeDot 1.2s 1.2s ease forwards; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeDot { to { opacity: 1; } }

.chart-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}
.chart-card__foot small { display: block; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.chart-card__foot strong { font-weight: 500; font-size: 0.88rem; }

/* Ticker */

.ticker {
  border-block: 1px solid var(--line);
  padding: 0.95rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.ticker__track {
  display: flex;
  gap: 2.2rem;
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker__track span {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ticker__track i { color: var(--gold-deep); font-style: normal; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.section--tinted {
  background: var(--ink-900);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lead { margin-top: 1.1rem; font-size: 1.02rem; }

/* Split layout */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }

.split__text h2 { margin-bottom: 1.3rem; }

/* Principles grid */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.principle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.015);
}
.principle strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
  color: var(--gold-bright);
}
.principle span { font-size: 0.86rem; color: var(--text-dim); }

/* Image frames + graceful fallback */

.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(200, 169, 106, 0.18), transparent 55%),
    radial-gradient(130% 130% at 85% 90%, rgba(58, 82, 128, 0.3), transparent 60%),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--wide { aspect-ratio: 16 / 10; margin-bottom: 1.1rem; }
.img-frame--band { position: absolute; inset: 0; border-radius: 0; border: 0; }
.img-frame--band img { height: 100%; }

.img-frame.is-fallback::after {
  content: "1/6";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: rgba(232, 207, 154, 0.2);
}

.img-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.3rem 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(transparent, rgba(6, 8, 12, 0.85));
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 169, 106, 0.45);
  background: linear-gradient(165deg, rgba(200, 169, 106, 0.06), rgba(255, 255, 255, 0));
}

.card__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
  transition: color 0.3s ease;
}
.card:hover .card__num { color: var(--gold-bright); }

.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.92rem; }

/* Steps */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

.step h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }
.step p { font-size: 0.9rem; }

/* Quote band */

.band {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) 0;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; }
.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 15, 0.82);
}

.band__overlay { position: relative; z-index: 1; text-align: center; }

.band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  max-width: 52rem;
  margin-inline: auto;
}

.band__attrib {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Checklist */

.checklist {
  list-style: none;
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* Insights */

.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.insight { display: block; }
.insight small {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.insight h3 { margin: 0.4rem 0 0.5rem; transition: color 0.25s ease; }
.insight:hover h3 { color: var(--gold-bright); }
.insight p { font-size: 0.9rem; }
.insight .img-frame { transition: transform 0.35s ease; }
.insight:hover .img-frame { transform: translateY(-4px); }

/* ---------- Contact ---------- */

.section--contact {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(200, 169, 106, 0.07), transparent 60%),
    var(--ink-900);
  border-top: 1px solid var(--line);
}

.contact-details {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-details small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}
.contact-details a { color: var(--gold-bright); font-size: 1.05rem; }
.contact-details a:hover { text-decoration: underline; }
.contact-details span { color: var(--text-dim); }

.contact-form {
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200, 169, 106, 0.05);
}
.field select { appearance: none; }
.field select option { background: var(--ink-850); }
.field textarea { resize: vertical; }

.form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: var(--ink-950);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer__brand p { margin-top: 0.8rem; font-size: 0.88rem; }

.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { font-size: 0.88rem; color: var(--text-dim); }
.footer__links a:hover { color: var(--gold-bright); }

.footer__contact a { color: var(--gold-bright); font-size: 0.92rem; }

.footer__legal {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}
.footer__legal p { font-size: 0.75rem; color: var(--text-faint); max-width: 46rem; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal--delay { transition-delay: 0.15s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .chart__line, .chart__dot, .chart__area { animation: none; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__dot, .chart__area { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .hero__visual { max-width: 540px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 1; }
  .split--reverse .split__media { order: 2; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .insights { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 24px 1.2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { border: 0; padding: 0.85rem 0; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .contact-form { padding: 1.4rem; }
}
