/* ==========================================================================
   VELUNE — style.css
   Mobile-first. Desktop measurements follow the 1440px design.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #FEFCF6;
  --ink: #2A2A2A;
  --muted: #5D5E5E;
  --line: rgba(42, 42, 42, 0.42);
  --pill: #ECEAE3;
  --night: #1B1815;
  --cream: #FEFCF6;
  --cream-muted: rgba(254, 252, 246, 0.62);
  --amber: #F1CD8E;

  --serif: "Nanum Myeongjo", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 1.39vw, 20px);
  --nav-h: 64px;

  --fs-display: clamp(46px, 6.6vw, 95px);
  --fs-h2: clamp(30px, 3.6vw, 52px);
  --fs-label: clamp(12px, 1.1vw, 16px);
  --fs-body: clamp(14px, 1.02vw, 15px);
  --fs-small: 13px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 900px) {
  :root { --nav-h: 80px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
html.has-smooth { scroll-behavior: auto; } /* JS smooth scroll takes over */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: var(--cream);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Type helpers ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.015em;
}

.label {
  font-family: var(--serif);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Underline link */
.link {
  position: relative;
  display: inline-block;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Line-mask headings */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.line > span { display: block; }

/* Image zoom layer (reveal + hover scale live here; parallax lives on the img) */
.zoom {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 1.8s var(--ease-out);
}
/* 16% taller than the frame so parallax never shows an edge.
   -6.9% of its own height re-centres it (8 / 116). */
.zoom img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translate3d(0, -6.9%, 0);
  will-change: transform;
}

/* ---------- 4. Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.7s var(--ease-io);
  will-change: transform;
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}
.nav__mark {
  width: 34px;
  height: auto;
  color: var(--ink);
}
.nav__word {
  display: block;
  width: 104px;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-24px);
  opacity: 0;
  transition:
    clip-path 1.1s var(--ease-io),
    transform 1.1s var(--ease-io),
    opacity 0.8s ease;
}
.nav__word svg { width: 100%; height: auto; }
.nav__brand:hover .nav__word,
.nav__brand:focus-visible .nav__word {
  clip-path: inset(0 0 0 0);
  transform: none;
  opacity: 1;
}

.nav__links { display: none; }

.nav__end {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a,
.nav__end .link,
.nav__toggle {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 900px) {
  .nav {
    grid-template-columns: 1fr 1fr auto;
  }
  .nav__mark { width: 42px; }
  .nav__word { width: 120px; }
  .nav__links {
    display: flex;
    gap: clamp(24px, 2.4vw, 34px);
    padding-left: 2vw;
  }
  .nav__toggle { display: none; }
}

/* Mobile menu: half-height panel over a dark blurred overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(27, 24, 21, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition:
    background-color 0.7s var(--ease-soft),
    backdrop-filter 0.7s var(--ease-soft),
    -webkit-backdrop-filter 0.7s var(--ease-soft);
}
.menu.is-open {
  background: rgba(27, 24, 21, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.menu nav {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 50vh;
  height: 50svh;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-io);
}
.menu.is-open nav { clip-path: inset(0 0 0 0); }

.menu a {
  font-family: var(--serif);
  font-size: clamp(30px, 8.5vw, 48px);
  line-height: 1.1;
}

/* ---------- 5. Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 28px) var(--gutter) 0;
}
.hero__word {
  overflow: visible;
  color: var(--ink);
}
.hero__word svg { width: 100%; height: auto; overflow: visible; }

.hero__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 16px;
}
.hero__lamp {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: min(68%, 360px);
  margin-top: calc((100vw - 2 * var(--gutter)) * -0.07);
  position: relative;
  z-index: 2;
  will-change: transform;
}
.hero__lamp img { width: 100%; height: auto; }

.hero__left {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.hero__year {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 30px);
  order: 2;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero__arrival {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 10px 16px;
  align-items: end;
}
.hero__arrival .label { grid-column: 1 / -1; }
.hero__arrival-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 250 / 298;
}
.hero__arrival-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.hero__arrival-media:hover img { transform: scale(1.06); }
.hero__arrival-text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 45px); }
  .hero__body {
    /* 505 / 390 / 205 / 300 of a 1400 content width */
    grid-template-columns: 505fr 390fr 205fr 300fr;
    gap: 0;
  }
  .hero__lamp {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin-top: calc((100vw - 2 * var(--gutter)) * -0.0636);
  }
  .hero__left {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 10.2vw;
  }
  .hero__year { order: 0; }
  .hero__tagline { margin-top: auto; }

  .hero__arrival {
    grid-column: 4;
    grid-row: 1;
    display: block;
    padding-top: 7.4vw;
  }
  .hero__arrival .label { margin-bottom: 6px; }
  .hero__arrival-media { width: 83.4%; }
  .hero__arrival-text { margin-top: clamp(20px, 3.2vw, 46px); max-width: 300px; }
}

