/* Sea Meadow Tofino — layout, components, coastal visual language.
   Source of brand identity: js/site-config.js (swap-in ready). */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(233, 237, 233, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
  display: block;
}
.brand-mark path {
  fill: none;
  stroke: var(--sea);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark .mark-wave {
  stroke: var(--kelp);
  opacity: 0.7;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-copy strong {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-copy span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.16s ease, color 0.16s ease;
}
.primary-nav a:hover {
  background: var(--surface);
  color: var(--sea-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s 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 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(207, 227, 223, 0.6), rgba(233, 237, 233, 0) 70%),
    repeating-linear-gradient(115deg, rgba(31, 111, 107, 0.05) 0 2px, transparent 2px 22px);
}
.hero-media {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.96) contrast(1.02);
}
.hero-bg::before {
  /* Localized left-anchored sea-glass veil — concentrated behind the left copy
     column, fading to fully transparent by ~68% so the right coastline/ocean
     stays clear and vivid. NOT a whole-hero wash or a rectangular panel. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(233, 237, 233, 0.82) 0%,
      rgba(233, 237, 233, 0.6) 26%,
      rgba(233, 237, 233, 0.26) 48%,
      rgba(233, 237, 233, 0) 68%
    ),
    linear-gradient(180deg, rgba(207, 227, 223, 0.3), rgba(233, 237, 233, 0) 50%);
}
.hero-bg::after {
  /* Left-localized bottom fade ONLY — mirrors the leftward bias so it does not
     wash the right-hand coastline/ocean. Keeps the lower-left copy anchored
     without a full-width block. */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 62%;
  height: 56%;
  background: linear-gradient(
    90deg,
    rgba(233, 237, 233, 0.62) 0%,
    rgba(233, 237, 233, 0.28) 60%,
    rgba(233, 237, 233, 0) 100%
  );
}
@media (max-width: 860px) {
  /* Copy is full-width on tablet/mobile: a lighter top-weighted veil keeps
     dark text readable across the column while the lower coastline stays
     visible. */
  .hero-bg::before {
    background: linear-gradient(
      180deg,
      rgba(233, 237, 233, 0.72) 0%,
      rgba(233, 237, 233, 0.52) 44%,
      rgba(233, 237, 233, 0.26) 74%,
      rgba(233, 237, 233, 0.08) 100%
    );
  }
  .hero-logo {
    width: 116px;
    margin-bottom: 16px;
  }
  .hero-inner {
    padding: 72px 20px 64px;
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 92px 24px 84px;
  max-width: 880px;
}
/* Full brand logo lockup at the top of the hero — transparent PNG, no card,
   allowed to breathe. Carries the venture name so the h1 can stay a descriptor
   (no redundant large name headline). */
.hero-logo {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 22px;
  filter: drop-shadow(0 1px 2px rgba(233, 237, 233, 0.5));
}
/* Subtle text shadow as a legibility safety net over busier image areas —
   keeps the airy, panel-free hero readable without a solid box. */
.hero h1,
.hero .lede,
.hero .eyebrow,
.hero .hero-note {
  text-shadow: 0 1px 2px rgba(233, 237, 233, 0.55);
}
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  margin-bottom: 0.5em;
  color: var(--ink);
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}
.hero-note {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.btn-primary {
  background: var(--sea);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--sea-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--sea-strong);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--sea);
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}
.section-alt {
  background: var(--bg-alt);
}
.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 10px;
  font-weight: 600;
}
.section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  max-width: 760px;
  margin-bottom: 0.6em;
}
.section-intro {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---------- Cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
@media (max-width: 820px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.45em;
  color: var(--sea-strong);
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Fact lists ---------- */
.factlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.factlist li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sea);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin: 0;
}
.factlist .src {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.callout h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
  color: var(--coral);
}
.callout ul {
  margin: 0 0 10px;
}
.callout .src {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}
.callout-future {
  border-left: 3px solid var(--kelp);
}
.callout-future p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Figures (photography) ---------- */
.crop-figure {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.crop-figure picture,
.crop-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.crop-figure figcaption {
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.crop-figure figcaption .attrib {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
}
@media (max-width: 640px) {
  .crop-figure figcaption {
    font-size: 0.82rem;
  }
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 4px 2px 0;
  font-family: var(--font-mono);
}
.tag-fact {
  background: var(--sea-soft);
  color: var(--sea-strong);
}
.tag-hypothesis {
  background: var(--amber-soft);
  color: var(--amber);
}
.tag-assumption {
  background: var(--salt);
  color: var(--sea-strong);
}
.tag-unknown {
  background: var(--coral-soft);
  color: var(--coral);
}
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.caveat {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Stepper (grow framework) ---------- */
.stepper {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 900px) {
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .stepper {
    grid-template-columns: 1fr;
  }
}
.stepper li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
  position: relative;
}
.stepper .step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.stepper h3 {
  font-size: 1.04rem;
  margin-bottom: 0.35em;
  color: var(--sea-strong);
}
.stepper p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Validation pipeline ---------- */
.pipeline {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 980px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
}
.pipeline li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pipeline .p-stage {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--sea-strong);
  font-size: 1.02rem;
}
.pipeline .p-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pipeline .done {
  border-color: var(--sea);
  background: var(--sea-soft);
}
.pipeline .active {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-soft);
}

