/* TaVa Forge public website. The look follows the owner's MyWealth Legatus and MyGrowth Academy pages: navy header
   with a gold rule and an outlined pill Login, a deep navy hero with a faint emblem, an angled gold band where the
   hero ends, and gold cards with a pale gold rim. Typeface Inter, as in the portal. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #122032;          /* body text, headings on light */
  --navy: #10203a;         /* header */
  --navy-deep: #0c182b;    /* hero base, footer */
  --navy-card: #172c4a;    /* panels on navy */
  --steel: #46699a;        /* the blue glow in the hero, chart second line */
  --mist: #d9dfe7;         /* text on navy */
  --mist-dim: #a9b4c3;     /* secondary text on navy */
  --gold: #e2ae4d;
  --gold-rule: #c9a65c;    /* header rule, outlines */
  --gold-pale: #f0dfae;    /* gold card rim */
  --gold-ink: #8a6420;     /* gold text on light at small sizes */
  --canvas: #f1f3f6;
  --line: #dfe4ea;
  --muted: #5b6676;
  --gold-grad: linear-gradient(135deg, #c8973f 0%, #f1d48a 42%, #dcae55 66%, #b9883a 100%);
  --radius-pill: 999px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--gold); color: var(--navy); font-weight: 600; border-radius: 8px; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, filter .15s;
}
.btn-lg { min-height: 56px; padding: 0 38px; font-size: 17px; }
.btn-gold {
  color: #15213a;
  background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 80, 20, .25), 0 8px 22px rgba(0, 0, 0, .28);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline { color: #fff; border: 2px solid var(--gold-rule); background: transparent; }
.btn-outline:hover { background: rgba(226, 174, 77, .12); }

/* ---------------------------------------------------------------- header */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy);
  border-bottom: 3px solid var(--gold-rule);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand img { width: 190px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 56px; }
.site-nav ul { display: flex; gap: 44px; }
.site-nav ul a { color: var(--mist); text-decoration: none; font-size: 17px; padding: 8px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--gold); }
.btn-login { min-height: 52px; padding: 0 48px; font-size: 17px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .masthead-inner { min-height: 76px; }
  .brand img { width: 150px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1.5px solid rgba(201, 166, 92, .6); border-radius: 12px;
    background: transparent; color: var(--gold); cursor: pointer;
  }
  .menu-toggle .icon { width: 26px; height: 26px; }
  .menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px 20px 28px; background: var(--navy); border-bottom: 3px solid var(--gold-rule);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(217, 223, 231, .12); }
  .btn-login { width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--mist);
  background:
    radial-gradient(55% 90% at 0% 45%, rgba(70, 105, 154, .55), transparent 70%),
    radial-gradient(40% 60% at 100% 10%, rgba(70, 105, 154, .18), transparent 70%),
    linear-gradient(180deg, #13243d 0%, var(--navy-deep) 100%);
}
.hero-mark {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(760px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -46%);
  background: url("/static/img/tava-forge-emblem.svg") center / contain no-repeat;
  opacity: .07; filter: saturate(.6);
}
.hero-inner { text-align: center; padding: 112px 0 104px; }
.hero h1 {
  max-width: 15ch; margin-inline: auto;
  font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; font-weight: 750; letter-spacing: -.028em;
  padding-bottom: .06em;
}
.hero-lead { max-width: 60ch; margin: 28px auto 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: #eef1f5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

.hero-home .hero-inner { padding: 132px 0 200px; }
.hero-page .hero-inner { padding: 96px 0 84px; }
.hero-page h1 { max-width: 18ch; font-size: clamp(38px, 5.4vw, 66px); }
.hero-slim .hero-inner { padding: 72px 0 60px; }

/* The angled gold band where the hero ends: navy peaks at the centre, a gold strip follows the same angle. */
.band-strip { position: relative; height: 84px; margin-top: -1px; background: var(--canvas); }
.band-strip::before, .band-strip::after { content: ""; position: absolute; inset: 0; }
.band-strip::before { background: var(--gold-grad); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 30%, 0 72%); }
.band-strip::after { background: var(--navy-deep); clip-path: polygon(0 0, 100% 0, 100% 46%, 50% 4%, 0 46%); }

