  :root {
    --ink:      #1a1a1a;
    --ink-mid:  #3a3a3a;
    --ink-soft: #7a7a7a;
    --rule:     #d8d4cd;
    --bg:       #f8f6f2;
    --white:    #ffffff;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
  }

  /* ── HEADER ── */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(248,246,242,0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rule);
    height: 64px;
    display: flex; align-items: center;
    padding: 0 3rem;
  }

  .header-inner {
    width: 100%; max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
  }

  .logo-lock {
    display: flex; align-items: center; gap: 1.1rem;
    text-decoration: none;
  }

  .logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

  .logo-type { display: flex; flex-direction: column; line-height: 1; }

  .logo-type .the {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.55rem; font-weight: 400; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ink-mid);
  }

  .logo-type .name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em;
    color: var(--ink); margin: 0.1rem 0;
  }

  .logo-type .assoc {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.52rem; font-weight: 400; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ink-soft);
  }

  nav { display: flex; align-items: center; gap: 2.2rem; }

  nav a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.68rem; font-weight: 400; letter-spacing: 0.16em;
    text-transform: uppercase; text-decoration: none;
    color: var(--ink-soft); transition: color 0.2s;
  }

  nav a:hover { color: var(--ink); }

  nav a.nav-cta {
    color: var(--ink);
    border-bottom: 1px solid var(--ink); padding-bottom: 1px;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 7rem 2rem 5rem;
    border-bottom: 1px solid var(--rule);
  }

  .hero-eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem; font-weight: 400; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 2.8rem;
    display: flex; align-items: center; gap: 1.2rem;
  }

  .hero-eyebrow::before, .hero-eyebrow::after {
    content: ''; display: block; width: 40px; height: 1px; background: var(--rule);
  }

  .hero-mark {
    width: 72px; height: 72px; margin: 0 auto 2.2rem;
    opacity: 0; animation: appear 1s 0.1s ease forwards;
  }

  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 300; line-height: 1.15; letter-spacing: -0.01em;
    color: var(--ink); max-width: 820px; margin-bottom: 1.8rem;
    opacity: 0; animation: appear 1s 0.25s ease forwards;
  }

  .hero h1 em { font-style: italic; font-weight: 300; }

  .hero-rule {
    width: 1px; height: 40px; background: var(--rule);
    margin: 0 auto 1.8rem;
    opacity: 0; animation: appear 0.8s 0.4s ease forwards;
  }

  .hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300; color: var(--ink-mid);
    max-width: 520px; line-height: 1.85; margin: 0 auto 3rem;
    opacity: 0; animation: appear 0.8s 0.5s ease forwards;
  }

  .hero-cta {
    display: flex; align-items: center; gap: 2.5rem;
    flex-wrap: wrap; justify-content: center;
    opacity: 0; animation: appear 0.8s 0.65s ease forwards;
  }

  .btn-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--ink); padding-bottom: 2px;
    transition: opacity 0.2s;
  }

  .btn-text:hover { opacity: 0.5; }

  .btn-text.secondary { color: var(--ink-soft); border-color: var(--rule); }

  @keyframes appear {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── SECTIONS ── */
  section { padding: 6rem 2rem; }
  .section-inner { max-width: 1120px; margin: 0 auto; }

  .section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem; font-weight: 400; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 1.6rem;
    display: flex; align-items: center; gap: 1rem;
  }

  .section-label::after { content: ''; display: block; width: 32px; height: 1px; background: var(--rule); }

  h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300; line-height: 1.2; color: var(--ink); margin-bottom: 2rem;
  }

  h2 em { font-style: italic; }

  /* ── ABOUT ── */
  .about { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

  .about-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 7rem; align-items: start; }

  .about-text p {
    font-size: 1.12rem; font-weight: 300; color: var(--ink-mid);
    margin-bottom: 1.4rem; max-width: 540px;
  }

  .founded-line {
    display: flex; align-items: center; gap: 0.8rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 2.5rem;
  }

  .founded-line::before { content: ''; display: block; width: 20px; height: 1px; background: var(--ink-soft); }

  .stats-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }

  .stat-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
  }

  .stat-row .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem; font-weight: 300; color: var(--ink); line-height: 1;
  }

  .stat-row .lbl {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-soft); text-align: right; max-width: 160px; line-height: 1.5;
  }

  /* ── TOOLS ── */
  .tools { background: var(--bg); }

  .tools-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 3rem;
  }

  .tool-card {
    background: var(--white); padding: 3rem;
    text-decoration: none; color: inherit;
    transition: background 0.2s;
    display: flex; flex-direction: column;
  }

  .tool-card:hover { background: #f4f2ee; }

  .tool-num {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem; font-weight: 400; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2rem;
  }

  .tool-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem; font-weight: 300; line-height: 1.25;
    color: var(--ink); margin-bottom: 1rem;
  }

  .tool-card h3 em { font-style: italic; }

  .tool-desc {
    font-size: 1rem; font-weight: 300; color: var(--ink-mid);
    line-height: 1.8; margin-bottom: 2rem; flex: 1;
  }

  .feature-list { list-style: none; border-top: 1px solid var(--rule); margin-bottom: 2rem; }

  .feature-list li {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.68rem; letter-spacing: 0.1em;
    color: var(--ink-soft); padding: 0.65rem 0;
    border-bottom: 1px solid var(--rule);
    display: flex; align-items: center; gap: 0.75rem;
  }

  .feature-list li::before { content: '—'; color: var(--rule); flex-shrink: 0; }

  .tool-arrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink);
    display: flex; align-items: center; gap: 0.6rem;
    transition: gap 0.2s; margin-top: auto;
  }

  .tool-card:hover .tool-arrow { gap: 1rem; }

  /* ── ROADMAP ── */
  .roadmap-section { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

  .roadmap-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 7rem; align-items: start; }

  .roadmap-intro p {
    font-size: 1.05rem; font-weight: 300; color: var(--ink-mid);
    line-height: 1.85; margin-bottom: 1.2rem;
  }

  .roadmap-list { border-top: 1px solid var(--rule); }

  .rm-item {
    display: grid; grid-template-columns: 80px 1fr;
    gap: 2rem; padding: 2rem 0;
    border-bottom: 1px solid var(--rule); align-items: start;
  }

  .rm-status {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
    padding-top: 0.2rem;
  }

  .rm-status.done  { color: var(--ink-mid); }
  .rm-status.now   { color: var(--ink); }
  .rm-status.next  { color: var(--rule); }

  .rm-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 400; color: var(--ink); margin-bottom: 0.4rem;
  }

  .rm-content p { font-size: 0.92rem; font-weight: 300; color: var(--ink-soft); line-height: 1.7; }

  /* ── JOIN ── */
  .join { background: var(--ink); text-align: center; }

  .join h2 { color: var(--bg); font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 1rem; }

  .join p { font-size: 1rem; font-weight: 300; color: rgba(248,246,242,0.55); max-width: 420px; margin: 0 auto 2.5rem; }

  .join .section-label { color: rgba(248,246,242,0.35); justify-content: center; }
  .join .section-label::after { background: rgba(248,246,242,0.15); }

  .email-row {
    display: flex; gap: 0; max-width: 440px; margin: 0 auto;
    border: 1px solid rgba(248,246,242,0.25);
  }

  .email-row input {
    flex: 1; font-family: 'Cormorant Garamond', serif; font-size: 1rem;
    padding: 0.85rem 1.2rem; background: transparent; color: var(--bg);
    border: none; outline: none;
  }

  .email-row input::placeholder { color: rgba(248,246,242,0.3); }

  .email-row button {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 0.85rem 1.5rem; background: var(--bg); color: var(--ink);
    border: none; cursor: pointer; transition: opacity 0.2s; white-space: nowrap;
  }

  .email-row button:hover { opacity: 0.85; }

  .join-note {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem; letter-spacing: 0.12em;
    color: rgba(248,246,242,0.25); margin-top: 1.2rem; text-transform: uppercase;
  }

  /* ── FOOTER ── */
  footer { background: var(--bg); border-top: 1px solid var(--rule); padding: 2.5rem 2rem; }

  .footer-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  }

  .footer-brand { display: flex; align-items: center; gap: 1rem; }
  .footer-brand .mark { width: 24px; height: 24px; }

  .footer-brand span {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
  }

  .footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }

  .footer-links a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-soft); text-decoration: none; transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--ink); }

  .footer-copy {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.58rem; letter-spacing: 0.12em; color: var(--rule); text-transform: uppercase;
  }

  /* ── REVEAL ── */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.v { opacity: 1; transform: none; }
  .d1 { transition-delay: 0.1s; }
  .d2 { transition-delay: 0.2s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 860px) {
    .about-grid, .roadmap-grid { grid-template-columns: 1fr; gap: 3rem; }
    .tools-grid { grid-template-columns: 1fr; }
    nav a:not(.nav-cta) { display: none; }
    header { padding: 0 1.5rem; }
    section { padding: 4rem 1.5rem; }
    .rm-item { grid-template-columns: 60px 1fr; gap: 1.2rem; }
  }

