:root {
  --aqua-light: #F0F8FB;
  --aqua-ice: #D0E8EE;
  --aqua-deep: #B8E5E8;
  --graphite-indigo: #0E1F3A;
  --deep-blue: #0A2540;
  --warm-graphite: #2A2F38;
  --metal-zinc: #6B7A8A;
  --emergency-orange: #FF6B35;
  --caution-yellow: #FFC800;
  --turquoise-flow: #1A8FA8;
  --soft-white: rgba(255, 255, 255, 0.94);
  --soft-shadow: 0 14px 36px rgba(10, 60, 92, 0.10);
  --hard-shadow-orange: 8px 8px 0px #FF6B35;
  --hard-shadow-yellow: 8px 8px 0px #FFC800;
  --hard-shadow-turquoise: 8px 8px 0px #1A8FA8;
  --grid-step: 56px;
  --font-sans: 'Inter', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  overflow-x: hidden;
}

html, body {
  font-family: var(--font-sans);
  color: var(--graphite-indigo);
  line-height: 1.75;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F8FB 50%, #E0EEF5 100%);
  background-attachment: fixed;
}

strong, p, span, li, h1, h2, h3, h4, h5, h6, a, button {
  color: inherit;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.pure-container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.tech-mono { font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.tech-stamp { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; }
.editorial-italic { font-family: var(--font-elegant); font-style: italic; font-weight: 500; }

.pressure-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(14,31,58,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,31,58,0.10) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
}

.corner-stamp {
  position: fixed; z-index: 5; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--graphite-indigo); opacity: 0.5; padding: 16px;
}
.corner-stamp.tl { top: 0; left: 0; }
.corner-stamp.tr { top: 0; right: 0; text-align: right; }
.corner-stamp.bl { bottom: 0; left: 0; }
.corner-stamp.br { bottom: 0; right: 0; text-align: right; }

.site-masthead {
  position: sticky; top: 0; z-index: 100;
  background: transparent; transition: background 0.4s ease;
  padding: 24px 0; height: 110px;
}
.site-masthead.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid rgba(14, 31, 58, 0.10);
}
.masthead-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.nav-cluster { display: flex; gap: 8px; align-items: center; }
.nav-cluster.left { justify-content: flex-end; }
.nav-cluster.right { justify-content: flex-start; }

.nav-link {
  font-family: var(--font-sans); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--graphite-indigo); font-weight: 500;
  padding: 10px 18px; border-radius: 100px; position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255, 107, 53, 0.14); transform: translateY(-1px);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 1.5px; background: var(--emergency-orange);
}
.nav-link::before {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%) scale(0);
  width: 5px; height: 5px; background: var(--turquoise-flow); border-radius: 50%;
  transition: transform 0.3s ease;
}
.nav-link:hover::before { transform: translateX(-50%) scale(1); }

.brand-emblem {
  display: flex; align-items: center; gap: 14px;
}
.brand-sigil {
  width: 52px; height: 52px; border-radius: 24px; position: relative;
  background: linear-gradient(135deg, #1A8FA8 0%, #FF6B35 100%);
  border: 1.5px solid var(--graphite-indigo);
  box-shadow: 4px 4px 0px var(--graphite-indigo), 0 0 24px rgba(26, 143, 168, 0.30);
  display: flex; align-items: center; justify-content: center;
  animation: sigil-tilt 6s ease-in-out infinite;
}
.brand-sigil::before {
  content: ''; position: absolute; inset: 3px; border-radius: 21px;
  border: 0.5px solid var(--turquoise-flow);
}
.brand-sigil svg { width: 32px; height: 32px; fill: none; stroke: white; stroke-width: 2; }

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-domain { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite-indigo); opacity: 0.85; font-weight: 600; }
.brand-name { font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--graphite-indigo); font-weight: 700; }

