/* ==========================================================================
   Ripe Life Sciences — design tokens
   ========================================================================== */
:root {
  --ink: #101B22;
  --ink-soft: #24343D;
  --ink-2: #3C4E58;
  --paper: #F3F6F4;
  --paper-dim: #E7ECE8;
  --card: #FFFFFF;

  --teal: #177E77;
  --teal-deep: #0F5F5A;
  --amber: #CE9349;
  --rose: #BD5D6C;

  --line: rgba(16, 27, 34, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --band-gradient: linear-gradient(90deg, var(--teal) 0%, var(--amber) 50%, var(--rose) 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body,
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Type
   ========================================================================== */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
}

.eyebrow--light {
  color: #9FD7CF;
}

.eyebrow-band {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--band-gradient);
  flex: none;
}

.section-title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 22px;
}

.section-title--light {
  color: var(--paper);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 16px;
}

.lead--light {
  color: #C9D6D3;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}

p+p {
  margin-top: 14px;
}

em {
  font-style: normal;
  color: var(--teal-deep);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-solid:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 246, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-right: auto;
}

.mark {
  color: var(--teal-deep);
  display: inline-flex;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.94rem;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--band-gradient);
  transition: right 0.25s var(--ease);
}

.main-nav a:hover::after {
  right: 0;
}

.header-cta {
  display: flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 28px 24px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.mobile-nav .btn {
  margin-top: 14px;
}

.mobile-nav.is-open {
  display: flex;
}

@media (max-width: 880px) {

  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 96px 0 116px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);
  line-height: 1.08;
  max-width: 24ch;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
}

/* -- Column visual -- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.column-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rig-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.rig-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.tube {
  position: relative;
  width: 132px;
  height: 340px;
  border-radius: 66px;
  background: linear-gradient(180deg, #fff 0%, #EEF2F0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(16, 27, 34, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.tube--wide {
  width: 168px;
  height: 380px;
  border-radius: 84px;
}

.tube-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.4) 100%);
  z-index: 4;
  pointer-events: none;
}

.frit {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 8px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--ink-2) 0 2px, transparent 2px 5px);
  opacity: 0.35;
  z-index: 3;
}

.frit-top {
  top: 22px;
}

.frit-bottom {
  bottom: 22px;
}

.ruler {
  position: absolute;
  right: 10px;
  top: 34px;
  bottom: 34px;
  width: 10px;
  background: repeating-linear-gradient(180deg, var(--ink-2) 0 1px, transparent 1px 14px);
  opacity: 0.22;
  z-index: 3;
}

.band {
  position: absolute;
  left: 14px;
  right: 30px;
  height: 46px;
  border-radius: 999px;
  filter: blur(9px);
  opacity: 0.85;
  z-index: 2;
  animation: drift 7s ease-in-out infinite;
}

.band-teal {
  background: var(--teal);
  top: 34px;
  animation-duration: 6s;
}

.band-amber {
  background: var(--amber);
  top: 130px;
  animation-duration: 8.5s;
  animation-delay: -1.5s;
}

.band-rose {
  background: var(--rose);
  top: 226px;
  animation-duration: 7.5s;
  animation-delay: -3s;
}

.band--slow {
  animation-duration: 11s;
}

@keyframes drift {
  0% {
    transform: translateY(0) scaleX(1);
  }

  50% {
    transform: translateY(46px) scaleX(0.86);
  }

  100% {
    transform: translateY(0) scaleX(1);
  }
}

.rig-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .tube {
    height: 260px;
  }
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--paper-dim);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "heading visual"
    "body    visual";
  column-gap: 56px;
  row-gap: 18px;
  align-items: start;
}

.about-heading {
  grid-area: heading;
}

.about-body {
  grid-area: body;
  align-self: start;
}

.about-visual {
  grid-area: visual;
  align-self: center;
}

.flow-diagram {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.fd-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.fd-ring--2 {
  stroke-dasharray: 4 6;
}

.fd-core {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.fd-p {
  animation: orbit 16s linear infinite;
  transform-origin: 160px 160px;
}

.fd-p--teal {
  fill: var(--teal);
}

.fd-p--amber {
  fill: var(--amber);
  animation-duration: 22s;
  animation-direction: reverse;
}

.fd-p--rose {
  fill: var(--rose);
  animation-duration: 26s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "visual"
      "body";
  }

  .about-visual {
    padding: 8px 0 4px;
  }
}

/* Products / Rezol */

.rezol-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.rezol-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.rezol-tag {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
}

.rezol-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.spec-list {
  border-top: 1px solid var(--line);
  margin: 26px 0 30px;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.spec-row dd {
  font-weight: 500;
  color: var(--ink);
}

/* Product Gallery Switcher */
.rezol-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 15px 35px -10px rgba(16, 27, 34, 0.08);
  width: 100%;
  max-width: 440px;
}

.gallery-tabs {
  display: inline-flex;
  background: var(--paper-dim);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.gallery-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.gallery-tab:hover {
  color: var(--ink);
}

.gallery-tab.active {
  background: var(--card);
  color: var(--teal-deep);
  box-shadow: 0 4px 12px -2px rgba(16, 27, 34, 0.08);
}

.gallery-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(16, 27, 34, 0.06);
}

.gallery-panel {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-panel.active {
  display: flex;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: fadeIn 0.4s var(--ease) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .rezol-visual {
    order: -1;
  }

  .spec-row {
    grid-template-columns: 120px 1fr;
  }
}

/* Explore more (supporting product lineup beneath Rezol) */
.explore-more-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 56px 0 24px;
}

.product-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-mini-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.product-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(16, 27, 34, 0.25);
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  color: var(--teal-deep);
  margin-bottom: 16px;
}

.mini-icon svg {
  width: 19px;
  height: 19px;
}

.product-mini-card:nth-child(2) .mini-icon {
  color: var(--amber);
}

.product-mini-card:nth-child(3) .mini-icon {
  color: var(--rose);
}

.product-mini-card:nth-child(4) .mini-icon {
  color: var(--teal-deep);
}

.product-mini-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 10px;
}

.product-mini-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .product-mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .product-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Quality */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.quality-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-radius: var(--radius);
  padding: 30px 26px;
}

.quality-card--teal {
  border-top-color: var(--teal);
}

.quality-card--amber {
  border-top-color: var(--amber);
}

.quality-card--rose {
  border-top-color: var(--rose);
}

.quality-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.quality-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.quality-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
  opacity: 0.5;
}

.quality-card li:last-child {
  margin-bottom: 0;
}

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

/* Platform advantages */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.advantage-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(16, 27, 34, 0.25);
}

.advantage-card h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.advantage-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

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

@media (max-width: 600px) {
  .advantage-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-email {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 4px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-email:hover {
  border-color: var(--teal);
  color: #9FD7CF;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A9B7B4;
}

.form-row input,
.form-row textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--paper);
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #7C8B88;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--teal);
}

.form-note {
  font-size: 0.85rem;
  color: #9FD7CF;
  min-height: 1.2em;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34ch;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
}

.footer-meta-item {
  font-size: 0.85rem;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.footer-meta-item a {
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.footer-meta-item a:hover {
  color: var(--teal-deep);
}

.footer-meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.75;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.wordmark--footer {
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-meta-item {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}