/* Nova — corporate theme
   Colors, fonts, radius and width come from theme options (layouts/base.html → :root). */

/* ---------- tokens ---------- */
:root {
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 20%, transparent);
  --tint: color-mix(in srgb, var(--primary) 7%, var(--bg));
  --primary-soft: color-mix(in srgb, var(--primary) 10%, transparent);
  --shadow-sm: 0 1px 2px rgb(10 25 50 / .06);
  --shadow: 0 1px 2px rgb(10 25 50 / .05), 0 8px 24px -10px rgb(10 25 50 / .16);
  --shadow-lg: 0 24px 60px -24px rgb(10 25 50 / .3);
  --gap: clamp(1.25rem, 2.4vw, 2rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --h-weight: 700;
  --h-track: -0.022em;
  color-scheme: light;
}
.preset-classic { --h-weight: 600; --h-track: -0.01em; }
.preset-modern { --h-weight: 750; --h-track: -0.03em; }

html.scheme-dark { --bg: #0b1424; --surface: #111d33; --ink: #e9eef7; --muted: #9aa8bf; --dark: #060d1a; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html.scheme-auto:not(.force-light) { --bg: #0b1424; --surface: #111d33; --ink: #e9eef7; --muted: #9aa8bf; --dark: #060d1a; color-scheme: dark; }
}
html.scheme-auto.force-dark { --bg: #0b1424; --surface: #111d33; --ink: #e9eef7; --muted: #9aa8bf; --dark: #060d1a; color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--h-weight); letter-spacing: var(--h-track); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0 0 1em; }
::selection { background: var(--primary); color: var(--primary-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.ic-emoji { display: inline-grid; place-items: center; font-size: 1.35em; line-height: 1; width: auto; height: auto; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 780px; }
.container.normal { max-width: 980px; }
.center { text-align: center; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; }
@media (max-width: 1000px) { .grid.cols-4, .grid.cols-3 { --cols: 2; } }
@media (max-width: 680px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { --cols: 1; } .team.cols-4, .team.cols-3 { --cols: 2; } }

/* ---------- sections ---------- */
.blk { padding-block: var(--section); position: relative; }
.blk.pt-0 { padding-top: 0; }
.theme-light + .theme-light { padding-top: 0; }
.theme-surface { background: var(--surface); }
.theme-dark { background: var(--dark); color: #e9eef7; --ink: #e9eef7; --muted: #a7b3c6; --line: rgb(255 255 255 / .12); --line-strong: rgb(255 255 255 / .22); --surface: rgb(255 255 255 / .05); }
.theme-primary { background: var(--primary); color: var(--primary-ink); --ink: var(--primary-ink); --muted: color-mix(in srgb, var(--primary-ink) 78%, transparent); --line: rgb(255 255 255 / .2); }

.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font: 600 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.is-center .eyebrow::before, .center .eyebrow::before { display: none; }
.theme-dark .eyebrow, .theme-primary .eyebrow { color: color-mix(in srgb, var(--accent) 55%, white); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.has-link { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-head.has-link .section-head-copy { max-width: 700px; }
.section-head .lead p:last-child { margin: 0; }
.section-title { margin-bottom: .4em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--primary); }
.theme-dark .link-arrow { color: #fff; }
.link-arrow .ic { width: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }
@media (max-width: 680px) { .section-head.has-link { flex-direction: column; align-items: start; } }

/* ---------- prose ---------- */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.theme-dark .prose a, .theme-primary .prose a { color: inherit; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.25em; border-left: 3px solid var(--accent); font-size: 1.12em; }
.prose img { border-radius: var(--radius); margin: 1.8em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95em; }
.prose th, .prose td { padding: .7em .8em; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); }
.prose code { font: .9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); padding: .15em .4em; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.actions.is-center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.5rem; border-radius: var(--btn-radius); border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, black); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--primary); padding-inline: .25rem; }
.btn-sm { min-height: 2.6rem; padding: .55rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ic { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .btn-ic { transform: translateX(3px); }
.theme-dark .btn-primary, .theme-primary .btn-primary { background: #fff; color: var(--primary); }
.theme-dark .btn-primary:hover, .theme-primary .btn-primary:hover { background: color-mix(in srgb, #fff 88%, var(--primary)); }
.theme-dark .btn-secondary, .theme-primary .btn-secondary { color: #fff; border-color: rgb(255 255 255 / .4); }
.theme-dark .btn-secondary:hover, .theme-primary .btn-secondary:hover { border-color: #fff; background: rgb(255 255 255 / .06); }

/* ---------- announcement / topbar / header ---------- */
.announcement { background: var(--accent); color: #fff; text-align: center; font-size: .9rem; padding: .5rem 1rem; }
.announcement a { color: inherit; text-decoration: none; font-weight: 500; }
.topbar { background: var(--dark); color: rgb(255 255 255 / .78); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.6rem; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.topbar-contact { gap: 1.75rem; }
.topbar-contact li, .topbar-contact a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.topbar-contact .ic { width: .95rem; height: .95rem; opacity: .7; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-social { gap: .85rem; }
.topbar-social .ic { width: .95rem; height: .95rem; }
.topbar .lang-switch a { color: rgb(255 255 255 / .6); }
.topbar .lang-switch a[aria-current] { color: #fff; background: rgb(255 255 255 / .12); }
@media (max-width: 760px) { .topbar-contact li:nth-child(n+2), .topbar-social, .hide-sm { display: none !important; } }

.site-header { position: relative; z-index: 50; }
.is-sticky .site-header { position: sticky; top: calc(-2.6rem - 1px); }
.header-solid.is-sticky .site-header, .header-transparent.is-sticky .site-header { top: 0; }
.mainbar { background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled .mainbar { box-shadow: 0 6px 20px -12px rgb(10 25 50 / .25); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.header-transparent .site-header { position: absolute; inset: 0 0 auto; }
.header-transparent.is-sticky .site-header { position: fixed; }
.header-transparent .mainbar { background: transparent; border-color: rgb(255 255 255 / .15); }
.header-transparent .site-header:not(.is-scrolled) .mainbar { color: #fff; --ink: #fff; }
.header-transparent .site-header.is-scrolled .mainbar { background: var(--bg); }
.header-transparent main > .hero:first-child { padding-top: calc(var(--section) + 5rem); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 700 1.25rem/1 var(--font-heading); letter-spacing: -0.02em; margin-right: auto; }
.brand-logo { height: 40px; width: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); font: 700 1.15rem/1 var(--font-heading); }
.theme-dark .brand-mark, .site-footer .brand-mark { background: #fff; color: var(--dark); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list, .sub-nav, .lang-switch { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: .25rem; }
.nav-item { position: relative; }
.nav-item > a { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: 1.75rem .85rem; font-size: .97rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav-item > a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 1.2rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-item > a:hover::after, .nav-item.is-active > a::after { transform: scaleX(1); }
.caret { width: .75rem; height: .75rem; opacity: .6; }
.sub-nav { position: absolute; top: 100%; left: 0; min-width: 270px; padding: .5rem 0; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--accent); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.nav-item.has-sub:hover .sub-nav, .nav-item.has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
.sub-nav a { display: grid; gap: .15rem; padding: .7rem 1.25rem; text-decoration: none; }
.sub-nav a:hover { background: var(--surface); }
.sub-label { font-weight: 600; font-size: .95rem; }
.sub-desc { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.nav-tools { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; gap: .15rem; font-size: .8rem; font-weight: 600; }
.lang-switch a { display: block; padding: .25rem .45rem; border-radius: 4px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { color: var(--ink); background: var(--surface); }
.icon-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle .ic-sun { display: none; }
html.force-dark .theme-toggle .ic-sun { display: block; } html.force-dark .theme-toggle .ic-moon { display: none; }

.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--ink); transition: .25s var(--ease); content: ""; }
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header-inner { min-height: 4.25rem; }
  .site-nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: 7.5rem 1.5rem 2rem; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item > a { font-size: 1.3rem; font-weight: 600; padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-item > a::after { display: none; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .25rem 0 .75rem 1rem; min-width: 0; }
  .sub-nav a { padding: .5rem 0; }
  .caret { display: none; }
  .header-cta { flex: 1; min-height: 3rem; }
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .header-transparent .site-header .mainbar { color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { overflow: hidden; isolation: isolate; }
.hero-compact { --section: clamp(3rem, 6vw, 4.5rem); }
.hero-inner { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-split .hero-inner { grid-template-columns: 1fr 1fr; }
.hero-copy { max-width: 760px; }
.hero-copy.is-center { text-align: center; margin-inline: auto; }
.hero-copy.is-center .hero-text { margin-inline: auto; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.1; margin-bottom: .45em; }
.hero-title .hl { color: var(--accent); }
.theme-dark .hero-title .hl { color: color-mix(in srgb, var(--accent) 60%, white); }
.hero-text { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero-note { display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }
.hero-note .ic { color: var(--accent); width: 1.05em; }
.badge { display: inline-block; padding: .35rem .8rem; margin-bottom: 1.25rem; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: .84rem; font-weight: 600; }
.theme-dark .badge { background: rgb(255 255 255 / .12); color: #fff; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-showcase .hero-media { margin-top: .5rem; }
.hero-cover { min-height: min(84vh, 760px); display: grid; align-items: center; }
.hero-cover.hero-compact { min-height: 0; }
.hero-cover .hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-cover .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover .hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 72%, transparent) 50%, color-mix(in srgb, var(--dark) 30%, transparent) 100%); }
.hero-cover .hero-text { color: rgb(255 255 255 / .85); }
@media (max-width: 900px) { .hero-split .hero-inner { grid-template-columns: 1fr; } .hero-cover .hero-bg::after { background: color-mix(in srgb, var(--dark) 80%, transparent); } }

/* ---------- page head ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--dark); color: #fff; --ink: #fff; --muted: rgb(255 255 255 / .78); }
.page-head-bg { position: absolute; inset: 0; z-index: -1; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--dark) 20%, transparent); opacity: .7; }
.page-title { max-width: 900px; margin-bottom: .35em; }
.page-head .lead { max-width: 720px; margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- article ---------- */
.article-head { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.article-title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--muted); font-size: .92rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.article-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.article-body > .blk:first-child { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.article-body .blk { padding-block: 1.25rem; }
.article-body .blk-text .prose { font-size: 1.1rem; line-height: 1.75; }
.article-foot { padding-bottom: var(--section); }
.share { display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.share a { font-weight: 600; color: var(--primary); }

/* project */
.project-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; max-width: 760px; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .2); }
.project-meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .35rem; }
.project-meta dd { margin: 0; font-weight: 600; }
.project-cover { margin-top: clamp(2rem, 5vw, 3.5rem); }
.project-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.project-body > .blk:first-child { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- cards ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s; }
.theme-dark .card { background: rgb(255 255 255 / .04); }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-placeholder { display: block; height: 100%; background: var(--tint); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: .84rem; color: var(--muted); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 1.18rem; margin: 0; }
.card-big .card-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.card-excerpt { color: var(--muted); margin: 0; font-size: .96rem; }
.card-more { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; font-weight: 600; color: var(--primary); }
.theme-dark .card-more { color: #fff; }
.card-more .ic { width: 1em; transition: transform .25s var(--ease); }
.card:hover .card-more .ic { transform: translateX(3px); }
.archive-featured { margin-bottom: var(--gap); }

/* ---------- features ---------- */
.feature { position: relative; }
.features-cards .feature { padding: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s var(--ease), border-color .3s; }
.features-cards .feature::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); border-radius: var(--radius) var(--radius) 0 0; }
.features-cards .feature:hover { box-shadow: var(--shadow); border-color: transparent; }
.features-cards .feature:hover::before { transform: scaleX(1); }
.theme-dark .features-cards .feature { background: rgb(255 255 255 / .04); }
.features-plain .feature { padding: .25rem 0; }
.features-numbered .feature { padding-top: 1.5rem; border-top: 2px solid var(--primary); }
.feature-num { display: block; font: 700 .95rem/1 var(--font-heading); color: var(--accent); margin-bottom: 1rem; }
.feature-icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; background: var(--tint); color: var(--primary); }
.feature-icon .ic { width: 1.55rem; height: 1.55rem; stroke-width: 1.75; }
.theme-dark .feature-icon { background: rgb(255 255 255 / .08); color: #fff; }
.feature-media { margin: -2rem -2rem 1.5rem; aspect-ratio: 16 / 10; overflow: hidden; }
.features-plain .feature-media, .features-numbered .feature-media { margin: 0 0 1.25rem; border-radius: var(--radius); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { margin-bottom: .5rem; }
.feature-title a { text-decoration: none; }
.feature-title a::after { content: ""; position: absolute; inset: 0; }
.feature .prose { color: var(--muted); font-size: .97rem; }

/* ---------- bento (kept sober) ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); background: var(--bg); }
.tile-wide { grid-column: span 2; } .tile-tall { grid-row: span 2; } .tile-large { grid-column: span 2; grid-row: span 2; }
.tone-surface { background: var(--surface); border-color: transparent; }
.tone-primary { background: var(--primary); color: var(--primary-ink); border: 0; }
.tone-dark { background: var(--dark); color: #e9eef7; border: 0; }
.tile .prose { color: var(--muted); }
.bento .tone-dark .prose, .bento .tone-primary .prose { color: inherit; opacity: .82; }
.tone-primary .feature-icon, .tone-dark .feature-icon { background: rgb(255 255 255 / .1); color: #fff; }
.tile-title { font-size: 1.3rem; }
.tile-media { margin: 1.5rem -2rem -2rem; flex: 1; min-height: 160px; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile-large { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-wide, .tile-large { grid-column: auto; } .tile-tall { grid-row: auto; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.media-left .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); }
.split-media::after { content: ""; position: absolute; z-index: -1; right: -1.25rem; bottom: -1.25rem; width: 55%; height: 60%; background: var(--tint); border-radius: var(--radius); }
.media-left .split-media::after { right: auto; left: -1.25rem; }
.theme-surface .split-media::after { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.split-copy .prose { color: var(--muted); font-size: 1.06rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; align-items: start; }
.checklist .ic { width: 1.3rem; height: 1.3rem; padding: .22rem; border-radius: 50%; background: var(--primary); color: var(--primary-ink); stroke-width: 3; margin-top: .15rem; }
.theme-dark .checklist .ic { background: #fff; color: var(--dark); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.media-left .split-media { order: 0; } .split-media::after { display: none; } }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); }
.step { position: relative; padding: 2rem 1.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.theme-dark .step { background: rgb(255 255 255 / .04); }
.step-num { display: block; font: 700 2.4rem/1 var(--font-heading); color: var(--accent); margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.step-num::before { content: "0"; }
.step .prose { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.plan.is-hot { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -.8rem; left: 2rem; margin: 0; padding: .25rem .7rem; border-radius: 4px; font-size: .74rem; font-weight: 700; background: var(--primary); color: var(--primary-ink); }
.plan-name { font-size: 1.15rem; margin-bottom: .25rem; }
.plan-desc { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin: .5rem 0 1.5rem; }
.plan-price .amount { font: var(--h-weight) clamp(2.2rem, 3.6vw, 2.8rem)/1 var(--font-heading); letter-spacing: -0.03em; }
.plan-price .period { color: var(--muted); }
.plan .checklist { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.plans-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* ---------- team ---------- */
.team { list-style: none; padding: 0; margin: 0; }
.member { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.theme-surface .member { border-color: transparent; }
.member-photo { aspect-ratio: 6 / 7; overflow: hidden; background: var(--surface); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.03); }
.member > :not(.member-photo) { margin-inline: 1.25rem; }
.member-name { font-size: 1.08rem; margin-top: 1.1rem; margin-bottom: .15rem; }
.member-name a { text-decoration: none; }
.member-role { color: var(--accent); font-size: .88rem; font-weight: 600; margin-bottom: .5rem; }
.member-bio { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }
.member-link { display: inline-flex; color: var(--muted); margin-bottom: 1.1rem; } .member-link:hover { color: var(--primary); }
.member > :last-child { margin-bottom: 1.25rem; }
.avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; font: 700 2.5rem/1 var(--font-heading); color: var(--primary); background: var(--tint); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 2.25rem; padding-bottom: 2.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7rem - 6px); top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.theme-surface .timeline li::before { background: var(--surface); }
.tl-date { font: 700 1.1rem/1.4 var(--font-heading); color: var(--primary); }
.theme-dark .tl-date { color: #fff; }
.tl-title { margin-bottom: .35rem; }
.tl-body .prose { color: var(--muted); }
@media (max-width: 600px) { .timeline::before { left: 6px; } .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; } .timeline li::before { left: 0; } }

/* ---------- comparison ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody th { text-align: left; font-weight: 500; }
.compare thead th { font: 700 1rem/1.3 var(--font-heading); background: var(--surface); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .is-hl { background: var(--tint); }
.compare thead .is-hl { background: var(--primary); color: var(--primary-ink); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; }
.compare .yes .ic { color: var(--accent); stroke-width: 3; }
.compare .no .ic { color: var(--muted); opacity: .5; }

/* ---------- quotes ---------- */
.big-quote { margin: 0; }
.quote-mark { width: 2.5rem; height: 2.5rem; color: var(--accent); margin: 0 auto 1.5rem; }
.big-quote blockquote { margin: 0; }
.big-quote blockquote p { font: 500 clamp(1.4rem, 2.8vw, 2rem)/1.4 var(--font-heading); letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
.big-quote figcaption, .quote figcaption { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: 2rem; text-align: left; }
.big-quote small, .quote small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.big-quote .avatar { width: 60px; height: 60px; }
span.avatar-fallback.avatar { font-size: 1.1rem; }
.quotes { align-items: stretch; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.theme-surface .quote { border-color: transparent; }
.theme-dark .quote { background: rgb(255 255 255 / .04); }
.quote blockquote { margin: 0; font-size: 1.03rem; line-height: 1.65; flex: 1; }
.quote figcaption { justify-content: flex-start; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.stars { margin: 0 0 1rem; letter-spacing: .1em; color: var(--line-strong); }
.stars .on { color: #e8a317; }

/* ---------- CTA band ---------- */
.blk-cta { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-primary { background: var(--primary); color: var(--primary-ink); --ink: var(--primary-ink); --muted: color-mix(in srgb, var(--primary-ink) 80%, transparent); }
.cta-dark { background: var(--dark); color: #fff; --ink: #fff; --muted: rgb(255 255 255 / .78); }
.cta-surface { background: var(--surface); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.cta-copy { max-width: 720px; }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3em; }
.cta-text { color: var(--muted); font-size: 1.08rem; }
.cta-inner .actions { margin-top: 0; }
.cta-primary .eyebrow, .cta-dark .eyebrow { color: rgb(255 255 255 / .75); }
.cta-primary .btn-primary, .cta-dark .btn-primary { background: #fff; color: var(--primary); }
.cta-primary .btn-secondary, .cta-dark .btn-secondary { color: #fff; border-color: rgb(255 255 255 / .45); }

/* ---------- FAQ ---------- */
.faq-layout.has-intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-layout:not(.has-intro) { max-width: 860px; }
.faq-layout:not(.has-intro) .faq-head { text-align: center; margin-bottom: 2.25rem; }
.faq-layout:not(.has-intro) .faq-head .eyebrow::before { display: none; }
.faq-layout.has-intro .faq-head { position: sticky; top: 7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: .75rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--primary); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; background: var(--surface); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] .faq-ic { transform: rotate(45deg); background: var(--primary); color: var(--primary-ink); }
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); }
@media (max-width: 900px) { .faq-layout.has-intro { grid-template-columns: 1fr; } .faq-layout.has-intro .faq-head { position: static; } }

/* ---------- logos ---------- */
.blk-logos { padding-block: clamp(2.25rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.logos-title { text-align: center; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 1.5rem; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .6; transition: .3s; }
.logos a:hover img { filter: none; opacity: 1; }
.wordmark { font: 700 clamp(1.05rem, 1.8vw, 1.3rem)/1 var(--font-heading); letter-spacing: -0.01em; color: var(--muted); opacity: .7; white-space: nowrap; text-transform: uppercase; }
.logos-wrap.is-marquee { display: flex; overflow: hidden; gap: clamp(2rem, 5vw, 4rem); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.is-marquee .logos { flex-wrap: nowrap; flex: none; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-100% - clamp(2rem, 5vw, 4rem))); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin: 0; }
.stats.cols-2 { --cols: 2; } .stats.cols-3 { --cols: 3; } .stats.cols-5 { --cols: 5; }
.stat { padding: .5rem 2rem; border-left: 1px solid var(--line-strong); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { margin: 0; font: var(--h-weight) clamp(2.4rem, 4.6vw, 3.5rem)/1 var(--font-heading); letter-spacing: -0.03em; color: var(--primary); }
.theme-dark .stat-value, .theme-primary .stat-value { color: #fff; }
.stat-label { margin-top: .6rem; color: var(--muted); font-size: .96rem; }
@media (max-width: 800px) { .stats { --cols: 2 !important; row-gap: 2rem; } .stat { padding-left: 0; border-left: 0; } }

/* ---------- gallery / image / video / map ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.blk-image img { width: 100%; border-radius: var(--radius); }
.blk-image .full img { border-radius: 0; }
.blk-image figcaption { color: var(--muted); font-size: .9rem; margin-top: .75rem; text-align: center; }
.video { position: relative; max-width: 1000px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 4.75rem; height: 4.75rem; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 10px 40px rgb(0 0 0 / .35); transition: transform .3s var(--ease); }
.video-play .ic { width: 1.7rem; height: 1.7rem; margin-left: .2rem; fill: currentColor; }
.video-play:hover { transform: scale(1.06); }
.map { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- entries list ---------- */
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list a { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 2rem; align-items: center; padding: 1.5rem 0; text-decoration: none; transition: color .2s; }
.entry-list a:hover { color: var(--accent); }
.el-title { font: var(--h-weight) 1.25rem/1.3 var(--font-heading); }
.el-excerpt { color: var(--muted); }
@media (max-width: 700px) { .entry-list a { grid-template-columns: 1fr auto; } .el-excerpt { display: none; } }

/* ---------- forms ---------- */
.form-split { align-items: start; }
.contact-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.contact-cards li { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.contact-cards .ic { width: 2.6rem; height: 2.6rem; padding: .65rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); }
.contact-cards small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-cards a { font-weight: 600; text-decoration: none; }
.form-card { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
.theme-dark .form-card { background: rgb(255 255 255 / .04); }
.form-card form { display: grid; gap: 1.1rem; }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-card input:not([type=checkbox]):not([type=radio]), .form-card textarea, .form-card select {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) - 2px); transition: border-color .2s, box-shadow .2s; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card button[type=submit], .form-card .btn { width: 100%; }
.form-card button[type=submit]:not(.btn) { min-height: 3.1rem; border: 0; border-radius: var(--btn-radius); background: var(--primary); color: var(--primary-ink); font: 600 1rem/1 var(--font-body); cursor: pointer; }
.form-card button[type=submit]:not(.btn):hover { background: color-mix(in srgb, var(--primary) 85%, black); }

/* ---------- pagination / misc ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3.5rem; }
.pagination a, .pagination span { min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; display: inline-grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.pagination span[aria-current] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); }
.empty { color: var(--muted); text-align: center; padding: 4rem 0; }
.error-block { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.err-code { font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-heading); letter-spacing: -0.05em; margin: 0 0 .5rem; color: var(--primary); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgb(255 255 255 / .72); font-size: .95rem; padding-top: clamp(3.5rem, 7vw, 5rem); }
.site-footer a { color: rgb(255 255 255 / .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1.1fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1.25rem; }
.footer-text { max-width: 340px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col-title { font-weight: 700; margin-bottom: 1.1rem; color: #fff; font-size: .95rem; }
.footer-contact { font-style: normal; display: grid; gap: .8rem; align-content: start; }
.fc-row { display: flex; gap: .7rem; align-items: start; }
.fc-row .ic { width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: color-mix(in srgb, var(--accent) 60%, white); }
.social { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.5rem 0 0; }
.social a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius); background: rgb(255 255 255 / .08); transition: background-color .2s; }
.social a:hover { background: var(--accent); }
.social .ic { width: 1.05rem; height: 1.05rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); font-size: .86rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; }
.legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- reveal (subtle) ---------- */
.js-anim.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js-anim.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim.js [data-reveal] { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 2rem; background: rgb(5 12 25 / .9); cursor: zoom-out; animation: fade .25s; }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--radius); }
@keyframes fade { from { opacity: 0; } }

@media print { .site-header, .site-footer, .announcement { display: none; } .blk { padding-block: 1.5rem; } }
