/* Bright Technologies demo site.
   Scene: a CTO comparing vendors on a large monitor; the site should read like a well-run engineering org.
   Strategy: restrained. Near-black surface (chroma 0), one indigo primary (hue 270) carrying all brand colour.
   Type: Funnel Display for headings, Funnel Sans for body (one designed pair); JetBrains Mono only for code and data.
   Radius system: 10px surfaces, 8px controls, full round only for dots. */

:root {
  color-scheme: dark;
  --bg: oklch(0.11 0 0);
  --bg-2: oklch(0.14 0 0);
  --surface: oklch(0.165 0 0);
  --raised: oklch(0.2 0 0);
  --line: oklch(0.27 0 0);
  --line-soft: oklch(0.21 0 0);
  --ink: oklch(0.975 0 0);
  --fg: oklch(0.86 0 0);
  --muted: oklch(0.7 0 0);
  --primary: oklch(0.72 0.13 270);
  --primary-hover: oklch(0.79 0.11 270);
  --on-primary: oklch(0.15 0.03 270);
  --primary-soft: oklch(0.72 0.13 270 / 0.14);
  --photo-tint: oklch(0.42 0.14 270);
  --code-k: oklch(0.8 0.1 270);
  --code-s: oklch(0.82 0.08 160);
  --code-c: oklch(0.6 0 0);
  --danger: oklch(0.72 0.16 25);
  --shadow: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 24px 60px -24px oklch(0 0 0 / 0.7);

  --display: "Funnel Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --wrap: 1240px;
  --r: 10px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(72px, 10vw, 136px);

  /* z-index scale */
  --z-sticky: 20;
  --z-menu: 30;
  --z-skip: 50;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: oklch(1 0 0);
    --bg-2: oklch(0.975 0 0);
    --surface: oklch(0.985 0 0);
    --raised: oklch(0.95 0 0);
    --line: oklch(0.89 0 0);
    --line-soft: oklch(0.93 0 0);
    --ink: oklch(0.17 0 0);
    --fg: oklch(0.3 0 0);
    --muted: oklch(0.47 0 0);
    --primary: oklch(0.5 0.17 270);
    --primary-hover: oklch(0.43 0.17 270);
    --on-primary: oklch(0.99 0 0);
    --primary-soft: oklch(0.5 0.17 270 / 0.09);
    --photo-tint: oklch(0.5 0.17 270);
    --code-k: oklch(0.8 0.1 270);
    --code-s: oklch(0.82 0.08 160);
    --code-c: oklch(0.62 0 0);
    --danger: oklch(0.52 0.19 28);
    --shadow: 0 1px 2px oklch(0.2 0 0 / 0.06), 0 24px 48px -24px oklch(0.2 0.02 270 / 0.25);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(1 0 0); --bg-2: oklch(0.975 0 0); --surface: oklch(0.985 0 0); --raised: oklch(0.95 0 0);
  --line: oklch(0.89 0 0); --line-soft: oklch(0.93 0 0); --ink: oklch(0.17 0 0); --fg: oklch(0.3 0 0); --muted: oklch(0.47 0 0);
  --primary: oklch(0.5 0.17 270); --primary-hover: oklch(0.43 0.17 270); --on-primary: oklch(0.99 0 0);
  --primary-soft: oklch(0.5 0.17 270 / 0.09); --photo-tint: oklch(0.5 0.17 270); --danger: oklch(0.52 0.19 28);
  --shadow: 0 1px 2px oklch(0.2 0 0 / 0.06), 0 24px 48px -24px oklch(0.2 0.02 270 / 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; line-height: 1.22; letter-spacing: -0.015em; }
p { margin: 0; max-width: 66ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.i { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: var(--on-primary); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: var(--z-skip); background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.86em; }
.kicker { font: 500 0.82rem/1 var(--mono); color: var(--primary); letter-spacing: 0.02em; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; font-weight: 550; font-size: 0.98rem;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .i { transition: transform 0.3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-2); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 550; }
.link .i { color: var(--primary); transition: transform 0.3s var(--ease); }
.link:hover .i { transform: translate(2px, -2px); }

/* header */
.top {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 650 1.2rem var(--display); letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; border-radius: 8px; }
.links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.links a:not(.btn) { padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.links a:not(.btn):hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { background: var(--raised); }
.only-mobile { display: none !important; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn .i { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-flex !important; margin-top: 8px; }
  .links {
    position: absolute; inset: 68px 0 auto 0; z-index: var(--z-menu);
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 24px;
  }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
}

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1s var(--ease) both; }
  .rise.d1 { animation-delay: 0.07s; } .rise.d2 { animation-delay: 0.14s; } .rise.d3 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { transform: translateY(36px); } to { transform: none; } }
  }
}

