/* =========================================================
   O.R.T. Engineering — website styles
   ========================================================= */
:root {
  --bg: #f3f5f8;
  --tint: #eaeef3;
  --surface: #ffffff;
  --ink: #0f141b;
  --ink-2: #364150;
  --ink-3: #66717f;
  --line: #dce2e9;

  --dark: #0b0f15;
  --dark-2: #10151d;
  --dark-3: #171e28;
  --dark-line: rgba(255, 255, 255, .08);
  --on-dark: #e9eef4;
  --on-dark-2: #97a3b2;

  --orange: #f36f21;
  --orange-2: #ff8d47;
  --orange-soft: rgba(243, 111, 33, .12);
  --orange-glow: rgba(243, 111, 33, .45);
  --green: #06c755;
  --green-2: #05b24c;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 20, 27, .05), 0 12px 32px -14px rgba(15, 20, 27, .22);
  --shadow-lg: 0 30px 80px -30px rgba(15, 20, 27, .35);

  --font-head: 'Kanit', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 1.3em; height: 1.3em; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: .55em 1.05em; font-size: .92rem; }
.btn--lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn--line { background: var(--green); color: #fff; box-shadow: 0 10px 26px -10px rgba(6, 199, 85, .7); }
.btn--line:hover { background: var(--green-2); }
.btn--orange { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 10px 26px -10px var(--orange-glow); }
.btn--ghost { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); color: var(--on-dark); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222b37; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface);
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--orange-2)); box-shadow: 0 0 12px var(--orange-glow); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark); border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.nav.is-scrolled { background: rgba(11, 15, 21, .82); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border-color: var(--dark-line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1; letter-spacing: .01em; }
.brand__mark i { display: inline-block; width: 0; height: 0; margin: 0 .07em 0 .05em; border-left: .2em solid transparent; border-right: .2em solid transparent; border-top: .3em solid var(--orange); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .16); }
.brand__text b { font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.brand__text small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; color: var(--on-dark-2); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { position: relative; padding: 8px 12px; font-size: .95rem; color: var(--on-dark-2); transition: color .2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.nav__mobile-cta { display: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--on-dark); }
.nav__phone svg { width: 16px; height: 16px; color: var(--orange); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); place-items: center; }
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: calc(var(--nav-h) + 56px) 0 96px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  animation: gridDrift 30s linear infinite;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 52% at 76% 44%, rgba(243, 111, 33, .2), transparent 70%),
    radial-gradient(40% 50% at 8% 6%, rgba(84, 128, 200, .16), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--dark));
}
@keyframes gridDrift { to { background-position: 56px 56px, 56px 56px; } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .14em; color: var(--on-dark-2); padding: 7px 14px; border: 1px solid var(--dark-line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.eyebrow em { font-style: normal; color: var(--orange); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(243, 111, 33, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(243, 111, 33, 0); } }

.hero h1 { margin: 22px 0 18px; font-size: clamp(2.1rem, 3.7vw, 3.35rem); font-weight: 700; line-height: 1.24; letter-spacing: -.005em; color: #fff; }
.nw { white-space: nowrap; }
.grad { background: linear-gradient(92deg, #ffb27a 0%, var(--orange-2) 30%, var(--orange) 70%, #ff9a5c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 34em; font-size: 1.08rem; color: var(--on-dark-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--on-dark); font-size: .95rem; border-bottom: 1px dashed rgba(255, 255, 255, .25); padding-bottom: 2px; transition: color .2s, border-color .2s, gap .2s; }
.hero__link:hover { color: var(--orange-2); border-color: var(--orange-2); gap: 12px; }

.specs { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius-sm); overflow: hidden; }
.specs li { background: rgba(11, 15, 21, .85); padding: 14px 14px 12px; position: relative; }
.specs li::before { content: ""; position: absolute; top: 0; left: 14px; width: 20px; height: 2px; background: var(--orange); }
.specs b { display: block; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.specs span { display: block; font-size: .76rem; line-height: 1.45; color: var(--on-dark-2); margin-top: 2px; }
.specs b span { display: inline; font-size: inherit; color: inherit; margin: 0; }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: .3em; color: var(--on-dark-2); }
.hero__scroll span { width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 12px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- simulator ---------- */
.sim { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, #0f141c, #0b0f15); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); }
.sim__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .68rem; letter-spacing: .1em; color: var(--on-dark-2); border-bottom: 1px solid var(--dark-line); background: rgba(255, 255, 255, .02); }
.sim__status { display: inline-flex; align-items: center; gap: 8px; }
.sim__status i { width: 8px; height: 8px; border-radius: 50%; background: #2bd66b; box-shadow: 0 0 10px #2bd66b; animation: blink 1.2s steps(2, start) infinite; }
.sim__status b { color: #fff; font-weight: 700; min-width: 7.5em; }
#simName { color: var(--orange-2); }
@keyframes blink { to { opacity: .35; } }

.sim__view { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(70% 60% at 50% 45%, #18202b 0%, #0b0f15 75%); }
.sim__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.sim__view canvas:active { cursor: grabbing; }
.crn { position: absolute; width: 18px; height: 18px; border: 2px solid var(--orange); opacity: .8; pointer-events: none; }
.crn--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.crn--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.crn--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.crn--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.sim__hud { position: absolute; top: 20px; left: 20px; display: grid; gap: 5px; pointer-events: none; }
.dro { display: flex; align-items: baseline; gap: 10px; min-width: 150px; padding: 3px 10px; font-size: .74rem; border-radius: 6px; background: rgba(5, 8, 12, .62); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(4px); }
.dro span { color: var(--orange); font-weight: 700; }
.dro b { margin-left: auto; font-weight: 500; color: #eaf2fb; font-variant-numeric: tabular-nums; }
.dro em { font-style: normal; font-size: .62rem; color: var(--on-dark-2); }

.sim__gcode { position: absolute; top: 20px; right: 20px; width: 200px; height: 118px; overflow: hidden; border-radius: 8px; background: rgba(5, 8, 12, .62); border: 1px solid rgba(255, 255, 255, .07); pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.sim__gcode ul { list-style: none; margin: 0; padding: 0; transition: transform .25s var(--ease); }
.sim__gcode li { height: 18px; line-height: 18px; padding: 0 10px; font-size: .64rem; color: #6f7c8c; white-space: nowrap; border-left: 2px solid transparent; }
.sim__gcode li.is-active { color: #fff; background: rgba(243, 111, 33, .2); border-left-color: var(--orange); }

.sim__pass { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .7rem; letter-spacing: .06em; color: #c9ffd9; background: rgba(6, 199, 85, .14); border: 1px solid rgba(6, 199, 85, .45); opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.sim__pass svg { width: 14px; height: 14px; color: #2bd66b; }
.sim__pass.is-on { opacity: 1; transform: none; }

.sim__hint { position: absolute; right: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--on-dark-2); pointer-events: none; transition: opacity .5s; }
.sim__hint svg { width: 18px; height: 18px; color: var(--orange); animation: sway 2.4s ease-in-out infinite; }
.sim__hint.is-hidden { opacity: 0; }
@keyframes sway { 50% { transform: rotate(-18deg); } }
.sim__rotate { position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .78rem; color: var(--on-dark); background: rgba(5, 8, 12, .7); border: 1px solid rgba(255, 255, 255, .14); }
.sim__rotate svg { width: 16px; height: 16px; color: var(--orange); }
.sim__rotate[aria-pressed="true"] { border-color: var(--orange); background: rgba(243, 111, 33, .2); }
.sim__rotate[hidden], .sim__hint[hidden] { display: none; }

.sim__loading, .sim__fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; }
.sim__loading { font-size: .72rem; letter-spacing: .2em; color: var(--on-dark-2); gap: 14px; align-content: center; }
.sim__loading span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sim[data-state="loading"] .sim__loading { display: grid; }
.sim[data-state="error"] .sim__fallback { display: grid; }
.sim__fallback img { width: 100%; height: 100%; object-fit: cover; }
.sim[data-state="error"] .sim__hud, .sim[data-state="error"] .sim__gcode, .sim[data-state="error"] .sim__hint, .sim[data-state="error"] .sim__controls, .sim[data-state="error"] .sim__bar { display: none; }

.sim__bar { height: 3px; background: rgba(255, 255, 255, .06); }
.sim__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-2)); box-shadow: 0 0 10px var(--orange-glow); }

.sim__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; padding: 14px; }
.sim__group { display: grid; gap: 6px; }
.sim__label { font-size: .6rem; letter-spacing: .18em; color: #5f6b7a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .82rem; line-height: 1.3; color: var(--on-dark-2); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); transition: color .2s, border-color .2s, background-color .2s, transform .2s; }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.chip--plain { padding-left: 12px; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.chip.is-active { color: #fff; border-color: var(--orange); background: rgba(243, 111, 33, .16); }
.sim__restart { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-family: var(--font-head); font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 20px -8px var(--orange-glow); transition: transform .2s; }
.sim__restart svg { width: 14px; height: 14px; }
.sim__restart:hover { transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section__grid-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 600; }
.section__head > p, .section__head div > p:not(.kicker) { margin-top: 14px; font-size: 1.05rem; color: var(--ink-3); }
.section--dark .section__head > p { color: var(--on-dark-2); }
.section--dark h2 { color: #fff; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.section__head--row > div { max-width: 640px; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--font-head); font-size: .92rem; font-weight: 500; letter-spacing: .02em; color: var(--orange); }
.kicker::before { content: ""; width: 30px; height: 2px; background: currentColor; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.about__lead { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); }
.pillars { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.pillars li { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.pillars li:hover { transform: translateX(6px); border-color: rgba(243, 111, 33, .45); }
.pillars__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); flex: none; }
.pillars__icon svg { width: 24px; height: 24px; }
.pillars b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.pillars small { display: block; font-size: .92rem; color: var(--ink-3); line-height: 1.5; }
.clients { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--dark); color: var(--on-dark); }
.clients__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--orange); color: #fff; flex: none; }
.clients__icon svg { width: 24px; height: 24px; }
.clients__label { font-family: var(--font-head); font-size: .8rem; color: var(--orange-2); }
.clients b { color: #fff; font-family: var(--font-head); font-weight: 600; }
.hl { color: #fff; border-bottom: 1px solid var(--orange); }

.about__visual { position: relative; aspect-ratio: 1 / 1.02; }
.ph { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 4px solid var(--surface); background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ph:hover img { transform: scale(1.06); }
.ph figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 6px; font-size: .62rem; letter-spacing: .1em; color: #fff; background: rgba(11, 15, 21, .72); backdrop-filter: blur(4px); }
.ph--a { width: 58%; aspect-ratio: 1; left: 0; top: 4%; z-index: 2; }
.ph--b { width: 46%; aspect-ratio: 1; right: 0; top: 0; }
.ph--c { width: 52%; aspect-ratio: 1; right: 6%; bottom: 0; z-index: 3; }
.dim { position: absolute; font-size: .66rem; letter-spacing: .1em; color: var(--orange); pointer-events: none; }
.dim span { background: var(--bg); padding: 0 6px; position: relative; }
.dim--v { left: -22px; top: 6%; bottom: 40%; width: 1px; background: var(--orange); display: grid; place-items: center; }
.dim--v::before, .dim--v::after { content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--orange); }
.dim--v::before { top: 0; } .dim--v::after { bottom: 0; }
.dim--v span { transform: rotate(-90deg); white-space: nowrap; }
.dim--h { left: 2%; right: 56%; bottom: -26px; height: 1px; background: var(--orange); display: grid; place-items: center; }
.dim--h::before, .dim--h::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--orange); }
.dim--h::before { left: 0; } .dim--h::after { right: 0; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(243, 111, 33, .12), transparent 60%); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(243, 111, 33, .4); }
.card:hover::before { opacity: 1; }
.card__no { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px #cfd6df; }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, var(--orange), var(--orange-2)); box-shadow: 0 12px 24px -12px var(--orange-glow); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-top: 22px; font-size: 1.18rem; line-height: 1.4; }
.card p { margin-top: 10px; font-size: .95rem; color: var(--ink-3); line-height: 1.65; }
.card__spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card__spec span { font-size: .72rem; padding: 3px 9px; border-radius: 6px; color: var(--ink-2); background: var(--tint); border: 1px solid var(--line); }

/* ---------- works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: .92rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: all .25s var(--ease); }
.filter span { font-size: .72rem; color: var(--ink-3); }
.filter:hover { border-color: var(--ink-2); }
.filter.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter.is-active span { color: var(--orange-2); }

.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #dfe6ee; aspect-ratio: 1; cursor: zoom-in; box-shadow: var(--shadow); animation: workIn .6s var(--ease) both; animation-delay: var(--d, 0s); }
.work[hidden] { display: none; }
@keyframes workIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.work button { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.work:hover img { transform: scale(1.08); }
.work__meta { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(8, 11, 16, .82)); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; pointer-events: none; }
.work__meta b { display: block; font-family: var(--font-head); font-weight: 500; font-size: .98rem; line-height: 1.35; }
.work__meta small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.work__zoom { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; flex: none; transform: scale(0) rotate(-90deg); transition: transform .4s var(--ease); }
.work__zoom svg { width: 16px; height: 16px; }
.work:hover .work__zoom, .work:focus-within .work__zoom { transform: none; }
.work__tag { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 6px; font-size: .7rem; color: var(--ink); background: rgba(255, 255, 255, .86); backdrop-filter: blur(4px); pointer-events: none; }

/* ---------- materials ---------- */
.mats { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.mats__list { display: grid; gap: 6px; align-content: start; }
.mat-tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; text-align: left; color: var(--on-dark-2); border: 1px solid var(--dark-line); background: rgba(255, 255, 255, .02); transition: all .25s var(--ease); }
.mat-tab i { width: 30px; height: 14px; border-radius: 7px; background: var(--rod); flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.mat-tab b { font-weight: 500; font-size: .98rem; color: inherit; }
.mat-tab small { margin-left: auto; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: #5f6b7a; }
.mat-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .2); }
.mat-tab[aria-selected="true"] { color: #fff; border-color: var(--orange); background: linear-gradient(90deg, rgba(243, 111, 33, .18), rgba(243, 111, 33, .03)); }
.mat-tab[aria-selected="true"] small { color: var(--orange-2); }

.mats__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 22px; border: 1px solid var(--dark-line); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.rods { position: relative; height: 260px; display: grid; align-content: center; gap: 14px; padding: 0 12px; }
.rods span { --h: 54px; position: relative; height: var(--h); width: var(--w, 100%); border-radius: calc(var(--h) / 2) 0 0 calc(var(--h) / 2); background: var(--rod); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .9); overflow: hidden; animation: rodIn .7s var(--ease) both; }
.rods span::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: calc(var(--h) * .45); border-radius: 50%; background: var(--face); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset -4px 0 8px rgba(0, 0, 0, .25); }
.rods span::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.5s 1s infinite; }
.rods span:nth-child(1) { --h: 46px; --w: 88%; animation-delay: .05s; }
.rods span:nth-child(2) { --h: 64px; --w: 100%; animation-delay: .12s; }
.rods span:nth-child(3) { --h: 38px; --w: 74%; animation-delay: .19s; }
.rods span:nth-child(3)::before { animation-delay: 1.6s; }
@keyframes rodIn { from { opacity: 0; transform: translateX(-40px); } }
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.mats__grade { font-size: .74rem; letter-spacing: .12em; color: var(--orange-2); }
.mats__info h3 { margin-top: 6px; font-size: 1.7rem; color: #fff; }
.mats__info > p:not(.mats__grade) { margin-top: 10px; color: var(--on-dark-2); }
.mats__uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mats__uses span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); }
.meters { display: grid; gap: 10px; margin: 20px 0 22px; }
.meter { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 12px; font-size: .84rem; color: var(--on-dark-2); }
.meter__track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter__track i { display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width .9s var(--ease); }
.meter b { font-family: var(--font-mono); font-size: .74rem; color: #fff; font-weight: 500; text-align: right; }

/* ---------- process ---------- */
.steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px; }
.steps::before { background: repeating-linear-gradient(90deg, #c6ced8 0 6px, transparent 6px 12px); }
.steps::after { background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 8px var(--bg); transition: all .4s var(--ease); }
.step__icon svg { width: 30px; height: 30px; }
.step:hover .step__icon { color: #fff; background: var(--orange); border-color: var(--orange); transform: translateY(-4px) rotate(-6deg); }
.step__no { position: absolute; z-index: 2; top: -6px; left: calc(50% + 18px); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 700; color: #fff; background: var(--orange); box-shadow: 0 0 0 4px var(--bg); }
.step h3 { margin-top: 20px; font-size: 1.12rem; line-height: 1.45; }
.step p { margin-top: 8px; font-size: .93rem; color: var(--ink-3); line-height: 1.65; }

/* ---------- quote ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 26px; border-radius: 22px; border: 1px solid var(--dark-line); background: rgba(255, 255, 255, .03); }
.qfield { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.qfield--full { grid-column: 1 / -1; }
.qfield > span, .qfield legend { font-size: .85rem; color: var(--on-dark-2); padding: 0; }
.qfield input:not([type="radio"]):not([type="range"]), .qfield select, .qfield textarea {
  width: 100%; min-width: 0; padding: 11px 14px; border-radius: 12px; font-size: 1rem; color: #fff;
  background: rgba(5, 8, 12, .6); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, box-shadow .2s;
}
.qfield select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-2) 50%), linear-gradient(135deg, var(--on-dark-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.qfield select option { color: var(--ink); }
.qfield textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.qfield input::placeholder, .qfield textarea::placeholder { color: #5b6674; }
.qfield input:focus, .qfield select:focus, .qfield textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 111, 33, .2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: .92rem; cursor: pointer; color: var(--on-dark-2); border: 1px solid rgba(255, 255, 255, .14); transition: all .2s; }
.seg input:checked + span { color: #fff; border-color: var(--orange); background: rgba(243, 111, 33, .18); }
.seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr 88px; gap: 10px; align-items: center; }
.range input[type="number"] { font-family: var(--font-mono); text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 0 0 4px rgba(243, 111, 33, .2); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); }

.qside { display: grid; gap: 14px; }
.qdraw, .qmsg { border-radius: 18px; border: 1px solid var(--dark-line); background: rgba(5, 8, 12, .55); overflow: hidden; }
.qdraw__head, .qmsg__head { display: flex; justify-content: space-between; padding: 9px 14px; font-size: .64rem; letter-spacing: .14em; color: #5f6b7a; border-bottom: 1px solid var(--dark-line); }
.qdraw svg { width: 100%; height: auto; display: block; background: linear-gradient(rgba(84, 128, 200, .09) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, rgba(84, 128, 200, .09) 1px, transparent 1px) 0 0 / 12px 12px; }
.qcheck { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .9rem; border-top: 1px solid var(--dark-line); color: #8df0b3; }
.qcheck svg { width: 18px; height: 18px; }
.qcheck[data-ok="false"] { color: #ffc27a; }
.qmsg pre { margin: 0; padding: 14px; max-height: 220px; overflow: auto; font-family: var(--font-body); font-size: .9rem; line-height: 1.6; white-space: pre-wrap; color: var(--on-dark); }
.qactions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qactions .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.qactions .btn.is-busy svg { animation: spin 1s linear infinite; }
.qfield > span small { font-size: .78rem; color: #5f6b7a; }
.qhoney { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qstatus { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.55; color: #c9ffd9; background: rgba(6, 199, 85, .12); border: 1px solid rgba(6, 199, 85, .4); }
.qstatus[data-type="warn"] { color: #ffd9b0; background: rgba(243, 111, 33, .12); border-color: rgba(243, 111, 33, .45); }
.qstatus[hidden] { display: none; }
.qcopy { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; font-size: .88rem; color: var(--on-dark-2); border-bottom: 1px dashed rgba(255, 255, 255, .2); transition: color .2s, border-color .2s; }
.qcopy svg { width: 16px; height: 16px; }
.qcopy:hover { color: #fff; border-color: var(--orange); }
.qnote { font-size: .8rem; color: #5f6b7a; text-align: center; }
.qnote a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 2px; }
.qfield input.is-invalid { border-color: #ff9a5c; box-shadow: 0 0 0 3px rgba(243, 111, 33, .25); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.contact__cards { display: grid; gap: 16px; }
.ccard { display: flex; gap: 18px; justify-content: space-between; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s; }
.ccard:hover { transform: translateY(-4px); border-color: rgba(243, 111, 33, .4); }
.ccard__body { min-width: 0; }
.ccard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--green); }
.ccard__icon svg { width: 26px; height: 26px; }
.ccard__icon--orange { background: var(--orange); }
.ccard__icon--dark { background: var(--ink); }
.ccard__label { margin-top: 14px; font-size: .66rem; letter-spacing: .16em; color: var(--ink-3); }
.ccard h3 { font-size: 1.35rem; line-height: 1.4; }
.ccard h3.mono { letter-spacing: -.01em; }
.ccard__body > p:not(.ccard__label) { margin-top: 4px; color: var(--ink-3); font-size: .95rem; }
.ccard__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.ccard__qr { margin: 0; flex: none; text-align: center; align-self: center; }
.ccard__qr img { width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ccard__qr figcaption { margin-top: 6px; font-size: .62rem; letter-spacing: .2em; color: var(--ink-3); }
.ccard--line { border-color: rgba(6, 199, 85, .35); background: linear-gradient(140deg, #fff 60%, rgba(6, 199, 85, .07)); }

.map { position: relative; min-height: 480px; border-radius: var(--radius); overflow: hidden; background: #dfe5ec; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.02); }
.map__badge { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; background: rgba(11, 15, 21, .9); color: #fff; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); transition: transform .25s; }
.map__badge:hover { transform: translateY(-2px); }
.map__badge > svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: #fff; background: var(--orange); }
.map__badge b { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; line-height: 1.3; }
.map__badge small { display: block; font-size: .74rem; color: var(--on-dark-2); line-height: 1.3; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); padding: 64px 0 28px; border-top: 3px solid var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.footer__brand p { margin-top: 18px; font-size: .95rem; line-height: 1.7; }
.footer__col { display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.footer__col > p { font-size: .68rem; letter-spacing: .18em; color: #5f6b7a; margin-bottom: 4px; }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; transition: color .2s; }
.footer__col a svg { width: 18px; height: 18px; color: var(--orange); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: .84rem; }
.footer__bottom .mono { font-size: .66rem; letter-spacing: .16em; color: #5f6b7a; }

/* ---------- floating actions ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; gap: 10px; justify-items: end; }
.fab__btn { position: relative; display: flex; align-items: center; height: 54px; min-width: 54px; border-radius: 27px; color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.fab__btn > svg:not(.ring) { width: 26px; height: 26px; margin: 0 14px; }
.fab__btn span { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head); font-size: .95rem; transition: max-width .4s var(--ease), padding .4s var(--ease); }
.fab__btn:hover { transform: translateY(-3px); }
.fab__btn:hover span { max-width: 220px; padding-right: 18px; }
.fab__btn:hover > svg:not(.ring) { margin-right: 10px; }
.fab__btn--line { background: var(--green); }
.fab__btn--line::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--green); animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.fab__btn--phone { background: var(--orange); }
.fab__btn--top { width: 54px; justify-content: center; background: var(--dark-3); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.fab__btn--top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab__btn--top > svg:not(.ring) { width: 20px; height: 20px; margin: 0; }
.fab__btn--top .ring { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 138.2; stroke-dashoffset: var(--ring, 138.2); stroke-linecap: round; }

.mbar { display: none; }

/* ---------- lightbox ---------- */
.lightbox { width: min(1100px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--dark-2); color: var(--on-dark); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 8, 12, .82); backdrop-filter: blur(8px); }
.lightbox[open] { animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__inner { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: calc(100dvh - 24px); }
.lightbox__fig { margin: 0; display: grid; place-items: center; background: #0e131a; min-height: 0; touch-action: pan-y; }
.lightbox__fig img { width: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__fig img.is-swap { animation: imgIn .35s var(--ease); }
@keyframes imgIn { from { opacity: 0; transform: translateX(var(--dir, 20px)); } }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: rgba(11, 15, 21, .7); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: calc(50% - 60px); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--dark-line); }
.lightbox__count { font-size: .7rem; letter-spacing: .14em; color: var(--orange-2); }
.lightbox__bar h3 { font-size: 1.2rem; color: #fff; }
.lightbox__tag { font-size: .85rem; color: var(--on-dark-2); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: .92rem; color: #fff; background: rgba(15, 20, 27, .94); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; background: var(--green); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav__phone { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mats__panel { grid-template-columns: 1fr; }
  .rods { height: 200px; }
}

@media (max-width: 1020px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: rgba(11, 15, 21, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--dark-line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: rgba(11, 15, 21, .97); }
  .nav__links a:not(.btn) { padding: 12px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--dark-line); }
  .nav__links a:not(.btn)::after { left: auto; right: 8px; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); }
  .nav__links a.is-active::after { transform: translateY(-50%) scale(1); }
  .nav__mobile-cta { display: inline-flex; margin-top: 14px; }

  .hero { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: left; }
  .hero__scroll { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__visual { max-width: 560px; width: 100%; margin: 24px auto 30px; }
  .mats { grid-template-columns: 1fr; }
  .mats__list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .mats__list::-webkit-scrollbar { display: none; }
  .mat-tab { width: auto; flex: none; }
  .mat-tab small { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .quote { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .brand__text { display: none; }
  .nav__cta .btn { display: none; }
  .eyebrow { font-size: .66rem; letter-spacing: .1em; }
  .eyebrow em { display: none; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work__meta { padding: 30px 10px 10px; }
  .work__meta b { font-size: .86rem; }
  .work__zoom { display: none; }
  .services { grid-template-columns: 1fr; }
  .sim__gcode { display: none; }
  .sim__view { aspect-ratio: 1 / 1; }
  .sim__head .sim__title { display: none; }
  .sim__hud { top: 16px; left: 16px; }
  .dro { min-width: 124px; font-size: .68rem; }
  .sim__pass { left: 16px; bottom: 16px; font-size: .62rem; }
  .sim__restart { margin-left: 0; }
  .qform { grid-template-columns: 1fr; padding: 18px; }
  .qactions { grid-template-columns: 1fr; }
  .ccard { flex-direction: column; }
  .ccard__qr { display: none; }
  .fab { display: none; }
  .mbar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px;
    background: rgba(11, 15, 21, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--dark-line);
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: .74rem; color: var(--on-dark); }
  .mbar svg { width: 22px; height: 22px; }
  .mbar__line { background: var(--green); color: #fff !important; }
  .mbar__phone { background: var(--orange); color: #fff !important; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .lightbox { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .lightbox__inner { max-height: 100dvh; }
  .lightbox__fig img { max-height: calc(100dvh - 180px); }
  .lightbox__bar { flex-direction: column; align-items: stretch; }
  .lightbox__nav { top: auto; bottom: 150px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2rem; }
  .hero h1 .nw { white-space: normal; }
  .hero__ctas .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 100px 1fr 30px; }
  .mats__panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
