/* ============================================================
   Cosine (cosinecorp.tech) brand stylesheet
   Story in color: amber = combustion (the problem),
   green = clean electrons (the solution)
   ============================================================ */

:root {
  --green: #169e43;
  --green-dark: #0d7a32;
  --green-bright: #3ddc84;
  --mint: #7fd8a0;
  --deep: #06301c;
  --deeper: #03170d;
  --ink: #0b120d;
  --body: #3c4a41;
  --mist: #f3f8f4;
  --line: #e2ece4;
  --white: #ffffff;
  --amber: #ffb454;
  --ember: #ff7a3d;
  --ember-dark: #c2410c;

  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --shadow-soft: 0 24px 60px -28px rgba(6, 48, 28, 0.28);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

::selection { background: rgba(22, 158, 67, 0.22); }

section { padding: 120px 0; scroll-margin-top: 50px; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.eyebrow.ember { color: var(--ember-dark); }
.eyebrow.ember::before { background: var(--ember); }
.on-dark .eyebrow { color: var(--mint); }
.on-dark .eyebrow::before { background: var(--mint); }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 20px; }
.section-head p { font-size: 18px; }
.on-dark .section-head h2 { color: #fff; }
.on-dark .section-head p { color: rgba(255, 255, 255, 0.76); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}
.btn svg { transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(22, 158, 67, 0.6);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER: announcement + floating nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}
.announce {
  display: block;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 16px;
}
.announce .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.18s ease;
}
.announce:hover .arrow { transform: translateX(4px); }

.nav-shell {
  max-width: var(--wrap);
  margin: 12px auto 0;
  padding: 0 16px;
}
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 12px 0 22px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 14px 44px -20px rgba(3, 23, 13, 0.5);
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 20px; font-size: 14px; box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* bottom padding reserves room for the wave, which scales with the viewport */
  padding: 170px 0 calc(var(--wave-h) + 50px);
  --wave-h: clamp(120px, min(13.2vw, 24vh), 260px);
  overflow: hidden;
  background:
    radial-gradient(900px 560px at 4% 100%, rgba(255, 122, 61, 0.26), transparent 62%),
    radial-gradient(1100px 640px at 96% 8%, rgba(22, 158, 67, 0.4), transparent 62%),
    linear-gradient(180deg, var(--deeper) 0%, var(--deep) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, black 25%, transparent 78%);
}
.hero .wrap { position: relative; width: 100%; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2);
}
.hero h1 {
  color: #fff;
  font-size: clamp(44px, min(6.4vw, 10.5vh), 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 .fire {
  background: linear-gradient(100deg, var(--amber) 0%, var(--ember) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 1.6vw, 20.5px);
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* cosine wave */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  pointer-events: none;
}
.wave-stage { position: relative; width: 100%; }
/* The drawing is sized by its height and centred, so it can be wider than a
   phone screen or narrower than a wide monitor. The line itself runs well past
   the viewBox on both sides, so it always spans the full width. */
.wave-stage svg {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: var(--wave-h);
  width: auto;
  aspect-ratio: 1440 / 190;
  max-width: none;
  overflow: visible;
}
.wave-stage .wave-mols { position: absolute; top: 0; }
.wave-clip { clip-path: inset(-24px 100% -24px 0); }
#waveLine { filter: drop-shadow(0 0 7px rgba(61, 220, 132, 0.45)); }
/* the reveal replays every time .animate is toggled back on (see main.js) */
.hero-wave.animate .wave-clip {
  animation: waveReveal 3.2s cubic-bezier(0.45, 0, 0.25, 1) 0.3s forwards;
}
@keyframes waveReveal { to { clip-path: inset(-24px 0 -24px 0); } }

.hero-wave .molecule { opacity: 0; }
.hero-wave.animate .molecule {
  animation: molIn 0.5s ease forwards;
  animation-delay: var(--d, 2s);
}
@keyframes molIn { to { opacity: 1; } }

/* ============================================================
   PROBLEM
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 34px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(255, 122, 61, 0.09), transparent 70%),
    var(--white);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
}
.stat-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--ember-dark) 10%, var(--ember) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.stat-card p { font-size: 17px; color: var(--ink); font-weight: 500; line-height: 1.45; }
.sources {
  margin-top: 18px;
  font-size: 13px;
  color: #7d8c83;
}
.sources a { text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--ink); }

.sub-head {
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 84px 0 30px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--mist);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.why-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 61, 0.14);
  color: var(--ember-dark);
  margin-bottom: 22px;
}
.why-card h3 { font-size: 21px; margin-bottom: 10px; }
.why-card p { font-size: 15.5px; }

/* ============================================================
   SOLUTION (dark)
   ============================================================ */
.solution {
  position: relative;
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(22, 158, 67, 0.22), transparent 62%),
    radial-gradient(700px 460px at 0% 100%, rgba(22, 158, 67, 0.12), transparent 62%),
    var(--deep);
  overflow: hidden;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  border-radius: var(--radius);
  padding: 36px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(127, 216, 160, 0.45);
  background: rgba(255, 255, 255, 0.075);
}
.step .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(22, 158, 67, 0.25);
  color: var(--mint);
  margin-bottom: 24px;
}
.step .n {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 8px;
}
.step h3 { color: #fff; font-size: 23px; margin-bottom: 12px; }
.step p { color: rgba(255, 255, 255, 0.74); font-size: 15.5px; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.compare-card {
  border-radius: var(--radius);
  padding: 38px 34px;
}
.compare-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  margin-bottom: 22px;
}
.compare-card h3 .badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.compare-card ul { list-style: none; }
.compare-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  font-size: 16px;
}
.compare-card li + li { border-top: 1px solid; }
.compare-card li svg { flex: none; margin-top: 3px; }
.compare-card.old {
  background: rgba(255, 122, 61, 0.07);
  border: 1px solid rgba(255, 122, 61, 0.28);
}
.compare-card.old h3 { color: #ffd9c2; }
.compare-card.old .badge { background: rgba(255, 122, 61, 0.2); color: var(--amber); }
.compare-card.old li { color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 122, 61, 0.16); }
.compare-card.old li svg { color: var(--ember); }
.compare-card.new {
  background: var(--white);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.compare-card.new .badge { background: rgba(22, 158, 67, 0.12); color: var(--green-dark); }
.compare-card.new li { color: var(--ink); font-weight: 500; border-color: var(--line); }
.compare-card.new li svg { color: var(--green); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 70px;
  padding-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.metric .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.metric .num em { color: var(--green-bright); font-style: normal; }
.metric .label { margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }

/* ============================================================
   APPLICATIONS
   ============================================================ */
.apps { background: var(--mist); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(22, 158, 67, 0.35);
}
.app .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(22, 158, 67, 0.1);
  color: var(--green-dark);
  margin-bottom: 20px;
}
.app h3 { font-size: 19px; margin-bottom: 10px; }
.app p { font-size: 14.5px; }

/* ============================================================
   NEWS (slow auto-sliding carousel)
   ============================================================ */
.news-carousel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.news-track {
  display: flex;
  transition: transform 2.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.news-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.news-photo { min-height: 360px; }
.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-photo.is-logo {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.news-photo.is-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.news-body { padding: 44px 42px; align-self: center; }
.news-date {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.news-body h3 { font-size: 25px; margin-bottom: 14px; }
.news-body p { font-size: 15.5px; }
.news-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}
.news-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(11, 18, 13, 0.18);
  transition: background 0.25s ease, width 0.25s ease;
}
.news-dot:hover { background: rgba(11, 18, 13, 0.35); }
.news-dot.is-active { background: var(--green); width: 24px; }

/* ---------- sponsors ---------- */
.sponsors { padding: 0 0 110px; }
.sponsors-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d8c83;
  margin-bottom: 40px;
}
.sponsors-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px clamp(36px, 5vw, 72px);
}
.sponsor {
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.sponsor:hover { opacity: 1; filter: grayscale(0); }
.sponsor img { display: block; width: auto; height: 54px; }
.sponsor-nsf img { height: 44px; }
.sponsor-mit img { height: 62px; }
.sponsor-doerr img { height: 56px; }
.sponsor-hit img { height: 42px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--mist); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.contact-intro p { font-size: 17px; max-width: 44ch; }
.contact-alt {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-alt li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-weight: 500;
}
.contact-alt a { color: var(--body); transition: color 0.15s ease; }
.contact-alt a:hover { color: var(--green-dark); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-soft);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field > span em { color: #93a29a; font-style: normal; font-weight: 500; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #a9b4ad; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 158, 67, 0.15);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233c4a41' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
/* honeypot: hidden from humans */
.contact-form input[name="_honey"] {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-submit { margin-top: 6px; width: 100%; justify-content: center; }
.form-submit[disabled] { opacity: 0.6; cursor: default; }
.form-status {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #c0392b; }
.contact-form.sent .field,
.contact-form.sent .field-row,
.contact-form.sent .form-submit { display: none; }
.form-status.big { font-size: 17px; margin-top: 0; }

/* ============================================================
   TEAM PAGE + SIMPLE PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  padding: 230px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(800px 460px at 96% 0%, rgba(22, 158, 67, 0.4), transparent 62%),
    radial-gradient(600px 380px at 0% 100%, rgba(255, 122, 61, 0.14), transparent 62%),
    linear-gradient(180deg, var(--deeper) 0%, var(--deep) 100%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(42px, 5.8vw, 72px);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 22px;
}
.page-hero h1 .accent { color: var(--green-bright); }
.page-hero p { color: rgba(255, 255, 255, 0.8); font-size: 18.5px; max-width: 58ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1,
.page-hero.center p { margin-left: auto; margin-right: auto; }
.page-hero.center .eyebrow { justify-content: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.person .photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mist);
}
.person .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.45s ease;
}
.person:hover .photo img { transform: scale(1.045); }
.person .photo img.shift-up { object-position: center 59%; }
.person .info { padding: 26px 26px 30px; }
.person .role {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.person h3 { font-size: 22px; margin-bottom: 10px; }
.person p { font-size: 15px; }

.join { background: var(--mist); text-align: center; }
.join h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.join p { max-width: 52ch; margin: 0 auto 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--deeper);
  color: rgba(255, 255, 255, 0.65);
  padding: 68px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #fff;
}
.wordmark .s {
  color: var(--green);
  display: inline-block;
  transform: translateX(1px) scaleX(-1);
}
.footer .tagline { margin-top: 10px; font-size: 14.5px; max-width: 34ch; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--mint); }
.footer-links a.social-link { display: inline-flex; margin-top: 6px; }
.footer-links a.social-link svg { display: block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-clip,
  .hero-wave.animate .wave-clip { animation: none; clip-path: none; }
  .hero-wave .molecule,
  .hero-wave.animate .molecule { animation: none; opacity: 1; }
  .news-track { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  section { padding: 90px 0; }
  .stat-grid, .why-grid, .steps, .compare { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; gap: 34px; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .news-slide { grid-template-columns: 1fr; }
  .news-photo { min-height: 240px; }
  .news-photo.is-logo { min-height: 180px; padding: 30px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .sub-head { margin-top: 64px; }
}

/* short viewports: tighten the hero so the wave stays on screen */
@media (max-height: 780px) and (min-width: 761px) {
  .hero { padding-top: 164px; }
  .hero-tag { display: none; }
  .hero-sub { margin-bottom: 26px; }
}

@media (max-width: 760px) {
  .announce { font-size: 14px; padding: 10px 14px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 20px 50px -20px rgba(3, 23, 13, 0.5);
    padding: 10px 22px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 16px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 10px; text-align: center; justify-content: center; }

  .hero { padding-top: 160px; }
  .hero-sub { margin-bottom: 30px; }
  .apps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 22px; }
  .news-body { padding: 30px 26px; }
  .page-hero { padding: 190px 0 70px; }
}
