/* =========================================================
   Onion Creek Security - site styles
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #090c11;
  --bg-2: #0d1218;
  --surface: #121921;
  --surface-2: #18212b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9eef4;
  --muted: #95a1b2;
  --dim: #5d6876;
  --accent: #f4a83a;
  --accent-hi: #ffbf5e;
  --accent-ink: #1a1206;
  --accent-soft: rgba(244, 168, 58, 0.12);
  --ok: #3ccf91;
  --danger: #ff6b6b;
  --radius: 16px;
  --maxw: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(80px, 12vw, 150px); overflow-x: clip; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 600px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn .i { width: 19px; height: 19px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(244, 168, 58, 0.7); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-hi); box-shadow: 0 16px 40px -14px rgba(244, 168, 58, 0.85); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(244, 168, 58, 0.6); background: var(--accent-soft); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffd696);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(9, 12, 17, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand__mark { width: 34px; height: 38px; color: var(--accent); transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name {
  display: flex; flex-direction: column;
  font: 700 1.38rem/0.92 var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.brand__name small {
  font: 600 0.62rem/1 var(--font-body);
  letter-spacing: 0.42em; color: var(--muted); margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-current { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav .nav__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; white-space: nowrap; }
.nav .nav__phone::after { display: none; }
.nav__phone .i { width: 18px; height: 18px; color: var(--accent); }
.nav .nav__phone:hover { color: var(--accent); }
@media (max-width: 1100px) { .nav { gap: 22px; } }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(9, 12, 17, 0.97);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav a:not(.btn) { font: 700 2.2rem/1 var(--font-display); text-transform: uppercase; color: var(--text); }
  .nav .btn { margin-top: 12px; }
  .nav-open { overflow: hidden; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would trap the fixed menu inside the header bar */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-bottom-color: transparent; transform: none; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(32px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 45%, #000 15%, transparent 70%);
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px circle at 78% 42%, rgba(244, 168, 58, 0.12), transparent 60%),
    linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero__rings {
  position: absolute; top: 50%; right: -16%;
  width: min(1050px, 110vw); aspect-ratio: 1;
  translate: 0 -50%;
  will-change: transform;
}
.hero__rings svg { width: 100%; height: 100%; overflow: visible; }
.hero__rings circle { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1.2; }
.hero__rings .dash { stroke: rgba(244, 168, 58, 0.4); stroke-width: 2; stroke-dasharray: 2 14; }
.hero__rings .dash--long { stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 70 34; }
.hero__rings .ring-accent { stroke: rgba(244, 168, 58, 0.45); stroke-width: 1.5; }
.hero__rings .dot { fill: var(--accent); stroke: none; }
.hero__rings .blip { fill: var(--accent); stroke: none; animation: blip 3.6s ease-in-out infinite; }
.hero__rings .crosshair { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }

.orbit { transform-origin: 500px 500px; animation: spin 70s linear infinite; }
.orbit--rev { animation-duration: 100s; animation-direction: reverse; }
.sweep {
  position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(244, 168, 58, 0.2) 356deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  animation: spin 7s linear infinite;
}

.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 660px; will-change: transform, opacity; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  animation: fadeUp 0.9s 0.1s var(--ease) both;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }

.hero__title { font-size: clamp(3.6rem, 10.5vw, 8.6rem); line-height: 0.86; margin: 26px 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.hero__title .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title em { font-style: normal; color: var(--accent); }

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; animation: fadeUp 0.9s 0.35s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: fadeUp 0.9s 0.5s var(--ease) both; }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; padding: 0; margin: 40px 0 0;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  animation: fadeUp 0.9s 0.65s var(--ease) both;
}
.hero__tags li { display: flex; align-items: center; gap: 22px; }
.hero__tags li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.console-wrap { position: absolute; right: clamp(16px, 4vw, 32px); top: 56%; will-change: transform; }
.console {
  width: 300px; padding: 18px;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(18, 25, 33, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85);
  font-size: 0.86rem;
  animation: fadeUp 1s 0.8s var(--ease) both;
}
.console__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font: 600 0.7rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.console__head time { color: var(--text); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.console ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.console li { display: flex; align-items: center; gap: 10px; }
.console li i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.console li b { margin-left: auto; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok); }
.console__scan { position: relative; height: 3px; margin-top: 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.console__scan span { position: absolute; inset: 0; width: 35%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 2.4s ease-in-out infinite; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 1; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }

@media (max-width: 1100px) { .console-wrap { display: none; } }
@media (max-width: 760px) {
  .hero__rings { right: -55%; top: 42%; width: 140vw; opacity: 0.55; }
  .hero__actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
}

/* ---------- Ticker ---------- */
.ticker { position: relative; padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker__row { overflow: hidden; white-space: nowrap; }
.ticker__row + .ticker__row { margin-top: 6px; }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__set { display: flex; align-items: center; flex: none; }
.ticker__set span { font: 700 clamp(2rem, 5vw, 3.9rem)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; padding-right: 0.5em; }
.ticker__set i { font-style: normal; color: var(--accent); font-size: clamp(0.9rem, 2vw, 1.4rem); padding-right: 0.9em; }
.ticker__row--outline span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }
.ticker__row--outline i { color: var(--dim); }

/* ---------- Layers (sticky scroll story) ---------- */
.layers-intro { padding-bottom: 0; }
.layers-intro .section-head { margin-bottom: 0; }

.layers { position: relative; }
.layers__sticky { padding-block: 60px; }
.js .layers { height: calc(100vh + 6 * 62vh); }
.js .layers__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding-block: 0;
  overflow: hidden;
}
.layers__sticky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px circle at 28% 50%, rgba(244, 168, 58, calc(0.04 + var(--p, 0) * 0.08)), transparent 65%);
}
.layers__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