/* ── SHARED PAGE TEMPLATE / SUBPAGES ── */
.page-shell {
  min-height: 100vh;
  padding-top: 88px;
}

.page-container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.page-subtitle {
  color: var(--ink-soft);
  max-width: 700px;
  margin-bottom: 2rem;
}

/* 404 */
.error-template {
  background: var(--bg);
  color: var(--ink);
}

.error-template .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-template .header,
.error-template .footer {
  position: static;
  background: transparent;
  border: 0;
  height: auto;
  padding: 1.5rem 0;
  display: block;
  text-align: center;
}

.error-template .main {
  flex: 1;
  display: grid;
  place-items: center;
}

.error-template .hero.wrapper {
  min-height: auto;
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 3rem 2rem;
  width: min(760px, calc(100% - 3rem));
}

.error-template .hero h1 {
  margin-bottom: 1rem;
}

.error-template .hero .hero__meta {
  color: var(--ink-mid);
  margin-bottom: 2rem;
}

.error-template .btn {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.error-template .logo img {
  max-width: 300px;
  height: auto;
}

/* FishCast v2 app shell */
.fishcastv2-page {
  padding: 96px 0 3rem;
}

.fishcastv2-page .app-intro {
  margin-bottom: 1.8rem;
}

.fishcastv2-page .card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 1rem;
  margin-bottom: 1rem;
}