/* photo treatment: monochrome with a brand tint */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--raised); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.92); transition: transform 1.2s var(--ease), filter 0.6s; }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--photo-tint); mix-blend-mode: color; opacity: 0.35; pointer-events: none; transition: opacity 0.6s; }
a:hover .photo img, .photo.hover:hover img { transform: scale(1.03); }

/* hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, oklch(0.72 0.13 270 / 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* architecture diagram */
.diagram { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: clamp(14px, 2vw, 22px); box-shadow: var(--shadow); }
.diagram::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.55; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.diagram svg { position: relative; width: 100%; height: auto; display: block; }
.diagram .node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; transition: stroke 0.2s, fill 0.2s; }
.diagram .node text { fill: var(--ink); font: 500 13px var(--sans); }
.diagram .node .sub { fill: var(--muted); font: 400 10.5px var(--mono); }
.diagram .node.core rect { stroke: var(--primary); }
.diagram .node:hover rect, .diagram .node:focus rect, .diagram .node.active rect { stroke: var(--primary); fill: var(--raised); }
.diagram .node { cursor: pointer; outline: none; }
.diagram .edge { fill: none; stroke: var(--line); stroke-width: 1.25; }
.diagram .pulse { fill: var(--primary); }
.diagram .caption { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--muted); min-height: 3.2em; }
.diagram .caption b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .diagram .pulse { display: none; } }

/* stack logos */
.logo-svg { width: 22px; height: 22px; fill: currentColor; }
.stackline { border-block: 1px solid var(--line-soft); padding-block: 30px; overflow: hidden; }
.stackline p { text-align: center; margin: 0 auto 22px; color: var(--muted); font-size: 0.95rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 44px; }
.logos .item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.logos .item:hover { color: var(--ink); }

/* service explorer (home) */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; width: 100%;
  padding: 22px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted);
  text-align: left; cursor: pointer; transition: color 0.2s, padding 0.35s var(--ease);
}
.svc-row .t { font: 600 clamp(1.3rem, 2.2vw, 1.75rem)/1.15 var(--display); letter-spacing: -0.025em; }
.svc-row .i { opacity: 0; color: var(--primary); transform: translateX(-6px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.svc-row:hover, .svc-row[aria-selected="true"] { color: var(--ink); padding-left: 12px; }
.svc-row[aria-selected="true"] .i, .svc-row:hover .i { opacity: 1; transform: none; }
.svc-panel { position: sticky; top: 112px; display: grid; gap: 22px; }
.svc-panel .photo { aspect-ratio: 4 / 3; }
.svc-panel .copy { display: grid; gap: 14px; }
.svc-panel .chips { margin-top: 4px; }
.swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .swap { animation: none; } }
@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; }
  .svc-panel { position: static; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 400 0.78rem/1 var(--mono); padding: 7px 10px; border-radius: 6px; background: var(--raised); color: var(--fg); }

