/* --------------------------------------------------------------------------
   電脳空間合同会社 / Stylesheet
   - Pure CSS (no external libs)
   - Visual language: HUD + Cyberpunk
   - AA contrast, transform/opacity-only motion, reduced-motion friendly
----------------------------------------------------------------------------- */

/* =Tokens ================================================================== */
:root {
  /* Brand palette */
  --bg-0:#060a14; --bg-1:#0b1426; --neon-cyan:#24d0ff; --neon-teal:#00f0ff;
  --neon-magenta:#ff3bd4; --line:#9fe8ff; --accent:#17ffd8; --text:#cfe8ff; --muted:#7aa0b7;

  /* Typo */
  --font: system-ui, "Segoe UI", "Helvetica Neue", Arial,
           "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --fs-xs: clamp(11px, 0.72vw, 13px);
  --fs-sm: clamp(12px, 0.85vw, 14px);
  --fs-md: clamp(14px, 1.2vw, 16px);
  --fs-lg: clamp(18px, 1.8vw, 24px);
  --fs-xl: clamp(24px, 3.2vw, 40px);
  --fs-xxl: clamp(28px, 5vw, 64px);

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22,0.61,0.36,1);
  --t-1: 150ms; --t-2: 250ms; --t-3: 400ms; --t-4: 500ms;

  /* Glow and outlines */
  --glow-color: var(--neon-teal);
  --glow-soft: 0 0 24px rgba(36,208,255,0.35);
  --glow-hard: 0 0 2px rgba(36,208,255,0.9);
  --panel: rgba(0,0,0,0.38);
  --panel-strong: rgba(0,0,0,0.55);
  --dash-s: 90; --dash-l: 240;

  /* Layout max width */
  --wrap: min(1120px, 92vw);
}

/* Responsive breakpoints */
@media (max-width: 1200px) { :root { --wrap: min(1040px, 94vw); } }
@media (max-width: 992px)  { :root { --wrap: min(920px, 94vw); } }
@media (max-width: 768px)  { :root { --wrap: min(680px, 95vw); } }
@media (max-width: 480px)  { :root { --wrap: 92vw; } }

/* =Base ==================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg-1);
  overflow-x: hidden;
}

/* Background layers: gradient + noise/scanlines */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  /* Spec: radial #060A14 -> #0B1426, center slightly brighter */
  background:
    radial-gradient(100% 70% at 50% 42%, rgba(36,208,255,0.10) 0%, rgba(36,208,255,0.0) 35%)
    ,radial-gradient(circle at 50% 45%, var(--bg-1) 0%, var(--bg-0) 65%);
}
body::after {
  /* Subtle noise + scanlines + soft overlay */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.035"/></svg>')
    ,linear-gradient(0deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02))
    ,repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 3px)
    ,repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 3px);
  mix-blend-mode: overlay;
}

.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; padding: 8px 12px; background: #000; color: #fff; z-index: 10000; }

/* =Utilities =============================================================== */
.panel { background: var(--panel); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(159,232,255,0.16); box-shadow: inset 0 0 12px rgba(0,0,0,0.4); }
@supports not (backdrop-filter: blur(6px)) { .panel { background: rgba(7,12,20,0.75); } }

.glow { box-shadow: var(--glow-hard), var(--glow-soft); }
.hud-bracket { position: relative; }
.hud-bracket::before, .hud-bracket::after { content: ""; position: absolute; border: 1px solid var(--line); width: 16px; height: 16px; }
.hud-bracket::before { left: -8px; top: -8px; border-right: none; border-bottom: none; box-shadow: 0 0 6px rgba(159,232,255,0.5); }
.hud-bracket::after  { right: -8px; bottom: -8px; border-left: none; border-top: none; box-shadow: 0 0 6px rgba(159,232,255,0.5); }

.grid-overlay::before { /* thin grid, spec #24D0FF @ 20% */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 1;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(36,208,255,0.20) 40px),
              repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(36,208,255,0.16) 40px);
}
.scanline::after { /* fine scanlines */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.12;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.0) 0, rgba(0,0,0,0.0) 2px, rgba(36,208,255,0.04) 3px, rgba(36,208,255,0.04) 3px);
  mix-blend-mode: screen;
}

