/* =========================================================
   Juhsone — premium woodwork atelier
   Palette: warm paper, espresso, brass; serif + script + sans
   ========================================================= */

:root {
  --paper:        #F3ECDE;
  --paper-2:      #ECE2CF;
  --paper-3:      #E5D8C0;
  --espresso:     #1B1510;
  --espresso-2:   #241C15;
  --walnut:       #4A3325;
  --bark:         #6F4E34;
  --ink:          #2A2018;
  --ink-soft:     #6E5E4C;
  --brass:        #B0894E;
  --brass-deep:   #93702F;
  --cream:        #EFE6D5;
  --cream-soft:   #C9BCA4;
  --line:         rgba(42,32,24,.16);
  --line-light:   rgba(239,230,213,.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --script:"Tangerine", "Cormorant Garamond", cursive;

  --wrap: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px); }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--brass); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--walnut);
}
.section-title em { font-weight: 400; color: var(--ink); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: #fff; }

.section-intro {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 1.6rem;
}

.section-head { max-width: 760px; margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1.05em 2.1em;
  border-radius: 2px;
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--walnut); color: var(--cream); }
.btn--solid:hover { background: var(--espresso); }
.btn--ghost-light { color: var(--cream); border: 1px solid var(--line-light); }
.btn--ghost-light:hover { background: rgba(239,230,213,.08); border-color: var(--cream); }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--espresso);
  animation: preOut .9s var(--ease) 1.15s forwards;
}
.preloader.is-done { animation: preOut .7s var(--ease) forwards; }
.preloader__mark {
  font-family: var(--script);
  font-size: clamp(4rem, 13vw, 8rem);
  color: var(--cream);
  opacity: 0;
  transform: translateY(14px);
  animation: preIn 1s var(--ease) .15s forwards;
}
@keyframes preIn { to { opacity: 1; transform: none; } }
@keyframes preOut { to { opacity: 0; visibility: hidden; } }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
  padding: 1.5rem 0;
}
.nav__inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-mark {
  font-family: var(--sans); font-weight: 500;
  font-size: 1.18rem; letter-spacing: .42em;
  color: var(--cream); transition: color .5s var(--ease); padding-left: .42em;
}
.nav__brand-sub {
  font-family: var(--sans); font-weight: 300;
  font-size: .58rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--cream-soft); margin-top: .55rem; padding-left: .42em;
  transition: color .5s var(--ease);
}
.nav__links { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.nav__links a {
  font-size: .82rem; font-weight: 400; letter-spacing: .12em;
  color: var(--cream); position: relative; padding: .3em 0;
  transition: color .4s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: currentColor; transition: width .45s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line-light); padding: .7em 1.4em !important;
  border-radius: 2px; text-transform: uppercase; font-size: .72rem; letter-spacing: .18em;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.nav__cta:hover { background: var(--brass); border-color: var(--brass); color: var(--espresso); }

/* scrolled state */
.nav.is-scrolled {
  background: rgba(243,236,222,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .85rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__brand-mark { color: var(--walnut); }
.nav.is-scrolled .nav__brand-sub { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__cta { border-color: var(--line); }
.nav.is-scrolled .nav__cta:hover { color: var(--espresso); border-color: var(--brass); }

.nav__toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--cream);
  transition: transform .45s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.nav__toggle span:first-child { top: 4px; }
.nav__toggle span:last-child { bottom: 4px; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 8rem 0 4rem;
}
.hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.hero__media img { transform: scale(1.08); }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(27,21,16,.30) 0%, rgba(27,21,16,.62) 60%, rgba(27,21,16,.86) 100%),
    linear-gradient(180deg, rgba(27,21,16,.55) 0%, rgba(27,21,16,.10) 30%, rgba(27,21,16,.55) 100%);
}
.hero__content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(22px,5vw,64px); text-align: center; }
.hero__script {
  font-family: var(--script); font-weight: 700;
  font-size: clamp(4.5rem, 15vw, 13rem);
  line-height: .82; color: var(--cream);
  text-shadow: 0 14px 60px rgba(0,0,0,.4);
  margin: .08em 0 .22em;
}
.hero__tag {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.45; color: var(--cream);
  letter-spacing: .01em; max-width: 44ch; margin: 0 auto;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-soft);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--cream-soft), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--cream); animation: scrollDot 2.2s var(--ease) infinite; }
@keyframes scrollDot { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(6rem, 13vw, 11rem) 0; text-align: center; }
.manifesto .wrap { max-width: 1020px; }
.manifesto__lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.32; letter-spacing: -.01em; color: var(--walnut);
}
.manifesto__lead em { color: var(--brass-deep); }
.manifesto__sign { font-family: var(--script); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--ink); margin-top: 1.4rem; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; background: var(--paper-2); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,3vw,2rem); color: var(--walnut); }
.marquee__track i { color: var(--brass); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- collection (gallery) ---------- */
.collection { padding: clamp(5rem, 11vw, 9rem) 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.6rem, 4vw, 4rem) clamp(1.6rem, 3vw, 2.8rem);
  counter-reset: piece;
}
/* uniform gallery pieces (old editorial spans neutralised) */
.card, .card--tall, .card--wide { grid-column: auto; counter-increment: piece; }

