/* Ember Shore Solutions: night shoreline, rising sparks, calm editorial */
:root {
  --royal: #3647a0;
  --royal-d: #26347d;
  --peri: #6780ec;
  --peri-l: #c9d3ff;
  --night: #0f1640;
  --night-2: #161f55;
  --white: #ffffff;
  --mist: #f4f6ff;
  --ink: #161c3d;
  --ink-2: #4a5175;
  --on-dark: rgba(245, 247, 252, .93);
  --on-dark-2: rgba(226, 232, 255, .8);
  --head: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Crimson Text", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 20px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; color: var(--night); }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.label { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--royal); margin-bottom: 14px; }
.label.light { color: var(--peri-l); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0; color: var(--on-dark); transition: background .3s, padding .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(15, 22, 64, .93); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 10px 30px rgba(5, 8, 30, .3); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand small { font-weight: 500; font-size: .8em; opacity: .8; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; transition: transform .35s; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a { font-family: var(--head); font-weight: 500; font-size: 15px; text-decoration: none; color: var(--on-dark); transition: color .2s; }
.primary-nav .nav-cta { padding: 9px 18px; border-radius: 999px; background: rgba(103, 128, 236, .25); border: 1px solid rgba(201, 211, 255, .45); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201, 211, 255, .5); background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--on-dark); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn-white { background: #fff; color: var(--royal-d); }
.btn-outline { border: 1.5px solid rgba(201, 211, 255, .6); color: var(--on-dark); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(660px, 100vh, 920px); display: flex; align-items: center; padding: 140px 0 220px; color: var(--on-dark); background: linear-gradient(180deg, #0a0f2e 0%, var(--night) 45%, #1d2a72 100%); }
.glow { position: absolute; left: 50%; bottom: 120px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(103, 128, 236, .45), rgba(103, 128, 236, 0)); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.hero-inner { position: relative; z-index: 3; text-align: center; max-width: 860px; }
.eyebrow { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--peri-l); margin-bottom: 22px; }
.hero h1 { font-size: clamp(46px, 7vw, 92px); font-weight: 800; color: #fff; }
.hero h1 em { display: block; font-family: var(--body); font-style: italic; font-weight: 400; color: var(--peri-l); letter-spacing: -.01em; }
.lede { max-width: 620px; margin: 8px auto 34px; font-size: 22px; color: var(--on-dark-2); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 240px; z-index: 2; }
.wave path { transform-box: view-box; }
.w1 path { fill: rgba(103, 128, 236, .35); animation: drift 26s linear infinite; }
.w2 path { fill: rgba(54, 71, 160, .75); animation: drift 19s linear infinite reverse; }
.w3 path { fill: #fff; animation: drift 32s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1440px); } }

.sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparks i { position: absolute; bottom: 160px; width: 6px; height: 6px; border-radius: 50%; background: #f2f5ff; box-shadow: 0 0 10px 3px rgba(150, 170, 255, .85), 0 0 24px 8px rgba(103, 128, 236, .45); opacity: 0; animation: rise 9s ease-in infinite; }
.sparks i:nth-child(1) { left: 8%; animation-delay: 0s; }
.sparks i:nth-child(2) { left: 17%; animation-delay: 3.2s; width: 4px; height: 4px; }
.sparks i:nth-child(3) { left: 26%; animation-delay: 6.1s; }
.sparks i:nth-child(4) { left: 35%; animation-delay: 1.4s; width: 3px; height: 3px; }
.sparks i:nth-child(5) { left: 44%; animation-delay: 4.6s; }
.sparks i:nth-child(6) { left: 53%; animation-delay: 7.4s; width: 4px; height: 4px; }
.sparks i:nth-child(7) { left: 61%; animation-delay: 2.3s; }
.sparks i:nth-child(8) { left: 69%; animation-delay: 5.5s; width: 3px; height: 3px; }
.sparks i:nth-child(9) { left: 77%; animation-delay: .8s; }
.sparks i:nth-child(10) { left: 84%; animation-delay: 3.9s; width: 4px; height: 4px; }
.sparks i:nth-child(11) { left: 91%; animation-delay: 6.8s; }
.sparks i:nth-child(12) { left: 49%; animation-delay: 8.2s; width: 3px; height: 3px; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate(18px, -260px) scale(1); }
  80% { opacity: .7; }
  100% { transform: translate(-12px, -520px) scale(.3); opacity: 0; }
}

/* Editorial: stillness */
.stillness { padding: 110px 0 90px; }
.editorial { display: grid; grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: start; }
.ed-head h2 { font-size: clamp(36px, 4.8vw, 58px); }
.ed-body { font-size: 22px; color: var(--ink-2); border-left: 1px solid rgba(54, 71, 160, .25); padding-left: 40px; }
.dropcap::first-letter { float: left; font-family: var(--head); font-weight: 800; font-size: 84px; line-height: .82; padding: 8px 12px 0 0; color: var(--royal); }

/* Focus list */
.focus { padding: 90px 0 110px; background: var(--mist); }
.focus-head { max-width: 640px; margin-bottom: 44px; }
.focus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(54, 71, 160, .3); }
.focus-list li { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 28px; align-items: baseline; padding: 28px 18px; border-bottom: 1px solid rgba(54, 71, 160, .2); border-radius: 12px; transition: background .3s, transform .3s, box-shadow .3s; }
.f-n { font-family: var(--head); font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--peri); }
.focus-list h3 { margin: 0; font-size: 26px; color: var(--night); }
.focus-list p { margin: 0; color: var(--ink-2); }

/* Aim */
.aim { padding: 110px 0; }
.aim-grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; }
.aim-grid p { color: var(--ink-2); font-size: 21px; max-width: 620px; }
.aim-mark svg { width: 100%; max-width: 280px; height: auto; display: block; }
.ring { fill: none; stroke: var(--peri); stroke-width: 1.5; transform-origin: 100px 100px; transform-box: view-box; animation: ripple 6s ease-in-out infinite; }
.r1 { opacity: .3; } .r2 { opacity: .55; animation-delay: .6s; } .r3 { opacity: .8; animation-delay: 1.2s; }
.core { fill: var(--royal); }
@keyframes ripple { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--royal); text-decoration: none; border-bottom: 2px solid var(--peri); padding-bottom: 3px; transition: gap .25s, color .25s; }

/* Quote band */
.quote-band { position: relative; background: var(--royal); color: var(--on-dark); padding: 140px 0 110px; }
.qb-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; }
.qb-wave path { fill: #fff; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; text-align: center; }
.quote-band blockquote p { font-family: var(--body); font-style: italic; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; color: #fff; }
.quote-band footer { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--peri-l); }

/* FAQ */
.faq { padding: 110px 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 14px; background: var(--mist); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s; }
.faq-item.open { background: #fff; border-color: rgba(103, 128, 236, .5); box-shadow: 0 14px 36px rgba(54, 71, 160, .1); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left; padding: 20px 22px; font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--night); }
.chev { flex: 0 0 12px; width: 12px; height: 12px; border-right: 2px solid var(--royal); border-bottom: 2px solid var(--royal); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s; }
.faq-item.open .chev { transform: rotate(225deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.faq-a > p { overflow: hidden; margin: 0; padding: 0 22px; color: var(--ink-2); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 20px; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 120px 0; background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--on-dark); text-align: center; }
.sparks.small i { bottom: 0; }
.contact-inner { position: relative; z-index: 2; max-width: 760px; }
.contact h2 { color: #fff; font-size: clamp(36px, 5vw, 60px); }
.contact p { color: var(--on-dark-2); font-size: 21px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* Footer */
.site-footer { background: #0a0f2e; color: var(--on-dark-2); padding: 30px 0; font-family: var(--head); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.site-footer .brand { font-size: 17px; color: var(--on-dark); }
.site-footer .brand img { width: 34px; height: 34px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Hover life */
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover { color: var(--peri-l); }
  .primary-nav .nav-cta:hover { background: #fff; color: var(--royal-d); }
  .brand:hover img { transform: rotate(-8deg) scale(1.05); }
  .btn:hover { transform: translateY(-3px); }
  .btn-white:hover { box-shadow: 0 0 0 6px rgba(103, 128, 236, .35), 0 14px 30px rgba(5, 8, 30, .3); }
  .btn-outline:hover { background: rgba(103, 128, 236, .25); border-color: #fff; }
  .focus-list li:hover { background: #fff; transform: translateX(10px); box-shadow: 0 12px 30px rgba(54, 71, 160, .1); }
  .focus-list li:hover .f-n { color: var(--royal); }
  .text-link:hover { gap: 14px; color: var(--peri); }
  .faq-item:hover { border-color: rgba(103, 128, 236, .5); transform: translateY(-2px); }
}

/* Tablet */
@media (max-width: 960px) {
  .editorial, .faq-wrap { grid-template-columns: 1fr; gap: 30px; }
  .focus-list li { grid-template-columns: 60px 1fr; }
  .focus-list li p { grid-column: 2; }
  .aim-grid { grid-template-columns: 1fr; gap: 36px; }
  .aim-mark svg { max-width: 180px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 19px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { background: rgba(15, 22, 64, .92); padding: 12px 0; }
  .brand { font-size: 18px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 16px; background: var(--night); border: 1px solid rgba(201, 211, 255, .3); box-shadow: 0 20px 40px rgba(5, 8, 30, .45); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .primary-nav .nav-cta { text-align: center; margin-top: 6px; }
  .hero { min-height: 0; padding: 120px 0 170px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 19px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .waves { height: 130px; }
  .glow { width: 520px; bottom: 60px; }
  .stillness { padding: 70px 0 60px; }
  .ed-body { font-size: 20px; padding-left: 20px; }
  .dropcap::first-letter { font-size: 66px; }
  .focus { padding: 70px 0 80px; }
  .focus-list li { grid-template-columns: 1fr; gap: 6px; padding: 22px 6px; }
  .focus-list li p { grid-column: 1; }
  .focus-list h3 { font-size: 23px; }
  .aim { padding: 80px 0; }
  .aim-grid p { font-size: 19px; }
  .aim-mark svg { max-width: 130px; }
  .quote-band { padding: 100px 0 80px; }
  .qb-wave { height: 40px; }
  .faq { padding: 80px 0; }
  .faq-q { font-size: 17px; padding: 18px; }
  .faq-a > p { padding: 0 18px; }
  .contact { padding: 90px 0; }
  .contact p { font-size: 19px; }
  .contact-actions .btn { flex: 1 1 100%; font-size: 15px; padding: 0 16px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sparks i { opacity: .8; transform: translateY(-120px); }
  .js .reveal { opacity: 1; transform: none; }
}
