/* ==========================================================================
   Aurel – Creative Studio HTML Template
   Table of contents:
   1. Tokens (light / dark)   2. Base & utilities   3. Preloader & cursor
   4. Header & menu           5. Buttons & links    6. Hero
   7. Marquee                 8. Statement & stats  9. Clients
   10. Work (horizontal)      11. Services          12. Process
   13. Testimonials           14. CTA               15. Footer
   16. Art (generated visuals)                      17. Responsive & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bg: #0b0b0c;
    --bg-2: #141416;
    --bg-3: #1c1c1f;
    --fg: #f2efe9;
    --muted: #8d8a85;
    --line: rgba(242, 239, 233, .12);
    --accent: #ff5a36;
    --accent-ink: #160805;
    --radius: 24px;
    --pad: clamp(20px, 4vw, 56px);
    --header-h: 76px;
    --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #f3f0ea;
    --bg-2: #e9e5dd;
    --bg-3: #dfdad0;
    --fg: #121212;
    --muted: #6b6862;
    --line: rgba(18, 18, 18, .12);
    color-scheme: light;
}

/* 2. Base & utilities -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0; background: var(--bg); color: var(--fg);
    font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden; transition: background .6s var(--ease), color .6s var(--ease);
}
body.is-loading, body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip-link:focus { top: 12px; }

.section { padding: clamp(96px, 13vw, 180px) var(--pad); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 84px); }
.section__lead { max-width: 380px; margin: 0; color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 0; font-size: clamp(44px, 7.4vw, 112px); line-height: .92; font-weight: 500; letter-spacing: -.045em; }

/* rolling text on hover: JS wraps [data-roll] text in .roll */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: block; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; }
a:hover > .roll > span, button:hover > .roll > span, .btn:hover .roll > span { transform: translateY(-100%); }

