@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f7f9; --bg2: #eceff3; --card: #ffffff; --ink: #0f1729; --muted: #556072; --line: #dfe3ea;
  --logobg: #17181c; --accent: #e8473f; --spark: #ffc23c; --link: #1f4fbf; --navy: #12223a; --navy2: #1b3358;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1219; --bg2: #141b25; --card: #161e29; --ink: #edf1f6; --muted: #9aa6b6; --line: #253041; --link: #8fb4ff; --logobg: #253041; --navy: #1a2b45; --navy2: #233a5e; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0d1219; --bg2: #141b25; --card: #161e29; --ink: #edf1f6; --muted: #9aa6b6; --line: #253041; --link: #8fb4ff; --logobg: #253041; --navy: #1a2b45; --navy2: #233a5e; color-scheme: dark; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand svg rect { fill: var(--logobg); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; font-weight: 550; font-size: 15px; color: var(--muted); padding: 8px 13px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--bg2); }
.nav a.navcta { background: var(--ink); color: var(--bg); margin-left: 8px; padding: 9px 16px; }
.nav a.navcta:hover, .nav a.navcta[aria-current] { background: var(--ink); color: var(--bg); opacity: .9; }
.menubtn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menubtn i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .menubtn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(15,23,41,0.14); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a.navcta { margin: 6px 0 0; text-align: center; }
}

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.025em; line-height: 1.06; }
h1 { font-size: clamp(40px, 6.2vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.012em; }
.kicker { font: 650 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; color: var(--link); text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.more:hover svg { transform: translateX(3px); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 650 16px/1 var(--body); text-decoration: none; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.store { padding: 10px 18px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.store svg { width: 22px; height: 22px; }
.btn.store span { display: flex; flex-direction: column; gap: 3px; font-size: 16px; line-height: 1; }
.btn.store small { font-size: 11px; font-weight: 500; color: var(--muted); }
.soon { font-size: 14px; color: var(--muted); }

/* product cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 32px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }
.app { position: relative; border-radius: var(--r); padding: 26px; min-height: 330px; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.app:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.app .ic { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.app h3 { font-size: 30px; margin: 20px 0 8px; }
.app p { font-size: 16px; line-height: 1.5; opacity: .85; max-width: 30ch; }
.app .go { margin-top: auto; padding-top: 22px; font-weight: 650; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.app .go svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.app:hover .go svg { transform: translateX(3px); }
.app .tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.app .tagrow span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.55); }
.app.tilery { background: #fff0d5; color: #2b2433; }
.app.tilery::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; bottom: -80px; border-radius: 50%; background: #ffd27a; filter: blur(50px); opacity: .7; }
.app.sideout { background: #0f1b2d; color: #f2f5ea; }
.app.sideout .tagrow span { background: rgba(215,240,74,0.14); color: #d7f04a; }
.app.sideout::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; right: -60px; bottom: -80px; border-radius: 50%; background: #d7f04a; filter: blur(70px); opacity: .25; }
.app.eos { background: #eef1f6; color: #12223a; }
.app.eos .tagrow span { background: rgba(18,34,58,0.07); }
.eosmark { width: 64px; height: 64px; border-radius: 16px; background: #12223a; display: grid; place-items: center; color: #fff; font: 800 30px/1 var(--display); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
:root[data-theme="dark"] .app.eos { background: #1b2433; color: #e8eef8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app.eos { background: #1b2433; color: #e8eef8; } :root:not([data-theme="light"]) .app.eos .tagrow span { background: rgba(255,255,255,0.08); } :root:not([data-theme="light"]) .eosmark { background: #e8eef8; color: #12223a; } }
:root[data-theme="dark"] .app.eos .tagrow span { background: rgba(255,255,255,0.08); }
:root[data-theme="dark"] .eosmark { background: #e8eef8; color: #12223a; }

/* values strip */
.band { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
@media (max-width: 900px) { .app { min-height: 0; } }
@media (max-width: 800px) { .vals { grid-template-columns: 1fr; gap: 20px; } }
.val { border-top: 2px solid var(--ink); padding-top: 16px; }
.val h3 { font-size: 20px; margin-bottom: 6px; }
.val p { color: var(--muted); font-size: 16px; }

/* product page */
.phero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .phero { grid-template-columns: 1fr; } }
.phero .ic { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.14); margin-bottom: 22px; }
.phero h1 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 14px; }
.phero .lede { max-width: 34ch; }
.stage { border-radius: 28px; padding: 32px 16px 0; overflow: hidden; display: flex; justify-content: center; gap: 16px; height: clamp(340px, 42vw, 480px); align-items: flex-start; }
.stage img { width: 44%; max-width: 220px; border-radius: 20px; box-shadow: 0 12px 34px rgba(0,0,0,0.2); }
.stage img + img { margin-top: 44px; }
.t-stage { background: linear-gradient(160deg, #ffe2a8, #ffd0e4 55%, #c8e6ff); }
.s-stage { background: #0f1b2d; }

.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.shots img { flex: none; width: 220px; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--card); }
.shots.tall img { width: 200px; }

.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 700px) { .feat { grid-template-columns: 1fr; } }
.feat > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15.5px; }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .groups { grid-template-columns: 1fr; } }
.group { border-radius: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); }
.group h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.group h3 i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.group ul { list-style: none; font-size: 15px; color: var(--muted); display: grid; gap: 4px; }

