/* ============================================================
   KNK Systems — Monochrome / Network / Bento system
   Strictly black / white / grey. No color.
   ============================================================ */

:root {
  --bg: #000000;
  --bg-2: #060606;
  --bg-3: #0a0a0a;

  --white: #ffffff;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #6f6f76;
  --text-4: #4a4a50;

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);

  --glass-bg: rgba(255, 255, 255, 0.048);
  --glass-bg-hover: rgba(255, 255, 255, 0.076);
  --glass-blur: 21.6px;
  --glass-border: rgba(255, 255, 255, 0.114);
  --glass-edge: rgba(255, 255, 255, 0.55);

  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(110px, 13vw, 210px);
  --radius: 22px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(255, 255, 255, 0.18); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }

/* ---- Grain ---- */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; mix-blend-mode: overlay;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 0.4s var(--ease);
}
body[data-grain="on"] .grain { opacity: 0.04; }

/* ---- Ambient ---- */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(255,255,255,0.05), transparent 70%),
    radial-gradient(40% 40% at 100% 30%, rgba(255,255,255,0.025), transparent 70%);
}

/* ============================================================ Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; z-index: 1; }
.section-pad { padding-block: var(--section-pad); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; color: var(--white); }
.h-display { font-size: clamp(40px, 7.8vw, 104px); font-weight: 600; }
.h-section { font-size: clamp(30px, 5vw, 58px); }
.h-card { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; }

.lead { font-size: clamp(16px, 1.9vw, 21px); color: var(--text-2); line-height: 1.55; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }

/* ============================================================ Glass */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.8);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-edge), transparent);
  opacity: 0.45; pointer-events: none;
}

/* ============================================================ Buttons */
.btn {
  --bx: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 var(--bx); height: 52px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn-primary { background: var(--white); color: #000; }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-1px) scale(1.015); box-shadow: 0 12px 40px -12px rgba(255,255,255,0.4), 0 0 30px -8px rgba(255,255,255,0.25); }
  .btn-primary:hover svg { transform: translateX(3px); }
  .btn-ghost:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(255,255,255,0.06); box-shadow: 0 0 30px -14px rgba(255,255,255,0.4); }
}

/* ============================================================ Nav (floating pill) */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 10px var(--gutter) 0;
}
.nav .container {
  max-width: var(--container); width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding: 0 12px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(8,8,8,0.74);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -24px rgba(0,0,0,0.9);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 30px; color: #fff; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .brand:hover .mark { transform: rotate(-6deg) scale(1.05); } }
.brand .word { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.brand { flex: none; }
.brand .word span { color: var(--text-3); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; white-space: nowrap; font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 999px; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
@media (hover: hover) { .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); } }
.nav-links a.active { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: rgba(255,255,255,0.5); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { height: 40px; font-size: 14px; --bx: 18px; }
@media (max-width: 880px) { .nav-links { display: none; } .nav-cta .btn-ghost { display: none; } }

/* ============================================================ Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding-top: clamp(128px, 17vh, 188px); overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  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(80% 70% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.35;
}
.hero-globe {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; right: -6%; width: min(82vw, 1020px); aspect-ratio: 1 / 1;
  transform: translateY(-50%);
}
.hero-globe canvas { width: 100%; height: 100%; }
.globe-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, transparent 58%, rgba(0,0,0,0.35) 80%, #000 100%),
    linear-gradient(90deg, #000 2%, transparent 38%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-2);
  padding: 9px 16px 9px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,0.025); backdrop-filter: blur(10px); margin-bottom: 30px;
}
.ping { position: relative; width: 7px; height: 7px; border-radius: 999px; background: #fff; flex: none; }
.ping::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
.hero h1 { margin-bottom: 26px; text-wrap: balance; max-width: 16ch; }
.hero .lead { max-width: 600px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-ticker { position: relative; z-index: 2; margin-top: auto; }
.ticker-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); padding-block: 26px; }
.tk { display: flex; flex-direction: column; gap: 3px; }
.tk-k { font-family: var(--font-mono); font-size: clamp(20px, 2.6vw, 28px); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk-k .suf, .tk-k .suffix { color: var(--text-3); }
.tk-l { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 980px) { .hero-globe { top: 8%; right: -30%; width: 120vw; transform: none; opacity: 0.6; } .globe-fade { background: radial-gradient(closest-side, transparent 55%, #000 95%); } }

/* ============================================================ Bento */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.tile { padding: 26px; display: flex; flex-direction: column; }
.tile-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile-b { grid-column: 3 / 5; grid-row: 1; }
.tile-c { grid-column: 3; grid-row: 2; }
.tile-d { grid-column: 4; grid-row: 2; }
.tile-e { grid-column: 1; grid-row: 3; }
.tile-f { grid-column: 2; grid-row: 3; }
.tile-g { grid-column: 3 / 5; grid-row: 3; }

.tile { transition: transform 0.45s var(--ease), background-color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); background-color: var(--glass-bg-hover); border-color: var(--line-2); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 55px -32px rgba(0,0,0,0.85), 0 0 36px -24px rgba(255,255,255,0.16); }
}
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.tile-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.tile-h { font-size: clamp(20px, 2.3vw, 27px); margin: 14px 0 10px; letter-spacing: -0.03em; }
.tile-p { font-size: 14px; color: var(--text-3); line-height: 1.55; max-width: 40ch; }

