/* KOI CMS — public site styles. Served at /assets/site/site.css
 * Plain CSS, system fonts, no external requests (the public CSP allows 'self' only). */

:root {
	--ink: #13232c;
	--ink-soft: #33454f;
	--muted: #5d6d76;
	--accent: #e4572e;
	--accent-strong: #c8441e;
	--deep: #0e3a46;
	--deep-2: #0a2a34;
	--tint: #f3f6f7;
	--border: #e2e8ea;
	--bg: #ffffff;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(15, 40, 50, .05), 0 12px 32px rgba(15, 40, 50, .08);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid rgba(228, 87, 46, .45); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.wrap--text { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 1rem; top: 1rem; }
.notice { color: var(--muted); }

/* ---------- Buttons, chips, eyebrows ---------- */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
	font-weight: 650; font-size: .98rem; text-decoration: none; border: 1px solid transparent;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: linear-gradient(180deg, #ee6a42, var(--accent)); color: #fff; box-shadow: 0 8px 22px rgba(228, 87, 46, .35); }
.button--primary:hover { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); }
.button--glass {
	background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.button--glass:hover { background: rgba(255, 255, 255, .24); }

.chip {
	display: inline-block; padding: .2rem .7rem; border-radius: 999px;
	font-size: .76rem; font-weight: 700; letter-spacing: .02em;
	background: rgba(228, 87, 46, .1); color: var(--accent-strong);
}
.chip--light { background: rgba(255, 255, 255, .9); color: var(--accent-strong); }

.eyebrow { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.eyebrow--accent { color: var(--accent); }
.eyebrow--light { color: rgba(255, 255, 255, .75); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--deep-2); color: rgba(255, 255, 255, .8); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__contact { display: flex; gap: 1.5rem; margin: 0; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.lang-switch { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: .78rem; font-weight: 700; }
.lang-switch a, .lang-switch span { display: inline-block; padding: .1rem .6rem; border-radius: 999px; text-decoration: none; color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .2); }
.lang-switch [aria-current] { background: #fff; border-color: #fff; color: var(--deep); }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid rgba(15, 40, 50, .07);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

.brand { display: flex; align-items: center; gap: .85rem; color: inherit; text-decoration: none; min-width: 0; }
.site-logo { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 12px; flex: none; }
.brand__text { display: grid; min-width: 0; line-height: 1.25; }
.brand__name { font-weight: 800; font-size: 1.05rem; color: var(--deep); }
.brand__tagline { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }

.site-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav summary {
	display: block; padding: .55rem .9rem; border-radius: 999px; cursor: pointer;
	color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
	transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav summary:hover { background: var(--tint); color: var(--ink); }
.site-nav [aria-current="page"], .site-nav summary.is-current { color: var(--accent-strong); background: rgba(228, 87, 46, .08); }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 .2rem .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.has-sub { position: relative; }
.has-sub ul {
	position: absolute; top: calc(100% + .5rem); left: 0; min-width: 210px; z-index: 5;
	list-style: none; margin: 0; padding: .4rem; border-radius: 16px;
	background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border: 1px solid var(--border); box-shadow: var(--shadow);
}
.has-sub ul a { border-radius: 10px; }

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(700px 420px at 12% 0%, rgba(228, 87, 46, .38), transparent 65%),
		radial-gradient(800px 520px at 100% 100%, rgba(64, 196, 170, .28), transparent 60%),
		linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
}
.hero::after {
	content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px;
	background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, .08), transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 0 0 1rem; letter-spacing: -.025em; }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 34em; margin: 0 0 2rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }

.hero__feature {
	position: relative; display: block; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none;
	aspect-ratio: 4 / 3; box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
	border: 1px solid rgba(255, 255, 255, .18);
	transition: transform .25s;
}
.hero__feature:hover { transform: translateY(-3px); }
.hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__img--empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1c5664, #0f3440); }
.hero__feature-body {
	position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
	display: grid; gap: .45rem; justify-items: start; padding: 1.1rem 1.25rem; border-radius: 18px;
	background: rgba(10, 30, 38, .45); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .18);
}
.hero__feature-title { font-size: 1.25rem; font-weight: 750; line-height: 1.3; }
.hero__feature time { font-size: .85rem; color: rgba(255, 255, 255, .75); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 1rem; }
.section__head { margin-bottom: 2.25rem; max-width: 720px; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 0; color: var(--deep); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.tile {
	position: relative; display: grid; gap: .55rem; align-content: start; padding: 1.75rem 1.5rem 3.25rem;
	border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
	color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 40, 50, .04);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(228, 87, 46, .35); }
.tile__num { font-size: .85rem; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.tile__title { font-size: 1.25rem; font-weight: 750; color: var(--deep); }
.tile__text { color: var(--muted); font-size: .95rem; }
.tile__more {
	position: absolute; left: 1.5rem; bottom: 1.25rem; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; background: var(--tint); color: var(--deep); font-weight: 700; transition: background .2s, color .2s;
}
.tile:hover .tile__more { background: var(--accent); color: #fff; }

/* News cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.card {
	display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 40, 50, .04);
	transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card__img { transform: scale(1.04); }
.card__img--empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe9ec, #f3f6f7); }
.card__body { padding: 1.2rem 1.35rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.card__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0; font-size: .82rem; color: var(--muted); }
.card__title { margin: 0; font-size: 1.15rem; font-weight: 750; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent-strong); }
.card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact band */
.contact-band {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
	padding: clamp(2rem, 5vw, 3.25rem); border-radius: 28px; color: #fff;
	background:
		radial-gradient(500px 300px at 100% 0%, rgba(228, 87, 46, .45), transparent 70%),
		linear-gradient(135deg, var(--deep), var(--deep-2));
	box-shadow: 0 30px 60px rgba(14, 58, 70, .25);
}
.contact-band__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 .6rem; }
.contact-band__text { margin: 0; color: rgba(255, 255, 255, .8); }
.contact-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Single pages ---------- */
.page-head {
	padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem;
	background:
		radial-gradient(600px 300px at 0% 0%, rgba(228, 87, 46, .09), transparent 70%),
		radial-gradient(600px 300px at 100% 0%, rgba(64, 196, 170, .10), transparent 70%);
}
.page-head__title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; margin: 0 0 .75rem; color: var(--deep); }
.page-head__lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; }
.entry-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.entry-meta a { color: inherit; }

