/*
Theme Name:  SensorEra
Theme URI:   https://sensorera.tech
Author:      SensorEra Inc.
Description: Custom one-page theme for SensorEra — autonomous seismic monitoring for CCS.
Version:     2.1.4
Text Domain: sensorera
*/

/* ============================================================
   SensorEra – style.css  v2.0
   Design: clean, professional; inspired by optiseis.com
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #0b1c12;
  --bg-2:      #102b1a;
  --bg-3:      #174023;
  --ink:       #1a2820;
  --muted:     #52665a;
  --line:      #dde6d8;
  --paper:     #ffffff;
  --cream:     #f4f7f1;
  --accent:    #3e7020;
  --accent-2:  #5f9636;
  --accent-lt: #d4e8c2;
  --hot:       #c06818;
  --max:       1200px;
  --font:      "Inter","Helvetica Neue",Helvetica,Arial,sans-serif;
  --font-brand:"Saira","Helvetica Neue",Arial,sans-serif;
  --r:         5px;
  --shadow:    0 6px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--hot); }
h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 300; }
h1 { font-size: clamp(2.2rem,5vw,3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem,3vw,2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1em; }

/* ── Layout helpers ─────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-block;
  font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600;
  color: var(--accent); margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: .83rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .18s, border-color .18s, color .18s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--hot); color: #fff !important; }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff !important;
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2) !important; }
.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff !important; }

/* ── Fixed header ───────────────────────────────────────────── */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 14px rgba(0,0,0,.05);
}
/* Push page content below the fixed bar */
body { padding-top: 70px; }
header.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between; height: 70px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-brand); font-weight: 900;
  font-size: 1.3rem; color: var(--ink) !important;
  letter-spacing: .01em;
}
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand .era  { color: var(--accent); }
nav.primary ul {
  display: flex; gap: 28px;
  list-style: none; padding: 0; margin: 0;
}
nav.primary a {
  font-size: .88rem; font-weight: 500;
  color: var(--ink); letter-spacing: .02em;
}
nav.primary a:hover { color: var(--accent); }
.nav-cta {
  display: inline-block; padding: 8px 18px;
  background: var(--accent); color: #fff !important;
  border-radius: var(--r); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .18s;
}
.nav-cta:hover { background: var(--hot); }

