/* Cardzo Entertainment LLP — site styles */
/* Self-hosted fonts (SIL Open Font License): Sora, Plus Jakarta Sans — latin subset, variable weight */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/sora-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }
:root {
  --bg: #f8f5f2;
  --bg-alt: #f2ede7;
  --surface: #ffffff;
  --text: #14110f;
  --muted: #5d5751;
  --border: #e6dfd7;
  --accent: #cc5500;
  --accent-dark: #a84600;
  --accent-text: #ad4600;
  --accent-soft: rgba(204, 85, 0, 0.06);
  --accent-tint: #f6e3d4;
  --grad: linear-gradient(135deg, #f08a34 0%, #cc5500 100%);
  --grad-btn: linear-gradient(135deg, #c4560c 0%, #a34100 100%);
  --font-head: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 17, 15, 0.04), 0 8px 24px -12px rgba(20, 17, 15, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 17, 15, 0.04), 0 24px 48px -24px rgba(20, 17, 15, 0.28);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(40px, 4.5vw, 64px);
}

*, *::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: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-top: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo span { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--text); letter-spacing: -0.04em; }
.logo span i { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; font-size: 15px; font-weight: 600; color: #3a3531; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-links a[aria-current="page"] { color: var(--accent-text); background: var(--accent-tint); }
.nav-cta { display: inline-flex; }
.menu-toggle { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -12px rgba(204, 85, 0, 0.7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(204, 85, 0, 0.8); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text); }
.btn--outline { background: transparent; color: var(--accent-text); border-color: var(--accent); padding: 10px 18px; font-size: 14px; }
.btn--outline:hover { background: var(--accent); color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.section-title { font-size: clamp(32px, 4.6vw, 50px); max-width: 820px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 16px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 56px); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20, 17, 15, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 74px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.hero-sub { font-size: clamp(16px, 1.8vw, 19px); color: #3a3531; font-weight: 600; margin-top: 22px; }
.hero-copy { color: var(--muted); font-size: 16px; max-width: 520px; margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; position: relative; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dccfc2; }
.card h3 { font-size: 19px; margin: 10px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; }
.card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }

.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--accent-tint); border-bottom: 1px solid var(--border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-head { display: flex; align-items: center; gap: 10px; }
.mini-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; transition: background .25s, color .25s; }
.mini-icon svg { width: 16px; height: 16px; }
.project-card:hover .mini-icon { background: var(--accent); color: #fff; }
.project-card h3 { font-size: 18px; }
.project-card .more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent-text); align-self: flex-start; }
.project-card .more svg { width: 14px; height: 14px; transition: transform .2s; }
.project-card .more:hover svg { transform: translateX(3px); }

.center { text-align: center; }
.mt-48 { margin-top: 32px; }

