/*
 * VAKA — Website styles
 * Layered on top of the design system tokens. Design tokens, fonts, and base
 * element styles live in the kit's colors_and_type.css; this file adds page
 * + component styles only.
 */

@import url("system/colors_and_type.css");

/* ─────────────────────────────────────────
   PAGE
───────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  /* Account for the sticky nav so anchor links don't land behind it */
  scroll-padding-top: 110px;
}

body {
  background-color: var(--bg-page);
  background-image: url("bg-pattern.svg");
  background-repeat: repeat;
  background-size: 140px 140px;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--color-espresso);
  color: var(--color-pale-sky);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  z-index: var(--z-toast);
}

/* ─────────────────────────────────────────
   EYEBROW + SECTION TITLE PRIMITIVES
───────────────────────────────────────── */

.eyebrow {
  font-size:      var(--caption-size);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color:          var(--color-taupe);
  font-weight:    var(--font-weight-strong);
  margin-bottom:  var(--space-4);
}

.section__title {
  font-size:      var(--text-2xl);
  font-weight:    var(--font-weight-medium);
  line-height:    var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  color:          var(--text-primary);
  max-width:      18ch;
  margin-bottom:  var(--space-5);
}

.section__lead {
  font-size:    var(--text-md);
  line-height:  var(--leading-relaxed);
  color:        var(--text-secondary);
  max-width:    62ch;
  margin-bottom: var(--space-12);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  background: rgba(214, 238, 255, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.nav.is-scrolled {
  border-bottom-color: var(--color-taupe-faint);
  background: rgba(214, 238, 255, 0.50);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-8);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-primary);
}

.nav__wordmark {
  font-size: 60px;
  font-weight: var(--font-weight-bold);
  color: var(--color-espresso);
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav__tag {
  font-size: 14px;
  font-weight: var(--font-weight-strong);
  color: var(--color-taupe);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__tag-acro {
  font-weight: var(--font-weight-medium);
}

.nav__tabs {
  display: flex;
  gap: var(--space-1);
  background: rgba(62, 46, 34, 0.06);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.nav__tab {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.01em;
  color: var(--color-taupe);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.nav__tab:hover { color: var(--color-espresso); }

.nav__tab.is-active {
  background: var(--color-espresso);
  color: var(--color-pale-sky);
}

.nav__menu-btn {
  display: none;
  background: var(--color-espresso);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.nav__menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-pale-sky);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 var(--space-6) var(--space-5);
  gap: var(--space-2);
}
.mobile-nav__tab {
  padding: var(--space-3) var(--space-4);
  background: var(--color-espresso);
  border-radius: var(--radius-md);
  color: var(--color-pale-sky);
  font-weight: var(--font-weight-strong);
  font-size: var(--text-base);
  box-shadow: var(--shadow-sm);
}
.mobile-nav__tab.is-active {
  background: var(--color-sky);
  color: var(--color-espresso);
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */

.section {
  padding: var(--space-10) var(--space-8);
}

.section--hero {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section__contact {
  max-width: 1280px;
  width: 50%;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-16);
  /* align-items: center; */
  align-itme: flex-start;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__copy { max-width: 560px; }

.hero__headline {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: var(--font-weight-medium);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-espresso);
  margin: var(--space-3) 0 var(--space-6);
}

.hero__widget {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: var(--font-weight-medium);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-espresso);
  margin: 0;
}

.hero__sub {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 48ch;
}

.hero__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.btn--primary {
  background: var(--color-espresso);
  color: var(--color-pale-sky);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-espresso-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: scale(0.97); }

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-espresso);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:active { transform: scale(0.97); }

/* ─────────────────────────────────────────
   HERO CLUSTER (masonry + device)
───────────────────────────────────────── */

.hero__cluster {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: var(--space-6);
  align-items: start;
}

.masonry-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.masonry__heading {
  font-size: clamp(40px, 5vw, var(--text-4xl));
  font-weight: var(--font-weight-medium);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-espresso);
  margin: 0;
}
.masonry__heading--end {
  text-align: right;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--widget-gap);
}