/* Hero: side content fits the first screen on desktop (the lamp keeps its size) */
@media (min-width: 900px) {
  .hero {
    /* space left below the wordmark on the first screen */
    --first-screen: calc(
      100vh - var(--nav-h) - 45px
      - (100vw - 2 * var(--gutter)) * 0.1543
      - clamp(20px, 3vh, 36px)
    );
  }

  /* Both side columns are exactly one screen tall */
  .hero__left,
  .hero__arrival {
    align-self: start;
    height: var(--first-screen);
    min-height: 280px;
  }

  /* Left: © 2026 at the top, tagline at the bottom, against the left gutter */
  .hero__left { padding-top: min(10.2vw, 14vh); }

  /* Right: New Arrival group against the right gutter, sitting on the bottom */
  .hero__arrival {
    justify-self: end;
    width: clamp(260px, min(20.8vw, calc(300px + (100vw - 1440px) * 0.1)), 380px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: min(7.4vw, 10vh);
  }
  .hero__arrival-media {
    flex: 0 1 auto;
    min-height: 0;
    width: 83.4%;
    max-width: none;
    height: auto;
    max-height: none;
  }
  .hero__arrival-text {
    max-width: none;
    margin-top: 12px;
    padding-top: 0;
  }
}

/* ---------- 6. Manifesto ---------- */
.manifesto {
  padding: clamp(96px, 16.3vw, 235px) var(--gutter) clamp(80px, 13.8vw, 200px);
}
.manifesto__label { text-align: center; }
.manifesto__title { margin-top: clamp(40px, 5.9vw, 85px); }

.manifesto__grid {
  display: grid;
  gap: 32px;
  margin-top: clamp(28px, 3vw, 44px);
}
.manifesto__media {
  aspect-ratio: 700 / 450;
  overflow: hidden;
}
.manifesto__text {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
}
.manifesto__text p + p { margin-top: 1.4em; }

@media (min-width: 900px) {
  .manifesto__grid {
    grid-template-columns: 700fr 220fr 480fr;
    gap: 0;
  }
  .manifesto__media { grid-column: 1; }
  .manifesto__text {
    grid-column: 3;
    justify-self: end;
    max-width: clamp(480px, calc(480px + (100vw - 1440px) * 0.12), 580px);
  }
}

.rule {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- 7. Collection ---------- */
.collection {
  padding: clamp(80px, 10.4vw, 150px) var(--gutter) clamp(140px, 12vw, 180px);
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color 1.4s var(--ease-soft), color 1.4s var(--ease-soft);
}
.collection__title { text-align: center; }

.collection__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: clamp(48px, 9.7vw, 140px);
}
.product--b, .product--c { width: 78%; }
.product--c { justify-self: end; }

.product__link { display: block; }
.product__media {
  position: relative;
  aspect-ratio: 6 / 7;
  overflow: hidden;
}

/* Simulated night: darkness + warm glow layers */
.product__media::before,
.product__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}
.product__media::before {
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(30, 20, 10, 0) 0%,
    rgba(24, 17, 10, 0.55) 30%,
    rgba(12, 9, 6, 0.88) 72%
  );
}
.product__media::after {
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 222, 160, 0.95) 0%,
    rgba(255, 176, 92, 0.45) 14%,
    rgba(255, 150, 60, 0) 42%
  );
  mix-blend-mode: screen;
}
.product__media img {
  transition: filter 1.4s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}
.zoom img.product__night {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}

.product__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin-top: 14px;
}
.product__name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 17px);
  position: relative;
  width: max-content;
}
.product__name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s var(--ease-out);
}
.product__price {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
}
.product__material {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 1.4s var(--ease-soft);
}

