:root {
    --ink: #f6f1e8;
    --muted: rgba(246, 241, 232, 0.68);
    --soft: rgba(246, 241, 232, 0.1);
    --line: rgba(246, 241, 232, 0.18);
    --dark: #090a07;
    --panel: #15160f;
    --panel-strong: #1e2116;
    --accent: #d8ff5f;
    --accent-soft: rgba(216, 255, 95, 0.12);
    --rust: #be674d;
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
    --header-height: 84px;
    --max: 1240px;
    --viewport-height: 100svh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--dark);
    color: var(--ink);
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-height: var(--viewport-height);
    overflow-x: hidden;
    background:
        linear-gradient(110deg, rgba(9, 10, 7, 0.94) 0%, rgba(9, 10, 7, 0.88) 48%, rgba(31, 33, 22, 0.86) 100%),
        radial-gradient(circle at 73% 20%, rgba(216, 255, 95, 0.18), transparent 31%),
        radial-gradient(circle at 12% 86%, rgba(190, 103, 77, 0.18), transparent 28%),
        var(--dark);
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── HEADER ─────────────────────────────────── */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    isolation: isolate;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(18px, 4vw, 48px);
    transition: opacity 280ms ease;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: calc(var(--header-height) + 56px);
    z-index: -1;
    background: linear-gradient(to bottom,
            rgba(9, 10, 7, 0.99) 0%,
            rgba(9, 10, 7, 0.96) 14%,
            rgba(9, 10, 7, 0.84) 30%,
            rgba(9, 10, 7, 0.54) 58%,
            rgba(9, 10, 7, 0.16) 82%,
            rgba(9, 10, 7, 0) 100%);
    pointer-events: none;
    opacity: 0.78;
    transition: opacity 280ms ease;
}

.site-header.is-scrolled {
    background: transparent;
}

.site-header.is-scrolled::after {
    opacity: 1;
}

/* ─── BRAND ──────────────────────────────────── */
.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: 1;
    transition: opacity 220ms ease;
    position: relative;
    z-index: 101;
    white-space: nowrap;
    flex: 0 0 auto;
    width: min(214px, calc((var(--header-height) - 24px) * 5.12));
    height: min(42px, calc(var(--header-height) - 24px));
    overflow: hidden;
}

.brand:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ─── DESKTOP NAV ────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pill container for the nav links */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(246, 241, 232, 0.13);
    border-radius: 999px;
    background: rgba(9, 10, 7, 0.56);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-pill a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(246, 241, 232, 0.62);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 180ms ease, background-color 180ms ease;
}

.nav-pill a:hover {
    color: var(--ink);
    background: rgba(246, 241, 232, 0.08);
}

.nav-pill a.is-active {
    color: var(--dark);
    background: var(--accent);
    font-weight: 700;
}

.nav-pill a.is-active:hover {
    background: #c8f040;
    color: var(--dark);
}

/* CTA button beside the pill */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(216, 255, 95, 0.48);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(216, 255, 95, 0.09);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.nav-cta i {
    font-size: 0.7rem;
    transition: transform 200ms ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: #0e1007;
    border-color: var(--accent);
    box-shadow: 0 6px 22px rgba(216, 255, 95, 0.3);
    transform: translateY(-1px);
}

.nav-cta:hover i {
    transform: translateX(3px);
}

/* ─── HAMBURGER TOGGLE ───────────────────────── */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 101;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(246, 241, 232, 0.18);
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.06);
    color: var(--ink);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.nav-toggle:hover {
    background: rgba(246, 241, 232, 0.12);
    border-color: rgba(246, 241, 232, 0.32);
}

.nav-toggle-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease, width 300ms ease;
}

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

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

/* ─── MOBILE FULL-SCREEN OVERLAY ─────────────── */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(9, 10, 7, 0.99) 0%, rgba(18, 20, 12, 0.98) 100%),
        radial-gradient(circle at 80% 10%, rgba(216, 255, 95, 0.14), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(190, 103, 77, 0.12), transparent 35%);
    /* hidden by default */
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0ms linear 400ms;
}

.mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0ms linear 0ms;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: calc(var(--header-height) + 24px) 28px 40px;
    overflow-y: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(246, 241, 232, 0.1);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    /* stagger-in animation */
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
        color 180ms ease;
}

