    /* =====================================================
       TEMPLATE GUIDE
       1. Brand colours / fonts -> :root tokens
       2. Images                -> search "IMAGE:" and set
                                   style="--img:url('file.jpg')"
       3. Products              -> edit the PRODUCTS array in the JS
       ===================================================== */

    /* ---------- 1. TOKENS ---------- */
    :root {
      --bg: #efece6;
      --bg-2: #e4e0d8;
      --ink: #14120f;
      --muted: #6e6a62;
      --line: rgba(20, 18, 15, .16);
      --rust: #b3441c;
      --serif: "Playfair Display", Georgia, serif;
      --sans: "DM Sans", "Segoe UI", sans-serif;
      --ease: cubic-bezier(.22, 1, .36, 1);
      --wrap: 1280px;
    }

    /* ---------- 2. BASE ---------- */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    ul { list-style: none; }
    h1, h2, h3 { font-weight: 400; }
    h1, h2 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.1; }
    :focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
    .wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
    .i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
    .cap { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
    section { padding: 56px 0; }

    /* Image placeholder: IMAGE: set --img on any .ph */
    .ph { position: absolute; inset: 0; background: var(--img, none) center / cover no-repeat, linear-gradient(150deg, #cfc8bb, #a69d8e); transition: transform 1.2s var(--ease); }
    .ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-size: .7rem; letter-spacing: .08em; color: rgba(20, 18, 15, .45); }
    .ph[style*="--img"]::after { display: none; }

    /* Text link with animated underline */
    .ulink { display: inline-flex; align-items: center; gap: 10px; position: relative; padding-bottom: 6px; }
    .ulink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--rust); transform-origin: left; transition: transform .5s var(--ease); }
    .ulink:hover::after { transform: scaleX(.35); }
    .ulink .i { transition: transform .4s var(--ease); } .ulink:hover .i { transform: translateX(5px); }

    /* Reveal on scroll */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
    .reveal.in { opacity: 1; transform: none; }

    /* ---------- 3. ANNOUNCEMENT + HEADER ---------- */
    .announce { background: var(--ink); color: #fff; padding: 9px 0; }
    .announce .wrap { display: flex; justify-content: space-between; align-items: center; }
    .announce p { flex: 1; text-align: center; transition: opacity .5s; padding-left: 90px; }
    .announce span { width: 90px; text-align: right; opacity: .8; }
    .header { position: sticky; top: 0; z-index: 100; background: rgba(239, 236, 230, .92); backdrop-filter: blur(14px); transition: box-shadow .4s; }
    .header.scrolled { box-shadow: 0 1px 0 var(--line); }
    .head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 0 8px; transition: padding .4s; }
    .head-row > * { min-width: 0; }
    .header.scrolled .head-row { padding: 10px 0 4px; }
    .logo { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; text-align: center; }
    .tools { display: flex; justify-content: flex-end; gap: 6px; }
    .tool { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.15rem; position: relative; border-radius: 50%; transition: background .3s; }
    .tool:hover { background: rgba(20, 18, 15, .07); }
    .tool b { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--rust); color: #fff; font-size: .6rem; display: grid; place-items: center; transition: transform .3s var(--ease); }
    .tool b.pop { transform: scale(1.5); }
    .nav { display: flex; justify-content: center; gap: 38px; padding: 8px 0 16px; }
    .nav a { position: relative; padding: 4px 0; }
    .nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .45s var(--ease); transform-origin: right; }
    .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
    .nav .sale { color: var(--rust); }
    .burger { display: none; width: 40px; height: 40px; }
    .burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: .35s var(--ease); }
    .burger.open span:first-child { transform: translateY(3.250px) rotate(45deg); } .burger.open span:last-child { transform: translateY(-3.250px) rotate(-45deg); }

    /* ---------- 4. HERO ---------- */
    .hero { padding: 0; display: grid; grid-template-columns: 1fr 31%; gap: 10px; height: min(76vh, 640px); min-height: 440px; }
    .tile { position: relative; overflow: hidden; color: #fff; display: block; }
    .tile .ph { transform: scale(1.06); }
    .tile:hover .ph { transform: scale(1.12); }
    .tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%); }
    .hero-copy { position: absolute; z-index: 2; left: 32px; bottom: 44px; }
    .hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 12px 0 28px; text-transform: uppercase; max-width: 600px; }
    .btn-line { display: inline-flex; align-items: center; gap: 14px; padding: 13px 24px; border: 1px solid rgba(255, 255, 255, .75); position: relative; overflow: hidden; transition: color .5s var(--ease); z-index: 0; }
    .btn-line::before { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
    .btn-line:hover { color: var(--ink); } .btn-line:hover::before { transform: none; }
    .tile-label { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
    .tile-label .i { transition: transform .4s var(--ease); } .tile:hover .tile-label .i { transform: translateX(6px); }
    .hero-in > * { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; }
    .hero-in > :nth-child(2) { animation-delay: .15s; } .hero-in > :nth-child(3) { animation-delay: .3s; }
    @keyframes rise { to { opacity: 1; transform: none; } }

    /* ---------- 5. CATEGORIES ---------- */
    .cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
    .cat { aspect-ratio: 1 / 1.02; }

    /* ---------- 6. PRODUCT CARDS (rendered by JS) ---------- */
    .prod h3 { font-size: .76rem; margin-top: 12px; }
    .prod p { font-size: .76rem; color: var(--muted); }
    .pimg { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; background: var(--bg-2); }
    .prod:hover .ph { transform: scale(1.07); }
    .pbadge { position: absolute; top: 0; left: 0; z-index: 2; background: var(--rust); color: #fff; font-size: .58rem; letter-spacing: .12em; font-weight: 700; padding: 4px 9px; text-transform: uppercase; }
    .heart { position: absolute; z-index: 2; top: 10px; right: 10px; font-size: 1rem; width: 30px; height: 30px; display: grid; place-items: center; transition: transform .35s var(--ease); }
    .heart:hover { transform: scale(1.2); } .heart.on .i { fill: var(--rust); stroke: var(--rust); }
    .quick { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; padding: 11px; background: var(--ink); color: #fff; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; transform: translateY(130%); transition: transform .5s var(--ease), background .3s; }
    .quick:hover { background: var(--rust); } .prod:hover .quick { transform: none; }
    .sw { display: flex; gap: 6px; margin-top: 8px; }
    .sw i { width: 11px; height: 11px; border-radius: 50%; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
    .sw i:hover { transform: scale(1.3); } .sw i.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

    /* ---------- 7. NEW ARRIVALS ---------- */
    .arrivals { display: grid; grid-template-columns: .75fr 1fr 3fr; gap: 24px; align-items: start; }
    .arrivals h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin: 14px 0 22px; }
    .look { position: relative; aspect-ratio: 1 / 1.62; overflow: hidden; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 22px; }

    /* ---------- 8. MOST LOVED ---------- */
    .sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
    .sec-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); text-transform: uppercase; }
    .sec-head p { color: var(--muted); font-size: .85rem; margin-top: 4px; }
    .loved { display: grid; grid-template-columns: 1.15fr 2fr; gap: 22px; }
    .feature { min-height: 280px; }
    .feature .tile-label { flex-direction: column; align-items: flex-start; left: 22px; bottom: 20px; font-size: .85rem; }
    .feature .tile-label .i { position: absolute; right: 0; bottom: 0; }

    /* ---------- 9. FIT STRIP ---------- */
    .fit { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-block: 1px solid var(--line); padding: 20px 0; font-size: .8rem; flex-wrap: wrap; }

    /* ---------- 10. MADE TO LAST ---------- */
    .fabric { padding: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
    .fabric-img { position: relative; min-height: 340px; overflow: hidden; }
    .fabric-img:hover .ph { transform: scale(1.06); }
    .fabric-copy { padding: 56px 72px; align-self: center; }
    .fabric-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-transform: uppercase; margin: 14px 0 18px; }
    .fabric-copy p { color: var(--muted); max-width: 440px; font-size: .92rem; }
    .fabric-copy hr { width: 28px; border: 0; border-top: 1px solid var(--rust); margin-top: 26px; transition: width .6s var(--ease); }
    .fabric-copy.in hr { width: 64px; }

    /* ---------- 11. TRUST STRIP ---------- */
    .trust { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); padding-bottom: 28px; }
    .trust div { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 14px; border-right: 1px solid var(--line); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; transition: transform .4s var(--ease); }
    .trust div:last-child { border: 0; } .trust div:hover { transform: translateY(-3px); }
    .trust .i { font-size: 1.9rem; stroke-width: 1.1; }

    /* ---------- 12. SHOP THE LOOK CAROUSEL ---------- */
    .wear { position: relative; padding-top: 28px; }
    .track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 18px; }
    .track::-webkit-scrollbar { display: none; }
    .shot { position: relative; flex: 0 0 calc((100% - 42px) / 4); aspect-ratio: 1 / .9; overflow: hidden; scroll-snap-align: start; }
    .shot:hover .ph { transform: scale(1.07); }
    .shot button { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255, 255, 255, .85); transition: background .3s, transform .4s var(--ease); }
    .shot button:hover { background: var(--rust); color: #fff; transform: scale(1.12); }
    .car-btn { position: absolute; top: 56%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.2rem; z-index: 3; transition: transform .3s var(--ease); }
    .car-btn:hover { transform: scale(1.25); } .car-btn.l { left: -8px; transform-origin: center; } .car-btn.l .i { transform: scaleX(-1); } .car-btn.r { right: -8px; }

    /* ---------- 13. REVIEWS ---------- */
    .reviews { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 28px; }
    .review { padding: 22px 28px; border-right: 1px solid var(--line); } .review:last-child { border: 0; } .review:first-child { padding-left: 0; }
    .reviews-label { margin-top: 28px; }
    .review q { display: block; font-size: .84rem; margin: 6px 0 20px; quotes: none; }
    .review b { display: block; font-size: .74rem; font-weight: 500; } .review span { font-size: .72rem; color: var(--muted); }
    .stars { color: var(--rust); letter-spacing: 3px; font-size: .75rem; }

    /* ---------- 14. NEWSLETTER ---------- */
    .join { position: relative; padding: 0; min-height: 190px; display: flex; align-items: center; overflow: hidden; }
    .join::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(239, 236, 230, .94) 0%, rgba(239, 236, 230, .75) 40%, rgba(239, 236, 230, .1) 100%); }
    .join .ph { transform: none !important; }
    .join .wrap { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-block: 40px; }
    .join h2 { font-size: 1.5rem; text-transform: uppercase; } .join p { font-size: .82rem; margin-top: 8px; }
    .join form { display: flex; width: min(430px, 100%); border: 1px solid rgba(20, 18, 15, .55); background: rgba(239, 236, 230, .7); backdrop-filter: blur(6px); transition: box-shadow .4s; }
    .join form:focus-within { box-shadow: 0 0 0 2px var(--rust); }
    .join input { flex: 1; background: none; border: 0; padding: 15px 18px; font: inherit; font-size: .8rem; outline: 0; }
    .join form button { padding: 0 18px; font-size: 1.1rem; transition: background .3s, color .3s; } .join form button:hover { background: var(--ink); color: #fff; }
    .msg { position: absolute; right: 0; bottom: -26px; font-size: .75rem; color: var(--rust); }

    /* ---------- 15. FOOTER ---------- */
    .footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 54px 0 24px; font-size: .78rem; }
    .foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-bottom: 46px; }
    .footer .logo { text-align: left; color: #fff; font-size: 2rem; margin-bottom: 14px; display: block; }
    .footer h4 { color: #fff; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
    .footer li { margin-bottom: 9px; } .footer li a { transition: color .3s, padding .3s; } .footer li a:hover { color: #fff; padding-left: 6px; }
    .social { display: flex; gap: 14px; font-size: 1.05rem; } .social a { transition: color .3s, transform .4s var(--ease); } .social a:hover { color: #fff; transform: translateY(-3px); }
    .foot-bottom { border-top: 1px solid rgba(179, 68, 28, .7); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .7rem; }
    .pay { display: flex; gap: 22px; font-weight: 700; font-style: italic; letter-spacing: .04em; opacity: .75; }

    /* Toast */
    #toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 90px); background: var(--ink); color: #fff; padding: 13px 24px; font-size: .78rem; z-index: 300; transition: transform .6s var(--ease); }
    #toast.show { transform: translate(-50%, 0); }

    /* ---------- 16. RESPONSIVE ---------- */
    @media (max-width: 1020px) {
      /* solid header on mobile so the fixed nav drawer is not clipped by backdrop-filter */
      .header { background: var(--bg); backdrop-filter: none; }
      .nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); background: var(--bg); flex-direction: column; padding: 90px 32px; gap: 22px; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -20px 0 50px rgba(0, 0, 0, .2); z-index: 10; }
      .nav.open { transform: none; }
      .burger { display: block; position: relative; z-index: 11; }
      .head-row { grid-template-columns: 1fr auto 1fr; } .logo { text-align: center; }
      .hero { grid-template-columns: 1fr; height: auto; } .hero .tile { height: 460px; } .hero .tile:last-child { height: 380px; }
      .cats { grid-template-columns: repeat(3, 1fr); }
      .arrivals { grid-template-columns: 1fr 1fr; } .arrivals .grid-3 { grid-column: 1 / -1; }
      .loved { grid-template-columns: 1fr; }
      .fabric { grid-template-columns: 1fr; } .fabric-copy { padding: 44px 28px; }
      .trust { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .trust div:nth-child(2) { border: 0; }
      .shot { flex-basis: calc((100% - 14px) / 2); }
      .reviews { grid-template-columns: 1fr; } .review { border: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
      .foot-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .wrap { width: calc(100% - 32px); } section { padding: 40px 0; }
      .announce span { display: none; } .announce p { padding: 0; }
      .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .grid-3 { gap: 16px 12px; } .arrivals { grid-template-columns: 1fr; } .look { aspect-ratio: 1 / 1.2; }
      .hero-copy { left: 20px; } .shot { flex-basis: 80%; } .car-btn { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
      .reveal, .hero-in > * { opacity: 1; transform: none; }
    }
/* Shared NOVA type scale. Matching roles use identical sizes on every template.
   Keep this block in sync across standalone pages. Sizes scale with viewport width. */
:root {
  --type-display: clamp(2.6rem, 6vw, 4.6rem);
  --type-page: clamp(1.9rem, 3.2vw, 2.8rem);
  --type-section: clamp(1.8rem, 3vw, 2.4rem);
  --type-statement: clamp(2rem, 5vw, 4rem);
  --type-subheading: 1.4rem;
  --type-body: .95rem;
  --type-input: .88rem;
  --type-support: .84rem;
  --type-meta: .78rem;
  --type-caption: .7rem;
  --type-control: .68rem;
  --type-label: .62rem;
  --type-logo: 2rem;
}
body { font-size: 1rem; }
.logo, .footer .logo { font-size: var(--type-logo); }
.cap, .nav, .crumbs, .btn-line, .btn-outline, .btn-solid, .btn-danger,
.filter, .text-link, .subnav a, .auth-tab {
  font-size: var(--type-control);
}
.hero h1, .chero h1, .page-title { font-size: var(--type-display); }
.title-row h1, .hero-title h1, .info h1, .confirm-wrap h1 {
  font-size: var(--type-page);
}
.sec-head h2, .rec-head h2, .hsec-head h2, .sect-head h2,
.arrivals h2, .fabric-copy h2, .story-left h2, .story-copy h2,
.sustain-head h2, .section-label h2, .policy h2, .tracking-card h2,
.empty-track h2, .panel-head h2, .auth-edit-copy h2,
.featured h2, .article-dialog h2 { font-size: var(--type-section); }
.closing h2, .dark-panel h2 { font-size: var(--type-statement); }
.note-card h3, .role h3, .story-card h3, .support-grid h3,
.policy h3, .article-dialog h3, .craft-step h3, .value h3,
.repair-strip h3, .visit-left h3, .contact-cta h3, .join h2,
.modal-head h3, dialog h2, .auth-panel h2, .bag-empty h3,
.empty h2, .empty h3, .empty-state h3, .result-inner h3 {
  font-size: var(--type-subheading);
}
.hero-body, .hero-sub, .intro, .body-copy, .chero-copy p,
.title-row .sub, .story-right p, .craft-step p, .sustain-head p,
.story-copy p, .fabric-copy p, .note-card p, .story-card p,
.support-grid p, .policy p, .policy li, .article-dialog p,
.role details p, .role details li, .dark-panel > p:not(.cap),
.hsec-head p, .confirm-wrap > p { font-size: var(--type-body); }
.page-form input, .page-form select, .page-form textarea,
.search-input, .field input, .field select, .field textarea,
.search-field input, .news input, .promo-form input {
  font-size: var(--type-input);
}
/* Labels outside fields match the already-floated labels in account/checkout. */
.page-form label:not(.check-line), .track-step, .tl-step .lbl { font-size: var(--type-label); }
.page-form .check-line { font-size: var(--type-support) !important; }
.role .role-meta, .feedback, .page-form .feedback,
.policy-banner, .order-item, .summary-line, .cookie-option,
.cookie-option small, .empty p, .empty-state p, .result-inner p {
  font-size: var(--type-support);
}
.story-card .cap { font-size: var(--type-control); }
.image-caption, .status-pill, .document-nav a, .dialog-close {
  font-size: var(--type-control);
}
.order-item small, .auth-panel .sub { font-size: var(--type-meta); }
.footer { font-size: var(--type-meta); }
.footer h4 { font-size: .64rem; }
.foot-bottom, .form-note, .field-note, .field .helper, .field .err-msg,
.drawer-foot .note, .drawer .bag-info p,
.drawer .bag-line .v { font-size: var(--type-caption); }
.drawer .bag-info > a, .drawer .bag-line h4 { font-size: .76rem; }
.drawer .bag-line .price { font-size: var(--type-meta); }
.summary-line.total { font-size: 1.1rem; }
@media (max-width: 600px) {
  :root { --type-page: 1.7rem; }
  .logo, .footer .logo { font-size: var(--type-logo); }
}
