/* Page level layouts. Mobile first where practical; every multi column section collapses to one column under 768px. */

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  padding-top: var(--header-h);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-8) 1.25rem var(--s-8);
}

.hero__title {
  font-size: clamp(2.75rem, 6.4vw, 6.5rem);
  line-height: 0.92;
  padding-bottom: 0.06em;
}

.hero__sub {
  font-size: 1.1875rem;
  max-width: 34ch;
}

.hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .hero__copy {
    padding: var(--s-8) var(--gap) var(--s-9) var(--gutter);
  }

  .hero__media {
    aspect-ratio: auto;
  }
}

/* ---------- Home: statement ---------- */
.statement {
  padding-block: var(--section-pad);
}

.statement__text {
  max-width: none;
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (min-width: 768px) {
  .statement__text {
    grid-column: 2 / span 10;
  }
}

/* ---------- Home: aperture (signature A) ---------- */
.aperture__stage {
  position: relative;
}

.aperture__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

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

.aperture__line {
  padding: var(--s-6) 1.25rem 0;
  font-size: var(--fs-h2);
}

@media (min-width: 768px) {
  .aperture__stage {
    height: 100dvh;
    overflow: hidden;
  }

  .aperture__frame {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .aperture__line {
    position: absolute;
    left: var(--gutter);
    bottom: var(--s-8);
    padding: var(--s-5) var(--s-6);
    background: var(--scrim);
    border: 1px solid var(--line-strong);
  }
}

/* ---------- Home: collections pan (signature B) ---------- */
.pan {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.pan::-webkit-scrollbar {
  display: none;
}

.pan__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding-inline: var(--gutter);
}

.pan__intro {
  flex: 0 0 min(80vw, 26rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-4);
  height: 70svh;
  padding-bottom: var(--s-5);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .pan__intro {
    height: 75svh;
  }
}

.pan.is-pinned {
  overflow: hidden;
  scroll-snap-type: none;
}

.pan.is-pinned .pan-panel,
.pan.is-pinned .pan__intro {
  height: 100dvh;
}

.pan.is-pinned .pan__intro {
  padding-bottom: var(--s-9);
}

/* ---------- Home: selected pieces ---------- */
.featured__head {
  margin-bottom: var(--s-8);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8) var(--gap);
  align-items: start;
}

.featured__cta {
  margin-top: var(--s-8);
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .featured-grid > :first-child {
    grid-row: span 2;
  }

  .featured-grid > :nth-child(3) {
    margin-top: 6rem;
  }
}

/* ---------- Home: made to order ---------- */
.mto__list {
  border-bottom: 1px solid var(--line-strong);
}

.mto__row {
  padding-block: var(--s-6);
  border-top: 1px solid var(--line-strong);
}

.mto__row dt {
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: var(--fs-h3);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mto__head {
  margin-bottom: var(--s-7);
}

@media (min-width: 768px) {
  .mto__head {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    align-self: start;
    margin-bottom: 0;
  }

  .mto__list {
    grid-column: 7 / span 6;
  }
}

/* ---------- Visit block (home, contact) ---------- */
.visit__numbers {
  display: grid;
}

.visit__number {
  display: block;
  padding-block: 0.12em;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 300;
  font-size: clamp(1.9rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}

.visit__number:first-child {
  border-top: 1px solid var(--line);
}

@media (hover: hover) {
  a.visit__number:hover {
    color: var(--text-2);
  }
}

.visit__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.visit__address {
  font-size: 1.1875rem;
  color: var(--text-2);
}

.map {
  margin-top: var(--s-7);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9);
}

@media (min-width: 768px) {
  .map {
    aspect-ratio: 21 / 9;
  }
}

/* ---------- Collection and category pages ---------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
}

.collection {
  padding-bottom: var(--section-pad);
}

.collection .tabs {
  margin-bottom: var(--s-8);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8) var(--gap);
}

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

@media (min-width: 1024px) {
  .grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cat-hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--bg);
}

.cat-hero__media {
  aspect-ratio: 16 / 9;
  min-height: 18rem;
  overflow: hidden;
  background: var(--surface);
}

.cat-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.cat-hero__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-inline: auto;
}

.cat-hero__block {
  display: inline-block;
  padding: var(--s-5) var(--s-6);
  background: var(--scrim);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
}

.cat-hero__block h1 {
  font-size: var(--fs-h2);
  line-height: 1;
}

.cat-intro {
  padding-block: var(--s-8);
}

.cat-intro p {
  max-width: 46ch;
}

.cat-intro + .container {
  padding-bottom: var(--section-pad);
}

.other-collections {
  padding-bottom: var(--section-pad);
}

.other-collections h2 {
  margin-bottom: var(--s-6);
}

.other-collections__list {
  border-bottom: 1px solid var(--line);
}

/* ---------- Product page ---------- */
.container.product {
  padding-top: calc(var(--header-h) + var(--s-6));
  padding-bottom: var(--section-pad);
}

.product__layout {
  margin-top: var(--s-6);
}

.product__gallery {
  display: grid;
  gap: var(--gap);
}

.product__main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

.product__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.product__pair > div {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}

.product__main img,
.product__pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__panel {
  margin-top: var(--s-7);
}

.product__panel > * + * {
  margin-top: var(--s-5);
}

.product__summary {
  font-size: 1.1875rem;
}

.product__price {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.product h1 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

@media (min-width: 768px) {
  .product__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }

  .product__gallery {
    grid-column: 1 / span 7;
  }

  .product__panel {
    grid-column: 9 / span 4;
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    margin-top: 0;
  }
}

.related {
  padding-bottom: var(--section-pad);
}

.related h2 {
  margin-bottom: var(--s-6);
}

.snap-row,
.related__row {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-4);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.snap-row > *,
.related__row > * {
  flex: 0 0 min(80vw, 22rem);
  scroll-snap-align: start;
}

/* ---------- Gallery ---------- */
.masonry {
  columns: 1;
  column-gap: var(--gap);
}

.masonry__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 var(--gap);
  padding: 0;
  border: 0;
  background: var(--surface);
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}

.masonry__item img {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease);
}

