/* =========================================================================
   Born to be Beautiful by Elina Art Studio
   Artisan / hand-crafted design system — hand-written CSS (no framework)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Warm artisan palette */
  --paper:       #F7E8E1;   /* page background — warm blush paper */
  --paper-2:     #EFD9CE;   /* alt section — deeper blush sand   */
  --cream-card:  #FFFBF9;   /* card surface     */
  --ink:         #2B2622;   /* headings/text    */
  --ink-soft:    #5C5249;   /* body text        */
  --clay:        #C2674F;   /* primary          */
  --clay-deep:   #9F4A37;   /* primary (contrast)*/
  --rose:        #D98A86;   /* secondary/hearts */
  --gold:        #C98A2B;   /* accent / detail  */
  --gold-soft:   #E7C45E;
  --sage:        #7E8C5E;   /* botanical accent */
  --line:        #EAD5C9;   /* warm borders     */
  --shadow-sm: 0 1px 2px rgba(43,38,34,.06), 0 2px 6px rgba(43,38,34,.06);
  --shadow-md: 0 8px 24px rgba(43,38,34,.10), 0 2px 6px rgba(43,38,34,.06);
  --shadow-lg: 0 24px 60px rgba(43,38,34,.16);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "Cabin", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-hand:    "Caveat", "Segoe Script", cursive;

  --container: 1720px;
  --radius:    14px;
  --radius-lg: 22px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --t-fast:    .18s var(--ease);
  --t-mid:     .32s var(--ease);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-deep); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--clay); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--alt { background: var(--paper-2); }
.section--paper2 { background: var(--paper-2); }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.measure { max-width: 60ch; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-hand);
  color: var(--clay);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-block;
  transform: rotate(-2deg);
}
.section-head { max-width: 64ch; margin-bottom: clamp(2rem,5vw,3.25rem); }
.section--center .section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--clay-deep);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: var(--shadow-sm); text-align: center;
}
.btn:hover { background: var(--clay); color: #fff; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--clay-deep);
  border-color: var(--clay); box-shadow: none;
}
.btn--ghost:hover { background: var(--clay); color: #fff; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #2B2010; }
.btn--gold:hover { background: var(--gold-soft); color: #2B2010; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,232,225,.80);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.site-header.is-scrolled { background: rgba(247,232,225,.95); border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.brand:hover { color: var(--clay-deep); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.brand__name span { font-family: var(--font-hand); color: var(--clay); font-size: 1.05rem; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  color: var(--ink); font-weight: 600; padding: .5rem .85rem; border-radius: 100px;
  position: relative; transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: .28rem; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--clay); border-radius: 2px; transition: width var(--t-fast);
}
.nav-links a:hover { color: var(--clay-deep); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 1.1rem; }
.nav-links a[aria-current="page"] { color: var(--clay-deep); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--cream-card); }
.lang-toggle button {
  font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  padding: .4rem .7rem; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-toggle button[aria-pressed="true"] { background: var(--clay); color: #fff; }

.nav-cta { padding: .6rem 1.15rem; font-size: .95rem; }
@media (max-width: 980px) { .nav-cta { display: none; } }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); background: var(--cream-card); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* mobile drawer */
@media (max-width: 880px) {
  /* backdrop-filter creates a containing block for position:fixed children,
     which would trap the drawer inside the header — disable it on mobile. */
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247,232,225,.97); }
  .nav-toggle { display: inline-flex; position: relative; z-index: 70; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--paper); padding: 5.5rem 1.25rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--t-mid); z-index: 60;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: .9rem 1rem; font-size: 1.15rem; border-radius: 12px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper-2); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(43,38,34,.4); opacity: 0; visibility: hidden; transition: opacity var(--t-mid); z-index: 55; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem,8vw,6rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero__copy h1 .accent { color: var(--clay); }
