/* PLUS ONE Automations — site styles
   Theme: the work itself. Gloss-black parts, gold and silver foil, red silicone dies,
   machined aluminium, on a deep steel-blue ground. */

:root {
  --bg: #0c1726;           /* deep steel blue: page */
  --bg-deep: #08111d;      /* footer, wells */
  --panel: #112036;        /* raised sections */
  --panel-2: #172b45;
  --line: rgba(160, 188, 220, 0.16);
  --line-strong: rgba(160, 188, 220, 0.32);
  --text: #e8eef6;
  --muted: #a3b5ca;
  --link: #82b4e8;         /* logo blue, lifted for dark ground */
  --logo-blue: #5b93ce;
  --silicone: #c25a3f;     /* the red of the silicon dies */
  --whatsapp: #1f9d57;

  --gold: linear-gradient(100deg, #8c6620 0%, #e9c46a 22%, #fff0bd 34%, #c99a3a 48%, #f3d78a 62%, #9c7326 80%, #e2bb5e 100%);
  --silver: linear-gradient(100deg, #7d8790 0%, #d9dfe5 22%, #ffffff 34%, #a6afb8 48%, #eef2f5 62%, #7f8992 80%, #cfd6dc 100%);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: #b3d3f5; }
:focus-visible { outline: 3px solid #f3d78a; outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font);
  font-stretch: 118%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); font-stretch: 112%; letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.02; }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: 0.5rem 1rem; z-index: 100; }
.muted { color: var(--muted); }
.note { font-size: 0.95rem; color: var(--muted); }

/* ---------- Header: floating pill ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.site-header .wrap {
  pointer-events: auto; position: relative;
  max-width: 68rem; margin: 0 var(--gutter); margin-inline: max(var(--gutter), calc((100vw - 68rem) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.6rem; padding: 0.35rem 0.4rem 0.35rem 1.25rem;
  background: rgba(10, 20, 34, 0.72);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.7);
}
.brand img { width: clamp(160px, 20vw, 200px); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; align-items: center; }
.nav a { display: block; padding: 0.5rem 0.8rem; text-decoration: none; color: var(--muted); font-weight: 550; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.09); }
.nav .nav-call { margin-left: 0.35rem; }
.nav .nav-call .btn { display: inline-flex; padding: 0.6rem 1.1rem; border-radius: 999px; }
.nav .nav-call .btn-primary, .nav .nav-call .btn-primary:hover { color: #1d1405; background: var(--gold); background-size: 200% 100%; }

.nav-toggle {
  display: none; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.55rem 1rem; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: rgba(10, 20, 34, 0.96); border: 1px solid var(--line-strong); border-radius: 20px; display: none; overflow: hidden; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.6rem; gap: 0.15rem; }
  .nav a { padding: 0.8rem 1rem; border-radius: 12px; }
  .nav .nav-call { margin: 0.4rem 0 0; }
  .nav .nav-call .btn { width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 650; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--gold); background-size: 200% 100%; color: #1d1405; border-color: #b58a33; }
.btn-primary:hover { background-position: 100% 0; color: #1d1405; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #18834a; color: #fff; }
.btn-plain { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-plain:hover { border-color: var(--text); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { .btn-primary { transition: background-position .6s ease; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }

.grid-bg {
  background:
    linear-gradient(rgba(130, 180, 232, .06) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(130, 180, 232, .06) 1px, transparent 1px) 0 0 / 36px 36px,
    radial-gradient(ellipse at 70% 20%, #1b3658 0%, transparent 60%),
    var(--bg);
}

.page-head { padding: clamp(7.5rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16ch; }
.page-head p { font-size: 1.15rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 44ch; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 0.92rem; text-decoration: none;
}
.chip:hover { color: #fff; border-color: rgba(233,196,106,.6); }
.chip-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: #1d1405; font-weight: 800; font-size: 0.75rem; }

.hero-reel { position: relative; justify-self: end; width: min(100%, 420px); }
.hero-reel video {
  display: block; width: 100%; height: auto; max-height: calc(100svh - 9rem); aspect-ratio: 4 / 5.6; object-fit: cover; object-position: center 35%;
  border-radius: 28px; border: 1px solid var(--line-strong); background: #000;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.reel-tag {
  position: absolute; left: -1.25rem; bottom: 1.5rem;
  background: rgba(10, 20, 34, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 0.8rem 1rem; min-width: 12rem;
}
.reel-tag strong { display: block; font-stretch: 125%; font-size: 1.6rem; line-height: 1; color: #fff; }
.reel-tag span { font-size: 0.85rem; color: var(--muted); }
.reel-live { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 0.8rem; color: #fff; }
.reel-live::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #ff4d3d; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-reel { justify-self: center; width: min(100%, 360px); }
  .reel-tag { left: 0.75rem; }
}

/* ---------- Try-it stage ---------- */
.stage-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stage-grid .rig { border-radius: var(--radius-lg); }
@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr; } }