.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =Header / Nav =========================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(4,8,16,0.55); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(159,232,255,0.14); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-4); }
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }

.site-nav .menu { list-style: none; display: flex; gap: clamp(12px, 2.4vw, 32px); margin: 0; padding: 0; }
.site-nav a { position: relative; color: var(--text); text-decoration: none; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--line), transparent); transition: right var(--t-2) var(--ease); }
.site-nav a:hover::after, .site-nav a:focus::after { right: 0; }

.menu-toggle { display: none; appearance: none; background: transparent; border: 1px solid rgba(159,232,255,0.3); color: var(--text); padding: 6px 10px; letter-spacing: 0.2em; text-transform: uppercase; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .site-nav { position: fixed; top: 64px; right: 0; bottom: 0; width: min(360px, 85vw); background: rgba(6,10,20,0.85); transform: translateX(100%); transition: transform var(--t-3) var(--ease); border-left: 1px solid rgba(159,232,255,0.14); }
  .site-nav .menu { flex-direction: column; gap: 0; padding: var(--s-6); }
  .site-nav .menu li { border-bottom: 1px solid rgba(159,232,255,0.08); }
  .site-nav .menu a { display: block; padding: 14px 2px; }
  body.nav-open .site-nav { transform: translateX(0); }
}

/* =Hero =================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; align-items: start; padding-top: 96px; padding-bottom: 64px; overflow: hidden; }
.hud { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hud-svg { width: min(84vmin, 640px); height: auto; opacity: 0.92; color: var(--line); }

.stroke-cyan { stroke: var(--neon-cyan); }
.stroke-teal { stroke: var(--neon-teal); }
.stroke-magenta { stroke: var(--neon-magenta); }
.ticks { stroke: rgba(159,232,255,0.4); }
.marker { stroke: currentColor; stroke-width: 2; color: var(--accent); stroke-linecap: square; stroke-linejoin: miter; }
.blip { fill: var(--accent); opacity: 0.9; }

@keyframes spin-cw { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes blink { 0%, 40%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.ring-a { transform-origin: 300px 300px; animation: spin-cw 60s linear infinite; }
.ring-b { transform-origin: 300px 300px; animation: spin-ccw 45s linear infinite; }
.ring-c .blip { animation: blink 2s linear infinite; }

.hero-brand { grid-row: 1; justify-self: center; z-index: 3; color: var(--text); font-weight: 800; letter-spacing: 0.06em; text-shadow: 0 0 0.5px rgba(255,255,255,0.2), 0 0 8px rgba(0,240,255,0.25); font-size: clamp(24px, 7.5vmin, 72px); }
.hero-content { grid-row: 3; position: relative; z-index: 3; max-width: 760px; padding: var(--s-6) var(--s-6); border: 1px solid rgba(159,232,255,0.2); background: var(--panel); }
.hero-title { font-size: var(--fs-xxl); margin: 0 0 var(--s-2); font-weight: 800; letter-spacing: 0.06em; }
.hero-en { margin: -6px 0 var(--s-2); color: var(--muted); font-size: var(--fs-sm); letter-spacing: 0.18em; text-transform: uppercase; }
.hero-sub { font-size: var(--fs-lg); color: var(--line); margin: 0 0 var(--s-3); text-transform: none; }
.hero-lead { font-size: var(--fs-md); color: var(--text); margin: 0 0 var(--s-5); line-height: 1.7; }

.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 0; border: 1px solid rgba(159,232,255,0.5); color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); will-change: transform; }
.btn.primary { background: linear-gradient(180deg, rgba(0,240,255,0.12), rgba(0,240,255,0.06)); border-color: rgba(0,240,255,0.6); }
.btn.ghost { background: transparent; }
.btn::before, .btn::after { /* sliding angle brackets */
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--line); opacity: 0; transition: transform var(--t-2) var(--ease), opacity var(--t-2) var(--ease);
}
.btn::before { left: -6px; top: -6px; border-right: none; border-bottom: none; transform: translateX(-6px); }
.btn::after  { right: -6px; bottom: -6px; border-left: none; border-top: none; transform: translateX(6px); }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { opacity: 1; transform: translateX(0); }
.btn:hover { transform: translate3d(0,-1px,0); }

