/* ==========================================================
   NISSI — shared + home styles  ·  Hedgerow restyle
   Prata for names and headings, Manrope for reading. Tokens: tokens.css.
   ========================================================== */
:root{
  /* legacy names, now read from tokens.css (Hedgerow on its cream band; green bands re-map these in tokens.css) */
  --bg:var(--color-paper);
  --bg-deep:var(--color-paper-2);
  --bg-void:var(--color-green-2);
  --surface:var(--color-paper-3);
  --panel:var(--color-paper-3);        /* dropdowns, sheets, summary boxes */
  --field-bg:var(--color-paper-3);     /* inputs, selects, steppers */
  --ink:var(--color-ink);
  --text-2:var(--color-ink-2);
  --muted:var(--color-muted);
  --gold:var(--color-signal);          /* gold as text and line: the deep strength on cream */
  --gold-hi:var(--color-signal-2);
  --gold-foil:var(--color-gold);       /* ornament only */
  --accent:var(--color-accent);        /* controls: hedge green */
  --accent-hi:var(--color-accent-2);
  --on-accent:var(--color-accent-ink);
  --on-gold:var(--color-green-2);
  --on-photo:var(--color-cream);       /* text set over a photograph's green scrim */
  --scrim:var(--color-green-2);
  --line:color-mix(in oklab,var(--color-gold-deep) 30%,transparent);
  --line-soft:var(--color-rule);
  --case:var(--color-case);
  --pom:var(--color-accent);           /* saved items: no second accent */
  --field-line:var(--color-muted);
  --control-line:color-mix(in oklab,var(--color-ink) 24%,transparent);     /* outlined controls: swatches, steppers, icon buttons */
  --control-line-hi:color-mix(in oklab,var(--color-ink) 55%,transparent);
  --danger:var(--color-error);
  --danger-ink:var(--color-error);
  --danger-bg:color-mix(in oklab,var(--color-error) 8%,var(--color-paper));
  --ok-bg:var(--color-paper-2);
  --radius:5px;                        /* one radius for every box: buttons, fields, cards, panels, photo cases */

  --font:var(--font-body);

  --ease:cubic-bezier(.22,.61,.36,1);
  --max:1840px;            /* wide container */
  --gutter:clamp(20px,3.4vw,64px);
  --header-h:80px;
  --edge:max(var(--gutter),calc((100% - var(--max))/2 + var(--gutter)));   /* viewport edge -> content column; resolves against the width of the element that uses it */
  --z-sticky:50; --z-drawer:60; --z-sheet:70; --z-opener:200;
}
*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:clip;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px);-webkit-text-size-adjust:100%;background:var(--bg);color-scheme:light}
body{overflow-x:clip;font-family:var(--font);font-size:1.0625rem;font-weight:400;line-height:1.65;color:var(--text-2);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a,button,summary,select,label.check{cursor:pointer}
:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}
::selection{background:var(--gold);color:var(--on-gold)}
.skip{position:absolute;left:8px;top:8px;z-index:300;background:var(--accent);color:var(--on-accent);padding:12px 18px;transform:translateY(-200%)}
.skip:focus{transform:none}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.container{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}

/* ---------- Type (Prata 400 for display, its only weight; Manrope for reading) ---------- */
h1,h2,h3{font-family:var(--font-display);font-weight:400;font-synthesis:none;line-height:1.08;letter-spacing:var(--tracking-display);color:var(--ink);overflow-wrap:break-word;min-width:0}
h1{font-size:clamp(2.6rem,5.2vw,5rem);line-height:1.04}
h2{font-size:clamp(2rem,3.4vw,3.1rem)}
h3{font-size:1.5rem}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 2rem;font-size:.9375rem;font-weight:700;letter-spacing:0;border:1.5px solid var(--accent);border-radius:var(--radius);transition:background-color var(--dur-short) var(--ease-out),color var(--dur-short) var(--ease-out),border-color var(--dur-short) var(--ease-out)}
.btn--solid{background:var(--accent);color:var(--on-accent)}
.btn--solid:hover{background:var(--accent-hi);border-color:var(--accent-hi)}
.btn--line{color:var(--accent)}
.btn--line:hover{background:color-mix(in oklab,var(--color-accent) 14%,transparent)}
.textlink{font-size:1rem;font-weight:500}
.textlink:hover{color:var(--gold-hi)}