/* Slow, soft hover */
.product__link .zoom { transition: transform 1.8s var(--ease-out); }
.product__link:hover .zoom,
.product__link:focus-visible .zoom { transform: scale(1.05); }
.product__link:hover .product__name::after,
.product__link:focus-visible .product__name::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Lit state */
.collection.is-lit {
  background-color: var(--night);
  color: var(--cream);
}
.collection.is-lit .product__material { color: var(--cream-muted); }
.collection.is-lit .product__media::before,
.collection.is-lit .product__media::after { opacity: 1; }
.collection.is-lit .product__media img { filter: saturate(0.85) sepia(0.12) brightness(0.82); }
.collection.is-lit .product__media.has-night::before,
.collection.is-lit .product__media.has-night::after { opacity: 0; }
.collection.is-lit .product__media.has-night img { filter: none; }
.collection.is-lit .product__media.has-night img.product__night { opacity: 1; }

@media (min-width: 700px) {
  .collection__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 13.9vw, 200px);
    row-gap: 0;
    align-items: start;
  }
  .product--a { grid-column: 1; grid-row: 1; }
  .product--b { grid-column: 2; grid-row: 1; width: 75%; }
  .product--c { grid-column: 1; grid-row: 2; width: 75%; justify-self: end; margin-top: 11.7vw; }
  .product--d { grid-column: 2; grid-row: 2; margin-top: 1.2vw; }
}

/* ---------- 8. Light switch (fixed, curtain in/out) ---------- */
.switch {
  position: fixed;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
  transition: clip-path 1.3s var(--ease-io);
}
.switch.is-visible {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.switch__btn {
  display: flex;
  height: 52px;
}
.switch__label {
  display: grid;
  place-items: center;
  min-width: 132px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(14px, 1.25vw, 18px);
  text-transform: uppercase;
  transition: background-color 0.6s ease;
}
.switch__track {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-right: 0;
}
.switch__track::before {
  content: "";
  width: 48px;
  height: 22px;
  border-radius: 11px;
  background: var(--pill);
  transition: background-color 0.9s var(--ease-soft);
}
.switch__knob {
  position: absolute;
  top: 50%;
  left: calc(50% - 20px);
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.9s var(--ease-io), box-shadow 0.9s ease;
}
.switch__btn:hover .switch__label { background: #3a3835; }
.switch__btn[aria-pressed="true"] .switch__track::before { background: var(--amber); }
.switch__btn[aria-pressed="true"] .switch__knob {
  transform: translateX(26px);
  box-shadow: 0 0 12px 3px rgba(241, 205, 142, 0.9);
}
.switch__btn:focus-visible { outline-offset: -4px; outline-color: var(--cream); }

@media (min-width: 900px) {
  .switch__btn { height: 60px; }
  .switch__label { min-width: 160px; }
  .switch__track { width: 90px; }

  /* Wiggle the label text every 2s to draw attention */
  @keyframes switch-wiggle {
    0%, 30%, 100% { transform: rotate(0deg); }
    5%  { transform: rotate(-6deg); }
    10% { transform: rotate(5deg); }
    15% { transform: rotate(-4deg); }
    20% { transform: rotate(2deg); }
    25% { transform: rotate(-1deg); }
  }
  .switch__text {
    display: inline-block;
    animation: switch-wiggle 2s var(--ease-soft) infinite;
  }
  /* Pause while hidden, on hover, and once the lamps are on */
  .switch:not(.is-visible) .switch__text,
  .switch__btn:hover .switch__text { animation-play-state: paused; }
  .switch__btn[aria-pressed="true"] .switch__text { animation: none; }
}

/* ---------- 9. Seal — 4-stage pinned scroll ---------- */
.seal {
  position: relative;
  height: 420vh;
}
.seal__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.seal__stage {
  --d: min(78vw, 60vh);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
}
.seal__ring {
  position: relative;
  width: var(--d);
  aspect-ratio: 1;
}
.seal__circle {
  position: absolute;
  inset: 0;
  opacity: calc(var(--co, 0) * var(--lo, 1));
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(var(--rot, -120deg));
}
.seal__circle circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: var(--sw, 0.17);
  stroke-dasharray: 1;
  stroke-dashoffset: var(--draw, 1);
}
.seal__line {
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--ink);
  opacity: calc(0.75 * var(--lo, 1));
}
.seal__line--l {
  left: 0;
  right: calc(50% + var(--d) / 2);
  transform-origin: right center;
  transform: scaleX(var(--ln, 0));
}
.seal__line--r {
  left: calc(50% + var(--d) / 2);
  right: 0;
  transform-origin: left center;
  transform: scaleX(var(--ln, 0));
}
.seal__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: auto;
  color: var(--ink);
  opacity: var(--mo, 0);
  transform: translate(-50%, -50%) scale(var(--ms, 0.96));
}

