/* ==========================================================================
   Vedaslab — Design System v3
   Hand-written CSS (no framework) for speed & Core Web Vitals.
   ========================================================================== */

:root {
    --bg: #0B0B0B;
    --bg-2: #111111;
    --card: #151515;
    --card-2: #1B1B1B;
    --fg: #EEECE7;
    --fg-2: #B5B3AD;
    --muted: #7A7975;
    --line: rgba(238, 236, 231, 0.10);
    --line-2: rgba(238, 236, 231, 0.20);
    --accent: #FF5A36;
    --ok: #2BD576;

    --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 28px;
    --pad: clamp(20px, 4vw, 56px);
    --header-h: 76px;
}

html[data-theme="light"] {
    --bg: #F3F1EC;
    --bg-2: #EAE7E0;
    --card: #FFFFFF;
    --card-2: #F6F4EF;
    --fg: #0D0D0D;
    --fg-2: #45443F;
    --muted: #77756F;
    --line: rgba(13, 13, 13, 0.10);
    --line-2: rgba(13, 13, 13, 0.20);
    --accent: #E8461F;
}

/* Inverted panel palette (light panel in dark mode, dark panel in light mode) */
html[data-theme="dark"] .invert {
    --bg: #F3F1EC; --bg-2: #EAE7E0; --card: #FFFFFF; --card-2: #F6F4EF;
    --fg: #0D0D0D; --fg-2: #45443F; --muted: #77756F;
    --line: rgba(13, 13, 13, 0.12); --line-2: rgba(13, 13, 13, 0.22); --accent: #E8461F;
}
html[data-theme="light"] .invert {
    --bg: #0B0B0B; --bg-2: #111111; --card: #151515; --card-2: #1B1B1B;
    --fg: #EEECE7; --fg-2: #B5B3AD; --muted: #7A7975;
    --line: rgba(238, 236, 231, 0.10); --line-2: rgba(238, 236, 231, 0.20); --accent: #FF5A36;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    transition: background-color .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--bg); transform: translateY(-200%); transition: transform .3s; }
.skip-link:focus { transform: none; }

/* Film grain — subtle texture that kills the flat "template" look */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: .045;
    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");
}
html[data-theme="light"] body::after { opacity: .06; }

/* ---------- Type ---------- */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.h2 {
    font-size: clamp(40px, 6vw, 96px);
    line-height: .95;
    letter-spacing: -0.045em;
    font-weight: 500;
}
.lead { color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 470px; }

/* Line-mask reveal (used by hero + headings) */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }

/* Hover roll text */
.roll { display: inline-flex; overflow: hidden; height: 1.35em; line-height: 1.35em; }
.roll > span { display: block; position: relative; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.roll:hover > span { transform: translateY(-100%); }

/* Underline link */
.u-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.u-link:hover { background-size: 100% 1px; color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .4s var(--ease), border-color .4s, background-color .4s;
}
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 64px; padding: 0 34px; font-size: 17px; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
}
.btn-solid:hover { color: #fff; }
.btn-solid:hover::before { transform: none; }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn[disabled] { opacity: .6; pointer-events: none; }
[data-magnetic] { transition: transform .5s var(--ease), color .4s var(--ease), border-color .4s, background-color .4s; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    transition: transform .6s var(--ease), background-color .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.logo-mark { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: scale(1.5); }
.nav-links { display: flex; gap: 34px; font-size: 15px; color: var(--fg-2); }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg-2); transition: color .3s, border-color .3s; }
.icon-btn:hover { color: var(--fg); border-color: var(--fg); }
html[data-theme="dark"] .i-moon, html[data-theme="light"] .i-sun { display: none; }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; align-content: center; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--bg);
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 20px) 0 40px;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu-inner { display: flex; flex-direction: column; }
.menu-link { display: flex; align-items: baseline; gap: 16px; font-size: clamp(40px, 11vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu-num { font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.menu-cta { margin-top: 32px; align-self: flex-start; }

@media (max-width: 960px) {
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: grid; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 60px) 0 48px;
    overflow: hidden;
}
.hero::before { /* cursor-follow spotlight */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(650px circle at var(--mx, 72%) var(--my, 28%), color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%);
}
.hero::after { /* architectural column lines */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
    background-size: calc(100% / 6) 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 75%, transparent);
    opacity: .55;
}
.hero-inner { position: relative; z-index: 1; width: 100%; transform-origin: 50% 100%; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); margin-bottom: 30px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,213,118,.55); } 70% { box-shadow: 0 0 0 8px rgba(43,213,118,0); } 100% { box-shadow: 0 0 0 0 rgba(43,213,118,0); } }

