/* =========================================================================
   BULLA LUCIO — Macchine per cucire · Genova
   Design system: warm cream "pattern-paper", deep ink, brand red accent.
   Motif: dashed "stitch" lines. Type: Lexend + Red Hat Display.
   ========================================================================= */

:root{
  /* palette */
  --paper:      oklch(0.976 0.006 70);
  --paper-2:    oklch(0.955 0.010 72);
  --paper-3:    oklch(0.928 0.014 72);
  --ink:        oklch(0.23 0.07 257.05 / 1);
  --ink-2:      oklch(0.255 0.014 42);
  --ink-soft:   oklch(0.29 0 0);
  --ink-faint:  oklch(0.60 0.010 55);
  --line:       oklch(0.205 0.012 45 / 0.16);
  --line-soft:  oklch(0.205 0.012 45 / 0.10);

  --red:        oklch(0.49 0.18 27.3);
  --red-deep:   oklch(0.50 0.185 27);
  --red-soft:   oklch(0.585 0.214 27 / 0.10);

  /* type */
  --display: 'Lexend',Helvetica,Arial,Lucida,sans-serif;
  --sans: 'Red Hat Display',Helvetica,Arial,Lucida,sans-serif;

  /* metrics */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-size:17px;
  line-height:1.65;
  font-weight:380;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--red); color:#fff; }

/* ---------- typography ---------- */
h1,h2,h3{ font-family:var(--display); font-weight:600; line-height:1.07; margin:0; letter-spacing:-.01em; }
.h1{ font-size:clamp(2.7rem, 5.4vw, 5.2rem); font-weight:600; line-height:1.03; }
.h2{ font-size:clamp(2rem, 4.4vw, 3.4rem); }
.h3{ font-size:clamp(1.35rem, 2.2vw, 1.85rem); }
.lead{ font-size:clamp(1.05rem,1.5vw,1.28rem); line-height:1.5; color:var(--ink-soft); font-weight:380; }
p{ margin:0 0 1.1em; text-wrap:pretty; }
.serif-em{ font-family:var(--display); font-style:italic; font-weight:500; }

.eyebrow{
  display:inline-flex; align-items:center; gap:.6em;
  font-size:.72rem; letter-spacing:.22em; text-transform:uppercase;
  font-weight:600; color:var(--red);
}
.eyebrow::before{
  content:""; width:26px; height:0;
  border-top:1.5px dashed currentColor; opacity:.9;
}
.eyebrow.center::after{
  content:""; width:26px; height:0; border-top:1.5px dashed currentColor; opacity:.9;
}

/* ---------- layout ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter); }
.section{ padding-block:clamp(64px, 5vw, 90px); }
.section--tight{ padding-block:clamp(48px,6vw,54px); }
.center{ text-align:center; }
.measure{ max-width:62ch; }
.measure-sm{ max-width:46ch; }

/* dashed stitch divider */
.stitch{ border:0; height:0; border-top:1.5px dashed var(--line); margin:0; }
.stitch-v{ width:0; border-left:1.5px dashed var(--line); }

/* ---------- buttons ---------- */
.btn{
  --bg:var(--red); --fg:#fff;
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--sans); font-weight:600; font-size:.95rem;
  letter-spacing:.01em;
  padding:.92em 1.5em; border-radius:var(--radius);
  background:var(--bg); color:var(--fg);
  border:1.5px solid var(--bg);
  cursor:pointer; position:relative; overflow:hidden; white-space:nowrap;
  transition:transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease);
}
.btn .arr{ transition:transform .4s var(--ease); }
.btn:hover{ background:var(--red-deep); border-color:var(--red-deep); transform:translateY(-2px); box-shadow:0 12px 28px oklch(0.585 0.214 27 / .26); }
.btn:hover .arr{ transform:translateX(4px); }
.btn--ghost{ --bg:transparent; --fg:var(--ink); border-color:var(--line); }
.btn--ghost:hover{ background:var(--ink); border-color:var(--ink); color:var(--paper); box-shadow:none; }
.btn--light{ --bg:var(--paper); --fg:var(--ink); border-color:var(--paper); }
.btn--light:hover{ background:transparent; color:var(--paper); border-color:var(--paper); box-shadow:none; }
.btn--lg{ padding:1.05em 1.8em; font-size:1rem; }

