:root {
  color-scheme: light;
  --paper: #f4f1ec;
  --paper-2: #ebe6dd;
  --azure: #007fff;
  --ink: #07101b;
  --muted: rgba(7, 16, 27, 0.62);
  --line: rgba(0, 127, 255, 0.34);
  --ink-line: rgba(7, 16, 27, 0.18);
  --blue-line: rgba(0, 127, 255, 0.58);
  --max: 1220px;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --x: 62%;
  --y: 42%;
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  cursor: crosshair;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 127, 255, 0.07), transparent 30rem),
    radial-gradient(circle at 80% 24%, rgba(0, 127, 255, 0.055), transparent 30rem),
    linear-gradient(rgba(0, 127, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 127, 255, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 18px 18px, 18px 18px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(rgba(0, 127, 255, 0.18) 1px, transparent 1.4px),
    repeating-linear-gradient(0deg, rgba(0, 127, 255, 0.032) 0 1px, transparent 1px 8px);
  background-size: 8px 8px, 100% 8px;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--azure); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle at var(--x) var(--y), black 0 150px, transparent 240px);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  border: 1px solid var(--blue-line);
  background: var(--paper);
  padding: 0.65rem 0.9rem;
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--blue-line);
  background: rgba(244, 241, 236, 0.88);
  backdrop-filter: blur(14px);
}
.nav {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--azure); font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; font-weight: 400; letter-spacing: -0.035em; text-transform: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--azure); box-shadow: 0 0 0 7px rgba(0, 127, 255, 0.06); }
.nav-menu { display: flex; align-items: center; gap: 1rem; color: var(--azure); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.nav-menu a:not(.language-link)::before { content: "["; }
.nav-menu a:not(.language-link)::after { content: "]"; }
.language-link { border: 1px solid var(--azure); padding: 0.38rem 0.65rem; color: var(--azure); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--blue-line); background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; }

.section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.hero { width: min(calc(100% - 2rem), 1460px); min-height: calc(100svh - 72px); margin: 0 auto; padding: 1.2rem 0 2rem; display: grid; align-items: center; }
.hero-frame { position: relative; overflow: hidden; border: 1px solid var(--blue-line); border-radius: 0; background: rgba(244, 241, 236, 0.72); box-shadow: none; }
.hero-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 8vw 8vw; z-index: 2; mix-blend-mode: multiply; }
.status-row { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.65rem 0.9rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.status-row span:nth-child(2) { text-align: center; color: var(--azure); }
.status-row span:nth-child(3) { text-align: right; }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: stretch; min-height: 640px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.eyebrow, .price { margin: 0 0 0.9rem; color: var(--azure); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 0.92; font-weight: 950; letter-spacing: -0.075em; text-transform: uppercase; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
h1 { max-width: 1040px; color: var(--azure); font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.2rem, 8.8vw, 10.2rem); font-weight: 400; letter-spacing: -0.09em; line-height: 0.86; text-transform: none; mix-blend-mode: multiply; }
h2 { max-width: 940px; font-size: clamp(2.5rem, 6vw, 6.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 2rem); letter-spacing: -0.04em; }
.hero-lede, .intro p, .section-heading p, .inquiry-card > div p { max-width: 680px; color: var(--ink); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.hero-lede { margin: 1.4rem 0 0; font-family: Georgia, "Times New Roman", serif; text-transform: none; line-height: 1.2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--azure); padding: 0.85rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translate(5px, -5px); }
.button.primary { background: var(--azure); color: var(--paper); box-shadow: none; }
.button.secondary { background: rgba(247, 243, 234, 0.8); color: var(--ink); }

.hero-image { position: relative; min-height: 100%; margin: 0; border-left: 1px solid var(--blue-line); overflow: hidden; background: var(--azure); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.15) saturate(0.92); mix-blend-mode: multiply; }
.hero-image::before { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at var(--x) var(--y), transparent 0 120px, rgba(244, 241, 236, 0.72) 260px), linear-gradient(rgba(244, 241, 236, 0.15), rgba(0, 127, 255, 0.04)), repeating-linear-gradient(90deg, rgba(244, 241, 236, 0.32) 0 1px, transparent 1px 9px); mix-blend-mode: screen; }
.scan-layer { position: absolute; inset: 0; z-index: 3; background: url("/assets/images/v3/hero-panel.webp") center / cover no-repeat; filter: grayscale(1) contrast(1.8); mix-blend-mode: multiply; opacity: 0.72; mask-image: radial-gradient(circle at var(--x) var(--y), black 0 150px, transparent 245px); }
.cursor-label { position: absolute; left: var(--x); top: var(--y); z-index: 4; transform: translate(14px, -28px); color: var(--azure); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.1em; }
.hero-tags { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hero-tags span { min-height: 58px; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--azure); font-size: 0.75rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-tags span:last-child { border-right: 0; }

.intro { display: grid; gap: 1rem; }
.intro p:last-child { max-width: 760px; }
.section-heading { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.service-list { border-top: 1px solid var(--blue-line); }
.service-list article { display: grid; grid-template-columns: 90px minmax(180px, 0.38fr) minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.service-list span, .process-list span { color: var(--azure); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 900; }
.service-list p, .offer-card p, .process-list p { margin: 0; color: var(--muted); }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--blue-line); }
.offer-card { min-height: 230px; padding: 1.15rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(247, 243, 234, 0.7); position: relative; overflow: hidden; }
.offer-card:nth-child(3n) { border-right: 0; }
.offer-card:nth-last-child(-n+3) { border-bottom: 0; }
.offer-card.featured { background: var(--azure); color: var(--paper); }
.offer-card.featured .price, .offer-card.featured p { color: var(--paper); }
.offer-card::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: url("/assets/images/v3/nav-texture.webp") center / cover no-repeat; opacity: 0.12; mix-blend-mode: multiply; }
.offer-card h3 { margin-bottom: 0.85rem; position: relative; z-index: 2; }
.offer-card p { position: relative; z-index: 2; }