/* ─────────────────────────────────────────
   CHIPS — "Chocolate chip" base
───────────────────────────────────────── */

.chip {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--widget-pad-md);
  box-shadow: var(--shadow-widget);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-out);
  position: relative;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-widget-hover);
}

.chip--span2 { grid-column: span 2; }

.chip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.chip__head--tight { margin-bottom: var(--space-2); }
.chip__head--dark .chip__label,
.chip__head--dark .chip__loc { color: rgba(214, 238, 255, 0.78); }

.chip__label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-taupe);
  font-weight: var(--font-weight-strong);
}
.chip__label--light { color: rgba(214, 238, 255, 0.72); }

.chip__loc {
  font-size: var(--text-xs);
  color: var(--color-taupe);
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.04em;
}
.chip__loc--light { color: rgba(214, 238, 255, 0.72); }

.chip__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-strong);
  color: var(--color-espresso);
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-3);
}

/* ─────────────────────────────────────────
   WEATHER WIDGET
───────────────────────────────────────── */

.chip--weather {
  background: var(--color-sky);
  padding: var(--widget-pad-md);
}
.chip--weather .chip__label,
.chip--weather .chip__loc { color: rgba(62, 46, 34, 0.65); }

.weather {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.weather__temp {
  display: flex;
  align-items: flex-start;
  color: var(--color-espresso);
}
.weather__num {
  font-size: 64px;
  font-weight: var(--font-weight-strong);
  letter-spacing: -0.03em;
  line-height: 1;
}
.weather__deg {
  font-size: 28px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
  margin-top: 4px;
  color: rgba(62, 46, 34, 0.6);
}
.weather__icon { width: 72px; height: 72px; }
.weather__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-strong);
  color: rgba(62, 46, 34, 0.65);
  letter-spacing: 0.02em;
}
.weather__hl { color: rgba(62, 46, 34, 0.55); }

/* ─────────────────────────────────────────
   CLOCK WIDGET
───────────────────────────────────────── */

.chip--clock {
  background: var(--color-espresso);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0 var(--space-1);
}

.clock__face {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(214, 238, 255, 0.10);
  border: 1px solid rgba(214, 238, 255, 0.18);
}

.clock__tick {
  position: absolute;
  width: 2px;
  height: 6px;
  background: rgba(214, 238, 255, 0.6);
  border-radius: 1px;
  left: 50%;
  top: 4px;
  transform-origin: 1px 44px;
}
.clock__tick--12 { transform: translateX(-50%) rotate(0deg); }
.clock__tick--3  { transform: translateX(-50%) rotate(90deg); }
.clock__tick--6  { transform: translateX(-50%) rotate(180deg); }
.clock__tick--9  { transform: translateX(-50%) rotate(270deg); }

.clock__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  background: var(--color-pale-sky);
  border-radius: 99px;
}
.clock__hand--hour {
  width: 3px;
  height: 22px;
  margin-left: -1.5px;
  background: var(--color-pale-sky);
}
.clock__hand--minute {
  width: 2px;
  height: 32px;
  margin-left: -1px;
  background: var(--color-pale-sky);
}
.clock__hand--second {
  width: 2px;
  height: 38px;
  margin-left: -1px;
  background: var(--color-sky);
  transition: transform 0.08s var(--ease-spring);
}

.clock__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--color-sky);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-espresso);
}

.clock__digital {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.02em;
  color: var(--color-pale-sky);
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────
   STATUS WIDGET
───────────────────────────────────────── */

.chip--status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--widget-pad-sm);
}

.status__dot {
  width: 12px;
  height: 12px;
  background: #4FC78A;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(79, 199, 138, 0.55);
  animation: pulse 2.4s var(--ease-out) infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 199, 138, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(79, 199, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 199, 138, 0); }
}

.status__text { display: flex; flex-direction: column; gap: 2px; }
.status__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-strong);
  color: var(--color-espresso);
  letter-spacing: 0.01em;
}
.status__sub {
  font-size: var(--text-xs);
  color: var(--color-taupe);
  font-weight: var(--font-weight-medium);
}

