/* SOFTAMI — main.css
   One stylesheet, mobile-first, system fonts, no dependencies. */

/* ---------- Tokens ---------- */
:root {
  --color-accent: #B775E3;        /* brand accent: icons, highlights, focus */
  --color-accent-strong: #8D4FAD; /* dark accent: buttons (5.4:1 with white) */
  --color-accent-deep: #6E3A8C;   /* hover, emphasis (7.9:1 with white) */
  --color-link: #8D4FAD;          /* links (5.2:1 on background) */
  --color-accent-soft: #F4EAF9;
  --color-accent-faint: #FAF5FC;

  --color-bg: #FAFAFC;
  --color-surface: #FFFFFF;
  --color-subtle: #F4F4F8;
  --color-text: #15151A;
  --color-muted: #686873;
  --color-border: #E8E8EE;
  --color-border-strong: #D5D5DE;
  --color-dark: #15151A;
  --color-dark-text: #EEEAF1;
  --color-dark-muted: #ABA3B1;

  --color-success-bg: #EAF6EE; --color-success: #1C6B3A;
  --color-error-bg: #FBEDEF;   --color-error: #A3203A;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1.0625rem; --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem; --fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); --fs-h1: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;

  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(30, 27, 34, .04), 0 8px 24px -12px rgba(91, 42, 114, .18);
  --container: 72rem;
  --gutter: 1.25rem;
  --transition: 160ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: 400 var(--fs-base)/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.028em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--color-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-deep); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
::selection { background: var(--color-accent-soft); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-dark); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font: 600 var(--fs-sm)/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary { background: var(--color-accent-strong); color: #fff; }
.btn-primary:hover { background: var(--color-accent-deep); color: #fff; }
.btn-secondary { background: var(--color-surface); color: var(--color-accent-deep); border-color: var(--color-border-strong); }
.btn-secondary:hover { border-color: var(--color-accent); background: var(--color-accent-faint); color: var(--color-accent-deep); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: "→"; transition: transform var(--transition); }
.text-link:hover::after { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 252, .94); border-bottom: 1px solid var(--color-border); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(250, 250, 252, .82); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--color-text); }
.brand-mark { width: 24px; height: 31px; flex: none; color: var(--color-text); }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: .08em; }
.brand-name span { color: var(--color-accent-strong); }
.brand-tag { display: none; font-size: var(--fs-xs); color: var(--color-muted); border-left: 1px solid var(--color-border); padding-left: .6rem; margin-left: .1rem; }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { color: var(--color-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: .5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-accent); }
.header-cta { display: none; }

/* No-JS: nav wraps beneath the logo. With JS on small screens: toggle button. */
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .8rem;
  background: transparent; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  font: 600 var(--fs-sm) var(--font-sans); color: var(--color-text); cursor: pointer;
}
.nav-toggle-icon { width: 18px; height: 12px; position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle-icon::before { top: 0; } .nav-toggle-icon span { top: 5px; } .nav-toggle-icon::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
.site-nav { width: 100%; padding-bottom: var(--space-3); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--color-border); }
.js .site-nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-base); }
.js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--color-accent); padding-left: .75rem; }
.nav-cta-mobile { margin-top: var(--space-4); }

@media (min-width: 60em) {
  .brand-tag { display: inline; }
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .js .site-nav ul { flex-direction: row; gap: 1.6rem; border: 0; }
  .js .site-nav li a { display: inline-block; padding: .5rem 0; border: 0; font-size: var(--fs-sm); }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-accent); padding-left: 0; }
  .header-cta { display: inline-flex; min-height: 40px; padding: .55rem 1rem; }
  .nav-cta-mobile { display: none; }
}

