/* ==========================================================================
   Lumine Praxis — styles
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f5;
  --muted: #8a93a8;
  --blue: #3d7bff;
  --blue-soft: #6fa0ff;
  --gold: #f4b860;
  --gold-soft: #ffd79a;
  --grad: linear-gradient(90deg, var(--blue) 0%, var(--gold) 60%, var(--gold-soft) 100%);

  --f-display: "Jost", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.gold {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.h2 .serif { font-size: 1.08em; }

.section-head { margin-bottom: clamp(48px, 8vw, 96px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: #1a1206;
  box-shadow: 0 0 0 0 rgba(244, 184, 96, 0.0), 0 10px 40px -10px rgba(244, 184, 96, 0.55);
}
.btn--gold:hover { box-shadow: 0 0 0 6px rgba(244, 184, 96, 0.12), 0 14px 50px -8px rgba(244, 184, 96, 0.7); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.arrow {
  display: inline-block; width: 18px; height: 1px; background: currentColor; position: relative;
  transition: width 0.4s var(--ease);
}
.arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
a:hover > .arrow { width: 28px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
}
.loader__mark { width: 140px; height: 70px; }
.loader__name {
  font-family: var(--f-display); font-weight: 300; font-size: 14px;
  letter-spacing: 0.6em; padding-left: 0.6em;
}
.loader__name span { color: var(--gold); }
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.no-js .loader, .loader.is-done { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-soft); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(255, 215, 154, 0.45);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cursor__label {
  font-family: var(--f-display); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #1a1206; opacity: 0; transition: opacity 0.25s;
}
.cursor.is-hover .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--gold-soft); border-color: transparent; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--gold); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, 2%); } 80% { transform: translate(4%, 5%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__mark { width: 44px; height: 22px; display: block; }
.nav__mark svg, .loader__mark svg { width: 100%; height: 100%; overflow: visible; }
.nav__word { font-family: var(--f-display); font-size: 13px; font-weight: 400; letter-spacing: 0.38em; }
.nav__word span { color: var(--gold); }
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-family: var(--f-display); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 6px 0; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 11px 20px; font-size: 11px; }
.nav__toggle { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(5, 7, 13, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
.menu a { font-family: var(--f-display); font-weight: 300; font-size: clamp(36px, 10vw, 56px); line-height: 1.25; }
.menu a:hover { color: var(--gold); }
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 36px); pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 115%, rgba(244, 184, 96, 0.16) 0%, rgba(61, 123, 255, 0.05) 40%, transparent 70%), var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__horizon {
  position: absolute; left: -10%; right: -10%; bottom: -1px; height: 38%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
.hero__content { text-align: center; padding: 120px var(--gutter) 140px; max-width: 1200px; }
.hero__title {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(34px, 7.4vw, 116px);
  line-height: 1.02; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .split { display: inline-block; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__title .gold .char {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__rule { width: 110px; height: 1px; margin: 36px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__sub { max-width: 560px; margin: 0 auto 40px; color: #c3c9d6; font-size: clamp(16px, 1.4vw, 19px); text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__meta {
  position: absolute; bottom: 36px; font-family: var(--f-display); font-size: 11px; letter-spacing: 0.34em; color: var(--muted);
}
.hero__meta em { color: var(--gold); font-style: normal; padding: 0 6px; }
.hero__meta--left { left: var(--gutter); }
.hero__meta--right { right: var(--gutter); }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px;
  background: var(--gold); animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- About ---------- */