/* ─────────────────────────────────────────
   SCHEDULE WIDGET
───────────────────────────────────────── */

/* Schedule chip — sky blue background, matching Weather */
.chip--schedule { background: var(--color-sky); }
.chip--schedule .chip__label,
.chip--schedule .chip__loc { color: rgba(62, 46, 34, 0.65); }

.schedule { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }

.schedule__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-md);
}
.schedule__item--accent {
  background: var(--color-espresso);
}
.schedule__item--accent .schedule__time,
.schedule__item--accent .schedule__title { color: var(--color-pale-sky); }
.schedule__time {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-strong);
  color: var(--color-espresso);
  letter-spacing: 0.04em;
  min-width: 48px;
  font-variant-numeric: tabular-nums;
}
.schedule__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-espresso);
}

/* ─── Schedule marquee (infinite vertical scroll) ─── */
.schedule-viewport {
  --fade: 18px;
  position: relative;
  height: 200px;
  overflow: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Soft fade at top + bottom inside edges */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
          mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
}
.schedule-viewport::-webkit-scrollbar { display: none; }

.schedule--marquee {
  animation: schedule-marquee 32s linear infinite;
  will-change: transform;
}

/* Pause on chip hover so users can read */
.chip--schedule:hover .schedule--marquee {
  animation-play-state: paused;
}

@keyframes schedule-marquee {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ─────────────────────────────────────────
   STAT WIDGET
───────────────────────────────────────── */

/* Partnership (stat) chip — default off-white */
.chip--stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--widget-pad-sm);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-strong);
  letter-spacing: -0.02em;
  color: var(--color-espresso);
  line-height: 1;
}
.stat__plus {
  font-size: var(--text-xl);
  color: var(--color-sky-dark);
  margin-left: 2px;
}
.stat__sub {
  font-size: var(--text-xs);
  color: var(--color-taupe);
  font-weight: var(--font-weight-medium);
}

/* ─────────────────────────────────────────
   PATENTS MINI WIDGET
───────────────────────────────────────── */

/* Portfolio chip — espresso background, matching Clock */
.chip--patents {
  padding: var(--widget-pad-sm);
  background: var(--color-espresso);
}
.chip--patents .chip__label { color: rgba(214, 238, 255, 0.55); }

.patents-mini { display: flex; flex-direction: column; gap: var(--space-2); }
.patents-mini__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(214, 238, 255, 0.08);
  border-radius: var(--radius-sm);
}
.patents-mini__id {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-sky);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.patents-mini__name {
  font-size: var(--text-xs);
  color: rgba(214, 238, 255, 0.7);
  font-weight: var(--font-weight-strong);
}

/* ─────────────────────────────────────────
   VIRTUAL DEVICE
───────────────────────────────────────── */

.device {
  display: flex;
  justify-content: center;
  filter:
    drop-shadow(0 32px 56px rgba(62, 46, 34, 0.22))
    drop-shadow(0 6px 14px rgba(62, 46, 34, 0.18));
  min-width: 0;
}

.device__frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  min-width: 0;
  background: var(--color-espresso);
  border-radius: var(--radius-device);
  padding: 14px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(214, 238, 255, 0.06),
    inset 0 -12px 24px rgba(0, 0, 0, 0.25);
}

.device__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 14px;
  background: #1a1008;
  border-radius: 99px;
  z-index: 2;
}

.device__screen {
  background: var(--color-pale-sky);
  border-radius: 28px;
  padding: var(--space-5) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 380px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.device__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-espresso);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.device__signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.device__signal i {
  display: block;
  width: 3px;
  background: var(--color-espresso);
  border-radius: 1px;
}
.device__signal i:nth-child(1) { height: 30%; }
.device__signal i:nth-child(2) { height: 55%; }
.device__signal i:nth-child(3) { height: 80%; }
.device__signal i:nth-child(4) { height: 100%; }