.mobile-nav.is-open .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav-item:nth-child(1) {
    transition-delay: 80ms;
}

.mobile-nav.is-open .mobile-nav-item:nth-child(2) {
    transition-delay: 130ms;
}

.mobile-nav.is-open .mobile-nav-item:nth-child(3) {
    transition-delay: 180ms;
}

.mobile-nav.is-open .mobile-nav-item:nth-child(4) {
    transition-delay: 230ms;
}

.mobile-nav.is-open .mobile-nav-item:nth-child(5) {
    transition-delay: 280ms;
}

.mobile-nav-item:hover .mobile-nav-label,
.mobile-nav-item:hover .mobile-nav-num {
    color: var(--accent);
}

.mobile-nav-num {
    color: rgba(216, 255, 95, 0.6);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 28px;
    transition: color 180ms ease;
}

.mobile-nav-label {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 10vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    transition: color 180ms ease;
}

.mobile-nav-item.is-active .mobile-nav-label {
    color: var(--accent);
}

.mobile-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(246, 241, 232, 0.1);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 380ms ease 320ms, transform 380ms cubic-bezier(0.22, 1, 0.36, 1) 320ms;
}

.mobile-nav.is-open .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-footer p {
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(246, 241, 232, 0.5);
}

.mobile-nav-socials {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-nav-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(246, 241, 232, 0.16);
    border-radius: 999px;
    color: var(--muted);
    font-size: 1rem;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.mobile-nav-socials a:hover {
    border-color: rgba(216, 255, 95, 0.5);
    color: var(--accent);
    background: rgba(216, 255, 95, 0.08);
}

.hero-shell {
    position: relative;
    min-height: var(--viewport-height);
    isolation: isolate;
    overflow: hidden;
}

.hero-shell::before,
.section::before,
.process-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(246, 241, 232, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 241, 232, 0.045) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.12));
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 10, 7, 0.96) 0%, rgba(9, 10, 7, 0.86) 43%, rgba(9, 10, 7, 0.34) 100%),
        linear-gradient(180deg, rgba(9, 10, 7, 0.2) 0%, var(--dark) 100%);
}

.hero {
    min-height: calc(var(--viewport-height) - 58px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 92px);
    padding: calc(var(--header-height) + 34px) clamp(18px, 5vw, 72px) 28px;
}

.hero-copy {
    max-width: 860px;
    padding-top: 3vh;
}

.eyebrow,
.section-kicker,
.plan-label,
.project-card span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow {
    width: fit-content;
    margin-bottom: clamp(18px, 3vw, 30px);
    padding: 9px 13px;
    border: 1px solid rgba(216, 255, 95, 0.38);
    border-radius: 999px;
    background: rgba(216, 255, 95, 0.06);
}

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0;
}

h1 {
    max-width: 780px;
    font-size: clamp(4.25rem, 9vw, 10.8rem);
    line-height: 0.84;
    text-wrap: balance;
}

h2 {
    font-size: clamp(3rem, 6vw, 7.3rem);
    line-height: 0.9;
    text-wrap: balance;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    line-height: 1.05;
}

p {
    color: var(--muted);
    line-height: 1.62;
}

.hero-line {
    max-width: 620px;
    margin-top: clamp(24px, 3vw, 34px);
    font-size: clamp(1.06rem, 1.55vw, 1.42rem);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(28px, 4vw, 44px);
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button::before {
    display: none;
}

.button span,
.button i {
    position: relative;
    z-index: 1;
}

.button-primary {
    background: var(--accent);
    color: #101207;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.button-primary:hover {
    background: #c8f040;
    box-shadow: 0 14px 32px rgba(216, 255, 95, 0.26), 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(246, 241, 232, 0.06);
}

.button-secondary:hover {
    border-color: rgba(246, 241, 232, 0.34);
    background: rgba(246, 241, 232, 0.12);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: min(70svh, 680px);
    align-self: stretch;
    perspective: 1200px;
    --cursor-x: 0;
    --cursor-y: 0;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 7% -18% 0 10%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(216, 255, 95, 0.28), transparent 60%);
    filter: blur(54px);
    opacity: 0.7;
}

.visual-ruler {
    position: absolute;
    left: 2%;
    right: -11%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 241, 232, 0.4), transparent);
    transform: rotate(-8deg);
    opacity: 0.55;
}

