/*
Theme Name: Encap
Theme URI: https://encap.sg
Author: ENCAP Pte Ltd
Description: Custom theme for Encap, a Singapore content and ads studio. Built to show the work and turn visitors into enquiries.
Version: 1.10.4
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: encap
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #0c0c0b;
	--bg-raised: #151513;
	--bg-sunk: #090908;
	--ink: #f4f2ee;
	--ink-muted: #a6a39c;
	--ink-faint: #75726c;
	--line: #262521;
	--line-strong: #3a3934;
	--brand: #bd3527;        /* Encap red: buttons, large display */
	--brand-hover: #d23f30;
	--brand-ink: #ef6b59;    /* red for small text on dark (passes 4.5:1) */
	--paper: #f4f2ee;        /* light sections */
	--paper-ink: #121210;
	--paper-muted: #5c5a55;

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

	--wrap: 1360px;
	--gutter: clamp(16px, 4vw, 48px);
	--section: clamp(88px, 12vw, 168px);
	--radius: 18px;
	--radius-sm: 10px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--brand); }

/* Section label: "(01) Selected work" */
.label {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--ink-muted);
}
.label__num { color: var(--brand-ink); font-variant-numeric: tabular-nums; }

.section-head {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
	margin-bottom: clamp(40px, 6vw, 72px);
}
/* Every section title shares one treatment, and its serif-italic phrase is always Encap red. */
.section-head h2, .about__statement, .contact__title {
	font-size: clamp(40px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.04em; line-height: .98; margin-top: 18px;
}
h1 .serif, h2 .serif { color: var(--brand); }
.section-head__aside { max-width: 380px; color: var(--ink-muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
	font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12, 12, 11, 0.78);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img, .custom-logo-link img { height: 26px; width: auto; transition: opacity .2s var(--ease); }
/* Red logo by default; the white one fades in on top on hover/focus. */
.brand { position: relative; }
.brand .brand__hover { position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0; }
.brand:hover .brand__hover, .brand:focus-visible .brand__hover { opacity: 1; }
.custom-logo-link:hover img { opacity: .8; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { display: flex; gap: 4px; }
.nav a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	font-size: 15px; font-weight: 500; color: var(--ink-muted); text-decoration: none; border-radius: 999px;
	transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); background: var(--bg-raised); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
	display: none; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
	align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after {
	content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 76px 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 16px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { font-size: 28px; font-weight: 600; color: var(--ink); padding: 10px 0; border-radius: 0; letter-spacing: -0.02em; }
	.nav a:hover { background: transparent; color: var(--brand-ink); }
	.header-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
/* Spacing steps: --hero-lg frames the section, --hero-md splits headline from body,
   --hero-sm separates items within a group. */
.hero {
	--hero-lg: clamp(48px, 6.5vw, 96px);
	--hero-md: clamp(32px, 3.4vw, 48px);
	--hero-sm: clamp(20px, 2.2vw, 32px);
	padding-block: var(--hero-lg); position: relative; overflow: hidden;
}
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: var(--hero-sm); }
.pill {
	display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px;
	border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink-muted);
}
.pill__live { width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62, 207, 110, .14); }
.hero__title {
	font-size: clamp(54px, 10.6vw, 172px);
	font-weight: 600; letter-spacing: -0.055em; line-height: .9;
	max-width: none;
}
.hero__title .serif { display: block; letter-spacing: -0.035em; padding-right: .04em; }
.hero__grid { margin-top: var(--hero-md); }

/* Rotating scroll cue: last item in the button row, centred on the row and, via
   --cue-shift (set in main.js), under the header's "Start a project" button. */
.scroll-cue {
	position: relative; flex-shrink: 0; width: clamp(64px, 5.5vw, 84px); aspect-ratio: 1;
	margin-left: auto; margin-right: var(--cue-shift, 0px);
	display: grid; place-items: center; color: #fff;
}
.scroll-cue__box {
	position: absolute; inset: 0; background: var(--brand); border-radius: 6px;
	animation: cue-spin 14s linear infinite; transition: background-color .25s var(--ease);
}
.scroll-cue:hover .scroll-cue__box { background: var(--brand-hover); }
.scroll-cue:focus-visible { outline: none; }
.scroll-cue:focus-visible .scroll-cue__box { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Three chevrons in a column slide down by one step and loop, so two always show. */
.scroll-cue__arrows {
	position: relative; width: 50%; height: 56%; overflow: hidden;
	-webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
	mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.scroll-cue__track { position: absolute; left: 0; right: 0; top: -50%; display: grid; animation: cue-drop 1.4s linear infinite; }
.scroll-cue__track svg { display: block; width: 100%; height: auto; margin-block: -22%; stroke-width: 2.5; }
@keyframes cue-spin { to { transform: rotate(360deg); } }
@keyframes cue-drop { to { transform: translateY(33.333%); } }
@media (prefers-reduced-motion: reduce) {
	.scroll-cue__box { transform: rotate(-12deg); }
	.scroll-cue__track { animation: none; }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-muted); max-width: 46ch; }
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--hero-sm); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--hero-sm); font-size: 14px; color: var(--ink-faint); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--brand-ink); }

