/*  Rhapsody Productions – main stylesheet
    01 Fonts & tokens   02 Base   03 Layout   04 Buttons   05 Header   06 Hero
    07 Headings   08 Statement   09 Cards (numbered)   10 Projects (featured)   11 What we make
    12 Filter chips   13 CTA   14 Page banner / about   15 Services page   16 Portfolio   17 Modal
    18 Forms / contact   19 Footer   20 Animations   21 Utilities & responsive
*/

/* 01 Fonts & tokens ---------------------------------------------------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "FA Solid"; font-style: normal; font-weight: 900; font-display: block; src: url("../fonts/fa-solid-900.woff2") format("woff2"); }
@font-face { font-family: "FA Brands"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/fa-brands-400.woff2") format("woff2"); }

:root {
    --bg: #0e1214;
    --bg-2: #151a1d;
    --card: #1e2529;
    --card-2: #283036;
    --accent: #4ecdc4;
    --accent-2: #2a9da8;
    --accent-ink: #04201f;
    --slate: #566170;
    --text: #d3d9dc;
    --muted: #9aa5ab;
    --white: #ffffff;
    --line: rgba(255, 255, 255, 0.14);
    --font-display: "Anton", "Impact", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1280px;
    --gutter: clamp(20px, 5.5vw, 80px);
    --section: clamp(72px, 10vw, 140px);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --header-h: 100px;
}

/* 02 Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25rem; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--white); line-height: 1.02; letter-spacing: 0.005em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

.fa-s, .fa-b { display: inline-block; font-style: normal; font-variant: normal; line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fa-s { font-family: "FA Solid"; font-weight: 900; }
.fa-b { font-family: "FA Brands"; font-weight: 400; }
.i-arrow::before { content: "\f061"; } .i-play::before { content: "\f04b"; } .i-bars::before { content: "\f0c9"; }
.i-x::before { content: "\f00d"; } .i-mail::before { content: "\f0e0"; } .i-pin::before { content: "\f3c5"; }
.i-clap::before { content: "\e131"; } .i-video::before { content: "\f03d"; } .i-film::before { content: "\f008"; }
.i-users::before { content: "\f0c0"; } .i-mic::before { content: "\f3c9"; } .i-wand::before { content: "\e2ca"; }
.i-check::before { content: "\f058"; } .i-chev::before { content: "\f078"; } .i-plus::before { content: "\f067"; }
.i-clock::before { content: "\f017"; } .i-cal::before { content: "\f133"; } .i-scissors::before { content: "\f0c4"; }
.i-palette::before { content: "\f53f"; } .i-eye::before { content: "\f06e"; } .i-handshake::before { content: "\f2b5"; }
.i-gears::before { content: "\f085"; } .i-layers::before { content: "\f5fd"; } .i-up::before { content: "\f176"; }
.i-vimeo::before { content: "\f27d"; } .i-ig::before { content: "\f16d"; } .i-yt::before { content: "\f167"; } .i-in::before { content: "\f0e1"; } .i-fb::before { content: "\f39e"; }
.i-circle-arrow::before { content: "\f0a9"; }

/* 03 Layout ----------------------------------------------------------- */
.container { width: min(var(--container) + var(--gutter) * 2, 100%); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-2); }
.section--dark { background: #0a0d0f; }
.grid { display: grid; gap: 30px; }

/* 04 Buttons ---------------------------------------------------------- */
.btn {
    --b-bg: var(--accent); --b-fg: var(--accent-ink);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 48px; padding: 16px 34px; border: 2px solid var(--b-bg); background: var(--b-bg); color: var(--b-fg);
    font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
    transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white); transform: translateY(101%); transition: transform 0.4s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--accent-ink); border-color: var(--white); }
.btn .fa-s { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.btn:hover .fa-s { transform: translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--white); border-color: var(--white); }
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--accent); }
.btn--dark { --b-bg: var(--accent-ink); --b-fg: var(--white); border-color: var(--accent-ink); }
.btn--dark::before { background: var(--white); }
.btn--dark:hover { border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.link-more { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); }
.link-more .fa-s { color: var(--accent); transition: transform 0.3s var(--ease); }
.link-more:hover .fa-s { transform: translateX(5px); }