.visual-ruler-top {
    top: 17%;
}

.visual-ruler-bottom {
    bottom: 20%;
}

.blueprint,
.device-cluster {
    position: absolute;
    border: 1px solid rgba(246, 241, 232, 0.18);
    background:
        linear-gradient(135deg, rgba(246, 241, 232, 0.12), rgba(246, 241, 232, 0.03)),
        rgba(16, 18, 11, 0.82);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, box-shadow 360ms ease;
}

.blueprint-main {
    width: min(35vw, 520px);
    aspect-ratio: 0.84;
    right: 4%;
    top: 9%;
    overflow: hidden;
    border-radius: 34px;
    transform: rotate(-7deg);
}

.blueprint-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(216, 255, 95, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 255, 95, 0.1) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.32;
}

.blueprint-main:hover {
    border-color: rgba(216, 255, 95, 0.5);
    box-shadow: 0 44px 110px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(216, 255, 95, 0.18);
    transform: rotate(-3deg) translateY(-10px) scale(1.02);
}

.blueprint-code:hover {
    border-color: rgba(216, 255, 95, 0.5);
    box-shadow: 0 44px 110px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(216, 255, 95, 0.18);
    transform: rotate(4deg) translateY(-10px) scale(1.04);
}

.device-cluster:hover {
    border-color: rgba(216, 255, 95, 0.5);
    box-shadow: 0 44px 110px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(216, 255, 95, 0.18);
    transform: rotate(1deg) translateY(-10px) scale(1.04);
}

.blueprint-topbar {
    position: relative;
    z-index: 1;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(246, 241, 232, 0.14);
}

.blueprint-topbar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.28);
}

.blueprint-topbar span:first-child {
    background: var(--accent);
}

.blueprint-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    padding: 28px;
}

.blueprint-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, rgba(216, 255, 95, 0.16), transparent);
    opacity: 0.35;
    transform: translateY(0);
    pointer-events: none;
}

.blueprint-title {
    display: grid;
    gap: 6px;
}

.blueprint-title strong {
    max-width: 260px;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2.5vw, 2.8rem);
    line-height: 0.98;
}

.blueprint-title span,
.studio-note small {
    color: rgba(246, 241, 232, 0.66);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wire {
    border: 1px solid rgba(246, 241, 232, 0.16);
    border-radius: 18px;
    background: rgba(246, 241, 232, 0.055);
}

.wire-hero {
    height: clamp(92px, 12vw, 160px);
    background:
        radial-gradient(circle at 78% 26%, rgba(216, 255, 95, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(216, 255, 95, 0.1), rgba(246, 241, 232, 0.035));
}

.wire-copy {
    width: 82%;
    height: 14px;
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.24);
}

.wire-short {
    width: 56%;
}

.wire-cta {
    width: 136px;
    height: 40px;
    border-color: rgba(216, 255, 95, 0.42);
    border-radius: 999px;
    background: rgba(216, 255, 95, 0.12);
}

.module-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.module-stack span {
    aspect-ratio: 1;
    border: 1px solid rgba(246, 241, 232, 0.14);
    border-radius: 16px;
    background: rgba(246, 241, 232, 0.055);
}

.blueprint-code {
    width: min(21vw, 310px);
    min-height: 178px;
    left: -1%;
    top: 24%;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 24px;
    border-radius: 26px;
    transform: rotate(8deg);
}

.code-line {
    display: block;
    width: 74%;
    height: 10px;
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.22);
}

.code-line-long {
    width: 100%;
    background: rgba(216, 255, 95, 0.42);
}

.code-line-mid {
    width: 86%;
}

.code-line-short {
    width: 48%;
}

.device-cluster {
    width: min(24vw, 350px);
    aspect-ratio: 1.25;
    right: -4%;
    bottom: 7%;
    display: grid;
    place-items: center;
    border-radius: 28px;
    transform: rotate(5deg);
}

.device {
    position: absolute;
    border: 1px solid rgba(246, 241, 232, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(216, 255, 95, 0.18), transparent 42%),
        rgba(9, 10, 7, 0.82);
}

.device-desktop {
    width: 70%;
    height: 52%;
    left: 14%;
    top: 22%;
}

