:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #242328;
  background: #f0eff2;
  --bar: 66px;
  --ui-border: #dedce4;
  --ui-muted: #65616e;
  --accent: #5834a7;
  --line: #dedede;
  --muted: #555;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.toolbar { position: sticky; top: 0; z-index: 5; min-height: var(--bar); padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-bottom: 1px solid var(--ui-border); }
.workspace-brand, .toolbar-actions { display: flex; align-items: center; gap: 10px; }
.workspace-brand strong { display: block; font-size: .94rem; }
.workspace-brand small { display: block; margin-top: 2px; font-size: .72rem; color: var(--ui-muted); }
.workspace-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; flex: none; border-radius: 9px; background: #eee8fc; color: var(--accent); }
.toolbar-button, .device-switch button, .rail-switch button { border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 7px 11px; font-size: .78rem; font-weight: 650; color: #46414d; }
.toolbar-button { border-color: var(--ui-border); }
.toolbar-button:hover, .rail-switch button:hover { background: #f2eff7; }
.device-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--ui-border); border-radius: 8px; background: #f5f4f7; }
.device-switch button[aria-pressed="true"] { background: #fff; color: var(--accent); border-color: var(--ui-border); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
body[data-sidebar="open"] .workspace { grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--bar); height: calc(100dvh - var(--bar)); overflow-y: auto; padding: 20px 14px; background: #fcfbfd; border-right: 1px solid var(--ui-border); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-inline: 5px; margin-bottom: 12px; }
.app-kicker { color: var(--ui-muted); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.count, .route-chip { font: .7rem ui-monospace, monospace; border: 1px solid var(--ui-border); background: #fff; color: var(--ui-muted); border-radius: 5px; padding: 4px 7px; }
.rail-switch { display: flex; gap: 3px; margin-bottom: 12px; border-bottom: 1px solid var(--ui-border); padding-bottom: 8px; }
.rail-switch button[aria-pressed="true"], .rail-link[aria-current="page"] { color: #3f227c; background: #ede7fa; }
.sitemap-list { padding: 0; margin: 0; list-style: none; }
.sitemap-list li { margin-block: 3px; }
.rail-link, .rail-section { display: flex; align-items: center; gap: 7px; min-height: 33px; text-align: start; padding: 5px 6px 5px calc(6px + var(--depth, 0) * 10px); border: 1px solid transparent; border-radius: 5px; color: #423d49; font-size: .77rem; text-decoration: none; line-height: 1.22; }
.rail-section { background: none; width: 100%; }
.rail-link:hover, .rail-section:hover { background: #f1edf8; }
.rail-link[aria-current="page"] { border-color: #ded1f5; font-weight: 700; }
.rail-icon { width: 13px; flex: none; }
.sidebar-note { border-top: 1px solid var(--ui-border); color: var(--ui-muted); font-size: .72rem; line-height: 1.5; margin: 16px 4px 0; padding-top: 13px; }
.board { min-width: 0; padding: 24px clamp(10px, 3vw, 44px) 18px; }
.board-heading { max-width: 1240px; margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.board-heading p { margin: 3px 0 0; font-size: 1.2rem; font-weight: 700; }
.route-chip { overflow-wrap: anywhere; max-width: 58%; }
.frame { container: site / inline-size; width: 100%; max-width: 1240px; margin-inline: auto; border-radius: 9px; background: #fff; border: 1px solid #d5d2da; box-shadow: 0 7px 24px #30243f12; }
.board[data-device="mobile"] .frame { max-width: 390px; }
.board-foot { text-align: center; color: var(--ui-muted); font-size: .74rem; }

.site { color: #171717; line-height: 1.55; }
.site p { margin: 0; }
.site h1, .site h2, .site h3 { margin: 0; letter-spacing: -.048em; line-height: 1.08; overflow-wrap: anywhere; }
.site h1 { font-size: clamp(2.4rem, 5.3cqi, 4.5rem); }
.site h2 { font-size: clamp(1.6rem, 3.45cqi, 2.55rem); }
.site h3 { font-size: 1.13rem; letter-spacing: -.025em; }
.site h1:focus { outline: none; }
.wrap { width: min(1120px, 100% - clamp(32px, 10cqi, 105px)); margin-inline: auto; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 61px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 770; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.wordmark i { width: 22px; aspect-ratio: 1; background: linear-gradient(135deg, #111 48%, #d2d2d2 49%); border: 1px solid #262626; border-radius: 3px; }
.site-nav, .site-actions, .btn-row, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(9px, 2cqi, 22px); }
.site-nav a, .site-nav summary, .mobile-menu summary { font-size: .81rem; text-decoration: none; color: #444; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.site-nav details, .mobile-menu { position: relative; }
.site-nav summary, .mobile-menu summary { list-style: none; }
.site-nav summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: '⌄'; margin-left: 4px; }
.menu-panel { position: absolute; z-index: 3; right: 0; top: calc(100% + 9px); min-width: 170px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 6px; box-shadow: 0 8px 24px #0002; }
.menu-panel a { display: block; padding: 6px 9px; color: #262626; text-decoration: none; font-size: .8rem; }
.menu-panel a:hover { background: #eee; }
.mobile-menu { display: none; }
.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; color: #fff; background: #212121; border: 1px solid #212121; border-radius: 4px; text-decoration: none; text-align: center; font-weight: 650; font-size: .78rem; line-height: 1.2; }
.button:hover { background: #3a3a3a; }
.button.secondary { color: #252525; background: #fff; border-color: #b8b8b8; }
.button.secondary:hover { background: #f1f1f1; }
.button.compact { min-height: 34px; padding: 6px 9px; }
.text-link { display: inline-block; font-size: .82rem; font-weight: 680; }
.site-breadcrumbs { padding-block: 12px; color: #5c5c5c; font-size: .72rem; }
.site-breadcrumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 5px 10px; list-style: none; }
.site-breadcrumbs li:not(:first-child)::before { content: '/'; padding-right: 10px; color: #767676; }
.wf-section { padding-block: clamp(32px, 6cqi, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 12px); }
.wf-section.tinted { background: #f8f8f8; }
.wf-section.hero { padding-block: clamp(36px, 7cqi, 88px); }
.wf-section.closing { background: #f0f0f0; }
.hero-grid, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(19px, 4.5cqi, 58px); }
.hero-copy, .section-intro, .copy-stack { display: grid; align-content: start; gap: 13px; min-width: 0; }
.hero-copy p { color: var(--muted); max-width: 45ch; font-size: clamp(.94rem, 1.6cqi, 1.12rem); }
.hero-copy .btn-row { margin-top: 3px; }
.eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 720; color: #535353; }
.section-intro { max-width: 65ch; margin-bottom: 20px; gap: 8px; }
.section-intro p, .copy-stack p, .card p, .step p, .proof-note p, .closing p { font-size: .9rem; color: var(--muted); }
.section-header-row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 4px 14px; }
.section-header-row .text-link { margin-bottom: 20px; }
.media-slot { display: grid; grid-template: 26px minmax(0, 1fr) / minmax(0, 1fr); min-width: 0; margin: 0; border: 1px solid #c9c9c9; border-radius: 6px; aspect-ratio: 16/10; overflow: hidden; background: #f5f5f5; }
.media-slot.wide { aspect-ratio: 16/8; }
.media-slot.hero-slot { aspect-ratio: 5/4; }
.media-top { display: flex; align-items: center; gap: 4px; padding-inline: 9px; border-bottom: 1px solid #d5d5d5; background: #fff; }
.media-top i { width: 5px; height: 5px; border-radius: 50%; background: #a8a8a8; }
.media-top::after { content: ''; width: 39%; height: 8px; margin-inline: auto; border-radius: 3px; border: 1px solid #ddd; }
.media-center { display: grid; align-content: center; justify-items: center; gap: 6px; padding: 8px; text-align: center; color: #545454; font-size: .74rem; background: linear-gradient(36deg, transparent 49.65%, #e0e0e0 49.7%, #e0e0e0 50.3%, transparent 50.35%), linear-gradient(-36deg, transparent 49.65%, #e0e0e0 49.7%, #e0e0e0 50.3%, transparent 50.35%), #f4f4f4; }
.media-center svg, .media-center span { background: #f4f4f4; }
.media-center span { padding: 1px 4px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2cqi, 24px); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .step { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 5px; overflow: hidden; }
.card:not(.project), .step { padding: clamp(13px, 2.5cqi, 27px); }
.card:not(.project), .card-body, .step { display: grid; gap: 9px; align-content: start; }
.card-body { padding: clamp(12px, 2cqi, 20px); }
.card.project .media-slot { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.card-tag { justify-self: start; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; color: #545454; font-size: .65rem; font-weight: 620; }
.step-num { color: #565656; font: .7rem ui-monospace, monospace; }
.proof-note { display: grid; align-content: start; gap: 8px; border: 1px dashed #a8a8a8; padding: clamp(15px, 2.5cqi, 28px); border-radius: 5px; }
.detail-list { padding-inline-start: 1.2em; margin: 0; display: grid; gap: 8px; font-size: .88rem; color: #444; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.closing h2 { margin-bottom: 5px; }
.site-footer { padding-block: 20px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer nav a { font-size: .76rem; color: #4d4d4d; }
.form-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 4cqi, 48px); }
.inquiry, .form-result { display: grid; gap: 13px; padding: clamp(14px, 3cqi, 28px); border: 1px solid var(--line); border-radius: 5px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inquiry label { display: grid; gap: 4px; font-size: .83rem; font-weight: 630; }
.inquiry :is(input, select, textarea) { width: 100%; border: 1px solid #a9a9a9; border-radius: 4px; color: #222; background: #fff; min-height: 40px; padding: 8px 9px; font-size: .88rem; }
.inquiry textarea { min-height: 94px; resize: vertical; }
.form-note { font-size: .8rem; color: #535353; }

@container site (max-width: 700px) {
  .hero-grid, .split, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid.four, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-slot.hero-slot { aspect-ratio: 16/9; }
}
@container site (max-width: 490px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .grid, .grid.two, .grid.four, .fields { grid-template-columns: minmax(0, 1fr); }
  .site-header .wrap { gap: 8px; }
  .site-actions { gap: 9px; }
  .site h1 { font-size: clamp(1.9rem, 10cqi, 2.45rem); }
  .hero-copy .btn-row .button { flex: 1; }
}
@media (max-width: 780px) {
  body[data-sidebar="open"] .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; max-height: 55dvh; border-right: 0; border-bottom: 1px solid var(--ui-border); }
  .toolbar { padding-inline: 12px; }
}
@media (max-width: 450px) {
  .workspace-brand { gap: 6px; }
  .workspace-mark { width: 26px; }
  .workspace-brand strong { font-size: .75rem; }
  .workspace-brand small { display: none; }
  .toolbar-actions { gap: 4px; }
  .toolbar-button, .device-switch button { padding-inline: 6px; font-size: .72rem; }
}