/* ---------- Layout sections ---------- */
main { display: block; }
.section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-7); }
.section + .section { border-top: 1px solid var(--color-border); }
.section-alt { background: var(--color-subtle); }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); max-width: 46rem; }
.section-head p { color: var(--color-muted); font-size: var(--fs-lg); }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-strong); display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--color-accent); border-radius: 2px; }
.lead { font-size: var(--fs-lg); color: var(--color-muted); max-width: 40rem; }
.prose { max-width: 44rem; display: grid; gap: var(--space-4); }
.prose h2 { margin-top: var(--space-5); font-size: 1.5rem; }
.prose h3 { margin-top: var(--space-3); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.prose li::marker { color: var(--color-accent); }

@media (min-width: 48em) { .section { padding-block: var(--space-9); } :root { --gutter: 2rem; } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-7) var(--space-8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 20%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero h1 { max-width: 15ch; margin-top: var(--space-4); }
.hero h1 em { font-style: normal; color: var(--color-accent-strong); }
.hero .lead { margin-top: var(--space-5); }
.hero .btn-row { margin-top: var(--space-6); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: var(--space-6); font-size: var(--fs-sm); color: var(--color-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

.diag { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-5); font-size: var(--fs-sm); }
.diag-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.diag-head strong { font-size: var(--fs-sm); }
.diag-tag { font: 500 var(--fs-xs) var(--font-mono); color: var(--color-accent-deep); background: var(--color-accent-soft); padding: .15rem .55rem; border-radius: 99px; }
.diag-report { padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.diag-report .mono { color: var(--color-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.diag-report p { margin-top: .25rem; }
.diag ol { list-style: none; display: grid; gap: .5rem; padding-top: var(--space-4); counter-reset: d; }
.diag li { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); }
.diag li::before { counter-increment: d; content: counter(d, decimal-leading-zero); font: 500 var(--fs-xs) var(--font-mono); color: var(--color-accent-strong); }
.diag li span { color: var(--color-muted); font: 400 var(--fs-xs) var(--font-mono); }
.diag li.is-found { background: var(--color-accent-faint); border-color: var(--color-accent-soft); }
.diag li.is-found span { color: var(--color-accent-deep); font-weight: 600; }
@media (min-width: 60em) { .hero { padding-block: var(--space-8) var(--space-9); } .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding-block: var(--space-6) var(--space-7); border-bottom: 1px solid var(--color-border); background: linear-gradient(180deg, var(--color-accent-faint), var(--color-bg) 70%); }
.page-header h1 { margin-top: var(--space-3); max-width: 22ch; }
.page-header .lead { margin-top: var(--space-4); }
.page-header .btn-row { margin-top: var(--space-5); }

/* ---------- Breadcrumbs ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; font-size: var(--fs-xs); color: var(--color-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .25rem; }
.breadcrumb li + li::before { content: "/"; color: var(--color-border-strong); margin-right: .1rem; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-link); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40em) and (max-width: 63.99em) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-5); transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 1.125rem; }
.card h3 a { color: var(--color-text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.card p { color: var(--color-muted); font-size: var(--fs-sm); }
.card .card-cta { margin-top: auto; padding-top: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--color-link); display: inline-flex; gap: .35rem; }
.card .card-cta::after { content: "→"; transition: transform var(--transition); }
.card:hover .card-cta::after { transform: translateX(3px); }
.icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-accent-soft); color: var(--color-accent-deep); display: grid; place-items: center; flex: none; }
.icon svg { width: 20px; height: 20px; }

.problem-card { padding: var(--space-5) var(--space-5) var(--space-5); }
.problem-card h3 { font-size: 1.1875rem; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font-size: var(--fs-xs); padding: .25rem .6rem; border-radius: 99px; background: var(--color-subtle); border: 1px solid var(--color-border); color: var(--color-text); }

/* Platform / technology rows */
.logo-row { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.logo-row li { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm); }
.logo-row svg { width: 22px; height: 22px; color: var(--color-accent-strong); flex: none; }
@media (min-width: 40em) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .logo-row { grid-template-columns: repeat(5, 1fr); } .logo-row.six { grid-template-columns: repeat(6, 1fr); } }
.tech-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-row li { font: 500 var(--fs-sm) var(--font-mono); padding: .4rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-muted); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: var(--space-4); counter-reset: s; }
.steps li { position: relative; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 600 var(--fs-xs) var(--font-mono); color: var(--color-accent-strong); margin-bottom: var(--space-3); }
.steps h3 { font-size: 1.0625rem; }
.steps p { color: var(--color-muted); font-size: var(--fs-sm); margin-top: .35rem; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps.five { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Two-column content ---------- */
.split { display: grid; gap: var(--space-7); }
@media (min-width: 60em) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } .split-even { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; display: grid; gap: .6rem; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: .2em; border-radius: 50%; background: var(--color-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.5' fill='none' stroke='%236E3A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.check-list.cols { gap: .6rem 2rem; }
@media (min-width: 40em) { .check-list.cols { grid-template-columns: 1fr 1fr; } }

.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-4); }
.panel h2, .panel h3 { font-size: 1.125rem; }
.panel p { color: var(--color-muted); font-size: var(--fs-sm); }
.panel-dark { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-dark-text); }
.panel-dark p { color: var(--color-dark-muted); }
.related { list-style: none; display: grid; gap: .1rem; }
.related a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); font-weight: 500; font-size: var(--fs-sm); }
.related a::after { content: "→"; color: var(--color-accent-strong); }
.related a:hover { color: var(--color-link); }

/* Definition-style rows (causes / symptoms) */
.rows { display: grid; gap: 0; border-top: 1px solid var(--color-border); }
.row { display: grid; gap: .25rem 2rem; padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.row h3 { font-size: 1.0625rem; }
.row p { color: var(--color-muted); font-size: var(--fs-sm); }
@media (min-width: 48em) { .row { grid-template-columns: 16rem 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--color-border); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-sans); color: var(--color-accent-strong); transition: transform var(--transition); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.1rem; color: var(--color-muted); max-width: 42rem; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--space-8); }
.cta-inner { background: var(--color-dark); color: var(--color-dark-text); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5); display: grid; gap: var(--space-5); position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(183, 117, 227, .35), transparent 65%); pointer-events: none; }
.cta-inner h2 { color: #fff; max-width: 22ch; }
.cta-inner p { color: var(--color-dark-muted); max-width: 38rem; }
.cta-inner .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-inner .btn-secondary:hover { border-color: var(--color-accent); background: rgba(183, 117, 227, .12); }
.cta-inner .btn-primary:hover { background: #fff; color: var(--color-accent-deep); }
@media (min-width: 60em) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; padding: var(--space-7); } }