.link-arrow{ display:inline-flex; align-items:center; gap:.5em; font-weight:600; color:var(--red); border-bottom:1.5px solid transparent; transition:border-color .3s; white-space:nowrap; }
.link-arrow .arr{ transition:transform .35s var(--ease); }
.link-arrow:hover{ border-color:var(--red); }
.link-arrow:hover .arr{ transform:translateX(4px); }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:oklch(0.976 0.006 70 / .82);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1.5px dashed transparent;
  transition:border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s;
}
.site-header.scrolled{ border-bottom-color:var(--line); box-shadow:0 6px 24px oklch(0.205 0.012 45 / .05); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:78px; }
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand__mark{ width:40px; height:40px; flex-shrink:0; color:var(--red); }
.brand__text{ line-height:1; }
.brand__name{ display:block; font-family:var(--display); font-weight:700; font-size:1.32rem; color:var(--red); letter-spacing:.01em; }
.brand__sub{ display:block; font-size:.58rem; letter-spacing:.26em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; margin-top:3px; }

.nav__links{ display:flex; align-items:center; gap:6px; }
.nav__link{
  font-size:.92rem; font-weight:500; padding:.55em .9em; border-radius:var(--radius);
  color:var(--ink-2); position:relative; transition:color .3s; white-space:nowrap;
}
.nav__link::after{
  content:""; position:absolute; left:.9em; right:.9em; bottom:.32em; height:0;
  border-top:1.5px dashed var(--red); opacity:0; transform:scaleX(.4);
  transition:opacity .3s var(--ease), transform .3s var(--ease); transform-origin:left;
}
.nav__link:hover{ color:var(--ink); }
.nav__link:hover::after,.nav__link.active::after{ opacity:1; transform:scaleX(1); }
.nav__link.active{ color:var(--red); }
.nav__cta{ margin-left:8px; }

.nav__toggle{
  display:none; width:46px; height:46px; border:1.5px solid var(--line);
  background:transparent; border-radius:var(--radius); cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav__toggle span{ width:20px; height:1.8px; background:var(--ink); transition:transform .35s var(--ease), opacity .25s; }
.nav__toggle.open span:nth-child(1){ transform:translateY(6.8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2){ opacity:0; }
.nav__toggle.open span:nth-child(3){ transform:translateY(-6.8px) rotate(-45deg); }

@media (max-width:920px){
  .nav__toggle{ display:flex; }
  .nav__links{
    position:fixed; inset:78px 0 auto 0; flex-direction:column; align-items:stretch; gap:2px;
    background:var(--paper); padding:18px var(--gutter) 30px; border-bottom:1.5px dashed var(--line);
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:transform .4s var(--ease), opacity .35s;
    box-shadow:0 20px 40px oklch(0.205 0.012 45 / .10);
  }
  .nav__links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav__link{ padding:.85em .4em; font-size:1.05rem; border-bottom:1px solid var(--line-soft); }
  .nav__link::after{ display:none; }
  .nav__cta{ margin:14px 0 0; justify-content:center; }
}

/* ---------- hero ---------- */
.hero{ position:relative; overflow:hidden; }
.hero__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,4vw,68px); align-items:center; padding-block:clamp(48px,7vw,96px); }
.hero__media{ position:relative; }
.hero__photo{ width:100%; height:auto; aspect-ratio:4/4.6; border-radius:var(--radius-lg); }
.hero__badge{
  position:absolute; left:-22px; bottom:34px; background:var(--paper);
  border:1.5px dashed var(--line); border-radius:var(--radius-lg);
  padding:16px 20px; box-shadow:0 18px 40px oklch(0.205 0.012 45 / .12);
  display:flex; align-items:center; gap:14px;
}
.hero__badge .num{ font-family:var(--display); font-size:2.1rem; font-weight:600; color:var(--red); line-height:1; }
.hero__badge .lbl{ font-size:.8rem; color:var(--ink-soft); line-height:1.3; max-width:13ch; }
@media (max-width:860px){
  .hero__grid{ grid-template-columns:1fr; }
  .hero__media{ order:-1; }
  .hero__photo{ aspect-ratio:4/3; }
  .hero__badge{ left:auto; right:16px; }
}

