/* ==========================================================================
   Appify Studio — site styles
   ========================================================================== */

:root {
    --bg: #0B0B0F;
    --bg-raised: #111116;
    --surface: #16161C;
    --surface-2: #1C1C23;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #F3EFE8;
    --muted: #9C968E;
    --faint: #6B665F;
    --accent: #FF5B1F;
    --accent-hover: #FF7240;
    --accent-soft: rgba(255, 91, 31, 0.14);
    --accent-glow: rgba(255, 91, 31, 0.35);

    --font-display: "Instrument Serif", "Times New Roman", serif;
    --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(96px, 14vw, 180px);
    --radius: 20px;
    --radius-lg: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle topographic texture across the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/texture.webp") center / 640px repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section + .section { padding-top: calc(var(--section-y) * 0.45); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    z-index: 200;
}
.skip-link:focus { top: 16px; }

/* Type
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
}
.hero__eyebrow::before { display: none; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(255, 91, 31, 0); }
}

.section-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.section-title em { font-size: 1.08em; letter-spacing: -0.01em; }

.section-lead {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--muted);
    max-width: 520px;
}

.section-head { margin-bottom: clamp(56px, 8vw, 104px); }
.section-head--split {
    display: grid;
    gap: 32px;
    align-items: end;
}
@media (min-width: 900px) {
    .section-head--split { grid-template-columns: 1.2fr 1fr; }
}

/* Buttons
   ========================================================================== */

.btn {
    --mx: 0px;
    --my: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { height: 64px; padding: 0 36px; font-size: 18px; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 40px -12px var(--accent-glow);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 16px 50px -10px rgba(255, 91, 31, 0.55);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }

.btn__arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Header
   ========================================================================== */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(11, 11, 15, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
}
/* The mark image has transparent padding around the glass "A" — pull it in. */
.logo__mark {
    width: 44px;
    height: 44px;
    margin: -6px -4px -6px -6px;
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.logo:hover .logo__mark {
    transform: translateY(-2px) rotate(-3deg);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
/* Wordmark: bold "Appify" + light "Studio", with an orange dot on the i — as in the logo. */
.logo__word { display: inline-flex; gap: 0.26em; }
.logo__bold { font-weight: 600; }
.logo__light { font-weight: 300; }
.logo__i { position: relative; }
.logo__i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.02em;
    width: 0.2em;
    height: 0.2em;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}
.footer .logo { font-size: 24px; }
.footer .logo__mark { width: 56px; height: 56px; }

.nav {
    display: none;
    gap: 4px;
    margin-left: auto;
}
.nav a {
    padding: 8px 14px;
    font-size: 15px;
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--text); }

.header__cta { display: none; }

.menu-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-content: center;
    gap: 6px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.4s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 960px) {
    .nav, .header__cta { display: flex; }
    .header__cta { margin-left: 8px; }
    .menu-toggle { display: none; }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 11, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    font-size: clamp(36px, 10vw, 56px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu__mail { color: var(--muted); }
body.menu-open { overflow: hidden; }

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--header-h) + 64px) 0 40px;
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.6) 38%, rgba(11, 11, 15, 0) 70%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 15, 0) 35%),
        linear-gradient(180deg, rgba(11, 11, 15, 0.6) 0%, rgba(11, 11, 15, 0) 20%);
}
@media (max-width: 720px) {
    .hero__video { object-position: center; }
    .hero__shade {
        background:
            linear-gradient(0deg, var(--bg) 8%, rgba(11, 11, 15, 0.75) 55%, rgba(11, 11, 15, 0.35) 100%);
    }
}

.hero__content { margin-bottom: clamp(40px, 6vh, 80px); }
@media (max-width: 560px) { .hero__eyebrow-extra { display: none; } }

.hero__title {
    font-size: clamp(48px, min(8.4vw, 12.5vh), 124px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: 12ch;
    margin-bottom: clamp(20px, 3.5vh, 32px);
}
.hero__title em { letter-spacing: -0.02em; font-size: 1.06em; }

.hero__lead {
    font-size: clamp(17px, 1.6vw, 21px);
    color: rgba(243, 239, 232, 0.78);
    max-width: 540px;
    margin-bottom: clamp(28px, 4.5vh, 40px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 16px clamp(24px, 5vw, 72px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
    position: relative;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    color: var(--text);
}
.hero__meta-item span { font-size: 14px; color: var(--muted); }

.hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 0;
    width: 26px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    display: none;
}
.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-dot 2s var(--ease) infinite;
}
@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}
@media (min-width: 900px) { .hero__scroll { display: block; } }
@media (max-width: 560px) {
    .hero__meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero__meta-item span { font-size: 12px; line-height: 1.35; }
}

/* Hero entrance — words of the title rise in, then the other items fade up */
.js [data-split] .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}
.js [data-split] .word > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--i) * 55ms + 150ms);
}
.js .is-loaded [data-split] .word > span { transform: none; }