/* Notice / coming soon */
.notice { border: 1px dashed var(--color-border-strong); border-radius: var(--radius); padding: var(--space-5); background: var(--color-surface); display: grid; gap: var(--space-2); }
.notice p { color: var(--color-muted); font-size: var(--fs-sm); }
.badge { display: inline-flex; align-items: center; gap: .35rem; font: 600 var(--fs-xs) var(--font-sans); letter-spacing: .03em; padding: .2rem .6rem; border-radius: 99px; background: var(--color-accent-soft); color: var(--color-accent-deep); width: fit-content; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; gap: var(--space-7); }
@media (min-width: 64em) { .form-wrap { grid-template-columns: 1fr 1.5fr; align-items: start; } }
.enquiry { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-5); box-shadow: var(--shadow); }
@media (min-width: 48em) { .enquiry { padding: var(--space-6); } }
.enquiry fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-4); min-width: 0; }
.enquiry legend { font-weight: 700; font-size: var(--fs-sm); padding: 0; margin-bottom: var(--space-3); color: var(--color-text); }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--color-accent-deep); }
.field .opt { color: var(--color-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem; font: 400 var(--fs-base) var(--font-sans); color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input[type="file"] { padding: .55rem; font-size: var(--fs-sm); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent-strong); box-shadow: 0 0 0 3px rgba(183, 117, 227, .3); }
.field .hint { font-size: var(--fs-xs); color: var(--color-muted); }
.field .error-text { font-size: var(--fs-xs); color: var(--color-error); font-weight: 600; }
.field .error-text:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.radio-group { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radio-group label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; font-size: var(--fs-sm); min-height: 32px; cursor: pointer; }
.radio-group input, .consent input { width: 18px; height: 18px; accent-color: var(--color-accent-strong); margin: 0; flex: none; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--color-muted); }
.consent input { margin-top: .2rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-actions .alt { font-size: var(--fs-sm); color: var(--color-muted); }

.alert { border-radius: var(--radius); padding: var(--space-4) var(--space-5); display: grid; gap: .3rem; border: 1px solid transparent; }
.alert strong { font-size: 1rem; }
.alert p { font-size: var(--fs-sm); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: #CFE9D7; }
.alert-error { background: var(--color-error-bg); color: var(--color-error); border-color: #F2D3D9; }
.alert ul { padding-left: 1.1rem; font-size: var(--fs-sm); }

.contact-aside { display: grid; gap: var(--space-5); }
.contact-aside dl { display: grid; gap: var(--space-4); margin: 0; }
.contact-aside dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.contact-aside dd { margin: .2rem 0 0; }
.copy-btn { margin-left: .5rem; font: 600 var(--fs-xs) var(--font-sans); padding: .2rem .55rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-accent-deep); cursor: pointer; vertical-align: middle; }

/* ---------- Leadership ---------- */
.profile { display: grid; gap: var(--space-5); }
.profile-head { display: flex; align-items: center; gap: var(--space-4); }
.monogram { width: 64px; height: 64px; border-radius: var(--radius); background: var(--color-accent-soft); color: var(--color-accent-deep); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; flex: none; }
.profile-head p { color: var(--color-muted); font-size: var(--fs-sm); }
.pubs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--color-border); }
.pubs li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.pubs .yr { font: 500 var(--fs-sm) var(--font-mono); color: var(--color-accent-strong); font-variant-numeric: tabular-nums; }
.pubs span { display: block; color: var(--color-muted); font-size: var(--fs-xs); margin-top: .15rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); padding-block: var(--space-7) var(--space-5); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer-grid h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-muted); font-weight: 700; margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; display: grid; gap: .45rem; }
.footer-grid a { color: var(--color-text); text-decoration: none; }
.footer-grid a:hover { color: var(--color-link); text-decoration: underline; }
.footer-brand p { color: var(--color-muted); margin-top: var(--space-3); max-width: 22rem; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--color-muted); font-size: var(--fs-xs); }
.footer-bottom a { color: var(--color-muted); }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.not-found { padding-block: var(--space-9); }
.not-found .code { font: 600 var(--fs-sm) var(--font-mono); color: var(--color-accent-strong); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .diag li { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .diag li:nth-child(2) { animation-delay: .06s; } .diag li:nth-child(3) { animation-delay: .12s; } .diag li:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- Small helpers used by pages ---------- */
.section-more { margin-top: var(--space-6); }
.sub-h { font-size: 1.125rem; margin-top: var(--space-6); margin-bottom: var(--space-3); }
.prose-ol { padding-left: 1.3rem; display: grid; gap: .6rem; }
.prose-ol li::marker { color: var(--color-accent-strong); font-weight: 700; }
.topic-list { list-style: none; display: grid; gap: .4rem; font-size: var(--fs-sm); color: var(--color-text); border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.topic-list li::before { content: "— "; color: var(--color-accent); }
.card-foot { margin-top: auto; font-size: var(--fs-sm); }
.contact-aside .steps { grid-template-columns: 1fr; }
.contact-aside .steps li { padding: var(--space-4); }
.contact-aside dl.panel > div { display: grid; }
.field-label { font-size: var(--fs-sm); }

/* Grid children may shrink below their content width (prevents overflow on small phones) */
.split > *, .grid > *, .hero-grid > *, .form-wrap > *, .footer-grid > * { min-width: 0; }
.logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo-row li { overflow-wrap: anywhere; }

/* Nav CTA: keep button styling inside the nav, hide it on desktop */
.site-nav .nav-cta-mobile { display: inline-flex; color: #fff; padding: .7rem 1.2rem; }
.site-nav .nav-cta-mobile:hover { color: #fff; }
@media (min-width: 60em) { .site-nav .nav-cta-mobile { display: none; } }
/* Contact: form first on small screens */
@media (max-width: 63.99em) { .form-wrap > div:last-child { order: -1; } }

/* =====================================================================
   v2 — Build. Fix. Optimize.
   ===================================================================== */

/* Faint technical grid for selected sections */
.section-grid {
  background-image:
    linear-gradient(rgba(183, 117, 227, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 117, 227, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Hero ---------- */
.hero { isolation: isolate; padding-block: var(--space-7) var(--space-8); }
.hero::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::after { /* fade the background into the page */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 252, 0) 55%, var(--color-bg) 100%);
}
.blob { position: absolute; border-radius: 50%; will-change: transform; opacity: .55; }
.blob-1 { width: 620px; height: 620px; top: -260px; right: -120px; background: radial-gradient(circle, rgba(183, 117, 227, .28), rgba(183, 117, 227, 0) 68%); }
.blob-2 { width: 520px; height: 520px; top: 80px; left: -220px; background: radial-gradient(circle, rgba(141, 79, 173, .14), rgba(141, 79, 173, 0) 68%); }
.blob-3 { width: 420px; height: 420px; bottom: -220px; right: 28%; background: radial-gradient(circle, rgba(216, 180, 232, .32), rgba(216, 180, 232, 0) 70%); }
.hero-net { position: absolute; left: 0; top: 0; width: 120%; height: 300px; opacity: .9; will-change: transform; }
.net-lines line { stroke: rgba(183, 117, 227, .22); stroke-width: 1; }
.net-nodes circle { fill: #B775E3; opacity: .45; }
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 5rem); letter-spacing: -.045em; line-height: 1; max-width: none; margin-top: var(--space-4); }
.hero h1 span { display: inline-block; }
.hero h1 .accent-word {
  color: var(--color-accent-strong);
  background: linear-gradient(100deg, #B775E3 0%, #8D4FAD 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); max-width: 34rem; color: var(--color-text); }

/* Stack card: website → application → server → infrastructure */
.stack-card { position: relative; background: rgba(255, 255, 255, .86); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-5); }
@supports (backdrop-filter: blur(6px)) { .stack-card { background: rgba(255, 255, 255, .72); backdrop-filter: blur(6px); } }
.stack-head, .stack-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); color: var(--color-muted); font-size: var(--fs-xs); }
.stack-head { padding-bottom: var(--space-4); }
.stack-foot { padding-top: var(--space-4); }
.stack-badge { font: 600 var(--fs-xs) var(--font-sans); color: var(--color-accent-deep); background: var(--color-accent-soft); padding: .2rem .6rem; border-radius: 99px; }
.stack-list { list-style: none; display: grid; gap: .6rem; position: relative; }
.stack-list::before { /* connector */
  content: ""; position: absolute; left: 1.95rem; top: 1.5rem; bottom: 1.5rem; width: 2px;
  background: linear-gradient(var(--color-accent-soft), var(--color-accent-soft));
}
.stack-list::after { /* travelling pulse */
  content: ""; position: absolute; left: calc(1.95rem - 3px); top: 1.5rem; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 0 0 4px rgba(183, 117, 227, .18); will-change: transform; opacity: 0;
}
.stack-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .75rem .9rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.stack-row .icon { position: relative; z-index: 1; }
.stack-row strong { display: block; font-size: var(--fs-sm); }
.stack-row span:not(.icon):not(.stack-state) { display: block; font-size: var(--fs-xs); color: var(--color-muted); }
.stack-state { width: 8px; height: 8px; border-radius: 50%; background: #3BAA6B; box-shadow: 0 0 0 3px rgba(59, 170, 107, .15); }

@media (min-width: 60em) {
  .hero { padding-block: var(--space-8) var(--space-9); }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-8); }
}
@media (max-width: 39.99em) {
  .blob-1 { width: 380px; height: 380px; top: -160px; right: -160px; }
  .blob-2 { width: 320px; height: 320px; left: -180px; }
  .hero-net { width: 220%; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--color-border); background: var(--color-surface); }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 0; padding-block: var(--space-4); font-size: var(--fs-sm); color: var(--color-muted); }
.trust-list li { padding-inline: 1rem; position: relative; white-space: nowrap; }
.trust-list li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--color-accent); }
.trust-list li:first-child { color: var(--color-text); font-weight: 600; }
@media (max-width: 39.99em) { .trust-list { justify-content: flex-start; } .trust-list li { white-space: normal; } }