/* ---------- Unboxing opener (once per session) ---------- */
html.opener{overflow:hidden}
.opener{display:none;position:fixed;inset:0;z-index:var(--z-opener);pointer-events:none}
html.opener .opener{display:block}
.opener__half{position:absolute;top:0;bottom:0;width:50.4%;background:var(--color-green-3);transition:transform 1s cubic-bezier(.77,0,.18,1)}
.opener__half--l{left:0;box-shadow:1px 0 0 color-mix(in oklab,var(--color-accent) 35%,transparent)}.opener__half--r{right:0}
.opener--open .opener__half--l{transform:translateX(-101%)}
.opener--open .opener__half--r{transform:translateX(101%)}
.opener__logo{position:absolute;left:50%;top:50%;width:clamp(96px,13vw,150px);transform:translate(-50%,-50%);opacity:0;animation:foil .9s .15s var(--ease) forwards}
.opener--open .opener__logo{animation:foil-out .3s forwards}
@keyframes foil{from{opacity:0;transform:translate(-50%,-46%)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes foil-out{from{opacity:1;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-50%,-50%)}}

/* ---------- Announce + header ---------- */
.announce{background:var(--color-green-3);color:var(--ink);text-align:center;font-size:.875rem;font-weight:500;letter-spacing:.02em;padding:.55rem var(--gutter);line-height:1.4}
.header{position:sticky;top:0;z-index:calc(var(--z-drawer) + 1);background:var(--bg);border-bottom:1px solid var(--line)}
.header__inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:var(--header-h);max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.header__left{display:flex;align-items:center;gap:1rem}
.header__right{display:flex;align-items:center;justify-content:flex-end;gap:.25rem}
.nav{display:flex;gap:.25rem;margin-left:-.9rem}
.nav>a{display:inline-flex;align-items:center;min-height:44px;padding:0 .9rem;font-size:1rem;font-weight:400;letter-spacing:.01em;position:relative}
.nav>a::after{content:"";position:absolute;left:.9rem;right:.9rem;bottom:8px;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.nav>a:hover::after,.nav>a[aria-current=page]::after{transform:scaleX(1)}
.logo img{height:40px;width:auto}
.icon-btn{display:grid;place-items:center;width:44px;height:44px;position:relative;transition:color .25s}
.icon-btn:hover{color:var(--gold-hi)}
.menu-btn{display:none;gap:6px;align-content:center;margin-left:-11px}
.header__right .bag-btn{margin-right:-11px}
/* mega menu under "Collections" (desktop): collections, jewelry types, audience, one featured tile */
.header__left,.nav{align-self:stretch}
.nav{align-items:center}
.mega{display:flex;align-items:center;align-self:stretch}
.mega__trigger{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:0 .9rem;font-size:1rem;font-weight:400;letter-spacing:.01em;position:relative}
.mega__trigger svg{transition:transform .25s var(--ease)}
.mega.is-open .mega__trigger svg{transform:rotate(180deg)}
.mega__trigger::after{content:"";position:absolute;left:.9rem;right:.9rem;bottom:8px;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.mega.is-open .mega__trigger::after{transform:scaleX(1)}
.mega__panel{position:absolute;z-index:4;left:0;right:0;top:100%;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:none;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .22s,transform .22s var(--ease),visibility 0s .22s}
.mega.is-open .mega__panel{opacity:1;visibility:visible;transform:none;transition:opacity .22s,transform .22s var(--ease)}
.mega__inner{max-width:var(--max);margin:0 auto;padding:34px var(--gutter) 40px;display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) minmax(220px,300px);gap:clamp(24px,4vw,72px);align-items:start}
.mega h3{font-family:var(--font);font-size:.8125rem;font-weight:500;letter-spacing:0;color:var(--gold);margin-bottom:.8rem}
/* animated underline: a gold line grows from the left under the text (background-size can be transitioned, text-decoration cannot) */
.mega ul a{display:inline-block;padding:.3rem 0 .38rem;font-size:1.0625rem;background:linear-gradient(var(--gold),var(--gold)) 0 100%/0 1px no-repeat;transition:color .2s,background-size .4s var(--ease)}
.mega ul a:hover,.mega ul a:focus-visible{color:var(--accent-hi);background-size:100% 1px}
.mega__all{display:inline-block;margin-top:1rem}
.mega__feature{display:block;position:relative}
.mega__feature img{width:100%;aspect-ratio:4/5;object-fit:cover}
.mega__feature span{display:block;margin-top:.7rem;font-size:1.125rem;font-weight:400}
.mega__feature:hover span{color:var(--accent-hi)}

/* account dropdown: opens on hover (real pointers), on click/tap, and with the keyboard */
.acct{position:relative}
.acct::after{content:"";position:absolute;left:-24px;right:-24px;top:100%;height:14px}   /* keeps the hover alive across the gap */
.acct-menu{position:absolute;z-index:5;top:calc(100% + 8px);right:-12px;width:272px;padding:22px 22px 12px;background:var(--panel);border:1px solid var(--line);box-shadow:none;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s var(--ease),visibility 0s .2s}
.acct.is-open .acct-menu{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s var(--ease)}
.acct-menu__title{font-family:var(--font-display);font-size:1.375rem;font-weight:400;line-height:1.2;letter-spacing:-.01em}
.acct-menu__sub{margin-top:.2rem;font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.acct-menu__cta{width:100%;margin:1rem 0 .4rem}
.acct-menu__cta--2{margin:.4rem 0 .6rem}
.acct-menu__link{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;font-size:1rem;text-align:left;color:var(--ink);background:none;border:0;transition:color .2s}
.acct-menu__link:hover{color:var(--accent-hi)}
.acct-menu__link span{color:var(--muted);font-size:.875rem}
.acct-menu .acct-menu__title+.acct-menu__link,.acct-menu__sub+.acct-menu__link{margin-top:.6rem}
.acct-menu hr{border:0;border-top:1px solid var(--line-soft);margin:.4rem 0}

.header__inner{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.menu-btn span{display:block;width:22px;height:1.5px;background:var(--ink);transition:transform .35s var(--ease)}
.menu-btn[aria-expanded=true] span:first-child{transform:translateY(3.75px) rotate(45deg)}
.menu-btn[aria-expanded=true] span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
.bag-count{position:absolute;top:4px;right:2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--accent);color:var(--on-accent);font-size:.6875rem;line-height:17px;text-align:center;font-weight:600}

/* ---------- Hero ---------- */
/* full-bleed hero: photo edge to edge, a light veil on the left keeps the dark text readable */
.hero{position:relative;height:clamp(560px,calc(100svh - var(--header-h) - 42px),860px);overflow:hidden;background:var(--bg-deep)}
.hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,color-mix(in oklab,var(--color-paper) 95%,transparent) 0%,color-mix(in oklab,var(--color-paper) 86%,transparent) 26%,color-mix(in oklab,var(--color-paper) 42%,transparent) 46%,transparent 64%)}
.hero__copy{position:relative;z-index:2;height:100%;width:min(52%,840px);display:flex;flex-direction:column;justify-content:flex-end;gap:1.5rem;padding:var(--gutter) clamp(24px,4vw,64px) clamp(56px,7vw,104px) var(--edge)}
.hero__copy p{max-width:32ch;font-size:1.25rem;color:var(--text-2)}
.hero__cta{display:flex;align-items:center;gap:1.8rem;flex-wrap:wrap;margin-top:.6rem}
.hero__media{position:absolute;inset:0;overflow:hidden;z-index:0}   /* own stacking context: slide z-indexes stay below the veil and the text */
/* hero carousel: Swiper handles layout, drag, autoplay, a11y; this is only the look */
.hero__swiper{position:absolute;inset:0}
.hero__slide{overflow:hidden}
.hero__par{position:absolute;top:0;bottom:0;left:-9%;right:-9%}
.hero__slide img,.hero__slide video{width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
/* the text overlay must not swallow swipes: only its links and buttons take the pointer */
.hero__copy{pointer-events:none}
.hero__copy a,.hero__copy button{pointer-events:auto}
/* Ken Burns on every slide that is on screen (active, or sliding out) */
.hero__slide[data-kb=in].swiper-slide-visible img{animation:kbIn 9s linear forwards}
.hero__slide[data-kb=out].swiper-slide-visible img{animation:kbOut 9s linear forwards}
@keyframes kbIn{from{transform:scale(1)}to{transform:scale(1.1) translate(-1.2%,-.8%)}}
@keyframes kbOut{from{transform:scale(1.1) translate(1.2%,.5%)}to{transform:scale(1)}}
/* autoplay progress lives in the indicators (mobile segments, desktop dots), fed by Swiper's autoplayTimeLeft */
/* right-side story dots (desktop): white rings, the active one fills around while its slide plays */
.hero__dots{position:absolute;z-index:3;right:clamp(14px,1.8vw,26px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:8px}
.hero__dot{width:24px;height:24px;padding:0;background:none;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.hero__dot i{width:15px;height:15px;border-radius:50%;border:2px solid color-mix(in oklab,var(--color-cream) 90%,transparent);background:transparent;position:relative;overflow:hidden;transform:scale(.73);transition:transform .25s var(--ease);filter:drop-shadow(0 0 1.5px color-mix(in oklab,var(--color-paper-2) 45%,transparent));box-sizing:border-box}
.hero__dot:hover i{transform:scale(.85)}
.hero__dot.is-on i{transform:none}
.hero__dot i::after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(var(--color-cream) calc(var(--p,0)*1turn),transparent 0)}
.hero__dot.is-done i::after{background:var(--color-cream)}
.ctrl{width:44px;height:44px;display:grid;place-items:center;color:var(--gold);transition:color .25s,opacity .25s}
.ctrl:hover{color:var(--gold-hi)}
.ctrl:disabled,.ctrl.is-disabled{color:var(--color-rule);cursor:default;pointer-events:none}
.hero .i-play{display:none}
.hero.is-paused .i-pause{display:none}
.hero.is-paused .i-play{display:block}
/* per-slide caption: swapped with a fade on every slide change, Instagram-story style */
.hero__copy h1,.hero__copy p,.hero__cap-link{transition:opacity .28s ease,translate .28s ease}
.hero.is-swapping .hero__copy h1,.hero.is-swapping .hero__copy p,.hero.is-swapping .hero__cap-link{opacity:0;translate:0 12px}
@media (prefers-reduced-motion:reduce){.hero__copy h1,.hero__copy p,.hero__cap-link{transition:none}}


/* ---------- Sections ---------- */
.section{padding:clamp(56px,8vw,112px) 0}
.section--marble{background:var(--bg-deep);border-block:1px solid var(--line)}
.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:clamp(24px,3.5vw,44px);flex-wrap:wrap}
.section__tools{display:flex;align-items:center;gap:1.4rem}
.ctrls{display:flex;border:1px solid var(--line)}
.ctrls .ctrl+.ctrl{border-left:1px solid var(--line)}

/* collections rail */
.rail{padding:0 var(--edge)}   /* beats .swiper{padding:0}: loaded later */
.coll{width:clamp(220px,21vw,380px)}
.coll a{display:block}
.coll__img{display:block;aspect-ratio:4/5;background:var(--bg-deep);overflow:hidden;outline:1px solid color-mix(in oklab,var(--color-ink) 8%,transparent);outline-offset:-1px}
.coll__img img{width:100%;height:100%;object-fit:cover}
.coll__name{display:block;font-family:var(--font-display);font-size:1.5rem;font-weight:400;color:var(--ink);line-height:1.2;margin-top:1rem;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px;text-decoration-color:transparent;transition:text-decoration-color .3s,color .3s}
.coll a:hover .coll__name{text-decoration-color:var(--gold);color:var(--gold-hi)}
/* Swiper positions its scrollbar absolutely (bottom:3px, width:98%) when it carries .swiper-scrollbar-horizontal.
   Ours lives outside the carousel, in normal flow, so those defaults are reset here. */
.rail__scrollbar,.rail__scrollbar.swiper-scrollbar,.rail__scrollbar.swiper-scrollbar-horizontal{position:relative;left:auto;bottom:auto;z-index:auto;width:100%;height:3px;margin-top:clamp(28px,3vw,40px);background:var(--line-soft);border-radius:0}
.rail__scrollbar .swiper-scrollbar-drag{background:var(--accent);border-radius:0;cursor:grab}


/* story */
.story{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(560px,min(86vh,780px))}
.story__img{position:relative;min-height:0;overflow:hidden}
.story__img img{width:100%;height:100%;object-fit:cover;object-position:50% 60%}
.story__img::after{content:"";position:absolute;inset:clamp(12px,1.6vw,22px);border:1px solid color-mix(in oklab,var(--color-cream) 55%,transparent);pointer-events:none}
.story__text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1.4rem;padding:clamp(40px,7vw,112px);background:var(--bg-deep)}
.story__text p{max-width:46ch;color:var(--text-2);font-size:1.125rem;line-height:1.75}
.story__text .btn{margin-top:.8rem}


/* section lead + secondary heading size */
.section__lead{margin-top:.6rem;font-size:1.125rem;color:var(--muted);max-width:44ch}
.section__head--sm h2{font-size:clamp(1.6rem,2.4vw,2.25rem)}


/* slim "shop for" strip */
.shopfor{background:var(--bg);border-bottom:1px solid var(--line)}
.shopfor__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(12px,2vw,32px);padding-block:clamp(28px,4vw,56px)}
.shopfor__card{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center;background:var(--bg-deep);border:1px solid var(--line-soft)}
.shopfor__card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.shopfor__text{display:block;padding:clamp(14px,2vw,32px)}
.shopfor__text b{display:block;font-family:var(--font-display);font-size:clamp(1.5rem,2.2vw,2.125rem);font-weight:400;color:var(--ink);line-height:1.1;letter-spacing:-.015em}
.shopfor__text span{display:block;margin-top:.5rem;font-size:.9375rem;color:var(--muted);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:var(--line);transition:color .25s,text-decoration-color .25s}
.shopfor__card:hover{border-color:var(--gold)}
.shopfor__card:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}
.shopfor__card:hover .shopfor__text span{color:var(--gold-hi);text-decoration-color:var(--gold-hi)}

