/* kaotechnologies.net: one stylesheet for every page. Two self-hosted open-source fonts (Sora, Inter; licences in /fonts/LICENSES.txt); nothing is loaded from another site. */

/* ---------- fonts ---------- */
/* The real fonts, served from this site. font-display: swap shows text at once in the fallback and swaps when the font arrives. */
@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Fallbacks tuned to the real fonts' widths and line metrics (computed from the font files against Arial), so the swap does not move the page. */
@font-face { font-family: "Sora Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); font-weight: 100 599; size-adjust: 112.2%; ascent-override: 86.45%; descent-override: 25.85%; line-gap-override: 0%; }
@font-face { font-family: "Sora Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"); font-weight: 600 900; size-adjust: 106.79%; ascent-override: 90.83%; descent-override: 27.16%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); font-weight: 100 599; size-adjust: 106.08%; ascent-override: 91.32%; descent-override: 22.74%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"); font-weight: 600 900; size-adjust: 100.88%; ascent-override: 96.03%; descent-override: 23.91%; line-gap-override: 0%; }

/* ---------- design tokens ---------- */
:root {
  color-scheme: dark;
  --bg-0: #0b0f14;
  --bg-1: #101827;
  --bg-2: #172233;
  --surface-1: #131d2b;
  --surface-2: #1b293b;
  --text: #f5f7fa;
  --text-2: #c5cfda;
  --muted: #97a6ba;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  /* lighter tints of the three accents, for TEXT on dark surfaces (the base colours are for fills and lines) */
  --blue-ink: #86b6ff;
  --cyan-ink: #5fd8ee;
  --violet-ink: #bda9ff;
  --line: rgba(197, 207, 218, 0.14);
  --line-strong: rgba(197, 207, 218, 0.3);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Sora Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --acc: var(--blue);
  --acc-ink: var(--blue-ink);
  --acc2: var(--cyan);
}
.accent-blue   { --acc: var(--blue);   --acc-ink: var(--blue-ink);   --acc2: var(--cyan); }
.accent-violet { --acc: var(--violet); --acc-ink: var(--violet-ink); --acc2: var(--blue); }
.accent-cyan   { --acc: var(--cyan);   --acc-ink: var(--cyan-ink);   --acc2: var(--blue); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg-0); color: var(--text-2);
  font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* soft atmospheric light, fixed behind everything (a pseudo-element, so no repaint on scroll) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 86% -8%, rgba(59, 130, 246, 0.2), transparent 62%),
    radial-gradient(760px 520px at -4% 6%, rgba(139, 92, 246, 0.14), transparent 62%),
    radial-gradient(700px 480px at 50% 108%, rgba(6, 182, 212, 0.09), transparent 62%);
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-ink); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.ext { font-size: 0.9em; opacity: 0.85; margin-left: 0.2em; }

