/* ================================================================
   Flow State Solutions — styles
   ================================================================ */

:root {
  --cream: #F6F1E8;
  --cream-soft: #EFE8DB;
  --dark: #123C38;
  --dark-deep: #0E2B28;
  --accent: #128277;
  --accent-bright: #2DD4BF;
  --coral: #E0713F;
  --navy: #0E1626;
  --ink: #123C38;
  --ink-soft: rgba(18, 60, 56, 0.72);
  --ink-faint: rgba(18, 60, 56, 0.45);
  --line: rgba(18, 60, 56, 0.16);
  --on-dark: #F6F1E8;
  --on-dark-soft: rgba(246, 241, 232, 0.68);
  --on-dark-line: rgba(246, 241, 232, 0.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Geist", -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 12px);
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--cream); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------------- typography ---------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

em {
  font-style: italic;
  color: var(--accent);
  font-weight: 340;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.eyebrow-num { color: var(--coral); }

.eyebrow-on-dark { color: var(--on-dark-soft); }
.eyebrow-on-teal { color: rgba(246, 241, 232, 0.75); }

/* ---------------- buttons & links ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--dark);
  color: var(--cream);
  box-shadow: 0 1px 2px rgba(18, 60, 56, 0.2);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 10px 24px -8px rgba(18, 130, 119, 0.5);
}

.btn-light {
  background: var(--cream);
  color: var(--dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.btn-light:hover {
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding-block: 0.35rem;
}
.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover svg { transform: translateY(3px); }
.about-link:hover svg, .footer-top:hover svg { transform: translateX(3px) translateY(0); }
.footer-top:hover svg { transform: translateY(-3px); }

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: height 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .header-inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--dark);
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--dark); }
.site-nav a:hover::after { right: 0; }

.btn-header { padding: 0.65rem 1.35rem; font-size: 0.875rem; }

/* header sits over the dark hero until the page scrolls */
.site-header:not(.scrolled) .brand { color: var(--cream); }
.site-header:not(.scrolled) .site-nav a { color: rgba(246, 241, 232, 0.72); }
.site-header:not(.scrolled) .site-nav a:hover { color: #fff; }
.site-header:not(.scrolled) .site-nav a::after { background: var(--accent-bright); }
.site-header:not(.scrolled) .btn-header {
  background: var(--cream);
  color: var(--dark);
}
.site-header:not(.scrolled) .btn-header:hover {
  background: #fff;
  box-shadow: 0 10px 24px -8px rgba(45, 212, 191, 0.4);
}

/* ---------------- hero ---------------- */

.hero { background: var(--navy); }

.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 5rem;
}

#flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* legibility scrim between the animation and the copy */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(14, 22, 38, 0.88) 0%, rgba(14, 22, 38, 0.55) 38%, rgba(14, 22, 38, 0.08) 72%, rgba(14, 22, 38, 0) 100%),
    linear-gradient(180deg, rgba(14, 22, 38, 0.55) 0%, rgba(14, 22, 38, 0) 28%, rgba(14, 22, 38, 0) 78%, rgba(14, 22, 38, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow { color: rgba(246, 241, 232, 0.6); }

.hero-headline {
  font-size: clamp(2.75rem, 7.4vw, 6.75rem);
  max-width: 15ch;
  color: var(--cream);
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.hero-headline em { color: var(--accent-bright); }

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(246, 241, 232, 0.8);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-stage .btn-primary {
  background: var(--accent);
  color: var(--cream);
}
.hero-stage .btn-primary:hover {
  background: var(--accent-bright);
  color: var(--dark-deep);
}
.hero-stage .link-arrow { color: var(--accent-bright); }

.hero-caption {
  position: absolute;
  right: var(--pad-x);
  bottom: 1.75rem;
  z-index: 1;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(246, 241, 232, 0.55);
}

.hero-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-soft);
}

.hero-strip-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 1.35rem;
}

.hero-strip-terms {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.hero-strip-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* ---------------- sections (shared) ---------------- */

.section { padding-block: clamp(5rem, 11vw, 9rem); }

.section-cream { background: var(--cream); }

.section-title {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  max-width: 18ch;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 26rem;
  padding-bottom: 0.4rem;
}

/* ---------------- 01 expertise ---------------- */

.expertise-rows { border-top: 1px solid var(--line); }

.expertise-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease;
}
.expertise-row:hover { background: rgba(18, 130, 119, 0.035); }

.row-num {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--coral);
  padding-top: 0.55rem;
}
.row-num::before { content: "0"; }

.row-main h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  margin-bottom: 0.9rem;
}
.row-main p {
  color: var(--ink-soft);
  max-width: 32rem;
}