.entry-content { padding-bottom: clamp(3rem, 6vw, 5rem); }
.entry-content > * { margin-top: 0; margin-bottom: 1.35rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.3; margin-top: 2.25rem; color: var(--deep); }
.entry-content figure { margin: 1.75rem 0; }
.entry-content figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; text-align: center; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .35rem; }

/* Content blocks (classes are "koi-block-*" in public output). */
.koi-block-image img { display: block; border-radius: 16px; width: 100%; }
.koi-block-image.aligncenter, .koi-block-image .aligncenter { text-align: center; }
.koi-block-image.aligncenter img { margin: 0 auto; }
.koi-block-quote {
	margin: 2rem 0; padding: 1.4rem 1.6rem; border-radius: 16px; border: 0;
	background: var(--tint); border-left: 4px solid var(--accent);
	font-size: 1.12rem; font-style: italic; color: var(--ink-soft);
}
.koi-block-quote p { margin: 0; }
.koi-block-quote cite { display: block; font-style: normal; color: var(--muted); font-size: .9rem; margin-top: .75rem; font-weight: 600; }
.koi-block-table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.koi-block-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.koi-block-table th, .koi-block-table td { border-bottom: 1px solid var(--border); padding: .75rem 1rem; text-align: left; vertical-align: top; }
.koi-block-table tbody tr:last-child td { border-bottom: 0; }
.koi-block-table thead th { background: var(--tint); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.koi-block-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); padding: 0; }
.koi-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.koi-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.koi-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.koi-block-gallery figure { margin: 0; }
.koi-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.koi-block-gallery > figcaption { grid-column: 1 / -1; }

