/* jungroo.com, design B "Perimeter". Dark first, with a light mode.
   Layout: full-width bands of square-cornered panels; the four layers inside a dashed "your servers" line is the main picture. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/schibsted-grotesk-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  --bg: #090e1a; --band: #0d1424; --panel: #111a2e; --line: #24324d; --ink: #e8eef9; --muted: #93a1bb;
  --accent: #6a90ff; --btn: #3066f8; --on-btn: #ffffff; --glow: rgba(106, 144, 255, .12); --edge: #6a90ff;
  --scrim: rgba(3, 6, 14, .72); --logo-filter: none;
  --f-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f3f5fa; --band: #e8ecf4; --panel: #ffffff; --line: #ccd5e5; --ink: #0b1428; --muted: #4c5a73;
  --accent: #2556e8; --btn: #2556e8; --on-btn: #ffffff; --glow: rgba(37, 86, 232, .07); --edge: #2556e8;
  --scrim: rgba(11, 20, 40, .45); --logo-filter: invert(1) hue-rotate(180deg); color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #f3f5fa; --band: #e8ecf4; --panel: #ffffff; --line: #ccd5e5; --ink: #0b1428; --muted: #4c5a73;
  --accent: #2556e8; --btn: #2556e8; --on-btn: #ffffff; --glow: rgba(37, 86, 232, .07); --edge: #2556e8;
  --scrim: rgba(11, 20, 40, .45); --logo-filter: invert(1) hue-rotate(180deg); color-scheme: light; }

* { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.kicker { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--f-mono); font-size: .82rem; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--btn); color: var(--on-btn); padding: 10px 14px; }
.skip:focus { left: 12px; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.logo { height: 26px; width: auto; filter: var(--logo-filter); }
nav.main { display: flex; gap: 24px; margin-left: auto; font-size: .94rem; }
nav.main a { color: var(--muted); text-decoration: none; padding-block: 6px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 2px; font: 600 .95rem var(--f-sans); text-decoration: none; cursor: pointer; border: 1px solid var(--btn); }
.btn.solid { background: var(--btn); color: var(--on-btn); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.line:hover { border-color: var(--accent); }
.theme { min-height: 40px; min-width: 84px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 2px; font: 500 .78rem var(--f-mono); cursor: pointer; }
.theme svg { width: 16px; height: 16px; flex: none; }
.theme:hover { border-color: var(--accent); }
details.menu { display: none; position: relative; }
details.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; font: 500 .78rem var(--f-mono); }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .drop { position: absolute; right: 0; top: 50px; background: var(--panel); border: 1px solid var(--line); display: grid; min-width: 220px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
details.menu .drop a { padding: 14px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
details.menu .drop a:last-child { border-bottom: 0; }

/* Hero */
.hero { background: radial-gradient(ellipse 70% 60% at 75% 30%, var(--glow), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 72px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; margin-top: 16px; }
.hero .sub { font-size: 1.12rem; color: var(--muted); margin-top: 22px; max-width: 32em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.proof { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; }
.proof b { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof span { color: var(--muted); font-size: .95rem; }
.hero.small .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 64px 48px; }
.hero.small h1 { max-width: 16ch; }

.perimeter { position: relative; border: 1.5px dashed var(--edge); padding: 34px 22px 22px; border-radius: 4px; }
.perimeter .tagline { position: absolute; top: -12px; left: 18px; background: var(--bg); padding: 0 10px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.layers { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; border-radius: 2px; }
.layer .n { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.layer b { display: block; font-weight: 600; }
.layer span { color: var(--muted); font-size: .9rem; display: block; }
.layer:nth-child(1) { margin-inline: 0 18%; } .layer:nth-child(2) { margin-inline: 0 12%; } .layer:nth-child(3) { margin-inline: 0 6%; }
.layers.flow .layer { margin-inline: 0; }
.layer.base { grid-template-columns: minmax(0, 1fr); background: transparent; border-style: dashed; border-color: var(--accent); }
.layer.base b { color: var(--accent); }
.outside { margin-top: 14px; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }

/* Bands and blocks */
.band { background: var(--band); border-block: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 22px; align-items: baseline; }
.clients .kicker { color: var(--muted); }
.clients span.c { font-weight: 600; color: var(--ink); }
section.block .wrap { padding-block: 80px; }
main section[id], main div[id] { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }
.head2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.head2 h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.head2 p { color: var(--muted); font-size: 1.05rem; }
.panels { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.panels.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panels.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panels.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { background: var(--panel); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel h3 { font-size: 1.2rem; font-weight: 600; }
.panel p { color: var(--muted); }
.panel .links { margin-top: auto; padding-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; }
.chip { align-self: flex-start; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.more { display: inline-block; margin-top: 24px; font-weight: 600; }
.note { margin-top: 22px; color: var(--muted); }
.panel.span2 { grid-column: 1 / -1; }
.panel.foundation { background: var(--band); }
.panel.foundation .chip { color: var(--accent); border-color: var(--accent); }
.panel.cta { background: var(--band); justify-content: center; }
.panel.cta h3 { font-size: 1.35rem; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { margin: 0; background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.quote blockquote { margin: 0; font-size: 1rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.quote figcaption { margin-top: auto; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.quote figcaption b { display: block; }
.quote figcaption span.meta { color: var(--muted); }
.quote .open { flex: none; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--accent); border-radius: 2px; font: 500 .76rem var(--f-mono); cursor: pointer; }
.quote .open:hover { border-color: var(--accent); }

dialog.tq { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); }
dialog.tq::backdrop { background: var(--scrim); }
dialog.tq .in { padding: 30px; display: grid; gap: 20px; }
dialog.tq blockquote:focus { outline: none; }
dialog.tq blockquote { margin: 0; font-size: 1.1rem; line-height: 1.65; }
dialog.tq .who b { display: block; }
dialog.tq .who span { color: var(--muted); font-size: .92rem; }
dialog.tq .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
dialog.tq .row .gap { flex: 1; }
dialog.tq button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 2px; font: 500 .82rem var(--f-mono); cursor: pointer; }
dialog.tq button.close { border-color: var(--btn); background: var(--btn); color: var(--on-btn); }
dialog.tq .err { color: var(--muted); font-size: .85rem; width: 100%; }

/* Story */
.awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
.awards figure { margin: 0; background: var(--panel); padding: 18px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.awards img { width: 64px; height: 64px; object-fit: contain; background: #ffffff; padding: 4px; border-radius: 2px; }
.awards b { display: block; font-size: .95rem; }
.awards span { color: var(--muted); font-size: .85rem; }
.media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.media a { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.media img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.media img.fit { object-fit: contain; background: #ffffff; padding: 8% 10%; }
.media .src { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.media .t { font-weight: 600; line-height: 1.35; }
.media a:hover .t { text-decoration: underline; text-underline-offset: 3px; }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.founders article { background: var(--panel); display: grid; grid-template-columns: 11rem minmax(0, 1fr); min-width: 0; }
.founders img { width: 11rem; height: 100%; min-height: 13rem; object-fit: cover; background: var(--band); }
.founders .txt { padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.founders h3 { font-size: 1.2rem; }
.founders p { color: var(--muted); }
.founders .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; font-size: .9rem; }

/* Contact */
.contacts .panel h3 { font-size: 1.15rem; }
.mailrow { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mailrow .addr { font-family: var(--f-mono); font-size: .95rem; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.mailrow .addr:hover { text-decoration: underline; }
.copy { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 2px; font: 500 .76rem var(--f-mono); cursor: pointer; }
.copy:hover { border-color: var(--accent); }

/* ReDefiNER: example spans, code */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.facts span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); }
.ex { background: var(--panel); border: 1px solid var(--line); padding: 22px; display: grid; gap: 16px; min-width: 0; }
.ex-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ex blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.ex-row { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.spans { display: flex; flex-wrap: wrap; gap: 6px; }
.sp { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 8px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: .9rem; overflow-wrap: anywhere; }
.sp b { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; color: var(--accent); font-weight: 500; }
.ex-text { color: var(--ink) !important; font-style: italic; }
.rule { font-family: var(--f-mono); font-size: .78rem; border-left: 2px solid var(--accent); padding-left: 10px; }
.ba { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; margin-top: auto; padding-top: 10px; }
.ba .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
pre.code { margin: 0; padding: 14px 16px; background: var(--band); border: 1px solid var(--line); font: 400 .8rem/1.55 var(--f-mono); color: var(--ink); overflow-x: auto; white-space: pre; max-width: 100%; }
.table-wrap tr.us td { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }

/* Case studies: client line, related links */
.cs-detail .client { display: flex; gap: 10px; align-items: baseline; color: var(--ink); margin: -6px 0 14px; }
.cs-detail .related { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.cs-detail .related a { font-weight: 600; }

/* FAQ, breadcrumbs, offer band */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 920px; }
.faq details { background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 1.05rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.4rem var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
section.cs-page .wrap { padding-top: 40px; }
.offer { background: color-mix(in srgb, var(--band) 70%, var(--accent) 10%); }
section.block:not(.band) + section.block:not(.band):not(.contact) .wrap { border-top: 1px solid var(--line); }

/* Footer */
footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 44px 28px; font-size: .92rem; }
footer.site .about p { color: var(--muted); margin-top: 14px; max-width: 26em; }
footer.site h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site ul a { color: var(--ink); text-decoration: none; }
footer.site ul a:hover { color: var(--accent); }
footer.site .base { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* Stack page */
.deep { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.deep article { background: var(--panel); display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 18rem); gap: 24px; padding: 28px; align-items: start; }
.deep .n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.deep h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.deep p { color: var(--muted); }
.deep ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.deep li { font-family: var(--f-mono); font-size: .78rem; border: 1px solid var(--line); padding: 8px 10px; color: var(--ink); }
.deep article.base { background: var(--band); }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* Case studies */
.cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cs-card { background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.cs-card:hover { background: color-mix(in srgb, var(--panel) 88%, var(--accent)); }
.cs-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.icon-tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 2px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.icon-tile svg { width: 24px; height: 24px; }
.cs-card .arrow svg { width: 20px; height: 20px; color: var(--muted); display: block; }
.cs-card:hover .arrow svg { color: var(--accent); transform: translateX(3px); }
.cs-card .cat { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cs-card h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.cs-card p { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card .chips { margin-top: auto; padding-top: 10px; }
.cs-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ctas-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
section.block.list .wrap { padding-top: 0; }
.cs-detail { max-width: 880px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.cs-detail h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; margin: 12px 0 18px; }
.cs-detail .overview { font-size: 1.15rem; color: var(--ink); margin-top: 22px; }
.cs-detail h2 { font-size: 1.5rem; font-weight: 700; margin: 44px 0 14px; letter-spacing: -.01em; }
.cs-detail p { color: var(--muted); }
.cs-detail ul.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cs-detail ul.points li { background: var(--panel); padding: 16px 18px; color: var(--muted); }
.cs-detail ul.points li strong, .cs-detail ul.points li b { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); margin-top: 8px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--band); }
.table-wrap td:first-child { font-weight: 600; }
.table-wrap td:last-child { color: var(--ink); }
.table-wrap td { color: var(--muted); }
.table-wrap tr:last-child td { border-bottom: 0; }
.cs-next { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cs-next a { background: var(--panel); padding: 18px 20px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.cs-next a span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-next a:last-child { text-align: right; }

/* 404 */
.nf .wrap { padding-block: 96px; display: grid; gap: 18px; max-width: 760px; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; }
.nf p { color: var(--muted); font-size: 1.1rem; }
.nf .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

@media (max-width: 960px) {
  nav.main, .tools .btn { display: none; }
  details.menu { display: block; }
  .tools { margin-left: auto; }
  .hero .wrap, .head2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .wrap { padding-block: 44px; }
  section.block .wrap { padding-block: 56px; }
  .panels.c2, .panels.c3, .quotes, .founders, .why, .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .panels.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deep article { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  footer.site .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .awards, .media, .panels.c4 { grid-template-columns: minmax(0, 1fr); }
  .founders article { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .founders img { width: 7.5rem; min-height: 0; }
  .layer:nth-child(n) { margin-inline: 0; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cs-next { grid-template-columns: minmax(0, 1fr); }
  .cs-next a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .layer { transition: transform .25s ease, border-color .25s ease; }
  .layer:hover { transform: translateX(4px); border-color: var(--accent); }
}
