/*!
 * Folio – Creative Agency & Portfolio HTML Template
 * Copyright (c) 2026 DesignVersa. All rights reserved.
 * https://designversa.com
 * Licensed for use under the DesignVersa Standard License (see LICENSE.txt).
 * Redistribution or resale of this template, in whole or in part, is prohibited.
 */

:root {
    --bg: #f4f1ea;
    --paper: #fbf9f4;
    --ink: #121212;
    --text: #3a3a3a;
    --muted: #7a766c;
    --line: #dcd6c8;
    --accent: #ff5a1f;
    --accent-2: #2b50ff;
    --radius: 22px;
    --display: "Syne", "Arial Black", sans-serif;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1260px, 100% - 48px); margin-inline: auto; }
.section { padding: 110px 0; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1.5px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s; font-family: inherit; background: transparent; color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.btn:hover .arrow { transform: rotate(-45deg); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; height: 84px; gap: 40px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ink); letter-spacing: -.04em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0 auto; padding: 0; font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; place-items: center; }
.mobile-menu { display: none; }

/* Hero */
.hero { padding: 70px 0 60px; }
.hero h1 { font-size: clamp(56px, 11vw, 170px); line-height: .9; letter-spacing: -.05em; margin: 26px 0 0; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero h1 .dot { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-top: 50px; }
.hero-bottom p { font-size: 20px; color: var(--text); max-width: 560px; }
.hero-meta { display: flex; justify-content: flex-end; gap: 44px; }
.hero-meta b { display: block; font-family: var(--display); font-size: 48px; color: var(--ink); line-height: 1; }
.hero-meta span { color: var(--muted); font-size: 14px; }
.showreel { margin-top: 60px; height: 520px; border-radius: 30px; position: relative; overflow: hidden; background: radial-gradient(circle at 20% 30%, #ff8a4c, transparent 45%), radial-gradient(circle at 80% 70%, #2b50ff, transparent 50%), radial-gradient(circle at 60% 20%, #ffd166, transparent 40%), #121212; }
.showreel::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 80px); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 130px; height: 130px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; z-index: 2; cursor: pointer; transition: transform .3s; }
.play:hover { transform: translate(-50%, -50%) scale(1.08); }
.showreel-tag { position: absolute; left: 30px; bottom: 30px; z-index: 2; color: #fff; font-family: var(--display); font-size: 26px; }

/* Marquee */
.marquee { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); overflow: hidden; padding: 26px 0; background: var(--ink); color: var(--bg); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--display); font-size: 44px; font-weight: 800; }
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: "✦"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(40px, 6vw, 84px); max-width: 780px; margin-top: 16px; }
.services { border-top: 1.5px solid var(--ink); }
.service { display: grid; grid-template-columns: 80px 1fr 1.2fr 60px; gap: 30px; align-items: center; padding: 36px 0; border-bottom: 1.5px solid var(--ink); transition: padding .3s, background .3s; }
.service:hover { background: var(--paper); padding-left: 20px; padding-right: 20px; }
.service .num { font-family: var(--display); color: var(--muted); font-size: 18px; }
.service h3 { font-size: clamp(26px, 3vw, 42px); margin: 0; }
.service p { margin: 0; color: var(--muted); }
.service .go { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s, transform .3s; }
.service:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.work { display: block; }
.work-art { height: 460px; border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .5s; }
.work:hover .work-art { transform: scale(.98); }
.work-art .shape { position: absolute; border-radius: 50%; filter: blur(0); }
.work-info { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px 0; }
.work-info h3 { font-size: 28px; margin: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--text); background: var(--paper); }
.art-1 { background: linear-gradient(135deg, #ff5a1f, #ffb36b); }
.art-2 { background: linear-gradient(135deg, #2b50ff, #7aa2ff); }
.art-3 { background: linear-gradient(135deg, #121212, #3a3a3a); }
.art-4 { background: linear-gradient(135deg, #d9f99d, #86efac); }
.art-5 { background: linear-gradient(135deg, #f0abfc, #a78bfa); }
.art-6 { background: linear-gradient(135deg, #fde68a, #fb923c); }
.art-word { position: absolute; left: 30px; bottom: 24px; font-family: var(--display); font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: -.04em; }
.art-3 .art-word { color: var(--accent); }
.art-4 .art-word, .art-6 .art-word { color: #121212; }
.art-ring { position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .25); }
.art-block { position: absolute; right: 40px; bottom: 40px; width: 140px; height: 140px; border-radius: 30px; background: rgba(255, 255, 255, .22); transform: rotate(12deg); }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 500; cursor: pointer; }
.filter.active, .filter:hover { background: var(--ink); color: var(--bg); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 30px; min-height: 280px; display: flex; flex-direction: column; }
.step b { font-family: var(--display); font-size: 60px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 26px; margin-top: auto; }
.step p { margin: 0; color: var(--muted); }

/* Testimonial */
.big-quote { background: var(--ink); color: var(--bg); border-radius: 36px; padding: 80px; }
.big-quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.1; color: var(--bg); }
.big-quote blockquote span { color: var(--accent); }
.quote-by { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.quote-by .ava { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ffd166); }
.clients { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); margin-top: 80px; }
.clients div { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); height: 120px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); transition: background .2s, color .2s; }
.clients div:hover { background: var(--accent); color: #fff; }

/* CTA / footer */
.cta-big { text-align: center; padding: 130px 0; }
.cta-big h2 { font-size: clamp(54px, 10vw, 160px); line-height: .9; letter-spacing: -.05em; }
.cta-big h2 a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 10px; }
.footer { background: var(--ink); color: #bdb8ad; padding: 80px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: var(--bg); }
.footer h4 { color: var(--bg); font-family: var(--font); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #333; margin-top: 60px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* Page hero & contact */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-size: clamp(56px, 10vw, 140px); line-height: .9; letter-spacing: -.05em; margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; }
.contact-info h3 { font-size: 22px; margin: 32px 0 8px; }
.contact-info a { font-size: 22px; border-bottom: 1.5px solid var(--ink); }
.form { display: grid; gap: 24px; }
.budget { display: flex; gap: 10px; flex-wrap: wrap; }
.budget input { display: none; }
.budget label { border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-weight: 500; }
.budget input:checked + label { background: var(--ink); color: var(--bg); }
.field label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 14px 0; font: inherit; font-size: 20px; color: var(--ink); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field .error { display: none; color: #d4380d; font-size: 14px; margin-top: 6px; }
.field.invalid .error { display: block; }
.form-success { display: none; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 18px 22px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
    .hero-bottom, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-meta { justify-content: flex-start; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .clients { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service { grid-template-columns: 60px 1fr 50px; }
    .service p { display: none; }
}
@media (max-width: 820px) {
    .nav-links, .nav .btn { display: none; }
    .menu-toggle { display: grid; margin-left: auto; }
    .mobile-menu.open { display: grid; padding: 10px 24px 24px; }
    .mobile-menu a { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--ink); padding: 8px 0; border-bottom: 1.5px solid var(--ink); }
    .work-grid { grid-template-columns: 1fr; }
    .work-art { height: 340px; }
    .showreel { height: 340px; }
}
@media (max-width: 560px) {
    .section { padding: 70px 0; }
    .process { grid-template-columns: 1fr; }
    .clients { grid-template-columns: repeat(2, 1fr); }
    .big-quote { padding: 40px 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-meta { gap: 24px; }
    .hero-meta b { font-size: 36px; }
    .marquee-track { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Shared page components (blog, auth, FAQ, team, gallery, legal, 404…)
   Colours come from the --x-* variables mapped above for this template.
   Copyright (c) 2026 DesignVersa. All rights reserved.
------------------------------------------------------------------- */
.x-center { text-align: center; }
.x-narrow { max-width: 760px; margin-inline: auto; }
.x-mt { margin-top: 40px; }
.x-muted { color: var(--x-muted); }
.x-grid-2, .x-grid-3, .x-grid-4 { display: grid; gap: 24px; }
.x-grid-2 { grid-template-columns: repeat(2, 1fr); }
.x-grid-3 { grid-template-columns: repeat(3, 1fr); }
.x-grid-4 { grid-template-columns: repeat(4, 1fr); }
.x-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 28px; }
.x-card h3 { font-size: 22px; margin-bottom: 8px; }
.x-card p:last-child { margin-bottom: 0; }
.x-icon { width: 52px; height: 52px; border-radius: calc(var(--x-radius) * .7); display: grid; place-items: center; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-accent); margin-bottom: 18px; font-size: 22px; font-weight: 800; }
.x-title { font-size: clamp(30px, 4vw, 48px); margin: 10px 0 14px; }
.x-lead { font-size: 18px; color: var(--x-muted); max-width: 640px; }
.x-center .x-lead { margin-inline: auto; }
.x-head { margin-bottom: 44px; }

/* Placeholder artwork (swap for your own images) */
.x-art { position: relative; border-radius: var(--x-radius); overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, hsl(var(--h, 240) 80% 62%), hsl(calc(var(--h, 240) + 45) 75% 48%)); }
.x-art::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; top: -20%; border: 28px solid rgba(255, 255, 255, .18); }
.x-art::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 24%; left: 8%; bottom: -12%; background: rgba(255, 255, 255, .16); transform: rotate(14deg); }
.x-art.tall { aspect-ratio: 3 / 4; }
.x-art.wide { aspect-ratio: 21 / 9; }
.x-art.square { aspect-ratio: 1; }
.x-art span { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* Blog */
.x-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.x-post { display: flex; flex-direction: column; gap: 12px; }
.x-post .x-meta { font-size: 13px; color: var(--x-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.x-post h3 { font-size: 22px; line-height: 1.25; margin: 0; }
.x-post p { color: var(--x-muted); margin: 0; }
.x-post .x-more { color: var(--x-accent); font-weight: 700; }
.x-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-accent); }
.x-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.x-featured h2 { font-size: clamp(28px, 3.4vw, 42px); }
.x-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.x-cats a, .x-cats button { border: 1px solid var(--x-line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; background: transparent; color: var(--x-text); cursor: pointer; }
.x-cats .active { background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }

/* Article / prose */
.x-article { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.x-article h2 { font-size: 30px; margin: 44px 0 14px; }
.x-article h3 { font-size: 23px; margin: 32px 0 10px; }
.x-article p { margin: 0 0 1.2em; }
.x-article ul, .x-article ol { padding-left: 22px; margin: 0 0 1.2em; }
.x-article li { margin-bottom: 8px; }
.x-article blockquote { margin: 32px 0; padding: 20px 26px; border-left: 4px solid var(--x-accent); background: var(--x-soft); border-radius: 0 var(--x-radius) var(--x-radius) 0; font-size: 21px; color: var(--x-ink); }
.x-article .x-art { margin: 30px 0; }
.x-author { display: flex; gap: 14px; align-items: center; margin: 22px 0 34px; }
.x-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; background: linear-gradient(135deg, hsl(var(--h, 240) 75% 55%), hsl(calc(var(--h, 240) + 50) 70% 42%)); }
.x-avatar.lg { width: 110px; height: 110px; font-size: 34px; }
.x-share { display: flex; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--x-line); align-items: center; flex-wrap: wrap; }
.x-share a { border: 1px solid var(--x-line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* FAQ (no JavaScript needed) */
.x-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.x-faq details { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 20px 24px; }
.x-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; color: var(--x-ink); display: flex; justify-content: space-between; gap: 16px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; color: var(--x-accent); font-size: 24px; line-height: 1; }
.x-faq details[open] summary::after { content: "–"; }
.x-faq details p { margin: 12px 0 0; color: var(--x-muted); }
.x-faq-group { margin-bottom: 44px; }
.x-faq-group h2 { font-size: 26px; margin-bottom: 16px; max-width: 860px; margin-inline: auto; }

/* Auth pages */
.x-auth { min-height: 72vh; display: grid; place-items: center; padding: 60px 20px; }
.x-auth-card { width: min(460px, 100%); background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, .08); }
.x-auth-card h1 { font-size: 32px; margin: 0 0 6px; }
.x-auth-card form { display: grid; gap: 16px; margin-top: 26px; }
.x-field label { display: block; font-size: 14px; font-weight: 600; color: var(--x-ink); margin-bottom: 7px; }
.x-field input, .x-field select, .x-field textarea { width: 100%; border: 1px solid var(--x-line); background: var(--x-soft); color: var(--x-ink); border-radius: calc(var(--x-radius) * .6); padding: 13px 15px; font: inherit; }
.x-field input:focus, .x-field select:focus, .x-field textarea:focus { outline: none; border-color: var(--x-accent); }
.x-field .error { display: none; color: #dc2626; font-size: 13px; margin-top: 5px; }
.x-field.invalid input { border-color: #dc2626; }
.x-field.invalid .error { display: block; }
.x-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.x-row a, .x-link { color: var(--x-accent); font-weight: 600; }
.x-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.x-divider { display: flex; align-items: center; gap: 12px; color: var(--x-muted); font-size: 13px; margin: 6px 0; }
.x-divider::before, .x-divider::after { content: ""; flex: 1; height: 1px; background: var(--x-line); }
.x-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-social button { border: 1px solid var(--x-line); background: transparent; color: var(--x-ink); border-radius: calc(var(--x-radius) * .6); padding: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.x-full { width: 100%; }
.form-success.x-success, .x-success { display: none; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-ink); padding: 12px 14px; border-radius: calc(var(--x-radius) * .6); font-weight: 600; }

/* 404 */
.x-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.x-404 .code { font-size: clamp(110px, 22vw, 240px); font-weight: 800; line-height: .9; color: var(--x-accent); letter-spacing: -.05em; font-family: var(--x-heading); }
.x-404 h1 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 10px; }
.x-404 .x-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Team / people */
.x-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.x-member { text-align: center; }
.x-member .x-art { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.x-member h3 { font-size: 20px; margin: 0 0 2px; }
.x-member p { color: var(--x-muted); margin: 0; font-size: 14px; }
.x-profile { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.x-profile .x-art { aspect-ratio: 4 / 5; }
.x-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.x-stats div { background: var(--x-soft); border-radius: calc(var(--x-radius) * .8); padding: 18px; text-align: center; }
.x-stats b { display: block; font-size: 28px; color: var(--x-ink); font-family: var(--x-heading); }
.x-stats span { font-size: 13px; color: var(--x-muted); }

/* Lists, timeline, values */
.x-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.x-list li { display: flex; gap: 12px; align-items: flex-start; }
.x-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: color-mix(in srgb, var(--x-accent) 18%, transparent); color: var(--x-accent); }
.x-timeline { position: relative; display: grid; gap: 28px; padding-left: 34px; max-width: 760px; }
.x-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--x-line); }
.x-timeline div { position: relative; }
.x-timeline div::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--x-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--x-accent) 20%, transparent); }
.x-timeline b { display: block; color: var(--x-accent); font-family: var(--x-heading); font-size: 20px; }
.x-timeline h3 { font-size: 20px; margin: 2px 0 4px; }
.x-timeline p { margin: 0; color: var(--x-muted); }
.x-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.x-kpi { text-align: center; padding: 26px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); }
.x-kpi b { display: block; font-size: 40px; color: var(--x-ink); font-family: var(--x-heading); line-height: 1.1; }
.x-kpi span { color: var(--x-muted); font-size: 14px; }

/* Gallery */
.x-gallery { columns: 3; column-gap: 20px; }
.x-gallery .x-art { break-inside: avoid; margin-bottom: 20px; }

/* Jobs / list rows */
.x-rows { display: grid; gap: 12px; }
.x-rowcard { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 22px 26px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); transition: border-color .2s; }
.x-rowcard:hover { border-color: var(--x-accent); }
.x-rowcard h3 { font-size: 20px; margin: 0 0 2px; }
.x-rowcard small { color: var(--x-muted); }

/* Pricing packages */
.x-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.x-plan { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 32px; display: flex; flex-direction: column; }
.x-plan.hot { border: 2px solid var(--x-accent); }
.x-plan .x-price { font-size: 44px; font-weight: 800; color: var(--x-ink); font-family: var(--x-heading); margin: 12px 0; }
.x-plan .x-price small { font-size: 15px; color: var(--x-muted); font-weight: 500; }
.x-plan .x-list { flex: 1; }

/* Calculator */
.x-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.x-calc-out { background: var(--x-soft); border-radius: var(--x-radius); padding: 30px; text-align: center; }
.x-calc-out b { display: block; font-size: 52px; color: var(--x-accent); font-family: var(--x-heading); line-height: 1.1; margin: 8px 0; }
.x-range { width: 100%; accent-color: var(--x-accent); }

/* Legal */
.x-legal { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.x-toc { position: sticky; top: 110px; display: grid; gap: 8px; font-size: 14px; }
.x-toc a { color: var(--x-muted); }
.x-toc a:hover { color: var(--x-accent); }
.x-legal .x-article { margin: 0; font-size: 16px; }

/* Logo / partner row */
.x-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.x-logos div { border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 18px 26px; font-weight: 800; font-size: 18px; color: var(--x-ink); background: var(--x-card); min-width: 150px; text-align: center; }

/* Call to action band */
.x-cta { border-radius: var(--x-radius); padding: 56px; text-align: center; background: var(--x-soft); border: 1px solid var(--x-line); }
.x-cta h2 { font-size: clamp(28px, 3.6vw, 42px); }

@media (max-width: 1024px) {
    .x-grid-4, .x-team, .x-kpis { grid-template-columns: repeat(2, 1fr); }
    .x-grid-3, .x-posts, .x-plans { grid-template-columns: repeat(2, 1fr); }
    .x-featured, .x-profile, .x-calc, .x-legal { grid-template-columns: 1fr; }
    .x-toc { position: static; }
    .x-gallery { columns: 2; }
}
@media (max-width: 640px) {
    .x-grid-2, .x-grid-3, .x-grid-4, .x-posts, .x-team, .x-plans, .x-kpis { grid-template-columns: 1fr; }
    .x-gallery { columns: 1; }
    .x-rowcard { grid-template-columns: 1fr; }
    .x-auth-card, .x-cta { padding: 28px 22px; }
    .x-stats { grid-template-columns: 1fr 1fr; }
}
.page-hero .x-lead { margin-inline: auto; }
.x-center .x-author { justify-content: center; }
.x-center .x-author > div { text-align: left; }

/* Shared component colours for Folio */
:root { --x-accent: var(--accent); --x-on-accent: #fff; --x-ink: var(--ink); --x-text: var(--text); --x-muted: var(--muted); --x-line: var(--line); --x-card: var(--paper); --x-soft: #ece7dc; --x-radius: 22px; --x-heading: var(--display); }
.page-hero p.x-lead { margin-inline: 0; font-size: 20px; }
.x-pill { background: var(--ink); color: var(--bg); }
.x-cats .active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
