:root {
  --bg: #f4efe7;
  --bg-deep: #ece4d8;
  --ink: #1c1915;
  --muted: #5c564c;
  --accent: #8a4b2f;
  --accent-hover: #6f3c25;
  --card: #fffaf4;
  --line: rgba(28, 25, 21, 0.12);
  --shadow: 0 16px 40px rgba(28, 25, 21, 0.08);
  --hero-text: #fffaf4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

nav { display: flex; gap: 1.5rem; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: min(36rem, 88vh);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: var(--hero-text);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #1c1915 url("hero-christmas.jpg") center 48% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 25, 21, 0.22) 0%,
    rgba(28, 25, 21, 0.08) 28%,
    rgba(28, 25, 21, 0) 48%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 2.25rem 0 2rem;
}

.hero .eyebrow {
  color: #f0d2c0;
  text-shadow: 0 1px 10px rgba(28, 25, 21, 0.45);
}

.hero .broker-heading,
.hero .lede {
  text-shadow: 0 1px 12px rgba(28, 25, 21, 0.4);
}

.hero .lede {
  color: rgba(255, 250, 244, 0.95);
  margin-bottom: 0;
}

.hero-lower-actions {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.hero-lower-actions .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 5.25rem); margin-bottom: 0.35rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }

.lede, .about p, .contact-note {
  color: var(--muted);
  font-size: 1.15rem;
}

.lede { margin-bottom: 2rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fffaf4;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--accent-hover); }

.about { padding: 5rem 0; background: var(--bg-deep); }
.about-inner { max-width: 40rem; }
.about p + p { margin-top: 1rem; }

.contact { padding: 5rem 0 6rem; }

.contact-inner, form { max-width: 36rem; }

.contact-note { margin-bottom: 2rem; }

label {
  display: block;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

input, textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--card);
  font: inherit;
  color: var(--ink);
  box-shadow: var(--shadow);
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero { min-height: 28rem; }
  .hero-inner { padding: 1.5rem 0 1.5rem; }
  .about, .contact { padding: 3.5rem 0; }
}


.broker-heading {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 250, 244, 0.92);
  margin: 0 0 1.15rem;
}

.broker-key {
  position: absolute;
  right: max(1.25rem, calc((100% - 1080px) / 2));
  bottom: 1.5rem;
  z-index: 2;
  width: min(10.5rem, 36vw);
  height: auto;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0;
  box-shadow: 0 10px 28px rgba(28, 25, 21, 0.28);
}

.contact-email {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.contact-email a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .broker-key {
    right: 1rem;
    bottom: 1rem;
    width: 7.5rem;
  }
}