.socials { display: flex; gap: 14px; }
.socials a {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); font-size: 1.05rem;
    transition: transform 0.3s var(--ease), background 0.3s;
}
.socials a:hover { transform: translateY(-4px); background: var(--white); }

/* 05 Header ----------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: height 0.35s var(--ease), background 0.35s, box-shadow 0.35s, transform 0.4s var(--ease); }
.site-header.is-stuck { height: 76px; background: rgba(14, 18, 20, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; flex: none; }
.brand img { width: 172px; height: auto; transition: width 0.35s var(--ease); }
.is-stuck .brand img { width: 148px; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.main-nav a { position: relative; display: block; padding: 8px 0; font-weight: 500; color: var(--white); letter-spacing: 0.02em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--accent); }
.header-cta { padding: 15px 28px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; align-items: center; justify-content: center; }
.drawer-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.drawer {
    position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(420px, 88vw);
    background: var(--bg-2); padding: calc(24px + env(safe-area-inset-top)) 28px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px;
    transform: translateX(100%); transition: transform 0.5s var(--ease); overflow-y: auto; visibility: hidden;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head img { width: 150px; }
.drawer-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; }
.drawer nav a { display: flex; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; color: var(--white); transition: color 0.25s, padding 0.3s var(--ease); }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--accent); padding-left: 10px; }
.drawer p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.drawer-cta { align-self: stretch; margin-top: 4px; }
.nav-open .drawer { transform: none; visibility: visible; }
.nav-open .drawer-overlay { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

/* 06 Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; padding: calc(var(--header-h) + 40px) 0 calc(clamp(48px, 7vw, 96px) + env(safe-area-inset-bottom)); }
.hero-media, .hero-media::after, .hero-grain { position: absolute; inset: 0; }
/* self-hosted <video> fills the hero box; no poster, the dark gradient shows until the first frame is ready */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.hero-video.is-ready { opacity: 0.8; }
/* vignette + legibility gradient */
.hero-media::after { content: ""; background: linear-gradient(0deg, rgba(8, 11, 12, 0.94) 0%, rgba(8, 11, 12, 0.5) 34%, rgba(8, 11, 12, 0.08) 62%, rgba(8, 11, 12, 0.55) 100%), radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.62) 100%); }
/* film grain */
.hero-grain { z-index: 1; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; animation: grain 0.9s steps(5) infinite; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-kicker { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); opacity: 0; animation: fade-up 1s 0.1s var(--ease) forwards; }
.hero-kicker::before { content: ""; width: 38px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(3.8rem, 11.5vw, 11.5rem); line-height: 0.92; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: line-up 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: 0.2s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.34s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.48s; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { max-width: 520px; margin: 28px 0 32px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--white); opacity: 0; animation: fade-up 1s 0.85s var(--ease) forwards; }
.hero-cta { opacity: 0; animation: fade-up 1s 1s var(--ease) forwards; }
.scroll-cue { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(clamp(48px, 7vw, 96px) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--white); }
.scroll-cue span { writing-mode: vertical-rl; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 64px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: var(--accent); animation: cue 2s var(--ease) infinite; }
.scroll-cue:hover span { color: var(--accent); }

/* 07 Headings --------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.h-xl { font-size: clamp(2.8rem, 6.6vw, 6rem); }
.h-lg { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.h-md { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.h-sm { font-size: 1.55rem; }
.text-accent { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head p { margin: 0; color: var(--muted); }
.section-head--center { display: block; text-align: center; max-width: 900px; margin-inline: auto; }
.section-head--center p { margin: 22px auto 0; max-width: 640px; }


/* 08 Statement (home "Who we are") ----------------------------------- */
.statement-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 8vw, 130px); align-items: center; }
.statement-text .lead { color: var(--white); margin-top: 30px; }
.statement-text p { max-width: 560px; }
.statement-text .link-more { margin-top: 14px; }
.statement-media, .split-media { position: relative; margin: 0; }
.statement-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); opacity: 0.55; z-index: 0; }
.statement-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.statement-media figcaption, .split-media figcaption { position: relative; z-index: 1; margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.section--work { padding-top: clamp(64px, 8vw, 112px); }
.work-head, .make-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(30px, 5vw, 64px); }