/* Pagination (archives) */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 .8rem;
	border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--ink-soft); font-weight: 650;
}
.pagination .page-numbers.current { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer__name { color: #fff; font-weight: 800; font-size: 1.15rem; margin: 0 0 .6rem; }
.site-footer__text { margin: 0; max-width: 36em; }
.site-footer__heading { color: #fff; font-weight: 700; margin: 0 0 .6rem; }
.site-contact { font-style: normal; line-height: 1.8; }
.site-contact a { color: inherit; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; font-size: .85rem; }
.site-copy { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
	.hero__grid { grid-template-columns: 1fr; }
	.menu-button {
		display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; cursor: pointer;
		background: var(--tint); flex: none;
	}
	.menu-button span:first-child, .menu-button span:first-child::before, .menu-button span:first-child::after {
		display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--deep); position: relative; content: "";
	}
	.menu-button span:first-child::before { position: absolute; top: -6px; }
	.menu-button span:first-child::after { position: absolute; top: 6px; }
	.menu-toggle:focus-visible + .menu-button { outline: 3px solid rgba(228, 87, 46, .45); }
	.site-header__inner { flex-wrap: wrap; gap: .75rem 1rem; padding-block: .6rem; min-height: 0; }
	.brand { flex: 1 1 0; }
	.site-logo { width: 42px; height: 42px; }
	.site-nav { display: none; flex-basis: 100%; padding-bottom: 1rem; }
	.menu-toggle:checked ~ .site-nav { display: block; }
	.site-nav > ul { flex-direction: column; align-items: stretch; }
	.has-sub ul { position: static; box-shadow: none; border: 0; background: var(--tint); margin-top: .25rem; }
	.brand__tagline { max-width: 60vw; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar__contact span { display: none; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.koi-block-gallery.columns-3, .koi-block-gallery.columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Hero eyebrow carries the tagline: keep it in sentence case. */
.hero .eyebrow { text-transform: none; letter-spacing: .01em; font-size: 1rem; font-weight: 600; color: #ffb59c; }

/* ======================================================================
   Palettes (Site settings → Website appearance). Only tokens change.
   ====================================================================== */
body {
	--hero-a: rgba(228, 87, 46, .38);
	--hero-b: rgba(64, 196, 170, .28);
	--highlight: #ffb59c;
	--btn-a: #ee6a42;
	--btn-b: var(--accent);
	--btn-shadow: rgba(228, 87, 46, .35);
	--tone-1: #e4572e; --tone-2: #0e8a7d; --tone-3: #3b6fd8; --tone-4: #c7881b; --tone-5: #8a4fd6; --tone-6: #d23f6f;
}
body.palette-indigo {
	--ink: #161433;
	--ink-soft: #37355a;
	--muted: #5f5d7e;
	--accent: #7c3aed;
	--accent-strong: #6d28d9;
	--deep: #1e1b4b;
	--deep-2: #0f0c29;
	--tint: #f4f3fb;
	--border: #e5e3f3;
	--hero-a: rgba(124, 58, 237, .55);
	--hero-b: rgba(249, 115, 22, .30);
	--highlight: #fdba74;
	--btn-a: #8b5cf6;
	--btn-b: #6d28d9;
	--btn-shadow: rgba(124, 58, 237, .38);
	--tone-1: #7c3aed; --tone-2: #0ea5e9; --tone-3: #f97316; --tone-4: #10b981; --tone-5: #ec4899; --tone-6: #eab308;
}
body.palette-hutan {
	--accent: #b7791f;
	--accent-strong: #975a16;
	--deep: #14432a;
	--deep-2: #0b2a1a;
	--tint: #f3f7f2;
	--border: #dfe8dc;
	--hero-a: rgba(212, 160, 23, .40);
	--hero-b: rgba(74, 180, 120, .30);
	--highlight: #f6d38a;
	--btn-a: #d69e2e;
	--btn-b: #b7791f;
	--btn-shadow: rgba(183, 121, 31, .35);
	--tone-1: #2f855a; --tone-2: #b7791f; --tone-3: #2b6cb0; --tone-4: #c05621; --tone-5: #6b46c1; --tone-6: #2c7a7b;
}
.button--primary { background: linear-gradient(180deg, var(--btn-a), var(--btn-b)); box-shadow: 0 8px 22px var(--btn-shadow); }
.button--primary:hover { background: linear-gradient(180deg, var(--btn-b), var(--accent-strong)); }
.hero {
	background:
		radial-gradient(700px 420px at 12% 0%, var(--hero-a), transparent 65%),
		radial-gradient(800px 520px at 100% 100%, var(--hero-b), transparent 60%),
		linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
}
.hero .eyebrow { color: var(--highlight); }
.chip { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-strong); }
.site-nav [aria-current="page"], .site-nav summary.is-current { color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 9%, transparent); }
:focus-visible { outline-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- Buttons ---------- */
.button--outline { background: #fff; color: var(--deep); border-color: var(--border); }
.button--outline:hover { border-color: var(--accent); color: var(--accent-strong); }
.button--small { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }
.button .icon { margin-right: .1rem; }
.header-login { flex: none; }
.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar__contact a, .topbar__contact span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { width: 15px; height: 15px; opacity: .8; }

/* ---------- Hero: badge + service panel ---------- */
.hero__badge {
	display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .4rem .95rem;
	border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--highlight);
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero__panel {
	padding: 1.4rem; border-radius: 28px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .35); transform: rotate(-1.5deg);
}
.hero__panel-label { margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.hero__panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.hero__tile {
	display: grid; align-content: space-between; gap: 1.5rem; min-height: 118px; padding: .9rem 1rem; border-radius: 18px;
	color: #fff; text-decoration: none; background: var(--tone); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.hero__tile:hover { transform: translateY(-3px) scale(1.02); }
.hero__tile-kicker { font-size: .72rem; font-weight: 800; opacity: .8; letter-spacing: .08em; }
.hero__tile-title { font-weight: 750; line-height: 1.25; font-size: .98rem; }
.tone-1 { --tone: var(--tone-1); } .tone-2 { --tone: var(--tone-2); } .tone-3 { --tone: var(--tone-3); }
.tone-4 { --tone: var(--tone-4); } .tone-5 { --tone: var(--tone-5); } .tone-6 { --tone: var(--tone-6); }

/* ---------- Section variants ---------- */
.section--compact { padding-block: clamp(2rem, 4vw, 3rem); }
.section--deep {
	color: #fff;
	background:
		radial-gradient(600px 300px at 100% 0%, var(--hero-a), transparent 70%),
		linear-gradient(135deg, var(--deep), var(--deep-2));
}
.section--deep .section__title { color: #fff; }
.section__head--split { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }

/* Feature cards (products, projects) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature {
	position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.75rem 1.6rem 1.5rem;
	border-radius: 22px; background: #fff; border: 1px solid var(--border); color: inherit; text-decoration: none; overflow: hidden;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 40%, #fff)); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 35%, transparent); }
.feature__icon {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: .4rem;
	font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--tone);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--tone) 35%, transparent);
}
.feature__title { font-size: 1.25rem; font-weight: 750; color: var(--deep); }
.feature__text { color: var(--muted); font-size: .96rem; }
.feature__more { margin-top: .4rem; font-weight: 700; color: var(--tone); font-size: .92rem; }

/* Team */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.person { text-align: center; padding: 1.5rem 1rem; border-radius: 22px; background: #fff; border: 1px solid var(--border); }
.person__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 1rem; box-shadow: 0 0 0 5px var(--tint); }
.person__photo--empty { display: grid; place-items: center; background: var(--tint); color: var(--accent); font-size: 2rem; font-weight: 800; }
.person__name { margin: 0; font-size: 1.08rem; color: var(--deep); }
.person__role { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

/* Partner logos */
.logos__label { text-align: center; margin: 0 0 1.4rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.logos__item {
	display: flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; border-radius: 16px;
	background: #fff; border: 1px solid var(--border); font-weight: 650; color: var(--ink-soft); font-size: .92rem;
}
.logos__img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.logos__img--empty { display: grid; place-items: center; background: var(--tint); color: var(--accent); font-weight: 800; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.quote {
	margin: 0; display: grid; gap: 1.25rem; align-content: space-between; padding: 1.75rem; border-radius: 22px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.quote__text { margin: 0; font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.quote__text::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--highlight); margin-bottom: .5rem; }
.quote__by { display: flex; align-items: center; gap: .8rem; }
.quote__by span { display: grid; line-height: 1.35; }
.quote__by span span { color: rgba(255, 255, 255, .65); font-size: .86rem; }
.quote__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__photo--empty { display: grid; place-items: center; background: rgba(255, 255, 255, .15); font-weight: 800; }

/* Subscribe */
.subscribe-band {
	display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
	padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 26px; background: var(--tint); border: 1px solid var(--border);
}
.subscribe-band__title { margin: 0 0 .4rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--deep); }
.subscribe-band__text { margin: 0; color: var(--muted); }
.koi-subscribe__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.koi-subscribe__form input[type="email"] {
	flex: 1 1 220px; min-height: 50px; padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--border);
	font: inherit; background: #fff; color: var(--ink);
}

/* Forms (request form block) */
.koi-form { margin: 2rem 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.koi-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.koi-form__field { display: grid; gap: .4rem; }
.koi-form__field--wide { grid-column: 1 / -1; }
.koi-form__field label { font-weight: 650; font-size: .92rem; color: var(--ink-soft); }
.koi-form__field small, .koi-form__optional { color: var(--muted); font-size: .84rem; font-weight: 400; }
.koi-form__field input, .koi-form__field select, .koi-form__field textarea {
	width: 100%; min-height: 50px; padding: .7rem 1rem; border-radius: 14px; border: 1px solid var(--border);
	font: inherit; color: var(--ink); background: var(--tint); transition: border-color .15s, box-shadow .15s, background .15s;
}
.koi-form__field textarea { resize: vertical; }
.koi-form__field input:focus, .koi-form__field select:focus, .koi-form__field textarea:focus,
.koi-subscribe__form input:focus {
	outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.koi-form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.koi-form__notice { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: 14px; font-weight: 600; }
.koi-form__notice--ok { background: #e7f6ec; color: #166534; }
.koi-form__notice--error { background: #fdecea; color: #a12a20; }
.koi-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.koi-subscribe .koi-form__notice { margin-bottom: .75rem; }

/* Landing pages (products, projects) */
.page-head--landing { padding-bottom: 2.5rem; }
.landing-head { max-width: 900px; text-align: center; }
.landing-head .page-head__lead { max-width: 42em; margin-inline: auto; }
.page-head__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 0; }
.entry-content--landing { max-width: 980px; }
.entry-content--landing > h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 3.5rem; }
.entry-content--landing > h2 + p { text-align: center; color: var(--muted); max-width: 40em; margin-inline: auto; }
.entry-content--landing > ul {
	list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.entry-content--landing > ul > li {
	position: relative; margin: 0; padding: 1.25rem 1.25rem 1.25rem 3.4rem; border-radius: 18px;
	background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 40, 50, .04);
}
.entry-content--landing > ul > li::before {
	content: "✓"; position: absolute; left: 1.1rem; top: 1.15rem; width: 26px; height: 26px; border-radius: 8px;
	display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: #fff; background: var(--accent);
}
.entry-content--landing .koi-block-table { border: 0; overflow: visible; }
.entry-content--landing .koi-block-table table { border-collapse: separate; border-spacing: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content--landing .koi-block-table thead th { background: var(--deep); color: #fff; font-size: .9rem; padding: 1rem 1.2rem; }
.entry-content--landing .koi-block-table td { padding: 1rem 1.2rem; background: #fff; }
.entry-content--landing .koi-block-table tbody tr:nth-child(even) td { background: var(--tint); }
.entry-content--landing .koi-block-table td:first-child { font-weight: 700; color: var(--deep); }
.entry-content--landing .koi-block-quote { text-align: center; border-left: 0; font-size: 1.2rem; }

/* Share */
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share__label { font-weight: 700; margin-right: .25rem; color: var(--ink-soft); }
.share__link { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.share__link:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Footer channels + floating WhatsApp */
.site-footer__channels { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__channels a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; }
.wa-float {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: inline-flex; align-items: center; gap: .5rem;
	padding: .8rem 1.15rem; border-radius: 999px; background: #22c55e; color: #fff; font-weight: 700; text-decoration: none;
	box-shadow: 0 14px 30px rgba(34, 197, 94, .4); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .icon { width: 20px; height: 20px; }

@media (max-width: 980px) {
	.hero__panel { transform: none; }
	.header-login { display: none; }
}
@media (max-width: 760px) {
	.subscribe-band { grid-template-columns: 1fr; }
	.koi-form__grid { grid-template-columns: 1fr; }
	.hero__panel-grid { grid-template-columns: repeat(2, 1fr); }
	.wa-float span { display: none; }
	.wa-float { padding: .85rem; }
}

/* ======================================================================
   Style "Editorial" (Site settings → Style). Experimental: everything below
   is scoped to .style-editorial, so the Modern style is untouched.
   ====================================================================== */
.hero__tile-img, .feature__img, .hero__stats { display: none; }

body.palette-samudra {
	--ink: #0b1b33;
	--ink-soft: #2c3e57;
	--muted: #5b6b80;
	--accent: #0f766e;
	--accent-strong: #115e59;
	--deep: #0b2545;
	--deep-2: #071a33;
	--tint: #f2f6f8;
	--border: #e1e8ee;
	--hero-a: rgba(15, 118, 110, .35);
	--hero-b: rgba(245, 158, 11, .25);
	--highlight: #f59e0b;
	--btn-a: #0f766e;
	--btn-b: #0d5f58;
	--btn-shadow: rgba(15, 118, 110, .28);
	--tone-1: #0f766e; --tone-2: #d97706; --tone-3: #1d4ed8; --tone-4: #be123c; --tone-5: #0369a1; --tone-6: #4d7c0f;
}

body.style-editorial {
	--serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Charter, "Noto Serif", Georgia, serif;
	--radius: 16px;
}
.style-editorial h1, .style-editorial h2, .style-editorial h3,
.style-editorial .brand__name, .style-editorial .feature__title, .style-editorial .tile__title,
.style-editorial .hero__stat dd, .style-editorial .quote__text { font-family: var(--serif); letter-spacing: -.01em; }

/* Header: slim light top bar + floating glass capsule */
.style-editorial .topbar { background: var(--tint); color: var(--muted); border-bottom: 1px solid var(--border); }
.style-editorial .topbar a:hover { color: var(--ink); }
.style-editorial .lang-switch a, .style-editorial .lang-switch span { color: var(--muted); border-color: var(--border); }
.style-editorial .lang-switch [aria-current] { background: var(--deep); border-color: var(--deep); color: #fff; }
.style-editorial .site-header {
	background: transparent; border-bottom: 0; padding-top: .75rem;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.style-editorial .site-header__inner {
	width: calc(100% - 2rem); max-width: 1180px; margin-inline: auto; min-height: 66px; padding: .45rem .55rem .45rem 1.1rem;
	background: rgba(255, 255, 255, .86); border: 1px solid var(--border); border-radius: 20px;
	-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
	box-shadow: 0 10px 30px rgba(11, 27, 51, .08);
}
.style-editorial .brand__name { font-size: 1.15rem; font-weight: 700; color: var(--deep); }
.style-editorial .site-logo { border-radius: 12px; }
.style-editorial .site-nav a, .style-editorial .site-nav summary { border-radius: 10px; }
.style-editorial .site-nav [aria-current="page"], .style-editorial .site-nav summary.is-current {
	background: none; color: var(--deep); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0;
}

/* Buttons: softly squared, solid */
.style-editorial .button { border-radius: 12px; }
.style-editorial .button--primary { background: var(--accent); box-shadow: 0 8px 20px var(--btn-shadow); }
.style-editorial .button--primary:hover { background: var(--accent-strong); }
.style-editorial .hero .button--glass, .style-editorial .button--outline {
	background: #fff; color: var(--deep); border-color: var(--border); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.style-editorial .hero .button--glass:hover { border-color: var(--deep); }

/* Hero: light, dotted paper, image collage, real numbers */
.style-editorial .hero {
	color: var(--ink); margin-top: -82px; padding-top: 82px;
	background:
		radial-gradient(520px 360px at 92% 8%, color-mix(in srgb, var(--highlight) 22%, transparent), transparent 70%),
		radial-gradient(620px 420px at 70% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		radial-gradient(circle at 1px 1px, rgba(11, 27, 51, .09) 1px, transparent 0) 0 0 / 22px 22px,
		#fbfcfd;
}
.style-editorial .hero::after { display: none; }
.style-editorial .hero__badge {
	padding: 0; background: none; border: 0; border-radius: 0; color: var(--accent-strong);
	font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.style-editorial .hero__badge::before { width: 32px; height: 2px; border-radius: 0; background: var(--highlight); box-shadow: none; }
.style-editorial .hero__title { color: var(--deep); font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.05; }
.style-editorial .hero__lead { color: var(--muted); }
.style-editorial .hero__stats {
	display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.style-editorial .hero__stat { display: flex; flex-direction: column-reverse; }
.style-editorial .hero__stat dd { margin: 0; font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--deep); }
.style-editorial .hero__stat dt { margin-top: .35rem; font-size: .85rem; color: var(--muted); }

.style-editorial .hero__panel { padding: 0; background: none; border: 0; box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.style-editorial .hero__panel-label { display: none; }
.style-editorial .hero__panel-grid { gap: 1rem; }
.style-editorial .hero__tile {
	position: relative; display: block; min-height: 0; padding: 0; aspect-ratio: 4 / 3; overflow: hidden;
	background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 18px 40px rgba(11, 27, 51, .12);
}
.style-editorial .hero__tile:nth-child(even) { transform: translateY(2rem); }
.style-editorial .hero__tile:hover { transform: translateY(-4px); }
.style-editorial .hero__tile:nth-child(even):hover { transform: translateY(calc(2rem - 4px)); }
.style-editorial .hero__tile-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.style-editorial .hero__tile-kicker { display: none; }
.style-editorial .hero__tile-title {
	position: absolute; left: .65rem; bottom: .65rem; max-width: calc(100% - 1.3rem);
	padding: .35rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .94); color: var(--deep);
	font-size: .85rem; box-shadow: 0 4px 12px rgba(11, 27, 51, .12);
}
.style-editorial .hero__tile-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--tone); }

/* Sections */
.style-editorial .section__title { color: var(--deep); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.style-editorial .eyebrow--accent { color: var(--accent-strong); }

/* About: editorial numbered columns instead of boxes */
.style-editorial .tile { background: none; border: 0; border-top: 2px solid var(--deep); border-radius: 0; box-shadow: none; padding: 1.25rem .25rem 3.25rem; }
.style-editorial .tile:hover { transform: none; box-shadow: none; border-top-color: var(--accent); }
.style-editorial .tile__num { color: var(--highlight); }
.style-editorial .tile__more { left: .25rem; background: none; border: 1px solid var(--border); }

/* Products/projects: horizontal cards with the product picture */
.style-editorial .features { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.style-editorial .feature {
	grid-template-columns: 42% 1fr; grid-template-rows: auto auto 1fr; gap: .4rem 1.4rem; align-items: start;
	padding: 1rem; border-radius: 22px;
}
.style-editorial .feature::before { display: none; }
.style-editorial .feature__img {
	display: block; grid-row: 1 / span 3; width: 100%; height: 100%; min-height: 190px; object-fit: cover; border-radius: 14px;
}
.style-editorial .feature__icon { display: none; }
.style-editorial .feature__title { margin-top: .4rem; font-weight: 600; font-size: 1.4rem; }
.style-editorial .feature__more { color: var(--accent-strong); align-self: end; }
.style-editorial .features > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Team */
.style-editorial .person { text-align: left; padding: 0; border: 0; background: none; }
.style-editorial .person__photo { width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px; box-shadow: none; margin: 0 0 .9rem; }
.style-editorial .person__name { font-family: var(--serif); font-size: 1.2rem; }

/* Partners */
.style-editorial .logos__item { background: var(--tint); border-color: transparent; }

/* Testimonials: light paper with serif quotes */
.style-editorial .section--deep { background: var(--tint); color: var(--ink); }
.style-editorial .section--deep .section__title { color: var(--deep); }
.style-editorial .section--deep .eyebrow { color: var(--accent-strong); }
.style-editorial .quote { background: #fff; border: 1px solid var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; }
.style-editorial .quote__text { color: var(--ink); font-size: 1.2rem; }
.style-editorial .quote__text::before { color: var(--highlight); font-size: 3.6rem; }
.style-editorial .quote__by span span { color: var(--muted); }
.style-editorial .quote__photo--empty { background: var(--tint); }

/* Articles, subscribe, contact */
.style-editorial .card { border-radius: 18px; box-shadow: none; }
.style-editorial .card:hover { box-shadow: 0 14px 34px rgba(11, 27, 51, .10); }
.style-editorial .subscribe-band { background: #fff; border: 1px solid var(--border); border-left: 0; box-shadow: 0 10px 30px rgba(11, 27, 51, .06); }
.style-editorial .subscribe-band__title { font-family: var(--serif); font-weight: 600; }
.style-editorial .koi-subscribe__form input[type="email"] { border-radius: 12px; }
.style-editorial .contact-band {
	border-radius: 22px;
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 0) 0 0 / 20px 20px,
		linear-gradient(135deg, var(--deep), var(--deep-2));
}
.style-editorial .contact-band__title { font-family: var(--serif); font-weight: 600; }
.style-editorial .page-head__title { font-family: var(--serif); font-weight: 600; }
.style-editorial .entry-content--landing > ul > li::before { border-radius: 50%; }
.style-editorial .entry-content--landing .koi-block-table thead th { background: var(--deep); }
.style-editorial .wa-float { padding: .95rem; border-radius: 50%; }
.style-editorial .wa-float span { display: none; }
.style-editorial .wa-float .icon { width: 24px; height: 24px; }

@media (max-width: 980px) {
	.style-editorial .hero { margin-top: -70px; padding-top: 70px; }
	.style-editorial .hero__tile:nth-child(even) { transform: none; }
	.style-editorial .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.style-editorial .feature { grid-template-columns: 1fr; }
	.style-editorial .feature__img { grid-row: auto; min-height: 160px; }
	.style-editorial .site-header__inner { width: calc(100% - 1rem); }
}

/* ======================================================================
   Dark mode: the visitor picks Light / Dark / System (theme.js sets
   html[data-theme]); without a choice or without JavaScript the operating
   system decides. Only tokens and surfaces change.
   ====================================================================== */
html[data-theme="dark"] body {
	color-scheme: dark;
	--bg: #0b1220;
	--surface: #111a2b;
	--surface-2: #16223a;
	--ink: #e6edf5;
	--ink-soft: #c5d0dd;
	--muted: #93a3b8;
	--tint: #0f1829;
	--border: #22314a;
	--deep: #f1f5f9;                       /* headings (light text on dark) */
	--accent-strong: color-mix(in srgb, var(--accent) 55%, #ffffff);
	--highlight: color-mix(in srgb, var(--btn-a) 30%, #fcd34d);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .35);
	--night: color-mix(in srgb, var(--deep-2) 85%, #000000);
}

html[data-theme="dark"] .skip { background: var(--surface); }
html[data-theme="dark"] .site-header { background: rgba(11, 18, 32, .82); border-bottom-color: var(--border); }
html[data-theme="dark"] .style-editorial .site-header { background: transparent; }
html[data-theme="dark"] .style-editorial .site-header__inner { background: rgba(17, 26, 43, .82); border-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .has-sub ul { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .lang-switch [aria-current], html[data-theme="dark"] .style-editorial .lang-switch [aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .menu-button { background: var(--surface-2); }

html[data-theme="dark"] .hero {
	background:
		radial-gradient(700px 420px at 12% 0%, var(--hero-a), transparent 65%),
		radial-gradient(800px 520px at 100% 100%, var(--hero-b), transparent 60%),
		linear-gradient(135deg, var(--deep-2) 0%, var(--night) 100%);
}
html[data-theme="dark"] .style-editorial .hero {
	background:
		radial-gradient(520px 360px at 92% 8%, color-mix(in srgb, var(--highlight) 14%, transparent), transparent 70%),
		radial-gradient(620px 420px at 70% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 22px 22px,
		var(--bg);
}
html[data-theme="dark"] .style-editorial .hero .button--glass, html[data-theme="dark"] .button--outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
html[data-theme="dark"] .style-editorial .hero__tile { background: var(--surface); border-color: var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .style-editorial .hero__tile-title { background: rgba(11, 18, 32, .9); color: var(--ink); }

html[data-theme="dark"] .tile, html[data-theme="dark"] .card, html[data-theme="dark"] .feature, html[data-theme="dark"] .person, html[data-theme="dark"] .logos__item, html[data-theme="dark"] .koi-form,
html[data-theme="dark"] .style-editorial .quote, html[data-theme="dark"] .style-editorial .subscribe-band, html[data-theme="dark"] .entry-content--landing > ul > li { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .style-editorial .tile, html[data-theme="dark"] .style-editorial .person { background: none; }
html[data-theme="dark"] .style-editorial .tile { border-top-color: var(--deep); }
html[data-theme="dark"] .style-editorial .logos__item { background: var(--surface-2); }
html[data-theme="dark"] .card__img--empty, html[data-theme="dark"] .hero__img--empty { background: var(--surface-2); }
html[data-theme="dark"] .section--deep { background: linear-gradient(135deg, var(--deep-2), var(--night)); }
html[data-theme="dark"] .style-editorial .section--deep { background: var(--tint); }
html[data-theme="dark"] .contact-band { background: radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), linear-gradient(135deg, var(--surface-2), var(--night)); border: 1px solid var(--border); }
html[data-theme="dark"] .style-editorial .contact-band { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 20px 20px, linear-gradient(135deg, var(--surface-2), var(--night)); }

html[data-theme="dark"] .koi-form__field input, html[data-theme="dark"] .koi-form__field select, html[data-theme="dark"] .koi-form__field textarea { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
html[data-theme="dark"] .koi-form__field input:focus, html[data-theme="dark"] .koi-form__field select:focus, html[data-theme="dark"] .koi-form__field textarea:focus, html[data-theme="dark"] .koi-subscribe__form input:focus { background: var(--surface); }
html[data-theme="dark"] .koi-subscribe__form input[type="email"] { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
html[data-theme="dark"] .koi-form__notice--ok { background: rgba(34, 197, 94, .14); color: #86efac; }
html[data-theme="dark"] .koi-form__notice--error { background: rgba(239, 68, 68, .14); color: #fca5a5; }

html[data-theme="dark"] .entry-content--landing .koi-block-table thead th, html[data-theme="dark"] .style-editorial .entry-content--landing .koi-block-table thead th { background: var(--surface-2); color: var(--ink); }
html[data-theme="dark"] .entry-content--landing .koi-block-table td { background: var(--surface); }
html[data-theme="dark"] .entry-content--landing .koi-block-table tbody tr:nth-child(even) td { background: var(--tint); }
html[data-theme="dark"] .koi-block-table thead th { background: var(--surface-2); }
html[data-theme="dark"] .pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); }
html[data-theme="dark"] .site-footer { background: var(--night); border-top: 1px solid var(--border); }
html[data-theme="dark"] img { filter: brightness(.94); }
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) body {
		color-scheme: dark;
		--bg: #0b1220;
		--surface: #111a2b;
		--surface-2: #16223a;
		--ink: #e6edf5;
		--ink-soft: #c5d0dd;
		--muted: #93a3b8;
		--tint: #0f1829;
		--border: #22314a;
		--deep: #f1f5f9;                       /* headings (light text on dark) */
		--accent-strong: color-mix(in srgb, var(--accent) 55%, #ffffff);
		--highlight: color-mix(in srgb, var(--btn-a) 30%, #fcd34d);
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .35);
		--night: color-mix(in srgb, var(--deep-2) 85%, #000000);
	}

	html:not([data-theme="light"]) .skip { background: var(--surface); }
	html:not([data-theme="light"]) .site-header { background: rgba(11, 18, 32, .82); border-bottom-color: var(--border); }
	html:not([data-theme="light"]) .style-editorial .site-header { background: transparent; }
	html:not([data-theme="light"]) .style-editorial .site-header__inner { background: rgba(17, 26, 43, .82); border-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
	html:not([data-theme="light"]) .has-sub ul { background: var(--surface); border-color: var(--border); }
	html:not([data-theme="light"]) .lang-switch [aria-current], html:not([data-theme="light"]) .style-editorial .lang-switch [aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
	html:not([data-theme="light"]) .menu-button { background: var(--surface-2); }

	html:not([data-theme="light"]) .hero {
		background:
			radial-gradient(700px 420px at 12% 0%, var(--hero-a), transparent 65%),
			radial-gradient(800px 520px at 100% 100%, var(--hero-b), transparent 60%),
			linear-gradient(135deg, var(--deep-2) 0%, var(--night) 100%);
	}
	html:not([data-theme="light"]) .style-editorial .hero {
		background:
			radial-gradient(520px 360px at 92% 8%, color-mix(in srgb, var(--highlight) 14%, transparent), transparent 70%),
			radial-gradient(620px 420px at 70% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
			radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 22px 22px,
			var(--bg);
	}
	html:not([data-theme="light"]) .style-editorial .hero .button--glass, html:not([data-theme="light"]) .button--outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
	html:not([data-theme="light"]) .style-editorial .hero__tile { background: var(--surface); border-color: var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
	html:not([data-theme="light"]) .style-editorial .hero__tile-title { background: rgba(11, 18, 32, .9); color: var(--ink); }

	html:not([data-theme="light"]) .tile, html:not([data-theme="light"]) .card, html:not([data-theme="light"]) .feature, html:not([data-theme="light"]) .person, html:not([data-theme="light"]) .logos__item, html:not([data-theme="light"]) .koi-form,
	html:not([data-theme="light"]) .style-editorial .quote, html:not([data-theme="light"]) .style-editorial .subscribe-band, html:not([data-theme="light"]) .entry-content--landing > ul > li { background: var(--surface); border-color: var(--border); }
	html:not([data-theme="light"]) .style-editorial .tile, html:not([data-theme="light"]) .style-editorial .person { background: none; }
	html:not([data-theme="light"]) .style-editorial .tile { border-top-color: var(--deep); }
	html:not([data-theme="light"]) .style-editorial .logos__item { background: var(--surface-2); }
	html:not([data-theme="light"]) .card__img--empty, html:not([data-theme="light"]) .hero__img--empty { background: var(--surface-2); }
	html:not([data-theme="light"]) .section--deep { background: linear-gradient(135deg, var(--deep-2), var(--night)); }
	html:not([data-theme="light"]) .style-editorial .section--deep { background: var(--tint); }
	html:not([data-theme="light"]) .contact-band { background: radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), linear-gradient(135deg, var(--surface-2), var(--night)); border: 1px solid var(--border); }
	html:not([data-theme="light"]) .style-editorial .contact-band { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 20px 20px, linear-gradient(135deg, var(--surface-2), var(--night)); }

	html:not([data-theme="light"]) .koi-form__field input, html:not([data-theme="light"]) .koi-form__field select, html:not([data-theme="light"]) .koi-form__field textarea { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
	html:not([data-theme="light"]) .koi-form__field input:focus, html:not([data-theme="light"]) .koi-form__field select:focus, html:not([data-theme="light"]) .koi-form__field textarea:focus, html:not([data-theme="light"]) .koi-subscribe__form input:focus { background: var(--surface); }
	html:not([data-theme="light"]) .koi-subscribe__form input[type="email"] { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
	html:not([data-theme="light"]) .koi-form__notice--ok { background: rgba(34, 197, 94, .14); color: #86efac; }
	html:not([data-theme="light"]) .koi-form__notice--error { background: rgba(239, 68, 68, .14); color: #fca5a5; }

	html:not([data-theme="light"]) .entry-content--landing .koi-block-table thead th, html:not([data-theme="light"]) .style-editorial .entry-content--landing .koi-block-table thead th { background: var(--surface-2); color: var(--ink); }
	html:not([data-theme="light"]) .entry-content--landing .koi-block-table td { background: var(--surface); }
	html:not([data-theme="light"]) .entry-content--landing .koi-block-table tbody tr:nth-child(even) td { background: var(--tint); }
	html:not([data-theme="light"]) .koi-block-table thead th { background: var(--surface-2); }
	html:not([data-theme="light"]) .pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); }
	html:not([data-theme="light"]) .site-footer { background: var(--night); border-top: 1px solid var(--border); }
	html:not([data-theme="light"]) img { filter: brightness(.94); }

}

/* Light / Dark / System switch (shown only when JavaScript runs) */
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--border); }
.theme-switch[hidden] { display: none; }
.theme-switch button {
	display: grid; place-items: center; width: 28px; height: 24px; padding: 0; border: 0; border-radius: 999px;
	background: none; color: inherit; cursor: pointer; opacity: .7;
}
.theme-switch button:hover { opacity: 1; }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; opacity: 1; }
.theme-switch .icon { width: 15px; height: 15px; }
.topbar__tools { display: flex; align-items: center; gap: .6rem; }
.topbar .theme-switch { border-color: rgba(255, 255, 255, .2); }
.style-editorial .topbar .theme-switch { border-color: var(--border); }

/* ======================================================================
   Editorial: section rhythm. Front-page sections alternate between the page
   colour and a tinted band (with hairlines), and testimonials sit on a deep
   band, so each part reads as its own block in light and dark mode.
   ====================================================================== */
body.style-editorial {
	--band: color-mix(in srgb, var(--accent) 7%, #f1f5f8);
	--band-line: color-mix(in srgb, var(--accent) 16%, #dde5ec);
}
html[data-theme="dark"] body.style-editorial { --band: #111d33; --band-line: #213152; }
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) body.style-editorial { --band: #111d33; --band-line: #213152; }
}

:is(html) body.style-editorial main > section.section { background: var(--bg); }
:is(html) body.style-editorial main > section.section:nth-of-type(even) {
	background: var(--band); border-block: 1px solid var(--band-line);
}
/* Cards on a band get a white (or raised dark) surface so they float. */
:is(html) body.style-editorial main > section.section:nth-of-type(even) :is(.feature, .card, .quote, .subscribe-band) { box-shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 10px 26px rgba(11, 27, 51, .06); }
:is(html) body.style-editorial main > section.section:nth-of-type(even) .logos__item { background: var(--bg); border: 1px solid var(--band-line); }

/* Testimonials: deep band in both modes */
:is(html) body.style-editorial main > section.section.section--deep {
	color: #fff; border: 0;
	background:
		radial-gradient(640px 340px at 88% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
		radial-gradient(520px 300px at 0% 100%, color-mix(in srgb, var(--highlight) 16%, transparent), transparent 70%),
		linear-gradient(135deg, #0b2545, #06142a);
}
:is(html) body.style-editorial .section.section--deep .section__title { color: #fff; }
:is(html) body.style-editorial .section.section--deep .eyebrow { color: color-mix(in srgb, var(--accent) 45%, #ffffff); }
:is(html) body.style-editorial .section.section--deep .quote {
	background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
:is(html) body.style-editorial .section.section--deep .quote__text { color: rgba(255, 255, 255, .92); }
:is(html) body.style-editorial .section.section--deep .quote__by strong { color: #fff; }
:is(html) body.style-editorial .section.section--deep .quote__by span span { color: rgba(255, 255, 255, .62); }

/* Hero ends with a clear edge */
:is(html) body.style-editorial .hero { border-bottom: 1px solid var(--band-line); }
