/* ============================================================
   Kestrel Precision — industrial futurism, dark corporate UI
   Technical minimalism on a Swiss grid, 3D product hero.
   Michroma + Sora + Martian Mono · eggplant / signal orange / orchid
   ============================================================ */

:root {
  --bg: #13060F;
  --surface: #1C0A19;
  --plum: #3B1240;
  --glass: linear-gradient(180deg, rgba(59, 18, 64, 0.55), rgba(28, 10, 25, 0.6));
  --orchid: #E6B4E0;
  --orchid-2: #B993B5;
  --paper: #F5ECF4;
  --text: #F5ECF4;
  --text-2: #CDB6CA;
  --orange: #FF5A1F;
  --orange-ink: #C2400F;
  --line: rgba(230, 180, 224, 0.14);
  --line-2: rgba(230, 180, 224, 0.3);

  --display: 'Michroma', 'Eurostile', 'Arial', sans-serif;
  --sans: 'Sora', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'Courier New', monospace;

  --r: 14px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 10vw, 140px);
  --header-h: 64px;
  --grid: linear-gradient(rgba(230, 180, 224, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 180, 224, 0.07) 1px, transparent 1px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.6; overflow-x: clip; }
body.menu-open { overflow: hidden; }
main { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section-y); }
main > .section:last-child { padding-bottom: var(--section-y); }

.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--orange); text-transform: uppercase; }
.tag::before { content: ''; width: 6px; height: 6px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.h1, .h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; text-wrap: balance; }
.h1 { font-size: clamp(1.55rem, 7vw, 3.6rem); line-height: 1.14; letter-spacing: 0.01em; }
.h2 { font-size: clamp(1.3rem, 1.8vw + 0.8rem, 2.35rem); line-height: 1.2; letter-spacing: 0.01em; }
.orange { color: var(--orange); }
.lede { margin: 0; max-width: 34em; font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem); font-weight: 300; color: var(--text-2); }
.blueprint { background-color: var(--surface); background-image: var(--grid); background-size: 28px 28px; }

