/* =========================================================
   Dremora Properties
   ========================================================= */
:root {
  --blue: #1a6bff;
  --ink: #0b0b1a;
  --cream: #f6f4ee;
  --dark: #0d0d0f;
  --line-dark: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.16);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* UI scale: small text and controls grow on large monitors */
  --u: 1;
  --gutter: max(clamp(16px, 3.4vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 1800px) { :root { --u: 1.18; } }
@media (min-width: 2300px) { :root { --u: 1.4; } }
@media (min-width: 3000px) { :root { --u: 1.75; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible, .hero__social a:focus-visible, .search :focus-visible, .card__fav:focus-visible,
.btn-blue:focus-visible, .svc__more:focus-visible, .nav__burger:focus-visible { border-radius: 999px; }

/* ---------- shared ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: calc(30px * var(--u));
  padding: 0 calc(16px * var(--u));
  border-radius: 999px;
  font-size: calc(12px * var(--u));
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}
.pill.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.pill--cta { height: calc(34px * var(--u)); padding: 0 calc(20px * var(--u)); }
.pill--solid {
  height: calc(40px * var(--u));
  padding: 0 calc(22px * var(--u));
  font-size: calc(13px * var(--u));
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
@media (hover: hover) {
  .pill:not(.is-active):hover { background: rgba(255, 255, 255, 0.3); }
  .pill--solid:hover { background: #0f5cec !important; }
}

.logo { display: inline-flex; align-items: center; gap: calc(6px * var(--u)); color: #fff; }
.logo__mark { width: calc(26px * var(--u)); height: calc(26px * var(--u)); flex: none; }
.logo__text { font-size: calc(23px * var(--u)); font-weight: 700; letter-spacing: -0.045em; }

.section-head {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
  font-size: calc(12px * var(--u));
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}
.section-head span:nth-child(2) { text-align: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  /* the word is sized in vw; its x-height starts ~0.2175em below its top */
  --word-size: 25vw;
  --word-top: max(7%, calc(134px * var(--u) - 5.3vw));
  --x-top: calc(var(--word-top) + var(--word-size) * 0.2175);
  --hero-pos: 50% 38%;
  --hero-roof: 47%;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #8fb8dc;
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
/* tiny blurred preview, shown until the full photo has decoded */
.hero__media::before,
.smart__media::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: var(--lqip) var(--hero-pos, 50% 50%) / cover no-repeat;
  filter: blur(22px);
  transform: scale(1.05);
}
.hero__media { --lqip: url("https://images.unsplash.com/photo-1706164971413-08e13bfa2e61?auto=format&fit=crop&q=40&w=64"); }
.smart__media { --lqip: url("https://images.unsplash.com/photo-1568605115459-4b731184f961?auto=format&fit=crop&q=40&w=64"); }
.smart__media img { position: relative; }
.hero__bg,
.hero__fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-pos);
  backface-visibility: hidden;
}
.hero__fg {
  z-index: 2;
  /* fallback until the sky mask is ready: everything under the roofline sits in front of the word */
  clip-path: inset(var(--hero-roof) 0 0 0);
}
.hero__fg:not([src]) { visibility: hidden; }
/* sharp photo fades in over the blurred preview once it has loaded */
.js .hero__bg, .js .hero__fg { opacity: 0; transition: opacity 0.9s ease; }
.js .hero.is-loaded .hero__bg, .js .hero.is-loaded .hero__fg { opacity: 1; }
.hero__fg.is-masked {
  clip-path: none;
  -webkit-mask-image: var(--hero-mask);
  mask-image: var(--hero-mask);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: var(--hero-pos);
  mask-position: var(--hero-pos);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 40, 70, 0.28) 0%, rgba(10, 40, 70, 0) 18%),
    linear-gradient(0deg, rgba(150, 160, 175, 0.75) 0%, rgba(150, 160, 175, 0.35) 9%, rgba(150, 160, 175, 0) 22%);
}
.hero__word {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: var(--word-top);
  text-align: center;
  font-size: var(--word-size);
  line-height: 0.8;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero__word-inner { display: inline-flex; padding-right: 0.06em; }
.hero__word-inner > span { display: inline-block; will-change: transform; }

.nav {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(22px * var(--u) + var(--safe-top)) var(--gutter) 0;
}
.nav__pills {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(8px * var(--u));
}
.nav__burger { display: none; }

.hero__year {
  position: absolute;
  z-index: 4;
  left: 47.5%;
  top: calc(var(--word-top) + var(--word-size) * 0.145);
  font-size: calc(12px * var(--u));
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.hero__links {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  /* sits in the sky band just above the letters' x-height */
  top: calc(var(--x-top) - 67px * var(--u));
  text-align: right;
  font-size: calc(12px * var(--u));
  line-height: 1.75;
  font-weight: 400;
}
.hero__links a { opacity: 0.92; transition: opacity 0.3s; }
@media (hover: hover) {
  .hero__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
}

.hero__social {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  bottom: calc(5.5% + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: calc(14px * var(--u));
}
.hero__social a {
  display: grid;
  place-items: center;
  width: calc(34px * var(--u));
  height: calc(34px * var(--u));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, transform 0.3s;
}
@media (hover: hover) {
  .hero__social a:hover { background: rgba(255, 255, 255, 0.38); transform: scale(1.06); }
}
.hero__social svg { width: 41%; height: 41%; fill: #fff; }

.hero__copy {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: calc(6% + var(--safe-bottom));
  max-width: calc(360px * var(--u));
  text-align: right;
  font-size: calc(14.5px * var(--u));
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.mobile-menu { display: none; }

/* =========================================================
   RECOMMENDATIONS
   ========================================================= */
.recommend {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
  padding: 26px var(--gutter) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  /* cards spill past the right edge by design; never let them widen the page */
  overflow-x: clip;
}
.recommend__tabs {
  position: absolute;
  top: calc(26px * var(--u));
  left: var(--gutter);
  display: flex;
  gap: 8px;
}
.recommend__tabs a {
  font-size: calc(11px * var(--u));
  color: #8a8a90;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.recommend__tabs a.is-active { background: #ecebe4; color: var(--ink); }
@media (hover: hover) { .recommend__tabs a:hover { background: #ecebe4; color: var(--ink); } }

.recommend__text { position: relative; z-index: 6; padding-top: 60px; max-width: 44%; }
.eyebrow {
  font-size: calc(11px * var(--u));
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #2a2a33;
  margin-bottom: calc(26px * var(--u));
}
.recommend__title {
  font-size: clamp(52px, 7.4vw, 240px);
  line-height: 0.93;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span { display: inline-block; will-change: transform; }
.recommend__copy {
  margin-top: calc(30px * var(--u));
  max-width: calc(380px * var(--u));
  font-size: calc(15px * var(--u));
  line-height: 1.55;
  color: #6c6c74;
}
.search {
  margin-top: calc(30px * var(--u));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(300px * var(--u));
}
.search input {
  flex: 1;
  min-width: 0;
  height: calc(42px * var(--u));
  border: 0;
  border-radius: 999px;
  padding: 0 1.5em;
  font: 500 max(16px, calc(12px * var(--u))) var(--font); /* 16px+ stops iOS zoom-on-focus */
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 6px 22px rgba(20, 20, 40, 0.06);
  outline: none;
  transition: box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) and (pointer: fine) { .search input { font-size: calc(12px * var(--u)); } }
.search input::placeholder { color: #55555c; }
.search input:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(26, 107, 255, 0.45), 0 6px 22px rgba(20, 20, 40, 0.06); }
.search button {
  flex: none;
  width: calc(42px * var(--u));
  height: calc(42px * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 6px 22px rgba(20, 20, 40, 0.06);
  transition: transform 0.3s, background 0.3s;
}
.search svg { width: 40%; height: 40%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; transition: stroke 0.3s; }
@media (hover: hover) {
  .search button:hover { transform: scale(1.06); background: var(--blue); }
  .search button:hover svg { stroke: #fff; }
}

/* card stack */
.stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* .card is the slot (position, tilt, depth) and glides between slots;
   .card__inner is the visible card and carries the scroll-in animation */
.card {
  position: absolute;
  width: clamp(280px, 33vw, 860px);
  font-size: clamp(12px, 0.9vw, 22px);
  border-radius: 1.2em;
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  transition:
    top 0.95s cubic-bezier(0.65, 0, 0.15, 1),
    left 0.95s cubic-bezier(0.65, 0, 0.15, 1),
    transform 0.95s cubic-bezier(0.65, 0, 0.15, 1);
}
.card__inner {
  padding: 0.55em 0.55em 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(20, 24, 40, 0.28), 0 2px 6px rgba(20, 24, 40, 0.06);
  transition: translate 0.45s var(--ease), box-shadow 0.45s ease;
  will-change: transform;
}
.card:not([data-slot="3"]) { cursor: pointer; }
.card img { -webkit-user-drag: none; }
@media (hover: hover) {
  .card:not([data-slot="3"]):hover .card__inner {
    translate: 0 -10px;
    box-shadow: 0 40px 70px -22px rgba(20, 24, 40, 0.38), 0 2px 6px rgba(20, 24, 40, 0.06);
  }
}
.card:focus-visible { outline: none; }
.card:focus-visible .card__inner { box-shadow: 0 0 0 3px var(--blue), 0 30px 60px -20px rgba(20, 24, 40, 0.28); }
/* the card that arrives at the front pops out */
.card.is-popping .card__inner { animation: card-pop 0.95s cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes card-pop {
  0%   { scale: 1; }
  45%  { scale: 1.07; }
  100% { scale: 1; }
}
.card__img { border-radius: 0.85em; overflow: hidden; aspect-ratio: 16 / 8.6; background: #dfe3e8; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
@media (hover: hover) { .card:hover .card__img img { transform: scale(1.06); } }
.card__body { position: relative; padding: 1em 3.2em 1.25em 0.6em; }
.card__price { font-size: 1.385em; font-weight: 600; letter-spacing: -0.02em; }
.card__addr { margin-top: 0.3em; font-size: 1em; color: #2d2d36; letter-spacing: -0.01em; }
.card__meta { margin-top: 0.95em; font-size: 0.77em; color: #9a9aa2; }
.card__meta i, .svc__detail i { font-style: normal; margin: 0 0.4em; opacity: 0.6; }
.card__fav {
  position: absolute;
  right: 0.6em;
  bottom: 1.1em;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3ff;
  transition: background 0.3s, transform 0.3s;
}
.card__fav svg { width: 50%; height: 50%; fill: none; stroke: var(--blue); stroke-width: 1.8; transition: fill 0.3s, stroke 0.3s; }
@media (hover: hover) { .card__fav:hover { transform: scale(1.1); } }
.card__fav.is-on { background: var(--blue); }
.card__fav.is-on svg { stroke: #fff; fill: #fff; }

.card[data-slot="1"] { top: -5%; left: 75%; transform: rotate(8deg); z-index: 1; }
.card[data-slot="2"] { top: 8%;  left: 61%; transform: rotate(2.5deg); z-index: 2; }
.card[data-slot="3"] { top: 31%; left: 47%; transform: rotate(-0.5deg); z-index: 5; }
.card[data-slot="4"] { top: 48%; left: 58%; transform: rotate(-4.5deg); z-index: 4; }
.card[data-slot="5"] { top: 64%; left: 72%; transform: rotate(-7.5deg); z-index: 3; }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: #fff;
  padding: clamp(110px, 10.5vw, 260px) 0 clamp(110px, 11vw, 280px);
}
.svc { margin-top: calc(44px * var(--u)); padding: 0 var(--gutter); }
.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: calc(60px * var(--u)) 1fr calc(90px * var(--u));
  align-items: start;
  padding: calc(14px * var(--u)) 0 calc(16px * var(--u));
  border-top: 1px solid var(--line-dark);
  cursor: pointer;
}
.svc__row:first-child { border-top: 0; }
.svc__num { padding-top: 12px; font-size: calc(11px * var(--u)); color: rgba(255, 255, 255, 0.7); }
.svc__more {
  justify-self: end;
  margin-top: 8px;
  font-size: calc(11px * var(--u));
  padding: 0.45em 0.9em;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.svc__row.is-active .svc__more { background: #fff; color: var(--ink); }
@media (hover: hover) { .svc__row:hover .svc__more { background: #fff; color: var(--ink); } }
.svc__main { min-width: 0; text-align: center; }
.svc__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 6.6vw, 220px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.svc__title > span:first-child { margin-right: 0.24em; }
.svc__img {
  display: inline-block;
  width: 0;
  height: 0.8em;
  margin-right: 0;
  border-radius: 0.1em;
  overflow: hidden;
  transition: width 0.75s var(--ease), margin 0.75s var(--ease);
}
.svc__img img { width: 2.2em; max-width: none; height: 100%; object-fit: cover; }
.svc__row.is-active .svc__img { width: 2.2em; margin-right: 0.18em; }
.svc__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.75s var(--ease);
}
.svc__detail > div {
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease);
}
.svc__row.is-active .svc__detail { grid-template-rows: 1fr; }
.svc__row.is-active .svc__detail > div { opacity: 1; transform: none; transition-delay: 0.18s; }
.svc__detail p { padding-top: 6px; font-size: calc(11px * var(--u)); color: rgba(255, 255, 255, 0.72); }
.btn-blue {
  display: inline-flex;
  align-items: center;
  height: calc(30px * var(--u));
  margin: calc(14px * var(--u)) 0 6px;
  padding: 0 calc(18px * var(--u));
  border-radius: 999px;
  font-size: calc(11px * var(--u));
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 24px -6px rgba(26, 107, 255, 0.7);
  transition: background 0.3s, transform 0.3s;
}
@media (hover: hover) { .btn-blue:hover { background: #3b82ff; transform: translateY(-1px); } }

/* =========================================================
   SMART HOME SHOWCASE
   ========================================================= */
.smart {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #2a2a36;
}
.smart__media { position: absolute; inset: 0; will-change: transform; }
.smart__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.smart__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 35, 0.35) 0%, rgba(20, 20, 35, 0) 22%);
  pointer-events: none;
}
/* sunset warmth over the sky */
.smart__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 112, 40, 0.75) 0%, rgba(255, 140, 50, 0.45) 30%, rgba(255, 140, 50, 0) 58%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.section-head--light { padding-top: calc(30px * var(--u) + var(--safe-top)); color: #fff; }

.dot {
  position: absolute;
  z-index: 2;
  width: calc(10px * var(--u));
  height: calc(10px * var(--u));
  margin: calc(-5px * var(--u)) 0 0 calc(-5px * var(--u));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 0 18px 4px rgba(255, 255, 255, 0.6);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -80%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: ping 2.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.dot--1 { left: 25.5%; top: 50%; }
.dot--2 { left: 64.8%; top: 46%; }
.dot--3 { left: 69%;   top: 77%; }

/* device cards are built in em so the whole card scales from one font-size */
.device {
  position: absolute;
  z-index: 3;
  font-size: clamp(9px, 0.72vw, 20px);
  width: 17em;
  padding: 0.6em 0.6em 1em;
  border-radius: 1em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 0.75em;
  height: 2.25em;
  padding: 0 0.5em 0 0.875em;
  border-radius: 0.625em;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 0.8em;
  font-weight: 600;
}
.device__bar i { width: 0.625em; height: 0.625em; border-radius: 50%; background: #1a1a1a; flex: none; }
.device__bar span { flex: 1; }
.toggle {
  position: relative;
  flex: none;
  width: 2.5em;
  height: 1.375em;
  border-radius: 999px;
  background: #c9ccd2;
  transition: background 0.3s;
}
/* bigger hit area for fingers without changing the look */
.toggle::before { content: ""; position: absolute; inset: -10px -8px; }
.toggle::after {
  content: "";
  position: absolute;
  top: 0.1875em;
  left: 0.1875em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
}
.toggle.is-on { background: #34c759; }
.toggle.is-on::after { transform: translateX(1.125em); }
.device__name { margin: 0.9em 0.4em 0; font-size: 1em; font-weight: 500; line-height: 1.3; }
.device__name small { font-size: 0.85em; font-weight: 400; opacity: 0.75; }
.device__art { display: block; width: 100%; height: auto; margin: 0.4em 0 0.2em; transition: opacity 0.4s, filter 0.4s; }
.device__art--bulb { width: 46%; margin: 0.2em auto 0; }
.device__foot { display: flex; justify-content: space-between; margin: 0.7em 0.47em 0; font-size: 0.85em; opacity: 0.85; }
.device.is-off .device__art { opacity: 0.45; filter: grayscale(1); }

.device--ac    { left: 12%;   top: 26.5%; }
.device--light { left: 69.5%; top: 26.5%; }
.device--bulb  { left: 73%;   top: 71.5%; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: #fff; padding: calc(80px * var(--u)) var(--gutter) calc(28px * var(--u) + var(--safe-bottom)); }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: calc(50px * var(--u));
  border-bottom: 1px solid var(--line-dark);
}
.footer__tag { font-size: clamp(22px, 2.4vw, 64px); font-weight: 500; letter-spacing: -0.03em; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: calc(22px * var(--u));
  font-size: calc(12px * var(--u));
  color: rgba(255, 255, 255, 0.55);
}
.footer__links { display: flex; gap: 18px; }
@media (hover: hover) { .footer__links a:hover { color: #fff; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__pills .pill { padding: 0 12px; }
}

/* portrait screens (tablets, phones): there is sky below the word, so the
   side links and year sit under it instead of squeezing above the x-height */
@media (orientation: portrait) {
  .hero {
    --word-top: max(8%, calc(70px + var(--safe-top)));
    --hero-pos: 58% 38%;
  }
  .hero__links,
  .hero__year { top: calc(var(--word-top) + var(--word-size) * 0.84 + 14px); }
  .hero__year { left: var(--gutter); }
}

@media (max-width: 900px) {
  .nav__pills, .nav > .pill--cta { display: none; }
  .nav__burger {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav__burger span { display: block; width: 16px; height: 1.6px; background: #fff; transition: transform 0.4s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    z-index: 9;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: calc(90px + var(--safe-top)) var(--gutter) calc(40px + var(--safe-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(12, 14, 20, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }
  .mobile-menu a:not(.pill) { font-size: clamp(30px, 9vw, 52px); font-weight: 500; letter-spacing: -0.04em; color: #fff; line-height: 1.2; }
  .mobile-menu .pill { align-self: flex-start; margin-top: 24px; }

  .recommend { grid-template-columns: 1fr; padding-bottom: 40px; }
  .recommend__text { padding-top: 70px; max-width: none; }
  .stack { position: relative; inset: auto; min-height: 620px; margin: 40px calc(var(--gutter) * -1) 0; }
  .card { width: min(64vw, 400px); font-size: 13px; }
  .card[data-slot="1"] { top: 0;   left: 40%; }
  .card[data-slot="2"] { top: 6%;  left: 14%; }
  .card[data-slot="3"] { top: 28%; left: 4%; }
  .card[data-slot="4"] { top: 45%; left: 26%; }
  .card[data-slot="5"] { top: 62%; left: 38%; }

  .svc__row { grid-template-columns: 40px 1fr 70px; }
}

@media (max-width: 600px) {
  .hero { min-height: 520px; --word-top: max(11.5%, calc(76px + var(--safe-top))); --word-size: 25.5vw; }
  .hero__copy { left: auto; max-width: 250px; font-size: 13px; bottom: calc(5% + var(--safe-bottom)); }
  .hero__social { gap: 10px; }
  .hero__social a { width: 36px; height: 36px; }
  .hero__links { font-size: 11px; }
  .logo__text { font-size: 21px; }

  .recommend__title { font-size: 17vw; }
  .stack { min-height: 560px; }
  .card { width: 76vw; font-size: 12px; }
  .card[data-slot="1"] { left: 30%; }
  .card[data-slot="2"] { left: 10%; }
  .card[data-slot="3"] { left: 3%; }
  .card[data-slot="4"] { left: 16%; }
  .card[data-slot="5"] { left: 22%; }

  .section-head { grid-template-columns: 1fr auto; row-gap: 6px; }
  .section-head span:nth-child(2) { text-align: right; }
  .section-head span:nth-child(3) { display: none; }

  .svc__row { grid-template-columns: 1fr auto; row-gap: 4px; padding: 12px 0 14px; }
  .svc__num { grid-column: 1; grid-row: 1; padding-top: 0; }
  .svc__more { grid-column: 2; grid-row: 1; margin-top: 0; }
  .svc__main { grid-column: 1 / -1; grid-row: 2; }
  .svc__title { font-size: 10vw; }
  .svc__img img { width: 1.25em; }
  .svc__row.is-active .svc__img { width: 1.25em; margin-right: 0.14em; }
  .svc__detail p { font-size: 10px; line-height: 1.6; padding-inline: 6px; }

  .smart { min-height: 560px; }
  .smart__media img { object-position: 46% 60%; }
  .device { font-size: 7.8px; }
  .device--ac    { left: 4%;  top: 15%; }
  .device--light { left: auto; right: 4%; top: 15%; }
  .device--bulb  { left: auto; right: 4%; top: auto; bottom: calc(6% + var(--safe-bottom)); }
  .dot--1 { left: 30%; top: 46%; }
  .dot--2 { left: 72%; top: 44%; }
  .dot--3 { left: 62%; top: 74%; }

  .footer__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .hero__copy { max-width: 210px; font-size: 12px; }
  .device { font-size: 7px; }
  .svc__more { font-size: 10px; }
}

/* short landscape screens (phones on their side) */
@media (orientation: landscape) and (max-height: 540px) {
  .hero {
    min-height: 0;
    --word-size: min(25vw, 36svh);
    --word-top: calc(58px + var(--safe-top));
    /* show the top of the photo so the word stays in the sky above the roof */
    --hero-pos: 50% 4%;
  }
  .nav { padding-top: calc(12px + var(--safe-top)); }
  .hero__links, .hero__year { display: none; }
  .hero__social { flex-direction: row; gap: 8px; bottom: calc(14px + var(--safe-bottom)); }
  .hero__social a { width: 32px; height: 32px; }
  .hero__copy { max-width: 300px; font-size: 12.5px; bottom: calc(14px + var(--safe-bottom)); }

  .recommend { min-height: 0; }
  .recommend__title { font-size: min(17vw, 15svh); }

  .services { padding: 80px 0; }

  .smart { min-height: 0; }
  .device { font-size: clamp(6.5px, 1.9svh, 9px); }
  .device--ac    { left: 6%;  top: 18%; bottom: auto; right: auto; }
  .device--light { left: auto; right: 6%; top: 18%; bottom: auto; }
  .device--bulb  { left: auto; right: 22%; top: auto; bottom: 6%; }

  .mobile-menu { justify-content: flex-start; padding-top: calc(70px + var(--safe-top)); }
  .mobile-menu a:not(.pill) { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