/* ---------- cards / services ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:900px){ .cards{ grid-template-columns:1fr; max-width:520px; margin-inline:auto; } }
.card{
  background:var(--paper); border:1.5px solid var(--line-soft); border-radius:var(--radius-lg);
  overflow:hidden; transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-6px); box-shadow:0 24px 50px oklch(0.205 0.012 45 / .10); border-color:var(--line); }
.card__media{ width:100%; aspect-ratio:4/3; position:relative; }
.card__icon{
  position:absolute; left:18px; bottom:-22px; width:52px; height:52px; border-radius:var(--radius);
  background:var(--red); color:#fff; display:grid; place-items:center; box-shadow:0 10px 22px oklch(0.585 0.214 27 /.3);
}
.card__body{ padding:34px 26px 30px; }
.card__body h3{ margin-bottom:.5em; }
.card__body p{ color:var(--ink-soft); font-size:.98rem; }
.card__foot{ margin-top:auto; padding:0 26px 28px; }

/* ---------- dark section ---------- */
.dark{ background:var(--ink); color:var(--paper); position:relative; overflow:hidden; }
.dark .eyebrow{ color:oklch(0.7 0.16 30); }
.dark .lead{ color:oklch(0.86 0.01 70 / .8); }
.dark .stitch{ border-top-color:oklch(0.86 0.01 70 / .2); }
.feature-list{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:14px 28px; }
.feature-list li{ display:flex; align-items:flex-start; gap:12px; font-size:1rem; color:oklch(0.9 0.01 70 / .92); }
.feature-list .tick{ flex-shrink:0; width:24px; height:24px; border-radius:var(--radius); background:var(--red); color:#fff; display:grid; place-items:center; margin-top:1px; }
@media (max-width:560px){ .feature-list{ grid-template-columns:1fr; } }

/* ---------- stats ---------- */
.stats{ display:flex; flex-wrap:wrap; gap:clamp(24px,4vw,44px); }
.stat .num{ font-family:var(--display); font-size:clamp(2.2rem,4vw,3.1rem); font-weight:600; color:var(--red); line-height:1; }
.stat .lbl{ font-size:.82rem; letter-spacing:.04em; color:var(--ink-soft); margin-top:6px; text-transform:uppercase; }

/* ---------- process steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:step; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; max-width:460px; margin-inline:auto; } }
.step{ position:relative; }
.step__media{ width:100%; aspect-ratio:4/3; border-radius:var(--radius-lg); position:relative; }
.step__num{
  position:absolute; top:-16px; right:18px; width:46px; height:46px; border-radius:50%;
  background:var(--paper); border:1.5px dashed var(--red); color:var(--red);
  font-family:var(--display); font-weight:700; display:grid; place-items:center; font-size:1.1rem;
}
.step h3{ margin:22px 0 .5em; }
.step p{ color:var(--ink-soft); font-size:.96rem; }

/* ---------- accordion ---------- */
.acc{ border-top:1.5px dashed var(--line); }
.acc__item{ border-bottom:1.5px dashed var(--line); }
.acc__head{
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:1.25em 0; font-family:var(--sans); font-weight:600; font-size:1.08rem; color:var(--ink);
}
.acc__sign{ flex-shrink:0; width:30px; height:30px; position:relative; }
.acc__sign::before,.acc__sign::after{ content:""; position:absolute; background:var(--red); transition:transform .4s var(--ease); }
.acc__sign::before{ top:50%; left:6px; right:6px; height:1.8px; transform:translateY(-50%); }
.acc__sign::after{ left:50%; top:6px; bottom:6px; width:1.8px; transform:translateX(-50%); }
.acc__item.open .acc__sign::after{ transform:translateX(-50%) scaleY(0); }
.acc__panel{ overflow:hidden; max-height:0; transition:max-height .5s var(--ease); }
.acc__panel-inner{ padding:0 0 1.4em; color:var(--ink-soft); max-width:64ch; }

/* ---------- specs table ---------- */
.specs{ list-style:none; margin:0; padding:0; }
.specs li{ display:flex; align-items:baseline; gap:14px; padding:.7em 0; border-bottom:1.5px dashed var(--line); }
.specs li::before{ content:""; flex-shrink:0; width:8px; height:8px; margin-top:.35em; background:var(--red); transform:rotate(45deg); }
.specs .k{ font-weight:500; }

/* ---------- product split ---------- */
.product{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,60px); align-items:center; }
.product.rev .product__media{ order:2; }
.product__media{ position:relative; }
.product__photo{ width:100%; height:auto; aspect-ratio:4/3.2; border-radius:var(--radius-lg); }
.product__tag{
  position:absolute; top:16px; left:16px; background:var(--red); color:#fff;
  font-size:.72rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; white-space:nowrap;
  padding:.5em .9em; border-radius:var(--radius);
}
@media (max-width:820px){ .product{ grid-template-columns:1fr; } .product.rev .product__media{ order:0; } }

