/* Home page only. Shared rules live in styles.css and pages.css. */
body[data-page="home"] .hero { padding: 56px 0 72px; }
.hero-note { margin: 28px 0 0; color: var(--on-ink-muted); font-size: .95rem; max-width: 46ch; padding-left: 14px; border-left: 2px solid var(--gold-deep); }


/* Range tiles */
body[data-page="home"] .range { padding: 96px 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile a { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #DBDCDE; border-radius: 10px; overflow: hidden; transition: border-color .2s, transform .2s; }
.tile a:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.tile-art { display: flex; align-items: center; justify-content: center; gap: 6px; height: 132px; padding: 14px; background: linear-gradient(160deg, #2A3059, var(--ink-deep)); }
.tile-art svg { height: 100%; width: auto; max-width: 48%; flex: 0 1 auto; }
.tile-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.tile-name { font-size: 1.12rem; font-weight: 720; font-stretch: 118%; line-height: 1.15; }
.tile-text { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.tile-price { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .98rem; color: var(--gold-deep); }
.t-lead { grid-column: span 2; grid-row: span 2; }
.t-lead a { background: var(--ink); border-color: var(--ink); color: #fff; grid-template-rows: 1fr auto; }
.t-lead .tile-art { height: auto; min-height: 220px; gap: 0; padding: 28px 20px; background: radial-gradient(70% 90% at 50% 40%, rgba(238,201,78,.14), transparent 70%), var(--ink-deep); }
.t-lead .tile-art svg { height: auto; width: 20%; max-width: none; }
.t-lead .tile-body { padding: 26px 28px 30px; gap: 10px; }
.t-lead .tile-name { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 760; }
.t-lead .tile-text { color: var(--on-ink-muted); font-size: 1.02rem; max-width: 44ch; }
.t-lead .tile-price { color: var(--gold); font-size: 1.1rem; }
.t-wide { grid-column: span 2; }
.t-wide a { grid-template-rows: none; grid-template-columns: 40% 1fr; }
.t-wide .tile-art { height: 100%; min-height: 132px; }

/* Story */
body[data-page="home"] .about { padding: 96px 0 80px; }
.home-facts { margin-top: 64px; }
.home-facts dd { white-space: nowrap; }

/* Reach */
body[data-page="home"] .reach { padding: 88px 0; }
.reach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.reach-grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 760; margin-bottom: 18px; }
.reach-grid p { color: var(--muted); max-width: 44ch; margin-bottom: 24px; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .t-lead { grid-row: auto; }
  .t-lead .tile-art { min-height: 0; }
  .reach-grid { grid-template-columns: 1fr; gap: 32px; }
  body[data-page="home"] .range, body[data-page="home"] .about, body[data-page="home"] .reach { padding: 64px 0; }
  .home-facts { margin-top: 44px; }
  /* Swatches shrink to dots so the wire stays on the first screen */
  body[data-page="home"] .swatches legend { font-size: .84rem; margin-bottom: 6px; }
  body[data-page="home"] .swatches label { font-size: 0; gap: 0; padding: 0; width: 44px; justify-content: center; }
  body[data-page="home"] .use { font-size: .92rem; margin-top: 8px; }
  body[data-page="home"] .xsec { gap: 8px; }
}
/* Tablet and small laptop: keep copy and wire side by side */
@media (min-width: 700px) and (max-width: 980px) {
  body[data-page="home"] .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  body[data-page="home"] .hero { padding: 36px 0 44px; }
  body[data-page="home"] .hero h1 { font-size: clamp(2.1rem, 5.2vw, 3rem); }
  body[data-page="home"] .lede { font-size: 1.02rem; margin-top: 16px; }
  body[data-page="home"] .actions { margin-top: 22px; }
  body[data-page="home"] .hero-note { margin-top: 20px; }
}
/* Phone: wire first, compact, then the words */
@media (max-width: 699px) {
  body[data-page="home"] .hero { padding: 12px 0 44px; }
  body[data-page="home"] .hero-grid { gap: 12px; }
  body[data-page="home"] .xsec { order: -1; }
  body[data-page="home"] .stage { width: min(72%, 250px); }
  body[data-page="home"] .swatches legend { display: none; }
  body[data-page="home"] .by { margin-bottom: 10px; }
  body[data-page="home"] .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  body[data-page="home"] .lede { font-size: 1rem; margin-top: 14px; }
  body[data-page="home"] .actions { margin-top: 20px; }
  body[data-page="home"] .actions .btn { flex: 1 1 150px; }
  .tiles { grid-template-columns: 1fr; }
  .t-lead, .t-wide { grid-column: auto; }
  .t-wide a { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tile-art { height: 112px; }
}
@media (prefers-reduced-motion: reduce) { .tile a { transition: none; } .tile a:hover { transform: none; } }

/* ---------- Photos and motion ---------- */
/* Hero photo: housing behind an ink wash, drifting slowly */
.hero-photos { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: -4%; background: center 40% / cover no-repeat; opacity: 0; filter: saturate(.75); transition: opacity 1.8s ease; animation: drift 28s ease-in-out infinite alternate; }
.hero-photo.on { opacity: .42; }
body[data-page="home"] .hero { background: var(--ink-deep); padding-bottom: 132px; overflow: hidden; }
body[data-page="home"] .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(48% 62% at 76% 44%, rgba(238,201,78,.16), transparent 64%), linear-gradient(90deg, rgba(17,22,58,.96) 0%, rgba(17,22,58,.84) 42%, rgba(17,22,58,.62) 100%), linear-gradient(180deg, transparent 60%, var(--ink-deep) 100%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero.has-video .hero-video { opacity: .8; }
.hero.has-video .hero-photos { opacity: 0; transition: opacity 1.4s ease; }
body[data-page="home"] .hero.has-video::after { background: linear-gradient(90deg, rgba(17,22,58,.94) 0%, rgba(17,22,58,.78) 40%, rgba(17,22,58,.38) 100%), linear-gradient(180deg, transparent 62%, var(--ink-deep) 100%); }
body[data-page="home"] .hero::before { z-index: 1; }
body[data-page="home"] .hero-grid { position: relative; z-index: 2; }
@keyframes drift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.09) translate3d(-1.5%, -1%, 0); } }

/* Hero entrance: one sequence on load */
.anim .hero-copy > *, .anim .hero .xsec { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-copy > :nth-child(1) { animation-delay: .05s; }
.anim .hero-copy > :nth-child(2) { animation-delay: .14s; }
.anim .hero-copy > :nth-child(3) { animation-delay: .26s; }
.anim .hero-copy > :nth-child(4) { animation-delay: .38s; }
.anim .hero-copy > :nth-child(5) { animation-delay: .5s; }
.anim .hero .xsec { animation-name: bloom; animation-duration: 1.3s; animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Scroll reveal */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.anim [data-reveal].in { opacity: 1; transform: none; }

/* Number cards overlapping the hero */
.stats { position: relative; z-index: 3; margin-top: -84px; padding-bottom: 40px; }
.stat-cards { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-cards > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; background: #fff; border-radius: 12px; padding: 24px 24px 22px; border-top: 3px solid var(--gold); box-shadow: 0 18px 40px -22px rgba(17,22,58,.45); }
.stat-cards dd { margin: 0; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 780; font-stretch: 125%; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-cards dt { color: var(--muted); font-size: .93rem; line-height: 1.35; }

/* Photo tiles */
.tile-art { overflow: hidden; }
.tile-art.has-photo { padding: 0; position: relative; height: 150px; }
.tile-art.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.tile a:hover .has-photo img, .use-card:hover img { transform: scale(1.07); }
.t-lead .tile-art.has-photo { height: auto; min-height: 260px; }
.t-lead .tile-art.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--ink) 100%); }
.t-wide .tile-art.has-photo { height: 100%; }

/* Where it is used */
.uses { background: var(--ink); color: var(--on-ink); padding: 96px 0; }
.uses .sec-head h2 { color: #fff; }
.uses .sec-head p { color: var(--on-ink-muted); }
.use-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink-deep); }
.use-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.use-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,22,58,.05) 30%, rgba(17,22,58,.92) 100%); }
.use-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 6px; }
.use-name { font-size: 1.3rem; font-weight: 740; font-stretch: 118%; line-height: 1.15; }
.use-name::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; background: var(--gold); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.use-card:hover .use-name::after { width: 72px; }
.use-text { color: #CFD0D3; font-size: .96rem; line-height: 1.4; }
.use-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Story with photo */
.story { padding: 104px 0; background: #fff; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-photo { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 5 / 5.4; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--ink); font-weight: 720; font-stretch: 112%; padding: 12px 18px; border-top-right-radius: 12px; }
.story h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 770; margin-bottom: 22px; }
.story p { color: var(--muted); max-width: 56ch; margin: 0 0 16px; font-size: 1.05rem; }
.story-points { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 10px; }
.story-points li { position: relative; padding-left: 30px; font-weight: 620; color: var(--ink); }
.story-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 8px; border-left: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); transform: rotate(-45deg); }