@keyframes sigil-tilt {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.burger-cluster {
  display: none; position: fixed; top: 12px; right: 16px; z-index: 200;
  width: 44px; height: 44px; border-radius: 100px;
  background: white; border: 1.5px solid var(--graphite-indigo);
  box-shadow: 3px 3px 0px var(--emergency-orange);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.burger-cluster span {
  display: block; width: 22px; height: 2.5px; background: var(--graphite-indigo);
  transition: all 0.3s ease; transform-origin: center;
}
.burger-cluster.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-cluster.open span:nth-child(2) { opacity: 0; }
.burger-cluster.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-mini-header {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: 64px; background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px); border-bottom: 1px solid rgba(14, 31, 58, 0.10);
  padding: 0 16px; align-items: center; justify-content: center; gap: 10px;
}
.mini-sigil { width: 40px; height: 40px; border-radius: 18px; background: linear-gradient(135deg, #1A8FA8 0%, #FF6B35 100%); border: 1.5px solid var(--graphite-indigo); display: flex; align-items: center; justify-content: center; }
.mini-sigil svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; }
.mini-text { display: flex; flex-direction: column; gap: 0; }
.mini-domain { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.mini-name { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 140; padding: 80px 32px 32px;
  transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: flex; align-items: center; gap: 16px; padding: 22px 0;
  font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; font-weight: 700;
  border-bottom: 1px solid rgba(14, 31, 58, 0.20);
}
.mobile-menu a .num { font-family: var(--font-mono); color: var(--emergency-orange); font-size: 14px; }

.section-pad { padding: 120px 0; position: relative; z-index: 2; }
.section-pad-tight { padding: 80px 0; position: relative; z-index: 2; }

.stamp-card {
  background: var(--soft-white); border: 1.5px solid rgba(14, 31, 58, 0.85);
  border-radius: 24px; padding: 32px; position: relative;
  box-shadow: var(--soft-shadow), var(--hard-shadow-orange);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stamp-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 22px 52px rgba(10, 60, 92, 0.16), 14px 14px 0px var(--emergency-orange);
  outline: 2px solid var(--turquoise-flow); outline-offset: 6px; z-index: 35;
}

.kicker-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 16px; background: var(--graphite-indigo); color: white;
  border-radius: 100px; border: 1.5px solid var(--graphite-indigo);
}

.h-display {
  font-size: clamp(48px, 9vw, 112px); font-weight: 800; line-height: 0.95;
  letter-spacing: -0.03em; color: var(--graphite-indigo);
}
.h-section {
  font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--graphite-indigo);
}

.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 20px 36px; background: linear-gradient(135deg, var(--emergency-orange), var(--caution-yellow));
  color: white; font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.04em; border: 1.5px solid var(--graphite-indigo);
  border-radius: 100px; box-shadow: 6px 6px 0px var(--graphite-indigo);
  transform: skewX(-2deg); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap; min-height: 44px;
}
.cta-primary:hover {
  transform: skewX(-2deg) translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--graphite-indigo), 0 0 0 4px rgba(26, 143, 168, 0.35);
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; background: var(--soft-white); color: var(--graphite-indigo);
  border: 1.5px solid var(--graphite-indigo); border-radius: 100px;
  font-weight: 600; font-size: 13px; text-transform: uppercase;
  box-shadow: 5px 5px 0px var(--turquoise-flow);
  transform: skewX(2deg); transition: all 0.3s ease;
  white-space: nowrap; min-height: 44px;
}
.cta-secondary:hover {
  background: var(--turquoise-flow); color: white;
  transform: skewX(2deg) translate(-2px, -2px);
}

.corner-dots { position: absolute; width: 6px; height: 6px; background: var(--emergency-orange); border-radius: 50%; opacity: 0.7; }
.corner-dots.tl { top: 16px; left: 16px; }
.corner-dots.tr { top: 16px; right: 16px; }
.corner-dots.bl { bottom: 16px; left: 16px; }
.corner-dots.br { bottom: 16px; right: 16px; }

.flow-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--graphite-indigo), transparent);
  opacity: 0.4; margin: 64px 0; position: relative;
}
.flow-divider::before, .flow-divider::after {
  content: ''; position: absolute; top: 50%; width: 8px; height: 8px;
  background: var(--turquoise-flow); border-radius: 50%; transform: translateY(-50%);
}
.flow-divider::before { left: 0; }
.flow-divider::after { right: 0; }

