/* ==========================================================================
   Sunwin Nepal: one shared stylesheet for index.html, privacy.html, 404.html

   1  Fonts            5  Header + menu        9  Calculator + demo
   2  Tokens           6  Hero + strip         10 Footer + WhatsApp button
   3  Base             7  Home sections        11 Policy + 404 pages
   4  Components       8  Machine + trust      12 Motion, responsive, print
   ========================================================================== */

/* 1. Fonts: self-hosted variable fonts, metric-matched fallbacks ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-var.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-var-italic.woff2") format("woff2"); }

/* Fallback faces sized to match the web fonts, so text does not jump when they load */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Roboto"); size-adjust: 107.47%; ascent-override: 90.14%; descent-override: 22.44%; line-gap-override: 0%; }
@font-face { font-family: "Playfair Fallback"; font-style: normal; font-weight: 400 900; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Times New Roman"), local("Times"); size-adjust: 107.3%; ascent-override: 100.84%; descent-override: 23.39%; line-gap-override: 0%; }
@font-face { font-family: "Playfair Fallback"; font-style: italic; font-weight: 400 900; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Times New Roman"), local("Times"); size-adjust: 107.8%; ascent-override: 100.37%; descent-override: 23.28%; line-gap-override: 0%; }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --ivory: #f7efec;
  --white: #ffffff;
  --rose: #f0dddb;
  --blush: #f6e8ee;
  --ink: #2b1d22;
  --text: #4a3840;
  --muted: #6b5862;          /* text on light backgrounds, 5.0:1 or better */
  --pink: #c51a80;
  --pink-dark: #a3146a;      /* small pink text, 5.6:1 on rose */
  --gold: #946b35;           /* decoration and large text only */
  --gold-text: #7d5727;      /* small gold text, 4.9:1 on rose */
  --gold-light: #e9c9a0;
  --line: #e6d6cc;
  --ok: #0f6b3b;
  --err: #a3146a;
  --maxw: 1180px;
  --r: 24px;
  --hdr: 92px;               /* header height at the top of the page */
  --hdr-s: 74px;             /* header height once scrolled */
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: light; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
  -webkit-tap-highlight-color: rgba(197, 26, 128, 0.15);
}
img, video { max-width: 100%; height: auto; display: block; } /* height:auto so the width/height attributes only reserve the aspect ratio */
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
em, .it { font-style: italic; font-weight: 500; color: var(--pink); }
p { color: var(--text); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.sec { padding: 110px 0; }
.sec-flush-top { padding-top: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Keyboard focus: visible for keyboard users, hidden for mouse clicks */
a:focus, button:focus, input:focus, textarea:focus { outline: 3px solid var(--focus, var(--pink-dark)); outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
video:focus-visible { outline: 3px solid var(--focus, var(--pink-dark)); outline-offset: 3px; }
.videos, .trust-sec, .visit-card, .site-footer, .strip-wrap { --focus: var(--gold-light); }

/* 4. Components ------------------------------------------------------------ */
.eyebrow { font-size: 12px; letter-spacing: 0.28em; font-weight: 700; text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; }
.eyebrow.pink { color: var(--pink-dark); }
.eyebrow.light { color: var(--gold-light); }
.eyebrow.on-pink { color: #fff; }
.lead { font-size: 1.12rem; max-width: 620px; margin-top: 18px; }
.rule { width: 56px; height: 2px; background: var(--gold); margin: 26px 0; }
.dia { display: inline-block; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: 0 0 6px; }
.tag { font-size: 11px; letter-spacing: 0.24em; font-weight: 700; text-transform: uppercase; color: var(--gold-text); }
.tag.muted { color: var(--muted); }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-34 { margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.5;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost.light { border-color: #fff; color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.cta-row--tight { margin-top: 26px; }

.panel { background: var(--rose); border-radius: var(--r); padding: 40px; }
.panel-white { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px; }
.panel-pink { background: var(--pink); border-radius: var(--r); padding: 40px; color: #fff; }
.panel-pink p, .panel-pink h3 { color: #fff; }

.head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.head p { font-size: 1.05rem; }
.head.flush { margin-bottom: 0; }

/* 5. Header + mobile menu --------------------------------------------------
   The header is fixed (out of flow) so shrinking it on scroll can never move
   the page. The first section reserves the space with its own top padding. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247, 239, 236, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(43, 29, 34, 0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); transition: height 0.35s ease; }
.site-header.scrolled .nav { height: var(--hdr-s); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-size: 10.5px; letter-spacing: 0.22em; font-weight: 700; color: var(--ink); line-height: 1.5; text-transform: uppercase; }
.brand.stack { flex-direction: column; gap: 3px; align-items: center; }
.brand.stack img { height: 50px; transition: height 0.35s ease; }
.site-header.scrolled .brand.stack img { height: 40px; }
.brand.stack span { font-size: 11px; letter-spacing: 0.02em; text-transform: none; font-weight: 600; color: var(--pink-dark); }
.nav-main ul { display: flex; gap: 34px; list-style: none; white-space: nowrap; }
.nav-main a { position: relative; display: block; padding: 8px 0; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text); }
.nav-main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease; }
.nav-main a[aria-current="page"] { color: var(--pink-dark); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav .btn { white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.site-header.open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* 6. Hero + strip ---------------------------------------------------------- */
.hero { background: var(--ivory); padding: calc(var(--hdr) + 70px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: end; }
.hero-copy { padding-bottom: 90px; }
.hero .lead { max-width: 520px; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.chips { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.chip { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch { height: 640px; }

/* Facts strip. Without JavaScript, or when the visitor prefers reduced motion, it is a centred,
   wrapping list. Otherwise it is one line from the very first paint and the script only starts the
   marquee (class "is-live"), so nothing on the page moves when the script runs. */
.strip-wrap { background: var(--ink); color: #fff; overflow: hidden; padding: 20px 0; }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; list-style: none; padding: 0 20px; }
.strip li { display: flex; align-items: center; gap: 14px; margin: 0 23px; font-size: 13px; letter-spacing: 0.2em; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.strip .dia { background: var(--gold-light); width: 7px; height: 7px; flex-basis: 7px; }
@media (prefers-reduced-motion: no-preference) {
  .js .strip { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; gap: 0; }
  .strip.is-live { animation: marquee 48s linear infinite; }
}

/* 7. Home sections --------------------------------------------------------- */
/* gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gal figure { border-radius: 18px; overflow: hidden; background: var(--blush); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gal .tall { grid-row: span 2; }
.gal .wide { grid-column: span 2; }
.gal .pos-persimmon { object-position: center 40%; }

/* difference */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.photo-r { border-radius: var(--r); overflow: hidden; }
.photo-r img { width: 100%; height: 100%; object-fit: cover; }
.photo-r .pos-30 { object-position: 30% center; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.vs h3 { margin: 6px 0 10px; }
.vs ul { list-style: none; margin-top: 18px; }
.vs li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(43, 29, 34, 0.1); font-size: 15px; color: var(--text); }
.vs .panel-white li .dia { background: var(--muted); }

/* tech band: the photo is a real, lazy-loaded image under a gradient */
.tech { position: relative; color: #fff; padding: 0; }
.tech-band { position: relative; isolation: isolate; overflow: hidden; min-height: 520px; display: flex; align-items: center; background: #1d0f16; }
.tech-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tech-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29, 15, 22, 0.92) 0%, rgba(29, 15, 22, 0.62) 45%, rgba(29, 15, 22, 0) 78%); }
.tech-band .wrap { width: 100%; }
.tech-band h2 { color: #fff; max-width: 520px; }
.tech-band p { color: #f3e9ed; max-width: 440px; margin-top: 18px; }
.tech-band .rule { background: var(--gold-light); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--rose); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.step figure { height: 250px; background: #fff; padding: 18px; }
.step figure img { width: 100%; height: 100%; object-fit: contain; }
.step .body { padding: 28px 30px 32px; }
.step .num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); }
.step.hi .num { color: var(--pink); }
.step h3 { margin: 10px 0 10px; }
.step p { font-size: 15px; }

/* video */
.videos { background: var(--ink); color: #fff; overflow: hidden; }
.videos h2 { color: #fff; }
.videos .it, .trust-sec .it { color: var(--gold-light); }
.videos .rule { background: var(--gold-light); }
.vsplit { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.vcard { margin: 0; position: relative; max-width: 400px; justify-self: center; width: 100%; }
.vcard::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; border: 1.5px solid rgba(233, 201, 160, 0.45); border-radius: 30px; }
.vcard video { position: relative; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: #1d0f16; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.vtext p { color: #e6d9de; font-size: 1.08rem; max-width: 560px; }
.vtext ul { list-style: none; margin-top: 22px; max-width: 560px; }
.vtext li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #efe3e8; font-size: 15.5px; }
.vtext li .dia { background: var(--gold-light); }

/* 8. Machine, who, events, trust ------------------------------------------- */
.machine { background: var(--ivory); }
.mgrid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.m-arch { background: var(--rose); border-radius: 999px 999px var(--r) var(--r); height: 620px; display: flex; align-items: center; justify-content: center; }
.m-arch img { max-height: 76%; max-width: 70%; width: auto; height: auto; filter: drop-shadow(0 30px 30px rgba(43, 29, 34, 0.18)); transition: transform 0.6s ease; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); margin-top: 34px; }
.spec { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
/* Values never wrap or spill into the next cell. The two text values (size, certifications) are set smaller than the
   numerals so the widest one still fits the narrowest cell (about 134px, at 320px wide). */
.spec b { display: block; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 33px; color: var(--ink); white-space: nowrap; }
.spec b small { font-size: 16px; line-height: 1; color: var(--pink-dark); font-weight: 500; }
.spec.spec-text b { font-size: 21px; line-height: 27px; padding-top: 6px; } /* same 33px box, so labels and baselines stay level */
.spec span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.offer { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; margin-top: 48px; align-items: stretch; }
.offer .panel-pink h3 { font-size: 1.9rem; margin-top: 4px; }
.offer .panel-pink p { margin-top: 12px; font-weight: 500; }
.kit { border-radius: var(--r); overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.kit img { width: min(100%, 390px); height: auto; aspect-ratio: 1075 / 716; }

.who { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: stretch; }
.who-photo { border-radius: var(--r); overflow: hidden; min-height: 640px; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.who-grid .card { background: var(--rose); border-radius: 20px; padding: 26px 26px 28px; }
.who-grid .card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.who-grid .card p { font-size: 14.5px; line-height: 1.6; }

.events { background: var(--ivory); }
.ev { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.ev .photo-r { min-height: 460px; }
.ev ul { list-style: none; margin-top: 8px; }
.ev li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(43, 29, 34, 0.1); font-size: 15px; color: var(--text); }

.trust-sec { background: var(--ink); color: #fff; }
.trust-sec h2 { color: #fff; }
.trust-sec p { color: #e6d9de; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.trust > div { padding: 28px 24px 30px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.trust h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; display: flex; gap: 12px; align-items: baseline; }
.trust h3 .dia { background: var(--gold-light); }
.trust p { font-size: 14.5px; line-height: 1.6; }

/* 9. Calculator + demo ----------------------------------------------------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 46px; }
.calc-inputs { background: var(--rose); border-radius: var(--r); padding: 36px 36px 30px; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.field-head label, .field-label { font-size: 13px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; color: var(--text); line-height: 1.5; }
.field-label { display: block; margin-bottom: 10px; }
.field-head output { font-family: var(--serif); font-size: 20px; letter-spacing: 0; color: var(--ink); white-space: nowrap; }

/* Range slider. Track and thumb are styled separately per engine, and the whole
   control is 44px tall so it is easy to hit with a thumb.
   --p is the fill percentage; main.js keeps it in sync. The per-id values
   below are the starting positions for the default slider values in the HTML. */
input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; --p: 50%; }
#sets { --p: 12.5%; }
#price { --p: 64.3%; }
#days { --p: 73.3%; }
#cost { --p: 61.5%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--pink) 0, var(--pink) var(--p), rgba(43, 29, 34, 0.16) var(--p), rgba(43, 29, 34, 0.16) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(197, 26, 128, 0.35); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(43, 29, 34, 0.16); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--pink); }
input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(197, 26, 128, 0.35); }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(163, 20, 106, 0.35), 0 2px 8px rgba(197, 26, 128, 0.35); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(163, 20, 106, 0.35), 0 2px 8px rgba(197, 26, 128, 0.35); }

input[type="number"], .form-grid input, .form-grid textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; caret-color: var(--pink); }
input[type="number"] { font-weight: 600; font-size: 18px; -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
::placeholder { color: var(--muted); opacity: 1; }
.readout { background: var(--ink); border-radius: var(--r); padding: 12px 36px; }
.readout .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #e6d9de; font-size: 14px; }
.readout .row:last-child { border-bottom: 0; }
.readout .row b { font-family: var(--serif); font-weight: 600; font-size: 22px; color: #fff; text-align: right; }
.readout .hero-row b { font-size: 40px; color: var(--gold-light); }
.readout .hero-row span { color: #fff; font-weight: 600; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

.demo { background: var(--ivory); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { padding: 16px 18px; border-color: transparent; font-weight: 400; }
.form-grid textarea { resize: vertical; min-height: 96px; display: block; }
.form-grid input:focus, .form-grid textarea:focus, input[type="number"]:focus { border-color: var(--pink); outline-width: 2px; outline-offset: 2px; }
.form-grid input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--ink); }
.form-grid input[aria-invalid="true"] { border-color: var(--err); }
.form-grid .btn { width: 100%; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; margin-top: 14px; color: var(--text); }
.form-note.is-error { color: var(--err); }
.form-note.is-ok { color: var(--ok); font-weight: 600; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.contact-cards .full { grid-column: 1 / -1; }
.cc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.cc small { display: block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); margin-bottom: 2px; }
.cc > span:last-child { font-size: 15px; font-weight: 600; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.ci { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; }
.ci.wa { background: #25d366; }
.ci svg { width: 20px; height: 20px; fill: #fff; }
.socials { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.socials > span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--text); margin-right: 6px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.socials a svg { width: 18px; height: 18px; fill: var(--ink); transition: fill 0.2s; }
.visit-card { background: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.visit-photo { height: 380px; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.visit-body { padding: 34px 36px 38px; display: flex; flex-direction: column; flex: 1; }
.visit-body h3 { color: #fff; font-size: 1.9rem; }
.visit-body .hours { color: #e6d9de; margin-top: 8px; font-size: 15px; }
.demo-steps { margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.demo-steps div { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.demo-steps b { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--gold-light); width: 30px; flex: 0 0 30px; }
.demo-steps span { color: #efe3e8; font-size: 15px; }
.yt { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.yt .play { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; flex: 0 0 50px; }
.yt .play svg { width: 20px; height: 20px; fill: var(--pink); margin-left: 3px; }
.yt small { display: block; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.yt > span:last-child { font-weight: 600; font-size: 16px; }

/* 10. Footer + WhatsApp button --------------------------------------------- */
.site-footer { background: var(--ink); color: #d8c9cf; padding: 70px 0 36px; }
.home .site-footer { padding-bottom: 96px; }   /* clear space for the floating button */
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .brand span { color: #fff; }
.foot p { color: #d8c9cf; font-size: 14.5px; max-width: 420px; margin-top: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 26px; align-content: flex-start; max-width: 520px; }
.foot nav a { display: inline-block; padding: 10px 0; text-decoration: none; font-size: 14px; color: #efe3e8; }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; font-size: 12.5px; color: #b9a8af; }
.legal p { color: #b9a8af; max-width: 820px; margin: 0; }
.legal a { display: inline-block; padding: 10px 0; margin: -10px 0; color: #efe3e8; white-space: nowrap; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); transition: transform 0.25s ease; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* 11. Policy + 404 pages --------------------------------------------------- */
.phero { background: var(--ivory); padding: calc(var(--hdr) + 62px) 0 60px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.phero h1 { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.phero h1 span { font-style: italic; font-weight: 500; color: var(--pink); }
.phero .upd { margin-top: 14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }
.policy { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; padding-top: 60px; padding-bottom: 100px; font-size: 16.5px; }
.toc { position: sticky; top: calc(var(--hdr-s) + 24px); align-self: start; background: var(--rose); border-radius: var(--r); padding: 26px; }
.toc b { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: t; }
.toc li { counter-increment: t; padding: 7px 0; border-top: 1px solid rgba(43, 29, 34, 0.1); font-size: 14px; }
.toc li::before { content: counter(t, decimal-leading-zero); font-family: var(--serif); color: var(--gold-text); margin-right: 10px; }
.toc a { color: var(--text); text-decoration: none; }
.content { max-width: 720px; }
.content section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.content section:last-child { border-bottom: 0; }
.content h2 { font-size: 1.8rem; line-height: 1.15; margin-bottom: 16px; }
.content p { margin-bottom: 12px; }
.content ul { list-style: none; }
.content li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); color: var(--text); }
.content li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.content a { color: var(--pink-dark); }
.callout { background: var(--rose); border-radius: 20px; padding: 24px 26px; margin: 6px 0 18px; line-height: 1.9; color: var(--text); overflow-wrap: anywhere; }
.callout strong { color: var(--ink); }

.nf { min-height: 100vh; display: flex; align-items: center; background: var(--ivory); padding: calc(var(--hdr) + 40px) 0 80px; }
.nf h1 { margin: 10px 0 16px; }
.nf p { max-width: 520px; }

/* 12. Motion, hover, responsive, print ------------------------------------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes stagger-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes archIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

.hero-copy > * { opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.46s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.58s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.7s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.8s; }
.hero-arch { animation: archIn 1.4s cubic-bezier(0.7, 0, 0.2, 1) 0.15s both; }
.hero-arch img { animation: kenburns 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }

.btn-primary { position: relative; overflow: hidden; }

/* Scroll reveals only apply when JavaScript is running (html.js), so the page is
   always fully visible without it. "reveal-all" is a safety net set by a timer. */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; }
.js .stagger.in > * { opacity: 1; animation: stagger-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
.js .zoom img { transform: scale(1.1); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .zoom.in img, .js .rv.in .zoom img { transform: scale(1); }
.reveal-all .rv, .reveal-all .stagger > * { opacity: 1 !important; transform: none !important; }
.reveal-all .zoom img { transform: none !important; }
.lift { transition: transform 0.35s ease, box-shadow 0.35s ease; }

/* Hover effects only on devices that really hover, so touch screens never get a stuck hover state */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--pink-dark); }
  .btn-primary:hover::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; animation: shine 0.9s ease; }
  .btn-ghost:hover { background: var(--ink); color: #fff; }
  .btn-ghost.light:hover { background: #fff; color: var(--ink); }
  .nav-main a:hover { color: var(--pink-dark); }
  .nav-main a:hover::after { transform: scaleX(1); transform-origin: left; }
  .gal figure:hover img { transform: scale(1.04); }
  .m-arch:hover img { transform: translateY(-8px) rotate(-1deg); }
  .lift:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(43, 29, 34, 0.12); }
  .socials a:hover { background: var(--ink); }
  .socials a:hover svg { fill: #fff; }
  .yt:hover .play { transform: scale(1.08); }
  .foot nav a:hover, .legal a:hover { color: var(--gold-light); }
  .toc a:hover { color: var(--pink-dark); }
  .wa-float:hover { transform: scale(1.06); }
  .strip-wrap:hover .strip.is-live { animation-play-state: paused; }
}

@media (max-width: 1180px) {
  .nav-main ul { gap: 22px; }
  .nav-main a { font-size: 14px; }
}

@media (max-width: 1080px) {
  .nav-main { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu {
    display: block; max-height: 0; overflow-x: hidden; overflow-y: auto; visibility: hidden;
    background: var(--ivory); overscroll-behavior: contain; scrollbar-width: none;
    transition: max-height 0.45s ease, visibility 0s linear 0.45s;
  }
  .mobile-menu::-webkit-scrollbar { display: none; }
  .site-header.open .mobile-menu {
    max-height: min(560px, calc(100vh - var(--hdr)));
    max-height: min(560px, calc(100dvh - var(--hdr)));
    visibility: visible; border-top: 1px solid var(--line);
    transition: max-height 0.45s ease, visibility 0s;
  }
  .mobile-menu a { display: block; padding: 15px 28px; text-decoration: none; font-family: var(--serif); font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { color: var(--pink-dark); font-style: italic; }
}

@media (max-width: 980px) {
  .sec { padding: 80px 0; }
  .sec-flush-top { padding-top: 0; }
  .hero-grid, .head, .split, .mgrid, .who, .ev, .calc, .demo-grid, .offer { grid-template-columns: minmax(0, 1fr); }
  .demo-grid > *, .calc > *, .ev > *, .who > * { min-width: 0; }
  .hero-copy { padding-bottom: 10px; }
  .hero-arch { height: 520px; max-width: 420px; margin: 0 auto; width: 100%; }
  .head { gap: 16px; margin-bottom: 36px; }
  .head.flush { margin-bottom: 0; }
  .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .steps { grid-template-columns: 1fr; }
  .vsplit { grid-template-columns: 1fr; gap: 50px; }
  .vcard { max-width: 340px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .who-photo { min-height: 420px; }
  .tech-bg { object-position: 0% center; }
  .tech-band p { max-width: 380px; }
  .m-arch { height: 480px; }
  .policy { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; }
}

@media (min-width: 981px) and (max-width: 1100px) {
  /* Two-column machine section: the specs column is only 470 to 540px wide here. */
  .spec b { font-size: 26px; }
  .spec b small { font-size: 14px; }
}

@media (min-width: 601px) and (max-width: 980px) {
  /* Stacked layout on tablets: the portrait photo is cropped to a frame that fits one screen, hands and nails kept in view. */
  .who-photo { min-height: 0; height: min(76vw, 580px); }
  .who-photo img { object-position: center 86%; }
}

@media (max-width: 600px) {
  :root { --hdr: 72px; --hdr-s: 64px; }
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav .btn-sm { padding: 9px 14px; font-size: 13px; min-height: 44px; }
  .brand.stack img { height: 38px; }
  .site-header.scrolled .brand.stack img { height: 36px; }
  .brand.stack span { font-size: 9.5px; }
  .mobile-menu a { padding: 14px 20px; }
  .vs, .who-grid, .trust, .form-grid, .contact-cards { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .panel, .panel-white, .panel-pink, .calc-inputs { padding: 28px 22px; }
  .visit-body { padding: 26px 22px 30px; }
  .visit-photo { height: 220px; }
  .readout { padding: 8px 22px; }
  .readout .row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; }
  .readout .row b { white-space: nowrap; text-align: left; }
  .readout .hero-row b { font-size: 30px; }
  .tech-band { min-height: 460px; }
  .tech-bg { object-position: 70% center; }
  .tech-band::before { background: linear-gradient(180deg, rgba(29, 15, 22, 0.92), rgba(29, 15, 22, 0.6)); }
  .legal { flex-direction: column; gap: 12px; }
  .phero { padding-top: calc(var(--hdr) + 40px); }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 2.45rem; }
  .chips { gap: 14px; }
  .spec { padding-right: 10px; }
  .spec b { font-size: 24px; line-height: 27px; }
  .spec b small { font-size: 13px; }
  .spec.spec-text b { font-size: 19px; line-height: 22px; padding-top: 5px; }
}

@media (max-width: 359px) {
  .nav .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .js .stagger > *, .js .rv { opacity: 1 !important; transform: none !important; }
  .js .zoom img { transform: none !important; }
}

@media (forced-colors: active) {
  .btn, .menu-btn, .socials a, .cc, .panel-pink, .readout { border: 1px solid CanvasText; }
  /* Backgrounds are replaced in this mode, so shapes drawn with a background colour, and white icons, are given system colours */
  .dia, .menu-btn span { background: CanvasText; forced-color-adjust: none; }
  .wa-float { background: ButtonFace; border: 2px solid ButtonText; }
  .wa-float svg, .ci svg, .yt .play svg { fill: ButtonText; }
}

@media print {
  @page { margin: 14mm 12mm; }
  *, *::before, *::after { text-shadow: none !important; transition: none !important; animation: none !important; }
  .site-header, .wa-float, .strip-wrap, .menu-btn, .skip, .form-grid, .form-note, .calc input[type="range"] { display: none !important; }
  .hero, .phero { padding-top: 24px; }
  .hero-copy > *, .js .rv, .js .stagger > * { opacity: 1 !important; transform: none !important; }
  .js .zoom img { transform: none !important; }
  /* Browsers leave background colours out of print by default, so panels that are light text on a dark or pink fill are set as dark text on white paper */
  .videos, .trust-sec, .site-footer, .visit-card, .readout, .panel-pink, .tech, .tech-band { background: #fff !important; color: #1a1a1a !important; }
  .videos *, .trust-sec *, .site-footer *, .visit-card *, .readout *, .panel-pink *, .tech * { color: #1a1a1a !important; border-color: #999 !important; }
  .videos .it, .trust-sec .it, .videos .eyebrow, .trust-sec .eyebrow, .visit-card .eyebrow, .panel-pink .eyebrow, .tech .eyebrow, .readout .hero-row b { color: var(--pink-dark) !important; }
  .tech-band { min-height: 0 !important; }
  .tech-bg, .tech-band::before { display: none !important; }
  .vcard { display: none !important; }
  .vsplit { display: block; }
  .readout, .visit-card, .panel-pink { border: 1px solid #999; }
  .btn { background: #fff !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; }
  .dia { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: underline; }
  p, li { orphans: 3; widows: 3; }
  .spec, .cc, .card, .step, .calc, .readout, .panel-pink, .panel-white, .visit-card, .field, .ev, .m-arch, .arch, .hero-arch, .who-photo, .photo-r, .kit { break-inside: avoid; }
  h1, h2, h3, .eyebrow, .rule, .head { break-after: avoid; }
}
