/* =========================================================
   OnixNFC
   Colours and sizes live here. Change them once, they change
   across the whole site.
   ========================================================= */
:root {
  --paper: #faf8f4;      /* warm white, page background */
  --white: #fffefc;      /* lighter panels */
  --linen: #f1ede6;      /* soft panels behind graphics */
  --ink: #1f1e1b;        /* charcoal, text and buttons */
  --onyx: #191815;       /* dark sections */
  --stone: #6a665d;      /* secondary text */
  --mute: #979185;       /* second half of headlines */
  --line: #e3ddd1;       /* hairlines */
  --gold: #c2a063;       /* soft gold touches */
  --gold-deep: #8a6b33;  /* gold dark enough to read on white */
  --gold-light: #e0c793; /* gold on dark */
  --radius: 22px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(80px, 11vw, 152px);
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
[id] { scroll-margin-top: 75px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 20; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
h1, h2 { font-weight: 700; letter-spacing: -0.04em; word-spacing: .05em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.3vw, 5.6rem); line-height: .99; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.04; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
h1 span, h2 span { color: var(--mute); }
h1 span, h2 span { display: block; }
.dots { aspect-ratio: 2 / 1; }
.text { color: var(--stone); max-width: 48ch; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 32px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 14px;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: #3a3731; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
  transition: text-decoration-color .2s ease;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 244, .94); }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(250, 248, 244, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 4px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.045em; text-decoration: none; }
.brand small { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--stone); }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 40px); }
.nav a { padding: 12px 0; text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--stone); transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }

.nav .lang { color: var(--ink); font-weight: 600; }
.nav .lang:hover { color: var(--gold-deep); }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: min(800px, calc(100svh - 76px));
  padding-block: 32px 56px;
}
.hero .lead { margin: 28px 0 40px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--stone); max-width: 34ch; text-wrap: balance; }
.hero svg { width: 100%; max-height: 720px; overflow: visible; }