.scroll-indicator { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; place-items: center; gap: 6px; opacity: 0.8; }
.scroll-indicator .tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--line); filter: drop-shadow(0 0 2px rgba(159,232,255,0.6)); }
.scroll-indicator .tri-1 { animation: pulse 1.4s var(--ease) infinite; }
.scroll-indicator .tri-2 { animation: pulse 1.4s var(--ease) infinite 0.35s; }
@keyframes pulse { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }

/* Corner widgets (absolute, subtle) */
.hud-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hud-decor .corner { position: absolute; width: clamp(90px, 14vmin, 140px); height: auto; color: var(--line); opacity: 0.9; }
.hud-decor .corner.tl { left: 1.8vmin; top: 1.8vmin; }
.hud-decor .corner.tr { right: 1.8vmin; top: 1.8vmin; }
.hud-decor .corner.bl { left: 1.8vmin; bottom: 1.8vmin; }
.hud-decor .corner.br { right: 1.8vmin; bottom: 1.8vmin; }

/* CTA: bracket outline (spec) */
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0.85em 1.6em; text-decoration: none; color: var(--text); letter-spacing: 0.06em; }
.cta-bracket { border: 1.5px solid var(--neon-teal); backdrop-filter: saturate(140%) blur(1px); -webkit-backdrop-filter: saturate(140%) blur(1px); }
.cta-bracket::before,
.cta-bracket::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--neon-teal); }
.cta-bracket::before { left: -6px; top: -6px; border-right: none; border-bottom: none; }
.cta-bracket::after  { right: -6px; bottom: -6px; border-left: none; border-top: none; }
.cta-bracket:hover { box-shadow: 0 0 24px rgba(0, 240, 255, 0.18); }

/* ===== Freepik-like variant ============================================= */
.hero.variant-fp { padding-top: 72px; }
.hero.variant-fp .fp-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(0, 240, 255, 0.12), rgba(0, 0, 0, 0) 45%),
    radial-gradient(140% 100% at 50% 40%, #0e1f3a 0%, var(--bg-1) 55%, var(--bg-0) 100%);
}
.hero.variant-fp .hero-brand,
.hero.variant-fp .hero-content,
.hero.variant-fp .scroll-indicator { display: none; }
.hero.variant-fp .hud-svg { width: min(86vmin, 760px); }
.hero.variant-fp .corner.tr { display: none; } /* use in-HUD TR widget; no JS needed */
.hero.variant-fp .ring-a,
.hero.variant-fp .ring-b,
.hero.variant-fp .ring-c { animation: none; } /* 静止感 */
.hero.variant-fp .ring-a { animation: spin-cw 90s linear infinite; } /* 1枚目のみゆっくり回転 */
.hero.variant-fp .rotate-cw { transform-origin: 300px 300px; animation: spin-cw 30s linear infinite; }
/* 4th ring (ring-d): CCW 10s */
.hero.variant-fp .ring-d { transform-origin: 300px 300px; animation: spin-ccw 10s linear infinite; }
.hero.variant-fp .ring-c { transform-origin: 300px 300px; animation: spin-cw 180s linear infinite; }
.hero.variant-fp .ring-e { transform-origin: 300px 300px; animation: spin-cw 180s linear infinite; }
.hero.variant-fp .ring-b .stroke-magenta { stroke: var(--neon-teal); } /* マゼンタ排除 */
.hero.variant-fp .fp-hud { filter: none; }
.hero.variant-fp .fp-brackets { filter: none; }
.hero.variant-fp .hud-svg * { stroke-linecap: square; stroke-linejoin: miter; }

/* =Seal font (HOT-Tenshokk-M) =========================================== */
@font-face {
  font-family: 'HOT-Tenshokk-M';
  src: url('./fonts/HOT-Tenshokk-M.otf') format('opentype');
  font-display: swap;
}
.seal { font-family: 'HOT-Tenshokk-M', 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif; font-weight: 500; letter-spacing: 0; }