/* ── Hamburger button ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 210;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.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); }

/* ── Mobile nav drawer ──────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  z-index: 199; padding: 16px 0 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none; margin: 0; padding: 0;
}
.mobile-nav ul li a {
  display: block; padding: 13px 24px;
  font-size: 1rem; font-weight: 500;
  color: var(--ink); letter-spacing: .02em;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.mobile-nav ul li a:hover { color: var(--accent); background: var(--cream); }
.mobile-nav-live {
  color: var(--accent) !important;
  font-weight: 600 !important;
  display: flex !important; align-items: center; gap: 8px;
}
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: #e04040;
  animation: se-dot-blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.mobile-nav .mobile-cta {
  display: block; margin: 18px 24px 0;
  padding: 12px 18px; text-align: center;
  background: var(--accent); color: #fff !important;
  border-radius: var(--r); font-size: .9rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.mobile-nav .mobile-cta:hover { background: var(--hot); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--bg) 0%, var(--bg-3) 100%);
  color: #edf3e8; padding: 120px 0 140px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 72% 28%, rgba(95,150,54,.28) 0%, transparent 52%),
    radial-gradient(ellipse at 12% 82%, rgba(62,112,32,.22) 0%, transparent 48%);
  pointer-events: none;
}
/* grid-rule overlay */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 1px,transparent 1px 44px);
  mask: linear-gradient(180deg,transparent 0%,#000 100%);
  -webkit-mask: linear-gradient(180deg,transparent 0%,#000 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.hero-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-brand); font-weight: 900;
  font-size: clamp(2rem,4.5vw,3rem);
  color: #fff; margin-bottom: 28px; line-height: 1;
}
.hero-logo .mark { width: 60px; height: 60px; flex-shrink: 0; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead {
  font-size: 1.12rem; color: rgba(237,243,232,.82);
  max-width: 680px; margin-bottom: 40px; line-height: 1.72;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Generic section blocks ─────────────────────────────────── */
.block       { padding: 96px 0; }
.block.cream { background: var(--cream); }
.block.dark  { background: var(--bg-2); color: #d8e8d0; }
.block.dark h2, .block.dark h3 { color: #fff; }
.block.dark .eyebrow { color: var(--accent-2); }
.block.dark p { color: #b8ccb0; }
.block.dark .section-head p { color: #b8ccb0; }

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 72px; align-items: center;
}
.about-copy h2 { color: var(--ink); margin-bottom: 18px; }
.about-copy p  { color: var(--muted); font-size: 1.02rem; }
.about-visual  {
  aspect-ratio: 4/3;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.about-visual svg { width: 100%; height: 100%; display: block; }

/* ── Service cards ──────────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  flex-shrink: 0;
}
.card-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .35s;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px 24px 28px; flex: 1; }
.card--has-img .card-body { padding-top: 20px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 4px;
  background: var(--accent); display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
}
.card h3 { font-size: .98rem; margin-bottom: 8px; color: var(--ink); }
.card p  { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.62; }
/* cards without images keep their original padding */
.card:not(.card--has-img) .card-body { padding: 30px 26px; }

/* ── Technology blocks ──────────────────────────────────────── */
.tech-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: stretch; margin-top: 64px;
}
.tech-block + .tech-block { margin-top: 96px; }
.tech-block.rev .tech-img,
.tech-block.rev .tech-photos-3 { order: -1; }

/* ── Block 3 — full-width text + image below ────────────────── */
.tech-block.wide {
  display: block;
}
.tech-block.wide .tech-copy {
  max-width: 100%;
}
.tech-block.wide .tech-copy ul {
  columns: 2; column-gap: 48px;  /* spread bullets across 2 columns     */
}
.tech-block.wide .tech-img {
  margin-top: 36px;
  overflow: visible;        /* let figcaption appear below the image     */
  border: none;
  border-radius: 0;
}
.tech-block.wide .tech-img img {
  height: auto;
  object-fit: contain;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.06);
}
.tech-block.wide .tech-img figcaption {
  font-size: .73rem; color: #b8ccb0;
  line-height: 1.45; padding: 8px 2px 0; font-style: italic;
  text-align: center;
}

/* ── Block 3 — extra content below image ────────────────────── */
.tech-block3-extra-p {
  margin-top: 40px;
  color: #b8ccb0; line-height: 1.75; font-size: 1rem;
}
.tech-block3-extra-bullets {
  margin: 20px 0 0;
  columns: 2; column-gap: 48px;
}
.tech-block3-extra-bullets li {
  position: relative; padding-left: 22px;
  margin-bottom: 9px; color: #b8ccb0; font-size: .94rem;
  break-inside: avoid;
}
.tech-block3-extra-bullets li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 2px; background: var(--accent-2);
}
.tech-block3-extra-photo {
  margin: 40px 0 0;
  text-align: center;
}
.tech-block3-extra-photo img {
  width: auto; max-width: 100%; height: auto;
  display: inline-block;
  border: none;
  border-radius: 0;
}
.tech-block3-extra-photo .photo-placeholder {
  min-height: 260px; border-radius: var(--r);
}
.tech-block3-extra-photo figcaption {
  font-size: .73rem; color: #b8ccb0;
  line-height: 1.45; padding: 8px 2px 0; font-style: italic;
  text-align: center;
}

.tech-label {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 8px;
}
.tech-block h2 { color: #fff; margin-bottom: 16px; }
.tech-block p  { color: #b8ccb0; font-size: .97rem; }
.tech-block ul { margin: 20px 0 0; }
.tech-block ul li {
  position: relative; padding-left: 22px;
  margin-bottom: 9px; color: #b8ccb0; font-size: .94rem;
}
.tech-block ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 2px; background: var(--accent-2);
}
.stat-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 32px 0;
}
.stat-bar .stat {
  flex: 1; text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat-bar .stat:last-child { border-right: none; }
.stat .n { font-size: 2.4rem; color: var(--accent-2); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.stat .l { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #7a9872; margin-top: 7px; }
.tech-img { border-radius: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.tech-img img { width: 100%; height: auto; display: block; }
.tech-img figcaption {
  font-size: .79rem; color: #7a9872; line-height: 1.5;
  padding: 10px 4px 0; font-style: italic;
}

/* ── Spec grid (tech section) ───────────────────────────────── */
.spec-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  margin: 40px 0 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); overflow: hidden;
}
.spec-group {
  padding: 22px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.spec-group:last-child { border-right: none; }
.spec-group-title {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 4px;
}
.spec-group-sub {
  display: block; font-size: .65rem; letter-spacing: .08em;
  color: #6a8862; text-transform: none; margin-bottom: 14px;
  font-weight: 400;
}
.spec-group-title:not(:has(+ .spec-group-sub)) { margin-bottom: 14px; }
.spec-group dl { margin: 0; }
.spec-group dt {
  font-size: .71rem; color: rgba(255,255,255,.45);
  margin-bottom: 2px; margin-top: 8px;
}
.spec-group dt:first-child { margin-top: 0; }
.spec-group dd {
  font-size: .82rem; color: #d8e8d0;
  margin: 0; font-weight: 500; line-height: 1.4;
}
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: repeat(2,1fr); }
  .spec-group:nth-child(2) { border-right: none; }
  .spec-group:nth-child(1),
  .spec-group:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-group { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .spec-group:last-child { border-bottom: none; }
}

/* ── 3-photo side column (tech block 1) ─────────────────────── */
.tech-photos-3 {
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
}
.tech-photo-item {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden; margin: 0;
}
.tech-photo-item img {
  flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block;
  border-radius: var(--r); border: 1px solid rgba(255,255,255,.06);
}
.tech-photos-3 .tech-photo-item:first-child {
  flex: none;        /* don't stretch — let the image define the height */
}
.tech-photos-3 .tech-photo-item:first-child img {
  flex: none;
  height: auto;      /* natural aspect ratio, no empty space             */
  object-fit: contain;
}
.tech-photo-item figcaption {
  flex-shrink: 0;
  font-size: .73rem; color: #b8ccb0;
  line-height: 1.45; padding: 6px 2px 0; font-style: italic;
  text-align: center;
}
.photo-placeholder {
  flex: 1; min-height: 80px; width: 100%;
  background: rgba(255,255,255,.04);
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder span {
  color: rgba(255,255,255,.25); font-size: .82rem; letter-spacing: .1em;
}

/* ── Block 1 — photo 1 (right column, matches text height) ──── */
.tech-photo1-side {
  margin: 0;
  display: flex; flex-direction: column;
  /* stretch to match text column height — no align-self override */
  background: #b0aeaa;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.tech-photo1-side img {
  flex: 1; min-height: 0;         /* fill the column height               */
  width: 100%; display: block;
  object-fit: contain;            /* show full diagram, no cropping        */
  padding: 18px;
  box-sizing: border-box;
}
.tech-photo1-side figcaption {
  flex-shrink: 0;
  font-size: .73rem; color: #111;
  line-height: 1.45; padding: 6px 12px 12px; font-style: italic;
  background: #b0aeaa;
  text-align: center;
}

/* ── Block 1 — photo 2 (full content width below) ───────────── */
.tech-photo2-full {
  margin: 16px 0 0;
  overflow: hidden;
  border-radius: var(--r);
}
.tech-photo2-full img {
  width: 100%; display: block;
  object-fit: cover; max-height: 750px;
  border-radius: var(--r); border: 1px solid rgba(255,255,255,.06);
}
.tech-photo2-full figcaption {
  font-size: .73rem; color: #b8ccb0;
  line-height: 1.45; padding: 8px 2px 0; font-style: italic;
  text-align: center;
}

/* Breathing room above the feeds eyebrow / photo 2 */
.tech-block + .eyebrow {
  display: block;
  margin-top: 56px;
}

/* ── Live feeds — lazy-load trigger ─────────────────────────── */
.live-feeds-loader {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px;
}
@keyframes se-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,204,176,.45); border-color: rgba(184,204,176,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(184,204,176,0); border-color: #b8ccb0; }
}
@keyframes se-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.live-feeds-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(184,204,176,.4);
  color: #b8ccb0;
  animation: se-pulse 2s ease-in-out infinite;
  font-family: inherit; font-size: .78rem;
  letter-spacing: .10em; text-transform: uppercase; font-weight: 600;
  padding: 9px 20px; border-radius: var(--r);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.live-feeds-btn:hover,
.live-feeds-btn:focus-visible {
  border-color: var(--accent-2);
  color: #a8c8a0;
  background: rgba(122,152,114,.08);
  outline: none;
}
.live-feeds-btn--loaded {
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.45);
  animation: none;
}
.live-feeds-btn--loaded:hover {
  border-color: var(--accent-2);
  color: #a8c8a0;
  background: rgba(122,152,114,.08);
}
.live-feeds-hint {
  font-size: .70rem; color: rgba(255,255,255,.28);
  letter-spacing: .05em; font-style: italic;
}

/* ── Live seismic feed windows ───────────────────────────────── */
.live-feeds {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 16px;
}
.live-feed-label {
  font-size: .92rem; letter-spacing: .02em; text-transform: none;
  color: #b8ccb0; margin-bottom: 8px; font-weight: 500;
}
.live-feed-frame {
  width: 100%; height: 420px; display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  background: #060f08;
  overflow: auto;
}
.live-feed-img {
  width: 100%; height: auto; display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  background: #060f08;
}
.live-feed-empty {
  width: 100%; height: 420px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
}
.live-feed-empty span {
  font-size: .75rem; color: rgba(255,255,255,.25);
  letter-spacing: .08em; text-align: center; padding: 0 16px;
}
@media (max-width: 640px) {
  .live-feeds { grid-template-columns: 1fr; }
}

/* ── Figure gallery ─────────────────────────────────────────── */
.fig-gallery {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 26px; margin-top: 80px; padding-top: 52px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.fig-gallery .gal-head {
  grid-column: 1/-1; text-align: center; margin-bottom: 6px;
}
.fig-gallery .gal-head h3 { color: #fff; font-size: 1.3rem; font-weight: 400; }
.fig-gallery .gal-head p  { color: #b8ccb0; max-width: 640px; margin: 0 auto; font-size: .98rem; }
.fig-gallery figure { margin: 0; }
.fig-gallery img {
  width: 100%; height: auto; display: block;
  border-radius: 4px; background: var(--paper);
}
.fig-gallery figcaption {
  font-size: .78rem; color: #7a9872;
  line-height: 1.5; padding: 9px 2px 0; font-style: italic;
}

/* ── Applications ───────────────────────────────────────────── */
.app-banner { margin: 0 auto 48px; }
.app-banner img { width: 100%; border-radius: 7px; }
.app-banner figcaption {
  font-size: .82rem; color: var(--muted); line-height: 1.5;
  padding: 10px 4px 0; font-style: italic; text-align: center;
}

/* ── Team ───────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.team-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 18px;
  text-align: center; transition: transform .18s, box-shadow .18s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px; background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-brand); font-size: 1.25rem;
  font-weight: 700; color: #fff; overflow: hidden;
  border: 3px solid var(--line);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3  { font-size: .97rem; font-weight: 600; margin-bottom: 3px; color: var(--ink); }
.team-role {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.team-card p { font-size: .86rem; color: var(--muted); line-height: 1.55; margin: 0; }
.team-link {
  display: inline-block; margin-top: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.team-link:hover { color: var(--hot); }

/* ── Media section subtitles ────────────────────────────────── */
.media-subtitle {
  font-size: .72rem; letter-spacing: .20em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-2);
  margin: 52px 0 22px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ── Flyer grid ─────────────────────────────────────────────── */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
  gap: 20px;
}
.flyer-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.flyer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.flyer-thumb { aspect-ratio: 3/4; overflow: hidden; background: rgba(0,0,0,.15); }
.flyer-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.flyer-card:hover .flyer-thumb img { transform: scale(1.03); }
.flyer-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.flyer-body h4 { font-size: .88rem; margin: 0; color: var(--ink); }
.flyer-body p  { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; flex: 1; }
.flyer-dl {
  display: inline-block; margin-top: auto; padding-top: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.flyer-dl:hover { color: var(--hot); }
.flyer-placeholder {
  aspect-ratio: 3/4;
  border: 2px dashed var(--line); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.02);
}
.flyer-placeholder span {
  font-size: .72rem; color: var(--muted);
  letter-spacing: .06em; text-align: center; padding: 0 12px;
}

/* ── Publications ───────────────────────────────────────────── */
.pub-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.pub-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
  transition: transform .18s, box-shadow .18s;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pub-meta {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 6px 0 10px;
}
.pub-card h3 { font-size: .97rem; margin-bottom: 0; color: var(--ink); }
.pub-card p  { color: var(--muted); font-size: .89rem; margin: 0 0 14px; line-height: 1.6; }
.pub-link {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.pub-link:hover { color: var(--hot); }

/* ── Partners ───────────────────────────────────────────────── */
.partner-strip {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center; align-items: center;
  margin-top: 16px;
}
.partner-box {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 28px; display: grid; place-items: center;
  min-width: 160px; min-height: 72px;
  background: var(--paper);
}
.partner-box img { max-height: 48px; max-width: 160px; width: auto; display: block; }
.partner-box a { display: flex; align-items: center; justify-content: center; }
.partner-box a img { transition: opacity .18s; }
.partner-box a:hover img { opacity: .75; }
.partner-box span {
  font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-row {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 72px; align-items: start;
}
.contact-right {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-globe {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-globe img {
  width: 100%; max-width: 155px;
  height: auto; display: inline-block;
  opacity: .88;
  filter: drop-shadow( 0 0 24px rgba(122,152,114,.40) );
}
.contact-globe figcaption {
  margin-top: 10px;
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: #d8e8d0;
}
form.contact-form { display: grid; gap: 13px; position: relative; }
form.contact-form input,
form.contact-form textarea {
  padding: 12px 15px; font-family: inherit; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: #fff;
  border-radius: 4px; outline: none; width: 100%;
  transition: border-color .18s;
}
form.contact-form input::placeholder,
form.contact-form textarea::placeholder { color: #7a9872; }
form.contact-form input:focus,
form.contact-form textarea:focus { border-color: var(--accent-2); }
form.contact-form textarea { resize: vertical; min-height: 128px; }
form.contact-form button {
  padding: 13px; background: var(--accent); color: #fff;
  border: none; border-radius: 4px; font-family: inherit;
  font-size: .86rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; transition: background .18s;
}
form.contact-form button:hover { background: var(--hot); }

/* ── Send animation overlay ─────────────────────────────────── */
.send-anim {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: rgba(12, 24, 12, 0.90);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  pointer-events: none;
  animation: sendOverlay 5.5s ease forwards;
}
@keyframes sendOverlay {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { opacity: 0; }
}
.send-anim-env {
  color: var(--accent-2);
  animation: sendEnvelope 4.0s cubic-bezier(.34,1.4,.64,1) forwards;
  filter: drop-shadow(0 0 18px rgba(122,184,100,.45));
}
@keyframes sendEnvelope {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  18%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  30%  { transform: scale(1) rotate(0deg);   opacity: 1; }
  72%  { transform: scale(1) translate(0,0) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.35) translate(160px,-200px) rotate(20deg); opacity: 0; }
}
.send-anim-label {
  color: #d8e8d0; font-size: .95rem; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 600;
  animation: sendLabel 4.2s ease forwards;
}
@keyframes sendLabel {
  0%   { opacity: 0; transform: translateY(8px); }
  22%  { opacity: 1; transform: translateY(0); }
  68%  { opacity: 1; }
  100% { opacity: 0; }
}

.contact-info { }
.contact-info dt {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-top: 24px; margin-bottom: 5px;
}
.contact-right .contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0; color: #d8e8d0; font-size: .97rem; line-height: 1.62; }
.contact-info a { color: #d8e8d0; }
.contact-info a:hover { color: var(--accent-2); }
.contact-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d8e8d0; font-size: .97rem; text-decoration: none;
  transition: color .18s;
}
.contact-linkedin:hover { color: var(--accent-2); }
.contact-linkedin svg { flex-shrink: 0; opacity: .85; }

/* ── Footer ─────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg); color: #4a6040; font-size: .82rem;
  padding: 28px 0; border-top: 1px solid rgba(255,255,255,.05);
}
footer.site-footer .wrap {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
footer.site-footer a { color: #4a6040; }
footer.site-footer a:hover { color: var(--accent-2); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── Scroll reveal animations ───────────────────────────────── */
.se-reveal {
  opacity: 0;
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.se-reveal.se-from-left  { transform: translateX(-60px); }
.se-reveal.se-from-right { transform: translateX(60px); }
.se-reveal.se-from-below { transform: translateY(30px); }
.se-reveal.se-visible    { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .se-reveal, .se-reveal.se-from-left,
  .se-reveal.se-from-right, .se-reveal.se-from-below { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1200px) {
  nav.primary ul { gap: 18px; }
  nav.primary a  { font-size: .82rem; }
  .nav-cta       { padding: 7px 13px; font-size: .76rem; }
}
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2,1fr); }
  nav.primary ul { gap: 14px; }
  nav.primary a  { font-size: .79rem; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 16/9; }
  .tech-block, .tech-block.rev { grid-template-columns: 1fr; gap: 32px; }
  .tech-block.rev .tech-img,
  .tech-block.rev .tech-photos-3 { order: 0; }
  .tech-photos-3 { flex-direction: column; height: auto; }
  .tech-block ul,
  .tech-block.wide .tech-copy ul,
  .tech-block3-extra-bullets { columns: 1; }
  .tech-photo-item { flex: 0 0 auto; min-height: 0; width: 100%; }
  .tech-photo-item img { width: 100%; height: auto; object-fit: contain; }
  .tech-photo1-side { height: auto; }
  .tech-photo1-side img { flex: none; height: auto; object-fit: contain; }
  .tech-photo2-full img { object-fit: contain; max-height: none; }
  .tech-block.wide .tech-img { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .tech-block.wide .tech-img img { width: 100%; }
  .contact-row { grid-template-columns: 1fr; gap: 48px; }
  nav.primary, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 740px) {
  .cards-3   { grid-template-columns: repeat(2,1fr); }
  .pub-grid  { grid-template-columns: 1fr; }
  .fig-gallery { grid-template-columns: 1fr; }
  .stat-bar { flex-wrap: nowrap; padding: 18px 0; margin-top: 32px; }
  .stat-bar .stat { flex: 1; padding: 0 6px; border-right: 1px solid rgba(255,255,255,.07); }
  .stat-bar .stat:last-child { border-right: none; }
  .stat .n { font-size: 1.3rem; }
  .stat .l { font-size: .55rem; letter-spacing: .08em; margin-top: 5px; }
}
@media (max-width: 520px) {
  .cards-3, .team-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 100px; }
  .block { padding: 72px 0; }
  .hero-logo { font-size: 1.8rem; }
  .hero-logo .mark { width: 44px; height: 44px; }
}

/* ── Site logo ──────────────────────────────────────────────── */
a.brand { gap: 0; }
.site-logo { height: 42px; width: auto; display: block; }

.hero-logo { display: block; margin-bottom: 28px; }
.hero-logo-img { height: 64px; width: auto; display: block; }
@media (max-width: 520px) { .hero-logo-img { height: 44px; } }