/* Team */
.team-card { text-align: center; padding: 36px 24px; }
.team-avatar { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px var(--accent-tint); }
.team-card h3 { font-size: 17px; margin: 0 0 4px; }
.team-card .role { color: var(--muted); font-size: 14px; }
.team-card .bio { margin-top: 14px; font-size: 14px; color: var(--muted); }
.team-card .role-caps { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

.meta-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; color: #45403b; font-size: 14px; }
.meta-row span, .meta-row a { display: inline-flex; align-items: center; gap: 8px; }
.meta-row svg { width: 16px; height: 16px; color: var(--accent); }
.meta-row a:hover { color: var(--accent); }

/* CTA band */
.cta-band { padding: var(--section) 0; }
.cta-band .container > * { position: relative; z-index: 1; }
.cta-band .container { position: relative; overflow: hidden; background: #1c1815; color: #fff; border-radius: 24px; padding: clamp(36px, 5vw, 64px); max-width: calc(var(--container) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.cta-band .container::after { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 138, 52, 0.55), transparent 65%); z-index: 0; }
.cta-band .eyebrow { color: #f3a46a; }
.cta-band .eyebrow::before { background: #f3a46a; }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; max-width: 720px; }
.cta-band p { color: #cfc6be; font-size: 17px; max-width: 480px; margin: 16px 0 30px; }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4.5vw, 56px); }
.page-hero::before { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 138, 52, 0.22), transparent 65%); pointer-events: none; }
.page-hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; letter-spacing: -0.04em; max-width: 860px; position: relative; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 20px; position: relative; }
.page-hero--tall { min-height: 50vh; }

/* Projects page */
.projects-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 0 28px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s, transform .25s; }
.project-detail:hover { border-color: #dccfc2; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.detail-media { position: relative; margin: 0 -28px 30px; aspect-ratio: 2 / 1; background: var(--accent-tint); border-bottom: 1px solid var(--border); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .project-icon { position: absolute; left: 24px; bottom: -22px; margin: 0; box-shadow: var(--shadow); border: 3px solid var(--surface); }
.project-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; transition: background .25s, color .25s; }
.project-icon svg { width: 22px; height: 22px; }
.project-detail:hover .project-icon { background: var(--accent); color: #fff; }
.project-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); }
.status--oss { background: #e6efe5; color: #2f6b2b; }
.status--consult { background: #e7e5f1; color: #4a4282; }
.project-detail h2 { font-size: 22px; margin: 12px 0 10px; letter-spacing: -0.02em; }
.project-detail > p { color: var(--muted); font-size: 15px; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tech li { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: #3a3531; }
.outcome { margin-top: 20px; padding: 14px 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: #3a3531; }
.outcome strong { color: var(--text); }
.project-detail .more { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent-text); align-self: flex-start; }
.project-detail .more svg { width: 14px; height: 14px; transition: transform .2s; }
.project-detail .more:hover svg { transform: translateX(3px); }

/* About */
.mission { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mission h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.mission .body p { color: #45403b; font-size: 17px; }
.mission .body p + p { margin-top: 18px; }
.about-art { margin-top: 28px; width: 100%; max-width: 480px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.value .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); font-family: var(--font-head); color: var(--accent-text); font-weight: 700; font-size: 13px; }
.value h3 { font-size: 21px; margin: 14px 0 10px; }
.value p { color: var(--muted); font-size: 15px; }

/* Services */
.svc-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; position: relative; }
.svc-jump a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: border-color .2s, color .2s; }
.svc-jump a span { font-family: var(--font-head); color: var(--accent-text); font-size: 12px; }
.svc-jump a:hover { border-color: var(--accent); color: var(--accent); }
.services { display: grid; gap: 28px; }
.service { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; scroll-margin-top: 96px; box-shadow: var(--shadow); transition: box-shadow .25s, border-color .25s; }
.service:hover { border-color: #dccfc2; box-shadow: var(--shadow-lg); }
.service-main { padding: clamp(28px, 4vw, 48px); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-num::before { content: attr(data-n); font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; color: var(--accent-tint); }
.service h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin: 10px 0 16px; }
.service p { color: var(--muted); font-size: 16px; }
.service p + p { margin-top: 12px; }
.service .lead { color: #2b2724; font-size: 18px; }
.service .ideal { margin: 22px 0 28px; padding: 14px 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: #3a3531; }
.service .ideal strong { color: var(--text); }
.service-list { background: var(--bg-alt); border-left: 1px solid var(--border); padding: clamp(24px, 3.5vw, 40px); }
.service-img { width: 100%; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 24px; box-shadow: var(--shadow); }
.service-list h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.checks svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.values.steps { grid-template-columns: repeat(4, 1fr); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-info > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.contact-info .ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.contact-info .ico svg { width: 18px; height: 18px; }
.contact-info .info-title { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-info p:not(.info-title), .contact-info a { font-size: 16px; font-weight: 600; }
.contact-info a:hover { color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 26px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); padding: 13px 16px; border-radius: 12px; transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d5751' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(204, 85, 0, 0.12); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.is-success { display: block; background: #e6efe5; color: #2f6b2b; }
.form-status.is-error { display: block; background: #f8e1dc; color: #9b2c1a; }
.form-card .btn { width: 100%; }
.form-card .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid .about p { color: var(--muted); font-size: 14px; max-width: 340px; margin: 16px 0 18px; }
.footer-contact { display: grid; gap: 8px; font-size: 14px; color: #45403b; }
.footer-contact span, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }
.footer-title { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: #45403b; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-4px); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-layout, .projects-list, .mission, .contact-wrap, .service { grid-template-columns: 1fr; }
  .service-list { border-left: 0; border-top: 1px solid var(--border); }
  .values.steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px var(--gutter) 20px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-links .mobile-cta { display: block; margin-top: 10px; }
  .nav-links .mobile-cta a { padding: 14px 22px; color: #fff; display: flex; border-radius: 999px; }
}
@media (max-width: 640px) {
  .grid-3, .values, .values.steps { grid-template-columns: 1fr; }
  .service-num::before { font-size: 40px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 961px) { .nav-links .mobile-cta { display: none; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .2s; }
.faq-item[open] { border-color: #dccfc2; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent-tint); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- FAQ chat assistant ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font-body); }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px 14px 16px; border: 0; border-radius: 999px; background: var(--grad-btn); color: #fff; font: 700 15px var(--font-body); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(204, 85, 0, 0.7); transition: transform .2s, box-shadow .2s; }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(204, 85, 0, 0.8); }
.chat.is-open .chat-fab { background: #1c1815; box-shadow: var(--shadow-lg); }
.chat-panel { position: absolute; right: 0; bottom: 64px; width: 370px; max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(20, 17, 15, 0.35); overflow: hidden; animation: chat-in .22s ease-out; }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: #1c1815; color: #fff; }
.chat-head div { flex: 1; display: grid; line-height: 1.3; }
.chat-head strong { font-family: var(--font-head); font-size: 16px; }
.chat-head small { display: inline-flex; align-items: center; gap: 6px; color: #cfc6be; font-size: 12px; }
.chat-head small i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.chat-close { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-close svg { width: 16px; height: 16px; }
.chat-close:hover { background: rgba(255, 255, 255, 0.2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); min-height: 120px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; animation: chat-in .2s ease-out; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: #2b2724; }
.msg--user { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; font-weight: 600; }
.msg a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.msg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-links a { text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); }
.msg-links a:hover { background: var(--accent); color: #fff; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--border); max-height: 190px; overflow-y: auto; background: var(--surface); }
.chip { border: 1px solid #e3c7b1; background: #fff; color: var(--accent-text); font: 600 13px var(--font-body); padding: 7px 12px; border-radius: 999px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-foot { display: flex; justify-content: center; gap: 8px; padding: 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.chat-foot a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 520px) {
  .chat { right: 14px; bottom: 14px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 15px; }
  .chat-panel { position: fixed; left: 10px; right: 10px; bottom: 82px; width: auto; max-height: calc(100vh - 110px); }
}
@media print { .chat { display: none; } }

/* Projects: an odd last card spans the full row */
@media (min-width: 961px) {
  .projects-list > .project-detail:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .projects-list > .project-detail:last-child:nth-child(odd) .detail-media { aspect-ratio: 3 / 1; }
}

/* ---------- Blog ---------- */
.post-card h3 a:hover { color: var(--accent-text); }
.post-meta { font-size: 13px !important; color: var(--muted); margin-top: 14px; font-weight: 600; }
.narrow { max-width: 820px; }
.article-head { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px) 0 24px; }
.article-head::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 138, 52, 0.2), transparent 65%); pointer-events: none; }
.article-head h1 { font-size: clamp(32px, 4.8vw, 50px); font-weight: 800; letter-spacing: -0.035em; position: relative; }
.article-head .post-meta { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; position: relative; }
.crumbs a:hover { color: var(--accent-text); }
.article-img { width: 100%; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); margin: 8px 0 36px; }
.prose { font-size: 17px; line-height: 1.8; color: #2f2a26; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 44px; letter-spacing: -0.025em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--bg-alt); font-family: var(--font-head); }
.article-faq { margin-top: 48px; }
.article-faq h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 48px 0 clamp(40px, 5vw, 64px); padding: 28px; border-radius: 20px; background: #1c1815; color: #fff; }
.article-cta strong { font-family: var(--font-head); font-size: 20px; }
.article-cta p { color: #cfc6be; font-size: 15px; margin-top: 4px; }
@media (max-width: 1180px) and (min-width: 961px) { .nav-links a { padding: 8px 9px; font-size: 14px; } .nav { gap: 12px; } }

/* ---------- Forms: rows, topic questions, checkboxes, rating ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.topic-fields { margin: 4px 0 18px; padding: 20px 20px 4px; border-radius: 16px; background: var(--accent-soft); border: 1px dashed #e3c7b1; }
.topic-fields[hidden] { display: none; }
.topic-legend { float: left; width: 100%; font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.topic-legend + * { clear: both; }
.checks-group legend, fieldset.field > legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; }
.check-grid .check { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); transition: border-color .15s, background .15s; }
.check-grid .check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check.consent { margin: 4px 0 20px; color: var(--muted); line-height: 1.5; }
.check.consent a { color: var(--accent-text); text-decoration: underline; }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { width: 34px; height: 34px; color: #dccfc2; cursor: pointer; transition: color .15s, transform .15s; }
.rating label svg { width: 100%; height: 100%; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: #f59e0b; }
.rating label:hover { transform: scale(1.1); }
.rating input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Testimonials ---------- */
.t-card { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.stars { display: flex; gap: 2px; color: #f59e0b; }
.stars svg { width: 18px; height: 18px; }
.t-card blockquote { margin: 0; font-size: 16px; color: #2f2a26; line-height: 1.65; flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-card figcaption strong { display: block; font-size: 15px; }
.t-card figcaption small { color: var(--muted); font-size: 13px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; flex: none; }
.t-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 26px 28px; border-radius: 20px; background: var(--surface); border: 1px dashed #e3c7b1; }
.t-empty strong { font-family: var(--font-head); font-size: 20px; }
.t-empty p { color: var(--muted); margin-top: 4px; max-width: 560px; }
.t-none { color: var(--muted); font-size: 17px; }

/* ---------- Team (4 up) & legal footer ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.team-avatar svg { width: 28px; height: 28px; }
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent-text); }
.footer-legal { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted); max-width: 900px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr; } }
.field .check input { width: 16px; height: 16px; padding: 0; margin: 2px 0 0; border: 0; background: none; box-shadow: none; -webkit-appearance: auto; appearance: auto; }
.field .rating input { width: 1px; height: 1px; padding: 0; }

.pillars .card-body h3 { font-size: 18px; }
@media (max-width: 1100px) and (min-width: 961px) { .grid-4.pillars { grid-template-columns: 1fr 1fr; } }
.nav-cta[aria-current="page"] { background: var(--accent); color: #fff; }
.field .check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; }
.field .check input { margin: 0; }
/* Compact checkbox grid */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.check-grid .check, .field .check-grid .check { padding: 7px 10px; border-radius: 10px; font-size: 13px; line-height: 1.3; }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }

/* Testimonial moderation page (/api/testimonials.php?action=review) */
.mod-page { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.mod-card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.mod-card h1 { font-size: 26px; margin-bottom: 10px; }
.mod-card > p { color: var(--muted); }
.mod-state { font-weight: 700; color: var(--accent-text) !important; margin-bottom: 18px; }
.mod-card .t-card { box-shadow: none; }
.mod-rating { color: #f59e0b; font-size: 20px; letter-spacing: 2px; }
.mod-meta { font-size: 13px; margin-top: 14px; word-break: break-word; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mod-links { margin-top: 20px; font-size: 14px; }
.mod-links a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }

/* ---------- Stats strip ---------- */
.stats { padding: 8px 0 clamp(28px, 3vw, 40px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #1c1815; border-radius: 20px; overflow: hidden; }
.stat { padding: 26px 24px; color: #fff; border-right: 1px solid rgba(255,255,255,0.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(135deg, #f6a463, #ef7d2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #cfc6be; font-size: 14px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); } }

/* ---------- Protection & engagement models ---------- */
.protect-card .mini-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; }
.protect-card .mini-icon svg { width: 20px; height: 20px; }
.protect-card h3 { font-size: 18px; margin: 0 0 8px; }
.way-card { display: flex; flex-direction: column; gap: 6px; }
.way-card h3 { font-size: 22px; margin: 0; }
.way-sub { color: var(--accent-text) !important; font-weight: 700; font-size: 14px !important; }
.way-card .checks { margin: 14px 0 20px; flex: 1; }
.way-card .checks li { font-size: 14px; padding: 10px 12px; }
.way-card .btn { align-self: flex-start; }

/* ---------- Guide banner ---------- */
.guide-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: linear-gradient(120deg, #fbeee3, #f6e3d4); border: 1px solid #efd5c0; }
.guide-banner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.guide-banner p { color: #5d5751; margin-top: 8px; max-width: 520px; }
.guide-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Industries ---------- */
.industry-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.industry-chips.small { margin-top: 4px; gap: 8px; }
.industry-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 15px; box-shadow: var(--shadow); transition: border-color .2s, color .2s, transform .2s; }
.industry-chips.small .industry-chip { font-size: 13px; padding: 6px 12px 6px 6px; box-shadow: none; }
.industry-chip:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.ind-card, .sol-card { display: flex; flex-direction: column; gap: 10px; }
.ind-card h2 { font-size: 21px; }
.ind-card .mini-icon { width: 42px; height: 42px; border-radius: 12px; }
.ind-card .mini-icon svg { width: 20px; height: 20px; }
.ind-card .more, .sol-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent-text); }
.ind-card .more svg, .sol-card .more svg { width: 14px; height: 14px; }
.sol-card h3 { font-size: 19px; margin: 0; }

/* ---------- Project detail pages ---------- */
.project-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
.project-hero h1 { font-size: clamp(34px, 4.8vw, 54px); margin-top: 12px; }
.project-hero-img { width: 100%; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail-grid .prose h2:first-child { margin-top: 0; }
.detail-grid .checks { padding: 0; }
.detail-grid .checks li { margin: 0; }
.detail-side { display: grid; gap: 14px; position: sticky; top: 92px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.side-card h2 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.side-card p { font-size: 15px; color: #3a3531; }
.side-card .tech { margin-top: 0; }
.side-card .btn { margin-top: 14px; width: 100%; }
.project-detail h2 a:hover, .project-card h3 a:hover { color: var(--accent-text); }

/* ---------- Careers ---------- */
.roles { display: grid; gap: 12px; margin-top: 32px; }
.role-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow); }
.role-row h3 { font-size: 19px; margin: 0 0 4px; }
.role-row p { color: var(--muted); font-size: 15px; }

/* ---------- Checklist guide ---------- */
.checklist { display: grid; gap: 18px; }
.cl-section, .cl-score, .cl-next { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); break-inside: avoid; }
.cl-section h2, .cl-score h2, .cl-next h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 14px; }
.cl-section h2 span { width: 32px; height: 32px; border-radius: 10px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-size: 15px; }
.cl-section ul, .cl-score ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cl-section li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #2f2a26; }
.cl-box { width: 20px; height: 20px; flex: none; border: 2px solid #d8b79c; border-radius: 6px; margin-top: 2px; }
.cl-score li { font-size: 15px; color: #3a3531; padding: 10px 14px; background: var(--accent-soft); border-radius: 10px; }
.cl-next p { color: #3a3531; }
.cl-foot { margin-top: 14px; font-size: 12px; color: var(--muted) !important; }

@media (max-width: 960px) {
  .project-hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* ---------- Print (used to generate the PDF guide) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .site-header, .site-footer, .chat, .no-print, .skip-link, .cta-band { display: none !important; }
  .page-hero { padding: 0 0 10px; }
  .page-hero::before { display: none; }
  .page-hero h1 { font-size: 30px; }
  .section { padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cl-section, .cl-score, .cl-next { box-shadow: none; padding: 16px 18px; }
  .checklist { gap: 10px; }
  .cl-section li, .cl-score li { font-size: 12.5px; }
  .cl-section h2, .cl-score h2, .cl-next h2 { font-size: 16px; margin-bottom: 8px; }
}
.print-only { display: none; }
@media print {
  .print-only { display: flex !important; }
  .print-brand { align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #f0e2d6; }
  .print-brand svg { width: 34px; height: 34px; }
  .print-brand span { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
  .print-brand span i { font-style: normal; color: var(--accent); }
  .print-brand small { margin-left: auto; color: var(--muted); font-size: 12px; }
}

/* Compact footer: brand + 4 link columns on one row */
.site-footer { padding: 40px 0 24px; }
.footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-grid .about p { margin: 12px 0 14px; font-size: 13.5px; max-width: 300px; }
.footer-col h2.footer-title { margin-bottom: 12px; }
.footer-col ul { gap: 7px; }
.footer-col a { font-size: 13.5px; line-height: 1.4; }
.footer-contact { gap: 6px; font-size: 13.5px; }
.footer-bottom { margin-top: 28px; padding-top: 16px; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer-grid .about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

/* Careers application form */
.field input[type="file"] { padding: 10px; background: var(--surface); cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font: 700 13px var(--font-body); cursor: pointer; }
.field label .hint { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
#apply { scroll-margin-top: 80px; }

/* ---------- Compact spacing pass (all pages) ---------- */
:root { --section: clamp(28px, 3.2vw, 44px); }
.hero { padding: clamp(20px, 2.6vw, 36px) 0 clamp(20px, 2.6vw, 32px); }
.page-hero { padding: clamp(20px, 2.6vw, 36px) 0 clamp(14px, 1.8vw, 24px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.page-hero p { margin-top: 14px; }
.article-head { padding: clamp(20px, 2.6vw, 36px) 0 16px; }
.crumbs { margin-bottom: 14px; }
.eyebrow { margin-bottom: 10px; }
.section-lead { margin-top: 12px; }
.grid-3, .grid-4, .values { margin-top: 28px; }
.stats { padding: 4px 0 clamp(16px, 2vw, 24px); }
.svc-jump { margin-top: 22px; }
.hero-sub { margin-top: 16px; }
.hero-actions { margin-top: 24px; }
.section--tight { padding-top: 4px; }
.t-empty { margin-top: 20px; }
.industry-chips { margin-top: 20px; }
.roles { margin-top: 24px; }
.mt-48 { margin-top: 24px; }
.article-img { margin: 4px 0 28px; }
.article-faq, .article-cta { margin-top: 36px; }
.article-cta { margin-bottom: clamp(28px, 3.2vw, 44px); }
:root { --section: clamp(24px, 2.6vw, 36px); }
.cta-band { padding: 8px 0 clamp(20px, 2.4vw, 32px); }
.cta-band .container { padding: clamp(28px, 3.6vw, 48px); }
.site-footer { padding-top: 32px; }
.guide-banner { padding: clamp(22px, 3vw, 32px); }

/* ---------- FAQ carousel ---------- */
.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.car-nav { display: flex; gap: 8px; }
.car-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.car-btn svg { width: 18px; height: 18px; }
.car-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.car-btn:disabled { opacity: .35; cursor: default; }
.faq-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 6px 2px 14px; margin-top: 24px; scrollbar-width: none; }
.faq-carousel::-webkit-scrollbar { display: none; }
.faq-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 16px; }
.faq-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.faq-card:hover { transform: none; }
.faq-num { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-text); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.faq-card h3 { font-size: 18px; margin: 4px 0 0; line-height: 1.3; }
.faq-card p { font-size: 15px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.car-dots span { width: 8px; height: 8px; border-radius: 999px; background: #e3d3c5; transition: width .25s, background .25s; }
.car-dots span.is-active { width: 24px; background: var(--accent); }
@media (max-width: 960px) { .faq-carousel { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .faq-carousel { grid-auto-columns: 86%; } .car-nav { display: none; } }
/* Snap is enabled on first interaction (JS adds .snap): snapping at page load stops Chrome from recording LCP */
.faq-carousel.snap { scroll-snap-type: x mandatory; }

/* ---------- Impeccable pass: hero orb + craft floor ---------- */
/* Hero orb (thinking-orbs "connecting" state, drawn by /assets/js/orb.js) */
.hero-art { display: flex; justify-content: center; }
.hero-orb { display: block; width: min(100%, 480px); aspect-ratio: 1; height: auto; margin-left: auto; opacity: 0; transition: opacity .9s cubic-bezier(.16, 1, .3, 1); }
.hero-orb.is-live { opacity: 1; }
@media (max-width: 960px) { .hero-orb { width: min(78vw, 360px); margin: 4px auto 0; } }
/* Solid emphasis instead of gradient text */
.accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-text); }
.stat strong { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-text); font-variant-numeric: tabular-nums; }
/* Callouts: tinted panel, no coloured side stripe */
.outcome, .service .ideal { border-left: 0; border-radius: var(--radius-sm); }
/* Headings: balanced lines, readable measure */
h1, h2, h3, .section-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Browser surfaces themed from the palette */
::selection { background: rgba(204, 85, 0, 0.18); color: var(--text); }
input, textarea, select { caret-color: var(--accent); accent-color: var(--accent); }
html { scrollbar-color: #d7c9bd var(--bg); }
a { text-underline-offset: 3px; }
/* Scroll-in transitions kept (owner's choice), refined: shorter travel, exponential ease-out */
.reveal { transform: translateY(12px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease; }
.reveal.is-visible { transform: none; }
/* Taste pass: stats sit on the page's own palette (no lone dark band); tactile press feedback */
.stats-grid { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat { color: var(--text); border-right-color: var(--border); }
.stat span { color: var(--muted); }
@media (max-width: 760px) { .stat:nth-child(-n+2) { border-bottom-color: var(--border); } }
.btn:active { transform: translateY(1px) scale(0.98); }
/* Chat: the log sizes to its messages; the question list gets the room instead of a 190px scroller */
.chat-log { flex: 1 1 auto; min-height: 0; padding: 14px 16px 10px; }
.chat-options { flex: 0 1 auto; max-height: min(330px, 46vh); padding: 10px 14px 12px; }

/* ---------- Work showcase (homepage): tabs + stage instead of a card grid ---------- */
.work-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.work-head .more, .work-foot .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent-text); white-space: nowrap; }
.work-head .more svg, .work-foot .more svg { width: 14px; height: 14px; transition: transform .2s; }
.work-head .more:hover svg, .work-foot .more:hover svg { transform: translateX(3px); }
.work { display: grid; grid-template-columns: minmax(250px, 0.78fr) 1.6fr; gap: 20px; margin-top: 24px; align-items: start; }
.work-tabs { display: flex; flex-direction: column; gap: 4px; }
.work-tab { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.work-tab .mini-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; transition: background .2s, color .2s; }
.work-tab .mini-icon svg { width: 18px; height: 18px; }
.work-tab-text { display: grid; line-height: 1.3; min-width: 0; }
.work-tab strong { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.work-tab small { color: var(--muted); font-size: 12.5px; }
.work-tab:hover { background: var(--surface); transform: translateX(2px); }
.work-tab[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.work-tab[aria-selected="true"] .mini-icon { background: var(--accent); color: #fff; }
.work-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.work-panel { display: grid; grid-template-rows: auto 1fr; }
.work-panel.is-entering { animation: work-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes work-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.work-media { display: block; aspect-ratio: 2.3 / 1; overflow: hidden; background: var(--accent-tint); border-bottom: 1px solid var(--border); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.work-media:hover img { transform: scale(1.03); }
.work-body { padding: 20px 24px 22px; }
.work-meta { display: flex; align-items: center; gap: 10px; }
.work-body h3 { font-size: clamp(20px, 2vw, 24px); margin: 10px 0 8px; letter-spacing: -0.02em; }
.work-body h3 a { color: inherit; }
.work-body > p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.work-outcome { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: #3a3531; font-size: 14px; font-weight: 600; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.work-foot .tech { margin: 0; }
.work-panel[hidden] { display: none; }
.no-js .work-panel[hidden] { display: grid; }
@media (max-width: 960px) {
  .work { grid-template-columns: 1fr; }
  .work-tabs { flex-direction: row; overflow-x: auto; gap: 6px; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .work-tabs::-webkit-scrollbar { display: none; }
  .work-tab { width: auto; flex: none; padding: 8px 12px 8px 8px; scroll-snap-align: start; border-color: var(--border); background: var(--surface); }
  .work-tab small { display: none; }
  .work-tab strong { font-size: 14px; white-space: nowrap; }
  .work-tab .mini-icon { width: 30px; height: 30px; }
  .work-tab:hover { transform: none; }
  .work-body { padding: 16px 18px 18px; }
}
/* Byte avatar: dotted orb on the brand tile, letter B until the orb loads */
.chat-avatar { position: relative; overflow: hidden; }
.chat-avatar .byte-orb { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s ease; }
.chat-avatar.has-orb .byte-orb { opacity: 1; }
.chat-avatar.has-orb b { opacity: 0; }
/* Work showcase, compact: image beside the text, 6 slim tabs */
.work { grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; }
.work-tabs { gap: 2px; }
.work-tab { padding: 7px 10px; gap: 10px; border-radius: 12px; }
.work-tab .mini-icon { width: 32px; height: 32px; border-radius: 9px; }
.work-tab .mini-icon svg { width: 16px; height: 16px; }
.work-tab strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-tab small { font-size: 12px; }
.work-panel { grid-template-rows: none; grid-template-columns: 0.95fr 1.05fr; height: 100%; }
.work-media { aspect-ratio: auto; height: 100%; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--border); }
.work-body { padding: 18px 20px; display: flex; flex-direction: column; }
.work-body h3 { font-size: 20px; margin: 8px 0 6px; }
.work-body > p { font-size: 14px; }
.work-outcome { margin-top: 10px; padding: 8px 12px; font-size: 13px; }
.work-foot { margin-top: auto; padding-top: 12px; }
@media (max-width: 960px) {
  .work { grid-template-columns: 1fr; }
  .work-tab strong { overflow: visible; }
  .work-panel { grid-template-columns: 1fr; }
  .work-media { height: auto; min-height: 0; aspect-ratio: 2.4 / 1; border-right: 0; border-bottom: 1px solid var(--border); }
}
/* Showcase: show the whole illustration (no cropping) and let long project names wrap */
.work-media { display: grid; place-items: center; }
.work-media img { object-fit: contain; height: auto; max-height: 100%; }
.work-tab strong { white-space: normal; overflow: visible; text-overflow: clip; }

/* CTA + AI checklist in one card */
.cta-combo .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.cta-combo h2 { font-size: clamp(28px, 3.8vw, 44px); }
.cta-combo .cta-main p { margin: 14px 0 24px; }
.cta-guide { padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.cta-guide h3 { font-size: 20px; font-weight: 800; color: #fff; }
.cta-combo .cta-guide p { font-size: 14px; margin: 8px 0 16px; max-width: none; }
.cta-guide .guide-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn--light { background: #fff; color: var(--text); padding: 11px 18px; font-size: 14px; }
.btn--light:hover { background: #f6e3d4; }
.cta-link { color: #f3c7a2; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cta-link:hover { color: #fff; }
@media (max-width: 860px) { .cta-combo .container { grid-template-columns: 1fr; } }
/* Peer review: anything toggled with the hidden attribute stays hidden, whatever display its class sets */
[hidden] { display: none !important; }
.no-js .work-panel[hidden] { display: grid !important; }
/* Services: engagement process as a connected timeline, not another card grid */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(204, 85, 0, 0.15)); }
.step { position: relative; }
.step-dot { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent-text); font: 800 15px var(--font-head); margin-bottom: 14px; }
.step:first-child .step-dot { background: var(--accent); color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 18px; padding-left: 52px; }
  .timeline::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(204, 85, 0, 0.15)); }
  .step-dot { position: absolute; left: -52px; top: -4px; margin: 0; }
}