.js [data-hero-item] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .is-loaded [data-hero-item] { opacity: 1; transform: none; }
.js .is-loaded .hero__lead { transition-delay: 0.55s; }
.js .is-loaded .hero__actions { transition-delay: 0.7s; }
.js .is-loaded .hero__meta { transition-delay: 0.9s; }

/* Marquee
   ========================================================================== */

.marquee {
    border-block: 1px solid var(--line);
    padding: 26px 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; }
.marquee__list li {
    display: flex;
    align-items: center;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--faint);
    padding: 0 28px;
    transition: color 0.3s;
}
.marquee__list li::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.6;
    margin-left: 56px;
}
.marquee__list li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Intro statement
   ========================================================================== */

.intro__text {
    font-size: clamp(30px, 4.4vw, 60px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.03em;
    max-width: 1080px;
}
.js [data-words] .w { color: rgba(243, 239, 232, 0.16); transition: color 0.4s; }
.js [data-words] .w.is-lit { color: var(--text); }

/* Services
   ========================================================================== */

.service {
    display: grid;
    gap: clamp(28px, 4vw, 72px);
    align-items: center;
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
    .service { grid-template-columns: 1.15fr 1fr; }
    .service--flip .service__media { order: 2; }
}

.service__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    isolation: isolate;
}
.service__media video,
.service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.4s var(--ease);
}
.service:hover .service__media video,
.service:hover .service__media img { transform: scale(1); }
.service__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(11, 11, 15, 0) 60%, rgba(11, 11, 15, 0.4));
    pointer-events: none;
}

.service__num {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 16px;
}
.service__title {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 16px;
}
.service__lead {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 440px;
}
.service__list li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
}
.service__list li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateY(-2px);
}

/* Work
   ========================================================================== */

.work__stage {
    position: relative;
    max-width: 1440px;
    margin: 0 auto clamp(72px, 10vw, 140px);
    overflow: hidden;
    mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 55%, transparent 100%);
}
.work__stage img { width: 100%; height: auto; transform: scale(1.06); }
.work__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 15, 0) 18%, rgba(11, 11, 15, 0) 78%, var(--bg) 100%),
        linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 15, 0) 14%, rgba(11, 11, 15, 0) 86%, var(--bg) 100%);
    pointer-events: none;
}

/* App Store gallery: a swipeable row on phones, five columns on desktop */
.store { margin-bottom: clamp(80px, 11vw, 140px); }
.store__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}
.store__head .eyebrow { white-space: nowrap; }
.store__hint { font-size: 14px; color: var(--faint); white-space: nowrap; }
.store__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(62vw, 260px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 24px;
    scrollbar-width: none;
}
.store__list::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
    .store__hint { display: none; }
    .store__list {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
        margin: 0;
        padding: 8px 0 0;
    }
    /* Stagger the middle cards for a less rigid row */
    .store__item:nth-child(even) { margin-top: 48px; }
}
.store__item { scroll-snap-align: start; }
.store__item > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1284 / 2778;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.4s;
}
.store__item:hover > img {
    transform: translateY(-8px);
    border-color: rgba(255, 91, 31, 0.45);
    box-shadow: 0 40px 70px -30px rgba(255, 91, 31, 0.35);
}
.store__name { margin-top: 16px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.store__cat { font-size: 14px; color: var(--muted); }

.spotlight {
    display: grid;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    margin-bottom: clamp(72px, 10vw, 120px);
}
@media (min-width: 900px) { .spotlight { grid-template-columns: 0.9fr 1fr; } }
.spotlight__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    max-width: 520px;
}
.spotlight__media img { width: 100%; height: auto; }
.spotlight__title {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 20px;
}
.spotlight__body p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; max-width: 480px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

.apps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.app {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.6s var(--ease);
}
.app::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--px, 50%) var(--py, 0%), var(--accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.app:hover { border-color: rgba(255, 91, 31, 0.35); transform: translateY(-4px); }
.app:hover::before { opacity: 1; }

.app__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid rgba(255, 140, 90, 0.5);
    color: var(--accent);
    font-size: 22px;
    font-weight: 500;
    box-shadow: 0 0 30px -6px var(--accent-glow);
    margin-bottom: 24px;
}
.app__cat {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 8px;
}
.app__name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.app__desc { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.app .tags li { font-size: 12px; padding: 3px 10px; }

.more-apps {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
}
@media (min-width: 900px) { .more-apps { grid-template-columns: 220px 1fr; } }
.more-apps__label { font-size: 14px; color: var(--faint); }
.more-apps__list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.more-apps__list li { color: var(--muted); font-size: 16px; }

/* Studio
   ========================================================================== */

.studio__grid {
    display: grid;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    margin-bottom: clamp(64px, 9vw, 120px);
}
@media (min-width: 900px) { .studio__grid { grid-template-columns: 1.1fr 1fr; } }
.studio__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}
.studio__media img { width: 100%; height: 115%; object-fit: cover; }
.studio__body .section-title { margin-bottom: 28px; font-size: clamp(36px, 4.6vw, 64px); }