/* ---------- header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 20, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11, 15, 20, 0.92); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: 0.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 750; }
.brand span span { font-weight: 400; color: var(--text-2); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text-2);
  text-decoration: none; font-size: 0.98rem; font-weight: 500; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: var(--text); background: rgba(197, 207, 218, 0.06); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current] { color: var(--text); }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong);
  background: rgba(197, 207, 218, 0.05); color: var(--text); border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-basis: 100%; padding-bottom: 12px; }
  .js .site-nav.open { display: block; animation: menu-in 0.3s var(--ease); }
  .js .site-nav ul { flex-direction: column; gap: 4px; }
  .js .site-nav a { width: 100%; background: rgba(197, 207, 218, 0.04); }
  .js .site-nav a::after { left: 14px; right: auto; width: 28px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(197, 207, 218, 0.06); color: var(--text); font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: transform 0.15s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg) translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { animation: sweep 0.7s var(--ease); }
.btn:hover { color: var(--text); border-color: var(--acc-ink); background: rgba(197, 207, 218, 0.1); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #ffffff; border-color: transparent; background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}
.btn-primary:hover { color: #ffffff; background: linear-gradient(135deg, #1d4ed8, #6d28d9); box-shadow: 0 14px 34px rgba(99, 102, 241, 0.4); border-color: transparent; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn-cyan { color: #03232a; border-color: transparent; background: linear-gradient(135deg, var(--cyan), #5fd8ee); box-shadow: 0 10px 28px rgba(6, 182, 212, 0.25); }
.btn-cyan:hover { color: #03232a; background: linear-gradient(135deg, #22cde6, #86e6f6); border-color: transparent; }
@keyframes sweep { to { transform: skewX(-20deg) translateX(420%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(44px, 7vw, 84px); position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(16, 24, 39, 0.7), rgba(16, 24, 39, 0.25)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin: 14px 0 0; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--text-2); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.6; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 48px); overflow: hidden; }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: 50%; top: -35vmax; margin-left: -10vmax; pointer-events: none; opacity: 0.55;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1) 55%, transparent 72%); animation: atmosphere 26s ease-in-out infinite alternate;
}
@keyframes atmosphere { from { transform: translate3d(-6%, 0, 0) scale(1); } to { transform: translate3d(8%, 6%, 0) scale(1.12); } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 .grad { background: linear-gradient(100deg, var(--text) 10%, var(--cyan-ink) 55%, var(--violet-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; }
.hero-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(197, 207, 218, 0.04);
  color: var(--text-2); text-decoration: none; font-size: 0.95rem; transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.hero-jump a:hover { color: var(--text); border-color: var(--line-strong); background: rgba(197, 207, 218, 0.09); }
.hero-jump i { width: 9px; height: 9px; border-radius: 50%; margin-right: 10px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.hero-art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art-inner { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 0.5s var(--ease); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
/* hero artwork motion: slow, transform/opacity only */
.art-flow { stroke-dasharray: 5 15; animation: dash 7s linear infinite; }
.art-flow.slow { animation-duration: 11s; }
.art-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4.2s ease-in-out infinite; }
.art-float { animation: floaty 7s ease-in-out infinite; }
.art-float.b { animation-delay: -2.4s; animation-duration: 8.5s; }
.art-float.c { animation-delay: -4.6s; animation-duration: 7.6s; }
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- business and product cards ---------- */
.biz-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.biz {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.biz::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0.35; transition: opacity 0.35s;
  background: linear-gradient(135deg, var(--acc), transparent 42%, var(--acc2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.biz:hover, .biz:focus-within { transform: translateY(-6px) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.biz:hover::before, .biz:focus-within::before { opacity: 1; }
.biz-visual { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-1); }
.biz-visual > img:not(.logo), .biz-visual > svg { width: 100%; height: 100%; object-fit: cover; }
.biz-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(19, 29, 43, 0.85)); }
.biz-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.biz-cat { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc-ink); }
.biz h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.biz p.desc { margin: 12px 0 0; color: var(--text-2); }
.biz .status-line { margin: 14px 0 0; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.biz-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.biz-more { margin: 14px 0 0; font-size: 0.95rem; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 14px; line-height: 1.35; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--text); background: rgba(197, 207, 218, 0.06); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.status-soon { border-color: rgba(6, 182, 212, 0.45); background: rgba(6, 182, 212, 0.1); }
.status-live::before { background: #34d399; box-shadow: 0 0 10px #34d399; }
/* the built-in artwork for each card */
.art-kaotech { background: radial-gradient(120% 90% at 20% 0%, #14233f, #0b0f14); }
.hero .biz-visual { border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); aspect-ratio: 16 / 11; }
.hero .biz-visual::after { border-radius: inherit; }
.art-kaotech .logo { position: absolute; left: 6%; top: 9%; width: 62%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); }
.art-kaotech svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-noteadapt { background: linear-gradient(160deg, #f7f5ff, #e8e4ff); display: grid; place-items: center; align-content: center; gap: 14px; padding: 16px; }
.art-noteadapt::after { background: linear-gradient(180deg, transparent 62%, rgba(19, 29, 43, 0.55)); }
.art-noteadapt .logo { width: min(64%, 260px); height: auto; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; max-width: 340px; }
.chips li { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; color: #12121a; }
.p0 { background: #d42b12; color: #fff !important; } .p1 { background: #fa6d1e; } .p2 { background: #f29605; } .p3 { background: #ffbe01; }
.p4 { background: #fffe03; } .p5 { background: #95cf54; } .p6 { background: #00b150; } .p7 { background: #10a192; }
.p8 { background: #1a46d2; color: #fff !important; } .p9 { background: #7701f3; color: #fff !important; } .p10 { background: #ae5eff; } .p11 { background: #cd00ce; color: #fff !important; }
.art-itdefense { background: #050912; }
.art-itdefense img { object-position: 50% 40%; }
.art-itdefense .status { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(5, 9, 18, 0.78); }

/* ---------- visitor pathways ---------- */
.paths { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); list-style: none; }
.path {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-1);
  color: var(--text-2); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.path:hover { transform: translateY(-4px); border-color: var(--acc); background: var(--surface-2); color: var(--text-2); }
.path .q { font-weight: 650; color: var(--text); font-size: 1.05rem; line-height: 1.3; }
.path .to { margin-top: auto; padding-top: 10px; color: var(--acc-ink); font-weight: 650; font-size: 0.95rem; }

/* ---------- generic content blocks ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.wide-left { grid-template-columns: 1.2fr 0.8fr; } }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; }
.feature { padding: 22px; border-radius: var(--radius-sm); background: var(--surface-1); border: 1px solid var(--line); height: 100%; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.99rem; }
.feature .dot { display: block; width: 34px; height: 4px; border-radius: 4px; margin-bottom: 16px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { counter-increment: s; padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-1); }
.step::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; font-size: 1.25rem; font-weight: 800; color: #0b0f14; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.98rem; }
.panel { border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface-1)); padding: clamp(22px, 3.5vw, 36px); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) translateY(-30%); }
.cta-band { text-align: center; padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line-strong); background: radial-gradient(120% 140% at 50% 0%, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1) 50%, var(--surface-1)); }
.cta-band p { max-width: 56ch; margin: 14px auto 0; font-size: 1.1rem; }
.cta-band .actions { justify-content: center; }
.sub-head { margin: 48px 0 18px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.values { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ---------- KaoTech page ---------- */
.kinds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; }

/* ---------- NoteAdapt page: lighter and friendlier ---------- */
.theme-na { --acc: var(--violet); --acc-ink: var(--violet-ink); --acc2: var(--blue); }
.na-hero-visual { border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #f8f6ff, #e6e1ff); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; justify-items: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.na-hero-visual .logo { width: min(78%, 360px); height: auto; border-radius: 10px; }
.na-hero-visual .chips { max-width: 440px; gap: 8px; }
.na-hero-visual .chips li { width: 34px; height: 34px; font-size: 0.85rem; }
.na-hero-visual .caption { margin: 0; color: #3a3556; font-size: 0.92rem; text-align: center; }
.na-note { font-size: 0.95rem; color: var(--muted); }
.label-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 14px; }
.label-row li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(139, 92, 246, 0.1); color: var(--text); font-size: 0.92rem; }
.instruments { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.instruments li { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-1); }
.instruments strong { display: block; color: var(--text); margin-bottom: 4px; }
.instruments span { color: var(--muted); font-size: 0.93rem; }

/* ---------- IT Defense: the one cinematic page ---------- */
.theme-itd { --acc: var(--cyan); --acc-ink: var(--cyan-ink); --acc2: var(--blue); }
.theme-itd body::before, body.theme-itd::before {
  background:
    radial-gradient(900px 560px at 85% -6%, rgba(6, 182, 212, 0.22), transparent 62%),
    radial-gradient(800px 520px at 0% 8%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(700px 480px at 50% 108%, rgba(139, 92, 246, 0.12), transparent 62%);
}
.itd-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 8vw, 100px) clamp(40px, 6vw, 72px); }
.itd-hero canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.itd-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .itd-hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 52px; } }
.itd-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.itd-logo img { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 0 34px rgba(6, 182, 212, 0.35); }
.itd-logo .word { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.06em; color: var(--text); line-height: 1; }
.itd-logo .word small { display: block; margin-top: 8px; font-size: 0.78rem; letter-spacing: 0.3em; font-weight: 600; color: var(--cyan-ink); }
.itd-shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(6, 182, 212, 0.4); box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.12), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(6, 182, 212, 0.18); background: #050912; }
.itd-shot img { width: 100%; height: auto; }
.itd-shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(95, 216, 238, 0.95) 50%, transparent 70%) 0 0 / 250% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: edge 6s linear infinite;
}
@keyframes edge { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.facts li { padding: 14px 10px; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(19, 29, 43, 0.7); }
.facts b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--text); line-height: 1.1; }
.facts span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 480px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.defenders { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1000px) { .defenders .def:last-child { grid-column: span 2; } }
.def { position: relative; height: 100%; padding: 22px; border-radius: var(--radius-sm); background: var(--surface-1); border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; }
.def::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); box-shadow: 0 0 18px var(--tone); }
.def:hover { transform: translateY(-4px); border-color: var(--tone); }
.def .role { margin: 0 0 4px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone); }
.def h3 { margin-bottom: 4px; }
.def .ability { margin: 0 0 10px; color: var(--text); font-weight: 600; font-size: 0.96rem; }
.def p.text { margin: 0; font-size: 0.97rem; }
.tone-blue { --tone: #6aa2ff; } .tone-green { --tone: #3ddc97; } .tone-pink { --tone: #ff6fb5; } .tone-cyan { --tone: #38d9f2; }
.tone-violet { --tone: #b18cff; } .tone-orange { --tone: #ff8a4c; } .tone-gold { --tone: #ffc94d; }
.threats { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.threat { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface-1); border: 1px solid var(--line); }
.threat .when { margin: 0 0 4px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.threat h3 { font-size: 1.08rem; margin-bottom: 6px; }
.threat p { margin: 0; font-size: 0.97rem; }
.threat .counter { margin-top: 8px; color: var(--text); }
.threat .counter b { color: #5fe0a8; font-weight: 700; }
.bosses { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bosses li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 111, 111, 0.4); background: rgba(255, 90, 90, 0.08); color: var(--text); font-size: 0.93rem; }
.bosses li span { color: #ff9d9d; margin-left: 8px; font-size: 0.8rem; font-weight: 700; }
.gallery { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery li:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .gallery li:first-child { grid-column: span 2; } }
.shot { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #050912; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.shot:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 0 36px rgba(6, 182, 212, 0.25); }
.shot img { width: 100%; height: auto; }
.shot figcaption, .shot .cap { padding: 10px 14px; font-size: 0.9rem; color: var(--text-2); background: rgba(5, 9, 18, 0.92); }
.gallery figure { margin: 0; }
.platforms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; }
.platform { padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-1); }
.platform h3 { margin-bottom: 10px; }
.platform .state { margin: 0 0 6px; color: var(--text); font-weight: 600; }
.platform .note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.news { list-style: none; display: grid; gap: 14px; }
.news li { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-1); }
.news time { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.itd-links { display: flex; flex-wrap: wrap; gap: 12px; }
/* lightbox (opened by site.js; without JS the thumbnails are plain links to the full image) */
dialog.lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: #050912; color: var(--text-2); overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(3, 6, 12, 0.88); }
dialog.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; background: #000; }
dialog.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
dialog.lightbox .lb-cap { margin: 0; font-size: 0.95rem; flex: 1 1 260px; }
dialog.lightbox .lb-btns { display: flex; gap: 8px; }

/* ---------- long-form text pages (privacy, support, about, contact) ---------- */
.prose-wrap { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 100px); }
.prose-wrap .crumbs { max-width: 800px; margin-inline: auto; }
.prose { max-width: 800px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, var(--surface-1), rgba(19, 29, 43, 0.6)); }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0.2em 0 0.2em; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 2em 0 0.5em; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0.6em 0; }
.prose li { margin: 0.4em 0; }
.prose .updated { color: var(--muted); font-size: 0.95rem; margin-top: 0; }
.prose .short { background: rgba(6, 182, 212, 0.07); border: 1px solid rgba(6, 182, 212, 0.25); border-radius: var(--radius-sm); padding: 6px 20px 12px; margin: 22px 0 6px; }
.prose .short h2 { margin-top: 0.8em; }