/* tile A chart */
.chart-wrap { flex: 1; margin: 14px -6px 0; min-height: 0; }
.chart-wrap canvas { width: 100%; height: 100%; }
.tile-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.big-stat { display: flex; align-items: baseline; gap: 8px; }
.bs-num { font-family: var(--font-mono); font-size: clamp(30px, 4vw, 46px); color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.bs-unit { font-family: var(--font-mono); font-size: 15px; color: var(--text-3); }
.bs-sub { font-size: 12.5px; color: var(--text-3); }
.big-stat.sm .bs-num { font-size: clamp(26px, 3vw, 34px); }

/* region row */
.region-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.region-row span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-2); padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); }

/* KPI tiles */
.tile-c, .tile-d { justify-content: flex-start; }
.kpi { display: flex; align-items: baseline; gap: 4px; margin-top: auto; }
.kpi-num { font-family: var(--font-mono); font-size: clamp(34px, 4.5vw, 52px); color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi-suf { font-family: var(--font-mono); font-size: 18px; color: var(--text-3); }
.kpi-pre { font-family: var(--font-mono); font-size: 26px; color: var(--text-3); }
.kpi-sub { font-size: 12px; color: var(--text-4); margin-top: 10px; }

/* DDoS shield */
.shield-viz { position: relative; flex: 1; display: grid; place-items: center; margin: 6px 0; min-height: 96px; }
.shield-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.shield-core { position: relative; z-index: 2; width: 12px; height: 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 16px 2px rgba(255,255,255,0.5); }
.shield-viz .ring { position: absolute; z-index: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); animation: shield-pulse 3s var(--ease) infinite; }
.shield-viz .r1 { width: 40px; height: 40px; animation-delay: 0s; }
.shield-viz .r2 { width: 40px; height: 40px; animation-delay: 1s; }
.shield-viz .r3 { width: 40px; height: 40px; animation-delay: 2s; }
@keyframes shield-pulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
.tile-foot-2 { margin-top: auto; }

