:root {
  --navy: #1F4E78;
  --deep: #022D60;
  --gold: #C9A961;
  --gold-dark: #8A6D2B;
  --beige: #F4EDE0;
  --paper: #FBF9F4;
  --ink: #1B2430;
  --muted: #5A6472;
  --line: #E4DCCB;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; }
.section { padding: 76px 0; }
.section-alt { background: var(--beige); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-dark); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 26px; border-radius: 6px; border: 2px solid transparent; transition: transform .15s, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-primary:hover { background: #D8BA73; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-note { font-size: .88rem; margin-top: 10px; opacity: .85; }

/* Nav */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(251,249,244,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { height: 48px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-menu a:hover { color: var(--navy); }
.nav-menu .nav-cta { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 6px; }
.nav-menu .nav-cta:hover { background: var(--deep); color: #fff; }

/* Hero */
.hero { background: var(--deep); color: #fff; padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .eyebrow { color: var(--gold); }
.hero p.sub { font-size: 1.15rem; color: #DCE6F2; max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-art img { border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px 0 28px; }
.door { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 26px 26px 22px; display: flex; flex-direction: column; }
.door h3 { margin-bottom: 8px; }
.door p { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin-bottom: 18px; flex: 1; }
.door a { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy); }
.door a:hover { text-decoration: underline; }
.doors-close { max-width: 680px; }

/* Familiar */
.sayings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0; }
.saying { border-left: 4px solid var(--gold); padding: 6px 0 6px 20px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--navy); }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; margin-bottom: 14px; }
.step .tag { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.fineprint { font-size: .92rem; color: var(--muted); max-width: 720px; }

/* Testimonial */
.quote { background: #fff; border-left: 5px solid var(--gold); border-radius: 6px; padding: 32px 34px; max-width: 860px; margin-top: 28px; }
.quote blockquote { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.7; font-style: italic; }
.quote .who { font-weight: 600; margin: 0; }
.quote .who span { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }

/* About */
.about-wrapper { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start; }
.about-wrapper img { border-radius: 10px; box-shadow: 0 10px 28px rgba(2,45,96,.18); }
.cred { list-style: none; padding: 0; margin: 20px 0 24px; }
.cred li { padding: 6px 0 6px 22px; position: relative; }
.cred li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; margin-bottom: 14px; }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.faq-item p { margin: 0; }

/* Footer CTA */
.footer-cta { background: var(--deep); color: #fff; text-align: center; padding: 76px 0; }
.footer-cta h2 { color: #fff; }
.footer-cta p { color: #DCE6F2; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.footer { background: #011F43; color: #B7C6DA; padding: 44px 0 28px; font-size: .94rem; }
.footer a { color: #E3C98C; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer p { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; font-size: .86rem; }

@media (max-width: 860px) {
  .hero-grid, .about-wrapper, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; max-width: 420px; }
  .doors, .sayings, .cards-3, .steps { grid-template-columns: 1fr; }
  .about-wrapper img { max-width: 260px; }
  .nav-menu li:not(:last-child) { display: none; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Centered layout and balanced line breaks */
body { text-align: center; }
h1, h2, h3, h4, .lead, .sub, .eyebrow, .btn-note, .fineprint, .doors-close, .saying, .door p, .card p, .step p, .faq-item p, .footer-cta p { text-wrap: balance; }
p, .quote blockquote { text-wrap: pretty; }
.lead, .hero p.sub, .doors-close, .fineprint, .footer-cta p { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.doors { grid-template-columns: repeat(3, 1fr); }
.door { align-items: center; }
.doors-close { margin-bottom: 24px; }
.saying { border-left: 0; border-top: 4px solid var(--gold); padding: 16px 8px 0; }
.step::before { display: flex; margin: 0 auto 14px; }
.quote { margin-left: auto; margin-right: auto; border-left: 0; border-top: 5px solid var(--gold); }
.about-wrapper { grid-template-columns: 280px 1fr; align-items: center; }
.about-wrapper img { margin: 0 auto; }
.cred li { padding: 5px 0; }
.cred li::before { display: none; }
.faq-item { max-width: 820px; margin-left: auto; margin-right: auto; }
.footer-grid { text-align: center; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .about-wrapper { grid-template-columns: 1fr; } }

/* Second-page additions */
.hero-solo .hero-grid { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.paths .card { padding: 32px 30px; border-top: 4px solid var(--gold); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* Round 3: integrated AI section, larger-projects page, balance */
.nav-menu { gap: 20px; }
.nav-menu a { font-size: .92rem; }
p { text-wrap: balance; }
.quote blockquote { text-wrap: pretty; }
.band { margin: 44px auto 0; max-width: 760px; padding: 26px 28px; background: var(--beige); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; }
.band p { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 16px; }
.ai-note { margin-top: 34px; }
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 32px; }
.stage { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 28px 26px; }
.stage h3 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); font-family: var(--sans); font-weight: 700; margin-bottom: 14px; }
ul.proj { list-style: none; margin: 0; padding: 0; }
ul.proj li { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 500; }
ul.proj li:first-child { border-top: 0; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }
