/* ==========================================================
   Landing page (index.html): hero, about, collections, process, gallery, contact
   ========================================================== */

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.section--tint { background: var(--color-tint); }

/* Brown accent band: re-map the tokens so its content restyles itself */
.stats {
  --color-ink: #ffffff;
  --color-muted: #f1e3d3;
  --color-primary: #ffffff;
  background: var(--color-primary-dark); color: #fff;
}

.section > *:not(.section__head) { max-width: var(--max-width); margin-inline: auto; }

.section__head { max-width: var(--max-width); margin: 0 auto var(--space-4); }

.section__head h2 { max-width: 20ch; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-4); align-items: center;
  max-width: calc(var(--max-width) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  min-height: calc(100vh - var(--header-h));
}

.hero__title {
  font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.3rem); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: var(--space-3);
}

.hero__title em { color: var(--color-primary); font-style: italic; font-weight: 300; }

.hero__lead { font-size: var(--fs-lg); color: var(--color-muted); max-width: 44ch; margin-bottom: var(--space-4); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero__visual { position: relative; isolation: isolate; width: min(100%, 500px); justify-self: center; padding: 0 0 3rem 3rem; }

.hero__visual::before {            /* soft sand disc behind the arch */
  content: ""; position: absolute; z-index: -1; top: 8%; right: -12%; width: 84%; aspect-ratio: 1;
  border-radius: 50%; background: var(--color-tint);
  transform: translateY(var(--disc-shift, 0px));
}

.hero__arch { margin: 0; overflow: hidden; border-radius: 999px 999px 6px 6px; aspect-ratio: 3 / 3.8; box-shadow: var(--shadow); }

.hero__arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }

.hero__visual:hover .hero__arch img { transform: scale(1.1); }

.hero__inset {
  position: absolute; left: 0; bottom: 0; width: 42%; margin: 0; aspect-ratio: 4 / 5;
  border: 8px solid #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
}

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

/* ---------- Stats ---------- */
.stats { padding: var(--space-4) var(--gutter); }

.stats__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); max-width: var(--max-width); margin: 0 auto; }

.stats__item { text-align: center; }

.stats dt { order: 2; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted); }

.stats dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-primary); }

.stats__item { display: flex; flex-direction: column; }

/* ---------- About ---------- */
.about__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; }

.about__media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }

.about__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; will-change: transform; }

.about__text p { color: var(--color-muted); font-size: var(--fs-lg); }

.ticks { margin-top: var(--space-3); display: grid; gap: 0.6rem; }

.ticks li { position: relative; padding-left: 1.8rem; }

.ticks li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 1rem; height: 1px; background: var(--color-primary); }

/* ---------- Collection cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); }

.card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}

.card__media { overflow: hidden; aspect-ratio: 4 / 5; }

.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

.card__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }

.card__body p { color: var(--color-muted); font-size: var(--fs-sm); flex: 1; }

.card__link {
  align-self: flex-start; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-primary-dark); border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: color 0.3s, letter-spacing 0.3s var(--ease);
}

.card:hover, .card:focus-visible, .card:focus-within { box-shadow: 0 28px 50px -24px rgba(60, 45, 25, 0.45); border-color: var(--color-primary); }

.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.08); }

.card:hover .card__link, .card:focus-within .card__link, .card__link:hover { letter-spacing: 0.22em; color: var(--color-ink); }

/* ---------- Materials ---------- */
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--color-line); }

.material .material__tag { color: var(--color-primary); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: var(--space-2) 0 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4) var(--space-3); counter-reset: none; }

.step article { height: 100%; }

.step figure { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; margin-bottom: var(--space-2); background: var(--color-line); }

.step img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: saturate(0.92); }

.step:hover img { transform: scale(1.05); filter: saturate(1.05); }

.step__no { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; color: var(--color-primary); line-height: 1; margin-bottom: 0.4rem; display: flex; align-items: baseline; gap: 0.8rem; }

.step__tag { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); border: 1px solid var(--color-line); padding: 0.2rem 0.6rem; border-radius: 99px; }

.step h3 { margin-bottom: 0.5rem; }

.step p:last-child { color: var(--color-muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }

.filter {
  cursor: pointer; background: transparent; color: var(--color-muted);
  border: 1px solid var(--color-line); border-radius: 99px; padding: 0.55rem 1.3rem;
  font: 500 0.78rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.3s var(--ease);
}

.filter:hover, .filter:focus-visible { border-color: var(--color-primary); color: var(--color-ink); }

.filter.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }

@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 440px) { .gallery { grid-template-columns: 1fr; } }

.gallery__item[hidden] { display: none; }

.gallery__item.filter-in { animation: filter-in 0.7s var(--ease) both; }

.gallery__item figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); }

.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem var(--space-2) var(--space-2);
  color: #fff; font-family: var(--font-display); font-size: 1rem;
  background: linear-gradient(transparent, rgba(25, 20, 12, 0.6));
  transform: translateY(100%); transition: transform 0.7s var(--ease);
}

.gallery__item:hover img, .gallery__item:focus-within img { transform: scale(1.06); }

.gallery__item:hover figcaption, .gallery__item:focus-within figcaption { transform: translateY(0); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); align-items: start; }

.contact__info h3 { margin-bottom: var(--space-2); }

.contact__info p { color: var(--color-muted); }

.contact__info address a { text-decoration: none; color: var(--color-ink); border-bottom: 1px solid var(--color-line); transition: border-color 0.3s; }

.contact__info address a:hover, .contact__info address a:focus-visible { border-color: var(--color-primary); }

/* Image reveal: a curtain that lifts as the picture enters the viewport */
.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }

.reveal.is-visible { clip-path: inset(0 0 0 0); }

.hero__arch img { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .about__body, .contact__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__visual { width: min(100%, 440px); margin-inline: auto; }
    .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--color-bg); border-bottom: 1px solid var(--color-line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.4s var(--ease), visibility 0s 0.4s;
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.4s var(--ease); }
  .site-nav__list { flex-direction: column; gap: var(--space-1); width: 100%; }
  .site-nav__list a { display: block; padding: 0.7rem 0; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { clip-path: none; }
}