.about { padding: clamp(120px, 18vw, 220px) 0 clamp(80px, 12vw, 160px); position: relative; }
.about__etym {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 48px);
  padding: 28px 0 56px; margin-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); max-width: 820px;
}
.about__etym h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 6px; }
.about__etym div:last-child h3 { color: var(--gold); }
.about__etym p { margin: 0; color: var(--muted); font-size: 15px; }
.about__etym em { font-family: var(--f-serif); color: var(--text); font-size: 1.15em; }
.about__plus { font-family: var(--f-display); font-weight: 200; font-size: 40px; color: var(--muted); }
.manifesto {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 4.4vw, 64px); line-height: 1.18; letter-spacing: -0.005em;
  margin: 0; max-width: 1180px;
}
.manifesto .serif { font-size: 1.06em; }
.manifesto .w { opacity: 0.14; transition: none; }
.no-anim .manifesto .w { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 28px 0; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 48px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 200; font-size: clamp(28px, 4vw, 56px); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238, 240, 245, 0.85); }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(244, 184, 96, 0.7); }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Capabilities ---------- */
.caps { padding: clamp(100px, 14vw, 180px) 0; }
.caps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: 32px 28px 36px; min-height: 380px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(244, 184, 96, 0.14), rgba(61, 123, 255, 0.06) 40%, transparent 70%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 215, 154, 0.8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__num { position: absolute; top: 28px; left: 28px; font-family: var(--f-display); font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.card__icon { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1; }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; margin: 0 0 12px; transform: translateZ(30px); }
.card p { margin: 0; color: var(--muted); font-size: 15px; transform: translateZ(20px); }

/* ---------- Process ---------- */
.process { padding: 0 0 clamp(100px, 14vw, 180px); }
.process__wrap { position: relative; }
.process__line { width: 100%; height: 120px; display: block; margin-bottom: 40px; }
.process__line path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.process__track { stroke: var(--line); }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process__steps span { font-family: var(--f-serif); font-style: italic; color: var(--gold); font-size: 22px; }
.process__steps h4 { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; margin: 8px 0 10px; }
.process__steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 280px; }

/* ---------- Products ---------- */
.products { position: relative; }
.products__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.products__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); will-change: transform; }
.products__intro { flex: 0 0 min(460px, 80vw); padding-right: 40px; }
.products__intro .h2 { margin-bottom: 24px; }
.products__hint { margin-top: 36px; display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.product {
  flex: 0 0 min(560px, 82vw); height: min(640px, 72vh);
  border-radius: 24px; overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column;
  transition: border-color 0.5s var(--ease);
}
.product:hover { border-color: rgba(244, 184, 96, 0.4); }
.product__art { position: relative; flex: 1; overflow: hidden; }
.product__art span { position: absolute; border-radius: 50%; filter: blur(40px); mix-blend-mode: screen; transition: transform 1.2s var(--ease); }
.product__art--a span:nth-child(1) { width: 60%; height: 70%; left: 8%; top: 12%; background: var(--blue); opacity: 0.7; }
.product__art--a span:nth-child(2) { width: 50%; height: 60%; right: 6%; top: 24%; background: var(--gold); opacity: 0.6; }
.product__art--a span:nth-child(3) { width: 20%; height: 22%; left: 44%; top: 40%; background: #fff; opacity: 0.6; filter: blur(24px); }
.product__art--b span:nth-child(1) { width: 80%; height: 40%; left: 10%; top: 50%; background: var(--gold); opacity: 0.55; }
.product__art--b span:nth-child(2) { width: 40%; height: 50%; left: 5%; top: 5%; background: #5d4bff; opacity: 0.55; }
.product__art--b span:nth-child(3) { width: 36%; height: 36%; right: 8%; top: 12%; background: var(--blue); opacity: 0.6; }
.product__art--c span:nth-child(1) { width: 70%; height: 70%; left: 15%; top: 15%; background: conic-gradient(from 90deg, var(--blue), var(--gold), var(--blue)); opacity: 0.55; filter: blur(50px); }
.product__art--c span:nth-child(2) { width: 24%; height: 24%; left: 38%; top: 38%; background: var(--gold-soft); opacity: 0.7; filter: blur(20px); }
.product__art--c span:nth-child(3) { width: 30%; height: 30%; right: 4%; bottom: 4%; background: var(--blue-soft); opacity: 0.35; }
.product:hover .product__art span:nth-child(1) { transform: translate(6%, -4%) scale(1.08); }
.product:hover .product__art span:nth-child(2) { transform: translate(-8%, 6%) scale(1.1); }
.product:hover .product__art span:nth-child(3) { transform: scale(1.3); }
.product__art::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%);
}
.product__body { padding: 28px 32px 32px; border-top: 1px solid var(--line); background: rgba(5, 7, 13, 0.6); }
.product__tag {
  display: inline-block; font-family: var(--f-display); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(244, 184, 96, 0.35); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px;
}
.product h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 8px; letter-spacing: 0.04em; }
.product p { margin: 0; color: var(--muted); }

