:root {
  --bg: #0b0b0f;
  --bg-2: #141418;
  --bg-3: #1c1c1e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #0071e3;
  --accent-2: #2997ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --glass-3: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --sans: "Outfit", "SF Pro Display", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* legacy aliases used by older page markup */
  --navy: #0b0b0f;
  --navy-2: #1c1c1e;
  --gold: #0071e3;
  --gold-2: #2997ff;
  --parchment: #0b0b0f;
  --parchment-2: #141418;
  --paper: #1c1c1e;
  --line-gold: rgba(0, 113, 227, 0.35);
  --serif: var(--sans);
  --wa: #128c7e;
  --wa-2: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(0, 113, 227, 0.18), transparent 55%),
    radial-gradient(700px 420px at 88% 8%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #0b0b0f 0%, #121216 45%, #0b0b0f 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Frosted glass header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  background: rgba(11, 11, 15, 0.55);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 15, 0.78);
  border-bottom-color: var(--line-strong);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  min-height: 64px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}
.brand strong {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand strong em {
  color: var(--accent-2);
  font-style: normal;
}
.brand small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

/* Bespoke CTA garments */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 980px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 113, 227, 0.35);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--glass-2);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(16px);
}
.btn-dark:hover {
  background: var(--glass-3);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--glass); }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-wa { background: var(--wa-2); color: #073b2c; }
.btn-wa:hover { background: #1ebe5d; }

.btn-shop {
  position: relative;
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: 0;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 550;
}
.btn-shop::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-shop:hover::after { transform: scaleX(1); }

/* Hero — full-bleed, one composition */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0b0b0f;
  transform: scale(1.02);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(11, 11, 15, 0.35) 0%, rgba(11, 11, 15, 0.55) 45%, rgba(11, 11, 15, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 11, 15, 0.7) 0%, rgba(11, 11, 15, 0.2) 55%, rgba(11, 11, 15, 0.45) 100%);
  pointer-events: none;
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-poster { z-index: 0; }
.hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero.has-video .hero-media { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}
.hero-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.35), transparent 68%);
  filter: blur(10px);
  top: 18%;
  right: 8%;
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-18px, 24px, 0); }
}
.hero-inner {
  padding: 120px 0 80px;
  max-width: 720px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
.hero h1 span { color: var(--accent-2); }
.hero .lede,
.lede {
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(245, 245, 247, 0.78);
  max-width: 38ch;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

section { padding: 88px 0; }
.section-head { max-width: 560px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 600;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Glass portal tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cat-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 280px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.35s ease;
}
.cat-tile:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--line-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.cat-tile:hover img {
  transform: scale(1.06);
  opacity: 0.7;
}
.cat-tile .body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 15, 0.85) 55%);
}
.cat-tile .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.cat-tile h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.cat-tile p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.portal-link {
  color: var(--ink);
  font-weight: 550;
  font-size: 14px;
}

/* Channel glass strip */
.channel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.channel {
  border-radius: 22px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.channel:hover {
  transform: translateY(-3px);
  background: var(--glass-2);
  border-color: var(--line-strong);
}
.channel b {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.channel strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.channel p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step {
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.step b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.step h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: rgba(0, 0, 0, 0.25);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.foot-brand {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.foot-brand em { color: var(--accent-2); font-style: normal; }
.site-footer p { color: var(--muted); max-width: 36ch; }
.site-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--mono);
}
.site-footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--ink); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

/* Support chat glass */
.support-chat {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: min(380px, calc(100vw - 28px));
  height: min(520px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 24, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow);
  z-index: 60;
  overflow: hidden;
}
.support-chat[hidden] { display: none !important; }
.support-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.support-chat__head strong { display: block; font-size: 15px; }
.support-chat__head span { color: var(--dim); font-size: 12px; }
.support-chat__close {
  border: 0;
  background: var(--glass);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.support-chat__log {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-chat__compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.support-chat__compose input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  padding: 12px 14px;
  outline: none;
}
.support-chat__compose input:focus { border-color: var(--accent); }
.support-chat__foot {
  padding: 0 16px 14px;
  color: var(--dim);
  font-size: 12px;
}
.chat-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 24, 0.75);
  backdrop-filter: blur(18px);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-float:hover {
  transform: translateY(-2px);
  background: rgba(28, 28, 30, 0.9);
}
.chat-float span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Forms / shared page pieces */
.form-card, .card, .panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 24px;
}
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  padding: 12px 14px;
  margin-bottom: 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.page-hero {
  padding: 88px 0 40px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  font-weight: 600;
}
.page-hero p { color: var(--muted); max-width: 48ch; }

.reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { transform: translateY(0); }

@media (max-width: 920px) {
  .nav-links, .nav-actions { display: none; }
  .site-header.open .nav-links,
  .site-header.open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .site-header.open .nav {
    flex-wrap: wrap;
  }
  .menu-toggle { display: inline-flex; }
  .cat-grid, .channel-row, .steps, .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner { padding-top: 100px; }
  .cat-tile { min-height: 240px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero-actions .btn { width: 100%; }
}

/* Portal browse / products / forms */
.portal-header .brand small { color: var(--accent-2); }
.browse-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; background: var(--glass); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 28px; backdrop-filter: blur(16px);
}
.browse-bar input, .browse-bar select {
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); border-radius: 999px;
  padding: 11px 14px; min-width: 140px; color: var(--ink); margin: 0;
}
.browse-bar input { flex: 1; min-width: 200px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip.active, .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-media { aspect-ratio: 4/3; background: var(--bg-3); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.product h3 { font-size: 1.05rem; margin: 0; color: var(--ink); line-height: 1.3; }
.product p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.product-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px;
}
.tag {
  display: inline-flex; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--ink); font-size: 11px; font-weight: 700;
}
.price { font-weight: 700; color: var(--ink); }
.price.rfq { color: var(--accent-2); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.panel h3 { font-weight: 600; font-size: 1.45rem; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.02em; }
.panel .hint { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid label {
  display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.04);
  margin: 0;
}
.form-msg { margin-top: 12px; font-size: .92rem; color: var(--muted); min-height: 1.2em; }
.form-msg.ok { color: #34c759; }
.form-msg.err { color: #ff453a; }

.chat {
  display: flex; flex-direction: column; height: min(620px, 75vh);
  background: rgba(20,20,24,0.85); color: var(--ink); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); backdrop-filter: blur(20px);
}
.chat-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 1.25rem; letter-spacing: -0.02em; }
.chat-head span { font-size: .85rem; color: var(--muted); }
.chat-log { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: .95rem; white-space: pre-wrap;
}
.bubble.agent { background: var(--glass); align-self: flex-start; border: 1px solid var(--line); }
.bubble.user { background: var(--accent); color: #fff; align-self: flex-end; font-weight: 600; }
.chat-compose {
  display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: rgba(0,0,0,.15);
}
.chat-compose input {
  flex: 1; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: var(--ink); margin: 0;
}
.chat-compose input::placeholder { color: var(--dim); }
.empty {
  padding: 48px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 16px;
}
.chat-float.is-hidden { display: none; }

@media (max-width: 960px) {
  .product-grid, .split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .product-grid, .split, .form-grid, .check-grid { grid-template-columns: 1fr; }
}