.cookie-consent-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 520px; margin: 0 auto;
  background: var(--graphite-indigo); color: white;
  padding: 20px 24px; border-radius: 24px;
  border: 1.5px solid var(--emergency-orange);
  box-shadow: 0 14px 36px rgba(10, 60, 92, 0.30), 6px 6px 0px var(--emergency-orange);
  z-index: 9999; display: flex; flex-direction: column; gap: 12px;
  font-size: 13px;
}
.cookie-consent-banner h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--caution-yellow); }
.cookie-consent-banner p { color: white; line-height: 1.6; }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-buttons button {
  padding: 10px 18px; border-radius: 100px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; min-height: 44px;
}
.cookie-accept { background: var(--emergency-orange); color: white; border: 1.5px solid white; }
.cookie-decline { background: transparent; color: white; border: 1.5px solid white; }
.cookie-buttons a { color: var(--caution-yellow); text-decoration: underline; align-self: center; font-size: 11px; }

.site-footer {
  background: var(--deep-blue); color: white; padding: 80px 0 32px;
  position: relative; z-index: 2; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.site-footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--caution-yellow); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14px; color: white; }
.site-footer a { color: white; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--caution-yellow); }
.footer-brand-block { max-width: 360px; }
.footer-brand-block p { color: white; line-height: 1.7; font-size: 14px; }
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  padding-top: 24px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-align: center; color: white;
}

.faq-item { border-bottom: 1px solid rgba(14, 31, 58, 0.20); }
.faq-q {
  width: 100%; padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; font-size: 18px; font-weight: 600;
  text-align: left; color: var(--graphite-indigo); cursor: pointer;
}
.faq-toggle {
  width: 36px; height: 36px; border-radius: 100px;
  background: var(--emergency-orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.5s ease;
  color: var(--warm-graphite); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 24px; }

.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

input, textarea, select {
  font-family: var(--font-sans); color: var(--graphite-indigo);
  background: white; border: 1.5px solid var(--graphite-indigo);
  border-radius: 16px; padding: 14px 18px; font-size: 15px; width: 100%;
  min-height: 44px;
}
input:focus, textarea:focus { outline: 2px solid var(--turquoise-flow); outline-offset: 2px; }
label { font-size: 13px; font-weight: 600; color: var(--graphite-indigo); display: block; margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }

.marquee-strip {
  display: flex; gap: 12px; padding: 16px 0;
  border-top: 1.5px solid var(--graphite-indigo); border-bottom: 1.5px solid var(--graphite-indigo);
  overflow: hidden; background: rgba(255,255,255,0.6);
}
.marquee-track { display: flex; gap: 12px; animation: marquee-scroll 30s linear infinite; }
.marquee-pill {
  padding: 10px 24px; background: white; border: 1.5px solid var(--graphite-indigo);
  border-radius: 100px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .nav-cluster { display: none; }
  .masthead-grid { grid-template-columns: 1fr; }
  .burger-cluster { display: flex; }
  .mobile-mini-header { display: flex; }
  .mobile-menu { display: block; }
  .site-masthead { display: none; }
  .section-pad { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .corner-stamp { display: none; }
  .h-display { font-size: clamp(40px, 11vw, 80px); }
  .pure-container { padding: 0 16px; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-grid > div:first-child { order: 2; }
  .hero-grid > div:last-child { order: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .services-grid-main { grid-template-columns: 1fr !important; }
  .services-grid-sub { grid-template-columns: 1fr !important; }
  .services-grid-sub .stamp-card { margin-bottom: 0; }
  .cta-grid { grid-template-columns: 1fr !important; text-align: center; gap: 16px !important; }
  .cta-grid > div:first-child { font-size: 60px; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .stamp-card { padding: 24px !important; }
  .hero-stats { margin-top: 32px; }
  .marquee-strip { overflow-x: hidden; }
  .pressure-grid { background-size: 28px 28px; }
  body { overflow-x: hidden; max-width: 100vw; }
  .cookie-consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-buttons { flex-direction: column; }
  .cookie-buttons button { width: 100%; }
}