/* ---------- Horizon ---------- */
.horizon { position: relative; height: 110vh; overflow: hidden; display: grid; place-items: start center; padding-top: 22vh; text-align: center; }
.horizon__media { position: absolute; inset: 0; }
.horizon__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; transform: scale(1.2); will-change: transform; }
.horizon__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 44%, rgba(5, 7, 13, 0.55) 56%, rgba(5, 7, 13, 0) 70%, rgba(5, 7, 13, 0.2) 88%, var(--bg) 100%); }
.horizon__content { position: relative; padding: 0 var(--gutter); }
.horizon__quote {
  margin: 0; font-family: var(--f-display); font-weight: 200;
  font-size: clamp(30px, 5.4vw, 78px); line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Principles ---------- */
.principles { padding: clamp(100px, 14vw, 180px) 0; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist li {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1fr; align-items: baseline; gap: 24px;
  padding: 36px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.plist li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(61, 123, 255, 0.08), rgba(244, 184, 96, 0.1));
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.plist li:hover::before { transform: scaleY(1); }
.plist__n { font-family: var(--f-display); font-size: 12px; letter-spacing: 0.3em; color: var(--gold); }
.plist h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 3.4vw, 46px); margin: 0; letter-spacing: 0.01em; transition: transform 0.6s var(--ease); }
.plist li:hover h3 { transform: translateX(16px); }
.plist p { margin: 0; color: var(--muted); max-width: 420px; justify-self: end; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(140px, 20vw, 240px) 0; text-align: center; isolation: isolate; }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.8; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--f-display); font-weight: 200; font-size: clamp(34px, 6.4vw, 96px); line-height: 1.04; letter-spacing: 0.02em; margin: 0 0 56px; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: 0.06em;
  padding: 22px 40px; border-radius: 999px; border: 1px solid rgba(244, 184, 96, 0.4);
  background: rgba(5, 7, 13, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.contact__mail:hover { background: var(--gold); color: #1a1206; border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.footer__tag { margin: 0; color: var(--muted); font-family: var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; }
.footer__links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--gold); }
.footer__copy { grid-column: 1 / -1; margin: 0; color: #5b6377; font-size: 13px; }

/* ---------- Reveal defaults (JS enhances) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; position: relative; z-index: 60;
    background: none; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; padding: 0;
  }
  .nav__toggle span { display: block; width: 18px; height: 1px; background: var(--text); transition: transform 0.4s var(--ease); }
  .menu-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero__meta { display: none; }
  .hero__title { letter-spacing: 0.03em; }
  .plist li { grid-template-columns: 1fr; gap: 10px; }
  .plist p { justify-self: start; }
  .footer__inner { grid-template-columns: 1fr; }
  /* products become a vertical stack on small screens */
  .products__pin { height: auto; display: block; padding: 100px 0; }
  .products__track { flex-direction: column; align-items: stretch; transform: none !important; }
  .products__intro { flex: none; padding: 0 0 20px; }
  .products__hint { display: none; }
  .product { flex: none; height: 480px; }
}
@media (max-width: 600px) {
  .caps__grid, .process__steps { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .about__etym { grid-template-columns: 1fr; text-align: left; }
  .about__plus { display: none; }
  .process__line { height: 70px; }
  .contact__mail { padding: 18px 26px; }
  .horizon { height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; }
}