/* node grid */
.node-grid { flex: 1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 7px; align-content: center; margin: 14px 0; }
.node-grid i { width: 100%; aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,0.08); }
.node-grid i.on { background: rgba(255,255,255,0.85); box-shadow: 0 0 8px rgba(255,255,255,0.4); animation: node-blink 4s ease-in-out infinite; }
@keyframes node-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* capacity bar */
.cap-bar { margin-top: auto; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.cap-fill { display: block; height: 100%; width: 62%; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.4), #fff); position: relative; }
.cap-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transform: translateX(-100%); animation: cap-shimmer 2.6s var(--ease) infinite; }
@keyframes cap-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(220%); } }
.cap-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 10px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile-a { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile-b { grid-column: 1 / 3; grid-row: 3; }
  .tile-c { grid-column: 1; grid-row: 4; }
  .tile-d { grid-column: 2; grid-row: 4; }
  .tile-e { grid-column: 1; grid-row: 5; }
  .tile-f { grid-column: 2; grid-row: 5; }
  .tile-g { grid-column: 1 / 3; grid-row: 6; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f, .tile-g { grid-column: 1; grid-row: auto; }
  .tile-a { min-height: 320px; }
}

/* ============================================================ About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-big { font-size: clamp(22px, 3vw, 34px); line-height: 1.32; letter-spacing: -0.025em; color: var(--text); font-weight: 500; }
.about-big em { font-style: normal; color: var(--text-3); }
.pillars { display: grid; gap: 14px; margin-top: 34px; }
.pillar { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius-sm); transition: background-color 0.4s var(--ease); }
.pillar .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); min-width: 34px; }
.pillar .t { font-size: 16px; font-weight: 500; color: #fff; }
.pillar .d { font-size: 14px; color: var(--text-3); }
.pillar .tx { display: flex; flex-direction: column; gap: 2px; }
@media (hover: hover) { .pillar:hover { background-color: var(--glass-bg-hover); } }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ============================================================ Projects (secondary, quiet) */
.proj-section { opacity: 0.92; }
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.proj-title { font-size: clamp(22px, 3vw, 32px); color: var(--text); letter-spacing: -0.03em; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; position: relative; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.tab { position: relative; font-size: 13.5px; font-weight: 500; color: var(--text-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: color 0.35s var(--ease); background: transparent; border: none; font-family: inherit; z-index: 1; }
.tab .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); margin-left: 7px; }
.tab[aria-selected="true"] { color: #000; }
.tab[aria-selected="true"] .count { color: rgba(0,0,0,0.45); }
.tab-pill { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); background: #fff; border-radius: 999px; box-shadow: 0 6px 20px -8px rgba(255,255,255,0.4); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }

.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pcard {
  padding: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column; gap: 10px; min-height: 132px;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pcard .pc-chip { align-self: flex-start; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; }
.pcard .pc-name { font-size: 16px; font-weight: 500; color: #fff; letter-spacing: -0.02em; }
.pc-body { margin-top: auto; display: flex; flex-direction: column; gap: 11px; }
.pc-head { display: flex; align-items: center; gap: 11px; }
.pc-logo { width: 34px; height: 34px; flex: none; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); background-size: cover; background-position: center; background-repeat: no-repeat; display: grid; place-items: center; overflow: hidden; }
.pc-logo-ph { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); text-transform: uppercase; }
.pcard .pc-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.pc-links { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--text-3); padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease); }
.pc-link svg { width: 12px; height: 12px; }
.pc-link.icon { padding: 6px; }
.pc-link.icon svg { width: 14px; height: 14px; }
@media (hover: hover) { .pc-link:hover { color: #fff; border-color: var(--line-2); background: rgba(255,255,255,0.07); } }

/* Redirect-confirm modal (nur Projekt-Links) */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal { width: min(440px, 100%); padding: 34px 32px; text-align: center; transform: scale(0.96) translateY(8px); transition: transform 0.3s var(--ease); }
.modal-overlay.show .modal { transform: none; }
.modal-ic { width: 50px; height: 50px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; margin: 0 auto 18px; background: rgba(255,255,255,0.03); }
.modal-ic svg { width: 22px; height: 22px; color: #fff; }
.modal h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.modal p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 16px; }
.modal-url { font-family: var(--font-mono); font-size: 13px; color: #fff; word-break: break-all; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); margin-bottom: 26px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; height: 48px; }
@media (hover: hover) { .pcard:hover { transform: translateY(-3px); background-color: rgba(255,255,255,0.045); border-color: var(--line-2); } .pcard:hover .pc-desc { color: var(--text-2); } }
.pcard.enter { opacity: 0; transform: translateY(14px); }
.pcard { transition: transform 0.45s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.5s var(--ease); }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proj-grid { grid-template-columns: 1fr; } }

/* ============================================================ Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
.svc { padding: clamp(30px, 3.5vw, 46px); display: flex; flex-direction: column; min-height: 260px; transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
@media (hover: hover) { .svc:hover { transform: translateY(-3px); background-color: var(--glass-bg-hover); border-color: var(--line-2); box-shadow: 0 0 42px -28px rgba(255,255,255,0.2); } }
.svc .ico { width: 44px; height: 44px; color: #fff; margin-bottom: auto; transition: transform 0.6s var(--ease); }
.svc .ico svg { width: 100%; height: 100%; stroke: #fff; }
@media (hover: hover) { .svc:hover .ico { transform: translateY(-2px) scale(1.04); } }
.svc h3 { margin-top: 28px; margin-bottom: 12px; }
.svc p { font-size: 15px; color: var(--text-3); line-height: 1.55; max-width: 42ch; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc .tags span { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================ Contact + Footer */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy .mail { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(18px, 2.4vw, 26px); color: #fff; font-weight: 500; letter-spacing: -0.02em; margin-top: 28px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: border-color 0.4s var(--ease); }
@media (hover: hover) { .contact-copy .mail:hover { border-color: #fff; } }
.form { padding: clamp(28px, 3.5vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.field input, .field textarea { width: 100%; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: #fff; font-family: inherit; font-size: 15px; transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--line-strong); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }
.form .btn { width: 100%; margin-top: 6px; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { font-size: 12px; color: var(--text-4); margin-top: 14px; text-align: center; }

.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 40px; position: relative; z-index: 1; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.footer .brand .mark { width: 34px; height: 34px; }
.footer-tag { color: var(--text-3); font-size: 14px; max-width: 280px; margin-top: 18px; line-height: 1.55; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; transition: color 0.3s var(--ease); }
@media (hover: hover) { .footer-col a:hover { color: #fff; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-bottom p, .footer-bottom a { font-size: 13px; color: var(--text-4); }
.footer-legal { display: flex; gap: 24px; }
@media (hover: hover) { .footer-legal a:hover { color: var(--text-2); } }

/* ============================================================ Marquee */
.marquee-band { position: relative; z-index: 1; padding-block: clamp(48px, 7vw, 80px); border-block: 1px solid var(--line); overflow: hidden; }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-4); margin-bottom: 28px; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee-scroll 46s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 52px); padding-right: clamp(28px, 4vw, 52px); }
.marquee-item .m-name { font-size: clamp(22px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; color: var(--text-2); white-space: nowrap; transition: color 0.4s var(--ease); }
.marquee-item .m-dot { width: 5px; height: 5px; border-radius: 999px; background: var(--text-4); flex: none; }
@media (hover: hover) { .marquee-item .m-name:hover { color: #fff; } }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================ Reveal */
.reveal { transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
.reveal.pre { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pre, .pcard.enter { opacity: 1 !important; transform: none !important; transition: none; }
  .ambient, .ping::after, .shield-viz .ring, .node-grid i.on, .cap-fill::after { animation: none !important; }
}

/* ============================================================ Continuous motion */
@keyframes ambient-drift { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-1%, 0.8%, 0); } 100% { transform: translate3d(0,0,0); } }
.ambient { animation: ambient-drift 40s ease-in-out infinite; will-change: transform; }

/* ============================================================ Legal & form pages */
.legal-main { padding-top: 132px; padding-bottom: clamp(80px, 10vw, 140px); position: relative; z-index: 1; }
.legal-hero { margin-bottom: clamp(40px, 6vw, 64px); }
.legal-hero .back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 26px; transition: color 0.3s var(--ease); }
.legal-hero .back svg { width: 14px; height: 14px; }
@media (hover: hover) { .legal-hero .back:hover { color: #fff; } }
.legal-hero h1 { font-size: clamp(34px, 5.5vw, 62px); margin-bottom: 18px; letter-spacing: -0.035em; }
.legal-hero .sub { font-size: 15px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.02em; }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc .toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); margin-bottom: 12px; }
.legal-toc a { font-size: 13.5px; color: var(--text-3); padding: 7px 12px; border-radius: 9px; border-left: 1px solid transparent; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
@media (hover: hover) { .legal-toc a:hover { color: var(--text); background: rgba(255,255,255,0.03); } }
.legal-toc a.active { color: #fff; background: rgba(255,255,255,0.05); }

.legal-body { max-width: 760px; }
.legal-body section { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.legal-body section:first-child { border-top: none; padding-top: 0; }
.legal-body h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 20px; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 14px; }
.legal-body h2 .n { font-family: var(--font-mono); font-size: 14px; color: var(--text-4); font-weight: 400; }
.legal-body h3 { font-size: 17px; color: #fff; margin: 26px 0 10px; }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 14px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body li::marker { color: var(--text-4); }
.legal-body a.inline { color: #fff; border-bottom: 1px solid var(--line-2); transition: border-color 0.3s var(--ease); }
@media (hover: hover) { .legal-body a.inline:hover { border-color: #fff; } }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body .ph { color: #fff; background: rgba(255,255,255,0.06); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 1px 7px; font-family: var(--font-mono); font-size: 13px; }
.legal-body .kw { color: var(--text); font-family: var(--font-mono); font-size: 13.5px; background: rgba(255,255,255,0.05); border-radius: 5px; padding: 1px 6px; }
.legal-body .data-row { display: grid; grid-template-columns: 160px 1fr; gap: 6px 20px; margin-top: 16px; }
.legal-body .data-row dt { font-size: 14px; color: var(--text-4); font-family: var(--font-mono); }
.legal-body .data-row dd { font-size: 15px; color: var(--text); }
.legal-note { margin-top: 32px; padding: 20px 22px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); line-height: 1.6; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 4px; }
.contact-card { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.02); transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
@media (hover: hover) { .contact-card:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); } }
.contact-card .cc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }
.contact-card .cc-mail { display: block; font-size: 16px; color: #fff; margin-top: 8px; font-weight: 500; letter-spacing: -0.01em; }
.contact-card .cc-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 620px) { .contact-cards { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .legal-toc .toc-label { width: 100%; }
  .legal-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
}

/* ---- Abuse form ---- */
.abuse-form { display: flex; flex-direction: column; gap: 0; }
.form-step { padding-block: clamp(26px, 4vw, 40px); border-top: 1px solid var(--line); }
.form-step:first-child { border-top: none; padding-top: 0; }
.form-step > .step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.form-step .step-head .n { font-family: var(--font-mono); font-size: 13px; color: var(--text-4); }
.form-step .step-head h2 { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.03em; }
.form-step .step-desc { font-size: 14.5px; color: var(--text-3); margin: -10px 0 22px; line-height: 1.6; max-width: 60ch; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat { position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.02); cursor: pointer; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.cat input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cat .dot { width: 18px; height: 18px; border-radius: 999px; border: 1px solid var(--line-strong); flex: none; margin-top: 2px; display: grid; place-items: center; transition: border-color 0.3s var(--ease); }
.cat .dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #fff; transform: scale(0); transition: transform 0.25s var(--ease); }
.cat .ct { display: block; font-size: 14.5px; color: var(--text); font-weight: 500; }
.cat .cd { display: block; font-size: 12.5px; color: var(--text-4); margin-top: 3px; line-height: 1.45; }
@media (hover: hover) { .cat:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); } }
.cat:has(input:checked) { border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.cat:has(input:checked) .dot { border-color: #fff; }
.cat:has(input:checked) .dot::after { transform: scale(1); }
.cat.urgent:has(input:checked) { border-color: rgba(255,255,255,0.5); }
.cat .cd.warn { color: var(--text-2); }
@media (max-width: 620px) { .cat-grid { grid-template-columns: 1fr; } }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { margin-bottom: 16px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.f-field label .req { color: var(--text); }
.f-field input, .f-field textarea, .f-field select { width: 100%; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; color: #fff; font-family: inherit; font-size: 15px; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease); resize: vertical; }
.f-field input::placeholder, .f-field textarea::placeholder { color: var(--text-4); }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { outline: none; border-color: var(--line-strong); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }
.f-field .hint { font-size: 12px; color: var(--text-4); margin-top: 7px; line-height: 1.5; }
@media (max-width: 620px) { .f-row { grid-template-columns: 1fr; } }

/* ---- Custom dropdown (cselect) ---- */
.cselect { position: relative; }
.cselect-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; color: #fff; font-family: inherit; font-size: 15px; text-align: left; cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (hover: hover) { .cselect-btn:hover { border-color: var(--line-2); } }
.cselect.open .cselect-btn, .cselect-btn:focus-visible {
  outline: none; border-color: var(--line-strong); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.cselect-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-value.placeholder { color: var(--text-4); }
.cselect-chev { width: 16px; height: 16px; color: var(--text-3); flex: none; transition: transform 0.3s var(--ease); }
.cselect.open .cselect-chev { transform: rotate(180deg); }

.cselect-menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  list-style: none; margin: 0; padding: 6px;
  background: rgba(13,13,13,0.94); border: 1px solid var(--line-2); border-radius: 14px;
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -22px rgba(0,0,0,0.9);
  opacity: 0; transform: translateY(-6px) scale(0.99); pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  max-height: 300px; overflow-y: auto;
}
.cselect.open .cselect-menu { opacity: 1; transform: none; pointer-events: auto; }
.cselect-menu::-webkit-scrollbar { width: 8px; }
.cselect-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.cselect-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.cselect-opt.active, .cselect-opt.selected { color: #fff; }
.cselect-opt.active { background: rgba(255,255,255,0.07); }
.cselect-opt .ck { width: 15px; height: 15px; color: #fff; opacity: 0; flex: none; transition: opacity 0.18s var(--ease); }
.cselect-opt.selected .ck { opacity: 1; }

.f-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; cursor: pointer; }
.f-check input { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); flex: none; margin-top: 1px; cursor: pointer; position: relative; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.f-check input:checked { background: #fff; border-color: #fff; }
.f-check input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.f-check span { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.f-submit { margin-top: 26px; }
.f-submit .btn { width: 100%; }
.form-success { display: none; padding: 40px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }
.form-success.show { display: block; }
.form-success .ok { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .ok svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--text-3); max-width: 44ch; margin: 0 auto; }

/* ---- Cookie / info notice ---- */
.cookie-notice {
  position: fixed; z-index: 80; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px);
  width: min(640px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(12,12,12,0.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -24px rgba(0,0,0,0.8);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cookie-notice.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cookie-notice p { font-size: 13px; color: var(--text-2); line-height: 1.55; flex: 1 1 280px; }
.cookie-notice a { color: #fff; border-bottom: 1px solid var(--line-2); }
.cookie-notice .ck-actions { display: flex; gap: 10px; }
.cookie-notice .btn { height: 40px; --bx: 18px; font-size: 13.5px; }
@media (max-width: 520px) { .cookie-notice { flex-direction: column; align-items: stretch; } .cookie-notice .ck-actions .btn { width: 100%; } }

