/* Distance by O — responsive (mobile-first enhancements) */

/* 375px */
@media (min-width: 375px) {
  .hero__panel {
    padding-inline: 1.25rem;
  }
}

/* 390px */
@media (min-width: 390px) {
  .section {
    padding-inline: 1.25rem;
  }
}

/* 430px */
@media (min-width: 430px) {
}

/* Tablet — match Figma md: breakpoint for hero type + layout */
@media (min-width: 768px) {
  :root {
    --header-height: 3.65rem;
  }

  .section {
    padding: var(--space-3xl) var(--space-xl);
  }

  .site-header__inner {
    padding-inline: var(--space-xl);
  }

  .site-header__actions {
    gap: var(--space-md);
  }

  .privacy-content {
    padding-inline: var(--space-xl);
  }

  .privacy-content__layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
  }

  .privacy-content__figure {
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .privacy-hero {
    min-height: clamp(14rem, 28vw, 18rem);
    margin-inline: var(--space-xl);
  }

  .privacy-hero__inner {
    width: min(100% - 3rem, var(--max-width));
  }

  .about-hero__caption {
    left: var(--space-xl);
  }

  .about-split {
    flex-direction: row;
    align-items: stretch;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 0;
  }

  .about-split + .about-split {
    border-top: clamp(0.85rem, 2.2vw, 1.5rem) solid var(--color-black);
  }

  .about-split--media-left .about-split__media {
    flex: 0 0 48%;
    width: 48%;
    aspect-ratio: auto;
    min-height: 32rem;
  }

  .about-hero + .about-split .about-split__media,
  .about-split + .about-split .about-split__media {
    margin-inline: 0;
    width: 48%;
    border-radius: clamp(1rem, 1.6vw, 1.5rem);
  }

  .about-split--media-left .about-split__copy {
    flex: 1;
    padding: 3.5rem clamp(2.25rem, 5vw, 4rem);
  }

  .about-split--copy-left {
    align-items: center;
  }

  .about-split--copy-left .about-split__copy {
    flex: 0 0 46%;
    width: 46%;
    padding: 3.5rem clamp(2.25rem, 5vw, 4rem);
    order: -1;
  }

  .about-split--copy-left .about-split__gallery {
    flex: 1;
    padding: 2.5rem var(--space-xl) 2.5rem 0;
    gap: 0.75rem;
  }

  .about-split--copy-left .about-split__media {
    flex: 0 0 48%;
    width: 48%;
    aspect-ratio: auto;
    min-height: 32rem;
  }

  .about-grid,
  .about-close {
    padding-inline: var(--space-xl);
  }

  .about-close {
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
  }

  .about-close__title {
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  }

  .about-grid__mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .about-grid__item {
    aspect-ratio: 3 / 4;
  }

  /* Hero: Figma md:grid 42/58 + exact display type */
  .hero {
    flex-direction: row;
    min-height: 100svh;
    height: 100svh;
  }

  .hero__panel {
    order: -1;
    flex: 0 0 42%;
    width: 42%;
    height: auto;
    align-self: stretch;
    justify-content: center;
    padding: 3.5rem 3rem 3rem;
    gap: 0;
  }

  .hero__panel-main {
    gap: 2rem;
  }

  .hero__media {
    flex: 0 0 58%;
    width: 58%;
    height: auto;
    max-height: none;
    min-height: 0;
    align-self: stretch;
  }

  .hero__media img {
    object-position: center center;
    transform: scale(1);
    transform-origin: center center;
  }

  .hero__media:hover img {
    transform: scale(1.03);
  }

  .hero__title {
    font-size: clamp(2.25rem, 14cqi, 5.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 96, "wght" 400;
  }

  .house-hero__title {
    font-size: clamp(2.5rem, 4.5vw, 3.85rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 96, "wght" 400;
  }

  .hero__statement {
    font-size: clamp(0.875rem, 1.05vw, 0.975rem);
    max-width: 26rem;
  }

  .house__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  /* Tablet: big picture beside consult copy — balanced, not skyscraper-stretched */
  .consult__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
  }

  .consult__figure {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    align-self: center;
  }

  .consult__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .consult__content {
    min-width: 0;
  }

  .consult__item {
    gap: var(--space-sm);
    padding: var(--space-md) 0;
  }

  .consult__list {
    margin-top: var(--space-lg);
  }

  .house-hero {
    flex-direction: row;
    min-height: calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
  }

  .house-hero__panel {
    flex: 0 0 32%;
    width: 32%;
    min-height: 100%;
    padding: 3rem 1.75rem;
  }

  .house-hero__media {
    flex: 0 0 68%;
    width: 68%;
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }

  .house-hero__media img {
    min-height: 100%;
    height: 100%;
  }

  .house-spaces {
    padding-inline: var(--space-xl);
  }

  .house-hours {
    padding-inline: var(--space-xl);
  }

  .coming-soon {
    padding-inline: var(--space-xl);
  }

  .coming-soon__actions {
    flex-direction: row;
    justify-content: center;
  }

  .statement__meta {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .voices__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
  }

  .voice--offset {
    margin-top: var(--space-2xl);
  }

  .section-header--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    height: 34rem;
    min-height: 34rem;
    max-height: 34rem;
    width: 100%;
    overflow: hidden;
  }

  .newsletter__form {
    position: relative;
    z-index: 3;
  }

  .newsletter__content {
    padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3.5vw, 2.5rem);
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
  }

  .newsletter .display-heading {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
  }

  .newsletter__media {
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .newsletter__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }

  .house-visit {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 32rem;
  }

  .house-visit__content {
    padding: var(--space-xl) var(--space-xl);
  }

  .house-visit__map,
  .house-visit__map iframe {
    min-height: 100%;
    height: 100%;
  }

  .newsletter__form {
    max-width: 28rem;
  }

  .newsletter__form-row {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-md);
  }

  .newsletter__form input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
  }

  .newsletter__form .btn {
    align-self: flex-end;
  }

  .house-space {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .house-space--reverse .house-space__media {
    order: 2;
  }

  .house-space--reverse .house-space__body {
    order: 1;
  }

  .site-footer__inner {
    padding-inline: 0;
  }

  .site-footer {
    padding-inline: var(--space-xl);
  }
}

