/* ============================================================
   Ambient IoT — shared stylesheet
   Family-related to Moseley but with amber as the parent accent
   ============================================================ */

:root {
  --cyan: #7FE3D4;
  --cyan-soft: rgba(127, 227, 212, 0.55);
  --cyan-faint: rgba(127, 227, 212, 0.22);
  --amber: #F4C77B;
  --amber-soft: rgba(244, 199, 123, 0.6);
  --amber-faint: rgba(244, 199, 123, 0.22);
  --magenta: #E87FB5;
  --bg-deep: #0b1416;
  --bg-panel: #0f1b1d;
  --bg-panel-2: #122124;
  --text: #e8f2f1;
  --text-dim: rgba(232, 242, 241, 0.72);
  --text-faint: rgba(232, 242, 241, 0.5);
  --line: rgba(244, 199, 123, 0.16);
  --line-cool: rgba(127, 227, 212, 0.16);
  --mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- TOP NAV ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__brand {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav__brand span { color: var(--text-faint); }
.nav__brand img.nav__logo {
  height: 38px;
  width: auto;
  display: block;
}
.nav__dot {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber-soft);
}
.nav__links { display: flex; gap: 2.5rem; justify-self: center; }
.nav__links a { color: rgba(232, 242, 241, 0.95); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--amber); }
.nav__cta {
  justify-self: end;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover { background: var(--amber); color: var(--bg-deep); }
@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 0.85rem 1.25rem;
    row-gap: 0.7rem;
    column-gap: 0;
  }
  .nav__brand { grid-row: 1; grid-column: 1 / -1; font-size: 0.65rem; }
  .nav__links {
    display: flex; flex-wrap: wrap;
    grid-row: 2; grid-column: 1;
    justify-self: start; align-self: center;
    gap: 0.85rem 1rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    max-width: calc(100vw - 5.5rem);
  }
  .nav__cta {
    grid-row: 2; grid-column: 2;
    justify-self: end;
    font-size: 0.62rem;
    padding: 0.4rem 0.7rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: #000;
}
.hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,20,22,0.4) 0%, rgba(11,20,22,0.1) 35%, rgba(11,20,22,0.55) 75%, rgba(11,20,22,0.95) 100%),
    radial-gradient(ellipse at 25% 50%, rgba(244,199,123,0.08) 0%, transparent 55%);
}
.hero__content {
  position: absolute;
  left: 6%;
  bottom: 13%;
  max-width: 760px;
  z-index: 5;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
}
.hero__eyebrow span { opacity: 0.55; margin: 0 0.6rem; }
.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--amber);
  font-weight: 300;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__pill {
  padding: 0.55rem 1rem;
  border: 1px solid var(--amber-faint);
  border-radius: 999px;
  color: var(--text-dim);
}
.hero__pill strong { color: var(--amber); font-weight: 500; }
@media (max-width: 720px) {
  .hero { aspect-ratio: 3/4; min-height: 0; }
  .hero__content { left: 5%; right: 5%; bottom: 7%; }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 7rem 6% 6rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.section--tight { padding: 5rem 6%; }
.section__index {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
  max-width: 880px;
}
.section__title em { font-style: normal; color: var(--amber); font-weight: 300; }
.section__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 3rem;
}

/* ---------- THREE-UP CARDS ---------- */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.7rem 2.2rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.card--cyan::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.card--magenta::before { background: linear-gradient(90deg, var(--magenta), transparent); }
.card__num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.card__num strong { color: var(--amber); margin-right: 0.5rem; }
.card--cyan .card__num strong { color: var(--cyan); }
.card--magenta .card__num strong { color: var(--magenta); }
.card__title {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.card__body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.card__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__tags span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-faint);
}
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- DEEP DIVE (text + stats) ---------- */
.deep {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}
.deep__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.deep__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 200;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.deep__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.deep__body p + p { margin-top: 1rem; }
.deep__body strong { color: var(--text); font-weight: 500; }
.deep__stats { display: grid; gap: 1rem; }
.stat {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}
.stat__num {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--amber);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.stat__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.stat__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dim);
}
@media (max-width: 900px) { .deep { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- TIMELINE / NARRATIVE ---------- */
.timeline {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--cyan), transparent);
  opacity: 0.4;
}
.tl {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.2rem;
  align-items: start;
}
.tl__dot {
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--amber);
  margin-top: 0.4rem;
  margin-left: 0.55rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 16px var(--amber-soft);
}
.tl--cyan .tl__dot { border-color: var(--cyan); box-shadow: 0 0 16px var(--cyan-soft); }
.tl--magenta .tl__dot { border-color: var(--magenta); box-shadow: 0 0 16px rgba(232,127,181,0.5); }
.tl__body {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem 1.5rem;
}
.tl__meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.tl--cyan .tl__meta { color: var(--cyan); }
.tl--magenta .tl__meta { color: var(--magenta); }
.tl__title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.tl__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.tl__desc strong { color: var(--text); font-weight: 500; }