/* ---------- Status gates ---------- */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .gate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .gate-grid {
    grid-template-columns: 1fr;
  }
}
.gate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.gate h3 {
  font-size: 1rem;
  margin: 8px 0 4px;
  color: var(--ink);
}
.gate p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.gate-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.gate-yellow {
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

/* ---------- Contact ---------- */
.contact-inner {
  max-width: 720px;
}
.contact-placeholder {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d7e0dd;
  padding: 44px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}
.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
}
.footer-brand span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb1ad;
  margin-top: 2px;
}
.footer-note {
  color: #a9b9b5;
  font-size: 0.92rem;
  max-width: 640px;
}
.footer-meta {
  color: #7d918d;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin: 0;
}
.footer-images {
  color: #8fa09c;
  font-size: 0.78rem;
  max-width: 760px;
  margin: 10px 0 0;
  line-height: 1.55;
}
.footer-images a {
  color: #b9c9c5;
  text-decoration: underline;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.open {
    display: flex;
  }
  .primary-nav a {
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Research question ---------- */
.question-heading {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  max-width: 880px;
  line-height: 1.28;
  color: var(--sea-strong);
}
.question-heading em {
  color: var(--ink);
}
.measure-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.measure-list li {
  position: relative;
  padding-left: 26px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.measure-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 4px var(--sea-soft);
}
@media (max-width: 640px) {
  .measure-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Evidence triad (DIRECT / ANALOG / UNKNOWN) ---------- */
.evidence-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 0;
}
@media (max-width: 820px) {
  .evidence-triad {
    grid-template-columns: 1fr;
  }
}
.evidence-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.evidence-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  margin-bottom: 0.5em;
  color: var(--ink);
}
.evidence-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.ev-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.evidence-direct {
  border-top: 3px solid var(--sea);
}
.evidence-direct .ev-tag {
  background: var(--sea-soft);
  color: var(--sea-strong);
}
.evidence-analog {
  border-top: 3px solid var(--kelp);
}
.evidence-analog .ev-tag {
  background: var(--kelp-soft);
  color: var(--kelp);
}
.evidence-unknown {
  border-top: 3px solid var(--coral);
}
.evidence-unknown .ev-tag {
  background: var(--coral-soft);
  color: var(--coral);
}

/* ---------- Collaboration list ---------- */
.collab-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.collab-list li {
  position: relative;
  padding-left: 24px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.collab-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--kelp);
}
@media (max-width: 640px) {
  .collab-list {
    grid-template-columns: 1fr;
  }
}
.contact-cta {
  margin-top: 28px;
}

/* ---------- Contact states ---------- */
.contact-email {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--sea-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-email:hover {
  color: var(--sea);
}
.contact-placeholder {
  margin-top: 0;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--ink-soft);
}