/* instagram */
.insta{background:var(--bg-deep);border-bottom:1px solid var(--line)}
.insta__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:clamp(8px,1vw,16px)}
.insta__tile{position:relative;display:block;aspect-ratio:325/493;overflow:hidden;background:var(--bg)}
.insta__tile img{width:100%;height:100%;object-fit:cover}
.insta__ig{position:absolute;left:10px;bottom:10px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:color-mix(in oklab,var(--color-paper-2) 92%,transparent);color:var(--accent);transition:background-color .25s}
.insta__tile:hover .insta__ig,.insta__tile:focus-visible .insta__ig{background:var(--color-paper-2)}
@media (max-width:1100px){.insta__grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.insta__grid{grid-template-columns:repeat(2,1fr)}}



/* ---------- Footer (one compact block: brand, links, visit, contact) ---------- */
.footer{background:var(--bg-void);border-top:1px solid var(--color-rule);color:var(--muted);padding:clamp(40px,4.5vw,64px) 0 22px}
.footer__grid{display:grid;grid-template-columns:minmax(200px,1.6fr) repeat(3,minmax(0,1fr));gap:2rem clamp(20px,2.6vw,48px);padding-bottom:clamp(28px,3.5vw,44px)}
.footer__brand img{height:40px;width:auto}
.footer__brand p{margin-top:.9rem;font-size:.9375rem;max-width:22ch}
.footer h2{font-family:var(--font);font-size:.8125rem;font-weight:500;letter-spacing:0;line-height:1.4;color:var(--gold);margin-bottom:.7rem}
.footer nav a,.footer__grid>div>a,.footer__social a{display:flex;align-items:center;min-height:34px;font-size:.9375rem;overflow-wrap:break-word}
.footer address{font-style:normal;font-size:.9375rem;line-height:1.75;margin-bottom:.3rem}
.footer__social{display:flex;gap:1.2rem}
.footer a:hover{color:var(--ink)}
.footer__legal{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:18px;border-top:1px solid var(--line-soft);font-size:.875rem}
.footer__legal a{display:inline-flex;align-items:center;min-height:32px;padding:0 .2rem;letter-spacing:0}

