/* ============================================================
   Signature Craft — stylesheet
   Palette: Ghost White #F8F8FF · Sand #C4A484 ·
            Chestnut #8B5E3C · Dark Gray #2D2D2D
   ============================================================ */

/* Brillant by suhadidesign — logo wordmark font (kept out of git) */
@font-face {
  font-family: "Brillant";
  src: url("../assets/brillant/brillant.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ghost: #f8f8ff;
  --cream: #f1eae3;      /* warm page background from brand profile */
  --cream-2: #e9ded4;    /* slightly deeper cream for alt sections */
  --sand: #c4a484;
  --sand-soft: #d8c3ac;
  --chestnut: #8b5e3c;
  --chestnut-deep: #6f4a2e;
  --bronze: #a9764a;
  --ink: #2d2d2d;
  --ink-soft: #5a544e;
  --line: rgba(45, 45, 45, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  /* the "Signature" wordmark only (nav, hero, footer) */
  --logo: "Brillant", "Cormorant Garamond", Georgia, serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin: 0 0 1.2rem;
}

.section__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  letter-spacing: 0.005em;
}

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section__intro { font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.btn--solid {
  background: var(--chestnut);
  color: var(--ghost);
  border-color: var(--chestnut);
}
.btn--solid:hover {
  background: var(--chestnut-deep);
  border-color: var(--chestnut-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(111, 74, 46, 0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(45, 45, 45, 0.28);
}
.btn--ghost:hover { border-color: var(--chestnut); color: var(--chestnut); }
.btn--sm { padding: 0.65rem 1.3rem; font-size: 0.72rem; }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              padding 0.4s var(--ease);
  padding-block: 1.4rem;
}
.nav.is-scrolled {
  background: rgba(241, 234, 227, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.75rem;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* brand lockup */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-bottom: 0.42em; /* Brillant's "g" drops ~0.7em below the baseline */
}
.brand__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-top: 0;
  margin-left: 2px;
}

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--chestnut);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--chestnut); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta {
  color: var(--ghost);
  background: var(--chestnut);
  border-color: var(--chestnut);
}
.nav__cta:hover {
  color: var(--ghost);
  background: var(--chestnut-deep);
  border-color: var(--chestnut-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(111, 74, 46, 0.6);
}

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: none;
  z-index: 70;
}
.nav__toggle span {
  display: block; height: 1.5px; width: 24px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, var(--cream) 0%, var(--cream-2) 60%, #ddccbd 100%);
}
.hero__mark {
  position: absolute;
  top: 50%; right: -8%;
  transform: translateY(-50%);
  width: min(60vw, 720px);
  opacity: 0.06;
  pointer-events: none;
}
.hero__mark img { width: 100%; }

.hero__inner { position: relative; z-index: 2; max-width: 760px; padding-block: 7rem; }
.hero__title { margin-bottom: 0.5rem; }
.hero__title-script {
  display: block;
  font-family: var(--logo);
  font-weight: 400;
  /* Brillant is ~6.6em wide for "Signature": 12.5vw keeps it inside the
     screen on phones, 7rem fits the 760px hero column on desktop */
  font-size: clamp(2.4rem, 12.5vw, 7rem);
  line-height: 1;
  color: var(--ink);
  padding-bottom: 0.45em; /* room for the deep "g" loop above CRAFT */
}
.hero__title-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.7rem, 0.5rem + 1vw, 1.05rem);
  letter-spacing: 0.7em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-left: 0.4em;
  margin-top: 0;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  color: var(--chestnut);
  margin: 1.6rem 0 1rem;
}
.hero__lead { max-width: 500px; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-line {
  display: block;
  width: 3px; height: 70px;
  border-radius: 3px;
  background: linear-gradient(var(--chestnut), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--ink);
  animation: scrollpulse 2.2s var(--ease) infinite;
}
@keyframes scrollpulse {
  0% { top: -50%; } 100% { top: 100%; }
}

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--cream); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.story__visual { position: relative; }
.story__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--sand) 0%, var(--chestnut) 100%);
  box-shadow: 0 40px 70px -40px rgba(111, 74, 46, 0.7);
}
.story__watermark { width: 55%; opacity: 0.18; filter: brightness(0) invert(1); }
.ph-label {
  position: absolute;
  bottom: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.story__badge {
  position: absolute;
  right: -1.2rem; bottom: -1.2rem;
  background: var(--ghost);
  border-radius: 50%;
  width: 130px; height: 130px;
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 20px 40px -18px rgba(45, 45, 45, 0.4);
}
.story__badge-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--chestnut);
  line-height: 1;
}
.story__badge-txt {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.story__body .section__title { margin-bottom: 1.4rem; }
.values {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.value { display: flex; flex-direction: column; }
.value__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.value__txt { font-size: 0.92rem; color: var(--ink-soft); }
@media (min-width: 620px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--cream-2); }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.6rem 1.3rem;
  transition: all 0.35s var(--ease);
}
.filter:hover { border-color: var(--chestnut); color: var(--chestnut); }
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ghost);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ghost);
  box-shadow: 0 20px 45px -30px rgba(45, 45, 45, 0.5);
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.card.is-in { opacity: 1; transform: none; }
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(45, 45, 45, 0.55); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.card__ph img { width: 42%; opacity: 0.5; filter: brightness(0) invert(1); }
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(45, 45, 45, 0.45));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }
.card__view {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translate(-50%, 12px);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: all 0.5s var(--ease);
}
.card:hover .card__view { opacity: 1; transform: translate(-50%, 0); }
.card__variants {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(45, 45, 45, 0.55);
  backdrop-filter: blur(2px);
  border-radius: 50px;
  padding: 0.3rem 0.65rem;
}

