/* Rofrano Advisory Group — enhanced design system */
:root {
  --navy-900: #0a1226;
  --navy-800: #101b36;
  --navy-700: #182647;
  --navy-500: #3d4c78;
  --gold: #c5a46d;
  --gold-light: #e2c892;
  --gold-dark: #9a7b45;
  --ivory: #faf7f1;
  --stone: #f0ebe0;
  --ink: #1b2236;
  --muted: #5b6478;
  --line: rgba(16, 27, 54, 0.12);
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
p { margin-bottom: 1.1em; }
.container { width: 90%; max-width: var(--max); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-900); padding: 10px 16px; z-index: 2000; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Utilities */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold-light); }
.section { padding: 110px 0; position: relative; }
.section.stone { background: var(--stone); }
.section.dark { background: var(--navy-900); color: #e9ecf4; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: 18px; }
.dark .section-head p { color: #aab3cb; }
.lead { font-size: 20px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 34px; font: 600 13.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--gold); background: var(--gold); color: var(--navy-900); cursor: pointer; transition: all .35s var(--ease); }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold-light); box-shadow: none; }
.btn.dark-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn.dark-ghost:hover { background: var(--navy-800); color: #fff; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 600; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); border-bottom: 1px solid transparent; transition: .3s; }
.link-arrow:hover { border-color: var(--gold-dark); gap: 16px; }

/* Header */
header.site { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: background .4s, box-shadow .4s, padding .4s; padding: 22px 0; }
header.site.scrolled, header.site.solid { background: rgba(10, 18, 38, .94); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 10px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: 54px; width: auto; border-radius: 2px; transition: height .4s; }
header.scrolled .brand img, header.solid .brand img { height: 46px; }
.brand .wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; line-height: 1.1; }
.brand .wordmark small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 38px; list-style: none; }
.menu a { color: #e9ecf4; text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .35s var(--ease); }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a.active { color: var(--gold-light); }
.menu .cta-link { border: 1px solid var(--gold); padding: 10px 22px; color: var(--gold-light); }
.menu .cta-link::after { display: none; }
.menu .cta-link:hover { background: var(--gold); color: var(--navy-900); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; transition: .3s; }
.burger span { top: 21px; } .burger span::before { top: -8px; left: 0; } .burger span::after { top: 8px; left: 0; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; color: #fff; background: radial-gradient(ellipse at 75% 20%, #2b3a68 0%, transparent 55%), radial-gradient(ellipse at 10% 90%, #1a2a52 0%, transparent 50%), linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, #16224a); overflow: hidden; padding: 150px 0 110px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(197,164,109,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(197,164,109,.06) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: float 14s ease-in-out infinite; }
.hero .orb.a { width: 420px; height: 420px; background: #4a5fa8; right: -80px; top: 8%; }
.hero .orb.b { width: 300px; height: 300px; background: var(--gold-dark); left: -100px; bottom: 5%; opacity: .2; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(30px, -40px) scale(1.08); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 400; margin-bottom: 34px; }
.hero h1 span { display: block; opacity: 0; transform: translateY(30px); animation: rise 1s var(--ease) forwards; }
.hero h1 span:nth-child(2) { animation-delay: .18s; color: var(--gold-light); font-style: italic; }
.hero h1 span:nth-child(3) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero p.sub { font-size: 19px; color: #b9c1d8; max-width: 560px; margin-bottom: 42px; opacity: 0; animation: rise 1s .6s var(--ease) forwards; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: rise 1s .8s var(--ease) forwards; }
.hero-card { border: 1px solid rgba(197,164,109,.35); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); padding: 36px 32px; opacity: 0; animation: rise 1s 1s var(--ease) forwards; }
.hero-card h3 { font-size: 15px; font-family: var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; font-weight: 600; }
.hero-card li { list-style: none; display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 16px; color: #dfe4f2; }
.hero-card li b { font-family: var(--serif); color: var(--gold); font-weight: 500; font-size: 22px; line-height: 1.1; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero { padding: 190px 0 100px; background: radial-gradient(ellipse at 85% 0%, #2b3a68 0%, transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(197,164,109,.25); border-radius: 50%; }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 400; max-width: 860px; margin-bottom: 24px; }
.page-hero p { color: #b9c1d8; font-size: 20px; max-width: 720px; }
.crumbs { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #8f9ab8; margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--gold-light); }

/* Stats */
.stats { background: var(--navy-800); color: #fff; border-top: 1px solid rgba(197,164,109,.25); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border: 0; }
.stat .num { font-family: var(--serif); font-size: 58px; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.stat .lbl { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #aab3cb; }

/* Challenges */
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.challenge { background: #fff; padding: 44px 36px; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.challenge::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.challenge:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(16,27,54,.12); }
.challenge:hover::before { width: 100%; }
.icon { width: 58px; height: 58px; border: 1px solid var(--gold); display: grid; place-items: center; margin-bottom: 26px; color: var(--gold-dark); }
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.challenge h3 { font-size: 27px; margin-bottom: 14px; }
.challenge p { color: var(--muted); margin: 0; font-style: italic; font-family: var(--serif); font-size: 20px; line-height: 1.4; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.split h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 26px; }
.quote-block { border-left: 2px solid var(--gold); padding: 6px 0 6px 28px; margin: 30px 0; font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--navy-800); font-style: italic; }
.pillars { display: grid; gap: 18px; }
.pillar { display: flex; gap: 22px; padding: 28px; background: #fff; border: 1px solid var(--line); transition: .4s var(--ease); }
.pillar:hover { transform: translateX(10px); border-color: var(--gold); }
.pillar .n { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; min-width: 50px; }
.pillar h4 { font-size: 22px; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Service cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.svc { background: var(--navy-900); padding: 54px 40px 46px; display: flex; flex-direction: column; transition: background .4s; position: relative; }
.svc:hover { background: var(--navy-700); }
.svc .idx { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .2em; margin-bottom: 30px; }
.svc h3 { font-size: 31px; color: #fff; margin-bottom: 20px; }
.svc p { color: #aab3cb; font-size: 16px; flex: 1; }
.svc .link-arrow { color: var(--gold-light); margin-top: 18px; }

/* Process */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.step { text-align: center; position: relative; }
.step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); display: grid; place-items: center; margin: 0 auto 24px; font-family: var(--serif); font-size: 24px; color: var(--gold-dark); position: relative; z-index: 1; transition: .4s; }
.stone .step .dot { background: var(--stone); }
.step:hover .dot { background: var(--gold); color: var(--navy-900); }
.step h4 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; padding: 0 10px; }

/* Founder / profile */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; position: relative; z-index: 1; box-shadow: 0 40px 80px rgba(10,18,38,.3); }
.portrait::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--gold); z-index: 0; }
.creds { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 18px; font-size: 13px; letter-spacing: .08em; color: var(--navy-800); }

/* Service detail */
.svc-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 90px 0; border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 0; }
.svc-detail .side { position: sticky; top: 120px; align-self: start; }
.svc-detail .side .big { font-family: var(--serif); font-size: 96px; color: var(--gold); opacity: .5; line-height: 1; }
.svc-detail h2 { font-size: clamp(32px, 3.8vw, 46px); margin: 12px 0 0; }
.svc-detail .body p { color: var(--muted); font-size: 18px; }
.focus-list { display: grid; gap: 0; margin-top: 34px; }
.focus { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.focus:last-child { border-bottom: 1px solid var(--line); }
.focus h4 { font-size: 22px; color: var(--navy-800); }
.focus p { margin: 0; font-size: 16px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; transform: translate(-50%,-50%); border: 1px solid rgba(197,164,109,.18); border-radius: 50%; }
.cta-band::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1000px; height: 1000px; transform: translate(-50%,-50%); border: 1px solid rgba(197,164,109,.09); border-radius: 50%; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(36px, 5vw, 62px); margin-bottom: 22px; }
.cta-band p { color: #b9c1d8; font-size: 19px; max-width: 640px; margin: 0 auto 40px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.info-item { display: flex; gap: 18px; margin-bottom: 30px; }
.info-item .icon { margin: 0; flex: none; width: 50px; height: 50px; }
.info-item h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.info-item a { text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--gold); }
form.card { background: #fff; padding: 52px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(16,27,54,.08); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; position: relative; }
.field label { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }
.field label i { color: var(--gold-dark); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; font: 17px var(--sans); padding: 14px 16px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); transition: .3s; border-radius: 0; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(197,164,109,.18); }
.field.err input, .field.err textarea { border-color: #b3402f; }
.field .msg { display: none; color: #b3402f; font-size: 13px; margin-top: 6px; }
.field.err .msg { display: block; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.success { display: none; padding: 18px 20px; background: #eef6ee; border-left: 3px solid #4c8a54; margin-top: 20px; }

/* Footer */
footer.site { background: var(--navy-900); color: #aab3cb; padding: 90px 0 36px; border-top: 1px solid rgba(197,164,109,.3); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 56px; margin-bottom: 60px; }
footer.site h5 { font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 24px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 12px; font-size: 15px; }
footer.site a { text-decoration: none; transition: .3s; }
footer.site a:hover { color: var(--gold-light); }
footer.site .brand { margin-bottom: 22px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; }

/* Back to top + progress */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); z-index: 2000; }
#totop { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; background: var(--gold); border: 0; color: var(--navy-900); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: .4s; z-index: 900; }
#totop.show { opacity: 1; pointer-events: auto; }
#totop:hover { background: var(--gold-light); transform: translateY(-3px); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner, .split, .founder, .contact-grid, .svc-detail { grid-template-columns: 1fr; gap: 50px; }
  .svc-detail .side { position: static; }
  .challenge-grid, .cards-3 { grid-template-columns: 1fr; }
  .stats-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .stat:nth-child(2) { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .burger { display: block; }
  .menu { position: fixed; inset: 0 0 0 auto; width: min(340px, 85vw); background: var(--navy-900); flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .menu.open { transform: none; }
  .burger { z-index: 1100; }
  .portrait::before { inset: 16px -12px -16px 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stats-grid, .timeline, .foot-grid, .row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  form.card { padding: 30px 22px; }
  .focus { grid-template-columns: 1fr; gap: 6px; }
  .brand .wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .hero h1 span, .hero p.sub, .hero .actions, .hero-card { opacity: 1 !important; transform: none !important; }
}
