@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cabinet+Grotesk:wght@400;500;700;800;900&display=swap');

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

:root {
  --paper: #f5f0e8;
  --paper2: #ede8dc;
  --ink: #1a1a2e;
  --ink-light: #2d2d4a;
  --muted: #8a8070;
  --amber: #c8841a;
  --amber-light: #f0a832;
  --rust: #c04a1a;
  --teal: #1a7a6e;
  --mono: 'Courier New', monospace;
  --display: 'Cabinet Grotesk', sans-serif;
  --hand: 'Caveat', cursive;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* CURSOR */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--amber); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s; mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid var(--amber); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease; mix-blend-mode: multiply;
}

/* CIRCUIT CANVAS */
#circuit-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; padding: 18px 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,240,232,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26,26,46,0.08);
}
.nav-logo {
  font-family: var(--display); font-size: 20px; font-weight: 900;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.nav-logo::after { content: '.'; color: var(--amber); }
.nav-logo .sub {
  font-family: var(--hand); font-size: 14px; font-weight: 400;
  color: var(--teal); margin-left: 6px; letter-spacing: 0;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--hand); font-size: 16px;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-tag {
  font-family: var(--hand); font-size: 14px; color: var(--teal);
  display: flex; align-items: center; gap: 6px;
}
.nav-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: blink 2s ease infinite;
}
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 22px; }

/* SECTION */
.section { position: relative; padding: 100px 52px; z-index: 10; }
.section-label {
  font-family: var(--hand); font-size: 16px; color: var(--teal);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--teal); }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.left { transform: translateX(-28px); }
.reveal.right { transform: translateX(28px); }
.reveal.visible { opacity: 1; transform: none; }

/* FLOAT OBJECTS */
.float-obj {
  position: absolute; pointer-events: none;
  user-select: none; z-index: 2;
}
.float-obj svg { filter: drop-shadow(2px 4px 8px rgba(26,26,46,0.12)); }

/* BUTTONS */
.btn-primary {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  padding: 14px 32px; background: var(--ink); color: var(--paper);
  border: none; border-radius: 4px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.02em;
  display: inline-block;
}
.btn-primary:hover { background: var(--amber); transform: translateY(-1px); }
.btn-ghost {
  font-family: var(--hand); font-size: 17px; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 8px; transition: gap 0.2s;
}
.btn-ghost:hover { gap: 14px; }
.btn-teal {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  padding: 14px 32px; background: var(--teal); color: var(--paper);
  border: none; border-radius: 4px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.02em;
  display: inline-block;
}
.btn-teal:hover { background: var(--ink); transform: translateY(-1px); }

/* FOOTER */
footer {
  background: var(--ink); padding: 28px 52px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 10;
}
.footer-logo { font-family: var(--display); font-size: 16px; font-weight: 900; color: var(--paper); letter-spacing: -0.02em; }
.footer-logo span { color: var(--amber); }
.footer-copy { font-size: 11px; color: rgba(245,240,232,0.3); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-family: var(--hand); font-size: 15px; color: rgba(245,240,232,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }

/* SCHEMA BOX */
.schema-box {
  border: 1.5px solid rgba(26,26,46,0.15); border-radius: 4px;
  padding: 28px; background: var(--paper); position: relative;
  font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 2;
}
.schema-box::before {
  content: attr(data-label); position: absolute; top: -10px; left: 16px;
  background: var(--paper2); padding: 0 8px;
  font-family: var(--hand); font-size: 14px; color: var(--teal);
}
.schema-box .key { color: var(--teal); }
.schema-box .val { color: var(--amber); }
.schema-box .val-green { color: var(--teal); }
.schema-box .bracket { color: var(--ink); opacity: 0.4; }

/* CHIPS */
.chip {
  font-size: 11px; padding: 3px 10px;
  border: 1px solid rgba(26,26,46,0.15); border-radius: 20px;
  color: var(--muted); letter-spacing: 0.04em;
}

/* ANIMATIONS */
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@keyframes float1 { 0%,100% { transform:translateY(0) rotate(0deg); } 33% { transform:translateY(-18px) rotate(3deg); } 66% { transform:translateY(-8px) rotate(-2deg); } }
@keyframes float2 { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-22px) rotate(-4deg); } }
@keyframes float3 { 0%,100% { transform:translateY(0) rotate(0deg); } 40% { transform:translateY(-12px) rotate(5deg); } 80% { transform:translateY(-20px) rotate(-1deg); } }
@keyframes fadeIn { to { opacity:1; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

/* ===========================================================
   SHARED VISUAL LANGUAGE — used by homepage + all subpages
   =========================================================== */

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 52px 100px; overflow: hidden; z-index: 10;
}
.hero-eyebrow {
  font-family: var(--hand); font-size: 20px; color: var(--teal);
  margin-bottom: 16px; opacity: 0; animation: fadeUp 0.6s ease forwards 0.3s;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(48px, 7.5vw, 100px);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; max-width: 920px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); font-style: italic; }
.hero h1 .amber { color: var(--amber); }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero-desc {
  margin-top: 36px; max-width: 600px; color: var(--muted); font-size: 14px;
  line-height: 1.9; border-left: 2px solid var(--amber); padding-left: 18px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s;
}
.hero-desc strong { color: var(--ink); font-weight: 600; }
.hero-cta {
  margin-top: 44px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1s;
}
.hero-eyebrow, .hero h1, .hero-desc, .chip-row, .chip-hint, .hero-cta {
  position: relative; z-index: 5;
}
.annotation {
  position: absolute; font-family: var(--hand); font-size: 15px;
  color: var(--rust); pointer-events: none; z-index: 20;
}