/* ---------- contact ---------- */
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-row { display: grid; gap: 14px; align-items: center; padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-1); transition: border-color 0.25s, transform 0.25s var(--ease); }
.contact-row:hover { border-color: var(--acc); transform: translateY(-2px); }
.contact-row h3 { font-size: 1.12rem; }
.contact-row p { margin: 4px 0 0; color: var(--text-2); font-size: 0.97rem; }
.contact-row .btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 820px) { .contact-row { grid-template-columns: 1fr auto; } }
.mailbox { display: inline-block; font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.8rem); color: var(--text); font-weight: 650; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(11, 15, 20, 0.7); padding-block: 48px 36px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.footer-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }
.footer-base p { margin: 0; }

/* ---------- scroll reveals (only when JavaScript has marked the page, so nothing is ever hidden without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.24s; }

/* ---------- people who ask for less motion, and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .biz, .biz:hover, .biz:focus-within { transform: none; }
  .itd-hero canvas.fx { display: none; }
}
@media (max-width: 640px) { .itd-hero canvas.fx { opacity: 0.55; } }
@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .itd-hero canvas.fx, .nav-toggle { display: none !important; }
  .prose { border: 0; background: none; padding: 0; color: #000; }
  .prose h1, .prose h2 { color: #000; }
  a { color: #000; }
}