/* prose pages */
.doc { max-width: 720px; padding: clamp(36px, 6vw, 64px) 0 40px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin: 14px 0 10px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc a { color: var(--link); text-underline-offset: 3px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 22px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--bg2); color: var(--ink); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; font: 600 22px/1 var(--display); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin-top: 8px; color: var(--muted); }
.contact { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 20px 0 8px; }
.contact .mail { font: 750 clamp(20px, 3vw, 26px)/1.2 var(--display); color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; word-break: break-all; }

/* home: five app cards (two wide, three narrow) */
.apps.five { grid-template-columns: repeat(6, 1fr); }
.apps.five .app { grid-column: span 2; min-height: 300px; }
.apps.five .app.wide { grid-column: span 3; }
@media (max-width: 900px) { .apps.five { grid-template-columns: 1fr; } .apps.five .app, .apps.five .app.wide { grid-column: auto; min-height: 0; } }
.app.rgb { background: #1c1e21; color: #f4f6f6; }
.app.rgb .tagrow span { background: rgba(0,163,163,0.18); color: #7fe0e0; }
.app.rgb::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; right: -70px; bottom: -90px; border-radius: 50%; background: conic-gradient(#ff4d4d, #4dff88, #4d8bff, #ff4d4d); filter: blur(60px); opacity: .35; }
.app.drift { background: linear-gradient(150deg, #2a1748, #10324a 60%, #0b3b37); color: #f1eefb; }
.app.drift .tagrow span { background: rgba(255,255,255,0.12); }
.app.trace { background: #0b1022; color: #eef1ff; }
.app.trace .tagrow span { background: rgba(255,214,90,0.15); color: #ffd65a; }
.app.trace::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; right: -70px; bottom: -90px; border-radius: 50%; background: #ffd65a; filter: blur(70px); opacity: .2; }

/* home hero */
.hero2 { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero2 h1 { margin: 18px 0 20px; max-width: 12ch; }
.hero-shot { position: relative; padding-bottom: 40px; }
.hero-shot .phone { position: absolute; right: -14px; bottom: 0; width: 28%; border-radius: 22px; box-shadow: 0 24px 50px rgba(15,23,41,0.25); border: 1px solid var(--line); }
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; gap: 28px; } .hero-shot { margin-right: 18px; } .hero-shot .phone { right: -18px; width: 30%; border-radius: 16px; } }
.browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(15,23,41,0.14); }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f1f3f6; border-bottom: 1px solid #e3e7ee; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e0; }
.browser .bar span { margin-left: 10px; font-size: 12px; color: #7a8494; background: #fff; border-radius: 6px; padding: 3px 10px; }
.browser img { width: 100%; height: auto; }
:root[data-theme="dark"] .browser .bar { background: #1c2533; border-color: #253041; }
:root[data-theme="dark"] .browser .bar span { background: #141b25; color: #9aa6b6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .browser .bar { background: #1c2533; border-color: #253041; } :root:not([data-theme="light"]) .browser .bar span { background: #141b25; color: #9aa6b6; } }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts b { font: 750 22px/1.15 var(--display); letter-spacing: -0.015em; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(16px, 3vw, 32px); }
.sec-intro { max-width: 760px; }
.sec-intro h2 { margin: 16px 0 14px; }
.eos-head { display: flex; align-items: center; gap: 14px; }
.eos-head img { width: 48px; height: 48px; }
.eos-shot { margin: 36px 0 0; }
.featgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 40px; }
.featgrid > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.featgrid .tick { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.featgrid .tick svg { width: 16px; height: 16px; }
.featgrid h3 { font-size: 18px; margin: 3px 0 6px; }
.featgrid p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .featgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .featgrid { grid-template-columns: 1fr; } }

.band2 { background: var(--bg2); margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.band2 + .section, .band2 + .ctaband { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split h2 { margin: 14px 0 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.svc2 { display: grid; gap: 14px; }
.svc2.three { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .svc2.three { grid-template-columns: 1fr; } }
.svc2 > div, .svc3 > div, .ccard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.svc2 h3, .svc3 h3 { font-size: 19px; margin-bottom: 6px; }
.svc2 .kicker { margin-bottom: 10px; }
.svc2 p, .svc3 p { color: var(--muted); font-size: 15.5px; }
.svc2 .more { margin-top: 14px; }
.svc3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc3 ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; font-size: 15px; }
.svc3 li { padding-left: 22px; position: relative; }
.svc3 li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--navy2); }
@media (max-width: 860px) { .svc3 { grid-template-columns: 1fr; } }

.appstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.appstrip a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; font-weight: 650; font-size: 15.5px; transition: transform .15s ease; }
.appstrip a:hover { transform: translateY(-2px); }
.appstrip img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
@media (max-width: 900px) { .appstrip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .appstrip { grid-template-columns: 1fr; } }

.mission { max-width: 900px; }
.mission .big { font: 700 clamp(24px, 3.2vw, 36px)/1.25 var(--display); letter-spacing: -0.02em; margin: 16px 0 20px; text-wrap: balance; }

.ctaband { background: var(--navy); color: #eef2f8; margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.ctaband h2 { max-width: 20ch; color: #fff; }
.ctaband p { color: #b9c4d6; font-size: 18px; margin-top: 14px; max-width: 52ch; }
.btn.light { background: #fff; color: var(--navy); }
.btn.ghostlight { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }

/* inner pages */
.phead { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(8px, 2vw, 16px); max-width: 860px; margin-left: auto; margin-right: auto; }
.phead h1 { margin: 16px 0 18px; font-size: clamp(38px, 5.4vw, 60px); }
.wrap.phead { max-width: var(--max); }
.phead .lede { max-width: 56ch; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 750 16px/1 var(--display); margin-bottom: 8px; }
.steps b { font: 750 18px/1.2 var(--display); }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.person { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 750 22px/1 var(--display); flex: none; }
.person h3 { font-size: 20px; }
.person .role { color: var(--link); font-weight: 600; font-size: 14.5px; margin: 4px 0 8px; }
.person p { color: var(--muted); font-size: 15.5px; }
.facts-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts-dl > div { padding: 16px 0; border-bottom: 1px solid var(--line); padding-right: 20px; }
.facts-dl dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.facts-dl dd { font-size: 16.5px; }
.facts-dl a, .ccard a.mail { color: var(--link); text-underline-offset: 3px; }
.contactgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard h3 { margin: 12px 0 8px; font-size: 20px; }
.ccard p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.ccard a.mail { font-weight: 650; word-break: break-all; display: inline-block; margin-right: 12px; }
@media (max-width: 900px) { .contactgrid { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 48px 0 36px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot-brand .brand { color: var(--ink); font-size: 20px; }
.foot-brand p { margin-top: 12px; max-width: 30ch; }
.foot-brand .addr { font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols h4 { font: 650 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot-cols a { display: block; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; }
.themebtn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px/1 var(--body); cursor: pointer; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; }
.notfound .btns { justify-content: center; }
.doc details a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