/* 線の描画 + フェードイン（角フレーム/コネクタ用） */
.line-draw { opacity: 0; transition: opacity var(--t-3) var(--ease); }
.line-draw.in { opacity: 1; }
.line-draw path, .line-draw line, .line-draw rect { stroke-dasharray: var(--dash-l); stroke-dashoffset: var(--dash-l); transition: stroke-dashoffset 900ms var(--ease) 120ms, opacity 600ms var(--ease); }
.line-draw.in path, .line-draw.in line, .line-draw.in rect { stroke-dashoffset: 0; }
.line-draw polygon, .line-draw circle { transition: opacity 600ms var(--ease) 200ms; }
.line-draw:not(.in) polygon, .line-draw:not(.in) circle { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero.variant-fp .ring-a { animation: none; }
  .hero.variant-fp .rotate-cw { animation: none; }
  .hero.variant-fp .ring-d { animation: none; }
  .hero.variant-fp .ring-c { animation: none; }
  .hero.variant-fp .ring-e { animation: none; }
  .line-draw path, .line-draw line, .line-draw rect { transition: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .line-draw polygon, .line-draw circle { transition: none; }
}

/* =Sections ============================================================== */
.section { padding: clamp(64px, 12vw, 120px) 0; }
.section-head { width: var(--wrap); margin: 0 auto var(--s-6); padding: 0 var(--s-4); }
.section-title { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 var(--s-2); }
.section-sub { color: var(--muted); margin: 0; font-size: var(--fs-sm); }

/* Services */
.cards { width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.hud-card { position: relative; padding: var(--s-6); border: 1px solid rgba(159,232,255,0.2); background: var(--panel); overflow: hidden; transition: transform var(--t-3) var(--ease), box-shadow var(--t-3) var(--ease); will-change: transform; }
.hud-card.hud-bracket {}
.hud-card h3 { margin: 0 0 var(--s-3); letter-spacing: 0.06em; text-transform: uppercase; }
.hud-card p { margin: 0 0 var(--s-4); color: var(--text); line-height: 1.7; }
.hud-card .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hud-card .chips li { font-size: var(--fs-xs); padding: 4px 10px; border: 1px solid rgba(159,232,255,0.35); border-radius: 999px; background: rgba(0,240,255,0.06); box-shadow: inset 0 0 8px rgba(23,255,216,0.25); }
.hud-card:hover { transform: translate3d(0,-3px,0); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.hud-card::after { /* data strip line on hover */
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--neon-teal), transparent); transition: right var(--t-3) var(--ease);
}
.hud-card:hover::after { right: 0; }
.hud-card__decor { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(200px 80px at 20% 10%, rgba(255,59,212,0.12), transparent 70%),
                  linear-gradient(180deg, rgba(36,208,255,0.08), transparent 60%);
}
/* tiny inline SVG decorations (bars/circuit/dots) */
.hud-card__decor .card-deco { position: absolute; color: rgba(159,232,255,0.85); opacity: 0.22; filter: drop-shadow(0 0 2px rgba(159,232,255,0.5)); }
.hud-card__decor .deco-bars { right: 10px; top: 10px; width: 90px; height: 44px; }
.hud-card__decor .deco-circuit { left: 10px; bottom: 10px; width: 120px; height: 60px; }
.hud-card__decor .deco-dots { right: 12px; bottom: 10px; width: 80px; height: 48px; }

@media (max-width: 992px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cards { grid-template-columns: 1fr; } }

/* Cases */
.case-grid { width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.case-tile .monitor { position: relative; padding: var(--s-5); background: var(--panel); border: 1px solid rgba(159,232,255,0.2); box-shadow: inset 0 0 0 1px rgba(0,240,255,0.06); }
.case-tile .monitor::before, .case-tile .monitor::after { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(159,232,255,0.2); pointer-events: none; }
.case-tile h3 { margin: 0 0 var(--s-3); font-size: var(--fs-md); letter-spacing: 0.06em; text-transform: uppercase; }
.case-tile .metric { margin: 0 0 var(--s-4); color: var(--muted); }
.case-tile .bar { position: relative; height: 8px; background: rgba(159,232,255,0.15); overflow: hidden; }
.case-tile .bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta)); box-shadow: 0 0 8px rgba(36,208,255,0.6); transition: width var(--t-3) var(--ease); }
.case-tile:hover .bar::before { width: var(--bar-w); }
/* Uses --bar-w set by JS; avoids unsupported attr() */

@media (max-width: 992px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .case-grid { grid-template-columns: 1fr; } }