/* ---------- Cards v2 ---------- */
.need-card h3 { font-size: 1.1875rem; }
.need-card .card-cta::before { content: "→ "; } .need-card .card-cta::after { content: none; }
.svc-stack { font-size: var(--fs-xs) !important; color: var(--color-accent-deep) !important; line-height: 1.5; }
.work-card dl { margin: 0; display: grid; gap: .2rem; font-size: var(--fs-sm); }
.work-card dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent-strong); margin-top: .5rem; }
.work-card dd { margin: 0; color: var(--color-muted); }
.work-card .tag-list { margin-top: auto; padding-top: var(--space-3); }
.platform-links { font-size: var(--fs-sm); color: var(--color-muted); }
.steps.four { counter-reset: s; }
@media (min-width: 64em) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.about-teaser h2 { margin-top: var(--space-3); max-width: 14ch; }
.profile-split .profile { gap: var(--space-4); }
.card { border-radius: 12px; }

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .blob-1 { animation: drift-a 34s ease-in-out infinite alternate; }
  .blob-2 { animation: drift-b 40s ease-in-out infinite alternate; }
  .blob-3 { animation: drift-c 28s ease-in-out infinite alternate; }
  .hero-net { animation: net-pan 40s ease-in-out infinite alternate; }
  .net-nodes .n1 { animation: node 7s ease-in-out infinite; }
  .net-nodes .n2 { animation: node 9s ease-in-out 2s infinite; }
  .net-nodes .n3 { animation: node 11s ease-in-out 4s infinite; }
  .stack-list::after { animation: pulse-down 6s cubic-bezier(.5, 0, .5, 1) 1s infinite; }
  .stack-state { animation: state 6s ease-in-out infinite; }
  .stack-application .stack-state { animation-delay: 1.4s; }
  .stack-server .stack-state { animation-delay: 2.8s; }
  .stack-infrastructure .stack-state { animation-delay: 4.2s; }
  .hero.is-paused .blob, .hero.is-paused .hero-net, .hero.is-paused .net-nodes circle,
  .hero.is-paused .stack-list::after, .hero.is-paused .stack-state { animation-play-state: paused; }
}
@keyframes drift-a { to { transform: translate3d(-70px, 50px, 0) scale(1.06); } }
@keyframes drift-b { to { transform: translate3d(90px, -40px, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(-60px, -50px, 0); } }
@keyframes net-pan { to { transform: translate3d(-12%, 10px, 0); } }
@keyframes node { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }
@keyframes pulse-down {
  0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; }
  80% { transform: translateY(var(--pulse-distance, 13.5rem)); opacity: 1; } 100% { transform: translateY(var(--pulse-distance, 13.5rem)); opacity: 0; }
}
@keyframes state { 0%, 70%, 100% { opacity: .55; } 10% { opacity: 1; } }

/* =====================================================================
   v3 — Effects layer (progressive enhancement; see assets/js/fx.js)
   Everything below is decorative. With JS off or reduced motion on,
   the page renders fully and statically.
   ===================================================================== */
@property --fx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- Cards: lift, spotlight, cursor-following border glow ---------- */
.card { overflow: hidden; transition: border-color var(--transition), box-shadow .3s ease, translate .3s cubic-bezier(.2, .7, .2, 1); }
.card:hover { translate: 0 -3px; box-shadow: 0 2px 4px rgba(21, 21, 26, .04), 0 18px 40px -18px rgba(141, 79, 173, .35); border-color: #E2D3EC; }
.card::before, .card::after, .stack-card::after, .enquiry::after {
  content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .35s ease; border-radius: inherit;
}
.card::before { /* soft spotlight */
  inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(183, 117, 227, .10), transparent 45%);
}
.card::after, .stack-card::after, .enquiry::after { /* glowing border ring */
  inset: -1px; padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(183, 117, 227, .85), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after, .stack-card:hover::after, .enquiry:hover::after { opacity: 1; }
.enquiry { position: relative; }
.card .icon { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s ease, color .3s ease; }
.card:hover .icon { transform: translateY(-2px) rotate(-6deg) scale(1.06); background: linear-gradient(135deg, #B775E3, #8D4FAD); color: #fff; }

/* ---------- Buttons: shine sweep + magnetic offset ---------- */
.btn { position: relative; overflow: hidden; translate: var(--mag-x, 0) var(--mag-y, 0); transition: background var(--transition), border-color var(--transition), color var(--transition), translate .25s ease, box-shadow .25s ease; }
.btn-primary { box-shadow: 0 6px 18px -8px rgba(141, 79, 173, .6); }
.btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(141, 79, 173, .75); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); opacity: 0;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(21, 21, 26, .25); }

/* ---------- Hero stack card tilt ---------- */
.stack-card { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* ---------- Trust ticker ---------- */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .trust-list { flex: none; flex-wrap: nowrap; justify-content: flex-start; min-width: 100%; padding-right: 1rem; }
.marquee .trust-list li { white-space: nowrap; }
.marquee .trust-list[aria-hidden="true"] { display: none; }

/* ---------- Section heading accent ---------- */
.section-head h2::after, .about-teaser h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: .9rem; border-radius: 3px;
  background: linear-gradient(90deg, #B775E3, #8D4FAD); transform-origin: left;
}

/* ---------- Page header ambience ---------- */
.page-header { position: relative; overflow: hidden; isolation: isolate; }
.page-header::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 117, 227, .22), rgba(183, 117, 227, 0) 68%); pointer-events: none;
}