.card__media {
  position: relative; display: block; overflow: hidden; border-radius: 6px;
  background: var(--paper-3);
  box-shadow: 0 2px 5px rgba(40,32,24,.05), 0 24px 44px -26px rgba(40,32,24,.62);
  transition: box-shadow .7s var(--ease), transform .7s var(--ease);
}
.card__media img,
.card--tall .card__media img,
.card--wide .card__media img {
  aspect-ratio: 4/5;
  transition: transform 1.3s var(--ease), filter .9s var(--ease);
  filter: saturate(.9) contrast(1.01) brightness(1.01);
}
/* hairline frame + soft top/bottom vignette to unify mixed photography */
.card__media::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,15,11,.16) 0%, transparent 20%, transparent 60%, rgba(20,15,11,.30) 100%);
  box-shadow: inset 0 0 0 1px rgba(43,33,24,.12);
  opacity: .6; transition: opacity .6s var(--ease);
}
.card:hover .card__media { transform: translateY(-5px); box-shadow: 0 2px 5px rgba(40,32,24,.05), 0 38px 64px -26px rgba(40,32,24,.72); }
.card:hover .card__media img { transform: scale(1.05); filter: saturate(1.02) contrast(1.02) brightness(1.02); }
.card:hover .card__media::after { opacity: 1; }

.card__hover {
  position: absolute; left: 1.25rem; bottom: 1.15rem; z-index: 3;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.card:hover .card__hover { opacity: 1; transform: none; }

.card__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .1rem 1rem; margin-top: 1.35rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line);
}
.card__row::before {
  content: "N\00BA " counter(piece, decimal-leading-zero);
  flex: 0 0 100%;
  font-family: var(--sans); font-size: .6rem; font-weight: 400; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: .8rem;
}
.card__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.45rem, 2vw, 1.72rem); color: var(--walnut); line-height: 1.12; letter-spacing: .005em; }
.card__name span { font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: .9em; }
.card__meta { flex: 0 0 100%; font-size: .82rem; color: var(--ink-soft); margin-top: .55rem; letter-spacing: .04em; }
.card__price { font-family: var(--serif); font-size: 1.3rem; color: var(--brass-deep); white-space: nowrap; }

/* ---------- materials ---------- */
.materials { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--paper-2); }
.materials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 6rem); align-items: center; }
.materials__media { border-radius: 4px; overflow: hidden; }
.materials__media img { aspect-ratio: 4/5; transition: transform 1.4s var(--ease); }
.materials__media:hover img { transform: scale(1.05); }

.swatches { list-style: none; margin-top: 2.6rem; display: grid; gap: 1.7rem; }
.swatches li { display: flex; gap: 1.2rem; align-items: flex-start; }
.swatch { flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 6px 14px rgba(0,0,0,.12); }
.swatch--ash { background: linear-gradient(135deg, #E7D8BC, #CDB793); }
.swatch--walnut { background: linear-gradient(135deg, #6B4A30, #3A271A); }
.swatch--import { background: linear-gradient(135deg, #C98F5A, #8A5a34); }
.swatches h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--walnut); }
.swatches p { font-size: .92rem; color: var(--ink-soft); margin-top: .15rem; max-width: 38ch; }

/* ---------- heritage (Pakistani / Mughal woodcraft) ---------- */
.heritage { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 11vw, 9rem); overflow: hidden; }
.heritage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23A0742F' stroke-width='1'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.heritage__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.4rem, 6vw, 6rem); align-items: center; }
.heritage__media { border-radius: 4px; overflow: hidden; box-shadow: 0 34px 60px -34px rgba(27,21,16,.55); }
.heritage__media img { aspect-ratio: 4/3; transition: transform 1.4s var(--ease); }
.heritage__media:hover img { transform: scale(1.05); }
.heritage__note { font-family: var(--script); font-size: clamp(2.1rem, 4.2vw, 3rem); color: var(--brass-deep); margin-top: 1.2rem; line-height: 1; }

/* jali star ornament (Mughal motif) */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.1rem; color: var(--brass); margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); }
.ornament__rule { height: 1px; width: clamp(46px, 12vw, 130px); background: linear-gradient(90deg, transparent, var(--brass)); }
.ornament__rule:last-child { background: linear-gradient(90deg, var(--brass), transparent); }
.ornament__star { width: 26px; height: 26px; flex: none; }

.footer__star { width: 30px; height: 30px; color: var(--brass); margin-bottom: .9rem; display: block; }

/* ---------- craft band ---------- */
.craft { position: relative; padding: clamp(6rem, 14vw, 11rem) 0; overflow: hidden; }
.craft__bg { position: absolute; inset: -10% 0; z-index: -2; }
.craft__bg img { transform: scale(1.1); }
.craft__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,15,11,.78), rgba(20,15,11,.62)); }
.craft__content { position: relative; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.6rem, 5vw, 4rem); }
.steps li { border-top: 1px solid var(--line-light); padding-top: 1.6rem; }
.steps__no { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brass); }
.steps h4 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--cream); margin: .5rem 0 .7rem; }
.steps p { color: var(--cream-soft); font-size: .98rem; max-width: 32ch; }