/* ---------- animated underline (shared by the text links) ----------
   A gold line grows from the left under the text on hover / focus, the same as the header menu (.nav > a) and the mega menu.
   It is a background (background-size can be transitioned, text-decoration cannot). --ul = colour of the growing line,
   --ul-rest = optional resting line (links that are underlined at rest), --ul-y = where the line sits (default: bottom edge). */
.textlink,.link-btn,.contact-list a.act,.fmore,
.crumbs a,.footer nav a,.footer__grid>div>a,.footer__social a,.footer__legal a,.footer__link{
  --_ul:var(--ul,var(--gold));
  background-image:linear-gradient(var(--_ul),var(--_ul)),linear-gradient(var(--ul-rest,transparent),var(--ul-rest,transparent));
  background-size:0 1px,100% 1px;
  background-position:0 var(--ul-y,100%);
  background-repeat:no-repeat;
  text-decoration:none;
  transition:color .25s,background-size .4s var(--ease);
}
.textlink:hover,.link-btn:hover,.contact-list a.act:hover,.fmore:hover,
.crumbs a:hover,.footer nav a:hover,.footer__grid>div>a:hover,.footer__social a:hover,.footer__legal a:hover,.footer__link:hover,
.textlink:focus-visible,.link-btn:focus-visible,.contact-list a.act:focus-visible,.fmore:focus-visible,
.crumbs a:focus-visible,.footer nav a:focus-visible,.footer__grid>div>a:focus-visible,.footer__social a:focus-visible,.footer__legal a:focus-visible,.footer__link:focus-visible{background-size:100% 1px,100% 1px}
/* underlined at rest: the line is there, the gold one grows over it */
.textlink,.link-btn,.contact-list a.act,.fmore,.footer__link{--ul-rest:var(--line);padding-bottom:.3em}
/* boxes with a min-height and centred text: put the line just under the text, not at the bottom edge */
.footer nav a,.footer__grid>div>a,.footer__social a,.footer__legal a,.fmore{--ul-y:calc(50% + .8em)}
.footer nav a,.footer__grid>div>a,.footer__social a{width:fit-content}
.fmore{padding-bottom:0}
.crumbs a{padding-bottom:2px}
.page-head.has-bg .crumbs a{--ul:var(--gold-foil)}
@media (prefers-reduced-motion:reduce){.textlink,.link-btn,.contact-list a.act,.fmore,.crumbs a,.footer a{transition:color .25s}}