/* Glass panel with corner ticks: the factory's UI signature */
.panel, .tracker, .scan, .contacts > div { position: relative; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em; text-decoration: none; transition: background-color 200ms, color 200ms, border-color 200ms, box-shadow 250ms var(--ease), transform 250ms var(--ease); }
.btn--orange { background: var(--orange); color: var(--bg); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5), 0 10px 30px rgba(255, 90, 31, 0.25); }
.btn--orange:hover { background: #FF7240; transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18), 0 14px 36px rgba(255, 90, 31, 0.35); }
.btn--line { border-color: var(--line-2); background: rgba(230, 180, 224, 0.04); color: var(--text); }
.btn--line:hover { border-color: var(--orchid); background: rgba(230, 180, 224, 0.1); }
.btn--ink { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn--ink:hover { background: var(--plum); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Demo strip ---------- */
.demo-strip { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 48px 6px 16px; background: var(--paper); color: var(--bg); font-size: 0.8125rem; text-align: center; }
.demo-strip p { margin: 0; }
.demo-strip a { color: var(--orange-ink); font-weight: 700; text-decoration: none; }
.demo-strip button { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; background: none; font-size: 1.25rem; color: var(--bg); cursor: pointer; }
.demo-strip[hidden] { display: none; }

/* ---------- Header ---------- */
.utility { border-bottom: 1px solid var(--line); background: var(--surface); }
.utility .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.05em; color: var(--orchid-2); }
.utility .hide-sm { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(19, 6, 15, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 90, 31, 0.5)); }
.brand strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.12em; line-height: 1.1; }
.brand small { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.12em; color: var(--orchid-2); }
.nav { display: none; }
.nav a { position: relative; font-size: 0.9375rem; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 6px 0; transition: color 200ms; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange); box-shadow: 0 0 8px var(--orange); transform: scaleX(0); transition: transform 250ms var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: none; }
.nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: none; }
.menu-toggle { width: 46px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); transition: transform 250ms var(--ease); }
.menu-toggle span:last-child { background: var(--orange); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--bg); background-image: var(--grid); background-size: 28px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; animation: plotIn 450ms var(--ease) both; }
.mobile-menu a:nth-child(2) { animation-delay: 60ms; }
.mobile-menu a:nth-child(3) { animation-delay: 120ms; }
.mobile-menu a:nth-child(4) { animation-delay: 180ms; }
.mobile-menu a[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn { margin-top: 24px; }
@media (min-width: 960px) {
  :root { --header-h: 78px; }
  .utility .container { font-size: 0.6875rem; }
  .utility .hide-sm { display: inline; }
  .brand svg { width: 36px; height: 36px; }
  .brand strong { font-size: 1.2rem; }
  .brand small { font-size: 0.625rem; }
  .nav { display: flex; gap: 32px; }
  .header-cta { display: inline-flex; min-height: 46px; font-size: 0.875rem; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
.nav a, .header-cta { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1180px) {
  .nav { gap: 22px; }
  .nav a { font-size: 0.875rem; }
  .brand small { display: none; }
  .header-cta { padding: 0 16px; }
}

/* ---------- Hero: the part is the hero ---------- */
.hero { display: grid; gap: 28px; padding-block: clamp(28px, 5vw, 64px) clamp(44px, 6vw, 96px); }
.hero__copy { display: flex; flex-direction: column; gap: 22px; container-type: inline-size; min-width: 0; }
.hero .h1 { font-size: clamp(1.55rem, 9.6cqi, 3.9rem); }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero__actions .btn { padding: 0 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--orchid-2); }
.drawing { position: relative; height: clamp(340px, 52vh, 640px); min-height: 340px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 120px rgba(255, 90, 31, 0.08); }
.drawing::before, .drawing::after { content: ''; position: absolute; z-index: 3; width: 18px; height: 18px; border: 0 solid var(--orange); pointer-events: none; }
.drawing::before { left: 10px; top: 10px; border-left-width: 2px; border-top-width: 2px; }
.drawing::after { right: 10px; bottom: 10px; border-right-width: 2px; border-bottom-width: 2px; }
.drawing__svg { position: absolute; left: 4%; top: 6%; width: 92%; height: 78%; transition: opacity 600ms var(--ease); }
.drawing canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 900ms var(--ease); touch-action: pan-y; cursor: grab; }
.drawing canvas:active { cursor: grabbing; }
.has-3d .drawing canvas { opacity: 1; }
.has-3d .drawing__svg { opacity: 0; }
.drawing__hint { position: absolute; left: 14px; top: 34px; z-index: 2; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(19, 6, 15, 0.7); font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--orchid); }
.title-block { position: absolute; right: 14px; bottom: 14px; z-index: 2; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(19, 6, 15, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 0.625rem; }
.title-block td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.title-block tr:last-child td { border-bottom: 0; }
.title-block td:first-child { color: var(--orchid-2); border-right: 1px solid var(--line); }
/* Spec hotspots that follow the 3D part (added by part3d.js) */
.hotspot { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transition: opacity 400ms; will-change: transform; }
.hotspot.is-on { opacity: 1; }
.hotspot.is-left { flex-direction: row-reverse; }
.hotspot i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.25), 0 0 14px var(--orange); }
.hotspot span { padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(19, 6, 15, 0.82); font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.04em; white-space: nowrap; }
@media (min-width: 600px) { .hero__actions { display: flex; flex-wrap: wrap; } .hero__actions .btn { padding: 0 24px; } .title-block, .drawing__hint, .hotspot span { font-size: 0.6875rem; } }
@media (max-width: 599px) { .hero__actions .btn { font-size: 0.8125rem; } }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center; gap: 48px; } .drawing { height: min(660px, 76vh); min-height: 480px; } }