.device-mobile {
    width: 24%;
    height: 60%;
    right: 17%;
    bottom: 15%;
    border-radius: 16px;
}

.device-desktop::before,
.device-mobile::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 18%;
    height: 8px;
    border-radius: 999px;
    background: rgba(216, 255, 95, 0.42);
    box-shadow: 0 20px 0 rgba(246, 241, 232, 0.12), 0 40px 0 rgba(246, 241, 232, 0.08);
}

.studio-note {
    position: absolute;
    left: 8%;
    bottom: 16%;
    width: 154px;
    min-height: 154px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(216, 255, 95, 0.38);
    border-radius: 999px;
    background: rgba(9, 10, 7, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(246, 241, 232, 0.08);
}

.studio-note span {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.hero-footer {
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    border-top: 1px solid rgba(246, 241, 232, 0.14);
    color: rgba(246, 241, 232, 0.7);
    font-size: 0.77rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.hero-footer span {
    padding: 19px 12px;
    border-left: 1px solid rgba(246, 241, 232, 0.12);
}

.hero-footer span:first-child {
    border-left: 0;
}

.section,
.process-section {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(76px, 10vw, 150px) clamp(18px, 4vw, 48px);
}

.section-intro {
    max-width: none;
    padding-left: clamp(18px, 5vw, 72px);
    padding-right: clamp(18px, 5vw, 72px);
}

.intro-grid,
.section-head,
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
    gap: clamp(32px, 7vw, 110px);
    align-items: start;
}

.intro-copy {
    display: grid;
    gap: 18px;
    padding-top: 12px;
    font-size: 1.04rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(52px, 7vw, 90px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.proof-item {
    display: grid;
    gap: 8px;
    padding: clamp(26px, 4vw, 46px);
    border-left: 1px solid var(--line);
}

.proof-item:first-child {
    border-left: 0;
}

.proof-item strong {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 6vw, 6rem);
    line-height: 0.9;
}

.proof-item span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.expertise-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: stretch;
    margin-top: clamp(32px, 5vw, 58px);
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(216, 255, 95, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(216, 255, 95, 0.09), transparent 42%),
        rgba(246, 241, 232, 0.04);
}

.expertise-copy {
    display: grid;
    align-content: space-between;
    gap: 18px;
}

.expertise-copy h3 {
    max-width: 520px;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 0.92;
}

.expertise-copy p {
    max-width: 520px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stack-item {
    min-height: 148px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 10, 7, 0.34);
    transition: transform 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.stack-item:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 255, 95, 0.42);
    background: rgba(216, 255, 95, 0.06);
}

.stack-item i {
    color: var(--accent);
    font-size: 1.55rem;
}

.stack-item strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.stack-item span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.stack-item-wide {
    grid-column: span 2;
    min-height: 112px;
}

.process-section {
    max-width: none;
    padding: clamp(86px, 11vw, 150px) 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(246, 241, 232, 0.035), transparent 38%),
        rgba(246, 241, 232, 0.015);
}

.process-shell {
    display: grid;
    gap: clamp(24px, 4vw, 48px);
}

.process-heading {
    width: min(var(--max), calc(100vw - 36px));
    display: grid;
    justify-items: start;
    margin: 0 auto;
    text-align: left;
}

.process-heading h2 {
    max-width: 890px;
}

.process-heading p {
    max-width: 620px;
    margin-top: 18px;
}

.process-meta {
    width: min(var(--max), calc(100vw - 36px));
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
}

.process-meta span {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(9, 10, 7, 0.26);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-viewport {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.timeline-viewport::-webkit-scrollbar {
    display: none;
}

.timeline-track {
    display: flex;
    align-items: stretch;
    gap: clamp(14px, 2vw, 22px);
    width: max-content;
    padding: 0 max(18px, calc((100vw - var(--max)) / 2)) 22px;
}

.timeline-step {
    width: clamp(290px, 32vw, 430px);
    min-height: 330px;
    display: grid;
    align-content: space-between;
    gap: 26px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(216, 255, 95, 0.11), rgba(246, 241, 232, 0.035)),
        rgba(15, 17, 11, 0.86);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    position: relative;
    transition: transform 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.timeline-step::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-step:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 255, 95, 0.42);
}

.timeline-step:hover::after {
    transform: translateX(100%);
}

