/* =========================================================================
   Coderiam — Industrial / Equipment-maker design system
   White ground · brand teal #2c89a0 · technical typography
   Multi-page: home, products, individual product pages, about, contact
   ========================================================================= */

:root {
  /* Palette */
  --bg:          #ffffff;
  --bg-alt:      #f4f7f8;   /* Cool light gray for alternating sections */
  --bg-deep:     #0a2a36;   /* Deep navy for hero overlays / dark sections */
  --bg-deep-2:   #103848;
  --surface:     #ffffff;
  --paper:       #fafbfc;

  --teal:        #2c89a0;   /* Brand primary */
  --teal-dark:   #1f6c80;   /* Hover */
  --teal-darker: #144a5a;
  --teal-pale:   #e6f0f3;   /* Tint */
  --teal-pale-2: #cbe0e6;

  --ink:         #0a2030;   /* Deep navy — headings */
  --ink-2:       #2c3e44;   /* Body text */
  --ink-soft:    #5d6d75;
  --ink-faint:   #94a3aa;
  --ink-on-dark: #f0f5f6;
  --ink-on-dark-soft: #b8cbd2;

  --line:        #e3e9eb;
  --line-strong: #c8d3d6;
  --line-on-dark: rgba(255,255,255,0.10);

  --accent-warm: #d97a2e;   /* For occasional warm accent — small badges only */

  /* Type */
  --t-sans:  "Roboto Condensed", -apple-system, BlinkMacSystemFont, sans-serif;
  --t-head:  "Montserrat", "Roboto Condensed", sans-serif;
  --t-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 70px;

  /* Radii */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
}

/* Wider side gutters on phones so content doesn't hug the screen edges */
@media (max-width: 600px) {
  :root { --gutter: 24px; }
}

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

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--t-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =========================================================================
   PRIMITIVES
   ========================================================================= */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* Section labels (numbered eyebrow) */