.rings-wrap { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.rings-wrap .sweep { inset: 2%; }
.layer-svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.layer-svg .orbit-dash { fill: none; stroke: rgba(244, 168, 58, 0.35); stroke-width: 1.5; stroke-dasharray: 2 10; transform-origin: 200px 200px; animation: spin 50s linear infinite; }

.lr { transform-origin: 200px 200px; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.lr .band { fill: none; stroke: rgba(255, 255, 255, 0.035); stroke-width: 26; transition: stroke 0.6s; }
.lr .edge { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; transition: stroke 0.6s, stroke-width 0.6s; }
.lr text { font: 600 10px var(--font-body); letter-spacing: 0.12em; fill: var(--dim); text-anchor: middle; dominant-baseline: central; transition: fill 0.5s; }
.lr.is-active .band { stroke: rgba(244, 168, 58, 0.22); }
.lr.is-active .edge { stroke: var(--accent); stroke-width: 2; }
.lr.is-active text { fill: var(--accent-hi); }
.lr.is-active { filter: drop-shadow(0 0 16px rgba(244, 168, 58, 0.35)); }
.lr.is-peeled { opacity: 0.1; transform: scale(1.14); }

.lr--core .core-circle { fill: var(--surface-2); stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; transition: fill 0.6s, stroke 0.6s; }
.lr--core .core-icon { color: var(--muted); transition: color 0.6s; }
.lr--core.is-active .core-circle { fill: var(--accent); stroke: var(--accent); }
.lr--core.is-active .core-icon { color: var(--accent-ink); }
.lr--core.is-active { filter: drop-shadow(0 0 30px rgba(244, 168, 58, 0.6)); }

.layers__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.layers__count { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font: 700 1rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.layers__count b { font-size: 2.4rem; color: var(--accent); letter-spacing: 0.02em; min-width: 2.4ch; }
.layers__dots { display: flex; gap: 4px; }
.layers__dots button { position: relative; width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.layers__dots button::after { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.layers__dots button.is-on::after { background: var(--accent); }

.layer-item + .layer-item { margin-top: 48px; }
.js .layers__items { display: grid; }
.js .layer-item { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(34px); transition: opacity 0.5s, transform 0.7s var(--ease); pointer-events: none; }
.js .layer-item.is-past { transform: translateY(-34px); }
.js .layer-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.kicker { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.layer-item h3 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.layer-item p:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin-top: 18px; max-width: 490px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 0.82rem; }

@media (max-width: 900px) {
  .layers__grid { grid-template-columns: 1fr; gap: 22px; }
  .rings-wrap { width: min(300px, 62vw, 34svh); }
  .layers__meta { margin-bottom: 16px; padding-bottom: 12px; }
  .layers__count b { font-size: 1.9rem; }
  .layers__dots { gap: 2px; }
  .layers__dots button { width: 22px; }
  .layer-item h3 { font-size: 2.3rem; }
  .layer-item p:not(.kicker) { font-size: 0.97rem; margin-top: 12px; }
  .kicker { font-size: 0.75rem; margin-bottom: 8px; }
  .chips { margin-top: 14px; }
  .chips li { font-size: 0.75rem; padding: 4px 10px; }
}
@media (max-width: 900px) and (max-height: 720px) { .js .chips { display: none; } }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.cards > li { display: flex; }
.card {
  position: relative; flex: 1;
  padding: 32px 28px 30px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: translate 0.35s var(--ease), border-color 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(244, 168, 58, 0.13), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { translate: 0 -6px; border-color: rgba(244, 168, 58, 0.35); }
.card:hover::before { opacity: 1; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 26px; transition: transform 0.4s var(--ease); }
.card__icon .i { width: 27px; height: 27px; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__num { position: absolute; top: 26px; right: 26px; font: 700 0.95rem/1 var(--font-display); letter-spacing: 0.12em; color: var(--dim); }
.card h3 { font-size: 1.7rem; }
.card p { color: var(--muted); margin-top: 12px; font-size: 0.98rem; }
.card--feature { border-color: rgba(244, 168, 58, 0.35); background: radial-gradient(circle at 100% 0%, rgba(244, 168, 58, 0.14), transparent 60%), var(--surface); }
.card--feature .card__icon { background: var(--accent); color: var(--accent-ink); }
.card__link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 0.95rem; color: var(--accent); }
.card__link .i { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.card__link:hover .i { transform: translateX(4px); }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.process__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.process__intro { position: sticky; top: 130px; }
.process__intro .section-head { margin-bottom: 32px; }

.timeline { position: relative; padding-left: 64px; }
.timeline__track { position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(var(--accent), #ffd696); transform-origin: top; }
.js .timeline__fill { transform: scaleY(0); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-bottom: 70px; }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute; left: -64px; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--line-2);
  font: 700 1.1rem/1 var(--font-display); color: var(--muted);
  transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.step.is-on .step__dot, html:not(.js) .step__dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 7px rgba(244, 168, 58, 0.14); transform: scale(1.05); }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); padding-top: 4px; }
.step p { color: var(--muted); margin-top: 12px; max-width: 520px; }

@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__intro { position: static; }
}

/* ---------- Why us + stats ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 56px; }
.feature { display: flex; gap: 16px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.feature h3 { font-size: 1.45rem; }
.feature p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font: 700 clamp(3rem, 6vw, 4.8rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--accent); }
.stat__label { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; gap: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Upload call-to-action ---------- */
.upload-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 26px; border: 1px solid rgba(244, 168, 58, 0.28);
  background: radial-gradient(circle at 100% 0%, rgba(244, 168, 58, 0.16), transparent 55%), var(--surface);
  overflow: hidden;
}
.upload-panel h2 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); margin-top: 16px; }
.upload-panel__copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-top: 18px; max-width: 520px; }
.send-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; max-width: 520px; }
.send-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 0.92rem; font-weight: 500; }
.send-list .i { width: 20px; height: 20px; color: var(--accent); }
.upload-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.note .i { width: 18px; height: 18px; color: var(--danger); }

.drop-visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 300px; padding: 28px; text-align: center;
  border-radius: 20px; border: 2px dashed rgba(244, 168, 58, 0.45);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.drop-visual:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-4px); }