/* Laptop / desktop split layouts */
@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
  }

  .site-nav__list a {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-ink);
    transition: opacity var(--transition-fast);
  }

  .site-nav__list a:hover {
    opacity: 0.45;
  }

  .nav-burger {
    display: none;
  }

  .nav-fullscreen {
    display: none !important;
  }

  /* Keep Figma hero type exact; only refine image crop at laptop+ */
  .hero__panel {
    justify-content: center;
    padding: 3.5rem 3rem 3rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 13.5cqi, 5.75rem);
    line-height: 1;
    letter-spacing: -0.02em;
    font-style: italic;
    font-variation-settings: "opsz" 96, "wght" 400;
  }

  .house-hero__title {
    font-size: clamp(2.75rem, 4.25vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-style: italic;
    font-variation-settings: "opsz" 96, "wght" 400;
  }

  .hero__media img {
    object-position: center center;
    transform: scale(1);
    transform-origin: center center;
  }

  .hero__media:hover img {
    transform: scale(1.03);
  }

  .events__layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }

  .house__grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(2.5rem, 6vw, 6rem);
  }

  .house__figure {
    max-width: 32rem;
  }

  .consult__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  .consult__figure {
    max-width: none;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 42rem;
    aspect-ratio: 3 / 4;
    align-self: center;
  }

  .consult__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .newsletter {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    height: 38rem;
    min-height: 38rem;
    max-height: 38rem;
  }

  .newsletter__content {
    padding: 1.75rem clamp(2rem, 4vw, 3.5rem);
  }

  .section {
    padding-inline: clamp(2rem, 5vw, 4.5rem);
  }

  .site-header__inner {
    padding-inline: clamp(2rem, 5vw, 4.5rem);
  }

  .site-footer {
    padding-inline: clamp(2rem, 5vw, 4.5rem);
  }

  .site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
  }

  .site-logo--footer {
    margin-inline: auto;
  }

  .site-footer__social {
    justify-content: center;
    margin-inline: auto;
  }

  .site-footer__nav {
    width: 100%;
    min-width: 0;
  }

  .site-footer__nav ul {
    justify-content: center;
    max-width: 100%;
  }

  .site-footer__copy {
    text-align: center;
    width: 100%;
  }

  .events__layout {
    gap: var(--space-xl);
  }

  .event__title {
    font-size: 1.45rem;
  }

  .voice__quote {
    font-size: 1.1rem;
  }
}

/* Desktop */
@media (min-width: 1280px) {
  .hero__panel {
    padding: 3.5rem 3rem 3rem;
  }

  .voices__grid {
    gap: var(--space-xl);
  }

  .voice--offset {
    margin-top: 4.5rem;
  }

  .ask-us__inner {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: var(--space-3xl);
    max-width: var(--max-width);
    align-items: start;
  }

  .ask-us .section-header {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }

  .newsletter__content {
    padding: 2rem 3rem;
  }

  .house-visit__content {
    padding: 2.5rem 3.5rem;
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  .statement__quote {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  }

  .display-heading {
    font-size: 3.5rem;
  }

  .house__content .body-text,
  .consult__content .body-text {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .product-page {
    padding-inline: var(--space-xl);
  }

  .bag-page {
    padding-inline: var(--space-xl);
  }

  .bag-page__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.85fr);
    gap: var(--space-3xl) clamp(2rem, 5vw, 4rem);
  }

  .bag-page__aside {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }

  .bag-item {
    grid-template-columns: 9rem 1fr auto;
  }
}