/* PRODUCT / SERVICE / ENVIRONMENT CARDS */
.products-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 64px; }
.product-card {
  border: 1.5px solid rgba(26,26,46,0.12); border-radius: 6px; padding: 48px;
  background: var(--paper); position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none; color: inherit; display: block;
}
.product-card:hover { transform: translateY(-4px) rotate(-0.3deg); box-shadow: 4px 8px 32px rgba(26,26,46,0.1); }
.product-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.product-card:hover::after { transform: scaleX(1); }
.product-card:nth-child(2)::after { background: var(--teal); }
.product-card:nth-child(3)::after { background: var(--teal); }
.product-card:nth-child(3) .product-link { color: var(--teal); }
.product-stamp {
  position: absolute; top: 24px; right: 24px; font-family: var(--hand); font-size: 13px;
  color: var(--muted); border: 1px solid var(--muted); padding: 3px 10px;
  border-radius: 20px; opacity: 0.5; transform: rotate(2deg);
}
.product-n { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.product-illustration { margin-bottom: 24px; height: 80px; display: flex; align-items: center; }
.product-name { font-family: var(--display); font-size: 34px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 14px; }
.product-desc { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 28px; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.product-link { font-family: var(--hand); font-size: 17px; color: var(--amber); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.product-card:nth-child(2) .product-link { color: var(--teal); }
.product-link:hover { gap: 12px; }

/* SERVICE CARD VARIANT (with scenario story) */
.service-card { padding: 40px; }
.service-card .product-name { font-size: 24px; margin-bottom: 12px; }
.service-card .scenario {
  font-style: italic; color: var(--ink); font-size: 12px;
  line-height: 1.75; margin-bottom: 18px;
  border-left: 2px solid var(--amber); padding-left: 14px;
}
.service-card .what-we-build {
  color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 14px;
}
.service-card .what-we-build strong { color: var(--ink); font-weight: 600; }
.service-card .service-stat {
  font-family: var(--hand); font-size: 16px; color: var(--rust);
  margin-bottom: 16px; display: block;
}
.service-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--hand); font-size: 17px; color: var(--amber);
  text-decoration: none; margin-top: 12px;
  transition: gap 0.2s, color 0.2s;
}
.service-read-more:hover { gap: 12px; color: var(--rust); }

/* FAQ ACCORDION */
.faq-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 48px; max-width: 860px;
}
.faq-item {
  border: 1.5px solid rgba(26,26,46,0.12);
  border-radius: 6px; background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden;
}
.faq-item:hover { border-color: var(--amber); }
.faq-item[open] { border-color: var(--amber); box-shadow: 2px 4px 18px rgba(26,26,46,0.05); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-size: 15px;
  font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--display); font-size: 26px;
  font-weight: 400; color: var(--amber);
  transition: transform 0.25s ease; flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-answer {
  padding: 0 24px 22px; color: var(--muted);
  font-size: 13px; line-height: 1.85; font-family: var(--mono);
}
.faq-item .faq-answer a { color: var(--amber); text-decoration: none; border-bottom: 1px dashed var(--amber); }
.faq-item .faq-answer a:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* AUDIT BANNER (dark dual-CTA pattern — homepage pricing + subpage final CTA) */
.audit-banner {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px;
  align-items: center; background: var(--ink); color: var(--paper);
  border-radius: 6px; padding: 48px 56px; margin-top: 48px;
  position: relative; overflow: hidden;
}
.audit-banner::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px; border: 1.5px solid var(--amber);
  border-radius: 50%; opacity: 0.18;
}
.audit-banner::after {
  content: ''; position: absolute; bottom: -60px; right: 80px;
  width: 140px; height: 140px;
  border: 1.5px dashed var(--amber-light); border-radius: 50%; opacity: 0.12;
}
.audit-tag {
  font-family: var(--hand); font-size: 19px; color: var(--amber-light);
  margin-bottom: 6px; display: inline-block;
}
.audit-banner h3 {
  font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px;
  color: var(--paper);
}
.audit-banner .audit-body {
  font-size: 13px; line-height: 1.9; color: rgba(245,240,232,0.7);
  margin-bottom: 22px; max-width: 480px;
}
.audit-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 24px; font-size: 12px; color: rgba(245,240,232,0.85);
  position: relative; z-index: 2;
}
.audit-features li::before { content: '✓ '; color: var(--amber-light); font-weight: bold; margin-right: 4px; }
.audit-right { text-align: right; position: relative; z-index: 2; }
.audit-price { font-family: var(--display); font-size: 64px; font-weight: 900; letter-spacing: -0.04em; color: var(--amber); line-height: 1; }
.audit-note { font-family: var(--hand); font-size: 16px; color: rgba(245,240,232,0.5); margin-top: 4px; margin-bottom: 24px; }
.audit-right .btn-primary { background: var(--amber); color: var(--ink); }
.audit-right .btn-primary:hover { background: var(--paper); }
.audit-or {
  display: block; font-family: var(--hand); font-size: 15px;
  color: rgba(245,240,232,0.4); margin: 14px 0 8px;
}
.audit-free-call {
  font-family: var(--hand); font-size: 18px; color: var(--paper);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.audit-free-call:hover { gap: 12px; color: var(--amber-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links, .nav-tag { display: none; }
  .nav-mobile-toggle { display: block; }
  .section { padding: 60px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
  .hero { padding: 120px 24px 80px; }
  .products-grid, .audit-banner { grid-template-columns: 1fr !important; gap: 40px; }
  .audit-banner { padding: 32px; gap: 28px; }
  .audit-right { text-align: left; }
  .audit-features { grid-template-columns: 1fr; }
  .service-card { padding: 32px; }
}
