/*
Theme Name: Anabaena
Theme URI: https://anabaena.co
Author: Anabaena
Description: Custom theme for Anabaena — subsurface hydrogen biotechnology company.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: anabaena
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  --teal: #1D9E75;
  --teal-light: #5DCAA5;
  --teal-dark: #0F6E56;
  --teal-dim: rgba(29,158,117,0.12);
  --bg: #0a0f0d;
  --bg2: #0f1510;
  --bg3: #141c18;
  --border: rgba(29,158,117,0.18);
  --border2: rgba(29,158,117,0.3);
  --text: #e8f0ec;
  --text2: #8aaa98;
  --text3: #4d7060;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,15,13,0.95) 0%, transparent 100%);
}

.site-branding a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-cells { display: flex; gap: 3px; align-items: center; }
.logo-cell {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-cell 3s ease-in-out infinite;
}
.logo-cell:nth-child(2) { animation-delay: 0.4s; background: var(--teal-light); width: 9px; height: 9px; }
.logo-cell:nth-child(3) { animation-delay: 0.8s; }

@keyframes pulse-cell {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nav-contact-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  text-decoration: none;
  border: 1px solid var(--border2);
  padding: 6px 16px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-contact-link:hover { background: var(--teal-dim); color: var(--text); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem 4rem;
  overflow: hidden;
}

#contour-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal-light);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; right: 2.5rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.scroll-hint::before {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--teal));
}

/* ── MAIN ── */
.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem 2rem;
}

/* ── PROCESS STRIP ── */
.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5rem;
}

.process-step {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
}
.process-step:last-child { border-right: none; }

.process-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.process-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.process-body {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── CONTENT SECTIONS ── */
.content-sections { display: flex; flex-direction: column; }

.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s;
}
.content-section.visible { opacity: 1; transform: none; }

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text3);
  text-transform: uppercase;
  padding-top: 4px;
  line-height: 1.5;
}

.section-body h2 {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-body p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
}
.section-body p + p { margin-top: 0.75rem; }

.callout {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--teal);
  background: var(--teal-dim);
  border-radius: 0 2px 2px 0;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}
.callout strong { color: var(--teal-light); font-weight: 400; }

/* ── CONTACT ── */
.contact-section {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label { display: flex; flex-direction: column; gap: 6px; }
label span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
}

input, textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 100px; }

.submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-light);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}
.submit-btn:hover { background: var(--teal-dim); color: var(--text); }
.form-status { font-family: var(--mono); font-size: 12px; margin-top: 0.5rem; }
.form-status.success { color: var(--teal-light); }
.form-status.error { color: #f87171; }

/* ── FOOTER ── */
.site-footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
}
.site-footer p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
}
.site-footer a { color: var(--text3); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .site-header { padding: 1rem 1.25rem; }
  .hero { padding: 0 1.25rem 3rem; }
  .site-main { padding: 3rem 1.25rem 2rem; }
  .process-strip { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
  .content-section { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-section { grid-template-columns: 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