/* ---------- model cards grid (catalogo Necchi) ---------- */
.model-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:900px){ .model-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .model-grid{ grid-template-columns:1fr; max-width:420px; margin-inline:auto; } }
.model{ background:var(--paper); border:1.5px solid var(--line-soft); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.model:hover{ transform:translateY(-6px); box-shadow:0 24px 50px oklch(0.205 0.012 45 / .10); border-color:var(--line); }
.model__media{ position:relative; width:100%; aspect-ratio:4/3; }
.model__media img{ width:100%; height:100%; object-fit:cover; }
.model__tag{ position:absolute; top:14px; left:14px; background:var(--paper); color:var(--red); font-size:.66rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; padding:.42em .8em; border-radius:var(--radius); box-shadow:0 4px 14px oklch(0.205 0.012 45 / .12); }
.model__body{ padding:24px 24px 26px; display:flex; flex-direction:column; flex:1; }
.model__name{ font-family:var(--display); font-weight:600; font-size:1.5rem; line-height:1.05; }
.model__desc{ color:var(--ink-soft); font-size:.92rem; margin:.5em 0 0; }
.model__specs{ list-style:none; margin:16px 0 0; padding:0; }
.model__specs li{ position:relative; padding:.34em 0 .34em 18px; font-size:.88rem; color:var(--ink-2); border-bottom:1px dashed var(--line-soft); }
.model__specs li:last-child{ border-bottom:0; }
.model__specs li::before{ content:""; position:absolute; left:0; top:.7em; width:6px; height:6px; background:var(--red); transform:rotate(45deg); }
.model__foot{ margin-top:auto; padding-top:18px; }
.cat-head{ display:flex; align-items:center; gap:20px; margin-bottom:8px; }
.cat-head .stitch{ flex:1; }

/* ---------- forms ---------- */
.form{ display:grid; gap:16px; }
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .form__row{ grid-template-columns:1fr; } }
.field{ position:relative; display:flex; flex-direction:column; gap:7px; }
.field label{ font-size:.82rem; font-weight:600; letter-spacing:.02em; color:var(--ink-soft); }
.field label .req{ color:var(--red); }
.field input,.field textarea,.field select{
  font-family:var(--sans); font-size:1rem; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius);
  padding:.85em 1em; transition:border-color .3s, box-shadow .3s, background .3s; width:100%;
}
.field textarea{ resize:vertical; min-height:130px; }
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none; border-color:var(--red); box-shadow:0 0 0 4px var(--red-soft);
}
.field.invalid input,.field.invalid textarea{ border-color:var(--red); }
.field__err{ font-size:.78rem; color:var(--red); font-weight:600; min-height:1em; opacity:0; transform:translateY(-3px); transition:opacity .3s, transform .3s; }
.field.invalid .field__err{ opacity:1; transform:none; }
.check{ display:flex; align-items:flex-start; gap:11px; font-size:.88rem; color:var(--ink-soft); cursor:pointer; }
.check input{ width:18px; height:18px; margin-top:3px; accent-color:var(--red); flex-shrink:0; }

.form-dark .field label{ color:oklch(0.86 0.01 70 / .75); }
.form-dark .field input,.form-dark .field textarea,.form-dark .field select{
  background:oklch(0.255 0.014 42); border-color:oklch(0.86 0.01 70 / .2); color:var(--paper);
}
.form-dark .field input::placeholder,.form-dark .field textarea::placeholder{ color:oklch(0.86 0.01 70 / .4); }

.form__success{
  display:none; align-items:center; gap:14px; padding:1.1em 1.3em; border-radius:var(--radius-lg);
  background:var(--red-soft); border:1.5px dashed var(--red); color:var(--red-deep); font-weight:600;
}
.form__success.show{ display:flex; }

/* ---------- testimonials ---------- */
.quote{ font-family:var(--display); font-size:clamp(1.5rem,3vw,2.3rem); line-height:1.3; font-weight:500; }
.quote__mark{ font-family:var(--display); font-size:4rem; color:var(--red); line-height:.6; }
.rating{ display:inline-flex; gap:3px; color:var(--red); }

