/* ============================================================
   IoT Solutions — "field station" aesthetic
   espresso soil / terracotta clay / bone sand · Fraunces + Instrument Sans
   ============================================================ */
:root {
  --soil: #fbfaf6;
  --soil-2: #ffffff;
  --soil-3: #dbe4da;
  --bone: #142a1e;
  --bone-dim: #52675a;
  --clay: #177a4c;
  --clay-deep: #0e5433;
  --moss: #2f9e68;
  --sun: #c4922a;
  --serif: "Fraunces", serif;
  --sans: "Instrument Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--soil);
  color: var(--bone);
  line-height: 1.65;
  overflow-x: hidden;
}

/* topographic contour backdrop */
.contours {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cg fill='none' stroke='%23dbe4da' stroke-width='1.2'%3E%3Cpath d='M 100 450 C 100 250 300 150 450 150 C 650 150 800 300 800 450 C 800 650 650 750 450 750 C 250 750 100 650 100 450 Z'/%3E%3Cpath d='M 170 450 C 170 300 330 220 450 220 C 610 220 730 340 730 450 C 730 610 610 680 450 680 C 310 680 170 600 170 450 Z'/%3E%3Cpath d='M 240 450 C 240 350 360 290 450 290 C 570 290 660 380 660 450 C 660 570 570 610 450 610 C 370 610 240 550 240 450 Z'/%3E%3Cpath d='M 310 450 C 310 400 390 360 450 360 C 530 360 590 420 590 450 C 590 520 530 540 450 540 C 400 540 310 510 310 450 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 900px;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 4rem);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  color: var(--bone); text-decoration: none; letter-spacing: 0.01em;
}
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--bone-dim); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--bone); }
.nav-pill {
  color: #ffffff !important; background: var(--clay);
  padding: 0.55rem 1.2rem; border-radius: 99px; font-weight: 600;
  transition: background 0.15s ease;
}
.nav-pill:hover { background: var(--clay-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 99px;
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--clay); color: #ffffff; }
.btn-fill:hover { background: var(--clay-deep); }
.btn-line { border-color: var(--soil-3); color: var(--bone); }
.btn-line:hover { border-color: var(--clay); color: var(--clay); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 1250px; margin: 0 auto;
}
.eyebrow {
  display: inline-block; font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--clay); border: 1px solid var(--soil-3);
  padding: 0.35rem 0.9rem; border-radius: 99px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 1.4rem 0 1.5rem; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--clay); }
.lede { color: var(--bone-dim); max-width: 36rem; font-size: 1.08rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* telemetry card */
.hero-card {
  background: var(--soil-2); border: 1px solid var(--soil-3);
  border-radius: 20px; padding: 1.5rem 1.6rem;
  box-shadow: 0 24px 60px rgba(20,42,30,0.12);
  rotate: 2deg;
}
.hero-card-head {
  font-size: 0.72rem; letter-spacing: 0.14em; color: var(--moss);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.hero-card-head::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--moss); animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.hero-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.hero-card li { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; font-size: 0.9rem; }
.hero-card li span { color: var(--bone-dim); }
.hero-card li b { font-weight: 600; }
.hero-card li b.warn { color: var(--sun); }
.bar {
  grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--soil-3);
  position: relative; overflow: hidden;
}
.bar::after {
  content: ""; position: absolute; inset: 0; width: var(--w, 50%);
  background: var(--clay); border-radius: 4px;
}
.bar.ok::after { background: var(--moss); }
.bar.warn::after { background: var(--sun); }
.hero-card-foot { margin-top: 1.2rem; font-size: 0.8rem; color: var(--bone-dim); font-style: italic; }