/* ---------- The stamping rig (hero demo) ---------- */
.rig {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.07), transparent 60%),
    var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
  overflow: hidden;
}
.rig-stage { position: relative; height: clamp(250px, 34vw, 330px); }

/* Press: rod + aluminium die holder + red silicone die */
.press { position: absolute; left: 50%; top: 0; width: min(78%, 400px); transform: translateX(-50%) translateY(0); z-index: 2; }
.press-rod {
  width: 46px; height: 64px; margin: 0 auto;
  background: linear-gradient(90deg, #5d6873, #dfe5ea 35%, #9aa4ae 60%, #59636d);
  border-left: 1px solid #39424b; border-right: 1px solid #39424b;
}
.die-base {
  height: 26px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #e6ebef, #a3adb7 55%, #7f8a95);
  border: 1px solid #5d6873;
  position: relative;
}
.die-base::before, .die-base::after {
  content: ""; position: absolute; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #6f7a85 70%);
}
.die-base::before { left: 12px; } .die-base::after { right: 12px; }
.die-face {
  margin: 0 10px; height: 58px; border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #b8503a, #c96449 50%, #a94631);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25);
}
.die-text {
  display: block; transform: scaleX(-1);
  font-stretch: 125%; font-weight: 800; white-space: nowrap;
  color: #d9775d;
  text-shadow: 0 1px 0 #f09a7f, 0 -1px 0 #8e3725, 0 2px 3px rgba(0,0,0,.35);
}
.heat {
  position: absolute; left: 50%; top: 100%; width: 70%; height: 18px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,140,60,.55), transparent 70%);
  opacity: 0; filter: blur(4px);
}

/* Part: glossy black body, like the appliance parts we stamp */
.part {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(92%, 470px); height: 46%;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(170deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.04) 28%, transparent 40%),
    linear-gradient(180deg, #23272d, #0a0c0f 70%);
  border: 1px solid #343a42;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.foil-text {
  display: block; padding: 0 0.5rem;
  font-stretch: 125%; font-weight: 800; white-space: nowrap;
  background-image: var(--gold); background-size: 250% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; filter: drop-shadow(0 1px 0 rgba(0,0,0,.6));
}
.rig[data-foil="silver"] .foil-text { background-image: var(--silver); }
.rig.stamped .foil-text { opacity: 1; }