/* baseline bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cell { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.cell p { color: var(--muted); font-size: 0.99rem; }
.cell.c-a { grid-column: span 4; }
.cell.c-b { grid-column: span 2; }
.cell.c-c { grid-column: span 2; }
.cell.c-d { grid-column: span 4; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.cell.c-d .body { padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 14px; align-content: end; }
.cell.c-d .photo { border-radius: 0; height: 100%; min-height: 240px; }
.cell.primary { background: var(--primary); border-color: transparent; }
.cell.primary h3, .cell.primary p, .cell.primary li { color: var(--on-primary); }
.cell.primary p { opacity: 0.85; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.98rem; }
.ticks .i { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); }
.cell.primary .ticks .i { color: var(--on-primary); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.c-a, .cell.c-d { grid-column: span 2; }
  .cell.c-b, .cell.c-c { grid-column: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .cell.c-a, .cell.c-b, .cell.c-c, .cell.c-d { grid-column: auto; }
  .cell.c-d { grid-template-columns: 1fr; }
  .cell.c-d .photo { min-height: 200px; }
}

/* code */
.code {
  margin: 0; background: oklch(0.13 0 0); color: oklch(0.9 0 0); border: 1px solid oklch(0.24 0 0);
  border-radius: var(--r-sm); padding: 18px 20px; font: 400 0.84rem/1.75 var(--mono);
  overflow-x: auto; white-space: pre; tab-size: 2;
}
.code .k { color: var(--code-k); } .code .s { color: var(--code-s); } .code .c { color: var(--code-c); }
.code-head { display: flex; justify-content: space-between; font: 400 0.78rem var(--mono); color: var(--muted); margin-bottom: -4px; }

/* process (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 0.85rem var(--mono); color: var(--primary); }
.step .when { font: 400 0.8rem var(--mono); color: var(--muted); }
.step p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 24px 20px 24px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* industry strips */
.strips { display: flex; gap: 10px; height: 460px; }
.strip { position: relative; flex: 1; min-width: 0; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; text-align: left; color: #fff; background: var(--raised); transition: flex 0.7s var(--ease); }
.strip .photo { position: absolute; inset: 0; border-radius: 0; }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.1 0 0 / 0.05) 30%, oklch(0.1 0 0 / 0.86)); }
.strip .cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; display: grid; gap: 8px; }
.strip .h { color: #fff; font: 600 1.12rem/1.2 var(--display); letter-spacing: -0.015em; white-space: nowrap; }
.strip .d { display: block; color: oklch(1 0 0 / 0.84); font-size: 0.96rem; max-height: 0; opacity: 0; overflow: hidden; transition: opacity 0.4s, max-height 0.6s var(--ease); }
.strip.on { flex: 3.4; }
.strip.on .d { max-height: 140px; opacity: 1; }
@media (max-width: 860px) {
  .strips { flex-direction: column; height: auto; }
  .strip { flex: none; height: 104px; transition: height 0.6s var(--ease); }
  .strip.on { height: 300px; flex: none; }
  .strip .h { white-space: normal; }
}

/* article cards */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 28px; }
.post { display: grid; gap: 14px; align-content: start; }
.post .photo { aspect-ratio: 16 / 10; }
.post .meta { font: 400 0.8rem var(--mono); color: var(--muted); }
.post h3 { transition: color 0.2s; }
.post:hover h3 { color: var(--primary); }
.post p { color: var(--muted); font-size: 0.98rem; }

/* closing CTA */
.closer { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--bg-2); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; isolation: isolate; }
.closer::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 140%; background: radial-gradient(closest-side, oklch(0.72 0.13 270 / 0.22), transparent); z-index: -1; }
.closer h2 { max-width: 16ch; }
.closer p { margin-top: 16px; color: var(--muted); }
@media (max-width: 760px) { .closer { grid-template-columns: 1fr; } }