/* ---------- feature ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 86vh; }
.feature__media { overflow: hidden; }
.feature__media img { height: 100%; min-height: 60vh; transition: transform 1.6s var(--ease); }
.feature__media:hover img { transform: scale(1.05); }
.feature__panel { background: var(--espresso); display: flex; align-items: center; }
.feature__panel-inner { padding: clamp(3rem, 7vw, 6.5rem); max-width: 560px; }
.feature__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--cream); line-height: 1.05; }
.feature__title em { color: var(--brass); }
.feature__text { color: var(--cream-soft); font-family: var(--serif); font-size: 1.18rem; line-height: 1.6; margin: 1.6rem 0; }
.feature__price { color: var(--brass); letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; margin-bottom: 2rem; }

/* ---------- atelier ---------- */
.atelier { padding: clamp(5rem, 11vw, 9rem) 0; }
.atelier__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.4rem, 6vw, 6rem); align-items: center; }
.atelier__media { border-radius: 4px; overflow: hidden; }
.atelier__media img { aspect-ratio: 4/5; transition: transform 1.4s var(--ease); }
.atelier__media:hover img { transform: scale(1.05); }
.atelier__signoff { font-family: var(--script); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--walnut); margin-top: 1.4rem; }

/* ---------- contact ---------- */
.contact { padding: clamp(5.5rem, 12vw, 9rem) 0; background: var(--espresso); color: var(--cream); }
.contact__head { max-width: 720px; margin-bottom: clamp(2.6rem, 5vw, 3.6rem); }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; color: var(--cream); }
.contact__title em { color: var(--brass); }
.contact__intro { font-family: var(--serif); font-size: clamp(1.12rem,1.9vw,1.4rem); color: var(--cream-soft); margin-top: 1.4rem; max-width: 46ch; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; max-width: 820px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-soft); margin-bottom: .7rem; }
.field input, .field textarea {
  font-family: var(--serif); font-size: 1.1rem; color: var(--cream);
  background: transparent; border: none; border-bottom: 1px solid var(--line-light);
  padding: .6rem 0; transition: border-color .4s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: rgba(201,188,164,.5); }
.contact__submit { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: .6rem; }
.contact__direct { font-size: .95rem; color: var(--cream-soft); }
.contact__direct a { color: var(--brass); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.contact__direct a:hover { border-color: var(--brass); }
.contact__form.is-sent { opacity: .6; pointer-events: none; }
.contact__form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.footer { background: var(--espresso-2); color: var(--cream-soft); padding: clamp(3.4rem,7vw,5rem) 0 2.4rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer__mark { font-family: var(--script); font-size: 3rem; color: var(--cream); line-height: 1; }
.footer__brand p { margin-top: .8rem; max-width: 34ch; font-size: .95rem; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: .8rem; padding-top: .8rem; }
.footer__nav a, .footer__social a { font-size: .9rem; letter-spacing: .04em; width: fit-content; border-bottom: 1px solid transparent; transition: color .35s var(--ease), border-color .35s var(--ease); }
.footer__nav a:hover, .footer__social a:hover { color: var(--cream); border-color: var(--brass); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: .8rem; letter-spacing: .04em; }

/* ---------- back to top ---------- */
.totop {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--walnut); color: var(--cream); font-size: 1rem;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .4s var(--ease);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--espresso); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media img { min-height: 56vh; }
}

@media (max-width: 920px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 3rem;
    background: var(--espresso); transform: translateX(100%);
    transition: transform .6s var(--ease); z-index: 1001;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--cream) !important; font-size: 1.1rem; }
  .nav__toggle { display: block; z-index: 1002; }
  .nav.is-menu-open .nav__toggle span { background: var(--cream); }
  .nav.is-menu-open .nav__toggle span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }

  .grid { gap: 1.6rem; }
  .card, .card--tall, .card--wide { grid-column: span 6; }
  .card__media img, .card--tall .card__media img, .card--wide .card__media img { aspect-ratio: 4/5; }

  .materials__grid, .atelier__grid, .heritage__grid { grid-template-columns: 1fr; }
  .materials__media, .atelier__media, .heritage__media { max-width: 520px; }
  .atelier__grid .atelier__media { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { border-top: 1px solid var(--line-light); padding: 1.5rem 0; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card, .card--tall, .card--wide { grid-column: 1 / -1; }
  .card__media img, .card--tall .card__media img, .card--wide .card__media img { aspect-ratio: 4/3; }
  .contact__form { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav__brand-sub { display: none; }
}

/* hide the scroll cue on short screens so it never crowds the hero text */
@media (max-height: 760px) {
  .hero__scroll { display: none; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .preloader { display: none; }
}