.timeline-step span {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: clamp(3.4rem, 6vw, 6rem);
    line-height: 0.8;
}

.timeline-step h3 {
    max-width: 310px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.8vw, 4rem);
    line-height: 0.9;
}

.timeline-step p {
    max-width: 350px;
}

.section-head {
    margin-bottom: clamp(36px, 6vw, 74px);
}

.section-head p {
    padding-top: 14px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.pricing-plan {
    display: grid;
    gap: 22px;
    align-content: start;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(246, 241, 232, 0.045);
    transition: transform 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.pricing-plan.is-featured {
    background:
        linear-gradient(135deg, rgba(216, 255, 95, 0.14), rgba(246, 241, 232, 0.05)),
        rgba(246, 241, 232, 0.06);
    border-color: rgba(216, 255, 95, 0.44);
}

.pricing-plan:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 255, 95, 0.34);
    background-color: rgba(246, 241, 232, 0.07);
}

.pricing-plan h3 {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.9;
}

.pricing-plan h3 span {
    color: var(--muted);
    font-size: 0.38em;
}

.pricing-plan ul {
    display: grid;
    gap: 12px;
    list-style: none;
    color: var(--muted);
}

.pricing-plan li {
    position: relative;
    padding-left: 22px;
}

.pricing-plan li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

.pricing-plan .button {
    width: fit-content;
    margin-top: 10px;
}

.pricing-note {
    margin-top: 14px;
    color: rgba(246, 241, 232, 0.56);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

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

.service-list article {
    display: grid;
    grid-template-columns: 80px minmax(220px, 0.45fr) minmax(260px, 0.55fr);
    gap: clamp(18px, 4vw, 64px);
    align-items: start;
    padding: clamp(24px, 4vw, 44px) 0;
    border-bottom: 1px solid var(--line);
}

.service-list span {
    color: var(--accent);
    font-weight: 900;
}

.service-list h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 4rem);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.project-card {
    min-width: 0;
}

.project-card a,
.project-card>div {
    display: grid;
    gap: 13px;
    height: 100%;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(0);
    transition: border-color 240ms ease;
}

.project-card:hover a,
.project-card:hover>div {
    border-color: rgba(216, 255, 95, 0.48);
}

.project-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    filter: saturate(0.9);
    transition: transform 320ms ease, filter 320ms ease;
    will-change: transform;
}

.project-card:hover img {
    transform: translateY(-6px);
    filter: saturate(1.05);
}

.project-card h3 {
    font-family: var(--font-serif);
}

.project-card p {
    font-size: 0.92rem;
}

.project-placeholder-media {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216, 255, 95, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(216, 255, 95, 0.12), rgba(246, 241, 232, 0.03)),
        rgba(9, 10, 7, 0.44);
    transform: translateY(0);
    transition: transform 320ms ease, border-color 240ms ease, background-color 240ms ease;
    will-change: transform;
}

.project-card:hover .project-placeholder-media {
    transform: translateY(-6px);
    border-color: rgba(216, 255, 95, 0.48);
    background-color: rgba(216, 255, 95, 0.06);
}

.project-placeholder-media span {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.8;
}

.contact-section {
    max-width: none;
    padding-left: clamp(18px, 5vw, 72px);
    padding-right: clamp(18px, 5vw, 72px);
}

.contact-panel {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 62px);
    border: 1px solid rgba(216, 255, 95, 0.28);
    border-radius: 8px;
    background:
        radial-gradient(circle at 15% 20%, rgba(216, 255, 95, 0.12), transparent 30%),
        rgba(246, 241, 232, 0.05);
}

.contact-panel h2 {
    margin-bottom: 18px;
}

.contact-links {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(246, 241, 232, 0.04);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.contact-links a:hover {
    border-color: rgba(216, 255, 95, 0.48);
    background: rgba(216, 255, 95, 0.06);
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.contact-links i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(216, 255, 95, 0.12);
    color: var(--accent);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background-color 200ms ease;
}

.contact-links a:hover i {
    background: rgba(216, 255, 95, 0.22);
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    padding: 14px 15px;
    color: var(--ink);
    background: rgba(9, 10, 7, 0.54);
    resize: vertical;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(216, 255, 95, 0.58);
    background: rgba(9, 10, 7, 0.78);
}

.contact-form .button {
    width: fit-content;
    margin-top: 8px;
}

.form-success-message {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
}

.form-success-message.active {
    display: flex;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--line);
}