/* 09 Numbered cards --------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { position: relative; overflow: hidden; background: var(--bg); padding: 36px 32px 34px; min-height: 410px; display: flex; flex-direction: column; transition: background 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s; }
.section--alt .card { background: var(--bg); }
.card .num { position: absolute; left: -2px; top: -14px; font-family: var(--font-display); font-size: 11rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07); transition: -webkit-text-stroke-color 0.4s; }
.card .ico { align-self: flex-end; font-size: 3rem; color: var(--accent); transition: color 0.4s, transform 0.5s var(--ease); }
.card h3 { margin-top: auto; padding-top: 70px; font-size: 1.85rem; }
.card p { margin: 14px 0 0; color: var(--text); transition: color 0.4s; }
.card:hover { background: var(--accent); transform: translateY(-8px); }
.card:hover .ico, .card:hover h3, .card:hover p { color: var(--accent-ink); }
.card:hover .num { -webkit-text-stroke-color: rgba(4, 32, 31, 0.22); }
.card:hover .ico { transform: rotate(-8deg) scale(1.1); }
.cards--how { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards--how .card { min-height: 340px; padding: 32px 26px 30px; }
.cards--how .card h3 { font-size: 1.6rem; padding-top: 56px; }
.how-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.how-head p { margin: 0; max-width: 460px; color: var(--muted); }

/* 10 Projects (featured work) ----------------------------------------- */
.projects { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.project { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #101416; }
.project:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.projects--few { grid-template-columns: repeat(2, 1fr); }
.projects--few .project:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.project .thumb { position: absolute; inset: 0; }
.thumb { position: relative; overflow: hidden; background: #101416; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%); opacity: 0.9; transition: opacity 0.4s; pointer-events: none; }
.project:hover .thumb img, .project:focus-visible .thumb img { transform: scale(1.06); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; display: grid; place-items: center; padding-left: 4px; transition: transform 0.4s var(--ease), background 0.3s, opacity 0.3s; }
.play::before, .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.4s infinite var(--ease); }
.play::after { animation-delay: 1.2s; }
.project .play { opacity: 0; transform: scale(0.8); }
.project:first-child .play { width: 92px; height: 92px; margin: -46px 0 0 -46px; font-size: 1.4rem; }
.project:hover .play, .project:focus-visible .play { opacity: 1; transform: scale(1); }
.vcard:hover .play { transform: scale(1.12); background: var(--white); }
.project-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(16px, 2vw, 30px); pointer-events: none; }
.project-meta .kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.project-meta h3 { font-size: clamp(1.25rem, 1.9vw, 1.8rem); line-height: 1.05; }
.project:first-child .project-meta h3 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); max-width: 18ch; }
.skeleton { background: linear-gradient(100deg, #151a1d 30%, #1e2529 50%, #151a1d 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite linear; }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
@media (hover: none) { .project .play { opacity: 1; transform: none; width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 0.95rem; } .project:first-child .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }

/* 11 What we make (home strip) ---------------------------------------- */
.make-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.make-list li + li { border-left: 1px solid var(--line); }
.make-list a { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; height: 100%; min-height: 230px; padding: 26px 22px 28px; transition: background 0.4s var(--ease); }
.make-list .n { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--accent); transition: color 0.3s; }
.make-list .t { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.05; color: var(--white); transition: color 0.3s; }
.make-list .fa-s { align-self: flex-end; color: var(--accent); transition: transform 0.3s var(--ease), color 0.3s; }
.make-list a:hover, .make-list a:focus-visible { background: var(--accent); }
.make-list a:hover .n, .make-list a:hover .t, .make-list a:hover .fa-s, .make-list a:focus-visible .n, .make-list a:focus-visible .t, .make-list a:focus-visible .fa-s { color: var(--accent-ink); }
.make-list a:hover .fa-s { transform: translateX(5px); }

/* 12 Filter chips (portfolio) ----------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(26px, 4vw, 44px); }
.filters[hidden] { display: none; }
.fchip { min-height: 44px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--white); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.fchip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 13 CTA -------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(80px, 11vw, 160px); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 18, 20, 0.92), rgba(14, 18, 20, 0.72) 50%, rgba(14, 18, 20, 0.94)), radial-gradient(circle at 50% 50%, rgba(42, 157, 168, 0.35), transparent 60%); }
.cta h2 { font-size: clamp(2.8rem, 7.5vw, 7rem); max-width: 1000px; margin: 0 auto 24px; }
.cta p { max-width: 600px; margin: 0 auto 38px; font-size: 1.2rem; color: var(--white); }
.cta .btn-row { justify-content: center; }

/* 14 Page banner ------------------------------------------------------ */
.banner { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(70px, 10vw, 150px)) 0 clamp(60px, 8vw, 110px); background: var(--bg-2); }
.banner-bg { position: absolute; inset: 0; z-index: -2; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transform: scale(1.05); animation: slow-zoom 16s ease-out forwards; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 18, 20, 0.6), rgba(14, 18, 20, 0.96)), radial-gradient(ellipse at 85% 10%, rgba(42, 157, 168, 0.3), transparent 55%); }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: 0.6rem; color: var(--accent); }
.banner h1 { font-size: clamp(3.2rem, 9.5vw, 9rem); line-height: 0.95; max-width: 1100px; }
.banner p { max-width: 640px; margin: 26px 0 0; font-size: 1.2rem; color: var(--text); }
.banner--slim { padding: calc(var(--header-h) + clamp(36px, 6vw, 84px)) 0 clamp(34px, 5vw, 64px); }
.banner--slim h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); }
.banner--slim p { margin-top: 16px; font-size: 1.1rem; }