/* Opening animation, as on the old encap.sg: on load the headline slides in from the left, the
   intro and buttons from the right, and the scroll cue and marquee rise from below, all together
   with a quick spring-like ease. The cue moves on its own (not with its row) so main.js can
   line it up with the header button while the row is still moving. */
.hero__eyebrow, .hero__title { --intro-x: -96px; }
.hero__lede, .hero__actions > .btn, .hero__trust { --intro-x: 192px; }
.hero__eyebrow, .hero__title, .hero__lede, .hero__actions > .btn, .hero__trust { animation: intro-x .9s cubic-bezier(.22, 1, .36, 1) both; }
.scroll-cue { animation: intro-y .9s cubic-bezier(.22, 1, .36, 1) both; --intro-y: 96px; }
.hero-zone > .marquee { animation: intro-y .9s cubic-bezier(.22, 1, .36, 1) both; --intro-y: 192px; }
@keyframes intro-x { from { transform: translateX(var(--intro-x)); } }
@keyframes intro-y { from { transform: translateY(var(--intro-y)); } }

/* Cursor-reactive dot field behind the hero (drawn by main.js). */
/* The dot field spans the hero and the marquee, fading out at the sides and
   towards the next section. */
.hero-zone { position: relative; overflow: hidden; isolation: isolate; }
.hero-zone > .hero, .hero-zone > .marquee { position: relative; z-index: 1; }
.hero__dots {
	position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
	-webkit-mask-image:
		linear-gradient(to bottom, transparent, #000 8%, #000 80%, transparent),
		linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(to bottom, transparent, #000 8%, #000 80%, transparent),
		linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
	mask-composite: intersect;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
	display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
	font-size: clamp(26px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap;
}
.marquee__item:nth-child(even) { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ink-muted); }
.marquee__star { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
/* A strip of same-size (4:5) images and videos that drifts left, drawn by main.js onto a canvas. The strip is
   magnified towards the sides, so an image is a plain rectangle only in the middle and its
   edges bend taller as it moves out. */
.reel {
	--reel-h: clamp(380px, 50vw, 720px);
	position: relative; height: var(--reel-h); cursor: grab; touch-action: pan-y;
}
.reel.is-dragging { cursor: grabbing; }
.reel__canvas { display: block; width: 100%; height: 100%; }
/* With JS the list only feeds the canvas (and screen readers); without it, it is a plain row. */
.js .reel__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
html:not(.js) .reel { height: auto; cursor: auto; }
html:not(.js) .reel__canvas { display: none; }
html:not(.js) .reel__list { display: flex; gap: 12px; overflow-x: auto; padding-inline: var(--gutter); }
html:not(.js) .reel__item { flex: 0 0 clamp(220px, 24vw, 340px); aspect-ratio: 4 / 5; }
html:not(.js) .reel__item img, html:not(.js) .reel__item video { width: 100%; height: 100%; object-fit: cover; }
.reel__credit {
	margin-top: clamp(4px, 1vw, 12px); padding-inline: var(--gutter); text-align: center;
	font-size: 15px; font-weight: 500; color: var(--ink);
}
.reel__service { color: var(--ink-muted); font-weight: 400; }
.reel__service:not(:empty)::before { content: "— "; }
.work__cta { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 760px) {
	.reel { --reel-h: clamp(260px, 72vw, 360px); }
}

/* ---------- About (light) ---------- */
.about { background: var(--paper); color: var(--paper-ink); border-radius: clamp(24px, 3vw, 40px); margin-inline: clamp(8px, 1vw, 16px); }
/* Breathing room between the marquee and the About card, which now follows it directly. */
.hero-zone + .about { margin-top: clamp(24px, 4vw, 56px); }
.about .label { color: var(--paper-muted); }
.about .label__num { color: var(--brand); }
.about__statement { max-width: 20ch; }
.about__cols {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px);
	margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px solid rgba(18, 18, 16, .14);
	color: var(--paper-muted); font-size: 18px; max-width: 980px; margin-left: auto;
}
/* Three proof points under the About copy. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.stat { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(18, 18, 16, .08); }
.stat__value { display: flex; align-items: baseline; gap: clamp(8px, 1vw, 14px); font-family: var(--font-serif); font-style: italic; line-height: .9; letter-spacing: -0.02em; color: var(--brand); }
.stat__num { font-size: clamp(64px, 7vw, 104px); font-variant-numeric: tabular-nums; }
.stat__unit { font-size: clamp(28px, 2.6vw, 38px); }
.stat p { margin-top: 18px; color: var(--paper-muted); font-size: 16px; max-width: 30ch; }
@media (max-width: 860px) { .about__cols, .stats { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
	list-style: none; cursor: pointer;
	display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px;
	padding: clamp(22px, 2.6vw, 34px) 0; min-height: 44px;
}
.service summary::-webkit-details-marker { display: none; }
.service__num { font-size: 14px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.service__name {
	font-size: clamp(28px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.04em; line-height: 1;
	transition: color .25s var(--ease), transform .45s var(--ease);
}
.service summary:hover .service__name { color: var(--brand-ink); transform: translateX(8px); }
.service__icon {
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
	display: grid; place-items: center; transition: transform .35s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.service__icon svg { width: 18px; height: 18px; }
.service[open] .service__icon { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); }
.service__body {
	display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 16px;
	padding-bottom: 36px; color: var(--ink-muted); font-size: 18px;
}
.service__body p { grid-column: 2; max-width: 52ch; }
.service__tags { grid-column: 3; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.service__tags li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink); }
@media (max-width: 760px) {
	.service summary { grid-template-columns: 40px minmax(0, 1fr) auto; }
	.service__body { grid-template-columns: 1fr; }
	.service__body p, .service__tags { grid-column: 1; }
}

/* ---------- Process ---------- */
/* Glass cards that flip over to show each step's detail. Two slow, blurred brand-red lights
   drift behind the grid so the frosted glass has something to bend. */
.process-section { padding-top: 0; }
.process-section .wrap { position: relative; isolation: isolate; }
.process-section .wrap::before, .process-section .wrap::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.process-section .wrap::before {
	width: 46%; aspect-ratio: 1; left: 4%; bottom: -12%; background: var(--brand); opacity: .55;
	animation: glass-drift 18s ease-in-out infinite alternate;
}
.process-section .wrap::after {
	width: 34%; aspect-ratio: 1; right: 6%; bottom: 4%; background: #e0894a; opacity: .32;
	animation: glass-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes glass-drift { to { transform: translate(18%, -14%) scale(1.12); } }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flip { position: relative; height: clamp(320px, 30vw, 400px); perspective: 1200px; cursor: pointer; }
/* Each face turns on its own (no preserve-3d), which keeps backdrop blur working in every browser. */
.flip__face {
	position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column;
	padding: 22px 22px 26px; border-radius: 24px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 55%);
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 24px 48px -24px rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	transition: transform .8s var(--ease);
}
.flip__back { transform: rotateY(-180deg); }
/* A band of light sweeps across the glass as it turns. */
.flip__face::after {
	content: ""; position: absolute; inset: -20%; pointer-events: none;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
	transform: translateX(-70%); transition: transform .9s var(--ease);
}
.flip.is-flipped .flip__front { transform: rotateY(180deg); }
.flip.is-flipped .flip__back { transform: rotateY(0deg); }
.flip.is-flipped .flip__face::after { transform: translateX(70%); }
@media (hover: hover) {
	.flip:hover .flip__front { transform: rotateY(180deg); }
	.flip:hover .flip__back { transform: rotateY(0deg); }
	.flip:hover .flip__face::after { transform: translateX(70%); }
}
/* Keyboard users see the back once they tab to the card's button or link. */
.flip:has(:focus-visible) .flip__front { transform: rotateY(180deg); }
.flip:has(:focus-visible) .flip__back { transform: rotateY(0deg); }

.flip__tag {
	align-self: flex-start; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: var(--ink);
}
.flip__num {
	margin-top: auto; font-family: var(--font-serif); font-style: italic; font-size: clamp(72px, 7vw, 110px); line-height: .8;
	color: var(--brand-ink); letter-spacing: -0.03em;
}
.flip__title { margin-top: 18px; font-size: clamp(26px, 2.3vw, 34px); line-height: 1; letter-spacing: -0.03em; }
.flip__back p { margin-top: auto; font-size: 17px; line-height: 1.45; color: var(--ink); }
.flip__link {
	align-self: flex-start; margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border-radius: 999px; background: rgba(12, 12, 11, .55); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none;
	transition: background-color .2s var(--ease);
}
.flip__link:hover { background: var(--brand); color: #fff; }
.flip__link svg { width: 16px; height: 16px; }
.flip__toggle {
	position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; color: var(--ink);
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: transform .8s var(--ease), background-color .2s var(--ease);
}
.flip__toggle:hover { background: rgba(255, 255, 255, .18); }
.flip__toggle svg { width: 18px; height: 18px; }
.flip.is-flipped .flip__toggle { transform: rotate(180deg); }
@media (hover: hover) { .flip:hover .flip__toggle { transform: rotate(180deg); } }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.process { grid-template-columns: 1fr; }
	.flip { height: 280px; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; }
.plan {
	position: relative; padding: clamp(28px, 3.4vw, 52px); border-radius: clamp(20px, 2.4vw, 32px);
	background: var(--bg-raised); border: 1px solid var(--line-strong); overflow: hidden;
}
.plan__badge {
	display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px;
	background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.plan__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.plan__name { font-size: clamp(28px, 3vw, 40px); }
.plan__desc { color: var(--ink-muted); margin-top: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-size: clamp(56px, 7vw, 104px); font-weight: 600; letter-spacing: -0.06em; line-height: .9; }
.plan__per { color: var(--ink-muted); font-size: 17px; }
.plan__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 32px; }
.plan__group h3 { font-size: 18px; letter-spacing: -0.01em; }
.plan__group ul { margin-top: 14px; display: grid; gap: 10px; }
.plan__group li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.plan__group svg { width: 18px; height: 18px; color: var(--brand-ink); margin-top: 2px; }
.plan__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.plan__note { font-size: 14px; color: var(--ink-faint); }
@media (max-width: 900px) { .plan__groups { grid-template-columns: 1fr; } }

.addons { padding: clamp(28px, 3vw, 40px); border-radius: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); display: flex; flex-direction: column; }
.addons h3 { font-size: 26px; }
.addons > p { color: var(--ink-muted); margin-top: 10px; font-size: 16px; }
.addons ul { margin-top: 24px; }
.addons li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.3; }
.addons .btn { margin-top: auto; }
.addons__spacer { flex: 1; min-height: 24px; }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__lede { color: var(--ink-muted); font-size: 18px; margin-top: 28px; max-width: 40ch; }
.next-steps { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.next-steps b { color: var(--ink); font-weight: 600; }
.next-steps span:first-child { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.form {
	padding: clamp(24px, 3.4vw, 48px); border-radius: clamp(20px, 2.4vw, 32px);
	background: var(--bg-raised); border: 1px solid var(--line-strong);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend, .field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.form legend small, .field label small { color: var(--ink-faint); font-weight: 400; }
.field { margin-bottom: 16px; }
.field input, .field textarea {
	width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
	background: var(--bg-sunk); border: 1px solid var(--line-strong); color: var(--ink); font-size: 16px;
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #000; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--line-strong); color: var(--ink-muted); font-size: 15px; user-select: none;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip span:hover { color: var(--ink); border-color: var(--ink-faint); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form__fine { font-size: 13px; color: var(--ink-faint); max-width: 34ch; }
.notice { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 15px; }
.notice--error { background: rgba(189, 53, 39, .14); border: 1px solid rgba(239, 107, 89, .5); color: var(--ink); }
.form-success { text-align: left; padding: clamp(32px, 4vw, 56px); border-radius: clamp(20px, 2.4vw, 32px); background: var(--bg-raised); border: 1px solid var(--line-strong); }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 28px; }
.form-success p { color: var(--ink-muted); margin-top: 12px; max-width: 44ch; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer-cols ul { display: grid; gap: 6px; }
.footer-cols a { text-decoration: none; color: var(--ink); display: inline-flex; min-height: 32px; align-items: center; }
.footer-cols a:hover { color: var(--brand-ink); }
.footer-email { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.footer-email:hover { color: var(--brand-ink); }
.footer-wordmark { margin-top: clamp(56px, 8vw, 112px); user-select: none; color: var(--brand); }
.footer-wordmark svg { display: block; width: 100%; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; font-size: 14px; color: var(--ink-faint); border-top: 1px solid var(--line); margin-top: 48px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
	background: #1f9d55; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transform: translateY(120%); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease), background-color .2s var(--ease);
}
.wa-float.is-visible { transform: translateY(0); opacity: 1; }
.wa-float:hover { background: #188a49; color: #fff; }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Inner pages ---------- */
.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(48px, 8vw, 128px); letter-spacing: -0.05em; line-height: .92; margin-top: 18px; max-width: 16ch; }
.project-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; border-block: 1px solid var(--line); margin-top: 48px; }
.project-meta dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.project-meta dd { margin: 6px 0 0; font-size: 18px; }
@media (max-width: 760px) { .project-meta { grid-template-columns: 1fr 1fr; } }
.project-cover { border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.prose { max-width: 760px; margin-inline: auto; font-size: 19px; color: var(--ink-muted); }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose h2 { font-size: 40px; }
.prose h3 { font-size: 28px; }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose a { color: var(--brand-ink); }
.prose .alignwide { max-width: 1100px; margin-inline: auto; }
.prose .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}