/* ---------- Metrics strip ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--surface); }
.ticker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticker__grid > div { padding: 22px 16px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.ticker__grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.ticker__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.ticker strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.ticker div:first-child strong { color: var(--orange); text-shadow: 0 0 24px rgba(255, 90, 31, 0.4); }
.ticker span { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--orchid-2); }
@media (min-width: 760px) {
  .ticker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ticker__grid > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
  .ticker__grid > div:nth-child(n+3) { border-top: 0; }
}

/* ---------- Split sections ---------- */
.split { display: grid; gap: 28px; }
.split__intro { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; } }

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.index li { display: grid; grid-template-columns: 32px 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background-color 250ms, padding 300ms var(--ease); }
.index .mono { color: var(--orchid-2); }
.index strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1.4vw + 0.6rem, 1.6rem); line-height: 1.2; text-transform: uppercase; }
.index li:first-child strong, .index li:first-child .mono:first-child { color: var(--orange); }
.index span:last-child { grid-column: 2; font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; color: var(--text-2); }
@media (hover: hover) { .index li:hover { background: linear-gradient(90deg, rgba(255, 90, 31, 0.08), transparent 70%); padding-left: 10px; } }
@media (min-width: 960px) { .index li { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px; padding: 26px 0; } .index span:last-child { grid-column: auto; } }