/* About / split */
.section--roomy { padding-block: calc(var(--section) * 1.2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 9vw, 140px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.split-text p { color: var(--text); max-width: 560px; }
.split-text p.big { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--white); line-height: 1.5; margin-bottom: 1.75rem; }
.split-text .btn-row { margin-top: 36px; }

/* 15 Services page ---------------------------------------------------- */
.svc-row { scroll-margin-top: calc(var(--header-h) - 20px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-row:hover .svc-row-media img { transform: scale(1.06); }
.svc-row-media .ico { position: absolute; left: 0; bottom: 0; width: 84px; height: 84px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 2rem; }
.svc-row .n { font-family: var(--font-display); font-size: 6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25); display: block; margin-bottom: 10px; }
.svc-row h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 20px; }
.svc-row p { font-size: 1.15rem; max-width: 520px; }

/* 16 Portfolio grid --------------------------------------------------- */
.section--portfolio { padding-top: clamp(36px, 5vw, 68px); }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 24px; }
.vcard { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.vcard .thumb { aspect-ratio: 16 / 9; }
.vcard .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 1rem; }
.vcard .dur { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 3px 9px; background: rgba(0, 0, 0, 0.75); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--white); }
.vcard:hover .thumb img, .vcard:focus-visible .thumb img { transform: scale(1.06); }
.vcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 16px; }
.vcard .chip { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.vcard h3 { font-size: 1.45rem; line-height: 1.1; transition: color 0.3s; }
.vcard:hover h3 { color: var(--accent); }
.vcard .sub { font-size: 0.9rem; color: var(--muted); }
.vmore { text-align: center; margin-top: 64px; }
.vcount { color: var(--muted); margin-top: 18px; font-size: 0.95rem; }

/* 17 Modal ------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; padding: calc(68px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: rgba(5, 8, 9, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(1100px, 100%); margin: auto; transform: scale(0.96); transition: transform 0.45s var(--ease); }
.modal.is-open .modal-box { transform: none; }
.modal-frame { aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-info { display: grid; gap: 12px; max-width: 820px; padding-top: 22px; }
.modal-info [hidden] { display: none; }
.modal-title { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; }
.modal-meta { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.modal-desc { margin: 0; white-space: pre-line; color: var(--text); }
.modal-credits h3 { margin-bottom: 6px; font-size: 1.1rem; letter-spacing: 0.08em; }
.modal-credits p { margin: 0; white-space: pre-line; color: var(--muted); font-size: 0.95rem; }
.modal-close { position: fixed; z-index: 2; right: max(14px, env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; transition: transform 0.3s var(--ease), background 0.3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--white); }

/* 18 Forms / contact -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.form-card { background: var(--card); padding: clamp(28px, 4vw, 54px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 16px 18px; border: 1px solid transparent; border-bottom: 2px solid var(--slate); background: var(--bg); color: var(--white); font: inherit; border-radius: 0; transition: border-color 0.3s, background 0.3s; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); background: #0a0e10; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #ff7b7b; }
.field .err { display: none; margin-top: 6px; color: #ff9a9a; font-size: 0.88rem; }
.field.has-error .err { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 22px; padding: 16px 20px; font-weight: 500; }
.form-status.is-ok { display: block; background: rgba(78, 205, 196, 0.14); border-left: 4px solid var(--accent); color: var(--white); }
.form-status.is-bad { display: block; background: rgba(255, 123, 123, 0.12); border-left: 4px solid #ff7b7b; color: var(--white); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: circle-spin 0.7s linear infinite; }
.btn.is-loading .spin { display: inline-block; }
.info-card { background: var(--card); padding: 34px 32px; margin-bottom: 24px; }
.info-card h3 { font-size: 1.6rem; margin-bottom: 20px; }
.info-list li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list .ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.info-list strong { display: block; color: var(--white); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; }
.info-list span, .info-list a { color: var(--text); }
.info-list a:hover { color: var(--accent); }

/* 19 Footer ----------------------------------------------------------- */
.site-footer { background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.footer-main { display: grid; grid-template-columns: 1.1fr 0.8fr 1.1fr; gap: clamp(30px, 5vw, 80px); padding-block: clamp(60px, 8vw, 110px) 50px; }
.site-footer h3, .site-footer h4 { color: var(--accent-ink); font-size: 1.7rem; margin-bottom: 22px; }
.footer-brand img { width: 220px; margin-bottom: 26px; filter: brightness(0); }
.site-footer p { margin: 0 0 12px; font-weight: 500; }
.footer-nav li + li { margin-top: 2px; }
.footer-nav a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; letter-spacing: 0.03em; transition: gap 0.3s var(--ease); }
.footer-nav a:hover { gap: 20px; }
.footer-nav .fa-s { font-size: 0.95rem; }
.site-footer .socials a { background: var(--accent-ink); color: var(--accent); }
.site-footer .socials a:hover { background: var(--white); color: var(--accent-ink); }
.footer-mail a { display: inline-block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; border-bottom: 2px solid var(--accent-ink); line-height: 1.2; margin-bottom: 30px; }
.footer-word { padding-inline: var(--gutter); line-height: 0.8; text-align: center; font-family: var(--font-display); text-transform: uppercase; font-size: min(23vw, 21rem); white-space: nowrap; color: var(--accent-ink); height: 0.72em; overflow: hidden; border-bottom: 3px solid var(--accent-ink); margin-inline: var(--gutter); padding-inline: 0; }
.footer-bar { margin-top: 36px; margin-bottom: 36px; background: var(--accent-ink); color: var(--text); border-radius: 0 0 60px 0; padding: 22px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-bar a:hover { color: var(--accent); }
.to-top { position: fixed; z-index: 90; right: max(22px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background 0.3s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--white); }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.nf h1 { font-size: clamp(8rem, 28vw, 24rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 3px var(--accent); }
.nf p { margin: 20px 0 34px; font-size: 1.2rem; }

/* 20 Animations ------------------------------------------------------- */
@keyframes ripple { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.75); } }
@keyframes circle-spin { to { transform: rotate(360deg); } }
@keyframes fade-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes rule { to { transform: scaleX(1); } }
@keyframes slow-zoom { to { transform: scale(1); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(300%); } }
@keyframes shimmer { to { background-position: -300% 0; } }

.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: reveal-up 0.9s var(--ease) var(--d, 0s) backwards; }
.js [data-reveal="left"].is-in { animation-name: reveal-left; }
.js [data-reveal="right"].is-in { animation-name: reveal-right; }
.js [data-reveal="zoom"].is-in { animation-name: reveal-zoom; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(40px); } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-50px); } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(50px); } }
@keyframes reveal-zoom { from { opacity: 0; transform: scale(0.94); } }