.drop-visual strong { font: 700 1.5rem/1 var(--font-display); text-transform: uppercase; margin-top: 8px; }
.drop-visual small { color: var(--muted); font-size: 0.88rem; }
.drop-visual__files { position: relative; width: 150px; height: 92px; }
.fcard {
  position: absolute; top: 6px; width: 72px; height: 84px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease), color 0.3s;
}
.fcard--img { left: 12px; transform: rotate(-10deg); }
.fcard--vid { right: 12px; transform: rotate(10deg); }
.drop-visual:hover .fcard--img { transform: rotate(-18deg) translate(-12px, -6px); color: var(--text); }
.drop-visual:hover .fcard--vid { transform: rotate(18deg) translate(12px, -6px); color: var(--text); }
.drop-visual__arrow {
  position: relative; z-index: 1; margin-top: -34px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 8px rgba(244, 168, 58, 0.15);
  animation: bob 2.4s ease-in-out infinite;
}

@media (max-width: 900px) {
  .upload-panel { grid-template-columns: 1fr; }
  .drop-visual { min-height: 240px; }
}
@media (max-width: 560px) { .send-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.contact-cards > li { display: flex; }
.contact-card {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 30px 28px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: translate 0.35s var(--ease), border-color 0.35s;
}
.contact-card:hover { translate: 0 -6px; border-color: rgba(244, 168, 58, 0.4); }
.contact-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.contact-card small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.contact-card strong { font: 700 clamp(1.7rem, 2.6vw, 2.2rem)/1.05 var(--font-display); text-transform: uppercase; }
.contact-card strong.is-email { font: 600 1.05rem/1.4 var(--font-body); text-transform: none; overflow-wrap: anywhere; padding-block: 6px; }
.contact-card__desc { color: var(--muted); font-size: 0.93rem; }
.contact-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 0.92rem; color: var(--accent); }
.contact-card__go .i { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.contact-card:hover .contact-card__go .i { transform: translateX(4px); }
.contact-card--primary { border-color: rgba(244, 168, 58, 0.4); background: radial-gradient(circle at 100% 0%, rgba(244, 168, 58, 0.2), transparent 60%), var(--surface); }
.contact-card--primary .ico { background: var(--accent); color: var(--accent-ink); }
.service-area { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.service-area .i { width: 20px; height: 20px; color: var(--accent); }

@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Form fields (upload page) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.field label b { color: var(--accent); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a1b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field option { background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(244, 168, 58, 0.15); }
.field [aria-invalid="true"] { border-color: var(--danger); }

@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: 0.95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Floating upload button ---------- */
.fab-upload {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  box-shadow: 0 14px 34px -10px rgba(244, 168, 58, 0.65), 0 0 0 6px rgba(244, 168, 58, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s var(--ease), background-color 0.2s;
}
.fab-upload.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-upload:hover { background: var(--accent-hi); }
.fab-upload .i { width: 20px; height: 20px; }

/* =========================================================
   Upload page
   ========================================================= */
.page-hero { position: relative; padding: calc(var(--header-h) + 56px) 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .hero__rings { width: min(760px, 120vw); right: -14%; opacity: 0.7; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin-top: 20px; animation: fadeUp 0.9s 0.1s var(--ease) both; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin-top: 20px; animation: fadeUp 0.9s 0.25s var(--ease) both; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 0.9rem; color: var(--muted); transition: color 0.2s, gap 0.2s; }
.back-link:hover { color: var(--text); gap: 12px; }
.back-link .i { width: 18px; height: 18px; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-block: 48px 100px; }
.panel { padding: clamp(20px, 3.5vw, 34px); border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.panel + .panel { margin-top: 18px; }
.panel__title { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; margin-bottom: 22px; }
.panel__title .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; flex: none; }

.preview-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(244, 168, 58, 0.35); background: var(--accent-soft); font-size: 0.9rem; }
.preview-note .i { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 44px 20px; text-align: center;
  border-radius: 16px; border: 2px dashed rgba(244, 168, 58, 0.42);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-dragover { transform: scale(1.012); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.dropzone.is-disabled { opacity: 0.5; pointer-events: none; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-icon { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 8px rgba(244, 168, 58, 0.14); margin-bottom: 10px; animation: bob 2.4s ease-in-out infinite; }
.dz-icon .i { width: 28px; height: 28px; }
.dz-title { font: 700 1.5rem/1 var(--font-display); text-transform: uppercase; }
.dz-sub { color: var(--muted); }
.dz-sub u { color: var(--accent); text-underline-offset: 3px; }
.dz-hint { color: var(--dim); font-size: 0.82rem; }

.file-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.file {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px 12px 10px 10px;
  border-radius: 13px; border: 1px solid var(--line); background: var(--bg-2);
  animation: fileIn 0.35s var(--ease) both;
}
.file.is-leaving { animation: fileOut 0.25s ease both; }
.file__thumb { position: relative; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.file__thumb img, .file__thumb video { width: 100%; height: 100%; object-fit: cover; }
.file__badge { position: absolute; inset: auto 4px 4px auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.7); color: #fff; }
.file__badge .i { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.file__name { font-weight: 500; font-size: 0.93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.file__status:empty { display: none; }
.file.is-uploading .file__status { color: var(--accent); }
.file.is-done .file__status { color: var(--ok); }
.file.is-error .file__status { color: var(--danger); }
.file__bar { height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.file__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
.file.is-done .file__bar span { background: var(--ok); }
.file.is-error .file__bar span { background: var(--danger); width: 100% !important; }
.file__remove { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.file__remove:hover { color: var(--text); border-color: var(--text); }
.file__remove .i { width: 18px; height: 18px; }
.file__remove[disabled] { opacity: 0.35; cursor: not-allowed; }

.file-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.overall { flex: 1; min-width: 200px; }
.overall__label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffd696); transition: width 0.2s linear; }

.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 11px; font-size: 0.92rem; }
.form-msg:empty { display: none; }
.form-msg.is-error { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffc4c4; }
.form-msg.is-info { background: var(--accent-soft); border: 1px solid rgba(244, 168, 58, 0.35); color: var(--text); }

.success { text-align: center; padding-block: 56px; }
.success:focus { outline: none; }
.success__icon { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(60, 207, 145, 0.12); color: var(--ok); box-shadow: 0 0 0 10px rgba(60, 207, 145, 0.06); }
.success__icon .i { width: 42px; height: 42px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s 0.2s var(--ease) forwards; }
.success h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.success > p { color: var(--muted); max-width: 460px; margin: 14px auto 0; }
.success strong { color: var(--text); }
.ref-label { font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 28px !important; }
.ref { display: inline-block; margin-top: 10px; padding: 10px 20px; border-radius: 12px; border: 1px dashed rgba(244, 168, 58, 0.5); font: 700 1.6rem/1 var(--font-display); letter-spacing: 0.08em; color: var(--accent); user-select: all; }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.tips { position: sticky; top: 100px; display: grid; gap: 18px; }
.tips .panel + .panel { margin-top: 0; }
.tips .panel__title { font-size: 1.35rem; margin-bottom: 18px; }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 107, 107, 0.32); background: rgba(255, 107, 107, 0.08); font-size: 0.92rem; color: #ffd0d0; }
.alert .i { color: var(--danger); margin-top: 1px; }
.alert b { display: block; color: #fff; font-weight: 600; }
.alert a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tip-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: 0.9rem; color: var(--muted); }
.tip-list .i { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.tip-list b { display: block; color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .upload-layout { grid-template-columns: 1fr; }
  .tips { position: static; }
}
@media (max-width: 520px) {
  .submit-row .btn { width: 100%; }
}

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 207, 145, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(60, 207, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 207, 145, 0); }
}
@keyframes blip { 0%, 100% { opacity: 0.1; } 50% { opacity: 1; } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes drip { 0% { transform: translateY(-16px); } 100% { transform: translateY(46px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes fileIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fileOut { to { opacity: 0; transform: translateX(20px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

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