/* ---------- Explore: glass cards ---------- */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.explore a { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); text-decoration: none; overflow: hidden; transition: border-color 250ms, transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.explore a::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 31, 0.14), transparent 60%); opacity: 0; transition: opacity 300ms; pointer-events: none; }
.explore strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1vw + 0.8rem, 1.35rem); line-height: 1.25; text-transform: uppercase; }
.explore span:not(.tag) { color: var(--text-2); font-weight: 300; }
.explore b { font-size: 1.4rem; color: var(--orange); font-weight: 400; transition: transform 250ms var(--ease); }
@media (hover: hover) {
  .explore a:hover { border-color: rgba(255, 90, 31, 0.6); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
  .explore a:hover::after { opacity: 1; }
  .explore a:hover b { transform: translateX(6px); }
}

/* ---------- Factory band ---------- */
.band { position: relative; min-height: clamp(420px, 70vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.05); }
.band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(19, 6, 15, 0.1) 20%, rgba(19, 6, 15, 0.96)); }
.band .container { position: relative; z-index: 2; padding-block: 44px; display: flex; flex-direction: column; gap: 14px; }
.band blockquote { margin: 0; max-width: 20em; font-size: clamp(1.4rem, 2.4vw + 0.6rem, 2.4rem); font-weight: 300; line-height: 1.25; }
.band cite { font-style: normal; font-family: var(--mono); font-size: 0.75rem; color: var(--text-2); }
@media (min-width: 960px) { .band { align-items: center; } .band::before { background: linear-gradient(90deg, rgba(19, 6, 15, 0.95) 0%, rgba(19, 6, 15, 0.4) 60%, transparent); } }
@supports (animation-timeline: view()) {
  .band img { animation: bandDrift linear both; animation-timeline: view(); }
  @keyframes bandDrift { from { scale: 1.15; translate: 0 -4%; } to { scale: 1.15; translate: 0 4%; } }
}

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--orange); color: var(--bg); }
.cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(19, 6, 15, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 6, 15, 0.08) 1px, transparent 1px); background-size: 28px 28px; }
.cta .container { position: relative; padding-block: clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cta .h2 { max-width: 22em; font-size: clamp(1.4rem, 2.6vw + 0.6rem, 2.9rem); }
.cta--spaced { margin-top: var(--section-y); }
@media (max-width: 599px) { .cta .btn { width: 100%; } }

/* ---------- Page hero ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(48px, 8vw, 104px) clamp(36px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.page-hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; container-type: inline-size; }
.page-hero .h1 { font-size: clamp(1.45rem, 7.2cqi, 3.6rem); }
.crumb { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--orchid-2); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb b { color: var(--orange); font-weight: 400; }
.spec { flex: 0 1 380px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); font-family: var(--mono); font-size: 0.75rem; }
.spec td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { color: var(--orchid-2); border-right: 1px solid var(--line); }

/* ---------- Process line ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); row-gap: 36px; }
.process li { position: relative; padding: 28px 22px 4px 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); }
.process li::before { content: ''; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); }
.process li:first-child::before { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.process strong { font-family: var(--display); font-weight: 400; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; }
.process span:last-child { color: var(--text-2); font-weight: 300; }

/* ---------- Services ---------- */
.services { display: grid; gap: 32px; }
.services figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.services figure img { width: 100%; height: clamp(260px, 40vw, 560px); object-fit: cover; filter: saturate(0.6); transition: scale 900ms var(--ease); }
.services figure:hover img { scale: 1.04; }
.caption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(19, 6, 15, 0.82); font-family: var(--mono); font-size: 0.625rem; color: var(--orchid); }
.svc { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.svc li { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.svc li div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc strong { font-family: var(--display); font-weight: 400; font-size: clamp(1rem, 0.8vw + 0.8rem, 1.3rem); text-transform: uppercase; }
.svc span { color: var(--text-2); font-weight: 300; }
@media (min-width: 960px) { .services { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(230, 180, 224, 0.05); font-family: var(--mono); font-size: 0.75rem; transition: border-color 200ms, color 200ms; }
.chips span:hover { border-color: var(--orange); color: var(--orange); }

.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table caption { text-align: left; padding-bottom: 12px; font-family: var(--mono); font-size: 0.6875rem; color: var(--orchid-2); }
.table th { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--orange); font-family: var(--mono); font-size: 0.625rem; font-weight: 500; color: var(--orchid-2); }
.table td { padding: 15px 8px 15px 0; border-bottom: 1px solid var(--line); }
.table tr { transition: background-color 200ms; }
.table tbody tr:hover { background: rgba(255, 90, 31, 0.06); }
.table td:first-child { font-weight: 500; }
.table .num { text-align: right; font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; }
.table .hide-sm { display: none; }
@media (min-width: 600px) { .table .hide-sm { display: table-cell; } }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photos figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.photos img { width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; filter: saturate(0.7); }

/* ---------- Quality ---------- */
.stamps { display: flex; flex-wrap: wrap; gap: 14px; }
.stamp { width: clamp(112px, 22vw, 156px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; transition: border-color 250ms, box-shadow 250ms; }
.stamp strong { font-family: var(--display); font-weight: 400; font-size: clamp(0.75rem, 1vw, 0.9rem); letter-spacing: 0.04em; }
.stamp span { font-family: var(--mono); font-size: 0.625rem; color: var(--orchid-2); }
.stamp--hot { border-color: var(--orange); box-shadow: 0 0 30px rgba(255, 90, 31, 0.2); }
.stamp--hot strong { color: var(--orange); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.kpis div { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); }
.kpis strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.1; }
.kpis span { font-family: var(--mono); font-size: 0.6875rem; color: var(--orchid-2); }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.docs li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.docs span { font-family: var(--mono); font-size: 0.6875rem; color: var(--orchid-2); }

/* ---------- Order tracking: a dashboard panel ---------- */
.paper { border-block: 1px solid var(--line); background-color: var(--surface); background-image: var(--grid); background-size: 28px 28px; color: var(--text); }
.paper .tag { color: var(--orange); }
.paper .lede { color: var(--text-2); }
.paper .container { padding-block: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .paper .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; } }
.tracker { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(19, 6, 15, 0.85); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.tracker form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 26px; }
.tracker label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 0.6875rem; color: var(--orchid-2); }
.tracker input { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 1rem; }
.tracker input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15); }
.tracker button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--orange); color: var(--bg); font-weight: 600; cursor: pointer; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stages li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; }
.stages i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.stages .done i { background: var(--orchid); border-color: var(--orchid); }
.stages .now i { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.25), 0 0 14px var(--orange); animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0.08), 0 0 22px var(--orange); } }
.stages .todo { color: var(--orchid-2); }
.stages time { font-family: var(--mono); font-size: 0.6875rem; }
.stages .now time { color: var(--orange); }
.tracker__note { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 0.875rem; color: var(--text-2); }
.tracker__msg { margin: 0 0 14px; font-family: var(--mono); font-size: 0.75rem; color: var(--orange); }
@media (min-width: 700px) {
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--line-2); }
  .stages li { position: relative; grid-template-columns: 1fr; gap: 4px; padding: 22px 10px 0 0; }
  .stages i { position: absolute; left: 0; top: -8px; background: var(--bg); }
}

