/* Cohesion Service — showroom theme: charcoal, white type, cool blue accent */
/* Fonts are self-hosted (no requests to Google from visitors' browsers). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../assets/fonts/sora-latin.woff2") format("woff2"); }
:root {
  --bg: #15171a;
  --bg-2: #1b1e22;
  --surface: #22262b;
  --surface-2: #2a2f35;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f6f8;
  --muted: #a9b1bb;
  --faint: #7c8590;
  --accent: #4aa8ff;
  --accent-2: #7cc2ff;
  --accent-ink: #06121f;
  --accent-glow: rgba(74, 168, 255, 0.22);
  --danger: #ff8a7a;
  --ok: #5fd3a0;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
html:not(.ready) body { opacity: 0; }
html.ready body { opacity: 1; transition: opacity 0.4s var(--ease); }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: "Sora", "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 34em; }
.eyebrow {
  color: var(--accent-2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font: 600 0.98rem/1.2 inherit; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 14px 40px -10px rgba(74, 168, 255, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--accent-2); border-color: var(--accent); }
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(21, 23, 26, 0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(21, 23, 26, 0.88); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.lang {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; font-size: 0.82rem; font-weight: 600;
}
.lang a, .lang span { padding: 6px 12px; border-radius: 999px; text-decoration: none; min-width: 40px; text-align: center; line-height: 1.2; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang span { background: var(--text); color: var(--bg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(74, 168, 255, 0.18), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-visual { position: relative; }
.pedestal {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #eef1f4 55%, #d9dee4 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 120px -30px var(--accent-glow);
}
.pedestal img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; will-change: transform; }
.hero-tag {
  position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column;
  background: rgba(21, 23, 26, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 0.82rem; line-height: 1.35;
}
.hero-tag span { color: var(--accent-2); }

/* ---------- Product ---------- */
.product { padding: clamp(64px, 9vw, 130px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.product-copy h2 { margin-bottom: 16px; }
.specs { margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec dt { color: var(--muted); font-size: 0.95rem; }
.spec dd { margin: 0; text-align: right; display: flex; flex-direction: column; }
.spec-value { font-family: "Sora", "Inter", sans-serif; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.spec-note { color: var(--faint); font-size: 0.82rem; }
.note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; padding-left: 14px; border-left: 2px solid var(--accent); }

.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #f2f4f6; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.slide-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }
.slide figcaption {
  position: absolute; left: 14px; top: 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(21, 23, 26, 0.78); color: var(--text); padding: 5px 10px; border-radius: 999px;
}
.nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.9);
  color: #15171a; cursor: pointer; opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.nav-btn.prev { left: 12px; } .nav-btn.next { right: 12px; }
.stage:hover .nav-btn, .nav-btn:focus-visible { opacity: 1; }
.nav-btn:hover { transform: translateY(-50%) scale(1.06); }
.zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; background: rgba(21, 23, 26, 0.78); color: var(--text); padding: 6px 10px; border-radius: 999px; pointer-events: none;
}
.dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: width 0.3s var(--ease), background 0.3s; }
.dots span.is-active { width: 22px; border-radius: 4px; background: var(--accent); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.thumb {
  padding: 0; border-radius: var(--radius-sm); overflow: hidden; background: #f2f4f6; cursor: pointer;
  border: 2px solid transparent; opacity: 0.6; transition: opacity 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.thumb img { aspect-ratio: 1 / 1; object-fit: cover; mix-blend-mode: multiply; }
.thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.thumb.is-active { opacity: 1; border-color: var(--accent); }

/* ---------- Quote ---------- */
.quote { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.quote::before {
  content: ""; position: absolute; left: -10%; top: 10%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(closest-side, rgba(74, 168, 255, 0.10), transparent 70%); pointer-events: none;
}
.quote-grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.quote-intro h2 { margin-bottom: 16px; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.quote-product {
  margin-top: 32px; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); max-width: 360px;
}
.quote-product img { width: 64px; height: 64px; border-radius: 10px; background: #f2f4f6; object-fit: contain; mix-blend-mode: normal; }
.quote-product div { display: flex; flex-direction: column; font-size: 0.92rem; }
.quote-product span { color: var(--muted); font-size: 0.85rem; }

.form-card {
  background: linear-gradient(180deg, var(--surface), #1f2327); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(20px, 3.5vw, 40px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-switch { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; border: 1px solid var(--line); }
.type-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.type-switch label { position: relative; cursor: pointer; }
.type-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-switch span { display: block; text-align: center; padding: 11px 12px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; color: var(--muted); transition: background 0.25s, color 0.25s; }
.type-switch input:checked + span { background: var(--accent); color: var(--accent-ink); }
.type-switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1bb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px;
}
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.field-msg { font-size: 0.82rem; color: var(--danger); min-height: 0; }
.field-msg:empty { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.qty-note { margin-top: -8px; font-size: 0.86rem; color: var(--accent-2); background: rgba(74, 168, 255, 0.08); border: 1px solid rgba(74, 168, 255, 0.25); padding: 10px 12px; border-radius: 10px; }
.form-error { color: var(--danger); font-size: 0.9rem; background: rgba(255, 138, 122, 0.08); border: 1px solid rgba(255, 138, 122, 0.3); padding: 10px 12px; border-radius: 10px; }
.privacy { font-size: 0.8rem; color: var(--faint); text-align: center; }
.hp { position: absolute; left: -9999px; }

.done { text-align: center; outline: none; animation: rise 0.5s var(--ease); }
.done-icon {
  width: 64px; height: 64px; margin: 4px auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(95, 211, 160, 0.12); color: var(--ok); border: 1px solid rgba(95, 211, 160, 0.35);
}
.done-icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
.done h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.done-body { color: var(--muted); max-width: 30em; margin: 0 auto; }
.preview-flag { margin: 16px auto 0; max-width: 32em; font-size: 0.82rem; color: #ffd27a; background: rgba(255, 210, 122, 0.08); border: 1px dashed rgba(255, 210, 122, 0.4); padding: 8px 12px; border-radius: 10px; }
.done h4 { margin: 28px 0 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-family: inherit; }
.done-summary { margin: 0 0 24px; text-align: left; border-top: 1px solid var(--line); }
.done-summary div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.done-summary dt { color: var(--muted); }
.done-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- About & contact ---------- */
.about { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px, 5vw, 80px); }
.clients { margin-top: 22px; color: var(--text); font-size: 1rem; max-width: 36em; }
.contact { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 28px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-decoration: none; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; overflow-wrap: anywhere;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card svg { width: 26px; height: 26px; color: var(--accent); }
.contact-card span { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: var(--faint); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 0.85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner img { height: 26px; width: auto; opacity: 0.8; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.privacy a { color: var(--muted); }
.privacy a:hover { color: var(--accent-2); }

/* Placeholders for details still to be confirmed */
.tbc {
  display: inline-block; font-weight: 500; font-size: 0.92em; color: #ffd27a;
  border: 1px dashed rgba(255, 210, 122, 0.5); background: rgba(255, 210, 122, 0.06);
  padding: 1px 8px; border-radius: 6px;
}
.contact-card.is-tbc { border-style: dashed; }
.contact-card.is-tbc:hover { transform: none; border-color: var(--line); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); }
.legal-wrap { max-width: 760px; }
.legal .back { margin: 0 0 28px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 8px; color: var(--text); }
.legal p { color: var(--muted); }
.legal a { color: var(--accent-2); }
.draft-note { display: inline-block; font-size: 0.85rem; color: #ffd27a !important; margin-bottom: 8px; }
.updated { margin-top: 40px; font-size: 0.82rem; color: var(--faint) !important; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 13, 0.96); opacity: 0; transition: opacity 0.2s; touch-action: none; }
.lightbox.open { opacity: 1; }
.lb-stage { position: absolute; inset: 64px 0 56px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; touch-action: none; }
.lb-stage img { max-width: min(92vw, 1000px); max-height: 100%; object-fit: contain; border-radius: 12px; background: #f2f4f6; transition: transform 0.25s var(--ease); user-select: none; -webkit-user-drag: none; }
.lb-stage img.zoomed { cursor: grab; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(34, 38, 43, 0.9); color: var(--text); cursor: pointer; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero-grid, .product-grid, .quote-grid, .about-grid { grid-template-columns: 1fr; }
  .gallery, .quote-intro { position: static; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand img { height: 28px; }
  .hero { padding-top: 22px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); margin-bottom: 12px; }
  .hero .lead { font-size: 1rem; }
  .cta-row { margin-top: 22px; flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .hero-visual { margin-top: 4px; }
  .pedestal { aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .thumbs { display: none; }
  .dots { display: flex; }
  .nav-btn { display: none; }
  .row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .spec-value { font-size: 1.15rem; }
  .lb-prev, .lb-next { display: none; }
}