.rig-caption { font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0.9rem; max-width: none; }
.rig-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; }
.rig-controls label.text-field { flex: 1 1 12rem; }
.rig-controls input[type="text"] {
  width: 100%; height: 100%; min-height: 2.9rem; padding: 0.6rem 0.85rem;
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.rig-controls input[type="text"]::placeholder { color: #7f93aa; }
.foil-pick { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.foil-pick input { position: absolute; opacity: 0; pointer-events: none; }
.foil-pick label { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.85rem; cursor: pointer; font-weight: 600; color: var(--muted); min-height: 2.9rem; }
.foil-pick label + input + label { border-left: 1px solid var(--line-strong); }
.foil-pick .swatch { width: 0.95rem; height: 0.95rem; border-radius: 50%; }
.foil-pick .swatch.gold { background: var(--gold); }
.foil-pick .swatch.silver { background: var(--silver); }
.foil-pick input:checked + label { background: var(--panel-2); color: #fff; }
.foil-pick input:focus-visible + label { outline: 3px solid #f3d78a; outline-offset: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .rig.pressing .press { animation: press 1.5s cubic-bezier(.55, 0, .35, 1) both; }
  .rig.pressing .heat { animation: heat 1.5s ease both; }
  .rig.stamped .foil-text { animation: foil-in .5s ease-out both, sheen 2.2s .25s ease-in-out both; }
}
@keyframes press {
  0% { transform: translateX(-50%) translateY(0); }
  38%, 56% { transform: translateX(-50%) translateY(var(--travel, 120px)); }
  100% { transform: translateX(-50%) translateY(0); }
}
@keyframes heat { 0%, 30% { opacity: 0; } 42%, 54% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes foil-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Spec figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { padding: 1.75rem 1.25rem 1.5rem; }
.figure + .figure { border-left: 1px solid var(--line); }
.figure strong { display: block; font-stretch: 125%; font-weight: 750; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { padding: 1.4rem 0.9rem 1.2rem; }
  .figure strong { font-size: 1.75rem; font-stretch: 108%; white-space: nowrap; }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- The nameplate ---------- */
.plate {
  --rivet: radial-gradient(circle, #8d97a3 0 2.5px, #c3cad2 3px 4px, transparent 4.5px);
  background:
    var(--rivet) 10px 10px / 12px 12px no-repeat,
    var(--rivet) calc(100% - 10px) 10px / 12px 12px no-repeat,
    var(--rivet) 10px calc(100% - 10px) / 12px 12px no-repeat,
    var(--rivet) calc(100% - 10px) calc(100% - 10px) / 12px 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #e9edf1, #c9d1da);
  border: 1px solid #9aa5b1; border-radius: 6px;
  padding: 1.4rem 1.6rem 1.2rem; color: #26303c;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -18px rgba(0,0,0,.8);
}
.plate-maker { font-size: 0.8rem; font-weight: 600; color: #4a5563; margin: 0; }
.plate-model { font-stretch: 125%; font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 0.2rem 0 0.15rem; color: #1f2832; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.plate-type { font-size: 0.9rem; margin: 0 0 0.8rem; color: #3b4652; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-size: 0.92rem; border-top: 1px solid #a9b3be; padding-top: 0.7rem; }
.plate dt { color: #4a5563; }
.plate dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.plate-large { padding: 1.8rem 2rem 1.5rem; }
.plate-large .plate-model { font-size: 3.4rem; }
.plate-large dl { font-size: 1rem; }

/* ---------- Machine feature ---------- */
.machine-feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.machine-shot { position: relative; margin: 0; }
.machine-shot img, .machine-shot video { display: block; border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: center 25%; background: #000; }
.shot-frame { position: relative; }
.machine-shot figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.machine-shot .plate { position: absolute; right: -1.5rem; bottom: 1.5rem; width: min(17rem, 85%); padding: 1.1rem 1.3rem 1rem; }
.machine-shot .plate-model { font-size: 2.1rem; }
@media (max-width: 900px) {
  .machine-feature { grid-template-columns: 1fr; }
  .machine-shot .plate { position: relative; right: auto; bottom: auto; margin: -3rem auto 0; }
}

/* ---------- Offer ---------- */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.offer-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 1.1rem; border: 1px solid var(--line); }
.offer-item p { color: var(--muted); }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }

/* ---------- Die marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; margin: 0; padding: 0; list-style: none; }
.marquee-track li { flex: 0 0 auto; width: clamp(200px, 22vw, 280px); }
.marquee-track figure { margin: 0; }
.marquee-track img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.marquee-track figcaption { font-size: 0.88rem; color: var(--muted); padding: 0.5rem 0.25rem 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 55s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track li[aria-hidden="true"] { display: none; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.5rem)); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 22vw, 270px); gap: 1rem; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem;
}
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,17,29,.05) 0%, rgba(8,17,29,.55) 45%, rgba(8,17,29,.96) 100%); }
.tile > :not(img) { position: relative; z-index: 2; }
.tile h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 0.3rem; }
.tile p { color: #c4d1e0; font-size: 0.98rem; margin: 0; max-width: 40ch; }
.tile .go { margin-top: 0.8rem; font-weight: 650; color: #f3d78a; }
a.tile:hover { border-color: rgba(233,196,106,.55); }
@media (prefers-reduced-motion: no-preference) { .tile > img { transition: transform .6s ease; } a.tile:hover > img { transform: scale(1.04); } }
.tile-machines { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile-machines > img { object-position: center 30%; }
.tile-dies { grid-column: 3 / 5; }
.tile-fixtures { grid-column: 3 / 4; }
.tile-stat { grid-column: 4 / 5; background: var(--gold); border: 0; color: #1d1405; justify-content: space-between; }
.tile-stat::after { display: none; }
.tile-stat strong { font-stretch: 125%; font-weight: 800; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.tile-stat p { color: #3a2b0c; font-weight: 600; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .tile-machines { grid-column: 1 / 3; grid-row: span 2; }
  .tile-dies { grid-column: 1 / 3; }
  .tile-fixtures, .tile-stat { grid-column: auto; }
}

/* ---------- Story: how a part gets stamped ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.story-sticky { position: sticky; top: 6.5rem; aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); }
.story-sticky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.story-sticky img.active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .story-sticky img { transition: opacity .5s ease, transform .8s ease; transform: scale(1.03); } .story-sticky img.active { transform: none; } }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-steps li { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: .4; }
.story-steps li.active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .story-steps li { transition: opacity .4s ease; } }
.step-no { font-stretch: 125%; font-weight: 800; font-size: 1rem; color: #f3d78a; margin-bottom: 0.8rem; font-variant-numeric: tabular-nums; }
.story-steps h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
.story-steps p { color: var(--muted); font-size: 1.1rem; }
.story-steps .step-img { display: none; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .story-steps li { min-height: 0; opacity: 1; padding: 1.5rem 0; }
  .story-steps .step-img { display: block; border-radius: var(--radius-lg); margin-bottom: 1.2rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
}

/* ---------- Big closing call to action ---------- */
.cta-big { padding: clamp(4rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
.cta-title { font-size: clamp(3rem, 10vw, 8.5rem); line-height: 0.92; letter-spacing: -0.045em; font-stretch: 112%; max-width: 11ch; margin-bottom: 1.5rem; }
.cta-big p { color: var(--muted); font-size: 1.15rem; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding: 0.6rem 0 0.6rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 1.1rem; width: 0.6rem; height: 0.6rem; background: var(--silicone); border-radius: 1px; }

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); cursor: zoom-in; overflow: hidden; }
.gallery button:hover { border-color: var(--line-strong); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption { font-size: 0.92rem; color: var(--muted); padding-top: 0.45rem; }
.gallery-group + .gallery-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.gallery-group .section-head { margin-bottom: 1.25rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(4, 9, 16, 0.92); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: #e6ebf0; text-align: center; margin: 0.75rem auto 0; }
.lightbox .close { position: fixed; top: 1rem; right: 1rem; background: #fff; color: #111; border: 0; border-radius: var(--radius); padding: 0.5rem 0.9rem; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Client strip ---------- */
.client .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.client-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.client-photos img, .client-photos video { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #000; display: block; }
@media (max-width: 900px) { .client .wrap { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 4.25rem; height: 3rem; border-radius: 0.75rem; background: #d32020; display: grid; place-items: center; }
.yt .play::after { content: ""; border-style: solid; border-width: 0.6rem 0 0.6rem 1rem; border-color: transparent transparent transparent #fff; margin-left: 0.2rem; }
.yt:hover .play { background: #b00f0f; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.contact-band { background: var(--panel-2); border-top: 1px solid var(--line-strong); }
.contact-band p { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-block h2 { font-size: 1.35rem; }
.contact-block .big { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.6rem; overflow-wrap: anywhere; color: #fff; }
.contact-block .actions { margin-top: 0.4rem; margin-bottom: 1.2rem; }
.contact-block .actions:last-child { margin-bottom: 0; }
address { font-style: normal; }
.map { width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 2rem; filter: grayscale(.2) contrast(1.05); }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 3.5rem 0 6rem; font-size: 0.95rem; color: var(--muted); }
.site-footer a { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 0.6rem; font-stretch: 110%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer .legal { margin-top: 2.5rem; font-size: 0.88rem; }
.site-footer .brand img { width: 220px; margin-bottom: 0.8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .site-footer { padding-bottom: 3rem; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(8, 17, 29, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.55rem 0.25rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--text); }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  .mobile-bar svg { width: 1.35rem; height: 1.35rem; }
  .mobile-bar .wa { color: #4cd28a; }
  .mobile-bar .call { color: #f3d78a; }
}

/* ---------- About page ---------- */
.lead { font-stretch: 112%; font-weight: 650; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; max-width: 22ch; margin-bottom: 1.5rem; }
.about-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-intro p:not(.lead) { color: var(--muted); font-size: 1.08rem; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.about-photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }

.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cap { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.cap img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.cap h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.cap p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.6rem; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cap { grid-template-columns: 1fr; } .cap img { aspect-ratio: 16 / 9; } }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 1.75rem 1.5rem 1.5rem 0; }
.process li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.process .step-no { display: block; }
.process h3 { font-size: 1.25rem; }
.process p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding-left: 0; border-left: 0; }
  .process li + li { border-top: 1px solid var(--line); }
}

.about-client { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-client .client-photos { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .about-client { grid-template-columns: 1fr; } }

.company-info { margin: 0; border-top: 1px solid var(--line); }
.company-info > div { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.company-info dt { color: var(--muted); }
.company-info dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
@media (max-width: 600px) { .company-info > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- In-page jump links ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.jump a { padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 0.92rem; background: rgba(255,255,255,.03); }
.jump a:hover { border-color: rgba(233,196,106,.6); color: #fff; }
section[id], div[id] { scroll-margin-top: 6rem; }

/* ---------- Product (Machines page) ---------- */
.product { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-media { margin: 0; position: sticky; top: 6.5rem; }
.product-media video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5.4; object-fit: cover; object-position: center 35%; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: #000; }
.product-media figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product-media { position: static; max-width: 420px; } }

.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 0.5rem; font-size: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 1rem; }
.spec-table td { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

.machine-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.machine-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-height: 11rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.machine-card h3 { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.machine-card h3::before { content: ""; display: block; width: 1.6rem; height: 0.35rem; border-radius: 2px; background: var(--silicone); margin-bottom: 1rem; }
.machine-card a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: #4cd28a; text-decoration: none; }
.machine-card a:hover { color: #7be3aa; }
.machine-card svg { width: 1.1em; height: 1.1em; }
@media (max-width: 1000px) { .machine-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .machine-grid { grid-template-columns: 1fr; } .machine-card { min-height: 0; } }

/* ---------- Contact person ---------- */
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.5rem; margin-bottom: 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg); }
.person .actions { margin: 0 0 0 auto; }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1d1405; font-weight: 800; font-stretch: 115%; }
.person-name { font-stretch: 112%; font-weight: 700; font-size: 1.35rem; color: #fff; margin: 0; }
.person .muted { margin: 0; }
@media (max-width: 600px) { .person .actions { margin-left: 0; } }
.split .map { margin-top: 0; aspect-ratio: 4 / 3.2; }
@media (max-width: 420px) { .contact-block .big { font-size: 0.98rem; } }

/* Denser photo grids: 2 per row on phones, more on wider screens */
.gallery { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery figcaption { font-size: 0.8rem; line-height: 1.35; padding-top: 0.35rem; }
  .gallery button { border-radius: 10px; }
  .gallery-group + .gallery-group { margin-top: 2.5rem; }
  .section-head { margin-bottom: 1.25rem; }
}

/* ---------- Phone: shorter sections ---------- */
@media (max-width: 600px) {
  .section { padding: 3rem 0; }

  /* Home: "What we make" tiles as a compact 2-column grid */
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 0.6rem; }
  .tile { padding: 0.9rem; border-radius: 16px; }
  .tile-machines { grid-column: 1 / 3; grid-row: span 1; }
  .tile-dies, .tile-fixtures { grid-column: auto; }
  .tile h3 { font-size: 1.05rem; margin: 0; }
  .tile p, .tile .go { display: none; }
  .tile-machines p { display: none; }
  .tile-stat { grid-column: 1 / 3; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; grid-row: span 1; height: auto; }
  .tile-stat strong { font-size: 3.2rem; }
  .tile-stat p { display: block; font-size: 0.95rem; }

  /* Home: story steps as image + text rows */
  .story-steps li { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .story-steps .step-img { grid-row: 1 / 4; margin: 0; aspect-ratio: 1; border-radius: 12px; }
  .story-steps .step-no { margin: 0 0 0.2rem; font-size: 0.85rem; }
  .story-steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
  .story-steps p { font-size: 0.95rem; margin: 0; }

  /* About: capability cards with a small image beside the text */
  .cap { grid-template-columns: 5.5rem 1fr; gap: 0.9rem; padding: 0.9rem; }
  .cap img { aspect-ratio: 1; }
  .cap h3 { font-size: 1.05rem; }
  .cap p { font-size: 0.92rem; }
  .about-photo img { aspect-ratio: 4 / 3; }

  /* About: process steps two per row */
  .process { grid-template-columns: 1fr 1fr; }
  .process li, .process li + li { padding: 1.1rem 0.9rem 1rem 0; border-left: 0; }
  .process li:nth-child(even) { padding-left: 0.9rem; border-left: 1px solid var(--line); }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process li + li { border-top: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process h3 { font-size: 1.05rem; }
  .process p { font-size: 0.9rem; }

  /* Machines: built-to-order cards two per row */
  .machine-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .machine-card { padding: 1rem; gap: 0.8rem; border-radius: 16px; }
  .machine-card h3 { font-size: 0.98rem; }
  .machine-card h3::before { margin-bottom: 0.7rem; }
  .machine-card a { font-size: 0.88rem; }
}

/* ---------- Glass accents ----------
   Used only where real imagery or colour sits behind: tile captions, the plate over video,
   the demo controls and the quick-link pills. Falls back to a solid panel where blur isn't supported. */
.tile-cap, .glass-plate, .rig-controls input[type="text"], .foil-pick, .jump a {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 32px -16px rgba(0,0,0,.7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tile-cap, .glass-plate, .rig-controls input[type="text"], .foil-pick, .jump a { background: rgba(12, 23, 38, .88); }
}

/* Tiles: frosted caption over the photo instead of a dark fade */
.tile { padding: 0.9rem; }
.tile::after { background: linear-gradient(180deg, transparent 50%, rgba(8,17,29,.35) 100%); }
.tile-cap { border-radius: 16px; padding: 1rem 1.15rem; }
.tile-cap h3 { margin-bottom: 0.25rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tile-cap p { color: #dbe5f0; }
.tile-cap .go { display: inline-block; margin-top: 0.6rem; }
a.tile:hover .tile-cap { border-color: rgba(233,196,106,.55); }
@media (max-width: 600px) { .tile { padding: 0.55rem; } .tile-cap { padding: 0.6rem 0.75rem; border-radius: 12px; } }

/* Machines page: frosted spec plate over the PLS02 video */
.product-media { position: relative; }
.glass-plate {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 2.6rem;
  border-radius: 16px; padding: 0.9rem 1.1rem; color: #fff;
}
.gp-model { font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1; margin: 0 0 0.6rem; letter-spacing: 0.01em; }
.glass-plate dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.glass-plate dt { font-size: 0.75rem; color: #d3deea; }
.glass-plate dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Stamping demo: a soft glow behind the controls so the glass has something to frost */
.rig {
  background:
    radial-gradient(ellipse 70% 45% at 30% 100%, rgba(233,196,106,.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 95%, rgba(130,180,232,.16), transparent 70%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.07), transparent 60%),
    var(--bg-deep);
}
.rig-controls input[type="text"] { color: #fff; border-radius: 999px; padding-inline: 1.1rem; }
.rig-controls input[type="text"]::placeholder { color: #b5c4d6; }
.foil-pick { border-radius: 999px; }
.foil-pick input:checked + label { background: rgba(255,255,255,.16); }
.foil-pick label + input + label { border-left-color: rgba(255,255,255,.18); }

/* Quick-link pills at the top of Machines and Applications */
.jump a { border-radius: 999px; color: #fff; }
.jump a:hover { border-color: rgba(233,196,106,.65); background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); }

/* Dark-tinted glass over photos and video, so white text keeps strong contrast on bright images */
.tile-cap, .glass-plate {
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02)), rgba(10, 20, 34, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

/* Phones: stack the PLS02 video and specs as plain blocks (grid sizing under-measured the video height) */
@media (max-width: 900px) {
  .product { display: block; }
  .product-media { position: relative; max-width: 420px; margin: 0 0 2rem; }
}
.product-media { top: auto; }