/* ---------- Dark CTA: rotating gradient border ---------- */
.cta-inner { isolation: isolate; }
.cta-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--fx-angle), rgba(183, 117, 227, 0) 0deg, rgba(183, 117, 227, .9) 60deg, rgba(183, 117, 227, 0) 140deg, rgba(183, 117, 227, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cta-inner > * { position: relative; z-index: 2; }

/* ---------- Mouse smoke canvas ---------- */
.fx-smoke { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
@media (prefers-reduced-motion: reduce) { .fx-smoke { display: none; } }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero headline: words rise in on load (opacity never 0, so it still paints immediately for LCP) */
  .hero h1 > span { animation: word-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 > span:nth-child(2) { animation-delay: .12s; }
  .hero h1 > span:nth-child(3) { animation-delay: .24s; }
  .hero h1 .accent-word { background-size: 200% 100%; animation: word-in .9s cubic-bezier(.2, .7, .2, 1) .24s both, shimmer 7s ease-in-out 1.2s infinite; }
  .hero .lead, .hero .btn-row, .hero .finder { animation: fade-up .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lead { animation-delay: .35s; } .hero .btn-row { animation-delay: .45s; } .hero .finder { animation-delay: .55s; }
  .stack-card { animation: card-in 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .stack-row { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) both; }
  .stack-row:nth-child(1) { animation-delay: .45s; } .stack-row:nth-child(2) { animation-delay: .55s; }
  .stack-row:nth-child(3) { animation-delay: .65s; } .stack-row:nth-child(4) { animation-delay: .75s; }

  /* Scroll reveal: only elements below the fold get .fx-reveal (added by fx.js) */
  .fx .fx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--fx-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--fx-delay, 0ms); }
  .fx .fx-reveal.is-in { opacity: 1; transform: none; }
  .fx .section-head.fx-reveal h2::after, .fx .about-teaser .fx-reveal h2::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1) .25s; }
  .fx .section-head.fx-reveal.is-in h2::after, .fx .about-teaser .fx-reveal.is-in h2::after { transform: scaleX(1); }

  /* Buttons */
  .btn-primary:hover::after { animation: shine .8s ease; }

  /* Trust ticker */
  .marquee .trust-list { animation: ticker 48s linear infinite; }
  .marquee .trust-list[aria-hidden="true"] { display: flex; }
  .marquee:hover .trust-list, .marquee:focus-within .trust-list { animation-play-state: paused; }

  /* Page header ambience + dark CTA border */
  .page-header::after { animation: drift-a 30s ease-in-out infinite alternate; }
  .cta-inner::before { animation: spin-border 8s linear infinite; }

  /* Reading progress bar (scroll-driven, no JS; browsers without support simply don't show it) */
  @supports (animation-timeline: scroll()) {
    .site-header::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%;
      background: linear-gradient(90deg, #B775E3, #8D4FAD); animation: progress linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes word-in { from { transform: translateY(.35em) rotate(2deg); opacity: .01; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes fade-up { from { transform: translateY(14px); opacity: .01; } to { transform: none; opacity: 1; } }
@keyframes card-in { from { translate: 0 28px; opacity: .01; } to { translate: 0 0; opacity: 1; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shine { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes spin-border { to { --fx-angle: 360deg; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee .trust-list { flex-wrap: wrap; justify-content: center; }
  .marquee .trust-list li { white-space: normal; }
}


/* =====================================================================
   v4 — Hero refactor: company-first copy, solution finder, interactive stack
   ===================================================================== */

/* Composition: tighter vertical rhythm so the key message + finder sit above the fold */
.hero { padding-block: var(--space-6) var(--space-7); }
@media (min-width: 60em) {
  .hero { padding-block: clamp(2.5rem, 5vh, 3.75rem) clamp(2.5rem, 6vh, 4rem); }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
}
.hero .eyebrow { letter-spacing: .12em; }
.hero h1 { font-size: clamp(2.75rem, 1.2rem + 5vw, 4.25rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin-top: var(--space-3); }
.hero .lead { margin-top: var(--space-4); max-width: 33rem; font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem); line-height: 1.55; color: var(--color-text); }
.hero .btn-row { margin-top: var(--space-5); }

/* Secondary CTA: clearly secondary, but readable and with a visible state */
.hero .btn-secondary, .btn-secondary { color: #4A2560; border-color: #BFA3D1; font-weight: 600; background: rgba(255, 255, 255, .7); }
.hero .btn-secondary:hover, .btn-secondary:hover { border-color: var(--color-accent-strong); color: var(--color-accent-deep); background: var(--color-accent-faint); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ---------- Solution finder ---------- */
.finder { position: relative; z-index: 45; margin-top: var(--space-6); max-width: 34rem; }
.finder-label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--color-text); margin-bottom: .5rem; }
.finder-box { position: relative; display: flex; align-items: center; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(21, 21, 26, .04), 0 10px 30px -18px rgba(141, 79, 173, .35); transition: border-color .2s ease, box-shadow .2s ease; }
.finder-box:focus-within { border-color: var(--color-accent-strong); box-shadow: 0 0 0 4px rgba(183, 117, 227, .22), 0 14px 34px -18px rgba(141, 79, 173, .45); }
.finder-icon { width: 20px; height: 20px; color: var(--color-accent-strong); margin-left: .9rem; flex: none; }
.finder-box input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; padding: 0 .75rem; font: 400 var(--fs-base) var(--font-sans); color: var(--color-text); border-radius: 12px; }
.finder-box input::placeholder { color: #8A8A96; }
.finder-box input:focus { outline: none; }
.finder-box input::-webkit-search-cancel-button { cursor: pointer; }
.finder-go { flex: none; width: 40px; height: 40px; margin-right: 6px; border: 0; border-radius: 9px; background: var(--color-accent-strong); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.finder-go:hover { background: var(--color-accent-deep); }
.finder-go:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.finder-go svg { width: 18px; height: 18px; }
.finder-suggest { margin-top: .6rem; font-size: var(--fs-xs); color: var(--color-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; }
.finder-suggest span { font-weight: 600; margin-right: .1rem; }
.finder-suggest a { color: var(--color-accent-deep); text-decoration: none; padding: .2rem .6rem; border: 1px solid var(--color-border); border-radius: 99px; background: rgba(255, 255, 255, .75); min-height: 28px; display: inline-flex; align-items: center; transition: border-color .2s ease, background .2s ease; }
.finder-suggest a:hover { border-color: #BFA3D1; background: var(--color-accent-faint); }

/* Results: an overlay below the field, so opening it never shifts the layout */
.finder-results { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px;
  box-shadow: 0 24px 50px -20px rgba(21, 21, 26, .3); padding: .4rem; max-height: min(60vh, 22rem); overflow-y: auto; overscroll-behavior: contain; }
.finder-option { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: 8px; text-decoration: none; color: var(--color-text); border: 1px solid transparent; }
.finder-option + .finder-option { margin-top: .15rem; }
.finder-option:hover, .finder-option[aria-selected="true"] { background: var(--color-accent-faint); border-color: var(--color-accent-soft); }
.finder-option[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--color-accent); }
.finder-cat { font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--color-accent-strong); }
.finder-title { font-weight: 650; font-size: var(--fs-sm); }
.finder-arrow { color: var(--color-accent-strong); }
.finder-desc { font-size: var(--fs-xs); color: var(--color-muted); }
.finder-fallback .finder-cat { color: var(--color-muted); letter-spacing: .02em; text-transform: none; font-size: var(--fs-xs); font-weight: 600; }

/* ---------- Stack card: balanced, interactive layers ---------- */
.stack-card { align-self: center; }
.stack-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.stack-row { padding: 0; border: 0; background: none; }
.stack-link { display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center; padding: .75rem .9rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease, translate .25s cubic-bezier(.2, .7, .2, 1), background .2s ease; }
.stack-text { display: grid; min-width: 0; }
.stack-text strong { font-size: var(--fs-sm); }
.stack-text span { font-size: var(--fs-xs); color: var(--color-muted); }
.stack-link .icon { transition: background .2s ease, color .2s ease; }
.stack-go { color: var(--color-accent-strong); opacity: 0; translate: -4px 0; transition: opacity .2s ease, translate .2s ease; font-weight: 700; }
.stack-link:hover, .stack-link:focus-visible { border-color: #D9C2E8; background: #FFFFFF; box-shadow: 0 8px 22px -14px rgba(141, 79, 173, .5); translate: 3px 0; }
.stack-link:hover .icon, .stack-link:focus-visible .icon { background: linear-gradient(135deg, #B775E3, #8D4FAD); color: #fff; }
.stack-link:hover .stack-go, .stack-link:focus-visible .stack-go { opacity: 1; translate: 0 0; }
.stack-link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Decorative background: kept subtle behind text */
.hero-net { opacity: .7; }
.net-lines line { stroke: rgba(183, 117, 227, .18); }

/* ---------- Social profiles ---------- */
.social { list-style: none; display: flex; gap: .5rem; margin-top: var(--space-4); }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--color-border); color: var(--color-muted); background: var(--color-surface); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.social a:hover { color: #fff; background: var(--color-accent-strong); border-color: var(--color-accent-strong); }
.social svg { width: 18px; height: 18px; }
.social-inline { margin-top: .35rem; }

/* ---------- Mobile ---------- */
@media (max-width: 59.99em) {
  .hero .hero-copy { max-width: 40rem; }
  .finder { max-width: none; }
}
@media (max-width: 39.99em) {
  .hero { padding-block: var(--space-5) var(--space-6); }
  .hero .btn-row { display: grid; grid-template-columns: 1fr; }
  .hero .btn-row .btn { width: 100%; min-height: 48px; }
  .finder-results { max-height: min(55vh, 20rem); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-link, .stack-go, .finder-box { transition: none; }
  .stack-link:hover, .stack-link:focus-visible { translate: none; }
}

/* v4 fixes: results overlay must not be clipped; stack rows take the full width */
.hero { overflow: visible; position: relative; z-index: 2; }
.stack-row { display: block; }
.stack-link { width: 100%; }
.hero .lead { max-width: 35rem; text-wrap: pretty; }

/* v5 — Hero background: blueprint grid behind the stack card (replaces the random network) */
.hero-blueprint {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(62%, 980px);
  background-image:
    linear-gradient(rgba(141, 79, 173, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 79, 173, .16) 1px, transparent 1px),
    linear-gradient(rgba(183, 117, 227, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 117, 227, .09) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 62% 52%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 60% at 62% 52%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
}
.hero .blob-1 { width: 640px; height: 640px; top: -120px; right: -60px; opacity: .7;
  background: radial-gradient(circle, rgba(183, 117, 227, .26), rgba(183, 117, 227, 0) 66%); }
.hero .blob-2 { opacity: .45; }
.stack-card { box-shadow: 0 2px 4px rgba(21, 21, 26, .04), 0 30px 60px -28px rgba(141, 79, 173, .45); }
@media (max-width: 59.99em) {
  .hero-blueprint { width: 100%; top: auto; height: 60%;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 70%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 70%, #000 0%, transparent 75%); }
}

/* v5 fixes: social icons in one compact row everywhere (footer lists are grids by default) */
.footer-grid ul.social, ul.social { display: flex; flex-wrap: wrap; gap: .5rem; }
ul.social a { width: 34px; height: 34px; border-radius: 9px; }
ul.social svg { width: 16px; height: 16px; }
.hero-blueprint {
  background-image:
    linear-gradient(rgba(141, 79, 173, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 79, 173, .2) 1px, transparent 1px),
    linear-gradient(rgba(183, 117, 227, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 117, 227, .11) 1px, transparent 1px);
}

/* =====================================================================
   v6 — Smart search panel
   ===================================================================== */
.finder-panel { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 14px; box-shadow: 0 28px 60px -24px rgba(21, 21, 26, .32); max-height: min(60vh, 26rem); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; text-align: left; }
.finder-panel[hidden] { display: none; }
.finder-results { position: static; border: 0; box-shadow: none; padding: .35rem; max-height: none; overflow: visible; background: none; border-radius: 0; }
.finder-intent { display: flex; flex-wrap: wrap; gap: .25rem .75rem; padding: .7rem .95rem .2rem; font-size: var(--fs-xs); color: var(--color-muted); }
.finder-intent[hidden] { display: none; }
.finder-understood { display: inline-flex; align-items: center; gap: .4rem; color: var(--color-accent-deep); font-weight: 600; }
.finder-understood::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #B775E3, #8D4FAD); box-shadow: 0 0 0 3px rgba(183, 117, 227, .18); }
.finder-fix strong { color: var(--color-text); }
.finder-option mark { background: rgba(183, 117, 227, .2); color: inherit; border-radius: 3px; padding: 0 .1em; }
.finder-desc { line-height: 1.5; }
.finder-answer { background: linear-gradient(135deg, #FBF7FD, #FFFFFF); border-color: var(--color-accent-soft); margin-bottom: .25rem; }
.finder-answer .finder-cat { display: inline-flex; align-items: center; gap: .35rem; }
.finder-answer .finder-cat::before { content: "✦"; font-size: .8em; }
.finder-src { font-size: .75rem; color: var(--color-muted); margin-top: .15rem; }
.finder-send { border-top: 1px dashed var(--color-border); border-radius: 0 0 8px 8px; margin-top: .25rem; }
.finder-send .finder-cat { color: var(--color-muted); }
.finder-meta { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .5rem .95rem .65rem; border-top: 1px solid var(--color-border);
  font-size: .7rem; color: #8A8A96; margin-top: auto; position: sticky; bottom: 0; background: var(--color-surface); }
.finder-meta kbd, .finder-kbd { font: 600 .68rem var(--font-mono); padding: .05rem .35rem; border: 1px solid var(--color-border-strong); border-bottom-width: 2px;
  border-radius: 5px; background: var(--color-subtle); color: var(--color-muted); }
.finder-kbd { margin-right: .5rem; flex: none; }
.finder-box:focus-within .finder-kbd { display: none; }
@media (hover: none), (max-width: 39.99em) { .finder-kbd, .finder-meta span:last-child { display: none; } }

/* Finder on the Solutions and 404 pages */
.finder-band .finder { margin-top: 0; max-width: 40rem; }
.not-found .finder-band { margin-block: var(--space-6) var(--space-4); text-align: left; }

/* =====================================================================
   v7 — First-visit intro (preloader). Shown only when the inline head script adds .sa-on.
   Fixed overlay: no layout shift; content paints underneath (LCP unaffected).
   ===================================================================== */
#sa-preloader { display: none; }
html.sa-on #sa-preloader {
  --sa-bg: #8D4FAD; --sa-fg: #fff; --sa-soft: rgba(255, 255, 255, .25);
  position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(120% 90% at 50% 40%, #9A5BBE 0%, var(--sa-bg) 55%, #6E3A8C 100%);
  clip-path: circle(150% at 50% 46%);
  transition: clip-path .6s cubic-bezier(.7, 0, .25, 1) .1s, visibility 0s linear .7s;
  animation: sa-failsafe 0s linear 4s forwards;   /* hides it even if preloader.js never runs */
}
html.sa-on #sa-preloader.sa-done { clip-path: circle(0% at 50% 46%); visibility: hidden; }
#sa-preloader > * { transition: opacity .2s ease, transform .25s cubic-bezier(.5, 0, .75, 0); }
#sa-preloader.sa-done > * { opacity: 0; transform: scale(.85); }
.sa-logo { width: 120px; height: 155px; overflow: visible; }
.sa-logo use, .sa-logo rect { transform-box: fill-box; transform-origin: 50% 50%; }
.sa-outline { fill: none; stroke: #fff; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sa-draw .75s cubic-bezier(.6, 0, .3, 1) forwards; }
.sa-fill { fill: #fff; }
.sa-wave { transform: translate(0, 1120px); animation: sa-wave .85s cubic-bezier(.55, 0, .3, 1) .45s forwards; }
.sa-s, .sa-tail { fill: #fff; opacity: 0; }
.sa-s { animation: sa-s-in .6s cubic-bezier(.34, 1.56, .64, 1) .85s forwards; }
.sa-tail { animation: sa-tail-in .45s cubic-bezier(.2, .8, .2, 1) 1.1s forwards; }
.sa-mark { transform-box: fill-box; transform-origin: 50% 50%; animation: sa-pulse .4s ease-in-out 1.45s; }
.sa-shine { transform: translateX(-900px); animation: sa-shine .55s ease-in-out 1.5s forwards; }
.sa-word { display: flex; font: 700 22px/1 var(--font-sans); letter-spacing: .14em; color: #fff; }
.sa-word span { opacity: 0; transform: translateY(8px); animation: sa-up .35s ease-out forwards; }
.sa-word span:nth-child(1) { animation-delay: 1.40s; } .sa-word span:nth-child(2) { animation-delay: 1.44s; }
.sa-word span:nth-child(3) { animation-delay: 1.48s; } .sa-word span:nth-child(4) { animation-delay: 1.52s; }
.sa-word span:nth-child(5) { animation-delay: 1.56s; } .sa-word span:nth-child(6) { animation-delay: 1.60s; }
.sa-word span:nth-child(7) { animation-delay: 1.64s; }
.sa-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--sa-soft); overflow: hidden; }
.sa-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; animation: sa-charge 1.8s cubic-bezier(.5, 0, .2, 1) forwards; }
.sa-skip { position: absolute; bottom: max(24px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); min-width: 96px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 22px; background: transparent; color: rgba(255, 255, 255, .9); font: 500 13px/1 var(--font-sans); letter-spacing: .06em; cursor: pointer;
  opacity: 0; animation: sa-fade .3s ease-out .5s forwards; }
.sa-skip:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.sa-skip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#sa-preloader.sa-done .sa-skip { animation: none; opacity: 0; }

/* Hold the hero's entrance until the intro reveals the page, so visitors actually see it */
html.sa-loading .hero h1 > span, html.sa-loading .hero .lead, html.sa-loading .hero .btn-row,
html.sa-loading .hero .finder, html.sa-loading .stack-card, html.sa-loading .stack-row { animation-play-state: paused; }

@keyframes sa-wave { to { transform: translate(-400px, 20px); } }
@keyframes sa-draw { to { stroke-dashoffset: 0; } }
@keyframes sa-s-in { 0% { opacity: 0; transform: translate(-60px, 140px) scale(.6) rotate(-10deg); } 100% { opacity: 1; transform: none; } }
@keyframes sa-tail-in { 0% { opacity: 0; transform: translate(180px, -40px); } 100% { opacity: 1; transform: none; } }
@keyframes sa-pulse { 50% { transform: scale(1.06); } }
@keyframes sa-shine { to { transform: translateX(900px); } }
@keyframes sa-up { to { opacity: 1; transform: none; } }
@keyframes sa-fade { to { opacity: 1; } }
@keyframes sa-charge { to { transform: scaleX(1); } }
@keyframes sa-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { html.sa-on #sa-preloader { display: none; } }

/* ---------- v8: projects (managed from /admin/) ---------- */
.project-grid { align-items: stretch; }
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-media { display: block; aspect-ratio: 16 / 10; background: var(--color-accent-soft); overflow: hidden; border-bottom: 1px solid var(--color-border); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.project-card:hover .project-media img, .project-card:focus-within .project-media img { transform: scale(1.035); }
.project-media-empty { display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 10%, #fff, var(--color-accent-soft) 60%, #EBDDF5); }
.project-media-empty span { font-weight: 800; font-size: 2.5rem; letter-spacing: .04em; color: var(--color-accent-strong); opacity: .55; }
.project-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.project-body h3 a { color: var(--color-text); text-decoration: none; }
.project-body h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-body p { color: var(--color-muted); font-size: var(--fs-sm); }
.project-body .tag-list { margin-top: auto; padding-top: var(--space-3); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: var(--fs-xs) !important; color: var(--color-muted); }
.badge-live { background: #E7F5EC; color: #1C6B3A; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2E9A57; box-shadow: 0 0 0 3px rgba(46, 154, 87, .18); }
.project-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--space-5); }
.project-filters button { min-height: 40px; padding: .4rem .95rem; border-radius: 99px; border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); font: 600 var(--fs-sm) var(--font-sans); cursor: pointer; }
.project-filters button:hover { border-color: var(--color-accent-strong); }
.project-filters button[aria-pressed="true"] { background: var(--color-accent-strong); border-color: var(--color-accent-strong); color: #fff; }
.project-empty { color: var(--color-muted); }
.project-header .lead { max-width: 46rem; }
.project-facts { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin: var(--space-5) 0 0; }
.project-facts dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent-strong); }
.project-facts dd { margin: .15rem 0 0; font-weight: 600; }
.project-cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow); background: var(--color-accent-soft); }
.project-cover img { width: 100%; }
.project-side h2 { font-size: 1.05rem; margin-bottom: var(--space-3); }
.project-side h2:not(:first-child) { margin-top: var(--space-6); }
.project-side p + p { margin-top: var(--space-3); }
.project-gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.project-gallery figure { margin: 0; }
.project-gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.project-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-gallery figcaption { font-size: var(--fs-xs); color: var(--color-muted); margin-top: .4rem; }
.project-pager .container { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-4); align-items: center; border-top: 1px solid var(--color-border); padding-top: var(--space-6); }
.project-pager a { font-weight: 600; text-decoration: none; }
.project-pager a span { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--color-muted); }
.project-pager a:last-child { text-align: right; }
@media (max-width: 40em) { .project-pager .container { grid-template-columns: 1fr 1fr; } .project-pager a:nth-child(2) { display: none; } }
.preview-ribbon { position: sticky; top: 0; z-index: 60; padding: .6rem var(--gutter); background: #15151A; color: #fff; text-align: center; font-size: var(--fs-sm); }
.preview-ribbon a { color: #E3CCF3; }
@media (prefers-reduced-motion: reduce) { .project-media img { transition: none; } }
.project-card[hidden], .project-filters[hidden], .project-empty[hidden] { display: none !important; }

/* ---------- v9: phone & WhatsApp ---------- */
.direct-contact { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0; padding: 0; }
.direct-contact a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; font-weight: 600; text-decoration: none; color: var(--color-text); }
.direct-contact a:hover { color: var(--color-accent-deep); }
.direct-contact svg { width: 18px; height: 18px; flex: none; color: var(--color-accent-strong); }
.direct-contact a[href^="https://wa.me"] svg { color: #1C7C4B; }
.footer-contact { margin-top: var(--space-3); }
.footer-grid .footer-contact { display: flex; }
.direct-contact span { white-space: nowrap; }

/* ---------- v10: the 3D mark (About page) ---------- */
.brand-story { align-items: center; }
.brand-figure { margin: 0; display: grid; place-items: center; padding: var(--space-7) var(--space-5); border-radius: var(--radius-lg);
  background: radial-gradient(60% 55% at 50% 45%, #fff 0%, var(--color-accent-faint) 55%, var(--color-accent-soft) 100%); border: 1px solid var(--color-border); }
.brand-figure img { width: min(340px, 74%); }
@media (min-width: 60em) { .brand-story .prose { padding-left: var(--space-5); } }
.nf-mark { width: 150px; height: auto; margin: 0 0 var(--space-4); }