.pillars {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
    .pillar { padding: 48px 40px 8px; border-bottom: 0; border-left: 1px solid var(--line); }
    .pillar:first-child { padding-left: 0; border-left: 0; }
}
.pillar__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(64px, 7vw, 96px);
    line-height: 1;
    color: var(--text);
    margin-bottom: 20px;
}
.pillar h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; max-width: 320px; }

/* Process
   ========================================================================== */

.steps {
    display: grid;
    gap: 16px;
    counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
    position: relative;
    padding: 28px 28px 32px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
    transition: border-color 0.4s, transform 0.6s var(--ease);
}
.step:hover { border-color: rgba(255, 91, 31, 0.35); transform: translateY(-4px); }
.step__icon {
    width: 132px;
    height: 132px;
    margin: -8px 0 12px -12px;
    mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 72%);
    transition: transform 0.8s var(--ease);
}
.step:hover .step__icon { transform: translateY(-6px) rotate(-4deg); }
.step__num {
    position: absolute;
    top: 28px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--faint);
}
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA
   ========================================================================== */

.cta {
    position: relative;
    padding: clamp(120px, 18vw, 240px) 0;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media video { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 15, 0.35) 30%, rgba(11, 11, 15, 0.35) 70%, var(--bg) 100%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
    font-size: clamp(48px, 9vw, 136px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
}
.cta__lead { color: rgba(243, 239, 232, 0.78); font-size: clamp(17px, 1.6vw, 21px); max-width: 520px; margin-bottom: 44px; }

/* Contact
   ========================================================================== */

.contact__grid {
    display: grid;
    gap: clamp(48px, 7vw, 112px);
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.15fr; } }
.contact__intro .section-title { font-size: clamp(38px, 4.8vw, 68px); margin-bottom: 24px; }

.contact__facts { margin: 48px 0 0; display: grid; gap: 0; }
.contact__facts div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.contact__facts dt { color: var(--faint); font-size: 14px; }
.contact__facts dd { margin: 0; }
.contact__facts a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s; }
.contact__facts a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 480px) { .contact__facts div { grid-template-columns: 1fr; gap: 4px; } }

.form {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
    display: grid;
    gap: 20px;
}
.form__group { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form__group legend, .field label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
    padding: 0;
}
.optional { color: var(--faint); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    font-size: 16px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C968E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}
.field select option { background: var(--surface); color: var(--text); }
.field ::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 91, 31, 0.04);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .is-invalid { border-color: #ff6b6b; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 15px;
    color: var(--muted);
    transition: all 0.25s var(--ease);
}
.chip:hover span { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip input:checked + span {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__error { color: #ff8a8a; font-size: 14px; }
.form__note { color: var(--muted); font-size: 14px; text-align: center; }
.form__note a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* Footer
   ========================================================================== */

.footer {
    position: relative;
    padding-top: clamp(72px, 10vw, 120px);
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer__top {
    display: grid;
    gap: 40px;
    padding-bottom: 48px;
}
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer__brand p { color: var(--muted); margin: 20px 0 16px; max-width: 300px; font-size: 15px; }
.footer__mail { font-size: 18px; border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.footer__mail:hover { color: var(--accent); border-color: var(--accent); }
.footer__col h4 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 18px;
}
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }

.legal {
    border-block: 1px solid var(--line);
    padding: 20px 0;
}
.legal summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 15px;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease); }
.legal[open] summary::after { transform: rotate(45deg); }
.legal summary:hover { color: var(--text); }
.legal__list {
    display: grid;
    gap: 10px 32px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    padding-top: 24px;
}
.legal__list a { color: var(--faint); font-size: 14px; transition: color 0.2s; }
.legal__list a:hover { color: var(--text); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0;
    font-size: 14px;
    color: var(--faint);
}
.footer__top-link:hover { color: var(--text); }

.footer__word {
    font-size: clamp(120px, 27vw, 420px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.75;
    text-align: center;
    margin-bottom: -0.06em;
    background: linear-gradient(180deg, rgba(243, 239, 232, 0.08), rgba(243, 239, 232, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    pointer-events: none;
}

/* Scroll reveal
   ========================================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

/* Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .marquee__track { animation: none; }
    [data-parallax] { transform: none !important; }
}

/* App icons
   ========================================================================== */

.app__logo {
    width: 56px;
    height: 56px;
    border-radius: 22.37%;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.6s var(--ease);
}
.app:hover .app__logo { transform: translateY(-3px) rotate(-4deg); }

.spotlight__logo {
    width: 72px;
    height: 72px;
    border-radius: 22.37%;
    margin-bottom: 20px;
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.store__meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.store__meta .store__name { margin-top: 0; }
.store__logo {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 22.37%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.more-apps__list li { display: inline-flex; align-items: center; gap: 10px; }
.more-apps__logo {
    width: 24px;
    height: 24px;
    border-radius: 22.37%;
}