.hero__copy .hand { font-family: var(--font-hand); color: var(--clay); font-size: clamp(1.6rem,3vw,2.2rem); display: block; transform: rotate(-2deg); margin-bottom: .25rem; }
.hero__copy p { margin-top: 1.25rem; font-size: clamp(1.05rem,1.6vw,1.22rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__art { position: relative; justify-self: center; }
.hero__frame {
  background: var(--cream-card); padding: .9rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(2deg);
  transition: transform var(--t-mid);
}
.hero__frame img { border-radius: 14px; }
.hero__art:hover .hero__frame { transform: rotate(0deg); }
.hero__sticker {
  position: absolute; bottom: -1.2rem; left: -1.4rem; background: var(--gold); color: #2B2010;
  font-family: var(--font-hand); font-size: 1.5rem; line-height: 1; padding: .9rem 1.1rem;
  border-radius: 50% 48% 52% 50%; box-shadow: var(--shadow-md); transform: rotate(-8deg);
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy p, .hero__copy .measure { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { margin-top: 1rem; max-width: 420px; }
}

/* ---------- Marquee strip ---------- */
.strip { background: var(--ink); color: var(--paper); padding-block: .9rem; overflow: hidden; }
.strip__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.strip__track span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; opacity: .9; white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.strip__track span::after { content: "✦"; color: var(--gold-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---------- Cards / feature grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.feature {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}
.feature:hover { box-shadow: var(--shadow-md); border-color: var(--rose); transform: translateY(-4px); }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--paper-2); color: var(--clay-deep); margin-bottom: 1rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { font-size: .98rem; }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-bar button {
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: .55rem 1.15rem; border-radius: 100px; border: 1.5px solid var(--line);
  background: var(--cream-card); color: var(--ink-soft); transition: all var(--t-fast);
}
.filter-bar button:hover { border-color: var(--clay); color: var(--clay-deep); }
.filter-bar button.is-active { background: var(--clay); border-color: var(--clay); color: #fff; }

.masonry { columns: 3 260px; column-gap: 1.25rem; }
.masonry .tile { break-inside: avoid; margin-bottom: 1.25rem; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--cream-card); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tile img { width: 100%; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; color: #fff; opacity: 0; transition: opacity var(--t-mid);
  background: linear-gradient(to top, rgba(43,38,34,.78) 0%, rgba(43,38,34,.18) 55%, transparent 100%);
}
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; }
.tile__overlay b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.tile__overlay small { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); }
.tile.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(28,24,21,.92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: var(--paper); font-family: var(--font-display); }
.lightbox__btn {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background var(--t-fast); }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav.prev { left: 1.1rem; } .lightbox__nav.next { right: 1.1rem; }
.lightbox__btn svg, .lightbox__nav svg { width: 24px; height: 24px; }

/* ---------- Shop / product cards ---------- */
.product {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--t-mid), transform var(--t-mid);
  display: flex; flex-direction: column;
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__tag { position: absolute; top: .8rem; left: .8rem; background: var(--gold); color: #2B2010; font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 100px; }
.product__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product__body h3 { font-size: 1.3rem; }
.product__price { font-family: var(--font-display); color: var(--clay-deep); font-weight: 600; font-size: 1.15rem; }
.product__body .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid var(--cream-card); }
.about-photo .hero__sticker { position: absolute; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.stat b { font-family: var(--font-display); color: var(--clay-deep); font-size: 2.2rem; display: block; line-height: 1; }
.stat span { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

.timeline { display: grid; gap: 1.25rem; margin-top: 1rem; }
.timeline li { position: relative; padding-left: 2rem; }
.timeline li::before { content: ""; position: absolute; left: .35rem; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--paper-2); }
.timeline li::after { content: ""; position: absolute; left: .82rem; top: 1.4rem; bottom: -1.4rem; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--cream-card);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(194,103,79,.18); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-info .row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); color: var(--clay-deep); display: grid; place-items: center; }
.contact-info .ic svg { width: 22px; height: 22px; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.wa-link { -webkit-user-select: none; user-select: none; }
.form-status { margin-top: .5rem; font-weight: 700; }
.form-status.ok { color: var(--sage); } .form-status.err { color: var(--clay-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9E0D2; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.site-footer a { color: #E9E0D2; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand b { font-family: var(--font-display); font-size: 1.4rem; color: #fff; display: block; }
.footer-brand .hand { font-family: var(--font-hand); color: var(--gold-soft); font-size: 1.3rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.footer-col li { margin-bottom: .55rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); }
.socials a:hover { background: var(--clay); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .88rem; color: #B8AC9B; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,6vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin-inline: auto; }
.cta-band .btn { margin-top: 1.75rem; }
.cta-band__deco { position: absolute; font-family: var(--font-hand); opacity: .14; font-size: 9rem; pointer-events: none; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: clamp(2rem,5vw,3rem); }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.quote-card {
  position: relative; background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm);
  text-align: left; transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.quote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.quote-card::before {
  content: "\201C"; position: absolute; top: .35rem; left: 1.1rem;
  font-family: var(--font-display); font-size: 4.2rem; line-height: 1; color: var(--clay); opacity: .32;
}
.quote-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; margin-bottom: .7rem; }
.quote-card p { position: relative; font-size: 1.05rem; color: var(--ink); line-height: 1.65; }
.quote-author { display: flex; align-items: center; gap: .6rem; margin-top: 1.3rem; font-family: var(--font-hand); color: var(--clay-deep); font-size: 1.3rem; }
.quote-author::before { content: ""; width: 1.6rem; height: 2px; background: var(--clay); border-radius: 2px; flex: none; }

/* ---------- Scroll-reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(.986); filter: blur(6px); transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease); will-change: opacity, transform, filter; }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.float { animation: floaty 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .float, .hero__frame { animation: none !important; }
  .tile img, .product__media img { transition: none !important; }
  .scrap, .frame__mat { transition: none !important; }
  .heart-draw { animation: none !important; }
  .heart-line { stroke-dashoffset: 0 !important; transition: none !important; }
  .heart-fill { opacity: .16 !important; }
}

/* ---------- Scrapbook collage hero (home) ---------- */
.hero-scrap { position: relative; text-align: center; padding-block: clamp(2.5rem,6vw,4.5rem) clamp(3rem,8vw,5.5rem); overflow: hidden; }
.scrap-copy { position: relative; z-index: 3; max-width: 720px; margin-inline: auto; }
.scrap-copy .hand { font-family: var(--font-hand); color: var(--clay); font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1; display: inline-block; transform: rotate(-2deg); }
.scrap-copy h1 { margin-top: .35rem; }
.scrap-copy h1 .accent { color: var(--clay); }
.scrap-copy p { margin: 1.1rem auto 0; }
.scrap-cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.9rem; }
.scrap-fan { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-start; margin-top: clamp(2rem,5vw,3.4rem); padding-block: 1.6rem 1rem; }
.scrap { flex: 0 0 auto; width: clamp(148px, 18vw, 208px); background: var(--cream-card); padding: .55rem .55rem 1.55rem; border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 3px; position: relative; transition: transform var(--t-mid), box-shadow var(--t-mid); }
.scrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; display: block; }
.scrap figcaption { position: absolute; left: 0; right: 0; bottom: .3rem; text-align: center; font-family: var(--font-hand); color: var(--ink-soft); font-size: 1.05rem; }
.scrap::before { content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; background: rgba(201,138,43,.22); border: 1px dashed rgba(159,74,55,.28); transform: translateX(-50%) rotate(-3deg); }
.scrap:nth-child(1) { transform: rotate(-6deg); z-index: 1; margin-top: .6rem; }
.scrap:nth-child(2) { transform: rotate(3deg); margin-left: -2rem; z-index: 2; margin-top: 1.4rem; }
.scrap:nth-child(3) { transform: rotate(-2deg); margin-left: -2rem; z-index: 3; }
.scrap:nth-child(4) { transform: rotate(5deg); margin-left: -2rem; z-index: 2; margin-top: 1.1rem; }
.scrap:nth-child(5) { transform: rotate(-4deg); margin-left: -2rem; z-index: 1; margin-top: .5rem; }
.scrap:hover { transform: rotate(0) translateY(-8px) scale(1.03); z-index: 6; box-shadow: var(--shadow-lg); }
@media (max-width: 760px) {
  .scrap-fan { overflow-x: auto; justify-content: flex-start; gap: .6rem; padding-inline: 1.2rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .scrap { width: 158px; margin-left: 0 !important; margin-top: 0 !important; scroll-snap-align: center; transform: rotate(-2deg); }
  .scrap:nth-child(even) { transform: rotate(2deg); }
}

/* ---------- Horizontal exhibition rails (gallery) ---------- */
.rail-group { margin-bottom: clamp(2.75rem,6vw,4.25rem); }
.rail-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.rail-head h2 { font-size: clamp(1.5rem,3vw,2.1rem); }
.rail-head .count { font-family: var(--font-hand); color: var(--clay); font-size: 1.4rem; line-height: 1; }
.rail-hint { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-soft); margin: .35rem 0 0; }
.rail-hint svg { width: 1.1em; height: 1.1em; color: var(--clay); }
.rail { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1.4rem .3rem 1.75rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) var(--paper-2); }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: var(--paper-2); border-radius: 10px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--clay); }
.frame { flex: 0 0 auto; width: clamp(228px, 25vw, 296px); scroll-snap-align: start; cursor: pointer; }
.frame__mat { background: var(--cream-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 4px; padding: .9rem; transition: box-shadow var(--t-mid), transform var(--t-mid); }
.frame:hover .frame__mat, .frame:focus-visible .frame__mat { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.frame__mat img { width: 100%; display: block; border-radius: 2px; }
.frame figcaption { margin-top: .7rem; text-align: center; }
.frame figcaption b { font-family: var(--font-display); display: block; font-size: 1.08rem; color: var(--ink); font-weight: 600; }
.frame figcaption small { font-family: var(--font-hand); color: var(--clay); font-size: 1.02rem; }

/* ---------- Cursor effects & fun features ---------- */
/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--gold), var(--clay), var(--rose));
  box-shadow: 0 0 8px rgba(159,74,55,.45); transition: width .08s linear; pointer-events: none;
}
/* Paint-dab cursor trail */
.paint-dab {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 98;
  border-radius: 60% 40% 55% 45%; transform: translate(-50%,-50%);
  will-change: transform, opacity; animation: dabFade .8s ease forwards;
  mix-blend-mode: multiply;
}
@keyframes dabFade {
  0%   { opacity: .85; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(28deg); }
}
/* Buttons ease back smoothly after magnetic pull */
.btn { will-change: transform; }
/* Bespoke brand cursors (desktop / fine pointer only) */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("../img/cursor-brush.svg") 4 4, auto; }
  a, button, .btn, .frame, [role="button"], .lang-toggle button, .nav-toggle,
  select, summary, label[for], .filter-bar button {
    cursor: url("../img/cursor-brush-tip.svg") 4 4, pointer;
  }
  input, textarea { cursor: text; }
}
@media (hover: none), (pointer: coarse) {
  .paint-dab { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .paint-dab { display: none !important; }
  .scroll-progress { transition: none; }
  .hero__blob { transform: none !important; }
}

/* ---------- About: story with self-drawing heart ---------- */
.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }
.story-visual { display: grid; place-items: center; }
.heart-draw { position: relative; width: min(360px, 82%); animation: softfloat 6s ease-in-out infinite; }
.heart-draw::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(217,138,134,.22), transparent 72%); z-index: 0; }
.heart-draw svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.heart-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.heart-fill { opacity: 0; transition: opacity 1s ease .9s; }
.reveal.is-visible .heart-line { stroke-dashoffset: 0; }
.reveal.is-visible .heart-fill { opacity: .16; }
@keyframes softfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Editorial masthead header ---------- */
.masthead { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding-block: clamp(1.1rem, 2.2vw, 1.75rem); transition: padding-block .3s var(--ease), gap .3s var(--ease); }
.masthead__brand { display: flex; flex-direction: column; align-items: center; gap: .05rem; text-decoration: none; }
.masthead__title { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: .005em; font-size: clamp(1.75rem, 3.8vw, 3rem); line-height: 1.04; color: var(--ink); transition: font-size .3s var(--ease); }
.masthead__brand:hover .masthead__title { color: var(--clay-deep); }
.masthead__sub { font-family: var(--font-hand); color: var(--clay); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1; }
.masthead__rule { width: min(240px, 46%); height: 1px; background: linear-gradient(90deg, transparent, var(--line) 22%, var(--clay) 50%, var(--line) 78%, transparent); opacity: .85; }
.masthead__nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1rem .35rem; }
.masthead__nav a { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--ink); }
.masthead__util { position: absolute; top: 1.05rem; right: 1.25rem; display: flex; align-items: center; gap: .6rem; z-index: 2; }
.masthead__logo { position: absolute; top: .85rem; left: 1.25rem; width: clamp(52px, 4.5vw, 70px); z-index: 2; line-height: 0; transition: width .3s var(--ease); }
.masthead__logo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.site-header.is-scrolled .masthead__logo { width: 46px; }