/* page header */
.phead { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.phead .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.phead .photo { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .phead .grid { grid-template-columns: 1fr; } }

/* services page */
.svc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-toc { position: sticky; top: 112px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.svc-toc a { padding: 8px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: 0.95rem; transition: color 0.2s, border-color 0.2s; }
.svc-toc a:hover, .svc-toc a.on { color: var(--ink); border-left-color: var(--primary); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding-block: 56px; border-top: 1px solid var(--line-soft); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc .photo { aspect-ratio: 16 / 10; grid-column: 1 / -1; }
.svc h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } .svc-toc { display: none; } }
@media (max-width: 700px) { .svc { grid-template-columns: 1fr; } }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
thead th { font: 600 1.08rem var(--display); color: var(--ink); background: var(--bg-2); }
tbody th { font-weight: 500; color: var(--muted); width: 22%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--fg); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; color: var(--ink); font-weight: 550; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 0.35s var(--ease); color: var(--muted); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* tabs and filters */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.94rem; font-weight: 500; transition: all 0.2s; }
.tab:hover { color: var(--ink); border-color: var(--muted); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* technologies */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.tcard { background: var(--bg); padding: 26px; display: grid; gap: 14px; align-content: start; transition: background 0.2s; }
.tcard:hover { background: var(--bg-2); }
.tcard .row { display: flex; align-items: center; gap: 12px; }
.tcard .logo-svg { width: 26px; height: 26px; fill: var(--ink); }
.tcard p { color: var(--muted); font-size: 0.96rem; }

/* solutions */
.sol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sol .photo { aspect-ratio: 4 / 3; }
.sol h3 { font-size: 1.2rem; margin-bottom: 14px; }
.engagement { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; background: var(--bg-2); }
@media (max-width: 860px) { .sol { grid-template-columns: 1fr; } }

/* company */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principles > div { padding: 32px 32px 0 0; display: grid; gap: 12px; align-content: start; }
.principles > div + div { padding-left: 32px; border-left: 1px solid var(--line-soft); }
.principles p { color: var(--muted); }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div, .principles > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
}
.pod { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pod > div { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; background: var(--bg); }
.pod .role { font: 600 1.02rem var(--display); color: var(--ink); }
.pod p { font-size: 0.92rem; color: var(--muted); }
.pod .lead { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 960px) { .pod { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pod { grid-template-columns: 1fr; } }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.place { display: grid; gap: 16px; }
.place .photo { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .places { grid-template-columns: 1fr; } }

/* article */
.article { max-width: 720px; margin-inline: auto; }
.article header { display: grid; gap: 18px; margin-bottom: 40px; }
.article .photo { aspect-ratio: 16 / 9; margin-bottom: 48px; }
.prose { font-size: 1.12rem; line-height: 1.75; color: var(--fg); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .code { font-size: 0.86rem; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.back .i { transform: scaleX(-1); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.5vw, 40px); background: var(--bg-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 550; font-size: 0.94rem; color: var(--ink); }
.field .help { font-size: 0.86rem; color: var(--muted); }
.field .err { font-size: 0.88rem; color: var(--danger); }
input, select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 140px; resize: vertical; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--ink); }
.notice .i { color: var(--primary); margin-top: 2px; }
.next { display: grid; gap: 28px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.next li::before { counter-increment: n; content: counter(n); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 500 0.88rem var(--mono); color: var(--primary); }
.next p { color: var(--muted); font-size: 0.97rem; }
.contact-lines { display: grid; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.contact-lines div, .contact-lines a { display: flex; gap: 12px; align-items: center; color: var(--ink); overflow-wrap: anywhere; }
.contact-lines a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact-lines .i { color: var(--primary); }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; gap: 20px; }

/* footer */
.foot { border-top: 1px solid var(--line-soft); margin-top: var(--space-section); padding-block: 64px 32px; color: var(--muted); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid > * { min-width: 0; }
.foot-brand p { margin-top: 16px; max-width: 36ch; }
.foot li { overflow-wrap: anywhere; }
.foot h2 { font: 550 0.92rem var(--sans); color: var(--ink); letter-spacing: 0; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a:hover { color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 0.85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* wordmark */
.brand > span { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub { font-family: var(--sans); font-weight: 400; font-size: 0.86em; color: var(--muted); letter-spacing: -0.01em; }
@media (max-width: 380px) { .nav .brand-sub { display: none; } }