/* ---------------------------------------------------------------- gold cards across the band (home) */
.band { position: relative; }
.gold-cards {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: -190px;
}
.gold-card {
  position: relative;
  padding: 34px 30px 36px;
  border: 10px solid var(--gold-pale);
  border-radius: 32px;
  color: #1c2433;
  background: linear-gradient(165deg, #f5e2a8 0%, #e9c46f 42%, #d9a94f 78%, #caa04f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -40px 50px rgba(150, 100, 30, .16),
    0 0 0 1px rgba(160, 120, 50, .35),
    0 26px 50px rgba(8, 18, 34, .32);
}
.gold-card-icon {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--navy); color: var(--gold);
}
.gold-card-icon .icon { width: 28px; height: 28px; }
.gold-card h2 { margin-top: 22px; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.gold-card h2 a { text-decoration: none; }
.gold-card h2 a::after { content: ""; position: absolute; inset: -10px; border-radius: 32px; }
.gold-card h2 a:focus-visible { outline: none; }
.gold-card:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 4px; }
.gold-card:hover { filter: brightness(1.03); }
.gold-card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #2c2a22; }

/* ---------------------------------------------------------------- approach (home) */
.approach { padding: 120px 0 112px; }
.approach-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.statement { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--ink); max-width: 22ch; }
.approach-intro { font-size: 15px; font-weight: 600; color: var(--gold-ink); }
.steps { position: relative; margin-top: 18px; display: grid; gap: 14px; }
.steps li {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(18, 32, 50, .06);
  font-size: 18px; font-weight: 600; color: var(--navy);
}
.step-n {
  display: inline-flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold-grad); color: var(--navy); font-weight: 750; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------- what we do */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 72px 0 112px; }
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 48px; border-radius: 32px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(18, 32, 50, .06);
  scroll-margin-top: 120px;
}
.service-flip .service-copy { order: 2; }
.service-icon {
  display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center;
  border-radius: 18px; background: var(--gold-grad); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 6px var(--gold-pale);
}
.service-icon .icon { width: 30px; height: 30px; }
.service h2 { margin-top: 26px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.service-copy p { margin-top: 16px; max-width: 46ch; font-size: 18px; color: #334155; }

.service-visual {
  min-height: 300px; padding: 28px; border-radius: 24px; color: var(--mist);
  background: radial-gradient(70% 90% at 0% 0%, rgba(70, 105, 154, .45), transparent 70%), linear-gradient(160deg, #183052, var(--navy-deep));
  box-shadow: inset 0 0 0 1px rgba(201, 166, 92, .35);
  display: flex; flex-direction: column; justify-content: center;
}
.viz-grid line { stroke: rgba(217, 223, 231, .12); stroke-width: 1; }
.viz-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.viz-line-alt { stroke: #7fa3d6; stroke-dasharray: 2 7; stroke-width: 2.5; }
.viz-mark { stroke: rgba(240, 223, 174, .35); stroke-dasharray: 4 6; }
.viz-dots circle { fill: #f0dfae; }
.viz-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--mist-dim); }
.key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.key-gold { background: var(--gold); }
.key-blue { margin-left: 14px; background: repeating-linear-gradient(90deg, #7fa3d6 0 3px, transparent 3px 7px); }

.rules-frame { position: relative; padding: 36px 24px 28px; border: 2px dashed rgba(226, 174, 77, .6); border-radius: 20px; }
.rules-label {
  position: absolute; top: -13px; left: 22px; padding: 0 10px;
  background: #142846; color: var(--gold); font-size: 14px; font-weight: 600;
}
.rules-flow { display: grid; justify-items: center; gap: 30px; }
.rule-node { padding: 14px 22px; border-radius: 14px; font-weight: 650; font-size: 16px; text-align: center; }
.rule-check { position: relative; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(217, 223, 231, .25); color: #fff; }
.rule-check::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 30px; background: rgba(217, 223, 231, .3); }
.rule-branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 340px; }
.rule-branches::before { content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 2px; background: rgba(217, 223, 231, .3); }
.rule-branch { display: grid; justify-items: center; gap: 10px; padding-top: 14px; }
.rule-tag { font-size: 13px; color: var(--mist-dim); }
.rule-act { min-width: 110px; background: var(--gold-grad); color: var(--navy); }
.rule-pause { min-width: 110px; background: transparent; color: var(--mist); box-shadow: inset 0 0 0 2px rgba(217, 223, 231, .45); }

.compare { flex-direction: row; align-items: center; gap: 14px; }
.compare-col { flex: 1; display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(217, 223, 231, .16); }
.compare-head { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.compare-row { height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(217, 223, 231, .35), rgba(217, 223, 231, .12)); }
.compare-row:nth-of-type(2n) { width: 78%; }
.compare-match { display: grid; gap: 12px; padding-top: 34px; color: var(--gold); }
.compare-match .icon { width: 14px; height: 14px; }
.compare-match span { height: 14px; display: flex; align-items: center; }

/* ---------------------------------------------------------------- who we are */
.name-story { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 72px; padding: 96px 0 40px; }
.name-word {
  font-size: clamp(84px, 13vw, 176px); line-height: .9; font-weight: 800; letter-spacing: -.05em;
  padding-bottom: .08em;
}
.name-part > p:not(.name-word) { margin-top: 22px; max-width: 40ch; font-size: 19px; line-height: 1.6; color: #334155; }
.name-part strong { color: var(--navy); }
.name-together {
  grid-column: 1 / -1; margin-top: 40px; padding: 32px 0 0; border-top: 3px solid var(--gold-rule);
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: var(--navy); max-width: 40ch;
}
.values { padding: 72px 0 112px; }
.section-title { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.value-list li {
  display: grid; gap: 22px; align-content: start;
  padding: 32px 30px; border-radius: 28px; color: var(--mist);
  background: radial-gradient(80% 100% at 0% 0%, rgba(70, 105, 154, .45), transparent 70%), linear-gradient(160deg, #183052, var(--navy-deep));
  box-shadow: inset 0 0 0 1px rgba(201, 166, 92, .35), 0 18px 40px rgba(18, 32, 50, .14);
}
.value-list p { font-size: 20px; line-height: 1.4; font-weight: 600; color: #fff; }
.value-icon {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--gold-grad); color: var(--navy);
}
.value-icon .icon { width: 28px; height: 28px; }
.statement-light { margin-top: 56px; max-width: 32ch; }

/* ---------------------------------------------------------------- portal invitation */
.portal-cta { padding: 0 0 112px; }
.page-home .portal-cta { padding-top: 0; }
.portal-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 36px 40px; border-radius: 28px; color: var(--mist);
  background: radial-gradient(60% 120% at 100% 0%, rgba(70, 105, 154, .4), transparent 70%), linear-gradient(160deg, #15294a, var(--navy-deep));
  box-shadow: inset 0 0 0 1px rgba(201, 166, 92, .45), 0 18px 40px rgba(18, 32, 50, .16);
}
.portal-icon {
  display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-rule);
}
.portal-icon .icon { width: 28px; height: 28px; }
.portal-copy h2 { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.portal-copy p { margin-top: 6px; max-width: 62ch; color: var(--mist); }

/* ---------------------------------------------------------------- legal draft pages */
.legal { padding: 64px 0 112px; max-width: 760px; }
.legal-draft { padding: 28px 32px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.footer { color: var(--mist-dim); background: var(--navy-deep); border-top: 3px solid var(--gold-rule); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding: 64px 0 40px; }
.footer-brand img { width: 170px; height: auto; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer-nav h2 { font-size: 14px; font-weight: 600; color: var(--gold); }
.footer-nav ul { display: grid; gap: 10px; margin-top: 14px; }
.footer-nav a { color: var(--mist); text-decoration: none; font-size: 15.5px; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { display: grid; gap: 10px; padding: 28px 0 40px; border-top: 1px solid rgba(217, 223, 231, .12); font-size: 13.5px; line-height: 1.6; }
.footer-legal p { max-width: 110ch; }
.copyright { margin-top: 6px; color: #8794a6; }

/* ---------------------------------------------------------------- one entrance: the home hero settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-home h1, .hero-home .hero-lead, .hero-home .hero-actions { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-home .hero-lead { animation-delay: .12s; }
  .hero-home .hero-actions { animation-delay: .24s; }
  .hero-home .hero-mark { animation: mark 1.6s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes mark { from { opacity: 0; transform: translate(-50%, -46%) scale(1.06); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1080px) {
  .gold-cards { gap: 20px; }
  .gold-card { padding: 28px 22px 30px; }
}
@media (max-width: 900px) {
  .gold-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; margin-top: -150px; }
  .hero-home .hero-inner { padding: 88px 0 172px; }
  .approach { padding: 80px 0; }
  .approach-inner, .service, .name-story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .service { padding: 32px 24px; }
  .service-flip .service-copy { order: 0; }
  .value-list { grid-template-columns: 1fr; }
  .portal-card { grid-template-columns: 1fr; justify-items: start; padding: 30px 26px; }
  .band-strip { height: 56px; }
  .services { padding: 48px 0 80px; }
  .name-story { padding-top: 64px; }
  .portal-cta, .values { padding-bottom: 80px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero-inner { padding: 72px 0 64px; }
  .hero-actions .btn { width: 100%; }
  .service-visual { min-height: 0; padding: 20px; }
  .compare { gap: 8px; }
  .compare-col { padding: 14px; }
  .gold-card { border-width: 8px; border-radius: 26px; }
  .rules-frame { padding: 32px 14px 22px; }
  .rule-branches { gap: 12px; }
  .rule-act, .rule-pause { min-width: 0; width: 100%; }
}
