/* ==========================================================================
   E.K LABEL — public site
   Design language: warm paper, deep purple accent, generous whitespace.
   ========================================================================== */

:root {
  --purple: #6600ff;
  --purple-dark: #4800bb;
  --purple-soft: #9a5cff;
  --lavender: #eee6ff;
  --ink: #222126;
  --muted: #77747e;
  --paper: #f8f7f3;
  --white: #fff;
  --line: #dedbd7;
  --line-dark: #cfc9c3;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow-soft: 0 20px 60px rgba(41, 22, 66, .08);
  --font-sans: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open, body.popup-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #a075ff; }
button:disabled { cursor: not-allowed; opacity: .55; }
img, svg { display: block; max-width: 100%; }
::selection { background: #ddc8ff; color: #300078; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-size: 13px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }

/* ---------------------------------------------------------------- Typography */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 750; letter-spacing: .17em;
  text-transform: uppercase; color: var(--ink);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  background: var(--purple); border-radius: 50%;
}
h1, h2, h3, h4 {
  margin: 0; font-weight: 800; line-height: 1.25;
  letter-spacing: -.04em; text-wrap: balance;
}
h2 { margin: 16px 0 0; font-size: clamp(29px, 3vw, 43px); line-height: 1.3; font-weight: 750; }
p { margin: 0; }
.arrow { font-size: 19px; line-height: 1; }

/* ---------------------------------------------------------------- Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 16px; min-height: 50px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 7px;
  font-size: 13.5px; font-weight: 650; line-height: 1.2;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--purple); }
.button-primary:hover { background: var(--purple-dark); color: #fff; }
.button-outline { border-color: #c9c6cc; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--purple); color: var(--purple); }
.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 650; border: 0; background: none; padding: 0; color: var(--ink);
}
.text-link:hover { color: var(--purple); }
.section { padding: 100px 0; }

/* ---------------------------------------------------------------- Announcement + header */
.announcement {
  background: var(--purple); color: #fff; text-align: center;
  padding: 8px 16px; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 247, 243, .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34, 33, 38, .1);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(35, 23, 47, .06); }