.hero-title { font-size: clamp(50px, 10.2vw, 166px); line-height: .9; letter-spacing: -0.056em; font-weight: 500; margin-bottom: 48px; }
.hero-title em { color: var(--accent); padding-right: .05em; }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-sub { max-width: 540px; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.platforms { display: flex; flex-wrap: wrap; row-gap: 8px; margin-top: 36px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.platforms li { display: inline-flex; align-items: center; }
.platforms li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin: 0 14px; }

@media (max-width: 820px) {
    .hero-foot { grid-template-columns: 1fr; gap: 28px; }
    .hero-title { margin-bottom: 36px; }
}

/* Pre-animation states (only when JS + GSAP are active) */
html.js:not(.no-anim) .hero-title .line > span { transform: translateY(110%); }
html.js:not(.no-anim) .hero-fade { opacity: 0; transform: translateY(24px); }

/* ---------- Sheet (slides over hero) ---------- */
.sheet {
    position: relative;
    z-index: 2;
    background: var(--bg);
    border-radius: var(--radius) var(--radius) 0 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 -40px 90px rgba(0, 0, 0, .45);
}
html[data-theme="light"] .sheet { box-shadow: 0 -30px 80px rgba(0, 0, 0, .08); }

.section { padding: clamp(100px, 14vh, 170px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .h2 { grid-column: 2; }
.section-head .label { grid-row: 1; align-self: start; padding-top: 14px; }
.section-head .lead { grid-column: 2; }
@media (max-width: 900px) {
    .section-head { grid-template-columns: 1fr; }
    .section-head .h2, .section-head .lead { grid-column: 1; }
    .section-head .label { padding-top: 0; }
}

/* ---------- Statement (scroll-scrubbed words) ---------- */
.statement { padding: clamp(110px, 18vh, 220px) 0; }
.statement-text { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -0.038em; font-weight: 500; max-width: 1240px; }
.statement-text .w { transition: none; }

/* ---------- Services: stacking cards ---------- */
.stack { display: flex; flex-direction: column; gap: 28px; padding-bottom: 6vh; }
.stack-card {
    position: sticky;
    top: calc(var(--header-h) + 24px + var(--i) * 14px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    min-height: min(66vh, 560px);
    padding: clamp(26px, 3.6vw, 52px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transform-origin: 50% 0;
    will-change: transform;
}
.card-body { display: flex; flex-direction: column; }
.card-num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stack-card h3 { font-size: clamp(34px, 4.6vw, 72px); line-height: .95; letter-spacing: -0.045em; font-weight: 500; margin: 18px 0 22px; }
.stack-card p { color: var(--fg-2); max-width: 470px; font-size: clamp(16px, 1.25vw, 19px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--fg-2); }
.card-link { margin-top: auto; padding-top: 34px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; align-self: flex-start; }
.card-link .arrow { transition: transform .45s var(--ease); }
.card-link:hover .arrow { transform: translate(3px, -3px); }
.card-visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
        var(--card-2);
    color: var(--fg);
}
.card-visual svg { width: 56%; transition: transform .9s var(--ease); }
.card-visual:hover svg { transform: scale(1.06) rotate(-1.5deg); }
@media (max-width: 860px) {
    .stack-card { grid-template-columns: 1fr; top: calc(var(--header-h) + 12px + var(--i) * 10px); min-height: 0; }
    .card-visual { aspect-ratio: 16 / 9; grid-row: 1; }
}

/* ---------- Process: pinned horizontal scroll ---------- */
.process { position: relative; padding: clamp(100px, 14vh, 160px) 0; overflow: hidden; }
.process-track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--pad); width: max-content; }
.step { width: min(440px, 78vw); display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.step-num { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 7vw, 104px); line-height: .9; color: var(--accent); }
.step h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.035em; font-weight: 500; }
.step p { color: var(--fg-2); }
.step-time { margin-top: 12px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.process-progress { height: 1px; margin: 64px var(--pad) 0; background: var(--line); position: relative; }
.process-progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 900px) {
    .process { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 899px) {
    .process-track { flex-direction: column; width: auto; }
    .step { width: auto; }
    .process-progress { display: none; }
}

/* ---------- Why us (inverted rising panel) ---------- */
.panel {
    margin: 0 clamp(8px, 1.2vw, 16px);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--fg);
    transform-origin: 50% 0;
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.why-item { padding: 34px 28px 10px; border-left: 1px solid var(--line); }
.why-item:first-child { border-left: 0; padding-left: 0; }
.why-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.why-item h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 500; margin: 24px 0 10px; }
.why-item p { color: var(--fg-2); font-size: 15.5px; }
@media (max-width: 1000px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-item { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
    .why-item:first-child { border-top: 0; }
}

.proof { margin-top: clamp(72px, 9vw, 120px); }
.proof-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.proof-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    transition: padding .6s var(--ease);
}
.proof-row:last-child { border-bottom: 1px solid var(--line); }
.proof-row:hover { padding-left: 14px; }
.proof-row img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.proof-row h3 { font-size: clamp(28px, 3.4vw, 50px); letter-spacing: -0.045em; font-weight: 500; line-height: 1; }
.proof-meta { color: var(--muted); font-size: 14.5px; text-align: right; }
.proof-meta strong { display: block; color: var(--fg); font-weight: 500; }
@media (max-width: 640px) {
    .proof-row { grid-template-columns: 48px 1fr; }
    .proof-row img { width: 48px; height: 48px; }
    .proof-meta { grid-column: 2; text-align: left; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    cursor: pointer;
    font-size: clamp(19px, 1.7vw, 25px);
    font-weight: 500;
    letter-spacing: -0.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }
.faq-body { padding: 0 60px 30px 0; color: var(--fg-2); max-width: 760px; }

/* ---------- Contact ---------- */
.contact-title { font-size: clamp(50px, 9vw, 150px); line-height: .9; letter-spacing: -0.056em; font-weight: 500; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 120px); margin-top: clamp(56px, 7vw, 96px); }
.contact-side p { color: var(--fg-2); font-size: 18px; max-width: 420px; }
.contact-mail { display: inline-block; margin-top: 28px; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.03em; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.contact-mail:hover { border-color: var(--accent); color: var(--accent); }
.facts { margin-top: 44px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts span:first-child { color: var(--muted); }

.form { display: grid; gap: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field label { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    border-radius: 0;
    color: var(--fg);
    font: inherit;
    font-size: 19px;
    padding: 10px 0 14px;
    outline: none;
    transition: border-color .3s;
    -webkit-appearance: none;
    appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { display: none; padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.form-status.is-success { display: block; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.form-status.is-error { display: block; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); animation: formShake .42s var(--ease); }

/* Sending & Sent animations */
.form-stage { position: relative; }
.form[hidden] { display: none; }
.form.is-sending { pointer-events: none; }
.form.is-sending .field { opacity: .55; transition: opacity .3s; }
.btn-spinner { display: none; animation: spin .75s linear infinite; }
.btn-submit.is-sending { background: var(--accent); color: #fff; opacity: 1; }
.btn-submit.is-sending .btn-spinner { display: block; }
.btn-submit.is-sending .arrow { display: none; }
.btn-submit.is-sending::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 3px; width: 42%;
    background: rgba(255, 255, 255, .75);
    animation: sendBar 1.1s var(--ease) infinite;
}
.form-sent {
    padding: clamp(32px, 4vw, 52px);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    animation: sentReveal .7s var(--ease) both;
}
.form-sent[hidden] { display: none; }
.sent-icon { width: 64px; height: 64px; color: var(--ok); }
.sent-circle { stroke-dasharray: 180; stroke-dashoffset: 180; animation: drawStroke .7s var(--ease) .1s forwards; }
.sent-check { stroke-dasharray: 48; stroke-dashoffset: 48; animation: drawStroke .45s var(--ease) .55s forwards; }
.sent-pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--ok) 12%, transparent);
    color: var(--ok); font-size: 13px; font-weight: 500;
}
.sent-title { font-size: clamp(34px, 4vw, 56px); line-height: .96; letter-spacing: -0.045em; font-weight: 500; }
.sent-copy { color: var(--fg-2); font-size: 17px; max-width: 480px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sendBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes sentReveal { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes formShake { 0%, 100% { transform: translateX(0); } 22% { transform: translateX(-6px); } 48% { transform: translateX(5px); } 74% { transform: translateX(-3px); } }
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-inner { padding-top: clamp(72px, 9vw, 130px); }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(56px, 7vw, 96px); margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer-brand p { color: var(--fg-2); max-width: 380px; font-size: 15.5px; }
.footer-mail { display: inline-block; margin-top: 20px; font-size: 18px; color: var(--fg); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.footer-mail:hover { border-color: var(--accent); }
.footer-h { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-cols ul { display: grid; gap: 10px; color: var(--fg-2); font-size: 15.5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-word {
    font-size: clamp(84px, 22.5vw, 380px);
    line-height: .78;
    letter-spacing: -0.075em;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    margin-bottom: -0.11em;
    color: var(--fg);
    user-select: none;
}
.footer-word .ch { display: inline-block; }
@media (max-width: 900px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(80px, 12vh, 140px)) 0 clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at 85% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--fg); }
.page-title { font-size: clamp(46px, 7.6vw, 124px); line-height: .92; letter-spacing: -0.052em; font-weight: 500; max-width: 1200px; }
.page-intro { margin-top: 32px; font-size: clamp(17px, 1.45vw, 21px); color: var(--fg-2); max-width: 700px; }
.page-hero .hero-cta { margin-top: 40px; }

.deliver-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.deliver-item { padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line); }
.deliver-item:nth-child(even) { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.deliver-item .card-num { display: block; margin-bottom: 18px; }
.deliver-item h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; font-weight: 500; margin-bottom: 10px; }
.deliver-item p { color: var(--fg-2); max-width: 460px; }
@media (max-width: 760px) {
    .deliver-grid { grid-template-columns: 1fr; }
    .deliver-item, .deliver-item:nth-child(even) { padding: 30px 0; border-left: 0; }
}
.stack-list { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-list .tag { font-size: 15px; padding: 10px 18px; }

.other-services { border-top: 1px solid var(--line); }
.other-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -0.04em; font-weight: 500; transition: padding .6s var(--ease), color .3s; }
.other-row:hover { padding-left: 14px; color: var(--accent); }
.other-row .card-num { font-size: 14px; letter-spacing: 0; }

.prose { max-width: 760px; padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 140px); }
.prose h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.025em; font-weight: 500; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fg-2); }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; margin-top: 12px; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.updated { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- Custom cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor-dot.is-hidden { opacity: 0 !important; }
.cursor-ring {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    mix-blend-mode: difference;
    display: grid;
    place-items: center;
    transition: opacity .3s, width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .35s, border-color .35s, border-radius .35s;
}
.cursor-ring.is-link { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(255, 255, 255, .12); border-color: transparent; }
.cursor-ring.is-label { width: 98px; height: 98px; margin: -49px 0 0 -49px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
.cursor-ring.is-text { width: 2px; height: 30px; margin: -15px 0 0 -1px; border-radius: 2px; background: #fff; border-color: transparent; }
.cursor-ring.is-down { border-color: var(--accent); }
.cursor-label { font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .5s var(--ease); }
.cursor-ring.is-label .cursor-label { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html.js .hero-title .line > span, html.js .hero-fade { transform: none !important; opacity: 1 !important; }
}
