/* =========================================================
   Photonik Solutions — Home page styles
   Mobile-first, app-like. Desktop enhancements at 900px+.
   ========================================================= */

:root {
  /* ---- "Spectrum" palette: cool white, deep indigo, teal-mint ---- */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #131a2e;
  --ink-2: #4b5670;
  --ink-3: #8a94ab;
  --line: #e1e6f0;
  --tint: #eceff7;            /* alternate section bg */
  --accent-tint: #dff7f2;     /* accent chip bg */
  --ph-1: #e4e8f1;            /* placeholder / image well */
  --ph-2: #d5dbe8;
  --ph-line: #b7c0d3;
  --glass: rgba(245,247,251,.92);
  color-scheme: light;

  --dark: #141b3d;            /* deep indigo — hero, footer, dark sections */
  --dark-2: #1c2452;
  --dark-line: #2a336b;

  --accent: #0fa58d;          /* teal-mint */
  --accent-2: #13c3a7;
  --accent-ink: #ffffff;      /* text on accent */
  --accent-glow: rgba(15, 165, 141, 0.32);
  --whatsapp: #25d366;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(19, 26, 46, 0.08);

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --tabbar-h: 68px;
  --appbar-h: 60px;
}
/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #0c1020;
  --surface: #131a30;
  --ink: #eef1f8;
  --ink-2: #b3bcd1;
  --ink-3: #7b869f;
  --line: #232c48;
  --tint: #0f1428;
  --accent-tint: rgba(46, 230, 197, .14);
  --ph-1: #1a2140;
  --ph-2: #212a4d;
  --ph-line: #364175;
  --glass: rgba(12,16,32,.9);
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
  --dark: #070a16;
  --dark-2: #10152b;
  --dark-line: #1f2745;
  --accent: #2ee6c5;
  --accent-2: #5cf0d6;
  --accent-ink: #0c1020;
  --accent-glow: rgba(46, 230, 197, .28);
  color-scheme: dark;
}
:root[data-theme="dark"] .tabbar { background: rgba(12,16,32,.92); }
:root[data-theme="dark"] .tabbar__fab { border-color: var(--bg); }
:root[data-theme="dark"] .form input, :root[data-theme="dark"] .form textarea { background: var(--bg); }
:root[data-theme="dark"] .format__img, :root[data-theme="dark"] .model__img { background: #fff; }   /* product cut-outs stay on white */

/* theme toggle icon swap */
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; transition: background .2s; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  transition: background .2s, color .2s;
}
img, svg { display: block; max-width: 100%; }
.theme-toggle .ico-moon { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--whatsapp { background: #179c4e; color: #fff; }  /* deeper than brand green so white text stays readable */
.btn--whatsapp:hover { background: #128a43; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.iconbtn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--ink);
}
.drawer .iconbtn { background: rgba(255,255,255,.08); color: #fff; }
.brand__logo--light { display: none; }
:root[data-theme="dark"] .appbar .brand__logo--dark { display: none; }
:root[data-theme="dark"] .appbar .brand__logo--light { display: block; }
.iconbtn svg { width: 22px; height: 22px; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--appbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand__text em { font-style: normal; font-weight: 500; color: var(--accent); margin-left: 2px; }
.appbar__actions { display: flex; gap: 6px; }
.topnav { display: none; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--dark); color: #fff; padding: 16px 20px 24px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 18px 0 6px; }
.drawer__panel > a { padding: 12px 0; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--dark-line); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.drawer__foot .btn--ghost { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 40px 0 28px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}
.hero__beam {
  position: absolute; left: -10%; top: 38%; width: 120%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #ffffff 50%, var(--accent) 70%, transparent);
  box-shadow: 0 0 18px 4px var(--accent-glow);
  transform: rotate(-8deg); opacity: .9;
  animation: beam 4s ease-in-out infinite;
}
@keyframes beam { 0%,100% { transform: rotate(-8deg) translateY(0); opacity:.7 } 50% { transform: rotate(-8deg) translateY(-14px); opacity:1 } }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #d3d9ee; letter-spacing: .04em; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.lead { font-size: 1.05rem; color: #c3cae0; max-width: 52ch; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.stat { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius-sm); padding: 12px 10px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.stat strong sup { font-size: .6em; color: var(--accent); }
.stat span { font-size: .72rem; color: var(--ink-3); }
.hero__visual { margin-top: 24px; padding-inline: 20px; }
.machine-placeholder {
  height: 220px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--dark-2), var(--dark));
  border: 1px dashed var(--dark-line); display: grid; place-items: center;
  color: var(--ink-3); font-size: .85rem;
}

/* ---------- Quick tiles ---------- */
.quick {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-top: -18px; position: relative; z-index: 2;
}
.quick__tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: .78rem; font-weight: 600; box-shadow: var(--shadow); color: var(--ink);
}
.quick__tile svg { width: 24px; height: 24px; color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--slim { padding: 32px 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.section__head--row { gap: 16px; }
.section__note { color: var(--ink-3); font-size: .9rem; }
.section__foot { margin-top: 20px; font-size: .85rem; color: var(--ink-3); }
.kicker { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }

/* ---------- Solutions ---------- */
.solutions { display: grid; gap: 16px; }
.solution {
  display: grid; grid-template-rows: 180px auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.solution:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,20,25,.12); }
.solution__media {
  display: grid; place-items: center; color: #fff; font-size: .85rem; position: relative;
}
.solution--cut .solution__media { background: linear-gradient(135deg, var(--dark-2), var(--dark)); }
.solution--mark .solution__media { background: linear-gradient(135deg, var(--dark-2), var(--dark)); }
.solution--weld .solution__media { background: linear-gradient(135deg, var(--dark-2), var(--dark)); }
.solution__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.solution__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.solution__num { position: absolute; top: 14px; right: 18px; font-family: var(--font-display); font-weight: 800; color: var(--accent); opacity: .45; font-size: 1.6rem; }
.solution__body p { color: var(--ink-2); font-size: .95rem; }
.solution__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.solution__tags li { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.solution__link { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: .9rem; margin-top: 4px; }
.solution__link i { font-style: normal; transition: transform .2s; display: inline-block; }
.solution:hover .solution__link i { transform: translateX(4px); }

/* ---------- Formats (horizontal scroll) ---------- */
.formats {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px;
  scrollbar-width: none;
}
.formats::-webkit-scrollbar { display: none; }
.format {
  flex: 0 0 150px; scroll-snap-align: start;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.format__img { height: 96px; border-radius: 10px; background: var(--dark-2); border: 1px dashed var(--dark-line); display: grid; place-items: center; color: var(--ink-3); font-size: .75rem; margin-bottom: 6px; }
.format strong { font-family: var(--font-display); font-size: .95rem; }
.format small { color: var(--ink-3); font-size: .74rem; }

/* ---------- Sources ---------- */
.sources { display: grid; gap: 14px; }
.source { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.source header { display: flex; align-items: baseline; justify-content: space-between; }
.source__wave { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 3px 10px; border-radius: 999px; }
.source__for { color: var(--ink-2); font-size: .9rem; }
.source dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.source dl div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.source dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.source dd { margin: 0; font-weight: 700; font-size: .85rem; }
.source__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.source__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.industry {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px; min-height: 110px; transition: border-color .2s;
}
.industry:hover { border-color: var(--accent); }
.industry__ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.industry__ico svg { width: 20px; height: 20px; }
.industry strong { font-family: var(--font-display); font-size: .95rem; }
.industry small { color: var(--ink-3); font-size: .76rem; }

/* ---------- Samples ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .85rem; }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; }
.gallery figure.is-hidden { display: none; }
.gallery__img { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(145deg, var(--ph-1), var(--ph-2)); border: 1px dashed var(--ph-line); display: grid; place-items: center; color: var(--ink-3); font-size: .8rem; }
.gallery figcaption { font-size: .8rem; color: var(--ink-2); margin-top: 6px; }

/* ---------- Why ---------- */
.why { display: grid; gap: 24px; }
.why__text { display: flex; flex-direction: column; gap: 16px; }
.why__text .lead { color: #c3cae0; }
.why__text .btn { align-self: flex-start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 12px no-repeat, linear-gradient(#000, #000);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 12px no-repeat;
  background: var(--accent);
}
.why__media { min-height: 240px; border-radius: var(--radius); background: linear-gradient(145deg, var(--dark-2), var(--dark)); border: 1px dashed var(--dark-line); display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; }

/* ---------- Clients marquee ---------- */
.marquee { overflow: hidden; margin-top: 16px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-ph { flex: 0 0 150px; height: 56px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink-3); font-size: .75rem; }

/* ---------- Downloads ---------- */
.downloads { display: grid; gap: 10px; }
.download { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.download__ico { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .75rem; }
.download strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.download small { color: var(--ink-3); font-size: .78rem; }

/* ---------- Enquiry ---------- */
.enquiry { display: grid; gap: 28px; }
.enquiry__text { display: flex; flex-direction: column; gap: 14px; }
.enquiry__text > p { color: var(--ink-2); }
.contact-list { display: grid; gap: 8px; margin-top: 6px; }
.contact-list a { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.contact-list small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.contact-list strong { font-size: .92rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form__row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form__seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__seg legend { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.form__seg label { flex-direction: row; }
.form__seg input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.form__seg span { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; font-weight: 600; color: var(--ink); }
.form__seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form__note { font-size: .8rem; color: var(--ink-3); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #c3cae0; padding: 40px 0 24px; font-size: .9rem; }
.footer__grid { display: grid; gap: 24px; }
.footer__grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.footer__grid a { display: block; padding: 4px 0; }
.footer__grid a:hover { color: #fff; }
.footer__grid p { margin-top: 10px; line-height: 1.6; }
.footer__bar { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--ink-3); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--ink-3); }
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--accent); }
.tabbar__item--cta { color: var(--ink); }
.tabbar__fab {
  width: 52px; height: 52px; border-radius: 50%; margin-top: -26px;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 8px 22px var(--accent-glow); border: 4px solid var(--bg);
}
.tabbar__fab svg { width: 22px; height: 22px; }

/* ---------- Real images from brochures ---------- */
.brand__logo { height: 46px; width: auto; }
.appbar .brand { position: relative; padding: 4px 12px 4px 10px; border-radius: 14px; background: var(--accent-tint); border: 1px solid transparent; transition: box-shadow .2s, transform .2s; }
.appbar .brand::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.appbar .brand:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-glow); }
:root[data-theme="dark"] .appbar .brand { background: rgba(46,230,197,.10); }
.footer .brand__logo { height: 56px; }
.hero__photo { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--dark-line); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.solution__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.solution--cut .solution__media, .solution--mark .solution__media, .solution--weld .solution__media { background: linear-gradient(160deg, var(--bg), var(--ph-1)); }
.format__img { background: #fff; border: 0; padding: 6px; }
.format__img img { width: 100%; height: 100%; object-fit: contain; }
.gallery__img { border: 0; overflow: hidden; background: var(--ph-2); }
.gallery__img img { width: 100%; height: 100%; object-fit: cover; }
.why__media--photo { border: 0; position: relative; overflow: hidden; background: var(--dark); }
.why__media--photo > img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.badges img { height: 56px; width: auto; background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px; }
.logo-ph { border: 1px solid var(--line); background: #fff; padding: 8px 14px; }
.logo-ph img { max-height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.section--dark .logo-ph { background: #fff; }
.download__ico { background: var(--accent); }

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .menu-toggle { display: none; }
  .appbar { padding: 0 32px; height: 68px; }
  .topnav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: .92rem; }
  .topnav a:not(.btn) { color: var(--ink-2); }
  .topnav a.is-active, .topnav a:not(.btn):hover { color: var(--accent); }

  .hero { padding: 80px 0 60px; display: grid; }
  .hero__inner { max-width: 1200px; margin: 0 auto; padding-inline: 32px; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "eyebrow visual" "h1 visual" "lead visual" "cta visual" "stats visual"; column-gap: 48px; align-content: center; }
  .hero__inner > .eyebrow { grid-area: eyebrow; }
  .hero__inner > h1 { grid-area: h1; }
  .hero__inner > .lead { grid-area: lead; }
  .hero__inner > .hero__cta { grid-area: cta; }
  .hero__inner > .hero__stats { grid-area: stats; max-width: 520px; }
  .hero__visual { grid-area: visual; grid-row: 1 / -1; grid-column: 2; margin: 0; padding: 0; align-self: center; }
  .hero__visual { position: absolute; right: max(32px, calc((100% - 1200px) / 2 + 32px)); top: 50%; transform: translateY(-50%); width: min(44%, 520px); }
  .machine-placeholder { height: 380px; }
  .hero__photo { height: 400px; }
  .brand__logo { height: 52px; }
  .appbar .brand { padding: 6px 16px 6px 12px; }
  .footer .brand__logo { height: 64px; }
  .hero__beam { top: 55%; }

  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; margin-top: -28px; }
  .quick__tile { flex-direction: row; gap: 10px; min-height: 64px; font-size: .9rem; }

  .section { padding: 88px 0; }
  .section__head { margin-bottom: 40px; }
  .section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section__note { max-width: 320px; }

  .solutions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .solution { grid-template-rows: 220px auto; }
  .solution__body { padding: 24px; }

  .formats { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .format { flex: 1 1 calc(20% - 12px); max-width: calc(20% - 12px); }

  .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .industries { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .why { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .why__media { min-height: 420px; }

  .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .enquiry { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .form { padding: 28px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__beam, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- image wells: contain the picture, never let it spill ---- */
.pcard__media, .solution__media, .bcard__img, .model__img, .format__img, .mcard__img, .phero__media--product, .fmt i, .accstrip__i img, .acc__grid img, .acc-item img, .hero__img--photo {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pcard__media img, .solution__media img, .bcard__img img, .model__img img, .format__img img, .fmt i img, .phero__media--product img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}
.pcard__media { padding: 14px; }
.solution__media { padding: 14px; }
.bcard__img { padding: 18px; min-height: 180px; }
.bcard__img img { max-height: 240px; }
.bcard--big .bcard__img img { max-height: 400px; }
.model__img { padding: 8px; }
.format__img { padding: 6px; }
.phero__media--product { padding: 20px; }
.pcard__specs b, .mcard__spec b { white-space: nowrap; font-size: .76rem; letter-spacing: -0.01em; }
.keyspecs b { white-space: nowrap; }
.pcard__specs div { padding: 8px 8px; }
.pcard__specs div { min-width: 0; overflow: hidden; }
.pcard__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- floating WhatsApp button (all pages) ---- */
.wa-float {
  position: fixed; right: 16px; z-index: 58;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); opacity: .55; z-index: 0;
  animation: wa-bloom 2.2s ease-out infinite;
}
.wa-float::after { animation-delay: 1.1s; }
@keyframes wa-bloom { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
body.has-stickybar .wa-float { bottom: calc(var(--tabbar-h) + 78px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .wa-float, body.has-stickybar .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before, .wa-float::after { animation: none; opacity: 0; } }

/* ---- enquiry forms → WhatsApp (js/leads.js) ---- */
.form__msg { margin: -4px 0 0; font-size: .85rem; font-weight: 600; text-align: center; }
.form__msg--error { color: #d93636; }
.form [aria-invalid="true"] { border-color: #d93636 !important; }
.btn__wa { width: 22px; height: 22px; flex: none; }
.form.is-sent { justify-content: center; }
.form.is-sent > *:not(.form__done) { display: none !important; }
.form__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 8px; }
.form__done h3 { font-size: 1.3rem; }
.form__done p { color: var(--ink-2); max-width: 42ch; }
.form__done-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); animation: lead-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.form__done-ico svg { width: 28px; height: 28px; }
.form__done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.form__done-ico--wa { background: rgba(37, 211, 102, .14); color: var(--whatsapp); }
@keyframes lead-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- timed enquiry popup (js/leads.js) ---- */
.lead-pop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.lead-pop[hidden] { display: none; }
.lead-pop__backdrop { position: absolute; inset: 0; background: rgba(10, 14, 30, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.lead-pop__card {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.lead-pop.is-open .lead-pop__backdrop { opacity: 1; }
.lead-pop.is-open .lead-pop__card { transform: none; }
.lead-pop__card h2 { font-size: 1.45rem; line-height: 1.2; margin: 4px 36px 6px 0; }
.lead-pop__lead { color: var(--ink-2); font-size: .92rem; margin-bottom: 14px; }
.lead-pop .lead-pop__form { padding: 0; border: 0; box-shadow: none; background: none; gap: 12px; }
.lead-pop__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--tint); color: var(--ink-2); cursor: pointer; }
.lead-pop__x:hover { background: var(--line); color: var(--ink); }
.lead-pop__x svg { width: 18px; height: 18px; }
html.pop-open { overflow: hidden; }
@media (min-width: 640px) {
  .lead-pop { align-items: center; padding: 24px; }
  .lead-pop__card { max-width: 460px; border-radius: 24px; padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(24px) scale(.96); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .lead-pop.is-open .lead-pop__card { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .lead-pop__card, .lead-pop__backdrop { transition: none; } }
.lead-pop .lead-pop__form { gap: 10px; }
.lead-pop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lead-pop__req { grid-column: 1 / -1; }
.lead-pop .lead-pop__form label { gap: 4px; font-size: .74rem; }
.lead-pop .lead-pop__form input, .lead-pop .lead-pop__form select { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.lead-pop__consent { margin-top: -2px; font-size: .72rem; }
.lead-pop__card h2 { font-size: 1.25rem; }
.lead-pop__lead { font-size: .88rem; margin-bottom: 12px; }
@media (min-width: 640px) {
  .lead-pop__card { max-width: 680px; }
  .lead-pop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-pop__req { grid-column: auto; }
  .lead-pop__card h2 { font-size: 1.45rem; }
}
/* short screens: drop the intro line and tighten */
@media (max-height: 720px) {
  .lead-pop__lead { display: none; }
  .lead-pop__card { padding-top: 18px; padding-bottom: 16px; }
  .lead-pop__card h2 { margin-bottom: 10px; }
  .lead-pop .lead-pop__form input, .lead-pop .lead-pop__form select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
  .lead-pop .lead-pop__form .btn--lg { min-height: 44px; }
}
/* very short screens (small phones with browser bars) */
@media (max-height: 600px) {
  .lead-pop__card { max-height: 98vh; padding-top: 14px; }
  .lead-pop__card .kicker { display: none; }
  .lead-pop__card h2 { font-size: 1.1rem; margin-top: 2px; margin-bottom: 8px; }
  .lead-pop .lead-pop__form, .lead-pop__grid { gap: 8px; }
  .lead-pop .lead-pop__form label { font-size: .7rem; gap: 2px; }
  .lead-pop .lead-pop__form input, .lead-pop .lead-pop__form select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: .86rem; }
  .lead-pop .lead-pop__form .btn--lg { min-height: 42px; }
  .lead-pop__x { top: 10px; width: 34px; height: 34px; }
}
@media (max-width: 639px) { .lead-pop__card { max-height: 96vh; } }

/* ---- laser effect behind page heroes (.laser-fx, added by js/layout.js and index.html) ---- */
.laser-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.laser-fx__beam {
  position: absolute; left: -30%; width: 160%; height: 2px; top: var(--y); transform: rotate(var(--r));
  /* faint static beam line + a bright pulse that travels along it */
  background:
    linear-gradient(90deg, transparent 38%, var(--accent-2) 46%, #fff 50%, var(--accent-2) 54%, transparent 62%) 0 0 / 250% 100% no-repeat,
    linear-gradient(90deg, transparent, var(--accent-glow) 20%, var(--accent-glow) 80%, transparent);
  filter: drop-shadow(0 0 6px var(--accent-2));
  opacity: .55;
  animation: laser-pulse var(--d, 6s) linear var(--delay, 0s) infinite;
}
.laser-fx__beam:nth-child(1) { --y: 24%; --r: -11deg; --d: 5.5s; }
.laser-fx__beam:nth-child(2) { --y: 60%; --r: 7deg; --d: 7.5s; --delay: -2.5s; }
.laser-fx__beam:nth-child(3) { --y: 86%; --r: -4deg; --d: 9s; --delay: -5s; opacity: .4; }
@keyframes laser-pulse { from { background-position: 150% 0, 0 0; } to { background-position: -150% 0, 0 0; } }
.laser-fx__spark { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px var(--accent-2), 0 0 18px 6px var(--accent-glow); opacity: 0; animation: laser-spark 4.5s ease-out var(--delay, 0s) infinite; }
.laser-fx__spark:nth-child(4) { --x: 18%; --y: 30%; --delay: .4s; }
.laser-fx__spark:nth-child(5) { --x: 72%; --y: 18%; --delay: 1.9s; }
.laser-fx__spark:nth-child(6) { --x: 46%; --y: 70%; --delay: 3.1s; }
.laser-fx__spark:nth-child(7) { --x: 88%; --y: 64%; --delay: 2.4s; }
@keyframes laser-spark { 0%, 70% { opacity: 0; transform: scale(.3); } 76% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(.6); } }
.phero > .container, .h2hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .laser-fx__beam, .laser-fx__spark { animation: none; } .laser-fx__spark { display: none; } }

/* ---------- Site search ---------- */
.search-btn svg { width: 21px; height: 21px; }
body.search-open { overflow: hidden; }
.search-panel { position: fixed; inset: 0; z-index: 200; background: rgba(19, 26, 46, .55); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 72px 16px 16px; animation: search-fade .18s ease; }
.search-panel[hidden] { display: none; }
.search-panel__box { width: min(640px, 100%); max-height: calc(100dvh - 96px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(19, 26, 46, .25); overflow: hidden; }
.search-panel__bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-panel__bar svg { width: 20px; height: 20px; flex: 0 0 auto; }
.search-panel__bar input { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 1.05rem var(--font-body); }
.search-panel__bar input::-webkit-search-cancel-button { display: none; }
.search-panel__close { min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--tint); color: var(--ink); font-weight: 600; font-size: .85rem; }
.search-panel__status { margin: 0; padding: 12px 18px 4px; font-size: .85rem; color: var(--ink-3); }
.search-panel__list { list-style: none; margin: 0; padding: 6px 8px 12px; overflow: auto; }
.search-panel__list a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.search-panel__list a:hover, .search-panel__list a:focus-visible, .search-panel__list li:first-child a { background: var(--accent-tint); }
.search-panel__list strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.search-panel__list small { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes search-fade { from { opacity: 0; } }
@media (max-width: 599px) {
  .search-panel { padding: 0; align-items: stretch; }
  .search-panel__box { max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .search-panel { animation: none; } }
