/* ==========================================================================
   Kiwrious — 2026 Refresh
   Color palette preserved from original site
   Zero frameworks — native CSS only
   ========================================================================== */

:root {
  --teal-dark: #005766;
  --navy: #12333d;
  --teal-accent: #00aba1;
  --orange: #f85708;
  --orange-hover: #e04e06;
  --white: #ffffff;
  --off-white: #f7f9fa;
  --light-gray: #e8edef;
  --mid-gray: #6b7c85;
  --text: #2a3a40;
  --card-hover: #eaf3f4;

  /* Sensor colors */
  --sensor-temp: #D90033;
  --sensor-cond: #FEB826;
  --sensor-heart: #FF006E;
  --sensor-air: #00D36A;
  --sensor-humid: #3BA4FF;
  --sensor-uv: #7B61FF;

  /* Typography */
  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
  --content-max: 1200px;
}

/* ---- Reset & Base ---- */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---- Preloader ---- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader svg {
  width: 180px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav.scrolled {
  background: rgba(0, 87, 102, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
  padding: 10px 0;
  backdrop-filter: blur(12px);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 32px;
  transition: height 0.3s;
}
.nav.scrolled .nav-logo img {
  height: 26px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .btn-demo {
  background: var(--orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.nav-links .btn-demo:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 16px rgba(248,87,8,0.35);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(180deg, var(--teal-dark), var(--navy));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.35s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--navy) 100%);
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(0,171,161,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 560px; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--teal-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,171,161,0.25);
}
.hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero h1 .typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--orange);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: baseline;
  position: relative;
  top: 0.08em;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 6px 20px rgba(248,87,8,0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-sensors-img {
  max-width: 520px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Platform Section ---- */

.platforms {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.section-label {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--mid-gray);
  font-size: 18px;
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 48px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.platform-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 40px 32px;
  transition: background-color 0.2s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  transition: opacity 0.25s;
}
.platform-card:hover {
  background: var(--card-hover);
}
.platform-card:nth-child(1)::before { background: var(--sensor-heart); }
.platform-card:nth-child(2)::before { background: var(--sensor-humid); }
.platform-card:nth-child(3)::before { background: var(--sensor-air); }
.platform-card:nth-child(4)::before { background: var(--sensor-uv); }

.platform-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--white);
}
.platform-card:nth-child(1) .card-icon { background: var(--sensor-heart); }
.platform-card:nth-child(2) .card-icon { background: var(--sensor-humid); }
.platform-card:nth-child(3) .card-icon { background: var(--sensor-air); }
.platform-card:nth-child(4) .card-icon { background: var(--sensor-uv); }

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.platform-card p {
  color: var(--mid-gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.platform-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s;
}
.platform-card:hover .card-link { gap: 10px; }
.card-link .arrow-icon {
  transition: transform 0.2s;
  font-size: 16px;
}

/* ---- Scientific Process Section ---- */

.process {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.6);
  background: var(--white);
}
.process .container {
  text-align: center;
}
.process .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.process-img-wrap {
  max-width: 900px;
  margin: 0 auto 32px;
}
.process-img-wrap img {
  width: 100%;
  height: auto;
}
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.process-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s, border-color 0.2s;
}
.process-step:hover {
  background: var(--card-hover);
}
.process-step i {
  font-size: 14px;
  color: var(--teal-dark);
}
.process-arrow {
  color: var(--teal-accent);
  font-size: 14px;
  opacity: 0.6;
}

/* ---- Sensors Section ---- */

.sensors {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.sensors .container {
  text-align: center;
}
.sensors .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.sensor-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.sensor-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 16px 24px;
  text-align: center;
  transition: background-color 0.2s;
  border: 1px solid var(--light-gray);
  position: relative;
  cursor: default;
}
.sensor-card:hover {
  background: var(--card-hover);
}
.sensor-card .sensor-img-wrap {
  width: 100%;
  height: 120px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sensor-card .sensor-img-wrap img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.sensor-card:hover .sensor-img-wrap img {
  transform: scale(1.08);
}
.sensor-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sensor-card .sensor-desc {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.5;
  margin-bottom: 10px;
}
.sensor-card .sensor-unit-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid-gray);
  opacity: 0.6;
}

.demo-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.demo-banner h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.demo-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 480px;
}

/* ---- Origin / Story Section ---- */

.story {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-visual {
  position: relative;
}
.location-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--light-gray);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.location-badge.active {
  border: 2px solid var(--teal-accent);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,171,161,0.1);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--teal-accent);
  margin-top: 6px;
  position: relative;
}
.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 36px;
  background: var(--light-gray);
}
.timeline-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.55;
}