@media (min-width: 900px) {
  .seal__stage { --d: min(41.7vw, 66vh); }
}

/* ---------- 10. The making ---------- */
.making {
  display: grid;
  gap: 48px;
  padding: clamp(40px, 6vw, 100px) var(--gutter) clamp(100px, 13vw, 190px);
}
.making__intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.making__text {
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.principle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1;
  padding: clamp(16px, 2.8vw, 40px) clamp(14px, 2vw, 28px) clamp(18px, 3.4vw, 50px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  outline-offset: -6px;
}
.principle::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease-io);
}
.principle__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 1s var(--ease-out);
}
.principle__text {
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.55;
  max-width: 280px;
  transition: color 0.8s var(--ease-soft);
}

.principle:hover::before,
.principle:focus-visible::before,
.principle.is-active::before { transform: scaleY(1); transform-origin: top; }
.principle:hover .principle__title,
.principle:focus-visible .principle__title,
.principle.is-active .principle__title {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}
.principle:hover .principle__text,
.principle:focus-visible .principle__text,
.principle.is-active .principle__text { color: var(--cream); }

@media (min-width: 900px) {
  .making {
    grid-template-columns: 600fr 100fr 700fr;
    gap: 0;
  }
  .making__intro { grid-column: 1; gap: 0; }
  .making__text { margin-top: clamp(60px, 9.8vw, 140px); }
  .making__title { margin-top: auto; }
  .principles { grid-column: 3; }
}

/* Mobile & tablet: titles always visible */
@media (max-width: 899px) {
  .principle__title {
    opacity: 1;
    transform: none;
    color: var(--ink);
    transition: color 0.8s var(--ease-soft);
  }
  .principle:hover .principle__title,
  .principle:focus-visible .principle__title,
  .principle.is-active .principle__title {
    color: var(--cream);
    transition-delay: 0s;
  }
}

/* ---------- 11. In situ — 2-stage pinned grid ---------- */
.situ {
  position: relative;
  height: 320vh;
}
.situ__pin {
  --cols: 2;
  --rows: 4;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.situ__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--is, 1.12));
  will-change: transform;
}
.situ__covers,
.situ__content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
}
.situ__cover {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--bg); /* hides sub-pixel seams between tiles */
  will-change: clip-path;
}
.situ__content { pointer-events: none; }
.situ__text {
  grid-column: 1 / -1;
  grid-row: 2 / span 2;
  align-self: center;
  padding: 0 var(--gutter);
  will-change: transform, opacity;
}
.situ__text p {
  max-width: 600px;
  margin-top: 22px;
  color: var(--ink);
}
.situ__label {
  grid-column: -2 / -1;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  padding: 0 var(--gutter) 16px;
  will-change: transform, opacity;
}

.situ__pin picture { display: contents; }

@media (min-width: 900px) {
  .situ__pin { --cols: 4; --rows: 3; }
  .situ__text { grid-column: 1 / 3; grid-row: 2; padding-top: 1.4vw; align-self: start; }
  .situ__label { grid-row: 2; align-self: center; padding-bottom: 0; }
}

/* ---------- 12. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(56px, 4.1vw, 60px) var(--gutter) clamp(32px, 3vw, 44px);
}
.footer .label { color: var(--cream); }
.footer__top {
  display: grid;
  gap: 40px;
}
.footer__title {
  margin-top: clamp(18px, 2.4vw, 34px);
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.04;
}
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.footer__details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  font-size: var(--fs-small);
  color: var(--cream-muted);
}
.footer__detail {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  height: max-content;
}
@media (min-width: 560px) {
  .footer__detail + .footer__detail {
    padding-left: 24px;
    border-left: 1px solid rgba(254, 252, 246, 0.22);
  }
}
.icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.icon--lg { width: 26px; height: 26px; }

.footer__bottom {
  display: grid;
  gap: 40px;
  margin-top: clamp(48px, 4.9vw, 70px);
  padding-top: clamp(40px, 3.5vw, 50px);
  border-top: 1px solid rgba(254, 252, 246, 0.22);
}
.footer__copy {
  order: 2;
  font-size: var(--fs-small);
  color: var(--cream-muted);
  align-self: end;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 20px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer__col .label { margin-bottom: 12px; }
.footer__col .link {
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(254, 252, 246, 0.4);
  border-radius: 50%;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out), border-color 0.6s;
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.socials svg .fill { fill: currentColor; stroke: none; }
.socials a:hover,
.socials a:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

@media (min-width: 900px) {
  .footer__top,
  .footer__bottom { grid-template-columns: 750fr 650fr; gap: 0; }
  .footer__contact { padding-top: 6px; }
  .footer__copy { order: 0; }
  .footer__cols { grid-template-columns: 200fr 215fr 235fr; gap: 0; }
  .socials a { width: 50px; height: 50px; }
}

/* ==========================================================================
   13. Motion states (only when JS is running)
   ========================================================================== */

