/* Webfluences — 2026 redesign */
:root {
  --bg: #0b0c10;
  --bg-alt: #0e0f14;
  --panel: #12141a;
  --panel-2: #101218;
  --panel-3: #14161d;
  --line-1: #1d2028;
  --line-2: #23262f;
  --line-3: #2c2f39;
  --text: #f3f2ee;
  --muted: #9a9ea8;
  --dim: #5d616b;
  --nav: #c9ccd2;
  --blue: #5b6cff;
  --blue-ink: #4651d6;
  --blue-light: #8d9bff;
  --lime: #c6ff4d;
  --pink: #ff5b9a;
  --red: #ff7a7a;
  --light-bg: #f3f2ee;
  --light-ink: #0b0c10;
  --light-muted: #4a4f58;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Instrument Sans', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1320px;
  --gutter: 32px;
  --section-y: 130px;
  --grad: linear-gradient(90deg, var(--blue), var(--lime));
  --grad-text: linear-gradient(90deg, var(--blue-light), var(--lime));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--lime); }
img { max-width: 100%; }
::selection { background: var(--lime); color: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--dim); }
button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.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; }

.page { min-height: 100vh; position: relative; }
.container { max-width: var(--max); width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Shared type */
.label { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--lime); margin-bottom: 20px; }
.h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0; }
.grad-italic { font-style: italic; font-weight: 500; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-weight: 600; transition: transform .2s; border: none; cursor: pointer; }
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { color: var(--bg); }
.btn-blue { background: var(--blue); color: #fff; padding: 17px 28px; box-shadow: 0 10px 40px rgba(91,108,255,.45); }
.btn-blue:hover { color: #fff; }

/* Progress + cursor */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; z-index: 60; }
.cursor { position: fixed; top: 0; left: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1.5px solid #fff; mix-blend-mode: difference; pointer-events: none; z-index: 70; transition: width .25s, height .25s, margin .25s, background .25s; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--lime); pointer-events: none; z-index: 71; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* Top bar */
.topbar { background: #000; color: var(--muted); font: 400 12px var(--mono); padding: 10px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; position: relative; z-index: 5; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--lime); }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(11,12,16,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; transition: padding .3s; }
.header.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.header-logo { display: block; }
.header-logo img { height: 32px; display: block; filter: brightness(0) invert(1); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--nav); }
.nav a:hover { color: var(--lime); }
.header-cta { padding: 11px 20px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 110px); display: flex; align-items: center; }
.hero .grid-bg { mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.blob-hero-1 { width: 560px; height: 560px; left: -120px; top: -160px; background: var(--blue); filter: blur(120px); opacity: .45; }
.blob-hero-2 { width: 420px; height: 420px; right: -80px; top: 120px; background: var(--lime); filter: blur(130px); opacity: .22; }
.blob-hero-3 { width: 380px; height: 380px; left: 40%; bottom: -200px; background: var(--pink); filter: blur(140px); opacity: .2; }
.hero-inner { position: relative; padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--lime); border: 1px solid rgba(198,255,77,.3); border-radius: 999px; padding: 8px 14px; margin-bottom: 32px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.h1 { font-size: clamp(44px, 6.6vw, 100px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0; }
.h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.h1 .w > span { display: inline-block; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 32px 0 0; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.now-building { font: 400 13px var(--mono); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.rotator { display: inline-block; color: var(--text); min-width: 150px; }
.hero-visual { position: relative; height: clamp(380px, 46vw, 560px); }
.hv { position: absolute; }
.hv-1 { left: 0; top: 8%; width: 62%; z-index: 1; }
.hv-2 { right: 0; top: 0; width: 58%; z-index: 2; }
.hv-3 { left: 18%; bottom: 0; width: 64%; z-index: 3; }
.hv-4 { right: 4%; bottom: 12%; z-index: 4; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.shot img { width: 100%; aspect-ratio: 16/11; object-fit: cover; object-position: top; display: block; }
.hv-1 .shot { transform: rotate(-7deg); }
.hv-2 .shot { transform: rotate(5deg); }
.hv-3 .shot { transform: rotate(-1.5deg); border-color: rgba(255,255,255,.18); box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.badge-live { background: var(--lime); color: var(--bg); border-radius: 999px; padding: 10px 16px; font: 600 13px var(--mono); box-shadow: 0 10px 30px rgba(198,255,77,.35); white-space: nowrap; }

/* Clients carousel */
.clients { position: relative; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); background: var(--bg-alt); overflow: hidden; padding: 34px 0 30px; }
.clients-head { margin-bottom: 22px; display: flex; justify-content: space-between; gap: 16px; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--dim); }
.clients-head .live { color: var(--lime); }
.marquee-mask { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; width: max-content; padding: 6px 0; }
.marquee > div { padding-right: 16px; }
.chip { display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--panel-3); border: 1px solid #262a35; color: var(--text); white-space: nowrap; transition: background .3s, border-color .3s, transform .3s; }
.chip:hover { background: #1b1e29; border-color: var(--blue); color: var(--text); transform: translateY(-3px); }
.chip-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--light-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.chip-logo img { width: 30px; height: 30px; object-fit: contain; display: block; }
.chip-text { display: flex; flex-direction: column; gap: 2px; }
.chip-name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.chip-meta { font: 400 11px var(--mono); color: #7a7f89; letter-spacing: .06em; }
.marquee2 { display: flex; width: max-content; margin-top: 22px; }
.mq-word { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(34px, 4.4vw, 64px); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; color: var(--text); }
.mq-word.outline { color: transparent; -webkit-text-stroke: 1.2px var(--dim); }
.diamond { width: 14px; height: 14px; background: var(--lime); transform: rotate(45deg); display: inline-block; }

/* Services */
.services { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; margin-bottom: 64px; align-items: end; }
.section-head .lead { max-width: 440px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; perspective: 1200px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease-out, border-color .3s; transform-style: preserve-3d; }
.card:hover { border-color: #3a3f80; }
.card-spot { position: absolute; inset: 0; background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(91,108,255,.28), transparent 60%); opacity: var(--o, 0); transition: opacity .3s; pointer-events: none; }
.card-top { display: flex; justify-content: space-between; align-items: start; position: relative; }
.icon-tile { width: 68px; height: 68px; border-radius: 14px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; }
.icon-tile img { width: 42px; height: 42px; object-fit: contain; display: block; }
.card-num { font: 500 13px var(--mono); color: var(--dim); }
.card-body { margin-top: auto; position: relative; transform: translateZ(30px); }
.card-body h3 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 600; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Projects */
.projects { position: relative; background: var(--light-bg); color: var(--light-ink); overflow: hidden; }
.projects .container { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.projects .label { color: var(--blue-ink); }
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.projects-head .h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.045em; }
.projects-head p { font-size: 18px; color: var(--light-muted); margin: 0; max-width: 340px; }
.plist { border-top: 1.5px solid var(--light-ink); }
.prow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 30px 8px; border-bottom: 1.5px solid var(--light-ink); color: var(--light-ink); overflow: hidden; }
.prow:hover { color: var(--light-ink); }
.prow-fill { position: absolute; inset: 0; background: var(--light-ink); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.prow-main { position: relative; display: flex; align-items: center; gap: 20px; min-width: 0; flex-wrap: wrap; }
.prow-thumb { display: none; width: 96px; height: 64px; border-radius: 8px; object-fit: cover; object-position: top; flex: 0 0 auto; }
.no-hover .prow-thumb { display: block; }
.prow-name { font-size: clamp(28px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; transition: transform .5s var(--ease), color .3s; }
.prow-loc { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--light-muted); border: 1px solid currentColor; border-radius: 999px; padding: 5px 10px; transition: color .3s; }
.prow-link { position: relative; display: flex; align-items: center; gap: 14px; font: 400 13px var(--mono); color: var(--blue-ink); transition: color .3s; }
.prow-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.prow.is-on .prow-fill { transform: scaleY(1); transform-origin: bottom; }
.prow.is-on .prow-name { transform: translateX(24px); color: var(--text); }
.prow.is-on .prow-loc, .prow.is-on .prow-link { color: var(--lime); }
@media (max-width: 600px) { .prow-host { display: none; } .prow-arrow { width: 44px; height: 44px; } }
.preview { position: fixed; left: 0; top: 0; width: 380px; aspect-ratio: 16/11; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 30; opacity: 0; box-shadow: 0 40px 100px rgba(0,0,0,.45); border: 3px solid var(--lime); background: #e2e0da; transition: opacity .3s; }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Testimonial */
.quote { position: relative; padding-top: 140px; padding-bottom: 140px; }
.quote .label { margin-bottom: 40px; }
.quote blockquote { margin: 0; font-size: clamp(22px, 2.7vw, 38px); line-height: 1.32; letter-spacing: -.02em; font-weight: 500; }
.qw { opacity: .16; transition: opacity .25s; }
.quote-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.quote-author { display: flex; align-items: center; gap: 16px; }
.quote-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); }
.quote-author-name { font-weight: 600; font-size: 18px; }
.quote-author a { color: var(--blue-light); font: 400 13px var(--mono); }
.quote-logo { height: 44px; display: block; filter: brightness(0) invert(1); opacity: .85; }

/* Infos */
.infos { background: var(--bg-alt); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.infos-inner { padding-top: var(--section-y); padding-bottom: var(--section-y); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 72px; align-items: center; }
.code-stage { position: relative; aspect-ratio: 4/5; max-height: 620px; border-radius: 18px; background: radial-gradient(circle at 30% 20%, #1d2150, var(--bg) 70%); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 28px; }
.code-stage .grid-bg { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.blob-code { width: 320px; height: 320px; left: 10%; bottom: 5%; background: var(--lime); filter: blur(110px); opacity: .25; }
.code-win { position: relative; width: 100%; max-width: 440px; background: rgba(16,18,24,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-3); border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(91,108,255,.15); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-file { margin-left: 12px; font: 400 12px var(--mono); color: var(--dim); }
.code { margin: 0; padding: 22px 20px; min-height: 300px; font: 400 13.5px/1.75 var(--mono); color: var(--nav); white-space: pre-wrap; word-break: break-word; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--lime); vertical-align: -3px; margin-left: 1px; }
.stat { position: absolute; }
.stat-1 { right: 6%; top: 9%; }
.stat-2 { left: 6%; bottom: 8%; }
.stat-chip { border-radius: 12px; padding: 12px 16px; }
.stat-chip small { display: block; font: 500 11px var(--mono); }
.stat-chip strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat-1 .stat-chip { background: var(--lime); color: var(--bg); box-shadow: 0 14px 40px rgba(198,255,77,.3); }
.stat-2 .stat-chip { background: var(--blue); color: #fff; box-shadow: 0 14px 40px rgba(91,108,255,.45); }
.infos .h2 { margin-bottom: 24px; }
.infos .lead { margin-bottom: 48px; }
.mini-label { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--dim); margin-bottom: 24px; }
.skills { display: grid; gap: 26px; }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.skill-name { font-weight: 600; font-size: 18px; }
.skill-pct { font: 500 28px var(--sans); letter-spacing: -.02em; }
.skill-track { height: 8px; background: var(--line-1); border-radius: 4px; overflow: hidden; }
.skill-bar { height: 100%; background: var(--grad); border-radius: 4px; transform: scaleX(0); transform-origin: left; }
.infos-close { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line-2); }

/* Contact */
.contact { position: relative; overflow: hidden; }
.blob-contact { width: 600px; height: 600px; right: -200px; top: 0; background: var(--blue); filter: blur(150px); opacity: .3; }
.contact-inner { position: relative; padding-top: var(--section-y); padding-bottom: var(--section-y); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; align-items: start; }
.contact-h2 { font-size: clamp(44px, 6vw, 92px); line-height: .95; letter-spacing: -.045em; font-weight: 600; margin: 0 0 24px; }
.contact .lead { margin-bottom: 48px; max-width: 420px; }
.contact-row { display: block; padding: 22px 0; border-top: 1px solid var(--line-2); color: var(--text); }
.contact-row:last-child { border-bottom: 1px solid var(--line-2); }
.contact-row small { display: block; font: 500 12px var(--mono); color: var(--dim); margin-bottom: 6px; }
.contact-row span { display: block; font-size: 24px; font-weight: 500; }

/* Enquiry form */
.form-shell { position: relative; border-radius: 22px; padding: 1.5px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.form-spin { position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; margin: -100% 0 0 -100%; background: conic-gradient(from 0deg, var(--blue), var(--lime), var(--pink), var(--blue)); }
.form-card { position: relative; background: var(--panel-2); border-radius: 21px; padding: clamp(26px, 4vw, 48px); min-height: 600px; display: flex; flex-direction: column; }
.enquiry { flex: 1; display: flex; flex-direction: column; }
.enquiry[hidden], .success[hidden], .step[hidden] { display: none; }
.form-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font: 500 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
.step-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 40px; }
.step-bar { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.step-bar > span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.step-bar.is-done > span { width: 100%; }
.step-panel { flex: 1; display: flex; flex-direction: column; }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 28px; font-weight: 600; }
.step h3.tight { margin-bottom: 8px; }
.step-hint { margin: 0 0 28px; color: var(--muted); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.svc { position: relative; text-align: left; cursor: pointer; padding: 20px; border-radius: 14px; border: 1.5px solid var(--line-3); background: var(--panel-3); color: var(--text); transition: all .25s; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.svc-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.svc-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; }
.svc-icon img { width: 28px; height: 28px; object-fit: contain; }
.svc-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-3); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: all .25s; }
.svc-name { font-size: 18px; font-weight: 600; }
.svc[aria-pressed="true"] { border-color: var(--lime); background: rgba(198,255,77,.08); transform: translateY(-3px); }
.svc[aria-pressed="true"] .svc-check { border-color: var(--lime); background: var(--lime); }
.svc[aria-pressed="true"] .svc-check::after { content: '✓'; }
.field-label { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips + .field-label { margin-top: 36px; }
.opt { padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line-3); background: transparent; color: var(--text); font: 600 15px var(--sans); cursor: pointer; transition: all .25s; }
.opt[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px 24px; }
.field { display: block; }
.field + .field, .fields + .field { margin-top: 26px; }
.fields > .field { margin-top: 0; }
.field > span { display: block; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 0; border: none; border-bottom: 1.5px solid var(--line-3); border-radius: 0; background: transparent; font: 500 20px var(--sans); color: var(--text); outline: none; transition: border-color .25s; }
.field textarea { font-size: 18px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--lime); }
.field .is-bad { border-bottom-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin-top: 26px; min-height: 78px; }
.form-error { color: var(--red); font-size: 14px; min-height: 20px; margin: 20px 0 4px; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn-back { background: none; border: none; color: var(--muted); font: 600 15px var(--sans); cursor: pointer; padding: 12px 0; }
.btn-back:hover { color: var(--text); }
.btn-back.is-hidden { visibility: hidden; }
.btn-next { padding: 17px 30px; font: 700 16px var(--sans); box-shadow: 0 10px 40px rgba(198,255,77,.3); }
.btn-next[disabled] { opacity: .6; cursor: progress; }
.success { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; box-shadow: 0 0 0 12px rgba(198,255,77,.12), 0 0 0 24px rgba(198,255,77,.06); }
.success h3 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.02; margin: 0; font-weight: 600; }
.success p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 420px; }
.btn-outline { background: none; border: 1.5px solid var(--text); color: var(--text); border-radius: 999px; padding: 13px 22px; font: 600 14px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--text); color: var(--bg); }

/* Wordmark + footer */
.wordmark-wrap { overflow: hidden; border-top: 1px solid var(--line-1); padding: 40px 0 10px; }
.wordmark { font-size: clamp(80px, 17vw, 280px); font-weight: 700; letter-spacing: -.06em; line-height: .85; white-space: nowrap; background: linear-gradient(180deg, var(--text) 20%, rgba(243,242,238,.05)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 var(--gutter); }
.footer { color: var(--dim); font-size: 13px; padding: 24px var(--gutter) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer a { color: var(--muted); }

/* Pre-hide motion targets until JS reveals them (only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
  .js [data-clip] { clip-path: inset(100% 0 0 0 round 18px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qw { opacity: 1; }
  .skill-bar { transform: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section-y: 90px; }
  .nav { gap: 6px 18px; font-size: 14px; }
  .quote { padding-top: 100px; padding-bottom: 100px; }
}