.row-list {
  list-style: none;
  padding-top: 0.4rem;
}
.row-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(18, 60, 56, 0.08);
}
.row-list li:last-child { border-bottom: none; }
.row-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------- 02 ways to work ---------------- */

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section-dark .section-title { color: var(--on-dark); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-dark em { color: var(--accent-bright); }

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.way-col {
  padding: 0.5rem clamp(1.5rem, 3.5vw, 3rem);
  border-left: 1px solid var(--on-dark-line);
  transition: border-color 0.3s ease;
}
.way-col:first-child { padding-left: 0; border-left: none; }
.way-col:hover { border-left-color: rgba(224, 113, 63, 0.5); }
.way-col:first-child:hover { border-left: none; }

.way-label {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.75rem;
}
.way-num {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.way-col h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
}

.way-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--on-dark-soft);
}

/* ---------------- 03 about ---------------- */

.about-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.orbit {
  width: clamp(110px, 12vw, 150px);
  flex: none;
  margin-top: -1.5rem;
}
.orbit-spin {
  transform-origin: 80px 80px;
  animation: orbit-rotate 28s linear infinite;
}
@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}
.orbit-text {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--ink-faint);
}

.about-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.4;
  max-width: 34ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 62rem;
  margin-bottom: 3rem;
}
.about-cols p {
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ---------------- contact CTA ---------------- */

.section-teal {
  background: var(--accent);
  color: var(--cream);
}

.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  color: var(--cream);
  max-width: 16ch;
  margin-bottom: 1.75rem;
}
.section-teal em { color: #A7F3E9; }

.contact-sub {
  font-size: 1.0625rem;
  color: rgba(246, 241, 232, 0.85);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.contact-note {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(246, 241, 232, 0.6);
}

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--dark-deep);
  color: var(--on-dark);
  padding-block: 3.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-brand .brand-mark { width: 28px; height: 28px; color: var(--accent-bright); }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.1rem; }

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--on-dark-soft);
  letter-spacing: 0.02em;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8125rem;
  color: var(--on-dark-soft);
}
.footer-meta .link-arrow { color: var(--accent-bright); font-size: 0.8125rem; }

/* ---------------- scroll reveal ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

/* staggered list items inside a revealed parent */
.stagger li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.in-view .stagger li, [data-reveal].in-view.stagger li, .expertise-row.in-view .stagger li {
  opacity: 1;
  transform: none;
}
.expertise-row.in-view .stagger li:nth-child(1) { transition-delay: 0.20s; }
.expertise-row.in-view .stagger li:nth-child(2) { transition-delay: 0.32s; }
.expertise-row.in-view .stagger li:nth-child(3) { transition-delay: 0.44s; }
.expertise-row.in-view .stagger li:nth-child(4) { transition-delay: 0.56s; }

/* ---------------- responsive ---------------- */

@media (max-width: 640px) {
  /* stack: copy flows from the top, braid gets a reserved band at the bottom */
  .hero-stage {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: clamp(15rem, 36vh, 19rem);
  }
  .hero-caption {
    position: static;
    margin-top: 2.5rem;
    padding-inline: var(--pad-x);
    max-width: 26rem;
  }
  .hero-strip-terms { white-space: normal; }
}

@media (max-width: 900px) {
  .expertise-row { grid-template-columns: 3rem 1fr; }
  .expertise-row .row-list { grid-column: 2; }
  .ways-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .way-col { border-left: none; padding-inline: 0; border-top: 1px solid var(--on-dark-line); padding-top: 2rem; }
  .way-col:first-child { border-top: none; padding-top: 0.5rem; }
  .about-cols { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .btn-header { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .stagger li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .orbit-spin, .node-ring { animation: none; }
  .btn, .link-arrow svg { transition: none; }
}
