/* CVPweb | web.cvpmedia.ca. Same system as CVPmedia and CVPassists: black, ivory, red. */
:root {
	--black: #070708;
	--ink: #0e0e10;
	--panel: #121215;
	--line: rgba(244, 240, 234, .16);
	--text: #f4f0ea;
	--muted: #b4aea6;
	--red: #a42931;
	--red-hi: #d8434c;
	--sans: "Avenir Next", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--black); color: var(--text);
	font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--black); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Atmosphere: spotlight and film grain, fixed behind everything */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background:
		radial-gradient(60% 55% at 50% 0%, rgba(164, 41, 49, .24), transparent 70%),
		radial-gradient(90% 60% at 50% 105%, rgba(164, 41, 49, .10), transparent 70%),
		var(--black);
}
body::after {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 3rem); }

/* Type */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 1rem; }
h1 { font-weight: 900; font-size: clamp(2.1rem, 6.2vw, 4.1rem); line-height: 1.08; letter-spacing: .02em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.15; letter-spacing: .01em; margin-bottom: 1.6rem; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
p { color: var(--muted); }
p + p { margin-top: 1rem; }
strong { color: var(--text); }

/* Buttons */
.btn {
	display: inline-block; padding: .95rem 2.2rem; border: 1px solid var(--red); border-radius: 2px;
	font: 700 .85rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; text-align: center;
	cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.btn--solid { background: var(--red); color: var(--text); }
.btn--solid:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }

/* Hero */
.hero {
	min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 7rem 1.5rem 3rem; text-align: center; position: relative;
}
.logo { width: clamp(240px, 30vw, 400px); margin: 0 auto clamp(1.6rem, 5vh, 3rem); }
.title { max-width: 52rem; }
.title .eyebrow { margin-bottom: 1.25rem; }
.rule { display: block; width: 7rem; height: 1px; margin: 2rem auto; background: linear-gradient(90deg, transparent, var(--red-hi), transparent); }
.lede { margin: 0 auto; max-width: 38rem; font-size: clamp(1.02rem, 2.2vw, 1.2rem); }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }
.anchors { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; justify-content: center; margin-top: clamp(2rem, 6vh, 3.5rem); }
.anchors a { color: var(--muted); text-decoration: none; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.anchors a:hover { color: var(--text); border-color: var(--red); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.section--work { background: linear-gradient(180deg, rgba(164, 41, 49, .06), transparent 60%); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 2rem 2rem 2.2rem; transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(216, 67, 76, .55); }
.card::before { content: ""; position: absolute; left: 2rem; top: 0; width: 2.5rem; height: 2px; background: var(--red-hi); }
.card__n { display: block; font-weight: 800; font-size: .85rem; letter-spacing: .24em; color: var(--red-hi); margin-bottom: 1rem; }

/* Featured project */
.work { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.work__text p { max-width: 34rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8rem; height: 1px; background: var(--red-hi); }
.devices { position: relative; }
.stage { position: relative; padding-bottom: 2.2rem; }
.laptop { background: #1a1a1d; border: 1px solid var(--line); border-radius: 10px 10px 4px 4px; padding: 10px 10px 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.laptop img { width: 100%; border-radius: 3px; }
.phone { position: absolute; right: -2%; bottom: 0; width: 26%; background: #1a1a1d; border: 1px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.phone img { border-radius: 13px; width: 100%; }
.devices figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; letter-spacing: .04em; }

/* Process */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.steps li::before { content: "0" counter(s); display: block; font-weight: 800; font-size: .85rem; letter-spacing: .24em; color: var(--red-hi); margin-bottom: .8rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .98rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 700; font-size: 1.08rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--red-hi); border-bottom: 2px solid var(--red-hi); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
summary:hover { color: var(--red-hi); }
details p { padding: 0 0 1.4rem; max-width: 42rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=email], textarea {
	width: 100%; font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: .85rem 1rem;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, textarea:focus { outline: 2px solid var(--red-hi); outline-offset: 1px; border-color: transparent; }
.consent { display: flex; gap: .8rem; align-items: flex-start; }
.consent input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--red-hi); flex: none; }
.consent label { font-size: .88rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--line); background: var(--ink); color: var(--text); border-radius: 2px; }
.notice[hidden] { display: none; }
.notice.ok { border-color: #4caf72; }
.notice.err { border-color: var(--red-hi); }

/* Reveal on scroll (only when JavaScript is running and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .logo, .hero .title { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero .title { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.work, .contact { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.devices { max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.hero { padding-top: 8rem; }
	.cards, .steps { grid-template-columns: 1fr; }
	.card { padding: 1.7rem 1.5rem 1.9rem; }
	.cta .btn { width: 100%; }
	.phone { right: 0; width: 30%; }
	.btn { letter-spacing: .14em; padding-inline: 1.1rem; }
	.form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