/* ---------- Forms ---------- */
.rfq { display: grid; gap: 32px; }
@media (min-width: 960px) { .rfq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; } }
@media (max-width: 959px) { .rfq .form { order: -1; } }
.form { display: grid; gap: 14px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); }
.form__row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-family: var(--mono); font-size: 0.6875rem; color: var(--orchid); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(19, 6, 15, 0.7); color: var(--text); font-family: var(--sans); font-size: 1rem; transition: border-color 200ms, box-shadow 200ms; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15); }
.upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--orchid-2); border-radius: 10px; cursor: pointer; transition: border-color 200ms, background-color 200ms; }
.upload:hover { border-color: var(--orange); background: rgba(255, 90, 31, 0.05); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload svg { width: 24px; height: 24px; flex: none; color: var(--orange); }
.upload small { color: var(--orchid-2); }
.upload:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.form .btn { width: 100%; }
.form__hint { margin: 0; font-size: 0.8125rem; color: var(--orchid-2); }
.contacts { display: grid; gap: 12px; }
.contacts div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); }
.contacts dt { font-family: var(--mono); font-size: 0.6875rem; color: var(--orange); }
.contacts dd { margin: 6px 0 0; color: var(--text-2); }
.map { position: relative; min-height: 260px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) hue-rotate(250deg) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .container { padding-block: 52px calc(40px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; font-size: 0.875rem; color: var(--orchid-2); }
.site-footer h2 { margin: 0 0 12px; font-family: var(--mono); font-size: 0.625rem; font-weight: 500; color: var(--orange); }
.site-footer nav { display: grid; }
.site-footer nav a { padding: 8px 0; color: var(--text); text-decoration: none; transition: color 200ms, padding 250ms var(--ease); }
.site-footer nav a:hover { color: var(--orange); padding-left: 6px; }
.site-footer p { margin: 0 0 6px; }

/* ---------- Action bar ---------- */
.action-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; padding: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(28, 10, 25, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transform: translateY(150%); transition: transform 350ms var(--ease); }
.action-bar.is-visible { transform: none; }
.action-bar a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.action-bar a:last-child { background: var(--orange); color: var(--bg); font-weight: 600; }
body { padding-bottom: 84px; }
@media (min-width: 960px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Motion ---------- */
/* Reveal: fade and lift; the hidden state is never clipped */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity 800ms var(--ease), translate 800ms var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: none; }
.js .reveal.is-visible > * { animation: plotIn 700ms var(--ease) backwards; animation-delay: calc(var(--n, 0) * 80ms + 100ms); }
@keyframes plotIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
/* The grid slowly pans, like a machine bed under a gantry */
.blueprint { animation: gridPan 40s linear infinite; }
@keyframes gridPan { to { background-position: 280px 280px; } }
/* Headline scans in line by line from a hard edge */
.js .hero .h1 { animation: scanIn 1000ms var(--ease) backwards 100ms; }
.js .hero__copy > :not(.h1) { animation: plotIn 700ms var(--ease) backwards 500ms; }
@keyframes scanIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(-20% -5% -20% -5%); } }
.js .drawing { animation: bootIn 1100ms var(--ease) backwards 250ms; }
@keyframes bootIn { from { opacity: 0; scale: 0.97; } to { opacity: 1; scale: 1; } }
.ticker strong { font-variant-numeric: tabular-nums; }

@media (max-height: 760px) and (min-width: 960px) { :root { --section-y: clamp(64px, 8vw, 100px); } }