/* WhatsApp button */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1FAF5A; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transition: transform .25s; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 980px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .use-cards { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-photo { aspect-ratio: 16 / 10; }
  .story, .uses { padding: 64px 0; }
  body[data-page="home"] .hero { padding-bottom: 112px; }
}
@media (max-width: 699px) {
  body[data-page="home"] .hero { padding-bottom: 96px; }
  .stats { margin-top: -64px; }
  .stat-cards { gap: 10px; }
  .stat-cards > div { padding: 16px 14px; }
  .use-card { aspect-ratio: 4 / 3; }
  .use-cards { grid-template-columns: 1fr; }
  .t-lead .tile-art.has-photo { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .anim .hero-copy > *, .anim .hero .xsec { animation: none; }
  .anim [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tile-art.has-photo img, .use-card img, .wa-fab { transition: none; }
  .tile a:hover .has-photo img, .use-card:hover img { transform: none; }
}

/* ---- Switches ---- */
.switches { background: #F4D2B4; padding: 96px 0; }
.sw-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.switches h2, .ev h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 760; margin: 0 0 18px; }
.switches p { max-width: 50ch; color: #4A3A2C; }
.switches .story-points { margin: 22px 0 28px; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plate { --face: #14161A; --rk: #8B8D90; aspect-ratio: 5 / 4; border-radius: 10px; background: var(--face); display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 24px -12px rgba(60,30,10,.55); }
.plate .mod { width: 66%; height: 58%; display: flex; gap: 3px; padding: 4px; border-radius: 5px; background: rgba(0,0,0,.28); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.plate .rk { flex: 1; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.12)), var(--rk); transition: transform .25s ease; transform-origin: 50% 0; }
.plate .sock { flex: 2; border-radius: 3px; background:
  radial-gradient(circle at 50% 30%, #111 0 9%, transparent 10%),
  radial-gradient(circle at 32% 66%, #111 0 7%, transparent 8%),
  radial-gradient(circle at 68% 66%, #111 0 7%, transparent 8%), var(--rk); }
.plate:hover .rk:first-of-type { transform: perspective(200px) rotateX(-14deg); }
.p-wood { --face: linear-gradient(100deg, #4A2A1B, #6B3D26 45%, #432417); --rk: #1B1B1D; }
.p-grey { --face: #6F6C68; --rk: #1B1B1D; }
.p-white { --face: #F5F4F1; --rk: #FFFFFF; }
.p-white .mod { box-shadow: 0 0 0 1px rgba(0,0,0,.18); background: rgba(0,0,0,.08); }
.p-coral { --face: #D9606B; --rk: #77757A; }
.p-black.w { --rk: #ECEBE8; }

/* ---- EV ---- */
.ev { background: var(--ink-deep); color: var(--on-ink); padding: 96px 0; }
.ev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.ev h2 { color: #fff; }
.ev p { color: var(--on-ink-muted); max-width: 48ch; margin: 0 0 28px; }
.ev-steps { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--gold); display: grid; gap: 30px; }
.ev-steps li { position: relative; }
.ev-steps { position: relative; }
.ev-steps::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 70px; background: linear-gradient(180deg, transparent, #fff, transparent); animation: ev-flow 3.2s linear infinite; }
@keyframes ev-flow { from { transform: translateY(-70px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(calc(var(--h, 260px))); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ev-steps::before { display: none; } }
.ev-steps li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(238,201,78,.18); }
.ev-steps strong { display: block; color: #fff; font-size: 1.2rem; font-weight: 700; }
.ev-steps span { color: var(--on-ink-muted); }
@media (max-width: 980px) {
  .sw-grid, .ev-grid { grid-template-columns: 1fr; gap: 40px; }
  .switches, .ev { padding: 64px 0; }
}
@media (max-width: 699px) {
  .plates { gap: 12px; }
  body[data-page="home"] .actions .btn { white-space: nowrap; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .plate .rk { transition: none; } }