@media (hover: hover) {
  .masonry__item:hover img {
    transform: scale(1.03);
  }
}

@media (min-width: 640px) {
  .masonry {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry {
    columns: 3;
  }
}

/* ---------- About ---------- */
.longform__head {
  margin-bottom: var(--s-7);
}

.longform__body > * + * {
  margin-top: var(--s-6);
}

.longform__body p {
  max-width: 52ch;
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .longform__head {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    align-self: start;
    margin-bottom: 0;
  }

  .longform__body {
    grid-column: 7 / span 6;
  }
}

.zoom {
  position: relative;
  height: clamp(22rem, 80vh, 52rem);
  overflow: hidden;
  background: var(--surface);
}

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

.values__row {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line-strong);
}

.values__row:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.values__row h3 {
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 0.95;
}

.values__row p {
  font-size: 1.1875rem;
}

@media (min-width: 768px) {
  .values__row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
    align-items: end;
  }
}

/* ---------- Contact ---------- */
.contact__info > * + * {
  margin-top: var(--s-6);
}

.contact__hours {
  font-size: var(--fs-small);
  color: var(--muted);
}

.contact__form {
  margin-top: var(--s-8);
}

.contact__form .btn {
  margin-top: var(--s-6);
}

@media (min-width: 768px) {
  .contact__info {
    grid-column: 1 / span 7;
  }

  .contact__form {
    grid-column: 9 / span 4;
    margin-top: 0;
  }
}

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s-5);
  min-height: 100dvh;
  padding-top: var(--header-h);
}

.notfound h1 {
  font-size: clamp(7rem, 28vw, 24rem);
  line-height: 0.85;
}

.notfound p {
  font-size: 1.25rem;
}

.longform__head h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 0.95;
}

.contact__info .visit__number {
  font-size: clamp(1.9rem, 4.6vw, 4.5rem);
}

.contact__info h1 {
  margin-bottom: var(--s-7);
}

.visit__number + .visit__number {
  border-top: 0;
}

.contact__info .visit__address {
  display: block;
  margin-top: var(--s-6);
}