/* 3. Preloader & cursor ------------------------------------------------------ */
.preloader {
    position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--pad); background: #0b0b0c; color: #f2efe9;
}
.preloader__top { display: flex; justify-content: space-between; font-size: 14px; color: #8d8a85; }
.preloader__top em { margin-left: 5px; }
.preloader__count { font-size: clamp(80px, 18vw, 260px); font-weight: 500; line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.preloader__count sup { font-size: .25em; vertical-align: top; color: var(--accent); }
.preloader__bar { height: 2px; background: rgba(242, 239, 233, .12); }
.preloader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.cursor {
    position: fixed; left: 0; top: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: #fff; pointer-events: none; mix-blend-mode: difference; display: grid; place-items: center; opacity: 0;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); mix-blend-mode: normal; }
.cursor__label { font-size: 13px; font-weight: 600; color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .45s var(--ease); }
.cursor.is-big .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 4. Header & menu ----------------------------------------------------------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 0 var(--pad); color: #f6f3ee;
    transition: background .5s var(--ease), color .5s var(--ease), height .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.header.is-solid {
    --header-h: 64px; color: var(--fg);
    background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-solid .btn--small { background: var(--accent); color: var(--accent-ink); }
.header__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; transition: opacity .4s; }
.header.is-solid .header__progress { opacity: 1; }
.header__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.logo span { font-size: .5em; vertical-align: super; font-weight: 400; margin-left: 1px; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 99px; font-size: 14.5px; font-weight: 500; }
.nav a { padding: 7px 14px; border-radius: 99px; transition: background .3s; }
.nav a:hover, .nav a.is-current { background: color-mix(in srgb, currentColor 12%, transparent); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 44px; height: 26px; border: 1px solid currentColor; border-radius: 99px; position: relative; opacity: .85; }
.theme-toggle span { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: currentColor; transition: transform .5s var(--ease); }
[data-theme="light"] .theme-toggle span { transform: translateX(18px); }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 18px; } .menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-open .header { color: var(--fg); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.mobile-menu {
    position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
    padding: calc(var(--header-h) + 30px) var(--pad) calc(28px + env(safe-area-inset-bottom)); background: var(--bg-2);
    clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .9s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
    display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line);
    font-size: clamp(40px, 11vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15;
    opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mobile-menu__links small { font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.menu-open .mobile-menu__links a { opacity: 1; transform: none; }
.menu-open .mobile-menu__links a:nth-child(1) { transition-delay: .15s; }
.menu-open .mobile-menu__links a:nth-child(2) { transition-delay: .2s; }
.menu-open .mobile-menu__links a:nth-child(3) { transition-delay: .25s; }
.menu-open .mobile-menu__links a:nth-child(4) { transition-delay: .3s; }
.menu-open .mobile-menu__links a:nth-child(5) { transition-delay: .35s; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.mobile-menu__foot > a { color: var(--fg); font-size: 20px; font-weight: 500; }

/* 5. Buttons & links --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 99px;
    background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15.5px; white-space: nowrap;
    transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--small { height: 42px; padding: 0 18px; font-size: 14px; background: #f6f3ee; color: #0b0b0c; }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--fg); background: transparent; color: var(--fg); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: #0b0b0c; }
.btn--big { height: 64px; padding: 0 32px; font-size: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s; }
.link-arrow::after { content: "→"; color: var(--accent); transition: transform .5s var(--ease); }
.link-arrow:hover { border-color: var(--fg); }
.link-arrow:hover::after { transform: translateX(5px); }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; transition: background .3s, color .3s, border-color .3s; }
.round-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px; border-radius: 99px; font-size: 13.5px; font-weight: 500;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* 6. Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #f6f3ee; isolation: isolate; }
.hero__gl { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; background: radial-gradient(80% 60% at 70% 30%, #8a2410, #1a0805); }
.hero__grain {
    position: absolute; inset: -50%; z-index: -2; pointer-events: none; opacity: .13; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(6) infinite;
}
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 25%, transparent 50%, rgba(0,0,0,.45) 100%); }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-6%,2%); } 80% { transform: translate(5%,4%); } }
.hero__meta { position: absolute; top: calc(var(--header-h) + 20px); right: var(--pad); }
.hero__inner { position: relative; width: 100%; padding: 0 var(--pad) clamp(28px, 4.5vw, 56px); }
.hero__title { margin: 0 0 clamp(28px, 3.5vw, 44px); font-size: clamp(50px, 11.6vw, 196px); line-height: .88; font-weight: 500; letter-spacing: -.058em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__title em { padding-right: .04em; }
.hero .eyebrow { color: rgba(246, 243, 238, .75); }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 420px) 1fr auto; align-items: end; gap: 30px; }
.hero__lead { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: rgba(246, 243, 238, .85); }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { position: relative; width: 112px; height: 112px; display: grid; place-items: center; flex: none; color: #f6f3ee; }
.badge__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge__text text { fill: currentColor; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.badge__arrow { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.badge:hover .badge__arrow { transform: translateY(5px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 7. Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 24px 0; background: var(--accent); color: var(--accent-ink); }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 30s linear infinite; }
.marquee span { font-size: clamp(24px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 18px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Statement & stats -------------------------------------------------------- */
.statement__grid { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.statement__text { max-width: 1180px; margin: 0; font-size: clamp(28px, 4.1vw, 64px); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.statement__text .w { opacity: .15; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; font-weight: 500; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.stat b::after { content: "+"; color: var(--accent); font-weight: 400; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* 9. Clients ----------------------------------------------------------------- */
.clients { padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.clients__label { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.clients__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clients__grid li { display: grid; place-items: center; height: 120px; border-right: 1px solid var(--line); color: var(--muted); transition: color .4s, background .4s; }
.clients__grid li:last-child { border-right: 0; }
.clients__grid li:hover { color: var(--fg); background: var(--bg-2); }
.wm { font-size: 22px; line-height: 1; white-space: nowrap; }
.wm--1 { font-weight: 700; letter-spacing: -.04em; }
.wm--2 { font-family: var(--serif); font-style: italic; font-size: 30px; }
.wm--3 { font-weight: 300; letter-spacing: .32em; font-size: 16px; }
.wm--4 { font-family: var(--serif); font-size: 27px; }
.wm--5 { font-weight: 600; letter-spacing: -.02em; text-transform: lowercase; }
.wm--6 { font-weight: 500; letter-spacing: .18em; font-size: 17px; border: 1.5px solid currentColor; padding: 6px 8px; }

/* 10. Work (horizontal) ------------------------------------------------------ */
.work { position: relative; }
.work__pin { height: 100vh; padding-top: 64px; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 3.5vw, 44px); overflow: hidden; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--pad); }
.work__hint { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.work__count b { color: var(--fg); font-weight: 600; }
.work__swipe { display: none; }
.work__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.card { position: relative; width: min(clamp(280px, 33vw, 500px), calc((100vh - 400px) * .8)); flex: none; }
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; transform: translateZ(0); }
.card__media .art { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.card:hover .card__media .art { transform: scale(1.05); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-100%); transition: transform 1.1s var(--ease); pointer-events: none; }
.card:hover .card__media::after { transform: translateX(100%); }
.card__arrow {
    position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .9); color: #0b0b0c; font-size: 20px; opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .4s, transform .6s var(--ease);
}
.card:hover .card__arrow { opacity: 1; transform: none; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.card__meta h3 { margin: 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.025em; }
.card__meta span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.tags { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; }
.tags li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; color: var(--muted); }
.card--more {
    aspect-ratio: 4 / 5; align-self: flex-start; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; text-align: center;
    border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
    font-size: clamp(36px, 4vw, 62px); line-height: .95; letter-spacing: -.045em; font-weight: 500; transition: background .6s var(--ease), color .6s var(--ease);
}
.card--more em { color: var(--accent); transition: color .6s; }
.card--more__btn { font-size: 15px; letter-spacing: 0; font-weight: 600; padding: 12px 20px; border-radius: 99px; border: 1px solid currentColor; }
.card--more:hover { background: var(--accent); color: var(--accent-ink); }
.card--more:hover em { color: var(--accent-ink); }

/* 11. Services --------------------------------------------------------------- */
.services { position: relative; }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__row { width: 100%; display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 16px; padding: clamp(22px, 2.8vw, 36px) 0; text-align: left; }
.service__num { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.service__name { font-size: clamp(30px, 5.2vw, 80px); font-weight: 500; letter-spacing: -.045em; line-height: 1; transition: transform .7s var(--ease), color .35s; }
.service__row:hover .service__name, .service.is-open .service__name { transform: translateX(18px); color: var(--accent); }
.service__plus { position: relative; width: 48px; height: 48px; justify-self: end; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, border-color .4s, color .4s; }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 15px; right: 15px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .5s var(--ease); }
.service__plus::after { transform: rotate(90deg); }
.service.is-open .service__plus { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.service.is-open .service__plus::after { transform: rotate(0); }
.service__body { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 16px; height: 0; overflow: hidden; }
.service__art { display: none; }
.service__body p { grid-column: 2; margin: 0 0 36px; max-width: 520px; color: var(--muted); font-size: 17.5px; }
.service__body ul { grid-column: 3; list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 15px; align-content: start; }
.service__body li::before { content: "→ "; color: var(--accent); }
.services__float { position: fixed; left: 0; top: 0; width: 260px; height: 320px; border-radius: 20px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: scale(.6); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.services__float .art { width: 100%; height: 100%; transition: background .4s; }
@media (hover: none) { .services__float { display: none; } }

/* 12. Process (stacking cards) ----------------------------------------------- */
.stack { display: grid; gap: 22px; }
.stack__card {
    position: sticky; top: calc(var(--header-h) + 40px); display: grid; grid-template-columns: minmax(120px, 280px) 1fr; gap: clamp(20px, 5vw, 80px); align-items: start;
    min-height: min(52vh, 440px); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
    transform-origin: center top; box-shadow: 0 -20px 60px rgba(0, 0, 0, .18);
}
.stack__card:nth-child(2) { top: calc(var(--header-h) + 64px); background: var(--bg-3); }
.stack__card:nth-child(3) { top: calc(var(--header-h) + 88px); }
.stack__card:nth-child(4) { top: calc(var(--header-h) + 112px); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stack__card:nth-child(4) p, .stack__card:nth-child(4) .stack__time { color: rgba(22, 8, 5, .72); border-color: rgba(22, 8, 5, .25); }
.stack__num { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 10vw, 160px); line-height: .78; }
.stack__card h3 { margin: 0 0 16px; font-size: clamp(34px, 4.4vw, 66px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.stack__card p { margin: 0; max-width: 540px; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); }
.stack__time { display: inline-block; margin-top: 26px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--muted); }

/* 13. Testimonials ----------------------------------------------------------- */
.quotes__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(30px, 4vw, 50px); }
.quotes__nav { display: flex; gap: 10px; }
.quotes__slides { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; transition: opacity .8s var(--ease), visibility .8s; }
.quote.is-active { visibility: visible; opacity: 1; }
.quote blockquote { margin: 0 0 40px; max-width: 1200px; font-family: var(--serif); font-size: clamp(34px, 5.2vw, 84px); line-height: 1.04; letter-spacing: -.02em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.quote figcaption b { display: block; color: var(--fg); font-weight: 600; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--a) 60%, #fff), var(--a)); color: #fff; font-weight: 600; font-size: 15px; }
.quotes__progress { margin-top: 44px; height: 2px; background: var(--line); }
.quotes__progress span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* 14. CTA -------------------------------------------------------------------- */
.cta { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); border-top: 1px solid var(--line); overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); pointer-events: none; }
.cta__title { position: relative; display: block; margin-bottom: clamp(36px, 5vw, 64px); font-size: clamp(56px, 12.4vw, 210px); line-height: .88; font-weight: 500; letter-spacing: -.058em; }
.cta__title span { display: block; transition: transform .9s var(--ease); }
.cta__title:hover span:last-child { transform: translateX(3%); }
.cta__title em { color: var(--accent); padding-right: .04em; }
.cta__row { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* 15. Footer ----------------------------------------------------------------- */
.footer { padding: 70px var(--pad) calc(26px + env(safe-area-inset-bottom)); background: var(--bg-2); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px 24px; font-size: 15px; }
.footer__grid p { margin: 0; }
.footer__label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px !important; }
.footer__text { color: var(--muted); max-width: 340px; margin-bottom: 16px !important; }
.footer__grid a:hover { color: var(--accent); }
.news { position: relative; display: flex; max-width: 380px; border-bottom: 1px solid var(--fg); flex-wrap: wrap; }
.news input { flex: 1; min-width: 0; height: 50px; background: none; border: 0; outline: 0; font-size: 17px; }
.news input::placeholder { color: var(--muted); }
.news button { width: 50px; height: 50px; font-size: 20px; transition: transform .4s var(--ease), color .3s; }
.news button:hover { transform: translateX(4px); color: var(--accent); }
.news__msg { position: absolute; top: 100%; left: 0; margin-top: 8px !important; font-size: 14px; color: var(--accent); }
.footer__mega { display: flex; justify-content: center; margin: clamp(56px, 7vw, 100px) 0 0; font-size: clamp(110px, 30vw, 500px); font-weight: 700; letter-spacing: -.07em; line-height: .76; padding-bottom: .12em; user-select: none; }
.footer__mega span { display: inline-block; transition: color .4s; }
.footer__mega span:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer__bottom p { margin: 0; }

/* 16. Art (generated visuals: no image licensing needed) --------------------- */
.art { position: relative; overflow: hidden; background: #222; }
.art::after { content: ""; position: absolute; inset: 0; opacity: .2; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.art__inner { position: absolute; inset: -10%; }
.art--1 .art__inner, .art[data-v="1"] { background: radial-gradient(60% 50% at 30% 30%, #ffb38a 0%, transparent 60%), radial-gradient(50% 60% at 75% 70%, #ff4d2d 0%, transparent 65%), linear-gradient(160deg, #2a0f0a, #6b1d10); }
.art--1 .art__inner::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #fff3e6, #ff8a5c 40%, #a2230f 75%); box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.art--1 .art__inner::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) rotateX(72deg); border: 1px solid rgba(255, 220, 200, .55); }
.art--2 .art__inner, .art[data-v="2"] { background: conic-gradient(from 200deg at 60% 40%, #e9d8c4, #c9a98f, #f6efe6, #b8917a, #e9d8c4); }
.art--2 .art__inner::before { content: ""; position: absolute; left: 30%; top: 22%; width: 40%; height: 56%; border-radius: 999px 999px 22px 22px; background: linear-gradient(180deg, #fffaf4, #dcc4ac); box-shadow: 0 30px 60px rgba(80, 50, 30, .35), inset 0 -20px 40px rgba(120, 80, 50, .25); }
.art--2 .art__inner::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 18%; height: 3%; border-radius: 50%; background: rgba(90, 55, 30, .35); filter: blur(8px); }
.art--3 .art__inner, .art[data-v="3"] { background: radial-gradient(70% 70% at 50% 120%, #3b5bff 0%, transparent 70%), radial-gradient(40% 40% at 80% 20%, #9ef0ff 0%, transparent 70%), #05071a; }
.art--3 .art__inner::before { content: ""; position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(158, 240, 255, .55); box-shadow: 0 0 0 30px rgba(158,240,255,.06), 0 0 0 60px rgba(158,240,255,.04), 0 0 0 90px rgba(158,240,255,.03), inset 0 0 60px rgba(59, 91, 255, .5); }
.art--3 .art__inner::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #9ef0ff; box-shadow: 0 0 40px 10px rgba(158, 240, 255, .6); }
.art--4 .art__inner, .art[data-v="4"] { background: linear-gradient(135deg, #3a2414 0%, #7a4a26 45%, #d9a066 100%); }
.art--4 .art__inner::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%) rotate(-8deg); border-radius: 14px; background: linear-gradient(160deg, #f4e7d4, #c79a6b); box-shadow: 0 40px 70px rgba(30, 15, 5, .5); }
.art--4 .art__inner::after { content: "ORO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); font: italic 400 clamp(28px, 4vw, 54px)/1 var(--serif); letter-spacing: .1em; color: #5a3519; }
.art--5 .art__inner { background: linear-gradient(180deg, #0f2a22, #1f5a47 60%, #c8f0dc); }
.art--5 .art__inner::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 20%; height: 50%; border-radius: 18px; background: repeating-linear-gradient(90deg, rgba(200, 240, 220, .9) 0 10%, transparent 10% 14%); -webkit-mask: linear-gradient(0deg, #000 30%, transparent); mask: linear-gradient(0deg, #000 30%, transparent); }
.art--5 .art__inner::after { content: ""; position: absolute; left: 14%; top: 22%; width: 34%; height: 4%; border-radius: 99px; background: rgba(200, 240, 220, .8); box-shadow: 0 28px 0 -4px rgba(200, 240, 220, .35); }

/* 17. Responsive & motion ---------------------------------------------------- */
@media (max-width: 1100px) {
    .hero__bottom { grid-template-columns: 1fr auto; }
    .hero__ctas { grid-column: 1; grid-row: 2; }
    .badge { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
    .clients__grid { grid-template-columns: repeat(3, 1fr); }
    .clients__grid li:nth-child(3) { border-right: 0; }
    .clients__grid li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
    :root { --header-h: 68px; }
    .nav { display: none; }
    .menu-toggle { display: block; }
    .header .btn--small { display: none; }
    .statement__grid { grid-template-columns: 1fr; gap: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 30px; }
    .service__row { grid-template-columns: 34px 1fr 42px; }
    .service__plus { width: 42px; height: 42px; }
    .service__plus::before, .service__plus::after { left: 13px; right: 13px; }
    .service__row:hover .service__name, .service.is-open .service__name { transform: none; }
    .service__body { grid-template-columns: 1fr; gap: 0; }
    .service__body p, .service__body ul { grid-column: 1; }
    .service__body p { margin-bottom: 18px; }
    .service__art { display: block; height: 190px; border-radius: 18px; margin-bottom: 22px; }
    .stack__card { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
    .stack__num { font-size: 64px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__news { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    /* phones: the work list scrolls sideways natively instead of pinning */
    .work__pin { height: auto; padding: 100px 0; }
    .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
    .work__track::-webkit-scrollbar { display: none; }
    .card { width: 80vw; scroll-snap-align: start; }
    .card--more { width: 80vw; }
    .card__arrow { opacity: 1; transform: none; width: 40px; height: 40px; font-size: 17px; }
    .work__count { display: none; }
    .work__swipe { display: inline; }
}
@media (max-width: 600px) {
    .hero { min-height: 100svh; }
    .hero__meta { top: calc(var(--header-h) + 8px); left: var(--pad); right: auto; }
    .hero__title { font-size: clamp(46px, 14.2vw, 80px); line-height: .9; }
    .hero__bottom { grid-template-columns: 1fr; gap: 22px; }
    .hero__ctas { grid-row: auto; }
    .hero__ctas .btn { flex: 1; padding: 0 16px; }
    .badge { display: none; }
    .h2 { font-size: clamp(42px, 12vw, 64px); }
    .clients__grid { grid-template-columns: repeat(2, 1fr); }
    .clients__grid li { height: 96px; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
    .clients__grid li:nth-child(2n) { border-right: 0 !important; }
    .clients__grid li:nth-last-child(-n+2) { border-bottom: 0; }
    .wm { font-size: 19px; } .wm--2 { font-size: 25px; } .wm--4 { font-size: 23px; } .wm--3 { font-size: 14px; } .wm--6 { font-size: 14px; }
    .stat { padding-right: 12px; }
    .stat + .stat { padding-left: 16px; }
    .stat:nth-child(3) { padding-left: 0; }
    .stat span { font-size: 13.5px; }
    .quote blockquote { font-size: clamp(30px, 8.6vw, 44px); }
    .quotes__head { flex-wrap: wrap; gap: 10px; }
    .round-btn { width: 48px; height: 48px; }
    .cta__title { font-size: clamp(50px, 15vw, 90px); }
    .cta__row .btn { width: 100%; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid > div:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .statement__text .w, .quote blockquote .w { opacity: 1; }
}
