/* ==========================================================================
   zibzab – public site styles
   Dark, minimal, grid-based. Inspired by the "tech domain" aesthetic:
   big lowercase headlines, mono accents, pixel grids, soft motion.
   ========================================================================== */

@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0f1012;
  --bg-2: #131518;
  --surface: #17191d;
  --surface-2: #1d2025;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eeede9;
  --muted: #8b8f97;
  --dim: #5d6168;
  --accent: #ff6b4a;
  --accent-2: #a99cff;
  --mint: #9ee6c0;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: 0; }
.muted { color: var(--muted); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.hl { color: var(--accent-2); }
.hl-2 { color: var(--mint); }

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

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo-mark rect { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.logo-word { font-weight: 600; font-size: 19px; letter-spacing: -.04em; line-height: 1; }
.logo-cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; margin-left: 1px; }
a:hover .logo-mark rect:nth-child(1) { transform: translate(15.5px, 0) scale(.9); }
a:hover .logo-mark rect:nth-child(4) { transform: translate(-15.5px, 0) scale(.9); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--b); color: #141414; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 18px; font: 500 14px/1 var(--mono); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--b); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-sm { padding: 8px 12px; font-size: 12.5px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(15, 16, 18, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { max-width: calc(var(--container) + 120px); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font: 400 14px var(--mono); }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; border: 1px solid var(--line-2); padding: 7px 12px; border-radius: 8px; transition: border-color .2s, background .2s !important; }
.nav-cta:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-visual { position: absolute; inset: 0 0 0 42%; pointer-events: none; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 35%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-image { pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.pixel-grid { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 10px; font: 400 12.5px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 14px 6px 12px; margin: 0 0 28px; background: rgba(255,255,255,.02); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { font-weight: 450; font-size: clamp(42px, 7vw, 88px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 26px; max-width: 13ch; }
.hero-title .line { display: block; }
.rotator { color: var(--accent); white-space: nowrap; }
.caret { color: var(--accent); animation: blink 1.1s steps(1) infinite; font-weight: 300; }
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 46ch; margin: 0 0 36px; }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: #efede6; color: #1a1a1a; border-radius: 12px; padding: 6px 6px 6px 16px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.hero-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 60px -18px rgba(0,0,0,.7); transform: translateY(-1px); }
.hero-search-icon { color: #1a1a1a; flex: none; }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 12px 4px; font: 400 14px var(--mono); color: #1a1a1a; }
.hero-search input::placeholder { color: #8f8d86; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); text-decoration: none; font-size: 11px; z-index: 2; }
.scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--dim), transparent); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stat-label { color: var(--muted); }

/* ---------- statement ---------- */
.statement { padding: clamp(100px, 16vw, 200px) 0; text-align: center; }
.statement-text { font-size: clamp(28px, 4.2vw, 52px); line-height: 1.15; letter-spacing: -.035em; max-width: 20ch; margin: 0 auto; font-weight: 450; }
.reveal-words .w { display: inline-block; opacity: .12; transition: opacity .6s var(--ease); }
.reveal-words .w.on { opacity: 1; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.eyebrow { color: var(--accent); margin: 0 0 14px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 450; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 18px; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
.section-text { color: var(--muted); font-size: 17px; margin: 0; max-width: 52ch; }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); position: relative; isolation: isolate; }
.card::before { /* cursor-follow glow */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
}
.card:hover::before { opacity: 1; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { padding: 28px; min-height: 250px; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .3s; transform-style: preserve-3d; }
.service:hover { border-color: var(--line-2); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 36px; }
.service-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: background .3s, color .3s, transform .4s var(--ease); }
.service:hover .service-icon { background: var(--accent); color: #141414; transform: rotate(-6deg) scale(1.05); }
.tag { color: var(--dim); text-transform: lowercase; }
.service p { color: var(--muted); margin: 0; font-size: 15px; }
.service-index { position: absolute; right: 22px; bottom: 18px; color: var(--dim); font-size: 11px; }

/* ---------- work ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -20px 0 36px; }
.tab { background: none; border: 1px solid transparent; color: var(--dim); padding: 7px 12px; border-radius: 7px; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; transition: color .2s, border-color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--line-2); background: var(--surface); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .3s, opacity .4s, filter .4s; }
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.project.is-filtered { display: none; }
.project-cover { aspect-ratio: 16 / 10; background: var(--surface); position: relative; overflow: hidden; color: var(--text); border-bottom: 1px solid var(--line); }
.project-cover img, .project-cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-cover img, .project:hover .project-cover svg { transform: scale(1.05); }
.project-cover svg rect { transition: fill-opacity .6s; }
.project-cat { position: absolute; left: 12px; top: 12px; background: rgba(15,16,18,.75); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-meta { margin: 0 0 10px; color: var(--text); }
.project-body > p.muted { margin: 0 0 16px; font-size: 14.5px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; }
.chips li { font: 400 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); text-decoration: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-visual img, .about-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.about-placeholder { position: relative; overflow: hidden; display: grid; place-items: center; cursor: crosshair; outline-offset: 4px;
  background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg-2); color: var(--text); }
.about-placeholder canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-logo { position: relative; z-index: 1; transition: opacity .5s var(--ease), transform .7s var(--ease), filter .5s var(--ease); }
.about-logo .logo-mark { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.about-placeholder.is-avatar .about-logo { opacity: 0; transform: scale(.6) rotate(-12deg); filter: blur(6px); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.about-caption { margin: 14px 0 0; }
.prose { color: var(--muted); font-size: 17px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); }
.prose h3 { margin: 2em 0 .5em; font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface); padding: 2px 5px; border-radius: 4px; }

/* ---------- process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line-2); }
.process::after { content: ''; position: absolute; left: 0; top: 17px; height: 1px; width: calc(var(--progress, 0) * 100%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s linear; }
.step { padding: 0 28px 0 0; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2); margin-bottom: 26px; position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s; }
.step.is-reached .step-num { background: var(--accent); color: #141414; border-color: var(--accent); }
.step p { margin: 0; font-size: 15px; }

/* ---------- testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: start; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quote { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.quote blockquote { margin: 0; color: var(--muted); font-size: 15.5px; }
.quote figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: auto; font-size: 14px; }
.quote-url { display: inline-flex; align-items: center; gap: 4px; color: var(--text); margin-top: 6px; }

/* ---------- stack marquee ---------- */
.stack { padding: 40px 0 20px; }
.stack-title { text-align: center; margin: 0 0 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; list-style: none; padding: 0 7px; margin: 0; }
.marquee li { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--muted); padding: 12px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); white-space: nowrap; transition: color .2s, border-color .2s; }
.marquee li:hover { color: var(--text); border-color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.faq-title { position: sticky; top: 110px; align-self: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 17px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-icon { color: var(--accent); transition: transform .35s var(--ease); flex: none; }
.faq[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 4px 22px; font-size: 15.5px; max-width: 62ch; overflow: hidden; }
.faq-answer p:last-child { margin: 0; }

/* ---------- contact ---------- */
.contact { background: radial-gradient(800px 400px at 15% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro { position: sticky; top: 110px; }
.contact-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--text); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s, color .2s; }
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-form { padding: clamp(22px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font: 400 12.5px var(--mono); color: var(--muted); padding: 0; margin-bottom: 7px; }
.field legend { margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b8f97' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.has-error input, .field.has-error textarea, .check.has-error span::before { border-color: #ff5d5d; }
.field-error { font: 400 12px var(--mono); color: #ff7b7b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; position: relative; }
.chip input, .check input, .switch input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.chip span { display: inline-block; padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; color: var(--muted); transition: all .2s var(--ease); }
.chip:hover span { color: var(--text); border-color: var(--text); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #141414; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); }
.check span::before { content: ''; flex: none; display: inline-block; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 5px; margin-right: 10px; vertical-align: -4px; transition: all .2s; background: var(--bg) center / 12px no-repeat; }
.check input:checked + span::before { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23141414' stroke-width='2'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E"); }
.check input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--text); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { margin: 0; color: var(--muted); }
.form-status.is-error { color: #ff7b7b; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success p { font-size: 19px; max-width: 32ch; margin: 18px auto 0; }
.success-mark { display: inline-block; animation: pop .7s var(--ease); }
.success-mark .logo-mark rect:nth-child(4) { animation: spin-in 1s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes spin-in { from { transform: rotate(-180deg) scale(0); } }
.contact-form.is-sent > :not(.form-success) { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 30px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 36px; }
.footer-brand p { margin: 12px 0 0; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); transition: color .2s, border-color .2s, transform .3s var(--ease); }
.footer-links a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a, .footer-bottom .linklike { color: var(--dim); text-decoration: none; transition: color .2s; font-size: 13px; }
.footer-bottom a:hover, .footer-bottom .linklike:hover { color: var(--text); }

/* ---------- credit line ("website by zibzab") ---------- */
.credit-row { display: flex; justify-content: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.credit { display: inline-flex; align-items: center; gap: 7px; font: 400 11.5px var(--mono); color: var(--dim); text-decoration: none; letter-spacing: .01em; padding: 4px 8px; border-radius: 8px; transition: color .3s var(--ease), background .3s var(--ease); }
.credit-logo { width: 16px; height: 16px; opacity: .75; transition: transform .5s var(--ease), opacity .3s; }
.credit-name { color: var(--muted); font-weight: 500; transition: color .3s; }
.credit:hover { color: var(--muted); background: rgba(255, 255, 255, .03); }
.credit:hover .credit-name { color: var(--text); }
.credit:hover .credit-logo { opacity: 1; transform: rotate(-10deg) scale(1.12); }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; z-index: 70; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px));
  background: rgba(23, 25, 29, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: slide-up .6s var(--ease) both; font-size: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 10px; color: var(--muted); }
.cookie a { color: var(--text); }
.cookie-title { color: var(--accent) !important; margin-bottom: 6px !important; }
.cookie-options { display: grid; gap: 10px; margin: 14px 0 6px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.cookie-options[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.switch { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--mono); font-size: 13px; }
.switch small { color: var(--dim); margin-left: auto; }
.switch span { width: 34px; height: 20px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; transition: background .25s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background .25s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); background: #141414; }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- legal / 404 ---------- */
.page-legal .section { padding-top: 140px; }
.legal-inner { max-width: 760px; }
.legal .prose { font-size: 16px; }
.legal .prose h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 28px; }
.back { text-decoration: none; display: inline-block; margin-bottom: 36px; }
.back:hover { color: var(--text); }
.hero-404 .btn { margin-top: 8px; }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before, .process::after { display: none; }
  .testimonials-grid, .faq-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .faq-title, .contact-intro { position: static; }
  .about-visual { max-width: 420px; }
  .hero-visual { inset: 0 0 0 20%; opacity: .7; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; font-size: 22px;
    background: rgba(15,16,18,.97); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-open .nav { background: transparent; }
  .services-grid, .work-grid, .quotes, .field-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; align-items: flex-start; }
  .hero-visual { inset: auto 0 0 0; height: 46%; opacity: .55; }
  .hero-visual::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 40%, var(--bg) 100%); }
  .hero-search { padding-left: 12px; }
  .hero-search-icon { display: none; }
  .footer-inner { flex-direction: column; }
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 14px; font-size: 13px; }
  .cookie p { margin-bottom: 6px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .cookie-actions [data-cookie="all"] { grid-column: 1 / -1; order: -1; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -24px; padding-right: 24px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .nav-logo { position: relative; z-index: 2; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .reveal-words .w { opacity: 1; }
}
