/* HELLSING – shared stylesheet (homepage). Brand name is a placeholder. */
:root{--display:'Italiana',Georgia,serif;--body:'Jost',system-ui,sans-serif;--ease:cubic-bezier(.22,.61,.36,1)}
[data-theme=light]{--bg:#e2d6b8;--surface:#faf6ea;--alt:#d9cba6;--ink:#2a2520;--muted:#574c3d;--line:#a89877}
[data-theme=dark]{--bg:#1c1c1c;--surface:#1a1a1a;--alt:#303030;--ink:#f3f3f1;--muted:#b4b4b0;--line:#7d7d7a}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;background:var(--bg)}
body{color:var(--ink);font:300 1rem/1.75 var(--body);transition:color .6s var(--ease);-webkit-font-smoothing:antialiased}
html:not(.chosen) body{overflow:hidden}
h1,h2{font:400 1em/1.1 var(--display)}
a{color:inherit;text-decoration:none}
:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
.wrap{width:min(1100px,100% - 3rem);margin-inline:auto}

/* Theme gate (first visit only) */
.gate{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2rem;padding:1.5rem;background:color-mix(in srgb,var(--bg) 55%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:opacity .7s var(--ease),visibility .7s}
.chosen .gate{opacity:0;visibility:hidden;pointer-events:none}
.gate-title{font:400 clamp(1.7rem,4vw,2.6rem)/1 var(--display)}
.gate-choices{display:flex;gap:1.25rem;justify-content:center}
.choice{width:min(210px,42vw);aspect-ratio:1;display:grid;place-content:center;justify-items:center;gap:1rem;border:1px solid var(--line);border-radius:3px;cursor:pointer;font:inherit;font-size:.95rem;letter-spacing:.08em;transition:transform .4s var(--ease),border-color .4s}
.choice[data-pick=light]{background:#fffdfa;color:#2a2520}
.choice[data-pick=dark]{background:#111;color:#f3f3f1}
.choice:hover,.choice:focus-visible{transform:translateY(-4px);border-color:var(--ink)}
.choice svg,.toggle svg{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
.choice svg{width:44px;height:44px}
.skip{background:none;border:0;color:var(--muted);font:inherit;font-size:.9rem;cursor:pointer;text-decoration:underline;text-underline-offset:4px}

/* Header */
header{position:fixed;top:0;inset-inline:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.brand{font:400 1.6rem/1 var(--display);letter-spacing:.3em}
nav{display:flex;gap:2.2rem;font-size:.95rem;letter-spacing:.04em}
nav a:hover{color:var(--muted)}
.toggle{width:38px;height:38px;display:grid;place-items:center;background:none;color:var(--ink);border:1px solid var(--line);border-radius:50%;cursor:pointer}
.toggle svg{width:18px;height:18px}
[data-theme=light] .toggle .i-sun,[data-theme=dark] .toggle .i-moon{display:none}

/* Hero: one orchestrated entrance after the theme is chosen */
.hero{min-height:100svh;display:grid;place-content:center;justify-items:center;text-align:center;gap:1.5rem;padding:6rem 1.5rem 3rem}
.hero h1{font-size:clamp(3rem,10vw,7rem)}
.hero p{max-width:30rem;color:var(--muted)}
.btn{display:inline-block;padding:.9rem 2.4rem;border:1px solid var(--ink);letter-spacing:.06em;transition:background .4s,color .4s}
.btn:hover{background:var(--ink);color:var(--bg)}
.hero>*{opacity:0;transform:translateY(14px);transition:opacity 1.1s var(--ease),transform 1.1s var(--ease)}
.chosen .hero>*{opacity:1;transform:none}
.chosen .hero>:nth-child(2){transition-delay:.25s}
.chosen .hero>:nth-child(3){transition-delay:.5s}

/* Spider lily bloom: --s stem, --b petals, --f stamens (set by script.js on scroll) */
.bloom{height:320vh}
.stage{position:sticky;top:0;height:100svh;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:3rem}
.stage svg,.lily svg{width:100%;max-height:86svh;fill:none;stroke:var(--ink);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.stage h2{font-size:clamp(2.2rem,5vw,3.8rem);margin-bottom:1.2rem}
.stage p{max-width:26rem;color:var(--muted)}
.stem{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--s,0))}
.petal{stroke:var(--ink);fill:rgb(139 10 20/0);transition:fill .9s var(--ease),stroke .9s var(--ease);transform:translate(200px,210px) rotate(calc(var(--a) * (.12 + .88 * var(--b,0)) * 1deg)) scale(calc(.1 + .9 * var(--b,0)));opacity:calc(var(--b,0) * 4)}
.red .petal{fill:rgb(139 10 20/.92);stroke:#b3131f}
.stam{transform:translate(200px,210px) rotate(calc(var(--a) * 1deg))}
.stam path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--f,0))}
.stam circle{fill:var(--ink);stroke:none;opacity:var(--f,0)}

/* Sections */
.pad{padding:7rem 0}
.pad h2{font-size:clamp(2rem,4.5vw,3.2rem);margin-bottom:.8rem}
.pad>.wrap>p{color:var(--muted);max-width:34rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-top:3rem}
.card{display:block;color:var(--ink)}
.frame{aspect-ratio:3/4;overflow:hidden;border:1px solid var(--line);background:linear-gradient(180deg,var(--alt),var(--surface));transition:border-color .6s var(--ease)}
.photo{width:100%;height:100%;background:var(--img) center/cover;transition:transform 1.4s var(--ease)}
.label{padding-top:.9rem;transition:opacity .6s var(--ease)}
.card:hover .photo,.card:focus-visible .photo{transform:scale(1.04)}
.card:hover .frame,.card:focus-visible .frame{border-color:var(--ink)}
.card:hover .label,.card:focus-visible .label{opacity:.7}
.pad h2.more{margin-top:6rem}
.card h3{font:400 1.5rem/1.2 var(--display)}
.card span{color:var(--muted);font-size:.9rem}
.story{background:color-mix(in srgb,var(--surface) 55%,transparent);text-align:center}
.story p{margin-inline:auto;font:400 clamp(1.4rem,3vw,2rem)/1.5 var(--display);color:var(--ink)}
.join form{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}
.join input{flex:1 1 16rem;padding:.9rem 1rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);font:inherit}
.join button{padding:.9rem 2.2rem;background:var(--ink);color:var(--bg);border:0;font:inherit;letter-spacing:.06em;cursor:pointer}
footer{padding:2.5rem 1.5rem;text-align:center;color:var(--muted);font-size:.9rem;border-top:1px solid var(--line)}

@media(max-width:760px){nav{display:none}.stage{grid-template-columns:1fr;grid-template-rows:1fr auto;gap:1rem;text-align:center}.stage p{margin-inline:auto}.stage svg{max-height:56svh}.pad{padding:5rem 0}}
@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;scroll-behavior:auto!important}.hero>*{opacity:1;transform:none}}

/* Gradient backgrounds: beige to khaki (light), gray to black (dark); the two layers crossfade */
body::before,body::after{content:'';position:fixed;inset:0;z-index:-1;transition:opacity .6s var(--ease)}
body::before{background:linear-gradient(165deg,#f5f0dc,#d2c49c)}
body::after{background:linear-gradient(165deg,#464646,#080808)}
[data-theme=light] body::after,[data-theme=dark] body::before{opacity:0}

/* Contact page */
nav [aria-current]{text-decoration:underline;text-underline-offset:6px}
.contact{min-height:100svh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4rem;padding:8rem 0 4rem}
.contact h1{font-size:clamp(2.6rem,7vw,4.5rem);margin-bottom:1rem}
.contact p{color:var(--muted);max-width:30rem}
.contact dl{display:grid;grid-template-columns:5rem 1fr;gap:.4rem 1rem;margin:2rem 0}
.contact dt{color:var(--muted)}
.contact form{display:grid;gap:.8rem;max-width:30rem}
.contact input,.contact textarea{padding:.9rem 1rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);font:inherit}
.contact textarea{min-height:8rem;resize:vertical}
.contact button{justify-self:start;padding:.9rem 2.2rem;background:var(--ink);color:var(--bg);border:0;font:inherit;letter-spacing:.06em;cursor:pointer}
@media(max-width:760px){.contact{grid-template-columns:1fr;gap:2rem;padding-top:6rem}.lily{order:-1;max-width:220px;margin-inline:auto}}

/* Contact options and sub-pages */
.contact p+p{margin-top:1rem}
.boxes{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.box{display:flex;flex-direction:column;justify-content:space-between;gap:2.2rem;min-height:12rem;padding:1.4rem;background:var(--surface);border:1px solid var(--line);transition:border-color .4s var(--ease),transform .4s var(--ease)}
.box:hover,.box:focus-visible{border-color:var(--ink);transform:translateY(-3px)}
.box h2{font-size:1.7rem;margin-bottom:.1rem}
.box span{color:var(--muted);font-size:.9rem}
.box svg,.avatar svg{width:52px;height:65px;fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;overflow:visible;--s:1;--b:1;--f:1}
.numbers{display:grid;gap:.8rem;margin:2rem 0;max-width:30rem}
.numbers a{display:flex;justify-content:space-between;align-items:baseline;padding:1.1rem 1.4rem;background:var(--surface);border:1px solid var(--line);font:400 1.5rem/1.2 var(--display);transition:border-color .4s var(--ease)}
.numbers a:hover{border-color:var(--ink)}
.numbers span{font:300 .9rem var(--body);color:var(--muted)}
.profile{display:flex;align-items:center;gap:1.4rem;margin:2rem 0;padding:1.4rem;max-width:30rem;background:var(--surface);border:1px solid var(--line)}
.avatar{flex:none;width:92px;height:92px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}
.profile h2{font-size:1.6rem}
.profile p{margin:0}

/* Logo: the light seal shows in the light theme, the dark seal in the dark theme */
.brand{display:flex;align-items:center;gap:.8rem}
.logo{width:40px;height:40px}
[data-theme=dark] .logo-light,[data-theme=light] .logo-dark{display:none}
.avatar{border:0}
.avatar .logo{width:92px;height:92px}
@media(max-width:760px){header{flex-wrap:wrap;row-gap:.5rem}nav{display:flex;order:3;width:100%;justify-content:center;gap:1.1rem;font-size:.82rem}}

/* Five category cards sit in one row on desktop and two per row on phones */
.grid.five{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}

/* Card photos blend into each theme: softened colour, a gentle tint and feathered edges.
   Tune these three values per theme: --tint (more opacity = more blended), --feather, --photo-filter */
[data-theme=light]{--tint:rgb(222 208 172/.30);--feather:rgb(226 214 184/.55);--photo-filter:saturate(.85) contrast(.9) brightness(1.03)}
[data-theme=dark]{--tint:rgb(14 14 14/.42);--feather:rgb(28 28 28/.6);--photo-filter:saturate(.7) contrast(.9) brightness(.85)}
.frame{position:relative;border-color:color-mix(in srgb,var(--line) 45%,transparent)}
.photo{filter:var(--photo-filter)}
.frame::after{content:'';position:absolute;inset:0;pointer-events:none;background:var(--tint);box-shadow:inset 0 0 28px 8px var(--feather);transition:opacity .9s var(--ease)}
.card:hover .frame::after,.card:focus-visible .frame::after{opacity:.55}

/* Occasion pages */
.listing{padding:8rem 0 5rem}
.listing h1{font-size:clamp(2.6rem,7vw,4.5rem);margin-bottom:.8rem}
.listing p{color:var(--muted);max-width:34rem}
.listing .crumbs{max-width:none;font-size:.9rem;margin-bottom:1.5rem}
.crumbs a:hover{text-decoration:underline;text-underline-offset:4px}
.products{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.empty{margin-top:3rem}
@media(max-width:760px){.listing{padding-top:7rem}.products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}

/* Occasion pages: a title for each category, with its pieces beneath (built by script.js from products.js) */
.catalog .cat{margin-top:3.5rem}
.catalog .cat:first-child{margin-top:3rem}
.catalog h2{font-size:clamp(1.6rem,3.2vw,2.3rem);padding-bottom:.7rem;border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent)}
.catalog .grid{margin-top:1.5rem}
.catalog .soon{margin-top:1.5rem;color:var(--muted)}

/* Product pages: one page per piece */
.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem 4rem;align-items:start;padding:8rem 0 5rem}
.product .crumbs{grid-column:1/-1;font-size:.9rem}
img.photo{display:block;object-fit:cover}

/* 3-image slider */
.slides{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
.slides::-webkit-scrollbar{display:none}
.slides .photo{flex:0 0 100%;width:100%;height:100%;scroll-snap-align:start}
.slide-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:36px;height:36px;display:grid;place-items:center;background:color-mix(in srgb,var(--bg) 78%,transparent);color:var(--ink);border:1px solid var(--line);border-radius:50%;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:border-color .3s var(--ease),background .3s var(--ease)}
.slide-btn:hover,.slide-btn:focus-visible{border-color:var(--ink);background:var(--bg)}
.slide-btn.prev{left:.8rem}
.slide-btn.next{right:.8rem}
.dots{display:flex;justify-content:center;gap:.55rem;margin-top:.9rem}
.dots button{width:7px;height:7px;padding:0;border-radius:50%;border:1px solid var(--ink);background:transparent;cursor:pointer;opacity:.4;transition:opacity .3s,background .3s}
.dots button[aria-current=true]{background:var(--ink);opacity:1}

/* Product specifications & description */
.details h1{font-size:clamp(2.2rem,5vw,3.6rem);margin-bottom:.6rem}
.details .price{font-size:1.2rem;margin-bottom:1.4rem}
.specs{display:grid;grid-template-columns:6.5rem 1fr;gap:.45rem 1rem;margin-bottom:1.5rem;padding:1.1rem 0;border-block:1px solid color-mix(in srgb,var(--line) 45%,transparent);font-size:.95rem}
.specs dt{color:var(--muted)}
.specs dd{color:var(--ink)}
.details p{color:var(--muted);max-width:30rem}
.details .btn{margin-top:2rem}

/* Common text-only size chart */
.size-chart{grid-column:1/-1;margin-top:2.5rem;padding-top:2.5rem;border-top:1px solid color-mix(in srgb,var(--line) 45%,transparent)}
.size-chart h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:.35rem}
.size-chart .note{color:var(--muted);font-size:.9rem;margin-bottom:1.4rem}
.table-wrap{overflow-x:auto}
.size-table{width:100%;min-width:560px;border-collapse:collapse;text-align:left;font-size:.95rem}
.size-table th,.size-table td{padding:.85rem 1rem;border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent)}
.size-table th{font-weight:400;color:var(--muted);letter-spacing:.04em}

@media(max-width:760px){.product{grid-template-columns:1fr;gap:1.5rem;padding-top:7rem}.product .gallery{max-width:420px;width:100%}}