.chip--device {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.chip--device:hover { transform: none; box-shadow: var(--shadow-sm); }

.chip--device-weather { background: var(--color-sky); }
.chip--device-weather .chip__label,
.chip--device-weather .chip__loc { color: rgba(62, 46, 34, 0.65); }

.device-weather {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.device-weather__num {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-strong);
  color: var(--color-espresso);
  letter-spacing: -0.02em;
  line-height: 1;
}
.device-weather__sub {
  font-size: var(--text-xs);
  color: rgba(62, 46, 34, 0.6);
  font-weight: var(--font-weight-strong);
}

.chip--device-status { display: flex; align-items: center; gap: var(--space-3); }

/* Mobile schedule — espresso chip, cycles through events with a soft vertical fade-slide */
.chip--device-cal {
  background: var(--color-espresso);
  overflow: hidden;
  contain: layout;
}
.chip--device-cal .chip__label { color: rgba(214, 238, 255, 0.55); }
.chip--device-cal .chip__loc { color: var(--color-pale-sky); }

.device-cal__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-strong);
  color: var(--color-pale-sky);
}

/* Animation states for cycling events */
.chip--device-cal [data-device-schedule-time] {
  display: inline-block;
  transition:
    transform 350ms var(--ease-out),
    opacity 350ms var(--ease-out);
  will-change: transform, opacity;
}
.chip--device-cal [data-device-schedule-title] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    transform 350ms var(--ease-out),
    opacity 350ms var(--ease-out);
  will-change: transform, opacity;
}
.chip--device-cal.is-leaving [data-device-schedule-time],
.chip--device-cal.is-leaving [data-device-schedule-title] {
  opacity: 0;
  transform: translateY(-10px);
}
.chip--device-cal.is-entering [data-device-schedule-time],
.chip--device-cal.is-entering [data-device-schedule-title] {
  opacity: 0;
  transform: translateY(10px);
  transition: none; /* snap to entering position before transitioning back */
}

.device__bar {
  display: block;
  width: 100px;
  height: 4px;
  margin: var(--space-3) auto 0;
  background: rgba(214, 238, 255, 0.4);
  border-radius: 99px;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */

.about { display: flex; flex-direction: column; gap: var(--space-6); }
.about__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.chip--prose {
  padding: var(--widget-pad-lg);
  border-radius: var(--radius-xl);
}
.chip--prose-lead { background: var(--color-sky); }
.chip--prose-lead p { color: var(--color-espresso); font-size: var(--text-md); line-height: var(--leading-relaxed); }
.chip--prose-lead strong { font-weight: var(--font-weight-bold); }

.chip--prose p {
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.chip--prose p + p { margin-top: var(--space-4); }

.chip--prose-accent { background: var(--color-espresso); }
.chip--prose-accent .chip__title { color: var(--color-pale-sky); }
.chip--prose-accent p { color: rgba(214, 238, 255, 0.85); }

/* ─────────────────────────────────────────
   FEATURES (Solutions)
───────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.chip--feature {
  padding: var(--widget-pad-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 240px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-pale-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-espresso);
  margin-bottom: var(--space-2);
}
.feature__icon svg { width: 26px; height: 26px; }

.feature__title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-strong);
  color: var(--color-espresso);
  letter-spacing: var(--tracking-normal);
}

.feature__copy {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.chip--feature-accent { background: var(--color-sky); }
.chip--feature-accent .feature__icon { background: rgba(255, 255, 255, 0.55); }
.chip--feature-accent .feature__copy { color: rgba(62, 46, 34, 0.7); }

.chip--feature-dark { background: var(--color-espresso); }                                            
.chip--feature-dark .feature__icon { background: rgba(214, 238, 255, 0.12); color: var(--color-sky); }       
.chip--feature-dark .feature__title { color: var(--color-pale-sky); }                                      
.chip--feature-dark .feature__copy { color: rgba(214, 238, 255, 0.78); } 

/* ─────────────────────────────────────────
   PATENTS (IP & licensing)
───────────────────────────────────────── */

.patents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.chip--patent {
  padding: var(--widget-pad-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.patent__id {
  font-size: 88px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--color-sky);
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.patent__kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--font-weight-strong);
  color: var(--color-taupe);
}

.patent__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-espresso);
  letter-spacing: var(--tracking-normal);
}