.nav { height: 85px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; flex-shrink: 0; }
.brand-symbol {
  width: 41px; height: 41px; display: grid; place-items: center;
  background: var(--purple); color: #fff; border-radius: 10px;
  font-size: 21px; font-weight: 850; letter-spacing: -3px;
  transform: rotate(-7deg);
}
.brand-name { font-size: 19px; font-weight: 850; letter-spacing: -.7px; line-height: 1.1; }
.brand-name small {
  display: block; font-size: 8px; font-weight: 650;
  letter-spacing: .14em; margin-top: 6px; color: #5d5862;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a, .nav-item > a {
  font-size: 13px; color: #57535d; transition: color .2s; display: inline-flex; align-items: center; gap: 5px;
}
.nav-links > a:hover, .nav-item > a:hover,
.nav-links > a.active, .nav-item > a.active { color: var(--purple); }
.nav-item { position: relative; }
.chev { font-size: 15px; transform: translateY(-1px); }
.nav-dropdown {
  position: absolute; top: calc(100% + 18px); left: -18px;
  min-width: 210px; padding: 9px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 12.5px; color: #5e5864;
}
.nav-dropdown a:hover { background: var(--lavender); color: var(--purple); }
.nav-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .06em; color: #8a8490; }
.lang-switch a { padding: 3px 2px; border-bottom: 1px solid transparent; }
.lang-switch a:hover { color: var(--purple); }
.lang-switch a.active { color: var(--purple); border-color: var(--purple); font-weight: 750; }
.nav-cta { min-height: 43px; font-size: 12px; padding: 9px 17px; gap: 14px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; border-radius: 7px; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .22s, opacity .22s; }
.site-header.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 68px 0 35px; }
.hero-grid { display: grid; grid-template-columns: 1.03fr 1fr; gap: 55px; align-items: center; }
.hero h1 {
  margin: 28px 0 22px; font-size: clamp(42px, 4.6vw, 68px);
  font-weight: 800; letter-spacing: -.055em; line-height: 1.24;
}
.hero h1 .accent { color: var(--purple); position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: ""; display: block; height: 5px; background: var(--purple);
  opacity: .2; border-radius: 100%; transform: rotate(-2deg); margin-top: 5px;
}
.hero-description { color: #726d78; font-size: 15px; max-width: 430px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.hero-footnote { display: flex; align-items: center; gap: 12px; margin-top: 47px; color: #7d7783; font-size: 11px; }
.mini-line { display: block; width: 33px; height: 1px; background: var(--purple); }

.hero-art {
  position: relative; isolation: isolate; min-width: 0;
  aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: #e9def9;
}
.hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #ffffff30 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 3px, #6600ff08 3px 4px),
    radial-gradient(ellipse at 70% 25%, #f8f1ff 0, #d8c7ee 75%);
}
.hero-art > svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.art-caption { position: absolute; top: 23px; left: 24px; font-size: 9px; letter-spacing: .18em; color: #665476; }
.art-bottom {
  position: absolute; bottom: 22px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: #665476; font-size: 9px; letter-spacing: .12em; line-height: 1.7;
}
.art-bottom span:last-child { text-align: right; }
.hero-meta {
  display: grid; grid-template-columns: 1.05fr 1fr 1fr;
  margin-top: 55px; border-top: 1px solid var(--line); padding-top: 24px; gap: 20px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-size: 12px; font-weight: 700; }
.hero-meta span { font-size: 9px; color: var(--muted); letter-spacing: .1em; }

/* ---------------------------------------------------------------- Material band */
.material-band { overflow: hidden; margin-top: 36px; padding: 20px 0; border-block: 1px solid var(--line); }
.band-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.band-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.band-group span { white-space: nowrap; font-size: 12px; letter-spacing: .16em; font-weight: 700; color: #77717e; }
.band-group i { color: var(--purple); font-size: 18px; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Section heading */
.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 34px;
}
.section-intro { color: var(--muted); max-width: 390px; font-size: 13px; line-height: 1.9; margin: 0; }

/* ---------------------------------------------------------------- Filters */
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 25px; align-items: center; }
.filter {
  border: 1px solid #d9d5df; background: transparent; color: #6e6875;
  border-radius: 30px; padding: 8px 17px; font-size: 12px; transition: .2s;
}
.filter.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter:hover { border-color: var(--purple); color: var(--purple); }
.filter.active:hover { color: #fff; }
.sample-note { margin-left: auto; font-size: 10px; color: #938d98; }

/* ---------------------------------------------------------------- Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 19px; transition: opacity .25s; }
.product-grid.is-loading { opacity: .45; pointer-events: none; }
.product-card { min-width: 0; cursor: pointer; }
.product-visual {
  aspect-ratio: 1 / 1.06; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; background: #ebe7e0; transition: transform .32s ease, box-shadow .32s ease;
}
.product-card:hover .product-visual { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(40, 25, 55, .12); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-visual img { transform: scale(1.035); }
.product-number {
  position: absolute; top: 13px; left: 13px; z-index: 1;
  font-size: 8.5px; font-weight: 650; letter-spacing: .12em; color: #4f4a54;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px);
  border-radius: 20px; padding: 5px 9px;
}
.product-inquire {
  position: absolute; right: 13px; bottom: 13px; z-index: 2;
  border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.82);
  color: var(--ink); border-radius: 50%; width: 34px; height: 34px;
  display: grid; place-items: center; font-size: 15px; transition: .2s;
  backdrop-filter: blur(6px);
}
.product-inquire:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.product-info { display: flex; gap: 10px; justify-content: space-between; padding-top: 15px; }
.product-info h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.product-info p { margin: 0; font-size: 9px; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }

.catalogue-empty {
  padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fff;
}
.catalogue-foot { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.catalogue-count { color: #8b8591; font-size: 11.5px; letter-spacing: .04em; margin-right: auto; }
.catalogue-foot .button { min-height: 42px; font-size: 12px; }

/* Catalogue page */
.catalogue-section { padding-top: 40px; }
.catalogue-toolbar { display: flex; align-items: center; gap: 22px; margin-bottom: 6px; }
.catalogue-search { position: relative; flex: 1; max-width: 460px; }
.catalogue-search input {
  width: 100%; height: 48px; padding: 10px 16px 10px 44px;
  border: 1px solid #d7d1dd; border-radius: 40px; background: #fff; font-size: 13px; color: var(--ink);
}
.catalogue-search input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(102,0,255,.08); outline: none; }
.search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #8d8794; }
.search-icon svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- Page banner */
.page-banner { padding: 78px 0 46px; border-bottom: 1px solid var(--line); }
.page-banner-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 55px; align-items: flex-end;
}
.page-banner h1 {
  margin: 18px 0 0; font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 800; letter-spacing: -.055em; line-height: 1.18;
}
.page-banner-intro { color: #77717e; font-size: 13.5px; line-height: 1.95; max-width: 430px; justify-self: end; }
.breadcrumb-x {
  display: flex; gap: 9px; align-items: center; font-size: 11px;
  color: #938d98; margin-bottom: 8px; letter-spacing: .04em;
}
.breadcrumb-x a:hover { color: var(--purple); }
.page-banner-dark { background: #211b29; color: #f4efe8; border-bottom-color: #38303f; }
.page-banner-dark .eyebrow { color: #d9c8ff; }
.page-banner-dark .eyebrow::before { background: #b78dff; }
.page-banner-dark .page-banner-intro { color: #b8aec6; }
.page-banner-error { text-align: left; }

/* ---------------------------------------------------------------- Craft */
.craft { background: #eeece7; padding: 80px 0; }
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.craft-visual {
  position: relative; background: #27232d; border-radius: 18px; overflow: hidden; aspect-ratio: 1.08 / 1;
}
.craft-visual svg { width: 100%; height: 100%; }
.craft-caption { position: absolute; bottom: 24px; left: 26px; font-size: 10px; color: #ded5e8; letter-spacing: .13em; }
.craft-copy > p { color: #746e79; font-size: 14px; line-height: 1.95; margin: 24px 0; }
.craft-features { margin-top: 28px; }
.craft-feature {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  border-top: 1px solid #d4d0d8; padding: 17px 0;
}
.craft-feature .index { font-size: 10px; color: var(--purple); padding-top: 3px; }
.craft-feature h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.craft-feature p { margin: 5px 0 0; font-size: 12px; color: #7c7482; line-height: 1.7; }
.craft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; padding-top: 26px; border-top: 1px solid #d4d0d8; }
.craft-stats strong { display: block; font-size: 31px; font-weight: 800; color: var(--purple); letter-spacing: -.04em; line-height: 1.1; }
.craft-stats span { display: block; margin-top: 5px; font-size: 9.5px; letter-spacing: .08em; color: #8a8290; text-transform: uppercase; }

/* ---------------------------------------------------------------- Certifications */
.cert-section { padding-bottom: 70px; }
.cert-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  display: flex; gap: 18px; align-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .25s, border-color .25s;
}
.cert-card:hover { transform: translateY(-4px); border-color: #cbb6f4; }
.cert-visual { width: 90px; height: 112px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #f1ede6; }
.cert-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert-title { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.cert-link { display: block; margin-top: 8px; font-size: 10px; color: var(--purple); letter-spacing: .05em; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cert-large { min-width: 0; }
.cert-large-visual {
  width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; overflow: hidden; position: relative; aspect-ratio: 3 / 4;
}
.cert-large-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.cert-large-visual:hover img { transform: scale(1.025); }
.cert-zoom {
  position: absolute; right: 13px; bottom: 13px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--purple); font-size: 15px;
}
.cert-large h2 { margin: 17px 0 4px; font-size: 17px; letter-spacing: -.01em; }
.cert-label { font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------- Process */
.process-section { border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.process-step { position: relative; border-top: 1px solid #d3cbdc; padding-top: 26px; }
.process-step::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; background: var(--purple); border-radius: 50%;
}
.process-index {
  display: flex; justify-content: space-between; align-items: center;
  color: #b6a9c6; font-size: 35px; font-weight: 300; line-height: 1;
}
.process-index span { font-size: 19px; color: var(--purple); }
.process-step h3 { margin: 24px 0 9px; font-size: 16px; }
.process-step p { color: #817986; font-size: 12px; margin: 0; line-height: 1.9; }

/* ---------------------------------------------------------------- Contact panel */
.contact-section { padding-bottom: 75px; }
.contact-panel {
  background: var(--purple); color: #fff; border-radius: var(--radius);
  overflow: hidden; position: relative; padding: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 35px;
  isolation: isolate;
}
.contact-panel::after {
  content: ""; position: absolute; right: -60px; top: -190px;
  width: 520px; height: 520px; border: 1px solid #ffffff22; border-radius: 50%;
  box-shadow: 0 0 0 45px #ffffff07, 0 0 0 90px #ffffff07; z-index: -1;
}
.contact-panel .eyebrow { color: #d9c7ff; }
.contact-panel .eyebrow::before { background: #d9c7ff; }
.contact-panel h2 { margin-top: 18px; font-size: clamp(30px, 3.5vw, 44px); }
.contact-panel p { font-size: 13px; color: #e0d0ff; margin: 17px 0 0; }
.contact-panel .button { background: #fff; color: var(--purple); white-space: nowrap; min-width: 180px; }
.contact-panel .button:hover { background: #f3ecff; }

/* ---------------------------------------------------------------- About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 70px; align-items: start; }
.about-story { max-width: 780px; }
.about-story p { color: #6f6976; font-size: 14.5px; line-height: 2; margin: 0 0 22px; }
.about-story p.lead { color: #3b363f; font-size: 17px; line-height: 1.9; margin-bottom: 34px; }
.about-story figure { margin: 34px 0; border-radius: var(--radius-sm); overflow: hidden; background: #ebe7e0; }
.about-story img { width: 100%; height: auto; }
.about-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px; }
.about-logo { width: 150px; height: auto; margin-bottom: 16px; }
.about-company { font-size: 14px; font-weight: 750; }
.about-tagline { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.about-stats div { background: var(--ink); color: #fff; border-radius: 10px; padding: 16px 12px; }
.about-stats strong { display: block; font-size: 23px; font-weight: 800; color: #cdb2ff; line-height: 1.1; }
.about-stats span { display: block; margin-top: 6px; font-size: 8.5px; letter-spacing: .06em; color: #b9b2c1; line-height: 1.5; }
.about-quote { margin: 0; border-left: 3px solid var(--purple); padding: 4px 0 4px 20px; }
.about-quote p { font-size: 15px; font-weight: 700; line-height: 1.7; }
.about-quote footer { margin-top: 8px; font-size: 11px; color: var(--muted); }
.about-cta { width: 100%; }

/* ---------------------------------------------------------------- Machines */
.machines-section { padding-top: 55px; }
.machines-intro { max-width: 760px; margin-bottom: 40px; }
.machines-intro p { color: #6f6976; font-size: 14.5px; line-height: 2; }
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.machine-card { min-width: 0; }
.machine-visual {
  position: relative; width: 100%; aspect-ratio: 16 / 10.5; border: 0; padding: 0;
  background: #211b29; border-radius: var(--radius-sm); overflow: hidden;
}
.machine-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.machine-card:hover .machine-visual img { transform: scale(1.035); opacity: .82; }
.machine-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--purple);
  box-shadow: 0 10px 25px rgba(20, 10, 30, .25);
  transition: transform .25s;
}
.machine-play svg { width: 22px; height: 22px; margin-left: 3px; }
.machine-card:hover .machine-play { transform: scale(1.08); }
.machine-info { padding-top: 15px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.machine-info h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.5; }
.machine-info span { flex: 0 0 auto; font-size: 9px; color: var(--purple); letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; }

/* ---------------------------------------------------------------- Contact page */
.contact-page { padding-top: 55px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px; }
.contact-card-factory { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-card-factory .eyebrow { color: #cbb2ff; }
.contact-card-factory .eyebrow::before { background: var(--purple); }
.contact-card-factory .contact-list dt { color: #a8a1b1; }
.contact-card-factory .contact-list dd { color: #f0ecf6; }
.contact-card-head h2 { margin: 12px 0 18px; font-size: 20px; letter-spacing: -.02em; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.contact-list dt { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: #9b95a2; padding-top: 2px; }
.contact-list dd { margin: 0; font-size: 13px; line-height: 1.65; }
.contact-list dd a { display: block; }
.contact-list dd a:hover { color: var(--purple); }
.contact-card-factory .contact-list dd a:hover { color: #cbb2ff; }
.contact-visual { border-radius: var(--radius-sm); overflow: hidden; background: #ebe7e0; }
.contact-visual img { width: 100%; height: auto; }

.contact-form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.contact-form-head h2 { margin: 14px 0 10px; font-size: 27px; }
.contact-form-head p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 24px; }

/* ---------------------------------------------------------------- Forms */
.enquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: #3a353f; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; border: 1px solid #d7d0df; background: #fff;
  border-radius: 7px; color: var(--ink); padding: 12px 13px; font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--purple); box-shadow: 0 0 0 4px rgba(102,0,255,.08); outline: none;
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #d03a3a; box-shadow: 0 0 0 3px rgba(208,58,58,.08); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2377747e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-error { display: none; font-size: 11px; color: #c23434; line-height: 1.5; }
.field-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-disclaimer { color: #8c8296; font-size: 10px; line-height: 1.8; margin: 18px 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions .button { min-height: 46px; font-size: 12.5px; }
.help-text { font-size: 10.5px; color: #938d98; line-height: 1.6; margin: 0; }

/* Dropzone */
.dropzone-field { gap: 8px; }
.dropzone {
  position: relative; border: 1.5px dashed #cfc5db; border-radius: 10px;
  background: #faf9f6; padding: 22px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--purple); background: #f7f2ff; }
.dropzone.has-video { padding: 16px; }
.dz-icon { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--purple); }
.dz-icon svg { width: 26px; height: 26px; }
.dz-text { font-size: 12px; font-weight: 650; color: #4c4653; }
.dz-sub { font-size: 10px; color: #938d98; margin-top: 3px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-bar { position: absolute; left: 10%; right: 10%; bottom: 7px; height: 3px; border-radius: 3px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.dz-bar.show { opacity: 1; }
.dz-bar i { display: block; height: 100%; width: 0; background: var(--purple); transition: width .2s; }
.dz-preview {
  display: none; align-items: center; gap: 11px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 8px;
}
.dz-preview.show { display: flex; }
.dz-preview img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.dz-file-icon { font-size: 9px; font-weight: 800; letter-spacing: .05em; color: var(--purple); background: var(--lavender); border-radius: 4px; padding: 7px 6px; min-width: 34px; text-align: center; }
.dz-filename { font-size: 11px; color: #5f5966; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dz-remove { border: 0; background: none; color: #a09aa7; font-size: 10.5px; text-decoration: underline; padding: 2px; }
.dz-remove:hover { color: #c23434; }

/* ---------------------------------------------------------------- Modals */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: #160b2d99;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.dialog {
  position: relative; background: var(--paper); border-radius: 20px;
  width: min(620px, 100%); max-height: 90dvh; overflow-y: auto; padding: 35px;
  box-shadow: 0 24px 100px #10002440;
  transform: translateY(14px) scale(.99); transition: transform .3s ease;
}
.modal.open .dialog { transform: translateY(0) scale(1); }
.close-dialog {
  position: absolute; top: 15px; right: 16px; z-index: 3;
  width: 33px; height: 33px; border: 1px solid var(--line);
  background: rgba(248,247,243,.9); border-radius: 50%; font-size: 20px; line-height: 1;
  color: var(--ink); display: grid; place-items: center;
}
.close-dialog:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.dialog h2 { font-size: 29px; margin-top: 12px; }
.dialog-description { color: var(--muted); font-size: 12px; margin: 8px 0 24px; line-height: 1.8; }
.dialog .form-grid { gap: 15px 16px; }

.dialog-product { width: min(940px, 100%); padding: 0; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.lightbox-visual { background: #ebe7e0; min-height: 380px; max-height: 82dvh; }
.lightbox-visual img { width: 100%; height: 100%; object-fit: contain; background: #f1ede6; }
.lightbox-copy { padding: 48px 38px 38px; display: flex; flex-direction: column; justify-content: center; }
.lightbox-copy h2 { font-size: 28px; margin: 14px 0 12px; }
.lightbox-description { color: var(--muted); font-size: 12.5px; line-height: 1.85; margin-bottom: 22px; }
.lightbox-description:empty { display: none; }
.lightbox-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lightbox-note { font-size: 10px; color: #938d98; }

.dialog-image { width: min(860px, 100%); background: #1b1720; padding: 22px; }
.image-lightbox-visual { max-height: 72dvh; display: flex; justify-content: center; }
.image-lightbox-visual img { max-height: 72dvh; width: auto; border-radius: 6px; object-fit: contain; }
.image-lightbox-title { color: #e9e2f1; font-size: 15px; font-weight: 600; margin: 14px 4px 4px; letter-spacing: 0; }
.dialog-image .close-dialog { background: #2b2531; border-color: #453d4d; color: #fff; }

.dialog-video { width: min(960px, 100%); background: #141018; padding: 22px; }
.video-frame { background: #000; border-radius: 8px; overflow: hidden; display: flex; justify-content: center; }
.video-frame video { width: 100%; max-height: 74dvh; }
.video-lightbox-title { color: #ece5f3; font-size: 15px; font-weight: 600; margin: 14px 4px 4px; letter-spacing: 0; }
.dialog-video .close-dialog { background: #2b2531; border-color: #453d4d; color: #fff; }

/* ---------------------------------------------------------------- Popups + toasts */
.sp-popup-backdrop {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: #160b2dcc; backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.sp-popup-backdrop.open { opacity: 1; visibility: visible; }
.sp-popup {
  background: var(--paper); border-radius: 18px; padding: 34px 32px 26px; width: min(440px, 100%);
  box-shadow: 0 30px 100px #0b001a55; text-align: center;
  transform: translateY(10px) scale(.98); transition: transform .25s;
}
.sp-popup-backdrop.open .sp-popup { transform: translateY(0) scale(1); }
.sp-popup-icon {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 16px; font-size: 23px; font-weight: 800;
  background: var(--lavender); color: var(--purple);
}
.sp-popup-icon.success { background: #e7f6ec; color: #168242; }
.sp-popup-icon.error { background: #fdecec; color: #c23434; }
.sp-popup-icon.confirm { background: #fff4dd; color: #a96b00; }
.sp-popup-title { font-size: 21px; margin: 0 0 8px; font-weight: 750; letter-spacing: -.02em; }
.sp-popup-body { color: #6e6875; font-size: 13px; line-height: 1.8; }
.sp-popup-body p { margin: 0 0 8px; }
.sp-popup-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.sp-popup-actions .button { min-height: 43px; font-size: 12px; min-width: 110px; }
.sp-popup.single .sp-popup-cancel { display: none; }
.sp-popup.danger .sp-popup-ok { background: #c23434; }
.sp-popup.danger .sp-popup-ok:hover { background: #a52828; }
.sp-toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 9px; max-width: min(360px, calc(100vw - 40px)); }
.sp-toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  background: #27222d; color: #f4eff8; border-radius: 9px; font-size: 12px; line-height: 1.6;
  box-shadow: 0 14px 40px rgba(15, 8, 22, .25); animation: toastIn .25s ease;
}
.sp-toast.success { background: #165c33; }
.sp-toast.error { background: #7c2424; }
.sp-toast-x { margin-left: auto; cursor: pointer; opacity: .7; font-size: 15px; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 22px; background: #f4f2ed; }
.footer-top { display: flex; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 340px; }
.footer-brand > p { font-size: 12px; color: #827a88; margin: 17px 0; line-height: 1.85; }
.footer-brand .footer-newsletter { font-size: 10.5px; color: #9a939f; margin-top: 4px; }
.footer-links { display: flex; gap: 65px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.footer-links strong { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; color: #6f6877; }
.footer-links a, .footer-address { color: #807786; max-width: 230px; }
.footer-links a:hover { color: var(--purple); }
.footer-quote { border: 0; background: none; padding: 0; text-align: left; color: var(--purple); font-size: 12px; font-weight: 650; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 25px; margin-top: 34px; border-top: 1px solid var(--line);
  color: #928a98; font-size: 10px;
}

/* ---------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Responsive */
@media (min-width: 1500px) {
  .hero { padding-top: 85px; }
}
@media (max-width: 1120px) {
  .nav-links { gap: 18px; }
  .nav { gap: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 45px; }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .nav-links { gap: 16px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: 48px; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 18px; }
  .hero-footnote { margin-top: 30px; }
  .craft-grid { gap: 42px; }
  .contact-panel { padding: 45px; }
  .page-banner-grid { gap: 34px; }
  .cert-grid { gap: 18px; }
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { height: 73px; gap: 12px; }
  .brand-name { font-size: 17px; }
  .brand-symbol { width: 35px; height: 35px; font-size: 19px; }
  .nav-cta { min-height: 38px; padding: 8px 12px; font-size: 11px; gap: 8px; }
  .menu-toggle { display: block; }
  .nav-tools { gap: 10px; }
  .lang-switch { gap: 5px; font-size: 9px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 73px;
    background: var(--paper); padding: 14px 24px 26px;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 20px 40px rgba(30, 20, 40, .08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a, .nav-item > a { padding: 9px 0; font-size: 14px; justify-content: space-between; }
  .nav-dropdown {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 1px solid var(--line);
    border-radius: 0; padding: 2px 0 8px 14px; margin: 2px 0 6px; min-width: 0;
    background: transparent;
  }
  .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { display: none; }
  .nav-item.is-open .nav-dropdown { display: block; }
  .nav-item > a .chev { transition: transform .2s; }
  .nav-item.is-open > a .chev { transform: rotate(180deg); }

  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero h1 { font-size: clamp(43px, 8.5vw, 65px); margin-top: 22px; }
  .hero-description { max-width: 460px; font-size: 14px; }
  .hero-actions { margin-top: 25px; }
  .hero-footnote { margin-top: 24px; }
  .hero-art { max-width: 580px; width: 100%; margin-inline: auto; }
  .hero-meta { margin-top: 30px; gap: 10px; }
  .hero-meta strong { font-size: 11px; }
  .hero-meta span { font-size: 7px; letter-spacing: .04em; }
  .material-band { margin-top: 10px; }
  .section { padding: 65px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-intro { max-width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 27px 15px; }
  .sample-note { width: 100%; margin: 4px 0 0; }
  .filter { font-size: 11px; padding: 7px 13px; }
  .product-info h3 { font-size: 14px; }
  .product-info p { font-size: 8px; }
  .craft { padding: 55px 0; }
  .craft-grid { grid-template-columns: 1fr; gap: 35px; }
  .craft-visual { aspect-ratio: 1.2 / 1; }
  .craft-stats strong { font-size: 26px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; margin-top: 35px; }
  .process-step h3 { margin-top: 18px; }
  .contact-section { padding-bottom: 50px; }
  .contact-panel { padding: 35px 27px; flex-direction: column; align-items: flex-start; }
  .contact-panel h2 { font-size: 32px; }
  .contact-panel p { line-height: 1.9; }
  .footer-top { flex-direction: column; gap: 30px; }
  .footer-links { gap: 60px; }
  .dialog { padding: 30px 22px; }
  .modal { padding: 12px; }
  .dialog-product { padding: 0; grid-template-columns: 1fr; }
  .lightbox-visual { min-height: 0; aspect-ratio: 1.2 / 1; }
  .lightbox-copy { padding: 28px 24px 26px; }
  .page-banner-grid { grid-template-columns: 1fr; gap: 22px; }
  .page-banner-intro { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-strip { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-form-panel { padding: 28px 22px; }
  .machine-grid { gap: 22px 14px; }
  .catalogue-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .catalogue-search { max-width: 100%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .announcement { font-size: 8px; letter-spacing: .12em; }
  .page-banner { padding: 52px 0 34px; }
  .page-banner h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-actions .button { padding-inline: 18px; gap: 12px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta div { flex-direction: row; align-items: baseline; gap: 8px; }
  .product-grid { gap: 22px 12px; }
  .product-number { font-size: 7px; padding: 4px 7px; top: 9px; left: 9px; }
  .product-inquire { width: 30px; height: 30px; right: 9px; bottom: 9px; font-size: 13px; }
  .cert-grid { grid-template-columns: 1fr; }
  .machine-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 82px 1fr; }
  .enquiry-form .form-grid, .dialog .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-links { gap: 40px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .contact-panel .button { width: 100%; }
  .catalogue-foot { flex-wrap: wrap; }
  .catalogue-count { width: 100%; margin: 0; }
  .about-stats strong { font-size: 20px; }
  .sp-popup { padding: 28px 22px 22px; }
}
@media (max-width: 390px) {
  .brand-name small { font-size: 6px; }
  .brand-name { font-size: 15px; }
  .nav { gap: 8px; }
  .lang-switch { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-actions { gap: 14px; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Language links inside the mobile navigation */
.mobile-lang { display: none; }
@media (max-width: 900px) {
  .mobile-lang {
    display: flex; gap: 18px; align-items: center;
    margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
  }
  .mobile-lang a { font-size: 12px; color: #8a8490; padding: 4px 0; }
  .mobile-lang a.active { color: var(--purple); border-bottom: 1px solid var(--purple); font-weight: 700; }
}

/* Company statement band */
.statement { padding: 70px 0 0; }
.statement-inner {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; align-items: start;
  padding: 46px 0 42px; border-block: 1px solid var(--line);
}
.statement-inner > .eyebrow { padding-top: 7px; }
.statement-text {
  font-size: clamp(20px, 2.35vw, 31px); line-height: 1.55; font-weight: 600;
  letter-spacing: -.025em; color: #38333f; margin: 0; max-width: 900px;
}
.statement-foot {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-top: 24px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #938d98;
}
.statement-foot .text-link { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--purple); }
@media (max-width: 900px) {
  .statement { padding-top: 50px; }
  .statement-inner { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .statement-foot .text-link { margin-left: 0; }
}

/* Footer social links */
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 14px; }
.footer-social a { font-size: 10px; letter-spacing: .06em; color: var(--purple); }
.footer-social a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Machine page photography */
.machine-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 42px; }
.machine-photos figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #ebe7e0; }
.machine-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .machine-photos { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; } }

/* Contact page note */
.contact-note {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.8; color: #6f6877;
}
.contact-card-factory .contact-note { border-top-color: #3a3342; color: #b9b1c4; }

/* Contact page rich-text intro (editable in the CMS) */
.contact-body { max-width: 820px; margin: 0 0 42px; color: #6f6976; font-size: 14.5px; line-height: 2; }
.contact-body p { margin: 0 0 16px; }
.contact-body img { border-radius: var(--radius-sm); height: auto; margin: 18px 0; }
@media (max-width: 640px) { .contact-body { margin-bottom: 28px; } }

/* ------------------------------------------------------------------ Brand logo */
.brand-logo {
  display: block; height: 62px; width: auto; flex: 0 0 auto;
  /* the supplied logo has a white ground; multiply lets it sit on paper */
  mix-blend-mode: multiply;
}
.footer-logo { height: 64px; }
.about-logo { width: 170px; height: auto; }

@media (max-width: 900px) {
  .brand-logo { height: 54px; }
  .brand-name { display: none; }
  .footer-logo { height: 58px; }
  .footer .brand-name { display: block; }
}
@media (max-width: 390px) {
  .brand-logo { height: 52px; }
  .footer-logo { height: 54px; }
}