/* Story photo */
.story-photo {
  border-radius: 16px;
  overflow: hidden;
}
.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* ---- Validation Section ---- */

.validation {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.validation .container { text-align: center; }
.validation .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.testimonial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--light-gray);
  position: relative;
}
.testimonial-card .quote-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--teal-accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.testimonial-card blockquote {
  font-size: 16px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 16px;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 13px;
  color: var(--mid-gray);
  font-weight: 600;
}

.logos-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 24px;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  margin-bottom: 16px;
  opacity: 0.55;
  filter: grayscale(0.6);
}
.logo-row img {
  height: 40px;
  object-fit: contain;
}

/* ---- What we offer ---- */

.offer {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offer-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.2s;
}
.offer-card:hover {
  background: var(--card-hover);
}
.offer-card .offer-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: var(--white);
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.offer-card p {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* ---- Contact Section ---- */

.contact {
  padding: var(--section-pad) 0;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--navy) 100%);
  position: relative;
}
.contact .container {
  position: relative;
  z-index: 2;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-info > p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail .detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
}
.contact-detail .detail-text h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-detail .detail-text p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-wrap {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.contact-form-wrap h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-accent);
  background: rgba(255,255,255,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.form-group select {
  cursor: pointer;
  color: rgba(255,255,255,0.45);
}
.form-group select.selected {
  color: var(--white);
}
.form-group select option {
  background: var(--navy);
  color: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--orange-hover);
  box-shadow: 0 6px 20px rgba(248,87,8,0.35);
}

/* ---- Footer ---- */

.footer {
  background: var(--navy);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 28px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal-accent); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ---- Animations (scroll reveal) ---- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Collaborators Section ---- */

.collaborators {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.collaborators .container { text-align: center; }
.collaborators .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.collab-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.collab-person {
  text-align: center;
  padding: 20px 12px 16px;
  border-radius: 12px;
  transition: background 0.2s;
}
.collab-person:hover {
  background: var(--white);
}
.collab-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  background: var(--light-gray);
  display: block;
}
.collab-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
}
.collab-person h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.3;
}
.collab-person p {
  font-size: 11px;
  color: var(--mid-gray);
  line-height: 1.4;
}
.collab-person .collab-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,87,102,0.08);
  color: var(--teal-dark);
  font-size: 11px;
  margin-top: 6px;
  transition: background 0.2s;
}
.collab-person .collab-linkedin:hover {
  background: rgba(0,87,102,0.16);
}

/* ---- Research & Awards Section ---- */

.research {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.research .container { text-align: center; }
.research .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.research-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 36px;
  background: var(--off-white);
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
}
.research-tab {
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid-gray);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.research-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.research-panel { display: none; text-align: left; }
.research-panel.active { display: block; }

/* Publication cards */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pub-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 24px 28px;
  border: 1px solid var(--light-gray);
  transition: border-color 0.2s;
  text-align: left;
}
.pub-card:hover { background: var(--card-hover); }
.pub-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}
.pub-card .pub-venue {
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.pub-card .pub-authors {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.5;
  margin-bottom: 10px;
}
.pub-card .pub-links {
  display: flex;
  gap: 12px;
}
.pub-card .pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0,87,102,0.06);
  transition: background 0.2s;
}
.pub-card .pub-links a:hover { background: rgba(0,87,102,0.12); }
.pub-card .pub-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: rgba(248,87,8,0.08);
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
}