/* Approach */
.process-ring { position: relative; width: min(84vmin, 560px); height: min(84vmin, 560px); margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.process-ring .ring-core { position: absolute; width: 60%; height: 60%; border-radius: 50%; border: 1px solid rgba(159,232,255,0.3); box-shadow: inset 0 0 18px rgba(36,208,255,0.18); }
.process-ring .step { position: absolute; display: grid; place-items: center; gap: 6px; padding: 8px 10px; background: var(--panel-strong); border: 1px solid rgba(159,232,255,0.25); text-align: center; opacity: 0.35; transform: translate(-50%,-50%) scale(0.96); transition: transform var(--t-3) var(--ease), opacity var(--t-3) var(--ease), box-shadow var(--t-3) var(--ease); }
.process-ring .step svg { width: 20px; height: 20px; color: var(--accent); }
.process-ring .step span { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }
.process-ring .step.lit { opacity: 1; transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 2px rgba(159,232,255,0.8), 0 0 24px rgba(23,255,216,0.28); }

/* place 5 steps around a ring */
.process-ring [data-step="1"] { left: 50%; top: 0%; }
.process-ring [data-step="2"] { left: 88%; top: 28%; }
.process-ring [data-step="3"] { left: 72%; top: 86%; }
.process-ring [data-step="4"] { left: 28%; top: 86%; }
.process-ring [data-step="5"] { left: 12%; top: 28%; }

/* About */
.about-body { width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); display: grid; gap: var(--s-6); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.tags li { padding: 6px 12px; border: 1px solid rgba(159,232,255,0.28); background: rgba(0,240,255,0.06); border-radius: 999px; box-shadow: inset 0 0 10px rgba(36,208,255,0.2); font-size: var(--fs-xs); }
.stack-icons { display: flex; gap: 16px; align-items: center; opacity: 0.6; filter: drop-shadow(0 0 2px rgba(159,232,255,0.3)); }
.stack-icons .icon { width: 42px; height: 42px; color: var(--line); stroke-width: 1.5; }

/* Contact */
.contact-form { width: var(--wrap); margin: 0 auto; padding: var(--s-6); }
.contact-form .field { display: grid; gap: 8px; margin-bottom: var(--s-5); }
.contact-form label { font-size: var(--fs-sm); color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; color: var(--text); background: rgba(2,6,14,0.4); border: 1px solid rgba(159,232,255,0.28); padding: 10px 12px; outline: none; transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--line); box-shadow: 0 0 0 2px rgba(36,208,255,0.18); }
.contact-form .form-actions { display: flex; justify-content: flex-end; }

/* Toast */
.toast-area { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 2000; }
.toast { background: #02060e; color: var(--text); border: 1px solid rgba(159,232,255,0.35); padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: var(--fs-xs); min-width: 260px; box-shadow: 0 0 2px rgba(159,232,255,0.8), 0 0 24px rgba(23,255,216,0.22); opacity: 0; transform: translateY(6px); transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.toast.in { opacity: 1; transform: translateY(0); }
.toast .prompt { color: var(--neon-teal); }
.toast.success { border-color: rgba(23,255,216,0.6); }
.toast.error { border-color: rgba(255,59,212,0.6); }

/* Footer */
.site-footer { position: relative; border-top: 1px solid rgba(159,232,255,0.14); background:
  repeating-linear-gradient(135deg, rgba(36,208,255,0.06) 0 6px, transparent 6px 10px),
  rgba(4,8,16,0.7);
}
.footer-inner { width: var(--wrap); margin: 0 auto; padding: 24px var(--s-4); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-brand small { display: block; color: var(--muted); margin-top: 4px; font-size: var(--fs-xs); }
.foot-nav a { color: var(--text); text-decoration: none; margin-right: 16px; font-size: var(--fs-xs); }
.foot-social a { color: var(--text); margin-left: 12px; }
.foot-social svg { width: 22px; height: 22px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translate3d(0,8px,0); transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease); }
.reveal.in { opacity: 1; transform: translate3d(0,0,0); }

/* Accessibility: focus */
:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Fine-tuning headings */
h1, h2, h3 { letter-spacing: 0.04em; }
h2, h3 { text-transform: uppercase; }

/* ------------------------------------------------------------------------ */