.card__body {
  padding: 1.1rem 1.3rem 1.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.card__name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.card__cat {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-top: 0.35rem;
}
.card__price { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; padding-top: 0.3rem; }

.gallery__note { text-align: center; margin-top: 3rem; font-size: 0.95rem; }
.gallery__note a { color: var(--chestnut); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* placeholder tone variants */
[data-tone="chestnut"] { background: linear-gradient(145deg, var(--sand), var(--chestnut)); }
[data-tone="sand"]     { background: linear-gradient(145deg, var(--sand-soft), var(--sand)); }
[data-tone="deep"]     { background: linear-gradient(145deg, var(--chestnut), var(--chestnut-deep)); }
[data-tone="ink"]      { background: linear-gradient(145deg, #6a6157, var(--ink)); }

/* ============================================================
   CUSTOM ORDERS
   ============================================================ */
.custom { background: var(--cream); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step {
  position: relative;
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); background: var(--ghost); border-color: transparent; box-shadow: 0 30px 55px -35px rgba(45,45,45,0.5); }
.step__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--sand);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.step__title { font-size: 1.45rem; margin-bottom: 0.6rem; }
.step__txt { font-size: 0.92rem; margin: 0; }

.custom__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.custom__cta p { margin: 0; font-size: 1.05rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--cream); }
.contact .section__title,
.contact .value__title { color: var(--ghost); }
.contact p { color: rgba(248, 248, 255, 0.72); }
.contact .eyebrow { color: var(--sand); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__list { margin-top: 2.4rem; display: grid; gap: 1.5rem; }
.contact__list li { display: flex; flex-direction: column; }
.contact__label {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.4rem;
}
.contact__list a {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ghost);
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.contact__list a:hover { color: var(--sand); }

/* form */
.contact__form {
  background: rgba(248, 248, 255, 0.04);
  border: 1px solid rgba(248, 248, 255, 0.12);
  border-radius: 8px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid;
  gap: 1.3rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ghost);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248, 248, 255, 0.24);
  padding: 0.6rem 0.1rem;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; }
.field select option { color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sand);
}
.field input:invalid:not(:placeholder-shown) { border-color: #c96a5a; }
.form__note { margin: 0.2rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form__note.is-ok { color: var(--sand); }
.form__note.is-err { color: #e79b8f; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #241f1b; color: rgba(248,248,255,0.7); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 1.3rem; }
.brand--footer .brand__name { color: var(--ghost); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sand); margin: 0; }
.footer__links, .footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer__links a { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color .3s var(--ease); }
.footer__social a { font-size: 0.85rem; color: var(--sand); }
.footer__links a:hover, .footer__social a:hover { color: var(--ghost); }
.footer__copy { font-size: 0.78rem; letter-spacing: 0.06em; margin: 0.6rem 0 0; color: rgba(248,248,255,0.4); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  padding: 1.2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(30, 26, 22, 0.72); backdrop-filter: blur(4px); }
.lightbox__panel {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--cream);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.45s var(--ease);
}
.lightbox.is-open .lightbox__panel { transform: none; }
.lightbox__close {
  position: absolute; top: 0.8rem; right: 1rem;
  z-index: 3;
  font-size: 1.8rem; line-height: 1;
  background: none; border: none; color: var(--ink);
  width: 40px; height: 40px;
}
.lightbox__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
}
.lightbox__media img.ph-mark { width: 42%; opacity: 0.5; filter: brightness(0) invert(1); }
.lightbox__media img.real { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 1.6rem; line-height: 1;
  color: #fff;
  background: rgba(45, 45, 45, 0.4);
  border: none;
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.lightbox__nav:hover { background: rgba(45, 45, 45, 0.7); }
.lightbox__nav--prev { left: 0.7rem; }
.lightbox__nav--next { right: 0.7rem; }

.lightbox__count {
  position: absolute;
  top: 0.8rem; right: 0.9rem;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(45, 45, 45, 0.5);
  border-radius: 50px;
  padding: 0.25rem 0.6rem;
}

.lightbox__dots {
  position: absolute;
  bottom: 0.9rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}
.lightbox__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__dot.is-active { background: #fff; transform: scale(1.2); }
.lightbox__body { padding: clamp(1.6rem, 4vw, 2.8rem); display: flex; flex-direction: column; }
.lightbox__cat { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--chestnut); margin: 0 0 0.6rem; }
.lightbox__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 0.8rem; }
.lightbox__material { font-size: 0.9rem; color: var(--chestnut); margin-bottom: 1rem; }
.lightbox__price { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0.4rem 0 1.6rem; }
.lightbox__body .btn { margin-top: auto; }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__visual { max-width: 460px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .lightbox__panel { grid-template-columns: 1fr; }
  .lightbox__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 3rem;
    background: var(--cream);
    box-shadow: -20px 0 60px -30px rgba(45,45,45,0.5);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__link { font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal, .card { opacity: 1; transform: none; }
}