.label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--t-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.label .num {
  font-family: var(--t-mono);
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.label .bar {
  width: 32px;
  height: 1px;
  background: var(--teal);
}
.label.on-dark { color: var(--ink-on-dark); }
.label.on-dark .num { color: var(--ink-on-dark-soft); }
.label.on-dark .bar { background: var(--ink-on-dark-soft); }

/* Headings */
.h1 {
  font-family: var(--t-head);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--t-head);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--t-head);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.h4 {
  font-family: var(--t-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4,
.h1.on-dark, .h2.on-dark, .h3.on-dark, .h4.on-dark { color: var(--ink-on-dark); }

.lede {
  font-family: var(--t-sans);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}
.on-dark .lede { color: var(--ink-on-dark-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--t-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s; font-weight: 400; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-light {
  background: white;
  color: var(--ink);
  border-color: white;
}
.btn-light:hover { background: var(--teal-pale); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--t-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 4px 0;
  border-bottom: 1px solid var(--teal);
}
.btn-link .arrow { transition: transform .2s; }
.btn-link:hover { color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-link:hover .arrow { transform: translateX(3px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }

/* =========================================================================
   UTILITY BAR + NAV
   ========================================================================= */
.util {
  background: var(--bg-deep);
  color: var(--ink-on-dark-soft);
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 90;
}
.util a { color: var(--ink-on-dark-soft); }
.util a:hover { color: var(--ink-on-dark); }
.util .left, .util .right { display: flex; gap: 24px; align-items: center; }
.util .live { color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.util .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 2px rgba(44,137,160,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
}

.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}
.nav .logo svg.fish { height: 30px; width: auto; display: block; }
.nav .logo .wordmark {
  font-family: var(--t-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav .logo img.logo-img { height: 32px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-family: var(--t-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color .2s;
}
.nav-links > li > a:hover { color: var(--teal); }
.nav-links > li > a.active { color: var(--teal); }
.nav-links > li > a.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 18px; right: 18px;
  height: 2px;
  background: var(--teal);
}
.nav-links > li > a .chev {
  font-size: 9px;
  margin-left: 2px;
  opacity: 0.6;
}

/* Mega menu (Products) */
.megamenu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 760px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -20px rgba(10,32,48,0.18);
  padding: 24px;
  display: none;
  z-index: 90;
}
/* Invisible bridge across the gap between the Products button and the panel,
   so moving the cursor down into the menu doesn't drop the hover. */
.megamenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-links > li:hover > .megamenu,
.nav-links > li:focus-within > .megamenu { display: block; }
.megamenu .menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.menu-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background .2s;
}
.menu-item:hover { background: var(--bg-alt); }
.menu-item .thumb {
  width: 64px; height: 64px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.menu-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.menu-item .text {
  display: flex; flex-direction: column; gap: 2px;
}
.menu-item .name {
  font-family: var(--t-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.menu-item .desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links > li > a { padding: 12px 12px; font-size: 12px; }
  .nav-right .btn { display: none; }
}
@media (max-width: 720px) {
  /* Utility bar: keep only the EN/ES switch and the contact email */
  .util-loc { display: none; }
  .util .live { display: none; }

  /* Nav collapses into a hamburger menu */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(10, 32, 48, 0.22);
    padding: 4px var(--gutter) 14px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links > li:first-child { border-top: 0; }
  .nav-links > li > a { width: 100%; padding: 15px 2px; font-size: 14px; }
  .megamenu { display: none !important; }
}

/* =========================================================================
   HERO (homepage)
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
}
.hero-copy .h1 { margin: 24px 0 28px; }
.hero-copy .h1 .accent { color: var(--teal); }
.hero-copy .lede { margin-bottom: 36px; max-width: 50ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 5/4;
  background:
    radial-gradient(circle at 60% 40%, var(--teal-pale) 0%, transparent 60%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img.product {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0;
}
.hero-visual .badge {
  position: absolute;
  top: 18px; left: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-visual .badge .id {
  font-family: var(--t-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal);
  text-transform: none;
}
.hero-visual .meta {
  position: absolute;
  bottom: 18px; left: 18px;
  display: flex;
  gap: 18px;
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-visual .meta .live {
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-visual .meta .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 2px rgba(44,137,160,0.3);
  animation: pulse 2s infinite;
}
.hero-visual .arrow-link {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--t-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.hero-visual .arrow-link:hover { background: var(--teal-pale); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
/* Phones: center the hero copy and keep the product image from getting too big */
@media (max-width: 640px) {
  .hero-copy { text-align: center; }
  .hero-copy .label { justify-content: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* Hero strip (mini facts) */
.hero-strip {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-strip-cell {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}
.hero-strip-cell:last-child { border-right: 0; }
.hero-strip-cell .l {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.hero-strip-cell .v {
  font-family: var(--t-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-strip-cell .v .u {
  font-size: 14px;
  color: var(--teal);
  margin-left: 4px;
}
@media (max-width: 760px) {
  .hero-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip-cell:nth-child(2) { border-right: 0; }
  .hero-strip-cell:nth-child(1), .hero-strip-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
section { position: relative; }
.section {
  padding: clamp(70px, 9vw, 130px) 0;
}
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: var(--bg-deep);
  color: var(--ink-on-dark);
}
.section.dark .h2, .section.dark .h3, .section.dark .h4 { color: var(--ink-on-dark); }
.section.dark .lede { color: var(--ink-on-dark-soft); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-end;
  margin-bottom: 56px;
}
.section-head .right { display: flex; align-items: flex-end; justify-content: flex-end; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .right { justify-content: flex-start; }
}

/* =========================================================================
   PRODUCT GRID (homepage + products page)
   ========================================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: var(--teal-pale-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(10,32,48,0.18);
}
.product-card .photo {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-card .photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
}
.product-card .photo .pill {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.product-card .photo .pill.coming {
  color: var(--accent-warm);
  border-color: rgba(217,122,46,0.25);
  background: rgba(217,122,46,0.06);
}
.product-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.product-card .body .id {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.product-card .body h3 {
  font-family: var(--t-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}
.product-card .body .tag {
  font-family: var(--t-head);
  font-size: 14px;
  color: var(--teal);
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.product-card .body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.product-card .body ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card .body ul li {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.product-card .body ul li::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--teal);
  margin-top: 11px;
  flex-shrink: 0;
}
.product-card .body .actions {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid, .product-grid.cols-2 { grid-template-columns: 1fr; }
}

/* =========================================================================
   APPLICATIONS / AUDIENCES
   ========================================================================= */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.app-cell {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}
.app-cell .num {
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.14em;
}
.app-cell .icon {
  width: 36px; height: 36px;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--teal-pale);
}
.app-cell h4 {
  font-family: var(--t-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.app-cell p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   FEATURE BAND (split image + text)
   ========================================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.feature.reverse > .feature-visual { order: 2; }
.feature.reverse > .feature-text   { order: 1; }
.feature-visual {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 50% 50%, var(--teal-pale) 0%, transparent 70%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
}
.feature-text .h2 { margin: 22px 0 18px; }
.feature-text p { margin: 0 0 18px; color: var(--ink-2); }
.feature-text .feat-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-text .feat-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.feature-text .feat-list li:last-child { border-bottom: 0; }
.feature-text .feat-list .ico {
  width: 32px; height: 32px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-text .feat-list .body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-text .feat-list .name {
  font-family: var(--t-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.feature-text .feat-list .desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse > .feature-visual { order: 1; }
  .feature.reverse > .feature-text   { order: 2; }
}

/* =========================================================================
   PRODUCT PAGE — page hero
   ========================================================================= */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  /* Breathing room so the breadcrumb doesn't hug the nav (all page heros) */
  padding-top: clamp(28px, 3.5vw, 48px);
}

/* Heading + intro on the catalog & contact page heros — stacked in a single
   column so it never leaves the awkward side gap the two-column layout showed
   on wide / zoomed-out views. */
.page-hero-head { padding-bottom: 40px; }
.page-hero-head .lede { margin-top: 20px; max-width: 62ch; }
.page-hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 44px) 0;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--ink-faint); }
.breadcrumb .current { color: var(--teal); }
.page-hero .product-id {
  font-family: var(--t-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .tagline {
  font-family: var(--t-head);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--teal);
  margin: 0 0 28px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.page-hero .lede { max-width: 52ch; margin-bottom: 32px; }
.page-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero-visual {
  aspect-ratio: 1/1;
  /* Cap the oversized square product image so the hero isn't excessively tall */
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.page-hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  padding: 0;
  margin: 0;
}
.page-hero-visual .corner,
.page-hero-visual .live {
  display: none;
}

@media (max-width: 900px) {
  .page-hero-visual img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   SPEC TABLE
   ========================================================================= */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}
.spec-row {
  display: contents;
}
.spec-row > * {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.spec-row > .k {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-alt);
}
.spec-row > .v {
  font-family: var(--t-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.spec-row:last-of-type > * { border-bottom: 0; }

/* =========================================================================
   HOW-IT-WORKS (numbered steps)
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.step .n {
  font-family: var(--t-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step .n::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--teal-pale-2);
}
.step .nb {
  font-family: var(--t-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}
.step h4 {
  font-family: var(--t-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================================
   CALLOUT / CTA BANNER
   ========================================================================= */
.cta-banner {
  background: var(--bg-deep);
  color: var(--ink-on-dark);
  padding: clamp(50px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
/* Hairline divider when a dark band sits directly above the (also dark) CTA banner */
.section.dark + .cta-banner { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.cta-banner::before {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  right: -20vw; top: -20vw;
  background: radial-gradient(circle, rgba(44,137,160,0.25), transparent 60%);
  pointer-events: none;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-banner h2 { margin: 18px 0 20px; }
.cta-banner .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .cta-banner-inner { grid-template-columns: 1fr; }
  .cta-banner .ctas { justify-content: flex-start; }
}

/* =========================================================================
   STATS BAND
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat:last-child { border-right: 0; }
.stat .v {
  font-family: var(--t-head);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.stat .v .u {
  font-size: 0.4em;
  color: var(--teal);
  margin-left: 4px;
  letter-spacing: -0.01em;
}
.stat .l {
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 26ch;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.about-hero {
  background: var(--bg-alt);
  padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  margin-top: 32px;
}
.about-intro .lhs h1 { margin-bottom: 18px; }
.about-intro .rhs p { margin: 0 0 16px; }
.about-intro .rhs p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.about-gallery .tile {
  aspect-ratio: 1/1;
  background:
    radial-gradient(circle at 50% 50%, var(--teal-pale) 0%, transparent 70%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.disciplines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.discipline {
  padding: 24px 0;
  border-top: 2px solid var(--teal);
}
.discipline h4 {
  font-family: var(--t-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.discipline p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .disciplines { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px;
}
.contact-form .form-row {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.contact-form .form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Let the grid cells shrink so the fields never push past the viewport */
.contact-form .form-row.split > div { min-width: 0; }
.contact-form label {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--t-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44,137,160,0.12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .submit { margin-top: 6px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info .block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}
.contact-info .block .l {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.contact-info .block .v {
  font-family: var(--t-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.contact-info .block .v a { color: inherit; border-bottom: 1px solid var(--line-strong); }
.contact-info .block .v a:hover { color: var(--teal); border-color: var(--teal); }
.contact-info .block .small {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Stack the paired fields and tighten the form on phones */
  .contact-form .form-row.split { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--bg-deep);
  color: var(--ink-on-dark-soft);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer .brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  color: var(--ink-on-dark);
}
.footer .brand svg.fish { height: 34px; color: var(--teal); }
.footer .brand .wordmark {
  font-family: var(--t-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark);
}
.footer .brand img.logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* Logo teal renders fine on dark navy — slight brightness lift for contrast */
  filter: brightness(1.15);
}
.footer .blurb {
  font-size: 14px;
  color: var(--ink-on-dark-soft);
  max-width: 38ch;
  line-height: 1.6;
  margin: 0 0 20px;
}
.footer .col h5 {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer .col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer .col a {
  font-size: 14px;
  color: var(--ink-on-dark-soft);
  transition: color .2s;
}
.footer .col a:hover { color: var(--ink-on-dark); }

.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--ink-on-dark-soft);
  letter-spacing: 0.08em;
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a { color: var(--ink-on-dark-soft); }
.footer-bottom .links a:hover { color: var(--ink-on-dark); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* =========================================================================
   GALLERY (product pages)
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 540px;
}
.gallery .tile {
  background:
    radial-gradient(circle at 50% 50%, var(--teal-pale) 0%, transparent 70%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  overflow: hidden;
}
.gallery .tile img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery .tile.big {
  grid-row: 1 / 3;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: 12px; }
  .gallery .tile { aspect-ratio: 4/3; }
  .gallery .tile.big { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 16/9; }
}

/* =========================================================================
   PROSE (for long-form copy on product pages)
   ========================================================================= */
.prose {
  max-width: 760px;
}
.prose p {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 18px;
}
.prose h3 {
  margin: 32px 0 14px;
}
.prose ul {
  margin: 0 0 18px;
  padding: 0 0 0 20px;
}
.prose ul li {
  margin-bottom: 8px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* =========================================================================
   PILLS / TAGS
   ========================================================================= */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 999px;
}
.pill.warm { color: var(--accent-warm); background: rgba(217,122,46,0.10); }
.pill.dark { color: var(--ink-on-dark); background: rgba(255,255,255,0.10); }