.fishcastv2-page h2,
.fishcastv2-page h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.fishcastv2-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fishcastv2-page th,
.fishcastv2-page td {
  border: 1px solid var(--rule);
  padding: 6px;
  text-align: right;
}

.fishcastv2-page th:first-child,
.fishcastv2-page td:first-child {
  text-align: left;
}

.fishcastv2-page input,
.fishcastv2-page select,
.fishcastv2-page button {
  padding: 6px;
  margin: 2px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.fishcastv2-page .muted,
.fishcastv2-page .field-hint,
.fishcastv2-page .fit-empty {
  color: var(--ink-soft);
}

.fishcastv2-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.fishcastv2-page .input-sections { display: grid; gap: 14px; }
.fishcastv2-page .input-section { border: 1px solid var(--rule); padding: 10px; background: #fbfaf8; }
.fishcastv2-page .input-section h3 { margin: 0 0 8px; font-size: 1.2rem; }
.fishcastv2-page .input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 12px; }
.fishcastv2-page .input-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.fishcastv2-page .input-grid label.inline-check { flex-direction: row; align-items: center; gap: 8px; }
.fishcastv2-page .input-grid label.inline-check input { margin: 0; }
.fishcastv2-page .ok { color: #0a7f2e; }
.fishcastv2-page details summary { cursor: pointer; font-weight: 700; }
.fishcastv2-page .parameter-help p { margin: 8px 0; }
.fishcastv2-page #fitOut { margin-top: 10px; }
.fishcastv2-page .fit-report { background: #fbfaf8; border: 1px solid var(--rule); padding: 10px 12px; line-height: 1.4; }
.fishcastv2-page .fit-report p { margin: 6px 0; }
.fishcastv2-page .fit-report ul { margin: 8px 0 0 18px; padding: 0; }
.fishcastv2-page .fit-report li { margin: 6px 0; }
.fishcastv2-page .fit-warning { color: #8a5a00; }
.fishcastv2-page .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.fishcastv2-page .toolbar button { white-space: nowrap; }
.fishcastv2-page .chart-wrap { overflow-x: auto; }
.fishcastv2-page #trendChart { width: 100%; min-width: 780px; height: 300px; border: 1px solid var(--rule); background: var(--white); }
.fishcastv2-page #tableWrap { overflow-x: auto; }
.fishcastv2-page .disclaimer { border-left: 4px solid #8a5a00; background: #fff8e8; padding: 8px 10px; }

@media (max-width: 640px) {
  .fishcastv2-page #trendChart { min-width: 620px; }
}