/* ---------- sections ---------- */
.sect { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 4rem); max-width: 1250px; margin: 0 auto; }
.sect-light {
  max-width: none; background: #0e3d26; color: #eef5ee;
  border-radius: 32px; margin: 0 clamp(0.6rem, 1.5vw, 1.2rem);
}
.sect-light > * { max-width: 1170px; margin-left: auto; margin-right: auto; }
.sect-head { max-width: 44rem; margin-bottom: 2.8rem; }
.sect-no {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--clay);
}
.sect-head h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0.3rem 0 0.8rem;
}
.sect-head p { color: var(--bone-dim); }
.sect-light .sect-head p { color: #a8c2b0; }

/* ---------- services accordion ---------- */
.svc-list { border-top: 1px solid var(--soil-3); }
.svc { border-bottom: 1px solid var(--soil-3); }
.svc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.3rem 0.2rem;
}
.svc summary::-webkit-details-marker { display: none; }
.svc h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  transition: color 0.15s ease, transform 0.2s ease;
}
.svc summary:hover h3 { color: var(--clay); transform: translateX(6px); }
.svc-plus { position: relative; width: 22px; height: 22px; flex: none; }
.svc-plus::before, .svc-plus::after {
  content: ""; position: absolute; background: var(--clay); border-radius: 2px;
  transition: transform 0.25s ease;
}
.svc-plus::before { left: 0; right: 0; top: 10px; height: 2px; }
.svc-plus::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.svc[open] .svc-plus::after { transform: scaleY(0); }
.svc > p { padding: 0 0.2rem 1.5rem; max-width: 44rem; color: var(--bone-dim); }

/* ---------- sector tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 56rem; }
.tag {
  border: 1.5px solid #2c5c42; border-radius: 99px; padding: 0.5rem 1.1rem;
  font-size: 0.92rem; color: #b9d2c1; background: transparent;
}
.tag.big {
  font-family: var(--serif); font-size: 1.15rem; color: #0e3d26;
  background: #d9ead9; border-color: transparent; padding: 0.5rem 1.3rem;
}

/* ---------- process timeline ---------- */
.timeline {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 1.6rem;
}
.timeline li { counter-increment: step; position: relative; padding-top: 3rem; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--clay);
}
.timeline li::after {
  content: ""; position: absolute; top: 1.1rem; left: 3.2rem; right: 0;
  height: 1px; background: var(--soil-3);
}
.timeline b { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.timeline p { color: var(--bone-dim); font-size: 0.95rem; margin-top: 0.3rem; }
.cred {
  margin-top: 3rem; border-left: 3px solid var(--clay);
  padding: 0.4rem 0 0.4rem 1.4rem; max-width: 46rem;
}
.cred p { color: var(--bone-dim); font-size: 1.02rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact-lines { margin-top: 1.6rem; line-height: 2.1; font-size: 1.02rem; }
.contact-lines a { color: #8fd7ae; text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines span { color: #a8c2b0; }
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: #eef5ee; }
.form small { font-weight: 400; color: #a8c2b0; }
.form input, .form textarea {
  font-family: var(--sans); font-size: 1rem; padding: 0.8rem 1rem;
  border: 1.5px solid #2c5c42; border-radius: 12px; background: #ffffff; color: #142a1e;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: #8fd7ae;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 20%, transparent);
}
.form button { align-self: flex-start; border: none; font-family: var(--sans); }
.hp { position: absolute; left: -9999px; }
.flash { padding: 0.85rem 1.1rem; border-radius: 12px; font-size: 0.95rem; }
.flash-ok { background: #d9ead9; color: #14532d; }
.flash-err { background: #f6ddd3; color: #8a3016; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding: 2rem clamp(1.2rem, 5vw, 4rem); color: var(--bone-dim); font-size: 0.9rem;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { rotate: 0deg; max-width: 26rem; }
  .contact { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-pill) { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- partner page ---------- */
.gold-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  color: #7d5a12; background: #f7ecd4; border: 1px solid #e6d3a3;
  padding: 0.35rem 1rem; border-radius: 99px;
}
.gold-chip::before { content: "★"; color: var(--sun); }
.sect-light .gold-chip { background: #123; background: rgba(255,255,255,0.08); color: #ecd9a8; border-color: #6b5a2c; }
.btn-bone { background: #eef5ee; color: #0e3d26; }
.btn-bone:hover { background: #d9ead9; }
.plist {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem;
}
.plist article {
  background: var(--soil-2); border: 1px solid var(--soil-3);
  border-radius: 18px; padding: 1.5rem 1.5rem 1.4rem;
}
.plist h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.45rem; }
.plist h3 span { font-style: italic; font-size: 1rem; color: var(--sun); margin-right: 0.4rem; }
.plist p { color: var(--bone-dim); font-size: 0.96rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--clay); }
.fineprint {
  padding: 0 clamp(1.2rem, 5vw, 4rem) 2rem; max-width: 1250px; margin: 0 auto;
  font-size: 0.78rem; color: var(--bone-dim); opacity: 0.8; position: relative; z-index: 1;
}