.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.feature-links { padding: 4.5rem 0; background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem 1.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.feature-card h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.feature-card p:not(.eyebrow) { color: var(--muted); }
.feature-card:hover { border-color: rgba(138, 75, 47, 0.35); }

.page-hero {
  padding: 4.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(138, 75, 47, 0.12), transparent 40%),
    var(--bg);
}
.page-hero-inner { max-width: 40rem; }
.page-hero .lede { margin-bottom: 0; }
.page-section { padding: 2.5rem 0 5rem; }
.page-section .btn { margin-top: 0.5rem; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-key {
  width: 4.25rem;
  height: auto;
  background: #fff;
  border-radius: 0.4rem;
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  nav { gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.btn-light {
  background: #fffaf4;
  color: var(--ink);
}

.btn-light:hover { background: #ece4d8; }

.listing-search {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin-top: 0.25rem;
  background: rgba(255, 250, 244, 0.96);
  color: var(--ink);
  border-radius: 1rem;
  padding: 1rem 1rem 1.05rem;
  box-shadow: var(--shadow);
}

.search-label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.search-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr auto;
  gap: 0.7rem;
  align-items: end;
}

.search-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.search-field input,
.search-field select {
  width: 100%;
  margin-top: 0;
  box-shadow: none;
}

.listing-search .btn { margin: 0; }

.listing-search-page {
  max-width: none;
  margin: 0 0 1.5rem;
  background: var(--card);
}

.listing-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.listing-card h2 { font-size: 1.55rem; }

.book {
  padding: 5rem 0 4rem;
  background: var(--bg-deep);
}

.form-status {
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.hero-inner { max-width: 46rem; }

@media (max-width: 800px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .listing-search .btn { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .search-row { grid-template-columns: 1fr; }
}


/* Background music control — off until the visitor presses play */
.music-player {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(244, 239, 231, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  max-width: calc(100% - 2rem);
  backdrop-filter: blur(12px);
  color: var(--ink);
}

.music-player button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--hero-text);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.music-player button:hover { background: var(--accent-hover); }

.music-player button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.music-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.music-copy strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.music-copy span {
  font-size: 0.72rem;
  color: var(--muted);
}

.music-player[data-playing="true"] .music-play-icon { display: none; }
.music-player[data-playing="false"] .music-pause-icon { display: none; }

@media (max-width: 600px) {
  .music-player {
    left: 0.75rem;
    bottom: 0.75rem;
    padding-right: 0.7rem;
  }
}


.feature-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-list {
  display: grid;
  gap: 1.1rem;
  margin: 1.75rem 0 2rem;
}

.process-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.process-item h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.process-item p:not(.eyebrow) {
  color: var(--muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-actions .btn { margin-top: 0; }

.page-section .btn-light {
  background: #fff;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .feature-grid-3 { grid-template-columns: 1fr; }
}


.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.homes-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fffaf4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  flex-shrink: 0;
}

.homes-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.homes-icon:hover { background: var(--accent-hover); color: #fffaf4; }

.featured-homes {
  padding: 4.5rem 0 3.5rem;
  background: var(--bg);
}

.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.featured-head h2 { margin-bottom: 0.35rem; }

.featured-note, .community-note {
  color: var(--muted);
  max-width: 40rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-width: 0;
}

.home-card:hover { border-color: rgba(138, 75, 47, 0.4); }

.home-card-media { position: relative; }

.home-card-photo {
  height: 11.5rem;
  background: #ddd4c6 center / cover no-repeat;
}

.home-card-photo-empty { background: var(--bg-deep); }

.home-card-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--accent);
  color: #fffaf4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.home-card-badge-muted { background: rgba(28, 25, 21, 0.75); }

.home-card-body { padding: 1rem 1.05rem 1.15rem; }

.home-card-price {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.home-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.home-card-meta, .home-card-agent {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-card-agent { margin-top: 0.45rem; }

.listing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.featured-communities {
  padding: 3.5rem 0 4.5rem;
  background: var(--bg-deep);
}

.community-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.community-chip {
  display: inline-block;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.community-chip:hover { border-color: rgba(138, 75, 47, 0.4); color: var(--accent); }

.office-line {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy { max-width: 44rem; }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .home-grid { grid-template-columns: 1fr; }
  .homes-icon span { /* keep the label; it's the point of the icon */ }
}

.listing-links .btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.listing-links .btn-light:hover { background: var(--card); }
.listing-links { align-items: center; }


.about-split {
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.2fr);
  gap: 2.5rem 3rem;
  align-items: center;
}
.about-inner { max-width: 40rem; }
.about-copy { max-width: 40rem; }
.about-photo {
  margin: 0;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.footer-lockup {
  width: min(14rem, 72vw);
  height: auto;
  background: #000;
  border-radius: 0.45rem;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .about-photo {
    max-width: 22rem;
  }
}


.page-hero-photo {
  position: relative;
  min-height: min(28rem, 72vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  color: var(--hero-text);
  background: #1c1915;
}
.page-hero-photo .page-hero-media {
  position: absolute;
  inset: 0;
  background-color: #1c1915;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.hero-night .page-hero-media {
  background-image: url("photos/log-home-night.jpg");
  background-position: 40% 50%;
}
.hero-deck-summer .page-hero-media {
  background-image: url("photos/deck-side-summer.jpg");
  background-position: 70% 58%;
}
.hero-porch .page-hero-media {
  background-image: url("photos/porch-seating.jpg");
  background-position: 40% 50%;
}
.hero-deck-fall .page-hero-media {
  background-image: url("photos/deck-fall-wet.jpg");
  background-position: 55% 22%;
}
.page-hero-photo-light {
  min-height: min(34rem, 80vh);
}
.page-hero-photo-light .page-hero-shade {
  background: linear-gradient(
    180deg,
    rgba(28, 25, 21, 0.28) 8%,
    rgba(28, 25, 21, 0.62) 55%,
    rgba(28, 25, 21, 0.82) 100%
  );
}
.page-hero-photo .page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 25, 21, 0.22) 20%,
    rgba(28, 25, 21, 0.72) 100%
  );
}
.page-hero-photo .page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 8rem 0 3.25rem;
  max-width: 40rem;
}
.page-hero-photo .eyebrow { color: #f0d2c0; text-shadow: 0 1px 10px rgba(28, 25, 21, 0.45); }
.page-hero-photo h1 {
  color: var(--hero-text);
  text-shadow: 0 2px 22px rgba(28, 25, 21, 0.7);
}
.page-hero-photo .lede {
  color: rgba(255, 250, 244, 0.92);
  text-shadow: 0 1px 14px rgba(28, 25, 21, 0.65);
}

@media (max-width: 600px) {
  .page-hero-photo { min-height: 22rem; }
  .page-hero-photo .page-hero-inner { padding: 6rem 0 2.25rem; }
}

.footer-social {
  margin: 0.85rem 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.footer-social a:hover { color: var(--ink); }
.ig-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.about-inner a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.about-inner a:not(.btn):hover {
  color: var(--accent-hover);
}

.hero-snow .page-hero-media {
  background-image: url("hero-christmas.jpg");
  background-position: center 45%;
}

.hero-driveway-snow .page-hero-media {
  background-image: url("photos/snow-driveway-night.jpg");
  background-position: 40% 50%;
}


/* Homepage hero: legible bio panel (2026-11-09) */
.hero .hero-inner {
  margin-top: 1.5rem;
  max-width: 38rem;
  padding: 1.25rem 1.6rem 1.4rem;
  background: rgba(28, 25, 21, 0.62);
  border-radius: 0.9rem;
  backdrop-filter: blur(3px);
}
.hero .hero-inner .lede {
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 500;
  color: #fffaf4;
  text-shadow: none;
}
.hero .hero-inner .broker-heading { text-shadow: none; color: #fffaf4; }
.hero .hero-inner .eyebrow { text-shadow: none; }
@media (max-width: 600px) {
  .hero .hero-inner { margin: 1rem; padding: 1rem 1.1rem; }
  .hero .hero-inner .lede { font-size: 1.1rem; }
}


/* Complimentary drone photography on the About page */
.drone-photos {
  padding: 5rem 0;
  background: var(--bg);
}

.drone-intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.drone-intro p:not(.eyebrow):not(.page-actions) {
  color: var(--muted);
  font-size: 1.15rem;
}

.drone-gallery {
  display: grid;
  gap: 0.85rem;
}

.drone-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}

.drone-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drone-gallery-hero {
  aspect-ratio: 16 / 9;
}

.drone-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.drone-gallery-grid figure {
  aspect-ratio: 4 / 3;
}

@media (max-width: 800px) {
  .drone-photos { padding: 3.5rem 0; }
  .drone-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Homepage hero layout tweak (2026-11-13): panel to far left, key logo far right and smaller */
.hero .hero-inner.wrap {
  margin-left: 1.25rem;
  margin-right: auto;
  margin-top: 1.25rem;
  width: auto;
}
.hero .broker-key {
  right: 1.25rem;
  width: min(8rem, 28vw);
}
@media (max-width: 600px) {
  .hero .hero-inner.wrap { margin: 1rem; }
  .hero .broker-key { right: 0.75rem; width: 6rem; }
}
/* Panel upper-left, logo bottom-right (2026-11-13) */
.hero .hero-inner.wrap { margin-top: 1rem; margin-left: 1rem; }
.hero .broker-key { right: 1rem; bottom: 1rem; }

/* Homepage: gray panel removed; About-page heading in the sky (2026-11-13) */
.hero .hero-sky-title {
  position: absolute;
  top: 0.75rem;
  left: 0; right: 0;
  z-index: 1;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: var(--hero-text);
  text-shadow: 0 2px 22px rgba(28, 25, 21, 0.7);
}

/* Hide "Dom" logo text in header, keep menu position (2026-11-13) */
.site-header .logo { visibility: hidden; }

.btn-instagram { display:inline-flex; align-items:center; gap:.5rem; }
.btn-instagram svg { flex:none; }

.visit-count { font-size:.85rem; opacity:.8; margin-top:.25rem; }

/* Homepage drone: smooth JS-driven flight, links to aerial-drone.html */
.hero-drone {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: block;
  cursor: pointer;
  text-decoration: none;
  transform: translate3d(32vw, 9rem, 0);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.hero-drone .drone-body {
  display: block;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s ease;
}
.hero-drone svg {
  display: block;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.28));
  animation: drone-hover 1.6s ease-in-out infinite alternate;
  transition: transform .3s ease;
}
.hero-drone .prop-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: drone-prop-spin .16s linear infinite;
}
.hero-drone .prop-spin-b { animation-duration: .18s; animation-direction: reverse; }
.hero-drone .prop-disc { pointer-events: none; }
.hero-drone .nav-red { animation: drone-blink 1.2s ease-in-out infinite; }
.hero-drone .nav-green { animation: drone-blink 1.2s ease-in-out .6s infinite; }
.hero-drone .drone-shadow {
  display: block;
  width: 60px; height: 8px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.25), rgba(0,0,0,0));
  animation: drone-shadow 1.6s ease-in-out infinite alternate;
}
.hero-drone .drone-tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translate(-4px, -50%);
  white-space: nowrap;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #1c1915;
  font: 500 .85rem/1.2 "Outfit", system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.hero-drone.tip-left .drone-tip { left: auto; right: calc(100% + 8px); transform: translate(4px, -50%); }
.hero-drone:hover .drone-tip,
.hero-drone:focus-visible .drone-tip { opacity: 1; transform: translate(0, -50%); }
.hero-drone:hover svg,
.hero-drone:focus-visible svg { transform: scale(1.1); }
.hero-drone:focus-visible { outline: none; }
.hero-drone:focus-visible .drone-body { outline: 2px solid #fff; outline-offset: 6px; border-radius: 12px; }
@keyframes drone-hover { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes drone-shadow { from { transform: scaleX(1); opacity: .9; } to { transform: scaleX(.8); opacity: .6; } }
@keyframes drone-prop-spin { to { transform: rotate(360deg); } }
@keyframes drone-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 640px) {
  .hero-drone svg { width: 112px; height: 72px; }
  .hero-drone .drone-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-drone svg, .hero-drone .prop-spin, .hero-drone .drone-shadow, .hero-drone .nav-light { animation: none; }
  .hero-drone .prop-disc { display: none; }
}


/* Back to top — just above the footer */
.back-to-top {
  text-align: center;
  padding: 1.15rem 1rem 1rem;
}

.back-to-top a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.back-to-top a:hover { color: var(--ink); }

/* Mobile hamburger — hidden on desktop so header stays unchanged */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover { background: rgba(28, 25, 21, 0.06); }

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  #primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 11;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0.4rem 1.25rem 0.85rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  #primary-nav.is-open { display: flex; }

  #primary-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  #primary-nav a:last-child { border-bottom: 0; }

  #primary-nav a[aria-current="page"] { color: var(--ink); }
}