/* Hero graphic: one calm movement */
.float { animation: float 6s ease-in-out infinite alternate; }
.ring { animation: ring 3.6s ease-in-out infinite; }
.ring-2 { animation-delay: .35s; }
.ring-3 { animation-delay: .7s; }
.hs { opacity: 0; animation: appear .5s ease-out forwards; }
.hs-1 { animation-delay: .7s; } .hs-2 { animation-delay: .95s; } .hs-3 { animation-delay: 1.2s; }
.hs-4 { animation-delay: 1.45s; } .hs-5 { animation-delay: 1.7s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(14px); } }
@keyframes ring { 0%, 100% { opacity: .2; } 45% { opacity: 1; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Dark sections ---------- */
.dark { background: var(--onyx); color: #f6f2ea; }
.dark .text { color: #b8b1a4; }
.dark h2 span { color: #8d8679; }

/* ---------- Chip (home) ---------- */
.chip { overflow: hidden; }
.chip .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.chip .text { margin-top: 24px; }
.facts { margin-top: 48px; border-top: 1px solid #38352f; }
.facts li { padding: 20px 0; border-bottom: 1px solid #38352f; display: grid; grid-template-columns: 10.5rem 1fr; gap: 16px; align-items: baseline; }
.facts b { font-weight: 600; color: var(--gold-light); letter-spacing: -0.01em; }
.facts span { color: #b8b1a4; }
.chip-art { width: 100%; max-width: 600px; margin-inline: auto; }

/* ---------- Services (home) ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); margin-top: clamp(40px, 5vw, 72px); }
.panel { background: var(--linen); border-radius: var(--radius); overflow: hidden; }
.service h3 { margin-top: 28px; }
.service .text { margin: 10px 0 18px; }

/* ---------- Pack summary (home) ---------- */
.band { background: var(--white); border-block: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 72px); }
.trio li { padding-inline: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.trio li:first-child { padding-left: 0; border-left: 0; }
.trio li:last-child { padding-right: 0; }
.trio svg { width: 100%; max-width: 300px; }
.trio h3 { margin-top: 24px; }
.price { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-top: 12px; white-space: nowrap; }
.per { color: var(--stone); margin-top: 10px; }

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about .text { margin-top: 24px; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.contact .text { margin: 24px 0 36px; }
.details div { padding: 20px 0; border-top: 1px solid #38352f; display: grid; grid-template-columns: 7rem 1fr; gap: 16px; align-items: baseline; }
.details div:last-child { border-bottom: 1px solid #38352f; }
.details dt { color: #a39c8f; }
.details dd { font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.details a { text-decoration: none; }
.details a:hover { color: var(--gold-light); }

/* ---------- Product page ---------- */
.product .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.product + .product { padding-top: 0; scroll-margin-top: 120px; }
.product .panel { display: grid; place-items: center; min-height: clamp(340px, 42vw, 580px); }
.product .panel img { width: min(82%, 440px); }
.product .panel.two { grid-template-columns: 1fr 1fr; }
.product .panel.two { padding-inline: 3%; }
.product .panel.two img { width: 100%; }
.product .text { margin-top: 16px; }
.specs { margin: 32px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--stone); }
.specs dd { font-weight: 500; }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.buy .price { margin: 0; }
.buy .per { margin-top: 8px; }

.inside .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.inside .text { margin-top: 24px; }
.layers li { display: grid; grid-template-columns: minmax(0, 330px) 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.layers li + li { margin-top: -14px; }
.layers p { color: #b8b1a4; margin-top: 4px; }
.layers h3 { font-size: 1.25rem; }

.closing { text-align: center; }
.closing .text { margin: 20px auto 36px; }

/* ---------- Packs page ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.packs.pair { grid-template-columns: repeat(2, 1fr); }
.pack { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 40px); }
.pack > svg { width: 100%; margin-bottom: 32px; }
.pack .per { margin-bottom: 4px; }
.save { color: var(--gold-deep); font-weight: 600; margin-bottom: 28px; }
.pack .btn { margin-top: auto; width: 100%; }
.pack.best { background: var(--onyx); border-color: var(--onyx); color: #f6f2ea; }
.pack.best .per { color: #b8b1a4; }
.pack.best .save { color: var(--gold-light); }
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.pair .pack > svg { background: var(--linen); border-radius: 14px; }

.single .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.single .panel { display: grid; place-items: center; }
.single .panel img { width: min(72%, 400px); }
.single .text { margin: 20px 0 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 64px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--gold); padding-top: 24px; }
.steps h3::before { content: counter(s) ". "; color: var(--gold-light); }
.steps p { color: #b8b1a4; margin-top: 8px; }

.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 64px); }
.included li { border-top: 1px solid var(--line); padding-top: 20px; position: relative; }
.included li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--gold); }
.included p { color: var(--stone); margin-top: 4px; }
.vat { color: var(--stone); margin-top: 48px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #38352f; background: var(--onyx); color: #b8b1a4; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; padding-block: 40px; }
.footer .brand { color: #f6f2ea; }
.footer .brand small { color: #a39c8f; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer nav a { text-decoration: none; padding: 6px 0; }
.footer nav a:hover { color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-block: 40px 56px; }
  .hero svg { max-width: 560px; margin-inline: auto; }
  .chip .wrap, .about .wrap, .contact .wrap, .product .wrap, .inside .wrap, .single .wrap, .intro { grid-template-columns: 1fr; }
  .contact .wrap { align-items: start; }
  .chip-art { max-width: 420px; }
  .packs { grid-template-columns: 1fr; }
  .packs .dots { aspect-ratio: auto; max-width: 420px; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .header .wrap { min-height: 64px; }
  .brand { font-size: 1.3rem; }
  .brand small { font-size: .85rem; }
  .nav a { font-size: .9375rem; }
  .hero .wrap { padding-block: 28px 40px; }
  .hero .lead { margin: 20px 0 28px; }
  .btn { width: 100%; }
  .services, .trio, .steps, .included, .packs.pair { grid-template-columns: 1fr; }
  .services { gap: 48px; }
  .trio { gap: 0; }
  .trio li, .trio li:first-child, .trio li:last-child { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .trio li:last-child { padding-bottom: 0; }
  .trio .dots { aspect-ratio: auto; max-width: 250px; }
  .facts li, .details div { grid-template-columns: 1fr; gap: 2px; }
  .specs div { grid-template-columns: 7rem 1fr; }
  .included { gap: 28px; }
  .layers li { grid-template-columns: minmax(0, 42%) 1fr; }
  .layers li + li { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .ring, .hs { animation: none; opacity: 1; }
  .ring { opacity: .6; }
  * { transition: none !important; }
}

/* =========================================================
   Interactions and the custom sticker studio
   ========================================================= */
@view-transition { navigation: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* Reading progress, drawn in gold under the header */
@supports (animation-timeline: scroll()) {
  .header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Buttons: contactless waves */
.btn { position: relative; overflow: hidden; cursor: pointer; border: 0; transition: background-color .2s ease, transform .25s ease; }
.btn:active { transform: scale(.98); }
.tapwave { position: absolute; width: 0; height: 0; pointer-events: none; }
.tapwave i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid var(--gold-light); opacity: 0; animation: tapwave .9s ease-out; }
.btn-gold .tapwave i { border-color: var(--ink); }
.tapwave i:nth-child(2) { animation-delay: .1s; }
.tapwave i:nth-child(3) { animation-delay: .2s; }
@keyframes tapwave { from { transform: scale(.05); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* Arrival */
.js .rise { opacity: 0; transform: translateY(34px); transition: opacity .55s ease, transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--o, 0) * 50ms); }
.js .rise.in { opacity: 1; transform: none; }

/* Hero: a warm light follows the pointer */
.hero { position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px circle at var(--mx, 76%) var(--my, 46%), rgba(224, 199, 147, .34), rgba(224, 199, 147, 0) 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero > .wrap > svg, .demo { transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -14px)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.par { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.par-phone { transform: translate(calc(var(--px, 0) * -34px), calc(var(--py, 0) * -22px)); }

/* Home demo */
.demo { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.demo svg { width: 100%; margin-inline: auto; }
.tapper { transition: transform .75s cubic-bezier(.5, 0, .2, 1); }
.demo:hover .tapper { transform: translateY(14px); }
.demo.tapping .tapper, .demo.tapping:hover .tapper { transform: translateY(150px); transition-duration: .55s; }
.demo .hs { animation: none; opacity: 0; transition: opacity .35s ease; }
.demo.lit .hs { opacity: 1; }
.demo.lit .hs-1 { transition-delay: .9s; } .demo.lit .hs-2 { transition-delay: 1.1s; } .demo.lit .hs-3 { transition-delay: 1.3s; }
.demo.lit .hs-4 { transition-delay: 1.5s; } .demo.lit .hs-5 { transition-delay: 1.7s; }
.thanks { opacity: 0; transition: opacity .45s ease; }
.demo.done .thanks { opacity: 1; }
.demo.lit .ring { animation-duration: .9s; }
.spark { stroke-dasharray: 5 95; stroke-dashoffset: 0; opacity: 0; }
.demo.lit .spark { opacity: 1; animation: spark 1.3s linear 2; }
.xray { opacity: 0; transition: opacity .5s ease; }
.demo.lit .xray { opacity: 1; }
.demo.done .xray { opacity: 0; }
@keyframes spark { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Chip draws itself, then a signal travels along it */
.tilt { perspective: 1100px; }
.tilt > svg { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }
.js .tilt > .rise { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .chip-art .trace { stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .chip-art.in .trace { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(.4, 0, .2, 1) .2s; }
.chip-art.in .spark { opacity: 1; animation: spark 3.4s linear 2.8s infinite backwards; }
.facts li { position: relative; }
.facts li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s ease; }
.facts li:hover::after { transform: scaleX(1); }

/* Services */
.service .panel svg { width: 100%; }
.lift { transition: transform .7s cubic-bezier(.3, 0, .2, 1); }
.service:hover .lift { transform: translate(-18px, 46px); }
.wave { opacity: 0; transform-box: fill-box; transform-origin: center; }
.service:hover .wave { animation: wave 1.6s ease-out infinite; }
.service:hover .wave-2 { animation-delay: .2s; } .service:hover .wave-3 { animation-delay: .4s; }
@keyframes wave { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.service.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 24px; }
.service.wide h3 { margin-top: 0; font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.035em; }
.service.wide .panel svg { margin: -10px 0 -14px; }
.bob { animation: bob 4.8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.9s); }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(7px); } }

/* Venue */
.venue { background: var(--linen); overflow: clip; }
.venue .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.venue-art { width: 100%; overflow: visible; }
.sw { fill: none; stroke: var(--gold); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.spot { cursor: pointer; }
.spot .pin { transition: opacity .4s ease; }
.spot .pin { opacity: .55; }
.spot.on .pin, .spot:hover .pin { opacity: 1; animation: pin 1.6s ease-in-out infinite alternate; }
.spot.on .sw { animation: wave 2.1s ease-out infinite; }
.spot.on .sw2 { animation-delay: .35s; } .spot.on .sw3 { animation-delay: .7s; }
@keyframes pin { to { transform: translateY(-7px); } }
.lamp { transform-box: fill-box; transform-origin: 50% 0; animation: sway 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.7s); }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.places { margin-top: 36px; border-top: 1px solid #d8cfbf; }
.places li { border-bottom: 1px solid #d8cfbf; position: relative; }
.places li::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s ease; }
.js .places li.on::before { transform: scaleX(1); }
.places button { width: 100%; text-align: left; background: none; border: 0; padding: 18px 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.03em; cursor: pointer; color: var(--stone); transition: color .3s ease; }
.places li.on button, .places button:hover { color: var(--ink); }
.places li > div { display: grid; gap: 12px; justify-items: start; padding-bottom: 24px; }
.places p { color: var(--stone); }
.js .places li > div { grid-template-rows: none; max-height: 0; padding-bottom: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: max-height .5s ease, padding .5s ease, opacity .4s ease, visibility 0s .5s; }
.js .places li.on > div { max-height: 180px; padding-bottom: 26px; visibility: visible; opacity: 1; transition: max-height .5s ease, padding .5s ease, opacity .5s ease .1s; }

/* Valencia arch draws itself */
.js .about svg .arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .about svg.in .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease .2s; }
.about svg.in .sig { animation: sig 3.2s ease-in-out 2s infinite; }
.about svg.in .sig + .sig { animation-delay: 2.25s; }
.about svg.in .sig + .sig + .sig { animation-delay: 2.5s; }
@keyframes sig { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Pack dots */
.dot-in { transition: transform .25s ease; }
.js .pack .dot, .js .trio .dot { opacity: 0; }
.js .in .dot { opacity: 1; transition: opacity .35s ease; transition-delay: calc(.25s + var(--i) * 22ms); }
.pack { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
@media (hover: hover) {
  .js .pack.in:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(42, 38, 32, .35); transition-delay: 0s; }
}
.drop { animation: drop .6s cubic-bezier(.3, 1.2, .5, 1) backwards; animation-delay: calc(.2s + var(--d) * 70ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-90px); } }

/* Product panels */
.tilt-in { perspective: 900px; overflow: hidden; }
.tilt-in img { transform: translate(var(--tx, 0), var(--ty, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.product .panel { background: radial-gradient(circle at 50% 42%, #faf7f1, var(--linen) 62%); }
.specs div { transition: background-color .25s ease; }
.coin { width: min(62%, 320px); aspect-ratio: 1; padding: 0; border: 0; background: none; perspective: 1000px; cursor: pointer; border-radius: 50%; }
.coin-body { display: block; position: relative; width: 100%; height: 100%; border-radius: 50%; transition: transform .34s ease-in; box-shadow: 0 2px 0 #d3cbbd, 0 5px 0 #c8bfaf, 0 8px 0 #bdb3a1, 0 34px 44px -14px rgba(42, 38, 32, .42); }
.coin:hover .coin-body { transform: translateY(-4px); }
.coin.turn .coin-body { animation: turn .7s ease-in-out; }
@keyframes turn { 0% { transform: rotateY(0); } 49.9% { transform: rotateY(90deg); } 50% { transform: rotateY(-90deg); } 100% { transform: rotateY(0); } }
.coin-face { position: absolute; inset: 0; visibility: hidden; }
.coin-face.on { visibility: visible; }
.coin-face svg { width: 100%; height: 100%; }
.coin-body::after, .sheen, .sample::after, .cap { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: url(../img/resina.svg) center / 100% 100% no-repeat; }

/* Layers come apart */
.js .layers li svg { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.js .layers.rise:not(.in) li svg { transform: translateY(calc((2 - var(--n)) * 110px)); }
.layers li:nth-child(1) { --n: .5; } .layers li:nth-child(2) { --n: 1.5; } .layers li:nth-child(3) { --n: 2.5; } .layers li:nth-child(4) { --n: 3.5; }
.layers li > div { transition: opacity .3s ease; }
.layers li.dim svg, .layers li.dim > div { opacity: .28; }
.layers li:hover svg { transform: translateY(-8px); }
.layers li:hover .spark { opacity: 1; animation: spark 1.4s linear infinite; }
.layers h3 { transition: color .3s ease; }
.layers li:hover h3 { color: var(--gold-light); }

/* Calculator */
.calc-sec { padding-top: 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: center; background: var(--onyx); color: #f6f2ea; border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 80px); }
.calc .text { color: #b8b1a4; margin-top: 16px; }
.calc-n { display: flex; align-items: baseline; gap: 14px; margin: 36px 0 18px; color: #b8b1a4; }
.calc-n output { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; color: var(--gold-light); min-width: 1.7ch; }
.calc-res { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin: 32px 0 28px; min-height: 92px; }
.calc .per { color: #b8b1a4; }
.calc .save { color: var(--gold-light); margin: 0; }
.calc-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(5px, .8vw, 11px); }
.calc-dots i { aspect-ratio: 1; border-radius: 50%; border: 2px solid #38352f; transition: background-color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); transform: scale(.72); }
.calc-dots i.a { background: url(../img/review-top.svg) center / 100% 100% no-repeat; border-color: transparent; background-origin: border-box; transform: none; }
.calc-dots i.b { border-color: var(--gold); border-style: dashed; transform: none; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: none; cursor: pointer; --track: #ded6c8; }
.calc .range { --track: #38352f; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--gold) var(--v, 0%), var(--track) var(--v, 0%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; border: 7px solid var(--white); background: var(--gold); box-shadow: 0 2px 10px rgba(42, 38, 32, .35); transition: transform .2s ease; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; border: 7px solid var(--white); background: var(--gold); box-shadow: 0 2px 10px rgba(42, 38, 32, .35); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }

/* Custom call to action on the packs page */
.custom-cta { background: var(--linen); }
.custom-cta .panel { background: none; overflow: visible; }
.custom-cta .panel svg { width: 100%; }

/* ---------- Studio ---------- */
.designer { background: var(--white); border-top: 1px solid var(--line); }
.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4.5vw, 76px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }
.stage { position: sticky; top: 100px; display: grid; place-items: center; min-height: clamp(400px, 50vw, 660px); padding: 48px 24px 108px; border-radius: calc(var(--radius) + 6px); background: radial-gradient(circle at 50% 40%, #fbf8f2, var(--linen) 58%, #e6dfd2); perspective: 1200px; overflow: hidden; transition: box-shadow .3s ease; }
.stage.over { box-shadow: inset 0 0 0 3px var(--gold); }
.stk { width: min(76%, 430px); aspect-ratio: 1; transform-style: preserve-3d; filter: drop-shadow(0 30px 26px rgba(42, 38, 32, .28)); }
.stk-body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.stk { filter: none; }
.stk-body::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; transform: translateZ(-40px) translateY(28px); background: rgba(42, 38, 32, .5); filter: blur(22px); }
.stk-body i { position: absolute; inset: 0; border-radius: 50%; background: var(--edge, #e9e3d8); transform: translateZ(calc(var(--n) * -2.5px)); filter: brightness(.82); }
.stk canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; cursor: grab; touch-action: pan-y; }
.stage.drag canvas { cursor: grabbing; }
.stk .sheen { transform: translateZ(1px); background: radial-gradient(circle at var(--lx, 34%) var(--ly, 18%), rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 38%), url(../img/resina.svg) center / 100% 100% no-repeat; transition: background .2s linear; }
/* On the table: the resin cap, drawn over the tilted sticker */
.stk, .dome3d { grid-area: 1 / 1; }
.dome3d { width: min(78%, 441px); aspect-ratio: 204 / 110; transform: translateY(2.6%); background: url(../img/cupula.svg) center / 100% 100% no-repeat; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.stk .sheen { transition: opacity .3s ease; }
.stage.table .dome3d { opacity: 1; transition: opacity .5s ease .6s; }
.stage.table.drag .dome3d { opacity: 0; transition: none; }
.stage.table .sheen { opacity: 0; }
.stage.table.drag .sheen { opacity: 1; }
.stage.table .stk-body { transform: rotateX(58deg) rotateZ(-24deg); transition-duration: .9s; }
.stage.drag .stk-body { transform: none; transition-duration: .15s; }
.stk.pop .stk-body { animation: pop .7s cubic-bezier(.2, 1.1, .4, 1); }
@keyframes pop { from { transform: scale(.86) rotateY(-70deg); } }
.dim { position: absolute; left: 50%; bottom: 62px; width: min(58%, 330px); transform: translateX(-50%); height: 12px; border: 1px solid #b9ae9b; border-top: 0; transition: opacity .3s ease; text-align: center; }
.dim span { position: relative; top: 1px; padding: 0 12px; background: #ebe5da; color: var(--stone); font-weight: 500; font-size: .9375rem; line-height: 1.3; }
.stage.table .dim { opacity: 0; }
.view { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); min-height: 40px; padding: 6px 18px; border: 0; background: none; font-weight: 600; font-size: .9375rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap; }

.controls { display: grid; gap: 22px; }
.drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 28px 20px; text-align: center; border: 2px dashed #cfc4b0; border-radius: var(--radius); color: var(--stone); transition: border-color .25s ease, background-color .25s ease; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--gold); background: #fbf6ec; }
.drop:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.drop.has { border-style: solid; border-color: var(--gold); padding-block: 18px; }
.drop.has svg { display: none; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop svg { width: 44px; color: var(--gold-deep); transition: transform .3s ease; }
.drop:hover svg { transform: translateY(-5px); }
.drop b { color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.msg { color: var(--stone); font-weight: 500; margin-top: -8px; }
.msg:empty { display: none; }
.msg.warn { color: #9a3f22; }
.controls legend, .ctl label:not(.sw-l), .fields label, .qty label { font-weight: 500; color: var(--ink); }
.samples { display: flex; flex-wrap: wrap; gap: 10px; }
.samples legend { margin-bottom: 10px; }
.sample { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 4px 10px -3px rgba(42, 38, 32, .35); }
.sample img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.sample:hover { transform: translateY(-4px) rotate(-6deg); }
.ctl { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 4px 16px; align-items: center; }
fieldset.ctl { display: flex; gap: 16px; }
fieldset.ctl legend { float: left; width: 7.2rem; flex: none; }
.sws { display: flex; flex-wrap: wrap; gap: 1px; }
.sw-l { position: relative; width: 38px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.sw-l input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.sw-l span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(42, 38, 32, .22); transition: transform .2s ease, box-shadow .2s ease; }
.sw-l:hover span { transform: scale(1.1); }
.sw-l input:checked + span { box-shadow: inset 0 0 0 1px rgba(42, 38, 32, .22), 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.sw-l input:focus-visible + span { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--gold); }
.sw-l.any span { background: conic-gradient(#b2694c, #c2a063, #74836a, #2f4a58, #6c4c69, #b2694c); }
.field { width: 100%; min-height: 50px; padding: 11px 16px; border: 1px solid #cfc4b0; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-weight: 400; transition: border-color .2s ease, box-shadow .2s ease; }
.field:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 160, 99, .35); }
.field::placeholder { color: #7d776b; }
textarea.field { resize: vertical; }
.reset { justify-self: start; background: none; border: 0; padding: 6px 0; cursor: pointer; }

.order { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4.5vw, 76px); align-items: start; margin-top: clamp(72px, 9vw, 128px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 24px; }
.fields label { display: grid; gap: 8px; }
.fields .full { grid-column: 1 / -1; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; color: var(--stone); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }
.summary { background: var(--onyx); color: #f6f2ea; border-radius: var(--radius); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 20px; }
.mini { position: relative; width: 116px; }
.mini canvas { width: 116px; height: 116px; border-radius: 50%; box-shadow: 0 3px 0 #4a463e, 0 18px 26px -8px #000; }
.summary .price { margin: 0; }
.summary .price.long { font-size: 1.75rem; white-space: normal; letter-spacing: -.035em; line-height: 1.15; }
.summary .per { color: #b8b1a4; }
.qty { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qty label { color: #f6f2ea; }
.qty > div { display: flex; border: 1px solid #4a463e; border-radius: 12px; }
.qty button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.375rem; cursor: pointer; }
.qty button:hover { color: var(--gold-light); }
.qty input { width: 64px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.inc { border-top: 1px solid #38352f; padding-top: 18px; display: grid; gap: 8px; color: #d6cfc2; }
.inc li { padding-left: 28px; position: relative; }
.inc li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 13px; height: 6px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.summary .btn { width: 100%; }
.summary .btn[disabled] { opacity: .6; cursor: default; }
.wa-alt { text-align: center; color: #d6cfc2; text-underline-offset: 5px; padding: 6px; }
.wa-alt:hover { color: var(--gold-light); }

/* ---------- Phone menu ---------- */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .js .menu-btn { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; cursor: pointer; }
  .menu-btn i { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s ease; }
  .open .menu-btn i:first-child { transform: translateY(4.5px) rotate(45deg); }
  .open .menu-btn i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0; padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -24px rgba(42, 38, 32, .28); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
  .js .open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .js .nav a { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 600; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: none; }
  .js .nav a:last-child { border: 0; padding-bottom: 0; color: var(--gold-deep); }
  .js .nav a[aria-current] { color: var(--mute); }
  html:not(.js) .header .wrap { flex-wrap: wrap; padding-block: 10px; }
}

@media (max-width: 960px) {
  .venue .wrap, .calc, .studio, .order, .service.wide { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; min-height: 0; padding: 40px 20px 112px; }
  .venue-stage { margin-inline: calc(var(--gutter) * -.5); }
  .calc-dots { max-width: 420px; }
}
@media (max-width: 680px) {
  .service.wide { margin-top: 0; gap: 0; }
  .service.wide h3 { margin-top: 28px; }
  .stk { width: min(82%, 340px); }
  .dome3d { width: min(84%, 349px); }
  .dim { width: 64%; }
  .fields { grid-template-columns: 1fr; }
  .ctl { grid-template-columns: 1fr; }
  fieldset.ctl { display: block; }
  fieldset.ctl legend { float: none; width: auto; margin-bottom: 4px; }
  .sws { gap: 0; justify-content: flex-start; }
  .sw-l { width: 12.5%; height: 44px; }
  .samples { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .samples legend { grid-column: 1 / -1; }
  .sample { width: 100%; max-width: 56px; height: auto; aspect-ratio: 1; }
  .reset.link { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .rise, .js .layers.rise:not(.in) li svg { opacity: 1; transform: none; }
  .js .about svg .arc, .js .chip-art .trace { stroke-dashoffset: 0; }
  .js .pack .dot, .js .trio .dot { opacity: 1; }
  .spot.on .sw { opacity: .7; }
  .demo .hs, .demo.lit .hs { opacity: 1; }
  .demo.tapping .tapper { transform: none; }
  @view-transition { navigation: none; }
}