@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; }
    .hero h1 .line > span, .hero-kicker, .hero-sub, .hero-cta { opacity: 1; transform: none; }
    .hero-grain, .scroll-cue i::after { animation: none; }
}

/* 21 Utilities & responsive ------------------------------------------- */
.mt-0 { margin-top: 0; } .center { text-align: center; }
.contact-grid > *, .statement-grid > *, .split > * { min-width: 0; }
.info-list a, .info-list span { overflow-wrap: anywhere; }

@media (max-width: 1199px) {
    .main-nav a { font-size: 0.95rem; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards--how { grid-template-columns: repeat(2, 1fr); }
    .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-main > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
    :root { --header-h: 84px; }
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .statement-grid, .split, .contact-grid, .svc-row, .how-head { grid-template-columns: 1fr; }
    .statement-media, .split-media { max-width: 560px; }
    .statement-media::before { inset: 14px -10px -14px 14px; }
    .svc-row:nth-child(even) .svc-row-media { order: 0; }
    .projects { grid-template-columns: repeat(2, 1fr); }
    .project:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
    .vgrid { grid-template-columns: repeat(2, 1fr); }
    .make-list { grid-template-columns: 1fr; border-bottom: 0; }
    .make-list li + li { border-left: 0; }
    .make-list li { border-bottom: 1px solid var(--line); }
    .make-list a { flex-direction: row; align-items: center; gap: 18px; min-height: 72px; padding: 14px 6px; }
    .make-list .t { flex: 1; }
    .make-list .fa-s { align-self: center; }
}
@media (max-width: 767px) {
    body { font-size: 1rem; }
    .brand img, .is-stuck .brand img { width: 140px; }
    .cards, .cards--how { grid-template-columns: 1fr; }
    .card, .cards--how .card { min-height: 260px; }
    .cards--how .card h3 { padding-top: 40px; }
    .projects, .vgrid { grid-template-columns: 1fr; }
    .project, .project:first-child { aspect-ratio: 16 / 9; }
    .work-head, .make-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .scroll-cue { display: none; }
    .hero { padding-top: calc(var(--header-h) + 24px); }
    .hero-sub { margin: 22px 0 26px; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .filters::-webkit-scrollbar { display: none; }
    .fchip { flex: none; }
    .vcard h3 { font-size: 1.3rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-bar { border-radius: 0 0 40px 0; padding: 20px 24px; justify-content: center; text-align: center; }
    .modal { padding-inline: 0; padding-top: calc(64px + env(safe-area-inset-top)); }
    .modal-box { margin-top: 0; }
    .modal-info { padding: 20px 20px 8px; }
    .info-card, .form-card { padding: 28px 22px; }
}
@media (max-width: 479px) {
    .btn { padding: 15px 24px; width: 100%; }
    .btn-row { width: 100%; }
    .hero h1 { font-size: clamp(3.4rem, 17vw, 5.4rem); }
    .hero-kicker { font-size: 0.72rem; letter-spacing: 0.24em; }
    .play, .project:first-child .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}
