/* ============================================================
   ZERO LAYER STUDIO — shared stylesheet
   Aesthetic: stratified earth / layer-lines. Warm + modern.
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Hanken+Grotesque:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* studio palette — drawn from the sunlit-workshop hero photo: honey-gold
     window light, warm wood browns, soft sage foliage, charcoal printer.
     Backdrop kept soft & warm so it's easy on the eyes. */
  --cream:      #f0e8d8;
  --cream-2:    #e7dcc6;
  --sand:       #dccbac;
  --sand-deep:  #cdb893;
  --bark:       #211a13;
  --espresso:   #2c2118;
  --coffee:     #5a4632;
  --clay:       #c47a3d;
  --clay-deep:  #a55f25;
  --amber:      #e0a233;
  --sage:       #6f9355;
  --moss:       #4f7a3f;
  --teal:       #3f8aa8;
  --teal-deep:  #2d6b86;
  --bloom:      #c25f6e;
  --ink:        #241b12;
  --muted:      #6b5a44;
  --line:       rgba(36, 27, 18, 0.14);
  --line-2:     rgba(36, 27, 18, 0.07);

  /* typography */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Hanken Grotesque', system-ui, sans-serif;

  /* shape + depth */
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(34,25,19,.06), 0 2px 8px rgba(34,25,19,.05);
  --shadow:    0 6px 18px rgba(34,25,19,.10), 0 2px 6px rgba(34,25,19,.06);
  --shadow-lg: 0 22px 50px -18px rgba(34,25,19,.35), 0 8px 20px rgba(34,25,19,.10);

  /* layout */
  --max:   1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* subtle paper grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .045;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; color: var(--espresso); }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.eyebrow {
  font-family: var(--body);
  font-weight: 600; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--clay); display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--bark); color: #e9ddc8; }
.section--dark h2, .section--dark h3 { color: #f3e9d6; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* contour-line decorative layer (the studio motif) */
.contours {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  background-repeat: no-repeat; background-position: center top; background-size: cover;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; color: var(--espresso); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); margin-top: 1px; }

.nav__links { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.2rem); }
.nav__links a {
  font-weight: 600; font-size: .94rem; padding: .5rem .7rem; border-radius: 8px;
  color: var(--coffee); position: relative; transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: var(--espresso); }
.nav__links a.active { color: var(--clay-deep); }
.nav__links a.active::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .28rem; height: 2px;
  background: var(--clay); border-radius: 2px;
}
.nav__cta { margin-left: .4rem; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--espresso); margin: 5px auto; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 999px;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--clay); color: #fbf3e6; box-shadow: 0 8px 20px -8px rgba(165,95,37,.55); }
.btn--primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(165,95,37,.5); }
.btn--ghost { background: transparent; color: var(--espresso); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay-deep); transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--espresso); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vw, 120px); background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .lead { margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta div span { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--clay-deep); }
.hero__meta div small { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* layered visual block — represents print layers */
.hero__art { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.4); }
.hero__art--photo { aspect-ratio: 5/4; border: 1px solid rgba(120,86,52,.22); }
.hero__art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.layered { position: absolute; inset: 0; display: flex; flex-direction: column; }
.layered span { flex: 1; transition: flex .4s ease; }
.hero__art:hover .layered span:nth-child(even) { flex: 1.25; }
.hero__art .hero__chip {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: rgba(230,231,223,.92); backdrop-filter: blur(6px);
  padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600; color: var(--espresso);
  display: flex; align-items: center; gap: .5rem;
}
.hero__chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(119,124,91,.22); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--sand), var(--cream-2)); color: var(--clay-deep);
  margin-bottom: 1.1rem; border: 1px solid var(--line-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card__tag { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }

.section-head { max-width: 56ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: .8rem; }
.section-head p { margin-top: 1rem; }

/* numbered process steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step__num {
  counter-increment: step; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  background: var(--bark); color: var(--amber);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.18rem; }
.step p { color: var(--muted); margin-top: .25rem; font-size: .96rem; }

/* ---- pill list / specs ---- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pill { font-size: .82rem; font-weight: 600; color: var(--coffee); background: var(--cream-2); border: 1px solid var(--line-2); padding: .42rem .85rem; border-radius: 999px; }
.section--dark .pill { background: rgba(255,255,255,.06); color: #e9ddc8; border-color: rgba(255,255,255,.12); }

/* ============================================================
   GALLERY
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.4rem; }
.filter-bar button {
  font-weight: 600; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--coffee); transition: all .2s ease;
}
.filter-bar button:hover { border-color: var(--clay); color: var(--clay-deep); }
.filter-bar button.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--line-2); cursor: pointer;
}
.tile:nth-child(4n+1) { aspect-ratio: 1/1.15; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ph { position: absolute; inset: 0; }
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(to top, rgba(34,25,19,.78), transparent);
  color: var(--cream); display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem;
}
.tile__label b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.tile__label span { font-size: .72rem; opacity: .82; letter-spacing: .08em; text-transform: uppercase; }
.tile.is-hidden { display: none; }
.gallery-note { text-align: center; margin-top: 2.4rem; color: var(--muted); font-size: .92rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,28px); margin-top: 2.4rem; }
.value { padding-top: 1.2rem; border-top: 2px solid var(--bloom); }
.value h3 { font-size: 1.1rem; }
.value p { color: var(--muted); font-size: .92rem; margin-top: .35rem; }

/* portrait/atelier block */
.atelier { aspect-ratio: 5/6; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; border: 1px solid rgba(255,255,255,.4); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--espresso); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(179,94,56,.14);
}
.field .err { color: var(--clay-deep); font-size: .8rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--clay-deep); }
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: .92rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(119,124,91,.16); color: var(--moss); }
.form-status.bad { background: rgba(143,70,38,.12); color: var(--clay-deep); }

