/* ==========================================================
   Cross Step Labs — styles
   Clean, light, lots of whitespace; ocean accents.
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-tint: #f6f8f8;
  --ink: #0a0a0a;
  --ink-2: #3f4446;
  --muted: #6b7275;
  --line: #e7eaeb;

  --sea-50: #ecf8fb;
  --sea-100: #cdeef6;
  --sea-300: #7fd0e6;
  --sea-500: #2a9fc7;
  --sea-700: #0b6e99;
  --sea-900: #063b55;
  --sand: #f3ead9;
  --foam: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 8px 24px rgba(10, 10, 10, .06);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }

h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.placeholder-note { opacity: .6; font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: .9rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-light { background: rgba(255,255,255,.8); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow); }
.btn-white { background: #fff; color: var(--sea-900); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 32px; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; width: 38px; height: 38px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 22px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 180px; overflow: hidden; text-align: center; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin: 0 0 28px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.7);
  font-size: .85rem; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sea-500); box-shadow: 0 0 0 0 rgba(42,159,199,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(42,159,199,.5); } 70% { box-shadow: 0 0 0 10px rgba(42,159,199,0); } 100% { box-shadow: 0 0 0 0 rgba(42,159,199,0); } }
.lede { max-width: 640px; margin: 24px auto 0; font-size: 1.15rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* soft ocean "orbs" */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; background: var(--sea-100); top: -140px; left: -120px; }
.orb-b { width: 460px; height: 460px; background: #bfe6df; top: 60px; right: -140px; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; background: var(--sand); bottom: 40px; left: 35%; opacity: .6; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

/* forecast chart card */
.forecast {
  --c-actual: #3a56b0;
  --c-p50: #12a0a8;
  --c-band: rgba(18, 160, 168, .16);
  max-width: 980px; margin: 64px auto 0; padding: 24px 28px 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: left;
}
.fc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.fc-title { font-weight: 600; letter-spacing: -0.015em; font-size: 1.05rem; }
.fc-sub { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.fc-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.tab {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .85rem; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
.fc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 4px; padding: 0; font-size: .82rem; color: var(--ink-2); }
.fc-legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 18px; height: 0; border-top: 2px solid; }
.key-actual { border-color: var(--c-actual); }
.key-p50 { border-color: var(--c-p50); border-top-style: dashed; }
.key-band { height: 10px; border: 0; border-radius: 3px; background: var(--c-band); }
.fc-plot { position: relative; height: 300px; touch-action: pan-y; }
.fc-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fc-plot .grid line { stroke: var(--line); stroke-width: 1; }
.fc-plot .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.fc-plot .today line { stroke: #b7bec1; stroke-width: 1; stroke-dasharray: 2 3; }
.fc-plot .today text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.fc-plot .l-actual { fill: none; stroke: var(--c-actual); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fc-plot .l-p50 { fill: none; stroke: var(--c-p50); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.fc-plot .band { fill: var(--c-band); }
.fc-plot .hair { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; }
.fc-plot .dot { stroke: #fff; stroke-width: 2; }
.fc-plot .hit { fill: transparent; cursor: crosshair; }
.fc-tip {
  position: absolute; top: 8px; pointer-events: none; z-index: 2;
  min-width: 150px; padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .8rem; color: var(--ink-2);
}
.fc-tip .tip-when { color: var(--muted); margin-bottom: 6px; }
.fc-tip .row { display: flex; align-items: center; gap: 8px; }
.fc-tip .row + .row { margin-top: 4px; }
.fc-tip strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-tip .key { width: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* waves */
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave-1 { fill: var(--sea-100); opacity: .7; animation: swell 16s linear infinite; }
.wave-2 { fill: var(--sea-300); opacity: .35; animation: swell 11s linear infinite reverse; }
.wave-3 { fill: var(--bg); animation: swell 22s linear infinite; }
@keyframes swell { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* each svg holds two identical wave periods; sliding it left by half loops seamlessly */

/* ---------- Logo strip ---------- */
.logos { padding: 24px 0 72px; }
.logos p { font-size: .9rem; margin: 0 0 24px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 56px; }
.logo-row li { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; color: #a3a9ab; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .muted { font-size: 1.1rem; margin: 16px 0 0; }
.kicker { font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--sea-700); margin: 0 0 14px; }

.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--ink-2); margin: 10px 0 18px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sea-900); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-1 { background: linear-gradient(135deg, var(--sea-100), #e6f7fb); }
.ic-2 { background: linear-gradient(135deg, #d3efe9, #eef9f6); }
.ic-3 { background: linear-gradient(135deg, var(--sand), #fbf7ef); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 6px;
  border-bottom: 2px solid var(--sea-500); border-radius: 0 0 50% 50%;
}

/* work */
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.work-art { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; }
.work-art span { position: relative; z-index: 1; font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; color: rgba(255,255,255,.95); }
.work-art::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40px; height: 110px;
  background: radial-gradient(60% 60px at 50% 100%, rgba(255,255,255,.35), transparent 70%);
}
.art-1 { background: linear-gradient(135deg, #0b6e99, #2a9fc7 60%, #7fd0e6); }
.art-2 { background: linear-gradient(135deg, #063b55, #0f7c8c 60%, #6fd1bf); }
.art-3 { background: linear-gradient(135deg, #1d4e6b, #4a8fb2 55%, #e6d3ad); }
.art-4 { background: linear-gradient(135deg, #0a0a0a, #183b4d 60%, #2a9fc7); }
.work-body { padding: 28px 32px 32px; }
.work-body p { color: var(--ink-2); margin: 10px 0 0; }
.work-meta { font-size: .85rem; color: var(--muted) !important; margin: 0 0 8px !important; }


/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #cdeef6 0%, #7fd0e6 45%, #2a9fc7 70%, #0b6e99 100%);
  display: grid; place-items: center;
}
.about-photo img { width: 42%; border-radius: 22%; box-shadow: 0 20px 40px rgba(6,59,85,.35); }
.about-text p { color: var(--ink-2); font-size: 1.05rem; }
.about-text h2 { margin-bottom: 20px; }

/* quote */
.quote { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; letter-spacing: -0.01em; }

/* CTA */
.cta {
  position: relative; overflow: hidden;
  margin: 0 20px; border-radius: 32px;
  background: radial-gradient(120% 120% at 20% 0%, #0f7c9c 0%, #063b55 55%, #041f2f 100%);
  color: #fff; padding: 112px 0 200px; text-align: center;
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.waves-cta .wave-1 { fill: rgba(127,208,230,.25); opacity: 1; }
.waves-cta .wave-2 { fill: rgba(255,255,255,.12); opacity: 1; }

/* footer */
.footer { padding: 56px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; font-size: .92rem; color: var(--ink-2); flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: .85rem; color: var(--muted); margin: 0; width: 100%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 720px) {
  .container, .narrow { width: calc(100% - 32px); }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .hero { padding: 64px 0 140px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .forecast { padding: 18px 16px 14px; margin-top: 48px; }
  .fc-plot { height: 230px; }
  .cta { margin: 0 12px; padding: 80px 0 160px; }
  .logo-row { gap: 12px 28px; }
  .logo-row li { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
