/* Fyntrix One — wave-path SVG + layered bands */
:root {
  --blue:        #0A66A6;
  --blue-bright: #2B8BC4;
  --blue-mid:    #085890;
  --blue-deep:   #053A5C;
  --ink:         #151A28;
  --navy:        #1C2434;
  --sky:         #A1DBFF;
  --ice:         #EAF4FB;
  --paper:       #F5F8FB;
  --sheet:       #FFFFFF;
  --mist:        #E3EEF6;
  --text:        #181828;
  --muted:       #3D4C5C;
  --line:        #C5D8E6;
  --text-inv:    #F4F9FC;
  --muted-inv:   #D4E6F2;
  --line-inv:    rgba(244, 249, 252, 0.22);
  --radius:      14px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --header-h:    72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .method-tag, .stratum-idx, .quote-inner blockquote {
  font-family: "Epilogue", "Source Sans 3", system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p, li, blockquote { margin: 0; overflow-wrap: break-word; word-wrap: break-word; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(10, 102, 166, .5);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--text);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(245, 248, 251, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 248, 251, .96);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-name {
  font-size: 18px; font-weight: 700; letter-spacing: .01em;
}
.brand-name em {
  font-style: normal; font-weight: 500; color: var(--blue);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; color: var(--muted); font-weight: 600;
  transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px;
  z-index: 110; flex: 0 0 auto;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.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); }

/* ===== Hero + wave field ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 36px) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 18%, rgba(161, 219, 255, .35), transparent 62%),
    radial-gradient(700px 380px at 8% 80%, rgba(10, 102, 166, .08), transparent 60%),
    var(--paper);
}
.wave-field {
  position: absolute;
  inset: 8% -4% 0 -4%;
  width: 108%;
  height: 92%;
  pointer-events: none;
}
.ghost-wave { transform-origin: center; }
.gw1 { animation: swell 9s ease-in-out infinite; }
.gw2 { animation: swell 11s ease-in-out infinite reverse; }
@keyframes swell {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50%      { transform: translateY(14px) scaleX(1.02); }
}

.draw-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw-in 2.8s var(--ease) forwards;
}
.dp2 { animation-delay: .18s; }
.dp3 { animation-delay: .36s; }
@keyframes draw-in {
  to { stroke-dashoffset: 0; }
}

.stations .st {
  fill: var(--sheet);
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  animation: station-in .5s var(--ease) forwards;
}
.st1 { animation-delay: 1.5s; }
.st2 { animation-delay: 1.75s; }
.st3 { animation-delay: 2s; }
.st4 { animation-delay: 2.25s; }
@keyframes station-in {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: none; }
}
.stations .st { transform-box: fill-box; transform-origin: center; }

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  padding-bottom: 28px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 700;
  max-width: min(14ch, 100%);
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  margin-top: 22px;
  max-width: min(50ch, 100%);
  overflow-wrap: break-word;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px;
}

.path-legend {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: auto 0 0;
  padding: 22px 24px 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: var(--maxw);
  align-self: center;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 248, 251, .82) 28%, var(--paper) 100%);
}
.path-legend li {
  display: flex; align-items: baseline; gap: 10px;
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.path-legend span {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--blue);
  font-weight: 700;
}

/* ===== Shared band + wave join ===== */
.band {
  position: relative;
  padding: 72px 0 88px;
}
.band-wave {
  position: absolute;
  left: 0; right: 0;
  top: -70px;
  width: 100%;
  height: 72px;
  display: block;
  pointer-events: none;
}
.band-paper { background: var(--sheet); }
.band-paper > .band-wave path { fill: var(--sheet); }
.band-mist { background: var(--mist); }
.band-mist > .band-wave path,
.mist-wave path { fill: var(--mist); }
.band-ink { background: var(--ink); color: var(--text-inv); }
.band-ink > .band-wave path,
.ink-wave path { fill: var(--ink); }

.section-head { margin-bottom: 40px; max-width: min(640px, 100%); min-width: 0; }
.section-head h2,
.about-lead h2,
.contact-copy h2,
.stratum-inner h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.on-dark .kicker { color: var(--sky); }
.on-dark h2 { color: var(--text-inv); }
.on-dark .lead { color: var(--muted-inv); }

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.about-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Layered strata ===== */
.layers-wrap { position: relative; }
.stratum {
  position: relative;
  padding: 56px 0 72px;
}
.stratum .band-wave {
  top: -68px;
  height: 72px;
}
.stratum.s1 { background: var(--ice); }
.stratum.s1 .band-wave path { fill: var(--ice); }
.stratum.s2 { background: #D7EAF6; }
.stratum.s2 .band-wave path { fill: #D7EAF6; }
.stratum.s3 { background: #B7D4EA; }
.stratum.s3 .band-wave path { fill: #B7D4EA; }
.stratum.s4 { background: var(--blue); color: var(--text-inv); }
.stratum.s4 .band-wave path { fill: var(--blue); }
.stratum.s4 .stratum-idx { color: var(--sky); }
.stratum.s4 h2 { color: #fff; }
.stratum.s4 p { color: var(--text-inv); }

.stratum-inner {
  max-width: min(640px, 100%);
  min-width: 0;
}
.stratum.s2 .stratum-inner { margin-left: auto; }
.stratum.s4 .stratum-inner { margin-left: auto; }

.stratum-idx {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}
.stratum-inner h2 { margin-bottom: 14px; }
.stratum-inner p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 52ch;
}

/* ===== Method dark ===== */
.method { padding-bottom: 96px; }
.method-track {
  margin: 8px 0 36px;
}
.method-track svg {
  width: 100%;
  height: 70px;
  display: block;
  overflow: visible;
}
.track-line {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  animation: dash-flow 18s linear infinite;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -360; }
}
.method-track circle {
  fill: var(--ink);
  stroke: var(--sky);
  stroke-width: 2.4;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.method-card {
  background: rgba(10, 102, 166, .18);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.method-tag {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 12px;
}
.method-card h3 {
  font-size: 1.28rem;
  color: var(--text-inv);
  margin-bottom: 10px;
}
.method-card p { color: var(--muted-inv); }

/* ===== Quote ===== */
.quote-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
}
.quote-mark {
  display: block;
  font-family: "Epilogue", sans-serif;
  font-size: 5.2rem; line-height: .45;
  color: var(--blue); opacity: .45;
  margin-bottom: 12px;
}
.quote-inner blockquote {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
}
.quote-attr {
  margin-top: 22px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px; font-weight: 600;
}

/* ===== FAQ ===== */
.faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.faq-head { margin: 0; position: sticky; top: 100px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: var(--blue); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: "Source Sans 3", sans-serif; font-size: 1.05rem; font-weight: 600;
  padding: 20px 22px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--blue); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 22px 20px; font-size: .98rem; }

/* ===== Contact ===== */
.contact .kicker { color: var(--sky); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { color: var(--text-inv); margin-bottom: 16px; }
.contact-copy p { color: var(--muted-inv); margin-bottom: 20px; }
.contact-email {
  display: inline-block;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-addr {
  margin-top: 22px;
  color: var(--muted-inv);
  font-size: .98rem;
  line-height: 1.6;
}
.contact-form {
  background: rgba(10, 102, 166, .18);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted-inv); font-weight: 600; }
.field input, .field textarea {
  background: var(--navy);
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  color: var(--text-inv);
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  width: 100%; resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(212, 230, 242, .5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.contact-form .btn { margin-top: 4px; justify-self: start; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sheet);
  padding: 48px 0 26px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-tag { color: var(--muted); margin: 12px 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; padding-top: 20px;
}

/* ===== Reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gw1, .gw2, .draw-path, .stations .st, .track-line, .bead, .bead-core { animation: none; }
  .draw-path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .stations .st { opacity: 1; }
}

/* Hover AFTER reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--blue-mid);
    box-shadow: 0 14px 34px -8px rgba(10, 102, 166, .7);
  }
  .btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
  }
  .nav a:hover { color: var(--text); }
  .nav .nav-cta:hover { border-color: var(--blue); color: var(--blue); }
  .method-card.reveal.in:hover,
  .method-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky);
    background: rgba(10, 102, 166, .32);
  }
  .faq-item:hover { border-color: var(--blue); }
  .faq-q:hover { color: var(--blue-deep); }
  .contact-email:hover { border-bottom-color: #fff; }
  .footer-nav a:hover { color: var(--blue); }
  .contact-form.reveal.in:hover,
  .contact-form:hover {
    border-color: var(--sky);
  }
  .stratum-inner.reveal.in:hover,
  .stratum-inner:hover {
    transform: translateY(-4px);
  }
  .path-legend li.reveal.in:hover,
  .path-legend li:hover {
    color: var(--blue);
  }
}

@media (hover: none) {
  .nav a { color: var(--text); }
  .btn-primary { background: var(--blue); color: #fff; }
  .btn-ghost { color: var(--text); border-color: var(--text); }
  .method-card p, .contact-copy p, .contact-addr { color: var(--text-inv); }
  .faq-q { color: var(--text); }
  .stratum.s4 p { color: var(--text-inv); }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid,
  .faq-wrap,
  .contact-inner { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .faq-head { position: static; }
  .path-legend { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .wave-field { inset: 18% -8% 0 -8%; opacity: .85; }
  .stratum.s2 .stratum-inner,
  .stratum.s4 .stratum-inner { margin-left: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 12px 4px; font-size: 17px; color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-cta {
    text-align: center; margin-top: 10px;
    border-color: var(--blue); color: var(--blue);
  }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .band { padding: 64px 0 72px; }
  .brand-name { font-size: 16px; }
  .method-grid,
  .about-grid,
  .faq-wrap,
  .contact-inner,
  .path-legend { grid-template-columns: 1fr; }
  .method-track { display: none; }
  .stratum { padding: 48px 0 56px; }
}

@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding: calc(var(--header-h) + 18px) 0 0; }
  .hero-copy { padding-bottom: 18px; }
  .hero h1 { font-size: clamp(2rem, 9.2vw, 2.55rem); max-width: 100%; }
  .hero-actions { gap: 10px; margin-top: 26px; flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .about-grid,
  .faq-wrap,
  .contact-inner,
  .method-grid,
  .path-legend { grid-template-columns: 1fr; }
  .path-legend {
    padding: 8px 20px 24px;
    gap: 12px;
  }
  .path-legend li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .band { padding: 56px 0 64px; }
  .band-wave { top: -48px; height: 50px; }
  .stratum { padding: 44px 0 52px; }
  .stratum .band-wave { top: -48px; height: 50px; }
  .section-head { margin-bottom: 28px; }
  .about-grid { gap: 22px; }
  .contact-inner { gap: 32px; }
  .contact-form { padding: 22px 18px; }
  .faq-q { padding: 18px 16px; font-size: 1rem; color: var(--text); }
  .footer-inner { flex-direction: column; gap: 20px; }
  .quote-mark { font-size: 4rem; }
  .hero-sub { font-size: 1.02rem; }
  .method-grid { gap: 12px; }
  .method-card { padding: 20px 18px; }
  .stratum-inner h2 { font-size: 1.7rem; }
  .wave-field { opacity: .55; inset: 28% -12% 8% -12%; }
}