/* scrolled → condense to a compact centred bar */
.site-header.is-scrolled .masthead { padding-block: .5rem; gap: .12rem; }
.site-header.is-scrolled .masthead__title { font-size: 1.3rem; }
.site-header.is-scrolled .masthead__sub,
.site-header.is-scrolled .masthead__rule { display: none; }

@media (max-width: 880px) {
  .masthead__util { position: static; order: -1; align-self: flex-end; }
  .masthead__nav a { font-size: 1.1rem; letter-spacing: .06em; }
  .masthead__title { letter-spacing: .005em; }
  .site-header.is-scrolled .masthead__title { font-size: 1.2rem; }
  .masthead__logo { width: 44px; top: .75rem; left: 1rem; }
}

/* =========================================================================
   MOBILE & TABLET POLISH — designed down, not shrunk
   ========================================================================= */
@media (max-width: 900px) {
  .section { padding-block: clamp(3rem, 7vw, 4.5rem); }
  .frame { width: 62vw; max-width: 300px; }         /* tablets: peek the next piece */
}

@media (max-width: 600px) {
  /* rhythm & type */
  .section { padding-block: 2.9rem; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.5rem); line-height: 1.08; }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); }
  h3 { font-size: 1.25rem; }
  .lead { font-size: 1.08rem; }
  .section-head { margin-bottom: 2rem; }

  /* masthead — compact & elegant */
  .masthead { padding-block: .7rem .85rem; gap: .3rem; }
  .masthead__title { font-size: 1.55rem; }
  .masthead__sub { font-size: 1.1rem; }
  .masthead__rule { width: 130px; }
  .masthead__logo { width: 40px; top: .62rem; left: 1rem; }
  .masthead__util { gap: .5rem; }
  .lang-toggle button { padding: .5rem .8rem; font-size: .85rem; }

  /* home scrapbook hero */
  .hero-scrap { padding-block: 1.75rem 2.5rem; }
  .scrap-copy .hand { font-size: 1.6rem; }
  .scrap-fan { margin-top: 1.75rem; gap: .65rem; padding-inline: 1.25rem; }
  .scrap { width: 152px; }
  .scrap-cta, .hero__cta { width: 100%; }
  .scrap-cta .btn, .hero__cta .btn { flex: 1 1 100%; justify-content: center; }

  /* stats — spread evenly, centred */
  .stats { gap: 1rem; justify-content: space-between; width: 100%; }
  .stat { flex: 1; min-width: 0; text-align: center; }
  .stat b { font-size: 1.8rem; }
  .stat span { font-size: .82rem; }

  /* cards & bands */
  .feature { padding: 1.5rem 1.35rem; }
  .quote-card { padding: 2rem 1.35rem 1.4rem; }
  .cta-band { padding: 2.25rem 1.35rem; }

  /* gallery rails — frames peek to invite swiping */
  .rail { gap: 1rem; padding: 1.1rem .2rem 1.4rem; }
  .frame { width: 78vw; max-width: 300px; }
  .rail-head h2 { font-size: 1.4rem; }

  /* about hero art */
  .hero__art { max-width: 300px; }

  /* footer */
  .site-footer { padding-block: 2.75rem 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 380px) {
  .masthead__title { font-size: 1.42rem; }
  .masthead__rule { display: none; }
  h1 { font-size: 1.9rem; }
  .stat b { font-size: 1.6rem; }
  .scrap { width: 144px; }
}

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--clay-deep); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }
.text-clay { color: var(--clay-deep); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--clay); margin: 1.5rem 0; }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: 60px; background: var(--line); }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); padding: .4rem .85rem; border-radius: 100px; font-size: .85rem; font-weight: 600; }
.badge svg { width: 1em; height: 1em; color: var(--clay); }