.patent__copy {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
}

.patent__row {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  /* style="display: grid; grid-template-columns: 1fr 1fr; gap: 0px; padding-bottom: 0px; padding-right: 10px;" */
}

.patent__label {
  width: 80px;
  flex-shrink: 0; /* Prevents the labels from getting squished */
  /* display: block; */
}

.patent__data {
  flex-grow: 1;
  padding-left: 10px;
}

/* Force each span to be its own line */
/* .patent__label span, */
.patent__data span,
.patent__copy span {
  display: block;
  line-height: 1.5;       /* Ensure the height is identical on both sides */
  min-height: 1.5em;      /* Prevents collapse if a field is empty */
}

.chip--patent-dark { background: var(--color-espresso); }
.chip--patent-dark .patent__id { color: var(--color-sky); }
.chip--patent-dark .patent__kicker { color: rgba(214, 238, 255, 0.55); }
.chip--patent-dark .patent__title { color: var(--color-pale-sky); }
.chip--patent-dark .patent__copy { color: rgba(214, 238, 255, 0.78); }
.chip--patent-dark .patent__row { color: rgba(214, 238, 255, 0.78); }

.ip__closing {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-taupe);
  max-width: 56ch;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.chip--contact {
  padding: var(--widget-pad-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chip--contact-wide {
  /* grid-column: 1 / -1;
  width: 50%; */
  background: var(--color-espresso);
}
.chip--contact-wide .chip__label { color: rgba(214, 238, 255, 0.55); }
.chip--contact-wide .contact__address { color: var(--color-pale-sky); }

.contact__value {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-strong);
  color: var(--color-espresso);
  letter-spacing: var(--tracking-normal);
}
.contact__value:hover { color: var(--color-sky-dark); }

.contact__address {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-espresso);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--color-taupe-faint);
  padding: var(--space-8);
  background: var(--bg-page);
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__brand {
  font-weight: var(--font-weight-bold);
  color: var(--color-espresso);
  letter-spacing: 0.16em;
}
.footer__tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-taupe);
  font-weight: var(--font-weight-strong);
}
.footer__rights {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-taupe);
  font-weight: var(--font-weight-medium);
}

/* ─────────────────────────────────────────
   ANIMATIONS — staggered hero load + scroll reveals
───────────────────────────────────────── */

.assemble {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: assemble var(--duration-slow) var(--ease-spring) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes assemble {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .assemble, .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .status__dot { animation: none; }
  html { scroll-behavior: auto; }
  .clock__hand--second { transition: none; }
  .schedule--marquee { animation: none; transform: none; }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 1100px) {
  .section__contact {width: 60%; }
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero__cluster {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 820px) {
  .section__contact {width: 70%; }
  .nav__tabs { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .mobile-nav.is-open { display: flex; }

  .section { padding: var(--space-6) var(--space-5); }
  .section--hero { padding-top: var(--space-8); }

  .hero__cluster {
    grid-template-columns: 1fr;
  }
  .device { max-width: 320px; margin: 0 auto; }
  .device__frame { width: 280px; flex-shrink: 0; }
  .about__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .footer__rights { margin-left: 0; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 88px; }
  .section__contact {width: 100%; }
  .nav__inner { padding: var(--space-4) var(--space-5); }
  .nav__wordmark { font-size: 44px; letter-spacing: 0.16em; }
  .nav__tag { font-size: 11px; letter-spacing: 0.18em; }
  .masonry { grid-template-columns: 1fr; }
  .chip--span2 { grid-column: span 1; }
  .chip--patent { grid-column: span 1; }
  .hero__headline { font-size: 32px; }
  .section__title { font-size: var(--text-xl); }
}