.site-footer p {
    font-size: 0.88rem;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 58;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #101207;
    background: var(--accent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    font-size: 1.35rem;
    transition: transform 200ms ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.reveal-section {
    opacity: 1;
    transform: none;
}

html.has-js .reveal-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-js .reveal-section.is-visible {
    opacity: 1;
    transform: none;
}

html.has-js .reveal-section .pricing-plan,
html.has-js .reveal-section .service-list article,
html.has-js .reveal-section .project-card,
html.has-js .reveal-section .proof-item,
html.has-js .reveal-section .stack-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-js .reveal-section.is-visible .pricing-plan,
html.has-js .reveal-section.is-visible .service-list article,
html.has-js .reveal-section.is-visible .project-card,
html.has-js .reveal-section.is-visible .proof-item,
html.has-js .reveal-section.is-visible .stack-item {
    opacity: 1;
    transform: none;
}

html.has-js .reveal-section.is-visible .pricing-plan:nth-child(2),
html.has-js .reveal-section.is-visible .service-list article:nth-child(2),
html.has-js .reveal-section.is-visible .project-card:nth-child(2),
html.has-js .reveal-section.is-visible .proof-item:nth-child(2),
html.has-js .reveal-section.is-visible .stack-item:nth-child(2) {
    transition-delay: 90ms;
}

html.has-js .reveal-section.is-visible .pricing-plan:nth-child(3),
html.has-js .reveal-section.is-visible .service-list article:nth-child(3),
html.has-js .reveal-section.is-visible .project-card:nth-child(3),
html.has-js .reveal-section.is-visible .proof-item:nth-child(3),
html.has-js .reveal-section.is-visible .stack-item:nth-child(3) {
    transition-delay: 180ms;
}

html.has-js .reveal-section.is-visible .service-list article:nth-child(4),
html.has-js .reveal-section.is-visible .project-card:nth-child(4),
html.has-js .reveal-section.is-visible .stack-item:nth-child(4) {
    transition-delay: 270ms;
}

html.has-js .reveal-section.is-visible .project-card:nth-child(n+5) {
    transition-delay: 330ms;
}

body.page-loaded .eyebrow,
body.page-loaded h1,
body.page-loaded .hero-line,
body.page-loaded .hero-actions,
body.page-loaded .hero-footer,
body.page-loaded .blueprint,
body.page-loaded .device-cluster,
body.page-loaded .studio-note {
    animation: enter 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-loaded h1 {
    animation-delay: 70ms;
}

body.page-loaded .hero-line {
    animation-delay: 160ms;
}

body.page-loaded .hero-actions {
    animation-delay: 250ms;
}

body.page-loaded .blueprint-main {
    animation-delay: 180ms;
}

body.page-loaded .blueprint-code {
    animation-delay: 280ms;
}

body.page-loaded .device-cluster,
body.page-loaded .studio-note {
    animation-delay: 360ms;
}

body.page-loaded .hero-footer {
    animation-delay: 460ms;
}

body.page-loaded .brand-logo {
    animation: logoSettle 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes enter {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes logoSettle {
    from {
        opacity: 0;
        transform: rotate(-18deg) scale(0.78);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@media (max-width: 1100px) {

    .pricing-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list article {
        grid-template-columns: 56px 1fr;
    }

    .service-list p {
        grid-column: 2;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 74px;
    }

    .site-header {
        padding: 0 18px;
    }

    /* Hide desktop pill nav, show toggle */
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: calc(var(--viewport-height) - 58px);
        grid-template-columns: 1fr;
        gap: 20px;
        padding: calc(var(--header-height) + 20px) 18px 0;
    }

    .hero-copy {
        max-width: 720px;
        padding-top: 0;
    }

    .hero-visual {
        min-height: 500px;
        margin: 0 -18px;
        overflow: hidden;
    }

    .blueprint-main {
        width: min(68vw, 410px);
        right: 10%;
        top: 8%;
    }

    .blueprint-code {
        width: min(38vw, 240px);
        left: 5%;
        top: 23%;
    }

    .device-cluster {
        width: min(44vw, 280px);
        right: 2%;
        bottom: 9%;
    }

    .studio-note {
        left: 9%;
        bottom: 13%;
        width: 124px;
        min-height: 124px;
    }

    .studio-note span {
        font-size: 1.65rem;
    }

    .intro-grid,
    .section-head,
    .contact-panel,
    .expertise-panel {
        grid-template-columns: 1fr;
    }
}

@supports (height: 100dvh) {
    :root {
        --viewport-height: 100dvh;
    }
}

@media (max-width: 720px) {
    body {
        background:
            linear-gradient(180deg, rgba(9, 10, 7, 0.94), rgba(9, 10, 7, 0.92)),
            radial-gradient(circle at 68% 15%, rgba(216, 255, 95, 0.2), transparent 34%),
            var(--dark);
    }

    .brand-logo {
        width: 100%;
        height: 100%;
    }

    .brand {
        width: min(174px, 48vw);
        height: 34px;
    }

    .eyebrow {
        max-width: 100%;
        border-radius: 14px;
    }

    h1 {
        max-width: 340px;
        font-size: clamp(3.7rem, 18vw, 5.4rem);
    }

    h2 {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    .hero-line {
        max-width: 360px;
        font-size: 1.02rem;
        line-height: 1.52;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-links a[href^="mailto:"] {
        padding: 12px 14px;
        gap: 10px;
        font-size: 0.8rem;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }

    .button {
        min-height: 50px;
        padding: 0 14px;
        font-size: 0.88rem;
    }

    .hero-visual {
        min-height: 420px;
        margin-top: 8px;
    }

    .hero-visual::before {
        inset: 10% -35% 8% -12%;
    }

    .blueprint-main {
        width: min(82vw, 330px);
        right: -2%;
        top: 8%;
        border-radius: 24px;
        transform: rotate(-5deg);
    }

    .blueprint-code {
        width: min(48vw, 190px);
        min-height: 136px;
        left: -5%;
        top: 28%;
        gap: 10px;
        padding: 18px;
        border-radius: 18px;
    }

    .device-cluster {
        width: min(52vw, 210px);
        right: 5%;
        bottom: 7%;
        border-radius: 18px;
    }

    .studio-note {
        left: 3%;
        bottom: 8%;
        width: 108px;
        min-height: 108px;
    }

    .studio-note span {
        font-size: 1.42rem;
    }

    .studio-note small,
    .blueprint-title span {
        font-size: 0.62rem;
    }

    .blueprint-grid {
        gap: 12px;
        padding: 20px;
    }

    .module-stack {
        gap: 7px;
    }

    .wire-hero {
        height: 88px;
    }

    .hero-footer {
        grid-template-columns: 1fr 1fr;
        margin-top: -4px;
        font-size: 0.68rem;
    }

    .hero-footer span:nth-child(odd) {
        border-left: 0;
    }

    .hero-footer span {
        padding: 14px 8px;
        border-top: 1px solid rgba(246, 241, 232, 0.12);
    }

    .portfolio-section.reveal-section,
    html.has-js .portfolio-section.reveal-section {
        opacity: 1;
        transform: none;
    }

    html.has-js .portfolio-section.reveal-section .project-card {
        opacity: 1;
        transform: none;
    }

    .proof-grid,
    .stack-grid,
    .pricing-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stack-item-wide {
        grid-column: auto;
    }

    .proof-item,
    .proof-item:first-child {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .proof-item:first-child {
        border-top: 0;
    }

    .process-section {
        padding: 76px 0;
    }

    .timeline-viewport {
        scroll-snap-type: x mandatory;
    }

    .timeline-track {
        animation: none;
        padding: 0 18px 10px;
    }

    .timeline-step {
        width: min(82vw, 350px);
        min-height: 290px;
        scroll-snap-align: start;
    }

    .service-list article {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-list p {
        grid-column: auto;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 86px;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 3.35rem;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 385px;
    }
}

@media (prefers-reduced-motion: reduce) {

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

    .reveal-section {
        opacity: 1;
        transform: none;
    }

    html.has-js .reveal-section .pricing-plan,
    html.has-js .reveal-section .service-list article,
    html.has-js .reveal-section .project-card,
    html.has-js .reveal-section .proof-item,
    html.has-js .reveal-section .stack-item {
        opacity: 1;
        transform: none;
    }
}