/* Hero intro */
.js .hero__lamp img {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 1.6s ease, transform 2s var(--ease-out);
  transition-delay: 0.15s;
}
.js [data-intro] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s ease, transform 1.4s var(--ease-out);
}
.js .hero__word {
  opacity: 0;
  filter: blur(24px);
  transform: scale(1.15);
  transition:
    opacity 1.8s ease,
    filter 2.4s var(--ease-out),
    transform 2.8s var(--ease-out);
  transition-delay: 1.6s;
  will-change: opacity, filter, transform;
}
.js.is-loaded .hero__word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.js.is-loaded .hero__lamp img { opacity: 1; transform: none; }
.js.is-loaded [data-intro] { opacity: 1; transform: none; }
.js.is-loaded [data-intro]:nth-child(1) { transition-delay: 1.1s; }
.js.is-loaded .hero__tagline { transition-delay: 1.25s; }
.js.is-loaded .hero__arrival { transition-delay: 1.4s; }

/* Scroll reveals */
.js [data-reveal="fade"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.3s ease, transform 1.5s var(--ease-out);
}
.js [data-reveal="lines"] .line > span {
  transform: translateY(110%);
  transition: transform 1.4s var(--ease-io);
}
.js [data-reveal="lines"] .line:nth-child(2) > span { transition-delay: 0.1s; }
.js [data-reveal="lines"] .line:nth-child(3) > span { transition-delay: 0.2s; }
.js [data-reveal="lines"] .line:nth-child(4) > span { transition-delay: 0.3s; }

/* Manifesto image: crop reveal from the top-left corner */
.js [data-reveal="clip-tl"] {
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 2.2s var(--ease-io);
}
.js [data-reveal="clip-tl"] .zoom {
  transform: scale(1.3);
  transform-origin: 0 0;
  transition: transform 2.6s var(--ease-io);
}

/* Product cards: slow rise from the bottom */
.js [data-reveal="card"] .product__media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.9s var(--ease-io);
}
.js [data-reveal="card"] .zoom { transform: scale(1.25); transition: transform 2.4s var(--ease-io); }
.js [data-reveal="card"] .product__meta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s ease 0.6s, transform 1.4s var(--ease-out) 0.6s;
}

.js .is-in[data-reveal="fade"] { opacity: 1; transform: none; }
.js .is-in[data-reveal="lines"] .line > span { transform: none; }
.js .is-in[data-reveal="clip-tl"] {
  clip-path: inset(0 calc(var(--exit, 0) * 100%) calc(var(--exit, 0) * 100%) 0);
}
.js .is-done[data-reveal="clip-tl"] { transition: none; }
.js .is-in[data-reveal="clip-tl"] .zoom { transform: none; }
.js .is-in[data-reveal="card"] .product__media { clip-path: inset(0 0 0 0); }
.js .is-in[data-reveal="card"] .zoom { transform: none; }
.js .is-in[data-reveal="card"] .product__meta { opacity: 1; transform: none; }
/* Restore the slower hover easing once revealed */
.js .is-in[data-reveal="card"] .product__link:hover .zoom,
.js .is-in[data-reveal="card"] .product__link:focus-visible .zoom { transform: scale(1.05); transition-duration: 1.8s; transition-timing-function: var(--ease-out); }

/* ==========================================================================
   14. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .seal { height: auto; }
  .seal__pin { position: relative; height: 80vh; }
  .seal__stage { --draw: 0; --ln: 1; --mo: 1; --co: 1; --rot: 0deg; }
  .situ { height: auto; }
  .situ__pin { position: relative; }
  .situ__covers { display: none; }
  .situ__text {
    background: var(--bg);
    padding: 24px var(--gutter);
  }
  .situ__label { background: var(--bg); padding: 8px var(--gutter); }
}

/* Mobile: "Visit us on" spans the full width, icons on one row */
@media (max-width: 899px) {
  .footer__col:last-child { grid-column: 1 / -1; }
  .socials { flex-wrap: nowrap; }
}