/* ---------- Responsive ---------- */
@media (max-width:640px){
  .footer__legal{flex-direction:column;align-items:flex-start;gap:.2rem}
}
@media (max-width:1000px){
  .nav{display:none}
  .menu-btn{display:grid}
  /* narrow screens: photo on top, text below (text over a photo would be unreadable) */
  .hero{display:grid;grid-template-columns:1fr;height:auto;overflow:visible}
  .hero::after{display:none}
  .hero__media{position:relative;inset:auto;order:-1;aspect-ratio:4/3;min-height:0}
  .hero__copy{width:auto;height:auto;padding:32px var(--gutter) 44px;justify-content:flex-start}
  .story{grid-template-columns:1fr;grid-template-rows:none}
  .story__img img{height:auto;aspect-ratio:4/5}
}
@media (max-width:1280px){.footer__grid{grid-template-columns:repeat(3,minmax(0,1fr))}.footer__brand{grid-column:1/-1}}
@media (max-width:1000px){.shopfor__grid{grid-template-columns:1fr}}
@media (max-width:640px){
  :root{--header-h:68px}
  .logo img{height:32px}
  .coll{width:62vw}
  .section__tools{display:none} /* rails swipe on touch; the arrows used to wrap onto their own row under the title */
  .hero__cta .btn{width:100%}
  .header__right .acct{display:none}
  .footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__grid>div:last-child{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){
  .hero__slide img,.hero__slide video{animation:none!important}
  /* no movement, but state changes (colour, border, opacity) stay readable */
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-property:color,background-color,border-color,text-decoration-color,opacity,box-shadow!important}
  html{scroll-behavior:auto}
}