/* Award cards */
.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.award-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--light-gray);
  text-align: left;
  transition: border-color 0.2s;
}
.award-card:hover { background: var(--card-hover); }
.award-card .award-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-accent);
  margin-bottom: 8px;
}
.award-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}
.award-card .award-org {
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 10px;
}
.award-card .award-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-sensors-img { max-width: 400px; }

  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .sensor-showcase { grid-template-columns: repeat(3, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-row { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .platform-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .nav-toggle { display: block; }
  .sensor-showcase { grid-template-columns: repeat(2, 1fr); }
  .demo-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .sensor-showcase { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sensor-card { padding: 20px 12px 18px; }
  .contact-form-wrap { padding: 28px 20px; }
}
/* ==========================================================================
   Screen-fit refresh (ui-ux-style rules 1, 2, 5, 6, 14, 18, 19, 22, 31, 41)
   ========================================================================== */

:root { --bar-h: 64px; }

/* No overscroll bounce, no white edge: the page scrolls inside <body>. */
html {
  height: 100%;
  overflow: hidden;
  background: var(--navy);
  overscroll-behavior: none;
}
body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* Page text can't be selected; fields still can. */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable]:not([contenteditable="false"]),
.selectable, .selectable * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, a { -webkit-user-drag: none; }

/* App bar: a fixed, known height (tall over the hero, --bar-h once scrolled)
   so ↑/↓ paging lands each screen exactly under it. Full width (rule 19). */
.nav { height: 84px; padding: 0; display: flex; align-items: center;
       transition: background 0.35s, box-shadow 0.35s, height 0.35s; }
.nav.scrolled { height: var(--bar-h); padding: 0; }
.nav .container { max-width: none; }
.nav-links { gap: 6px; }
.nav-links a:not(.btn-demo) {
  padding: 7px 14px;
  border-radius: 100px;
  transition: color 0.2s, background-color 0.25s;
}
.nav-links a:not(.btn-demo):hover { background: rgba(255,255,255,0.08); }
.nav-links a[aria-current] { color: var(--white); font-weight: 700; background: rgba(255,255,255,0.16); }
.nav-links .btn-demo { margin-left: 14px; }
.nav-toggle span { margin: 5px 0; }

/* Groups: each section centres its content inside the min-height main.js
   gives it, so consecutive sections pack into whole screens. */
.group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: var(--bar-h);
}
.group > .container { width: 100%; }
.platforms, .sensors, .story, .collaborators, .offer,
.validation, .research, .contact {
  padding: clamp(28px, 6vh, 80px) 0;
}
.process { padding: clamp(28px, 6vh, 80px) 0; }
.hero { min-height: 100dvh; padding-top: 84px; }
/* Hero headline: every typewriter phrase stays on one line. The longest
   ("Make Science Visible") is ~9.5em wide, so cap the size to the column. */
.hero-content { container-type: inline-size; width: 100%; }
.hero h1 { min-height: 1.1em; display: grid; align-content: end;
           white-space: nowrap; font-size: min(clamp(38px, 5vw, 60px), 10cqi); }
.section-subtitle { margin-bottom: clamp(24px, 4.5vh, 48px); }
.offer .container > div:first-child { margin-bottom: clamp(24px, 4.5vh, 48px) !important; }

/* Sensors: scale with screen height so the kit + demo banner share a screen. */
.sensor-card { padding: clamp(16px, 2.6vh, 28px) 16px clamp(14px, 2.2vh, 24px); }
.sensor-card .sensor-img-wrap { height: clamp(64px, 10.5vh, 116px); margin-bottom: clamp(8px, 1.6vh, 16px); }
.sensor-card .sensor-img-wrap img { max-height: 92%; }
.sensor-showcase { margin-bottom: clamp(20px, 4vh, 48px); }
.demo-banner { padding: clamp(20px, 3.6vh, 44px) 48px; }

/* Process: flow chart scales with height; the step strip stays one line. */
.process-img-wrap { margin-bottom: 0; }
.process-img-wrap img { max-height: 40vh; width: auto; max-width: 100%; margin: 0 auto; }
.process-steps { flex-wrap: nowrap; margin-top: clamp(16px, 3vh, 28px); }
.process-step { white-space: nowrap; }

/* Collaborators and logo rows tighten a little on shorter screens. */
.collab-grid { margin-top: 0; gap: clamp(6px, 1.2vh, 16px) 16px; }
.collab-person { padding: clamp(10px, 1.6vh, 20px) 12px clamp(8px, 1.2vh, 16px); }
.collab-avatar { width: clamp(56px, 8vh, 72px); height: clamp(56px, 8vh, 72px); }
.testimonial-row { margin-bottom: clamp(24px, 4.5vh, 48px); }
.testimonial-card { padding: clamp(22px, 3.6vh, 36px); }
.logos-label { margin-bottom: clamp(12px, 2.4vh, 24px); }
.validation .logos-label[style] { margin-top: clamp(20px, 4vh, 40px) !important; }
.story-photo img { min-height: 0; max-height: 70vh; }

/* Research tabs sit in their pill track (class was missing on the wrapper). */
.research-tabs { margin-bottom: clamp(20px, 3.6vh, 36px); }
.research-tab:not(.active):hover { color: var(--navy); }

/* Cards: icon and title on one row, text flush left (rule 31). */
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-head h3 { margin: 0 !important; }
.platform-card .card-icon, .offer-card .offer-icon { margin: 0; flex: none; }
.platform-card { padding: clamp(24px, 4vh, 40px) 26px; display: flex; flex-direction: column; }
.platform-card .card-link { margin-top: auto; align-self: flex-start; }
.offer-card { text-align: left; padding: clamp(24px, 4vh, 40px) 32px; }
.offer-card .offer-icon { width: 56px; height: 56px; font-size: 22px; }

/* Footer: one short line on the bottom edge of the last screen (rules 5, 18). */
.footer { padding: 0; margin-top: auto; }
.footer-line {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  font-size: 13px;
}
.footer-line img { height: 22px; width: auto; }
.footer-note { color: rgba(255,255,255,0.45); margin-right: auto; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-accent); }

/* Publications: three columns on wide screens so the list fits one screen. */
@media (min-width: 1025px) {
  .pub-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pub-card { display: flex; flex-direction: column; padding: clamp(16px, 2.4vh, 24px) 24px; }
  .pub-card .pub-links { margin-top: auto; }
}

/* Short laptop windows: tighten type and gaps so each section fits a screen. */
@media (min-width: 901px) and (max-height: 800px) {
  .section-title { font-size: clamp(26px, 4.6vh, 36px); margin-bottom: 10px; }
  .section-subtitle { font-size: 16px; }
  .section-label { margin-bottom: 6px; }
  .story-grid { gap: 56px; }
  .story p[style] { font-size: 15px !important; margin-bottom: 16px !important; line-height: 1.6 !important; }
  .timeline { gap: 14px; margin-top: 16px; }
  .timeline-item:not(:last-child) .timeline-dot::after { height: 28px; }
  .sensor-card .sensor-desc { margin-bottom: 4px; }
  .demo-banner h3 { font-size: 20px; }
  .demo-banner p { font-size: 15px; }
  .contact-info > p { margin-bottom: 20px; }
  .contact-detail { margin-bottom: 12px; }
  .contact-form-wrap { padding: 28px 32px; }
  .contact-form-wrap h3 { margin-bottom: 16px; }
  .form-group { margin-bottom: 10px; }
  .form-group input, .form-group textarea, .form-group select { padding: 11px 16px; }
  .form-group textarea { min-height: 76px; }
  .testimonial-card .quote-mark { font-size: 32px; }
  .logo-row img { height: 34px; }
  .logo-row { margin-bottom: 4px; }
  .testimonial-card { padding: 20px 26px; }
  .testimonial-card .quote-mark { margin-bottom: 2px; }
  .testimonial-card blockquote { margin-bottom: 10px; }
  .section-subtitle { margin-bottom: 20px; }
  .sensor-showcase { margin-bottom: 16px; gap: 14px; }
  .research-tabs { margin-bottom: 14px; }
  .pub-list { gap: 10px; }
  .pub-card { padding: 12px 18px; }
  .pub-card h4 { font-size: 14px; line-height: 1.35; margin-bottom: 4px; }
  .pub-card .pub-venue { font-size: 12px; margin-bottom: 2px; }
  .pub-card .pub-authors { font-size: 11.5px; line-height: 1.4; margin-bottom: 8px; }
  .pub-card .pub-links a { padding: 2px 10px; }
  .sensors, .research, .validation { padding-block: max(24px, 5vh); }
}

@media (max-width: 1024px) {
  .hero-visual { margin-top: 24px; }
}
@media (max-width: 900px) {
  .process-steps { justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
                   margin-inline: calc(-1 * clamp(20px, 4vw, 48px)); padding-inline: clamp(20px, 4vw, 48px); }
  .process-steps::-webkit-scrollbar { display: none; }
  .process-img-wrap img { max-height: none; width: 100%; }
}
@media (max-width: 768px) {
  .hero { padding: 100px 0 40px; }
  .hero h1 { align-content: center; }
  .hero-tag { margin-bottom: 16px; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .hero-visual { margin-top: 8px; }
  .hero-sensors-img { max-width: min(280px, 72vw); }
  .process-img-wrap img { max-height: 56vh; width: auto; max-width: 100%; }
  .platforms, .sensors, .story, .collaborators, .offer,
  .validation, .research, .contact, .process { padding: 56px 0; }
  .footer-line { gap: 12px; font-size: 12px; justify-content: center; }
  .footer-note { display: none; }
  .footer-links { gap: 12px; }
  .demo-banner { padding: 32px 24px; }
}

/* Award cards: org and "Read more" share the last row, pinned to the bottom,
   so every card's title is level and the panel fits one screen. */
.award-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 12px;
  padding: clamp(14px, 2.2vh, 22px) 22px;
}
.award-card .award-year { grid-column: 1 / -1; margin-bottom: 4px; }
.award-card h4 { grid-column: 1 / -1; margin-bottom: 8px; }
.award-card .award-org { margin: 0; align-self: end; }
.award-card .award-link { align-self: end; }
@media (min-width: 901px) and (max-height: 800px) {
  .award-grid { gap: 10px; }
  .award-card { padding: 12px 18px; }
  .award-card h4 { margin-bottom: 6px; }
}

/* Tagline beside the logo: reads "Kiwrious makes invisible science visible". */
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-tagline {
  padding-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: font-size 0.3s;
}
.nav.scrolled .nav-tagline { font-size: 14px; }
@media (max-width: 900px) { .nav-tagline { display: none; } }