/* ---------- BRAND SHOWCASE BLOCKS ---------- */
.brand {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}
.brand:last-child { border-bottom: none; }
.brand__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.brand__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 200;
  margin-bottom: 1.2rem;
  letter-spacing: -0.015em;
}
.brand__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.brand__body p + p { margin-top: 0.8rem; }
.brand__products {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.8rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__products span {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
}
.brand__cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--amber);
  color: var(--amber);
  transition: background 0.15s, color 0.15s;
}
.brand__cta:hover { background: var(--amber); color: var(--bg-deep); }
.brand--cyan .brand__cta { border-color: var(--cyan); color: var(--cyan); }
.brand--cyan .brand__cta:hover { background: var(--cyan); color: var(--bg-deep); }
.brand__visual {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-2));
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 16px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, var(--amber-faint), transparent 60%);
  pointer-events: none;
}
.brand--cyan .brand__visual::after {
  background: radial-gradient(circle at 30% 40%, var(--cyan-faint), transparent 60%);
}
.brand__visual a.brand__visual-link {
  display: block; position: absolute; inset: 0;
  z-index: 2;
}
.brand__visual img.brand__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.brand__visual:hover img.brand__photo { transform: scale(1.04); }
.brand__visual .brand__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,20,22,0.55), rgba(11,20,22,0.15) 50%, rgba(11,20,22,0.55));
  z-index: 1; pointer-events: none;
}
.brand--cyan .brand__visual .brand__photo-overlay {
  background: linear-gradient(135deg, rgba(11,20,22,0.55), rgba(127,227,212,0.10) 50%, rgba(11,20,22,0.55));
}
.brand__visual .brand__visit-cta {
  position: absolute;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  background: rgba(11,20,22,0.78);
  color: var(--text);
  border: 1px solid var(--amber);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  pointer-events: none; /* anchor handles the click */
}
.brand--cyan .brand__visual .brand__visit-cta { border-color: var(--cyan); color: var(--cyan); }
.brand__visual:hover .brand__visit-cta { background: var(--amber); color: var(--bg-deep); border-color: var(--amber); }
.brand--cyan .brand__visual:hover .brand__visit-cta { background: var(--cyan); color: var(--bg-deep); border-color: var(--cyan); }

/* Split layout: two stacked image tiles inside one .brand__visual */
.brand__visual.brand__visual--split {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  align-items: stretch;
  justify-items: stretch;
}
.brand__visual--split .brand__split-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  min-height: 0; /* allow grid track to size the tile */
}
.brand__visual--split .brand__split-tile .brand__photo {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.brand__visual--split .brand__split-tile:hover .brand__photo { transform: scale(1.06); }
.brand__visual--split .brand__split-tile .brand__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,22,0.20) 0%, rgba(11,20,22,0.10) 50%, rgba(11,20,22,0.75) 100%);
  z-index: 1; pointer-events: none;
}
.brand__split-label {
  position: absolute;
  left: 1rem; bottom: 0.9rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0.7rem;
  background: rgba(11,20,22,0.7);
  border: 1px solid var(--amber-faint);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.brand__visual--split .brand__split-tile:hover .brand__split-label {
  border-color: var(--amber);
  color: var(--amber);
}
.brand__visual--split .brand__visit-cta {
  z-index: 5; /* above tiles */
}
.brand__icon {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: var(--amber);
  opacity: 0.95;
  z-index: 1;
}
.brand--cyan .brand__icon { color: var(--cyan); }
@media (max-width: 900px) {
  .brand { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- PATENTS ---------- */
.patents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.patent {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.7rem;
}
.patent__code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.patent__name {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.patent__sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.patent__meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 720px) { .patents { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 6rem 6%;
  border-top: 1px solid var(--line);
}
.cta__title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.cta__sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 2.2rem;
}
.cta__btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  background: var(--amber);
  color: var(--bg-deep);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.15s, background 0.15s;
}
.cta__btn:hover { transform: translateY(-1px); background: #fbd698; }

/* ---------- FORM ---------- */
.form {
  max-width: 640px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.2rem;
}
.form__row { display: grid; gap: 0.45rem; }
.form__row label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form__row input,
.form__row textarea,
.form__row select {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus {
  outline: none;
  border-color: var(--amber);
}
.form__row textarea { min-height: 130px; resize: vertical; }
.form__honey { position: absolute; left: -9999px; top: -9999px; }
.form__msg {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  display: none;
}
.form__msg.is-ok { display: block; background: rgba(127, 227, 212, 0.1); border: 1px solid var(--cyan-faint); color: var(--cyan); }
.form__msg.is-err { display: block; background: rgba(232, 127, 181, 0.1); border: 1px solid rgba(232,127,181,0.3); color: var(--magenta); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 6%;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__logo {
  height: 44px; width: auto;
  display: block;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.footer a:hover { color: var(--amber); }

/* ---------- UTILITIES ---------- */
.center { text-align: center; }
.muted { color: var(--text-dim); }
.amber { color: var(--amber); }
.cyan { color: var(--cyan); }