.image-stack { display: grid; grid-template-columns: 1.1fr 0.9fr 0.65fr; gap: 1rem; align-items: stretch; }
.image-stack img { width: 100%; height: clamp(280px, 42vw, 560px); object-fit: cover; border: 1px solid var(--blue-line); filter: contrast(1.05); mix-blend-mode: multiply; background: var(--azure); }
.image-stack img:nth-child(2) { margin-top: 3rem; }
.image-stack img:nth-child(3) { margin-top: 6rem; }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--blue-line); }
.process-list li { min-height: 250px; padding: 1rem; border-right: 1px solid var(--line); background: rgba(247, 243, 234, 0.72); }
.process-list li:last-child { border-right: 0; }
.process-list h3 { margin: 2.4rem 0 0.8rem; }

.inquiry-card { display: grid; grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); border: 1px solid var(--blue-line); padding: clamp(1rem, 3vw, 2rem); background: linear-gradient(rgba(247, 243, 234, 0.82), rgba(247, 243, 234, 0.9)), url("/assets/images/v3/inquiry-paper.webp") center / cover no-repeat; }
.contact-line a { color: var(--azure); font-weight: 900; }
.inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.inquiry-form label { display: grid; gap: 0.4rem; }
.inquiry-form label.full { grid-column: 1 / -1; }
.inquiry-form span { color: var(--muted); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; border: 1px solid var(--blue-line); border-radius: 0; background: rgba(247, 243, 234, 0.88); color: var(--ink); padding: 0.82rem 0.9rem; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 3px solid rgba(0, 127, 255, 0.32); outline-offset: 2px; }
.form-note { margin: 0; align-self: center; color: var(--muted); font-size: 0.9rem; }

.site-footer { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; border-top: 1px solid var(--blue-line); padding: 2rem 0; color: var(--muted); }
.footer-brand { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer a:last-child { color: var(--azure); font-weight: 900; }

@media (max-width: 980px) {
  .hero-grid, .inquiry-card, .service-list article, .process-list, .site-footer { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-image { min-height: 58vh; border-left: 0; border-top: 1px solid var(--line); }
  .hero-tags, .offer-grid, .image-stack { grid-template-columns: 1fr; }
  .hero-tags span, .offer-card, .process-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .offer-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .offer-card:last-child, .process-list li:last-child { border-bottom: 0; }
  .image-stack img:nth-child(n) { margin-top: 0; height: 340px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; left: 1rem; right: 1rem; top: calc(100% + 0.5rem); display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--blue-line); background: var(--paper); padding: 0.5rem; }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 0.8rem; }
  h1 { font-size: clamp(4rem, 20vw, 6.8rem); }
  .status-row { grid-template-columns: 1fr; }
  .status-row span:nth-child(n) { text-align: left; }
  .inquiry-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .matrix-canvas { display: none; }
}
