﻿@font-face {
    font-family: "Sort Hand";
    src: url("../assets/fonts/sort-hand-kalam-700.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --page: #050605;
    --page-wash: #080a08;
    --obsidian: #0b0e0c;
    --obsidian-2: #10140f;
    --obsidian-3: #151a13;
    --paper: #eee5cf;
    --paper-hover: #fbf2dd;
    --paper-soft: #d9ceb5;
    --surface: var(--obsidian-2);
    --surface-soft: var(--obsidian-3);
    --surface-hover: #1a2118;
    --ink: #171814;
    --text: #f5eedf;
    --muted: #b9b09b;
    --faint: #7f806f;
    --line: rgba(245, 238, 223, 0.13);
    --line-light: rgba(245, 238, 223, 0.26);
    --accent: #8b7884;
    --accent-warm: #c49358;
    --hand-yellow: #ffd86b;
    --focus: rgba(196, 147, 88, 0.58);
    --radius: 14px;
    --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --hand: "Sort Hand", "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
    --urdu-font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Urdu Typesetting", "Segoe UI", Tahoma, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --hand-note-size: clamp(1rem, 1.1vw, 1.42rem);
    --hand-note-leading: 1.08;
    --hand-note-tracking: -0.035em;
    --hand-note-opacity: 0.9;
    --veil-opacity: 0;
    --scroll-progress: 0;
    --header-space: 92px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-space);
    scroll-snap-type: y mandatory;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

html[lang="ur"] body {
    font-family: var(--urdu-font);
    line-height: 1.78;
}

body::before {
    content: none;
}

img, video { max-width: 100%; height: auto; }
a { color: inherit; }

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.7rem 0.9rem;
    clip: auto;
    border: 1px solid var(--line-light);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.hand-note {
    color: var(--hand-yellow);
    font-family: var(--hand);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.mobile-quip { display: none; }

html[lang="ur"] .hand-note {
    font-family: var(--urdu-font);
    letter-spacing: 0;
    line-height: 1.55;
}

.scroll-veil {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    height: 24px;
    pointer-events: none;
    opacity: var(--veil-opacity);
    background: transparent;
    transition: opacity 120ms linear;
}

.scroll-veil::before {
    content: "";
    position: absolute;
    left: clamp(18px, 3vw, 42px);
    right: clamp(18px, 3vw, 42px);
    bottom: 16px;
    height: 1px;
    background: rgba(245, 238, 223, 0.13);
}

.scroll-veil::after {
    content: "";
    position: absolute;
    left: clamp(18px, 3vw, 42px);
    bottom: 16px;
    width: calc((100% - clamp(36px, 6vw, 84px)) * var(--scroll-progress));
    height: 1px;
    background: var(--accent-warm);
    box-shadow: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px clamp(14px, 3vw, 36px) 0;
    background: var(--page);
}

.nav {
    width: min(1360px, 100%);
    min-height: 62px;
    margin: 0 auto;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 10, 8, 0.86);
    backdrop-filter: none;
}

.brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.55rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 740;
    letter-spacing: -0.015em;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

html[dir="rtl"] .brand {
    direction: ltr;
}

.nav-links { display: flex; align-items: center; gap: 0.15rem; }

.nav-cli {
    gap: 0.46rem;
    color: rgba(244, 236, 216, 0.82);
}

.nav-cli-icon {
    width: 1.08rem;
    height: 1.08rem;
    flex: 0 0 auto;
    color: var(--hand-yellow);
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.nav-cli-label {
    white-space: nowrap;
}

.nav-links a,
.language-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(244, 236, 216, 0.72);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible {
    background: rgba(244, 236, 216, 0.08);
    color: var(--text);
}

.language-toggle {
    color: var(--hand-yellow);
    font-family: var(--urdu-font);
    font-weight: 780;
}

.language-toggle[aria-pressed="true"] {
    color: var(--paper);
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(244, 236, 216, 0.08);
}

.menu-button span[aria-hidden="true"] {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span[aria-hidden="true"]:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span[aria-hidden="true"]:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

main {
    width: min(1360px, calc(100% - clamp(28px, 6vw, 72px)));
    margin: 0 auto;
}

main > section {
    min-height: calc(100dvh - var(--header-space));
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.photoshoot { display: none !important; }

.hero {
    min-height: calc(100dvh - var(--header-space));
    padding: clamp(22px, 4vw, 48px) 0;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    gap: clamp(24px, 4vw, 64px) clamp(34px, 6vw, 90px);
    align-items: center;
    align-content: center;
}

.overline {
    margin: 0 0 0.9rem;
    color: var(--accent-warm);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.075em;
    width: max-content;
    max-width: 100%;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    max-width: 11.5ch;
    margin-bottom: clamp(1.9rem, 3vw, 2.9rem);
    font-size: clamp(3.15rem, 7.2vw, 6.9rem);
    line-height: 0.93;
    letter-spacing: -0.075em;
    overflow: visible;
    text-wrap: balance;
}

.hero-text {
    max-width: 58ch;
    margin-bottom: 1.15rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.25vw, 1.18rem);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 128px));
    gap: 0.65rem;
    margin: 0 0 1.35rem;
}

.hero-stats div {
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(244, 236, 216, 0.18);
    border-radius: 10px;
    background: rgba(245, 238, 223, 0.045);
}

.hero-stats dt {
    margin-bottom: 0.18rem;
    color: rgba(244, 236, 216, 0.58);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stats dt.hand-note {
    color: var(--hand-yellow);
    font-family: var(--hand);
    font-size: 0.84rem;
    letter-spacing: -0.02em;
    text-transform: none;
}

.hero-stats dd {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 820;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    unicode-bidi: isolate;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
    min-height: 58px;
    min-width: 208px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.76rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 760;
    line-height: 1.12;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button span { margin-top: 0.25rem; font-size: 0.76rem; font-weight: 620; opacity: 0.72; }
.button span:first-child { margin-top: 0; font-size: inherit; font-weight: inherit; opacity: 1; }
.button:active { transform: translateY(1px) scale(0.99); }

.button.primary {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--paper);
}

.button.primary:hover { background: var(--paper-hover); }

.button.secondary {
    background: rgba(245, 238, 223, 0.045);
    color: var(--text);
    border: 1px solid rgba(244, 236, 216, 0.30);
}

.button.secondary:hover { border-color: rgba(244, 236, 216, 0.68); }

.hero-media { margin: 0; }

.carousel-frame,
.video-frame {
    border: 1px solid rgba(244, 236, 216, 0.18);
    border-radius: var(--radius);
    background: #070807;
}

.carousel-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    box-shadow: none;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(6px, 1vw, 10px);
    opacity: 0;
    transform: scale(0.992);
    transition: opacity 420ms ease, transform 520ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

figcaption {
    max-width: 68ch;
    margin-top: 0.75rem;
    color: rgba(244, 236, 216, 0.58);
    font-size: 0.88rem;
}

.hero-carousel figcaption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: baseline;
}

.hero-carousel figcaption strong {
    color: var(--accent-warm);
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-carousel figcaption .hand-note {
    color: var(--hand-yellow);
    font-size: 1rem;
    line-height: 1.35;
}

.carousel-controls {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.carousel-controls button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.carousel-controls button::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: rgba(244, 236, 216, 0.28);
}

.carousel-controls button.is-active::before {
    background: var(--accent-warm);
}

.facts {
    grid-column: 1 / -1;
    align-self: end;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 0;
    column-gap: clamp(18px, 3vw, 46px);
}

.facts div { padding: 1.3rem 0; }
.facts div + div { border-left: 0; }
.facts strong, .facts > div > span { display: block; }
.facts strong { margin-bottom: 0.25rem; color: var(--text); font-size: 1.03rem; }
.facts span { color: var(--muted); font-size: 0.94rem; }
.facts strong > span { display: inline; }
.facts strong.hand-note,
.facts .stat-word {
    color: var(--hand-yellow);
    font-size: 1.14rem;
}

main > section:not(.hero) {
    position: relative;
    padding: clamp(34px, 5vw, 64px) 0;
    display: grid;
    align-content: center;
}

.workflow > :not(.side-quips),
.privacy > :not(.side-quips),
.developers > :not(.side-quips),
.demo > :not(.side-quips) {
    position: relative;
    z-index: 1;
}

.side-quips {
    position: absolute;
    inset: 0 auto 0 50%;
    z-index: 0;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
}

.quote-note {
    position: absolute;
    width: clamp(180px, calc((100vw - 1360px) / 2 - 96px), 260px);
    max-width: 260px;
    margin: 0;
    color: var(--hand-yellow);
    font-size: var(--hand-note-size);
    line-height: var(--hand-note-leading);
    letter-spacing: var(--hand-note-tracking);
    opacity: var(--hand-note-opacity);
    text-wrap: balance;
}

.quote-note::before,
.quote-note::after {
    color: rgba(255, 216, 107, 0.68);
}

.quote-note::before { content: "“"; }
.quote-note::after { content: "”"; }

.workflow-quips .quote-a { left: clamp(32px, 3.2vw, 58px); top: 27%; transform: rotate(-5deg); }
.workflow-quips .quote-b { right: clamp(28px, 2.7vw, 50px); bottom: 25%; transform: rotate(4deg); }

.privacy-quips .quote-a { left: clamp(30px, 3vw, 56px); top: 18%; transform: rotate(-6deg); }
.privacy-quips .quote-b { left: clamp(58px, 4vw, 86px); top: 43%; transform: rotate(4deg); }
.privacy-quips .quote-c { left: clamp(32px, 3.2vw, 60px); bottom: 18%; transform: rotate(-3deg); }
.privacy-quips .quote-d { right: clamp(28px, 2.7vw, 50px); top: 18%; transform: rotate(4deg); }
.privacy-quips .quote-e { right: clamp(52px, 3.9vw, 78px); top: 45%; transform: rotate(-5deg); }
.privacy-quips .quote-f { right: clamp(30px, 2.9vw, 56px); bottom: 17%; transform: rotate(3deg); }

.developers-quips .quote-a { left: clamp(32px, 3.2vw, 58px); top: 24%; transform: rotate(-5deg); }
.developers-quips .quote-b { right: clamp(28px, 2.7vw, 50px); top: 30%; transform: rotate(4deg); }
.developers-quips .quote-c { right: clamp(48px, 3.7vw, 74px); bottom: 20%; transform: rotate(-3deg); }

.demo-quips .quote-a { left: clamp(34px, 3.4vw, 62px); top: 32%; transform: rotate(-4deg); }
.demo-quips .quote-b { right: clamp(36px, 3.2vw, 60px); bottom: 22%; transform: rotate(4deg); }

.section-intro { max-width: 850px; margin-bottom: clamp(28px, 5vw, 56px); }
.section-intro.compact { max-width: 620px; }

h2 {
    max-width: 14ch;
    margin-bottom: clamp(1.55rem, 2.35vw, 2.25rem);
    font-size: clamp(2.25rem, 5.2vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
    overflow: visible;
    text-wrap: balance;
}

.section-intro p:not(.overline) {
    max-width: 70ch;
    color: var(--muted);
    font-size: 1.06rem;
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.workflow-item {
    padding: clamp(18px, 2.4vw, 30px);
    border-radius: var(--radius);
    border: 1px solid rgba(245, 238, 223, 0.11);
    background: var(--surface);
    color: var(--text);
}

.step-copy span {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent-warm);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 760;
}

.step-copy h3 {
    max-width: 13ch;
    margin-bottom: clamp(0.95rem, 1.5vw, 1.3rem);
    font-size: clamp(1.65rem, 3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow: visible;
}

.step-copy h3.hand-note {
    max-width: 15ch;
    color: var(--hand-yellow);
    font-size: clamp(1.58rem, 2.8vw, 2.72rem);
    letter-spacing: -0.055em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.step-copy p { max-width: 44ch; margin-bottom: 0; color: var(--muted); }

.privacy {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: clamp(28px, 7vw, 104px);
    border-top: 1px solid var(--line);
    border-bottom: 0;
    align-items: center;
}

.privacy-copy { align-self: center; color: var(--muted); font-size: 1.08rem; }
.privacy-copy p:last-child { margin-bottom: 0; }

.developer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.developer-card {
    position: relative;
    min-height: 260px;
    padding: clamp(20px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius);
    border: 1px solid rgba(245, 238, 223, 0.11);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.developer-card[href]:hover,
.developer-card[href]:focus-visible { background: var(--surface-hover); }


.developer-grid .is-locked {
    cursor: default;
}

.dev-lock {
    position: absolute;
    top: clamp(20px, 2.4vw, 30px);
    right: clamp(20px, 2.4vw, 30px);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 216, 107, 0.28);
    border-radius: 10px;
    background: rgba(255, 216, 107, 0.06);
    color: var(--hand-yellow);
}

.dev-lock svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.dev-status {
    position: absolute;
    top: clamp(47px, 4vw, 62px);
    right: clamp(48px, 5vw, 76px);
    z-index: 1;
    color: var(--hand-yellow);
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1;
    transform: rotate(-6deg);
    white-space: nowrap;
    pointer-events: none;
}

.developer-grid .is-locked strong {
    padding-right: clamp(0px, 7vw, 92px);
}

.developer-grid .dev-kicker {
    color: var(--accent-warm);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.developer-grid strong {
    max-width: 18ch;
    margin: 1.3rem 0 auto;
    font-size: clamp(1.45rem, 2.8vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    overflow: visible;
}

code {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 1.8rem;
    padding: 0.65rem 0.75rem;
    overflow: auto;
    border: 1px solid rgba(245, 238, 223, 0.12);
    border-radius: 8px;
    background: #0a0d0b;
    color: #d9ceb5;
    font-family: var(--mono);
    font-size: 0.86rem;
}

html[dir="rtl"] code {
    direction: ltr;
    text-align: left;
}

html[lang="ur"] .overline,
html[lang="ur"] .hero-carousel figcaption strong,
html[lang="ur"] .step-copy span,
html[lang="ur"] .developer-grid .dev-kicker {
    font-family: var(--urdu-font);
    letter-spacing: 0;
}

html[lang="ur"] h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 6.6vw, 6.15rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

html[lang="ur"] h2 {
    max-width: 12ch;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

html[lang="ur"] .hero-text,
html[lang="ur"] .section-intro p:not(.overline),
html[lang="ur"] .privacy-copy {
    line-height: 1.95;
}

html[lang="ur"] .hero-stats dt.hand-note,
html[lang="ur"] .facts strong.hand-note,
html[lang="ur"] .facts .stat-word {
    font-size: 1.02rem;
}

html[lang="ur"] .step-copy h3.hand-note {
    max-width: 12ch;
    font-size: clamp(1.45rem, 2.5vw, 2.4rem);
    letter-spacing: 0;
    line-height: 1.24;
}

html[lang="ur"] .developer-grid strong,
html[lang="ur"] .faq-list h3 {
    line-height: 1.28;
    letter-spacing: -0.015em;
}

html[dir="rtl"] .button {
    text-align: right;
}

.video-frame {
    width: min(100%, 1100px);
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    padding: 10px;
    background: rgba(245, 238, 223, 0.055);
}
.video-frame video { display: block; width: 100%; border-radius: 8px; background: #111; }

.demo {
    justify-items: center;
}

.demo .section-intro {
    width: min(100%, 1100px);
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

.demo h2 {
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .demo .section-intro {
    text-align: right;
}

@media (max-width: 1839px) {
    .side-quips { display: none; }
}

.faq {
    border-top: 1px solid var(--line);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 54px);
    max-width: none;
}

.faq-list article {
    padding-top: clamp(14px, 2vw, 22px);
    border-top: 1px solid var(--line);
}

.faq-list h3 {
    margin: 0 0 0.85rem;
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.faq-list p {
    margin: 0;
    color: var(--muted);
}

.footer {
    width: min(1360px, calc(100% - clamp(28px, 6vw, 72px)));
    margin: 0 auto;
    padding: 32px 0 54px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    color: rgba(244, 236, 216, 0.62);
    font-size: 0.92rem;
    scroll-snap-align: end;
    scroll-snap-stop: normal;
}

.footer p { margin: 0; }
.footer div { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.6rem; border-radius: 8px; text-decoration: none; color: rgba(244, 236, 216, 0.72); }
.footer a:hover { background: rgba(244, 236, 216, 0.075); color: var(--text); }

.motion-ready .reveal-seq {
    opacity: 0;
    transition:
        opacity 680ms cubic-bezier(0.2, 0.76, 0.18, 1),
        transform 760ms cubic-bezier(0.2, 0.76, 0.18, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.motion-ready .reveal-left { transform: translate3d(-18px, 0, 0); }
.motion-ready .reveal-right { transform: translate3d(18px, 0, 0); }
.motion-ready .reveal-up { transform: translate3d(0, 28px, 0); }

.motion-ready .pixel-life {
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 10% 0 round var(--radius));
}

.motion-ready .pixel-life::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: color-mix(in srgb, var(--hand-yellow) 12%, transparent);
    mix-blend-mode: multiply;
}

.motion-ready .reveal-seq.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: none;
}

.motion-ready .pixel-life.is-revealed {
    clip-path: inset(0 0 0 0 round var(--radius));
}

.motion-ready .pixel-life.is-revealed::after {
    animation: pixel-settle 720ms steps(8, end) both;
}

@keyframes pixel-settle {
    0% {
        opacity: 0.42;
        clip-path: inset(0 0 0 0);
    }
    70% {
        opacity: 0.18;
    }
    100% {
        opacity: 0;
        clip-path: inset(0 0 0 100%);
    }
}

@media (max-width: 980px) {
    .hero, .privacy { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    h1 { max-width: 12ch; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .workflow-list { grid-template-columns: 1fr; }
}

@media (min-width: 981px) and (max-height: 820px) {
    :root { --header-space: 82px; }

    .site-header { padding-top: 8px; }

    .nav {
        min-height: 54px;
        border-radius: 14px;
    }

    main > section:not(.hero) {
        padding-top: clamp(18px, 3vh, 28px);
        padding-bottom: clamp(22px, 3vh, 34px);
    }

    .section-intro {
        margin-bottom: clamp(16px, 3vh, 24px);
    }

    .overline {
        margin-bottom: 0.55rem;
    }

    h2 {
        max-width: 15ch;
        margin-bottom: clamp(0.9rem, 2vh, 1.25rem);
        font-size: clamp(2.05rem, 4.45vw, 4.25rem);
        line-height: 0.95;
    }

    .section-intro p:not(.overline),
    .privacy-copy {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .workflow-list {
        gap: 0.65rem;
    }

    .workflow-item {
        padding: clamp(14px, 1.7vw, 20px);
    }

    .step-copy span {
        margin-bottom: 0.55rem;
        font-size: 0.72rem;
    }

    .step-copy h3.hand-note,
    .step-copy h3 {
        margin-bottom: 0.7rem;
        font-size: clamp(1.35rem, 2.25vw, 2.15rem);
        line-height: 1;
    }

    .step-copy p {
        font-size: 0.88rem;
        line-height: 1.42;
    }

    .developer-card {
        min-height: 198px;
        padding: clamp(16px, 2.15vw, 24px);
    }

    .developer-grid .dev-kicker {
        font-size: 0.72rem;
    }

    .developer-grid strong {
        margin-top: 0.95rem;
        font-size: clamp(1.35rem, 2.35vw, 2.25rem);
        line-height: 1.02;
    }

    .dev-status {
        top: 24px;
        right: 58px;
        font-size: 1rem;
    }

    code {
        margin-top: 1.05rem;
        padding: 0.55rem 0.68rem;
        font-size: 0.78rem;
    }

    .demo .section-intro {
        margin-bottom: 1.1rem;
    }

    .video-frame {
        width: min(100%, 720px);
        padding: 8px;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: calc(var(--header-space) + 10px);
        scroll-snap-type: none;
    }

    .site-header { padding: 10px 10px 0; }
    .nav { min-height: 58px; border-radius: 16px; }
    .menu-button { display: block; }
    .nav-links {
        position: absolute;
        left: 10px;
        right: 10px;
        top: calc(100% + 8px);
        display: grid;
        gap: 6px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #070807;
        box-shadow: none;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 160ms ease, transform 160ms ease;
    }
    .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links a,
    .language-toggle { justify-content: center; background: rgba(244, 236, 216, 0.08); }
    main, .footer { width: min(100% - 24px, 640px); }
    main > section { scroll-snap-align: none; }

    .hero,
    #photoshoot,
    #workflow,
    #privacy,
    #developers,
    #demo {
        position: relative;
        min-height: calc(100svh - var(--header-space) - 18px);
        display: grid;
        align-content: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        scroll-margin-top: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: clamp(0.62rem, 1.8svh, 0.9rem);
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-copy {
        display: grid;
        gap: clamp(0.62rem, 1.8svh, 0.9rem);
    }

    .hero-intro { display: block; }
    .hero-media,
    .facts { display: none; }

    main > section:not(.hero) {
        align-content: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    h1 {
        max-width: 10.8ch;
        margin-bottom: clamp(0.55rem, 1.5svh, 0.8rem);
        font-size: clamp(2.48rem, 12.8vw, 4.25rem);
        line-height: 0.91;
    }

    h2 {
        margin-bottom: clamp(0.68rem, 2svh, 1rem);
        font-size: clamp(2.1rem, 10.5vw, 3.45rem);
        line-height: 0.96;
    }

    .overline { margin-bottom: 0.55rem; }
    .hero-text {
        margin-bottom: 0;
        font-size: clamp(0.9rem, 4.1vw, 1rem);
        line-height: 1.42;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin: 0;
    }

    .hero-stats div { padding: 0.56rem 0.68rem; }
    .hero-stats dd { font-size: clamp(1.22rem, 6.2vw, 1.55rem); }

    .hero-actions {
        width: 100%;
        display: grid;
        gap: 0.55rem;
    }

    .button {
        width: 100%;
        min-height: 50px;
        padding: 0.58rem 0.9rem;
        border-radius: 9px;
    }

    .button span { margin-top: 0.15rem; font-size: 0.72rem; }

    .workflow-list,
    .developer-grid,
    .faq-list { grid-template-columns: 1fr; }

    .workflow .section-intro,
    .developers .section-intro,
    .demo .section-intro {
        margin-bottom: clamp(0.55rem, 1.8svh, 0.95rem);
    }

    .section-intro p:not(.overline),
    .privacy-copy {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .photoshoot {
        display: grid !important;
        gap: clamp(0.72rem, 2.5svh, 1.05rem);
        align-content: center;
    }

    .photoshoot .section-intro {
        margin-bottom: 0;
    }

    #photoshoot h2 {
        max-width: 11ch;
        margin-bottom: 0;
        font-size: clamp(2rem, 9.4vw, 3.2rem);
        line-height: 0.96;
        text-transform: lowercase;
    }

    .mobile-carousel {
        width: 100%;
        margin: 0;
    }

    .mobile-carousel .carousel-frame {
        aspect-ratio: 4 / 3;
    }

    .mobile-carousel .carousel-slide {
        padding: 6px;
    }

    .mobile-carousel figcaption {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        margin-top: 0.55rem;
    }

    .mobile-carousel .carousel-controls {
        margin-top: 0.5rem;
    }

    .mobile-carousel .carousel-controls button {
        width: 38px;
        height: 36px;
    }

    .workflow-list {
        gap: 0.42rem;
    }

    .workflow-item {
        min-height: 0;
        padding: 0.42rem 0.58rem;
    }

    .step-copy span {
        margin-bottom: 0.14rem;
        font-size: 0.62rem;
    }

    #workflow .step-copy {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 0.55rem;
        align-items: start;
    }

    #workflow .step-copy span {
        grid-row: 1 / 3;
        margin: 0.12rem 0 0;
    }

    .step-copy h3.hand-note {
        max-width: none;
        margin-bottom: 0.18rem;
        font-size: clamp(1rem, 5.5vw, 1.38rem);
        line-height: 1.02;
    }

    .step-copy p {
        font-size: 0.68rem;
        line-height: 1.24;
    }

    #workflow .step-copy p {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    #workflow .step-copy h3.hand-note {
        margin-bottom: 0.1rem;
        font-size: clamp(0.96rem, 5vw, 1.24rem);
    }

    #workflow h2,
    #developers h2 {
        max-width: 10.5ch;
        font-size: clamp(1.74rem, 8.4vw, 2.85rem);
        line-height: 0.94;
    }

    #workflow .section-intro p:not(.overline) {
        display: none;
    }

    #workflow {
        border-bottom: 0 !important;
    }

    #workflow::after {
        content: none !important;
        display: none !important;
    }

    #privacy,
    #developers {
        gap: clamp(0.9rem, 3svh, 1.35rem);
    }

    .developer-grid {
        gap: 0.48rem;
    }

    .developer-card {
        min-height: 0;
        padding: 0.72rem;
    }

    .developer-grid .dev-kicker {
        display: inline-block;
        width: max-content;
        max-width: calc(100% - 7rem);
        font-size: 0.66rem;
    }
    .developer-grid strong {
        max-width: 17ch;
        margin: 0.55rem 0 0.58rem;
        font-size: clamp(1.05rem, 5.7vw, 1.52rem);
        line-height: 1.02;
    }

    code {
        max-width: 100%;
        margin-top: 0;
        padding: 0.42rem 0.5rem;
        font-size: 0.62rem;
    }

    .mobile-quip {
        display: block;
        position: absolute;
        z-index: 0;
        max-width: min(18ch, 62vw);
        color: var(--hand-yellow);
        font-family: var(--hand);
        font-size: var(--hand-note-size);
        font-style: normal;
        font-weight: 700;
        line-height: var(--hand-note-leading);
        letter-spacing: var(--hand-note-tracking);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        text-wrap: balance;
        transform: rotate(-4deg);
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .mobile-quip::before { content: "“"; }
    .mobile-quip::after { content: "”"; }

    .mobile-stack {
        isolation: isolate;
        transform-origin: 50% 50%;
    }

    .mobile-stack > :not(.mobile-quip) {
        position: relative;
        z-index: 1;
    }

    .mobile-stack > .mobile-quip {
        position: absolute;
        z-index: 2;
    }

    .mobile-stack.is-active-stack > .mobile-quip {
        opacity: var(--hand-note-opacity);
        visibility: visible;
    }

    .mobile-stack .mobile-quip,
    .mobile-stack.is-mobile-stack-alt .mobile-quip {
        left: auto;
        right: clamp(10px, 4.2vw, 20px);
        top: clamp(0.35rem, 3.2svh, 1.65rem);
        bottom: auto;
        width: max-content;
        max-width: min(15ch, 43vw);
        transform: rotate(-4deg);
    }

    #workflow .mobile-quip {
        right: clamp(2px, 1.5vw, 8px);
        top: clamp(9rem, 27svh, 12.5rem);
        max-width: min(13ch, 38vw);
        transform: rotate(-5deg);
    }

    #privacy .mobile-quip {
        right: clamp(8px, 4vw, 18px);
        top: clamp(0.35rem, 4svh, 2.1rem);
        max-width: min(15ch, 44vw);
        transform: rotate(-4deg);
    }

    #developers .mobile-quip {
        right: clamp(8px, 4vw, 18px);
        top: clamp(0.45rem, 4svh, 2.15rem);
        max-width: min(13ch, 40vw);
        transform: rotate(-4deg);
    }

    #demo .mobile-quip {
        right: clamp(8px, 4vw, 18px);
        top: clamp(0.35rem, 4svh, 2.05rem);
        max-width: min(14ch, 42vw);
        transform: rotate(-4deg);
    }

    html.mobile-stack-deck,
    html.mobile-stack-deck body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        scroll-snap-type: none;
    }

    html.mobile-stack-deck body {
        min-height: 100svh;
    }

    html.mobile-stack-deck main {
        position: fixed;
        left: 50%;
        top: calc(var(--header-space) + 6px);
        z-index: 1;
        width: min(100% - 24px, 640px);
        height: calc(100svh - var(--header-space) - max(16px, env(safe-area-inset-bottom)));
        margin: 0;
        overflow: visible;
        transform: translateX(-50%);
        contain: layout paint;
    }

    html.mobile-stack-deck .hero,
    html.mobile-stack-deck #photoshoot,
    html.mobile-stack-deck #workflow,
    html.mobile-stack-deck #privacy,
    html.mobile-stack-deck #developers,
    html.mobile-stack-deck #demo {
        position: absolute;
        inset: 0;
        min-height: 0;
        height: 100%;
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        border-top: 0;
        border-bottom: 0;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, 18%, 0) scale(0.965);
        transition:
            transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity 360ms ease,
            filter 520ms ease;
        will-change: transform, opacity;
    }

    html.mobile-stack-deck .hero.is-active-stack,
    html.mobile-stack-deck #photoshoot.is-active-stack,
    html.mobile-stack-deck #workflow.is-active-stack,
    html.mobile-stack-deck #privacy.is-active-stack,
    html.mobile-stack-deck #developers.is-active-stack,
    html.mobile-stack-deck #demo.is-active-stack {
        z-index: 4;
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
        filter: none;
    }

    html.mobile-stack-deck .mobile-stack.is-prev-stack {
        z-index: 2;
        opacity: 0;
        transform: translate3d(0, -18%, 0) scale(0.965);
        filter: blur(0.5px);
    }

    html.mobile-stack-deck .mobile-stack.is-next-stack {
        z-index: 1;
        opacity: 0;
        transform: translate3d(0, 18%, 0) scale(0.965);
        filter: blur(0.5px);
    }

    html.mobile-stack-deck .mobile-stack.is-before-stack {
        transform: translate3d(0, -34%, 0) scale(0.94);
    }

    html.mobile-stack-deck .mobile-stack.is-after-stack {
        transform: translate3d(0, 34%, 0) scale(0.94);
    }

    html.mobile-stack-deck main > section:not(.mobile-stack),
    html.mobile-stack-deck .faq,
    html.mobile-stack-deck .footer {
        display: none !important;
    }

    .dev-status {
        top: 0.72rem;
        right: 3.3rem;
        max-width: 7.5rem;
        font-size: var(--hand-note-size);
        line-height: var(--hand-note-leading);
        letter-spacing: var(--hand-note-tracking);
        opacity: var(--hand-note-opacity);
        transform: rotate(-5deg);
    }
    .dev-lock {
        top: 0.72rem;
        right: 0.72rem;
        width: 32px;
        height: 32px;
    }
    .developer-grid .is-locked strong { padding-right: 0; }
    main > .faq { display: none !important; }
    .privacy-copy, .section-intro p:not(.overline) { font-size: 0.95rem; }
    .footer { display: grid; }
    .scroll-veil { display: none; }
    .motion-ready .reveal-left { transform: translate3d(-8px, 0, 0); }
    .motion-ready .reveal-right { transform: translate3d(8px, 0, 0); }
}

@media (max-width: 720px) and (max-height: 640px) {
    #workflow .mobile-quip,
    #privacy .mobile-quip,
    #developers .mobile-quip {
        display: none;
    }

    .photoshoot {
        gap: 0.55rem;
    }

    #photoshoot h2 {
        max-width: 13ch;
        font-size: clamp(1.72rem, 9vw, 2.3rem);
        line-height: 0.95;
    }

    .mobile-carousel .carousel-frame {
        aspect-ratio: 16 / 10;
    }

    .mobile-carousel figcaption {
        display: none;
    }

    .mobile-carousel .carousel-controls {
        margin-top: 0.35rem;
    }

    .mobile-carousel .carousel-controls button {
        width: 34px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    .scroll-veil { display: none; }

    .motion-ready .reveal-seq {
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}
