/* Jeffs Solution — Precision Systems */

:root {
  --bg: #eef2f6;
  --bg-deep: #dfe7ef;
  --ink: #0c1524;
  --ink-soft: #3a4658;
  --muted: #6b7789;
  --line: rgba(12, 21, 36, 0.12);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #f7f9fc;
  --accent: #0f9f96;
  --accent-strong: #0a7f78;
  --accent-glow: rgba(15, 159, 150, 0.28);
  --signal: #e8a317;
  --code: #1a2333;
  --font-display: "Syne", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 2px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(15, 159, 150, 0.12), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(232, 163, 23, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f7fa 0%, var(--bg) 40%, #e8eef4 100%);
  overflow-x: hidden;
  cursor: none;
}

body.is-touch {
  cursor: auto;
}

body.is-touch .cursor,
body.is-touch .cursor-ring {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  box-shadow: 0 0 12px var(--accent-glow);
}

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 200;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.cursor {
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(12, 21, 36, 0.35);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s;
}

body.has-hover .cursor-ring.is-active {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-color: var(--accent);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  position: relative;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

.section-head h2,
.about-copy + .terminal,
.ai-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(238, 242, 246, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, var(--accent) 0 45%, transparent 45% 55%, var(--ink) 55%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-text em {
  font-style: normal;
  color: var(--accent-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.25s, color 0.25s !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding:
    calc(var(--header-h) + 2rem)
    clamp(1.25rem, 4vw, 2.5rem)
    clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(12, 21, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 21, 36, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-bottom: clamp(4rem, 12vh, 7rem);
}

.brand-signal {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.text-accent {
  color: var(--accent-strong);
  position: relative;
}

.text-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.12em;
  background: var(--accent-glow);
  z-index: -1;
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.terminal {
  background: var(--code);
  color: #d7e0ec;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 21, 36, 0.18);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #445066;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}
.terminal-bar span:nth-child(2) {
  background: #febc2e;
}
.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-bar code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8b97ab;
}

.terminal-body {
  margin: 0;
  min-height: 220px;
  padding: 1rem 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.terminal-body .prompt {
  color: var(--accent);
}

.terminal-body .ok {
  color: #7ddea8;
}

.terminal-body .dim {
  color: #8b97ab;
}

.terminal-body .caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Services explorer */
.service-explorer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  min-height: 420px;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.service-tab {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  text-align: left;
  padding: 1.05rem 0.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.25s, padding-left 0.25s var(--ease);
}

.service-tab:hover,
.service-tab.is-active {
  color: var(--ink);
}

.service-tab.is-active {
  padding-left: 0.65rem;
}

.tab-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.tab-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.service-panels {
  position: relative;
  background:
    linear-gradient(160deg, rgba(15, 159, 150, 0.08), transparent 40%),
    var(--panel-solid);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  overflow: hidden;
}

.service-panels::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.service-panel {
  position: relative;
  animation: panelIn 0.45s var(--ease);
}

.service-panel[hidden] {
  display: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-code {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.service-panel h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.service-panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.service-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.service-panel li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.service-panel li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-family: var(--font-mono);
}

/* Projects */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: transform 0.4s var(--ease), opacity 0.35s, border-color 0.3s;
  transform-style: preserve-3d;
}

.project.is-hidden {
  display: none;
}

.project:hover {
  border-color: rgba(15, 159, 150, 0.45);
}

.project-visual {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--hue), 70%, 45%, 0.28), transparent 50%),
    linear-gradient(145deg, #101826, #1a2738);
  position: relative;
  overflow: hidden;
}

.project-visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.project-visual code {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.pv-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.pv-line:nth-child(1) {
  top: 38%;
}
.pv-line:nth-child(2) {
  top: 52%;
  width: 48%;
  left: 12%;
  right: auto;
}

.pv-block {
  width: 42%;
  height: 28%;
  border: 1px solid hsla(var(--hue), 80%, 65%, 0.7);
  background: hsla(var(--hue), 70%, 55%, 0.15);
  transform: translateY(-8%);
}

.pv-phone {
  width: 42px;
  height: 78px;
  border: 1.5px solid hsla(var(--hue), 80%, 70%, 0.85);
  border-radius: 8px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.pv-grid {
  width: 56%;
  height: 48%;
  background-image:
    linear-gradient(hsla(var(--hue), 80%, 70%, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--hue), 80%, 70%, 0.45) 1px, transparent 1px);
  background-size: 16px 16px;
}

.pv-nodes {
  width: 70px;
  height: 70px;
  border: 1px dashed hsla(var(--hue), 80%, 70%, 0.6);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px hsla(var(--hue), 70%, 50%, 0.12),
    inset 0 0 0 22px hsla(var(--hue), 70%, 55%, 0.2);
}

.pv-dash {
  width: 58%;
  height: 40%;
  border: 1px solid hsla(var(--hue), 80%, 70%, 0.55);
  background:
    linear-gradient(90deg, hsla(var(--hue), 80%, 65%, 0.35) 0 30%, transparent 30%),
    linear-gradient(180deg, transparent 40%, hsla(var(--hue), 70%, 50%, 0.2) 40%);
}

.pv-type {
  width: 50%;
  height: 8px;
  background: hsla(var(--hue), 80%, 70%, 0.85);
  box-shadow: 0 18px 0 hsla(var(--hue), 70%, 60%, 0.45), 0 36px 0 hsla(var(--hue), 60%, 55%, 0.25);
}

.project-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.project-tag {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-strong);
}

.project-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.project-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Process */
.process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: none;
}

.process-step {
  padding: 1.4rem 1.1rem;
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.process-step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* AI */
.ai-section {
  background:
    linear-gradient(180deg, transparent, rgba(15, 159, 150, 0.06) 30%, transparent),
    transparent;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ai-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
}

.ai-copy > p {
  color: var(--ink-soft);
  max-width: 34rem;
}

.ai-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.ai-points li {
  padding-left: 1.15rem;
  position: relative;
  font-weight: 500;
}

.ai-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

.ai-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.orbit {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit-core {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--ink);
  color: #fff;
  z-index: 2;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.orbit-ring {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(12, 21, 36, 0.15);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit-ring.r2 {
  inset: 4%;
  border-style: dashed;
  animation-duration: 28s;
  animation-direction: reverse;
}

.orbit-node {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 2;
  animation: floatNode 5s ease-in-out infinite;
}

.orbit-node.n1 {
  top: 8%;
  left: 42%;
}
.orbit-node.n2 {
  right: 2%;
  top: 48%;
  animation-delay: 0.8s;
}
.orbit-node.n3 {
  bottom: 10%;
  left: 18%;
  animation-delay: 1.4s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatNode {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-details {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(15, 159, 150, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.55);
}

.contact-details h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.contact-person {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.contact-details address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.contact-list a {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--accent-strong);
}

.social-soon {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.consent-check input {
  margin-top: 0.2rem;
  accent-color: var(--accent-strong);
}

.consent-check a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.form-status.is-error {
  color: #b42318;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-tagline {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-meta a {
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-meta a:hover {
  color: var(--accent-strong);
}

.footer-cols {
  display: grid;
  gap: 0.85rem;
  justify-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: flex-end;
}

.footer-links a,
.link-btn {
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-links a:hover,
.link-btn:hover {
  color: var(--accent-strong);
}

.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.link-btn {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Legal pages */
.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.legal-wrap {
  max-width: 760px;
}

.legal-wrap h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-intro {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
}

.legal-block {
  margin-bottom: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-block h3 {
  margin: 1rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.legal-block p,
.legal-block li {
  color: var(--ink-soft);
}

.legal-block p {
  margin: 0 0 0.85rem;
}

.legal-block a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-block ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.legal-block code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(12, 21, 36, 0.06);
  padding: 0.1em 0.35em;
}

.legal-note {
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 150;
  max-width: 720px;
  margin-inline: auto;
  left: 1rem;
  right: 1rem;
  background: rgba(247, 249, 252, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(12, 21, 36, 0.16);
  backdrop-filter: blur(14px);
  padding: 1.15rem 1.2rem 1.2rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: grid;
  gap: 1rem;
}

.cookie-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.cookie-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-copy a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.9rem;
}

.cookie-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.cookie-option em {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.25rem;
  font-size: 0.78rem;
}

.cookie-option input {
  accent-color: var(--accent-strong);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-actions .btn {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .service-explorer,
  .ai-layout,
  .process-track,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-explorer {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(238, 242, 246, 0.97);
    backdrop-filter: blur(16px);
    transform: translateY(-110%);
    transition: transform 0.45s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  .nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
  }

  .stat-row,
  .form-row,
  .footer-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols,
  .footer-links {
    justify-content: flex-start;
    justify-items: start;
  }

  .cookie-banner {
    inset: auto 0.75rem 0.75rem;
    padding: 1rem;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