.contact-card {
  background: var(--bark); color: #e9ddc8; border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-lg);
}
.contact-card h3 { color: #f3e9d6; }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-line:last-of-type { border-bottom: none; }
.contact-line svg { width: 22px; height: 22px; color: var(--amber); flex: none; margin-top: 2px; }
.contact-line b { display: block; color: #f3e9d6; font-family: var(--display); font-weight: 500; }
.contact-line a, .contact-line span { color: #c9bca6; font-size: .94rem; }
.contact-line a:hover { color: var(--amber); }
.etsy-btn { margin-top: 1.6rem; }
.etsy-btn .btn { background: var(--amber); color: var(--bark); }
.etsy-btn .btn:hover { background: #ecb255; transform: translateY(-2px); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream), var(--cream-2)); padding-block: clamp(50px, 8vw, 96px); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin-top: 1rem; max-width: 16ch; }
.page-hero .lead { margin-top: 1.2rem; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a:hover { color: var(--clay); }

/* ============================================================
   CTA BAND + FOOTER
   ============================================================ */
.cta-band { background: var(--bark); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #f3e9d6; }
.cta-band .lead { color: #c9bca6; margin: 1rem auto 0; }
.cta-band .hero__actions { justify-content: center; }

.site-footer { background: var(--espresso); color: #c9bca6; padding-block: clamp(44px, 6vw, 70px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--cream); }
.site-footer h4 { font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.site-footer a { display: block; padding: .25rem 0; color: #c9bca6; font-size: .94rem; }
.site-footer a:hover { color: var(--cream); }
.footer-bar { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: #9c8d79; }

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.cb-launch {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 500;
  width: 60px; height: 60px; border-radius: 50%; background: var(--clay); color: #eef4ee;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background .2s ease;
}
.cb-launch:hover { transform: scale(1.06); background: var(--clay-deep); }
.cb-launch svg { width: 27px; height: 27px; }
.cb-launch .cb-close-icon { display: none; }
.cb-launch.open .cb-chat-icon { display: none; }
.cb-launch.open .cb-close-icon { display: block; }

.cb-panel {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(86px, 11vw, 100px); z-index: 500;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.cb-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cb-head { background: var(--bark); color: var(--cream); padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.cb-head .avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(150deg, var(--clay), var(--amber)); display: grid; place-items: center; flex: none; }
.cb-head .avatar svg { width: 20px; height: 20px; color: #eef4ee; }
.cb-head b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.cb-head small { display: flex; align-items: center; gap: .4rem; font-size: .74rem; color: #b7a78f; }
.cb-head small i { width: 7px; height: 7px; border-radius: 50%; background: #6aa84e; }

.cb-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
.cb-msg { max-width: 84%; padding: .7rem .95rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.cb-msg.bot { background: var(--cream-2); border: 1px solid var(--line-2); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--ink); }
.cb-msg.user { background: var(--clay); color: #eef4ee; border-bottom-right-radius: 5px; align-self: flex-end; }
.cb-msg a { color: var(--clay-deep); text-decoration: underline; }
.cb-msg.user a { color: #eef4ee; }
.cb-typing { display: flex; gap: 4px; padding: .85rem 1rem; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--coffee); opacity: .5; animation: cbDot 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .2s; }
.cb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cbDot { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-5px); opacity:.9 } }

.cb-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .6rem; }
.cb-quick button { font-size: .8rem; font-weight: 600; color: var(--clay-deep); background: var(--cream); border: 1.5px solid var(--line); padding: .4rem .7rem; border-radius: 999px; transition: all .18s ease; }
.cb-quick button:hover { border-color: var(--clay); background: var(--cream-2); }
.cb-input { display: flex; gap: .5rem; padding: .8rem 1rem 1rem; border-top: 1px solid var(--line-2); background: var(--cream); }
.cb-input input { flex: 1; font: inherit; font-size: .92rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .65rem 1rem; background: #eceee4; }
.cb-input input:focus { outline: none; border-color: var(--clay); }
.cb-input button { width: 42px; height: 42px; border-radius: 50%; background: var(--clay); color: #eef4ee; display: grid; place-items: center; flex: none; transition: background .2s ease; }
.cb-input button:hover { background: var(--clay-deep); }
.cb-input button svg { width: 18px; height: 18px; }
.cb-foot { text-align: center; font-size: .68rem; color: var(--muted); padding: 0 1rem .7rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .08s; }
  .reveal[data-d="2"] { transition-delay: .16s; }
  .reveal[data-d="3"] { transition-delay: .24s; }
  .reveal[data-d="4"] { transition-delay: .32s; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin-inline: auto; order: -1; aspect-ratio: 16/10; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .atelier { max-width: 460px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1rem var(--gutter) 1.6rem; gap: .2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 90;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .85rem .4rem; font-size: 1.05rem; }
  .nav__links a.active::after { display: none; }
  .nav__cta { margin: .6rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .value-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

/* ============================================================
   MOTION BACKGROUNDS + VIDEO SLOTS + LIFESTYLE  (added)
   ------------------------------------------------------------
   These styles power the "alive" motion backgrounds and the
   drop-in video / photo slots. They work with zero media files
   (an animated, code-only background shows by default) and
   automatically upgrade the moment you add your own video or
   photos to the /assets folder.
   ============================================================ */

/* --- Subtle drift on the existing contour lines (every page) --- */
.contours { animation: contourDrift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes contourDrift {
  from { transform: translate3d(0, 0, 0) scale(1.02); }
  to   { transform: translate3d(-2.5%, -1.8%, 0) scale(1.08); }
}

/* --- Reusable media background: optional video over a CSS motion layer --- */
.media-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* The video sits on top. If the file is missing it stays transparent and the
   animated motion layer below simply shows through — nothing looks broken. */
.media-bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; opacity: 0; transition: opacity .6s ease;
}
.media-bg__video.is-playing { opacity: 1; }
/* Code-only animated background (no file needed) */
.media-bg__motion {
  position: absolute; inset: -8%; z-index: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(214,149,63,.20), transparent 58%),
    radial-gradient(120% 90% at 84% 88%, rgba(119,124,91,.22), transparent 58%),
    linear-gradient(165deg, var(--cream) 0%, var(--cream-2) 100%);
  animation: bgDrift 20s ease-in-out infinite alternate;
}
.media-bg__lines {
  position: absolute; inset: 0; z-index: 1; opacity: .45;
  background-image: repeating-linear-gradient(
    0deg, transparent 0 21px, rgba(143,70,38,.12) 21px 22.5px);
  animation: lineScroll 22s linear infinite;
}
/* Light scrim so dark text stays readable even if a busy video is added.
   Hidden until a video actually plays, so the light hero is undimmed by default. */
.media-bg__scrim { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity .6s ease;
  background: linear-gradient(180deg, rgba(230,231,223,.40), rgba(230,231,223,.65)); }
.media-bg.has-video .media-bg__scrim { opacity: 1; }
@keyframes bgDrift {
  from { transform: translate3d(0,0,0) scale(1.03); }
  to   { transform: translate3d(-2.5%,-1.5%,0) scale(1.09); }
}
@keyframes lineScroll { from { background-position: 0 0; } to { background-position: 0 -225px; } }

/* ============================================================
   VISUAL "HOW IT WORKS" FLOW  (media-backed steps)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.flow__step {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream-2); box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.flow__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.flow__media video, .flow__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 2; opacity: 0; transition: opacity .5s ease;
}
.flow__media video.is-playing, .flow__media img.is-loaded { opacity: 1; }
/* Default code-only motion tile shown until a clip/photo is added */
.flow__motion {
  position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(
    -28deg, var(--c1, var(--clay)) 0 14px, var(--c2, var(--clay-deep)) 14px 28px);
  background-size: 200% 200%; animation: tileShift 14s ease-in-out infinite alternate;
}
.flow__media .flow__icon {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: rgba(238,243,236,.94);
}
.flow__icon svg { width: 40px; height: 40px; }
@keyframes tileShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.flow__num {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bark); color: var(--cream); font-family: var(--display);
  font-weight: 600; font-size: 1rem; box-shadow: var(--shadow-sm);
}
.flow__body { padding: 1.1rem 1.2rem 1.3rem; }
.flow__body h3 { font-size: 1.1rem; }
.flow__body p { color: var(--muted); margin-top: .35rem; font-size: .94rem; }
@media (max-width: 880px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ============================================================
   LIFESTYLE SECTION  ("where the prints end up")
   ============================================================ */
.life { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.life__item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 230px; box-shadow: var(--shadow); border: 1px solid var(--line-2);
  display: flex; align-items: flex-end;
}
.life__item--wide { grid-column: span 7; }
.life__item--tall { grid-column: span 5; }
.life__item--half { grid-column: span 6; }
.life__photo {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.life__photo.is-loaded { opacity: 1; }
/* Placeholder shown until a real photo is dropped in — describes the shot to take */
.life__ph {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(150deg, var(--p1, var(--sage)), var(--p2, var(--moss)));
}
.life__ph::after {
  content: "📷  " attr(data-shot);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem;
  text-align: center; color: rgba(247,240,226,.9); font-size: .9rem; line-height: 1.5;
}
.life__cap {
  position: relative; z-index: 2; width: 100%; padding: 1.4rem;
  background: linear-gradient(0deg, rgba(34,25,19,.72), rgba(34,25,19,0));
  color: var(--cream);
}
.life__cap b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; display: block; }
.life__cap span { font-size: .9rem; opacity: .85; }
@media (max-width: 760px) {
  .life__item--wide, .life__item--tall, .life__item--half { grid-column: span 12; }
}

/* Respect users who prefer less motion (accessibility + reduces battery use) */
@media (prefers-reduced-motion: reduce) {
  .contours, .media-bg__motion, .media-bg__lines, .flow__motion { animation: none !important; }
}

/* ============================================================
   GALLERY — real product photos
   ============================================================ */

/* Photo inside a tile: fills the tile, object-fit cover */
.tile__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; display: block;
  transition: transform .5s ease;
}
.tile:hover .tile__photo { transform: scale(1.04); }

/* Ensure label stays above the photo */
.tile__label { z-index: 2; }

/* ============================================================
   GALLERY FEATURED — full-width spotlight (gallery page)
   ============================================================ */
.gallery-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.gallery-featured__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.gallery-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s ease;
}
.gallery-featured:hover .gallery-featured__img img { transform: scale(1.03); }
.gallery-featured__body {
  padding: clamp(24px, 4vw, 52px);
}
@media (max-width: 720px) {
  .gallery-featured {
    grid-template-columns: 1fr;
  }
  .gallery-featured__img { aspect-ratio: 4 / 3; }
}