/* ---------- info / contact tiles ---------- */
.tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1.5px dashed var(--line); border-radius:var(--radius-lg); overflow:hidden; }
.tile{ padding:30px 28px; border-right:1.5px dashed var(--line); }
.tile:last-child{ border-right:0; }
.tile__ic{ width:44px; height:44px; border-radius:var(--radius); background:var(--red-soft); color:var(--red); display:grid; place-items:center; margin-bottom:16px; }
.tile h3{ font-family:var(--sans); font-size:1.02rem; font-weight:700; margin-bottom:.3em; }
.tile p,.tile a{ color:var(--ink-soft); font-size:.96rem; }
.tile a:hover{ color:var(--red); }
@media (max-width:760px){ .tiles{ grid-template-columns:1fr; } .tile{ border-right:0; border-bottom:1.5px dashed var(--line); } .tile:last-child{ border-bottom:0; } }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); color:oklch(0.88 0.01 70 / .85); padding-block:clamp(56px,7vw,88px) 30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:30px; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer .brand__name{ color:#fff; }
.site-footer .brand__sub{ color:oklch(0.88 0.01 70 / .5); }
.footer-col h4{ font-family:var(--sans); font-size:.78rem; letter-spacing:.18em; text-transform:uppercase; color:oklch(0.59 0.21 26.84); margin:0 0 16px; font-weight:700; }
.footer-col a,.footer-col p{ display:block; color:oklch(1 0 0); font-size:.95rem; margin-bottom:10px; transition:color .3s; }
.footer-col a:hover{ color:#fff; }
.footer-bottom a{ color:oklch(0.88 0.01 70 / .9); text-decoration:underline; text-underline-offset:2px; }
.footer-bottom a:hover{ color:#fff; }
.footer-bottom{ margin-top:48px; padding-top:24px; border-top:1.5px dashed oklch(0.88 0.01 70 / .18); display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:.82rem; color:oklch(1 0 0); }

/* ---------- floating call ---------- */
.fab{
  position:fixed; right:22px; bottom:22px; z-index:55;
  display:inline-flex; align-items:center; gap:10px;
  background:var(--red); color:#fff; font-weight:600; font-size:.92rem;
  padding:.85em 1.25em; border-radius:100px; box-shadow:0 14px 34px oklch(0.585 0.214 27 / .4);
  transform:translateY(0); transition:transform .4s var(--ease), box-shadow .4s;
}
.fab:hover{ transform:translateY(-3px) scale(1.02); box-shadow:0 18px 40px oklch(0.585 0.214 27 / .5); }
.fab{ white-space:nowrap; }
.fab__txt{ }
@media (max-width:600px){ .fab__txt{ display:none; } .fab{ padding:1em; } }

/* ---------- page intro banner ---------- */
.page-hero{ position:relative; overflow:hidden; padding-block:clamp(70px,9vw,128px) clamp(40px,5vw,64px); }
.page-hero .crumbs{ font-size:.82rem; color:var(--ink-faint); letter-spacing:.04em; margin-bottom:20px; }
.page-hero .crumbs a:hover{ color:var(--red); }
.page-hero .crumbs span{ color:var(--red); }

/* ---------- full-bleed image banner (inner page heroes) ---------- */
.page-banner{
  position:relative; overflow:hidden; background:var(--ink);
  min-height:clamp(360px,46vw,560px);
  display:flex; align-items:center;
}
.page-banner__slot{
  position:absolute; inset:0; width:100% !important; height:100% !important;
  z-index:0; border-radius:0 !important;
}
/* theme the empty drop-state for a dark banner */
.page-banner__slot::part(frame){ background:transparent; border-radius:0; }
.page-banner__slot::part(ring){ border-color:rgba(255,255,255,.30); border-radius:0; }
.page-banner__slot::part(empty){ color:rgba(255,255,255,.72); }
.page-banner__scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(90deg, oklch(0.20 0.05 257 / .88) 0%, oklch(0.20 0.05 257 / .62) 42%, oklch(0.20 0.05 257 / .22) 100%),
    linear-gradient(0deg, oklch(0.20 0.05 257 / .55) 0%, transparent 45%);
}
.page-banner__inner{ position:relative; z-index:2; color:#fff; pointer-events:none; width:100%;padding-top: 40px;padding-bottom: 40px; }
.page-banner__inner a{ pointer-events:auto; }
.page-banner .crumbs{ font-size:.82rem; letter-spacing:.04em; margin-bottom:18px; color:rgba(255,255,255,.72); }
.page-banner .crumbs a{ color:rgba(255,255,255,.72); }
.page-banner .crumbs a:hover{ color:#fff; }
.page-banner .crumbs span{ color:#fff; }
.page-banner h1{
  color:#fff; letter-spacing:-.005em; line-height:.98;
  font-size:clamp(2.6rem,5vw,4rem); max-width:20ch;
  text-shadow:0 2px 30px oklch(0.18 0.05 257 / .35);
}
.page-banner__sub{
  color:rgba(255,255,255,.9); font-size:clamp(1.05rem,1.6vw,1.32rem);
  margin-top:18px; max-width:48ch; line-height:1.5;
}
.page-banner__cta{ margin-top:30px; display:flex; flex-wrap:wrap; gap:14px; }
@media (max-width:560px){
  .page-banner{ min-height:clamp(320px,72vw,440px); }
  .page-banner__scrim{ background:
    linear-gradient(0deg, oklch(0.20 0.05 257 / .92) 0%, oklch(0.20 0.05 257 / .55) 55%, oklch(0.20 0.05 257 / .35) 100%); }
}

/* image-slot styling */
image-slot{ --is-bg:var(--paper-3); background:var(--paper-3); border:1.6px dashed var(--line); border-radius:var(--radius-lg); overflow:hidden; }
/* slots that set their own aspect-ratio (class or inline) must release the component's fixed host height */
.hero__photo, .product__photo, .slot-ar{ height:auto !important; }

/* static production images (replace the editable image-slots) */
img.slot-img{ display:block; object-fit:cover; background:var(--paper-3); }
.hero__photo.slot-img, .product__photo.slot-img{ width:100%; }
.page-banner__slot.slot-img{ position:absolute; inset:0; width:100% !important; height:100% !important; z-index:0; border-radius:0 !important; }

/* ---------- reveal animation (only active when JS adds .js to <html>) ---------- */
.js .reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }
.reveal[data-d="1"]{ transition-delay:.08s; }
.reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; }
.reveal[data-d="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion:reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
  *{ scroll-behavior:auto !important; }
}

/* page transition veil — JS-gated so no-JS users never see a stuck overlay,
   with a pure-CSS failsafe that always lifts it even if site.js fails to run */
.page-veil{
  position:fixed; inset:0; z-index:200; background:var(--paper);
  transform:translateY(0); pointer-events:none; display:none;
  transition:transform .6s var(--ease);
}
.js .page-veil{ display:block; animation:veilFailsafe .4s var(--ease) 2.4s forwards; }
.page-veil.lift{ transform:translateY(-100%); }
.page-veil.drop{ transform:translateY(0); }
.page-veil.hidden{ display:none; }
@keyframes veilFailsafe{ to{ transform:translateY(-100%); visibility:hidden; } }

/* =========================================================================
   RESPONSIVE — collapse inline grids on tablet/mobile
   Inline `grid-template-columns` beats stylesheet media queries, so these
   rules use !important to force a single (or two) column layout on small
   screens. Targets any grid declared inline inside <main>.
   ========================================================================= */
@media (max-width:860px){
  /* every inline multi-column grid in the page content → single column */
  main [style*="grid-template-columns"]{ grid-template-columns:1fr !important; }
  /* contact form: column block becomes full width and stacks above info card */
  .page-hero [style*="grid-template-columns"]{ grid-template-columns:1fr !important; }
  /* keep absolutely-positioned hero/about accents from overflowing */
  .hero__badge{ left:auto; right:12px; }
}
/* tablet: keep dense card grids at two columns instead of one */
@media (min-width:561px) and (max-width:860px){
  main [style*="repeat(4"]{ grid-template-columns:1fr 1fr !important; }
  main [style*="repeat(2"]{ grid-template-columns:1fr 1fr !important; }
  main [style*="repeat(3"]{ grid-template-columns:1fr 1fr !important; }
}
@media (max-width:560px){
  .stats{ gap:24px 32px; }
  /* the second (overlapping) about photo reads better inline on phones */
  #home-about-2{ position:static !important; width:100% !important; right:auto !important; bottom:auto !important; margin-top:16px; border-width:0 !important; }
}

/* utility */
.muted{ color:var(--ink-soft); }
.mt-s{ margin-top:14px; } .mt-m{ margin-top:26px; } .mt-l{ margin-top:44px; }
.flex{ display:flex; } .gap-s{ gap:12px; } .gap-m{ gap:20px; }
.wrapline{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
