/* ─────────────────────────────────────────────────────────────────────────────
   STILLE — Responsive Breakpoints
   Tablet: ≤ 1024px  |  Mobile: ≤ 767px
   Desktop styles live in style.css (desktop-first baseline)
   ───────────────────────────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────────────────────────────
   TABLET  (≤ 1024px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {

  /* Tokens */
  :root {
    --nav-h:  72px;
    --gutter: 48px;
  }

  /* ── Navigation ── */
  .nav__link { display: none; }
  .nav__hamburger { display: flex; }

  /* ── Hero ── */
  .hero { height: 760px; }

  .hero__logo {
    width: 340px;
  }

  /* ── Introduction ── */
  .intro { height: 560px; }

  .intro__left {
    width: 360px;
    padding-left: 0;
    padding-right: 0;
  }

  .intro__headline {
    font-size: 64px;
    letter-spacing: -1.5px;
  }

  .intro__vert-rule { height: 320px; }

  .intro__right {
    width: 280px;
    padding: 80px 32px;
  }

  .intro__lead {
    font-size: 24px;
    width: auto;
  }

  .intro__body { width: auto; }

  /* ── Architecture ── */
  .arch__hero-bleed { height: 420px; }

  .arch__header-row { padding: 56px var(--gutter) 40px; }

  .arch__title {
    font-size: 36px;
    width: auto;
  }

  .arch__intro {
    font-size: 14px;
    width: 300px;
  }

  .arch__material {
    font-size: 18px;
    margin: 0 var(--gutter) 56px;
  }

  .arch__bottom-grid { height: 400px; }

  .arch__right-panel { padding: 48px; gap: 28px; }

  .arch__feat-title { width: auto; }

  /* ── The Homes ── */
  .homes { min-height: 680px; }

  .homes__left { padding: 56px var(--gutter); }

  .homes__title { font-size: 34px; }

  .homes__img-title {
    font-size: 36px;
    width: auto;
  }

  /* ── The Story ── */
  .story {
    min-height: 560px;
    height: auto;
    gap: 80px;
    padding: 80px var(--gutter);
  }

  .story__left { width: 300px; }

  .story__title {
    font-size: 30px;
    width: 300px;
  }

  .story__dev-name { font-size: 20px; }
  .story__dev-body { font-size: 14px; }

  .story__team-grid { gap: 20px; }

  /* ── Neighbourhood ── */
  .nbhd { height: 600px; }

  .nbhd__content { padding: 72px var(--gutter); }

  .nbhd__title { font-size: 30px; }

  .nbhd__body { font-size: 13px; }

  .nbhd__places { grid-template-columns: repeat(2, 1fr); }

  /* ── Register ── */
  .register { height: 760px; }

  .register__left { padding: 0 56px 0 var(--gutter); }

  .register__right { padding: 56px var(--gutter) 56px 40px; }

  .register__heading-line { font-size: 52px; }

  /* ── Footer ── */
  .footer { padding: 72px var(--gutter) 48px; }

}


/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE  (≤ 767px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {

  /* Tokens */
  :root {
    --nav-h:  64px;
    --gutter: 32px;
  }

  /* ── Navigation ── */
  .nav__inner { padding: 0 24px; }

  /* Mobile nav dropdown */
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--color-alabaster);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    box-shadow: 0 4px 16px rgba(26,26,24,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav--open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(26,26,24,0.06);
  }

  .nav__cta {
    margin: 16px 24px 0;
    justify-content: center;
  }

  /* ── Hero ── */
  .hero {
    height: 700px;
    min-height: 100svh;
  }

  .hero__logo { width: 240px; }

  .hero__bottom { gap: 14px; padding-bottom: 16px; }

  .hero__subtitle {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .hero__subtitle-dot { display: none; }

  /* ── Introduction ── */
  .intro {
    flex-direction: column;
    height: auto;
    padding: 64px 32px;
    gap: 40px;
    overflow: visible;
  }

  .intro__left {
    width: 100%;
    padding: 0;
    gap: 32px;
  }

  .intro__logo-bg { display: none; }

  .intro__headline {
    font-size: 52px;
    letter-spacing: -1px;
  }

  .intro__vert-rule { display: none; }

  .intro__right {
    width: 100%;
    padding: 0;
    gap: 20px;
  }

  .intro__pull-quote { display: none; }

  .intro__lead {
    font-size: 24px;
    width: 100%;
  }

  .intro__body { width: 100%; }

  /* ── Architecture ── */
  .arch__hero-bleed { height: 320px; }

  .arch__header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 48px 32px 32px;
  }

  .arch__title {
    font-size: 28px;
    width: 100%;
    white-space: normal;
  }

  .arch__intro {
    width: 100%;
    font-size: 14px;
  }

  .arch__material {
    font-size: 16px;
    margin: 0 32px 40px;
    padding-left: 24px;
  }

  .arch__bottom-grid {
    flex-direction: column;
    height: auto;
  }

  .arch__left-img {
    width: 100%;
    height: 280px;
  }

  .arch__right-panel {
    width: 100%;
    padding: 48px 32px 56px;
    gap: 28px;
  }

  .arch__feat-title {
    width: 100%;
    white-space: normal;
  }

  /* ── The Homes ── */
  .homes { height: auto; }

  .homes__body { flex-direction: column; }

  .homes__right {
    width: 100%;
    height: 320px;
    order: 1;
  }

  .homes__left {
    width: 100%;
    padding: 48px 32px 60px;
    order: 2;
  }

  .homes__img-title {
    font-size: 32px;
    width: 100%;
    white-space: normal;
  }

  .homes__img-caption { padding: 0 24px 32px; }

  /* ── The Story ── */
  .story {
    flex-direction: column;
    height: auto;
    padding: 64px 32px;
    gap: 40px;
    align-items: flex-start;
  }

  .story__left { width: 100%; }

  .story__title {
    font-size: 28px;
    width: 100%;
  }

  .story__dev-name { font-size: 20px; }
  .story__dev-body { font-size: 14px; }

  .story__right { width: 100%; padding-top: 0; }

  .story__team-grid {
    flex-direction: column;
    gap: 24px;
  }

  /* ── Neighbourhood ── */
  .nbhd {
    flex-direction: column;
    height: auto;
  }

  .nbhd__content {
    width: 100%;
    padding: 56px 32px 48px;
    gap: 24px;
  }

  .nbhd__title {
    font-size: 32px;
    white-space: normal;
  }

  .nbhd__body {
    font-size: 14px;
    white-space: normal;
  }

  .nbhd__places { grid-template-columns: 1fr; }

  .nbhd__map {
    width: 100%;
    height: 300px;
    flex: none;
  }

  .nbhd__map-inner { transform: none; }

  /* ── Register ── */
  .register { height: auto; }

  .register__overlay {
    background: linear-gradient(180deg, rgba(26,26,24,0.93) 0%, rgba(26,26,24,0.75) 100%);
  }

  .register__cols { flex-direction: column; }

  .register__left {
    width: 100%;
    padding: 60px 32px 48px;
  }

  .register__right {
    width: 100%;
    padding: 0 32px 56px;
    border-left: none;
    border-top: 1px solid rgba(245,240,232,0.08);
    justify-content: flex-start;
    padding-top: 40px;
  }

  .register__heading-line { font-size: 48px; }

  .register__row { flex-direction: column; }

  /* ── Footer ── */
  .footer { padding: 64px 32px 48px; gap: 48px; }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    flex-direction: column;
    gap: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__disclaimer { max-width: 100%; }

  .footer__copy { white-space: normal; }

}


/* ─────────────────────────────────────────────────────────────────────────────
   HAMBURGER — shared styles (hidden on desktop, revealed via breakpoints above)
   ───────────────────────────────────────────────────────────────────────────── */

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-onyx);
  transform-origin: center;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), width 0.2s var(--ease);
}

.nav__hamburger-line:last-child {
  width: 16px;
  align-self: flex-end;
}

/* Open state — animate to × */
.nav--open .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 22px;
}

.nav--open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav--open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 22px;
}
