/* ==========================================================================
   Multi-page components (inner pages, theme switcher, FAQ, CTA band, etc.)
   Loaded after site.css, which holds the design tokens.
   ========================================================================== */

@media (max-width: 900px) { .nav-start { display: none; } }

/* Theme switcher: shows the icon of the mode you'll switch to. */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); background: var(--bg-sunk); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Page hero */
.page-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 20% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 30%, #000 20%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-top: 18px; max-width: 18ch; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.page-hero .lede { margin-top: 20px; }
.page-hero .lede + .lede { margin-top: 12px; }
.tight-top { padding-top: 24px; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }

.band-sunk { background: var(--bg-sunk); }
.body-copy { margin-top: 16px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--accent); }
.more-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.more-link:hover svg { transform: translateX(3px); }

/* Service cards: title link and footer actions */
.service-link:hover { color: var(--accent); }
.service-actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.service .toggle { margin-top: 0; padding: 0; }
.service-actions .more-link { margin: 0 0 0 auto; font-size: 14px; }

/* Services overview: pillar columns */

/* Generic feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.feature .icon, .signs-card .icon, .related .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.feature .icon svg, .signs-card .icon svg, .related .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* Service detail */
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.service-hero .hero-actions { margin-top: 32px; }
.signs-card { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; margin-top: 48px; }
.signs-card h2 { font-size: 1.5rem; }
.signs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.signs-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.signs-card li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
@media (max-width: 960px) { .service-hero-grid { grid-template-columns: 1fr; gap: 0; } }

.scope-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scope-grid li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 18px 20px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.scope-grid svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
@media (max-width: 960px) { .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .scope-grid { grid-template-columns: 1fr; } }

.engagement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.engagement { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.engagement h3 { font-size: 1.375rem; }
.engagement p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .engagement-grid { grid-template-columns: 1fr; } }

.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.how-grid .lede { margin: 18px 0 8px; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-sunk); }
.mini-steps .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.mini-steps strong { display: block; font-weight: 600; }
.mini-steps span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 32px; } }

.stack-lg li { font-size: 15px; padding: 10px 16px; background: var(--bg-elev); }

.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related { display: grid; grid-template-columns: 44px 1fr 20px; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.related:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.related h3 { font-size: 1.2rem; margin-bottom: 4px; }
.related p { color: var(--ink-2); font-size: 14px; }
.related > svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-grid .lede { margin-top: 16px; font-size: 16px; }
.faq-list { display: grid; gap: 8px; }
.faq { border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--accent); transition: transform .2s var(--ease); }
.faq[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

/* CTA band (inverse surface, so it uses the inverse brand green) */
.cta-band { padding: 0 0 24px; }
.cta-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 40px; align-items: center;
  padding: 56px; border-radius: 28px; background: var(--bg-inverse); color: var(--on-inverse);
  position: relative; overflow: hidden;
}
.cta-card {
  --accent: var(--brand-inv); --accent-strong: var(--brand-inv-strong); --on-accent: var(--on-brand-inv);
}
.cta-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); pointer-events: none; }
.cta-card .lede { margin-top: 14px; color: color-mix(in srgb, var(--on-inverse) 72%, transparent); font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-card .btn-ghost { border-color: color-mix(in srgb, var(--on-inverse) 30%, transparent); color: var(--on-inverse); }
.cta-card .btn-ghost:hover { border-color: var(--on-inverse); }
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; } }

/* AI page: MCP diagram */
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mcp-grid .lede { margin-top: 18px; }
.mcp-diagram { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.mcp-diagram::before { content: ""; position: absolute; left: 50%; top: 24px; bottom: 24px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 12px); }
.mcp-layer { position: relative; z-index: 1; display: grid; gap: 6px; padding: 22px 24px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line-strong); text-align: center; }
.mcp-layer strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; }
.mcp-layer span { font-size: 14px; color: var(--ink-2); }
.mcp-layer.is-server { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mcp-layer.is-server span { color: inherit; opacity: .85; }
@media (max-width: 900px) { .mcp-grid { grid-template-columns: 1fr; gap: 36px; } }

/* AI page: readiness check */
.readiness-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.readiness-grid .lede { margin-top: 18px; }
.readiness { padding: 12px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.readiness ul { list-style: none; margin: 0; padding: 0; }
.check-row { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 12px; cursor: pointer; }
.check-row:hover { background: var(--bg-sunk); }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-row .box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: all .15s var(--ease); }
.check-row .box svg { width: 16px; height: 16px; }
.check-row input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check-row input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row strong { display: block; font-weight: 500; }
.check-row small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.readiness-result { margin: 8px 14px 14px; padding: 18px; border-radius: 12px; background: var(--bg-sunk); }
.meter { height: 8px; border-radius: 99px; background: var(--line-strong); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }
.readiness-result p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.readiness-result strong { color: var(--ink); }
@media (max-width: 900px) { .readiness-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Approach: timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 1px; background: var(--line-strong); }
.timeline-item { display: grid; grid-template-columns: 44px 1fr; gap: 24px; position: relative; }
.timeline-item .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 13px; position: relative; z-index: 1; }
.timeline-body { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.timeline-body h3 { font-size: 1.75rem; }
.timeline-body > p { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }
.timeline-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.timeline-cols h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.timeline-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.timeline-cols ul.checks { list-style: none; padding: 0; }
.timeline-cols ul.checks li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.timeline-cols ul.checks svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
@media (max-width: 700px) { .timeline-cols { grid-template-columns: 1fr; } .timeline-item { grid-template-columns: 1fr; } .timeline::before, .timeline-item .dot { display: none; } }

/* About: values */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value-card { padding: 36px 30px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.value-card h3 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.03em; }
.value-card h3 span { color: var(--accent); }
.value-card p { margin-top: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }

/* Contact page */
.next-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.next-steps .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.next-steps strong { display: block; font-weight: 600; }
.next-steps span { font-size: 15px; color: var(--ink-2); }
.contact-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

/* Footer: social links */
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.foot-grid .foot-social a {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-2);
  transition: color .2s, border-color .2s, background-color .2s, transform .2s;
}
.foot-grid .foot-social a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.foot-grid .foot-social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.foot-social svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .foot-grid .foot-social a { transition: none; } .foot-grid .foot-social a:hover { transform: none; } }

/* ==========================================================================
   Illustrations (Content/Illustrations.cs)
   Colours come from theme tokens, so the art follows light/dark and the accent.
   ========================================================================== */
.il { display: block; width: 100%; height: auto; overflow: visible; }
.il .bg { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.il .bg-hot { fill: color-mix(in srgb, var(--clay) 14%, transparent); }
.il .card { fill: var(--bg-elev); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.il .acc-soft { fill: color-mix(in srgb, var(--accent) 22%, var(--bg-elev)); }
.il .sunk { fill: var(--bg-sunk); }
.il .ink { fill: var(--ink); }
.il .acc { fill: var(--accent); }
.il .hot { fill: var(--clay); }
.il .hot-soft { fill: color-mix(in srgb, var(--clay) 30%, transparent); }
.il .soft-fill { fill: var(--ink-3); }
.il .tape { fill: color-mix(in srgb, var(--clay) 28%, var(--bg-elev)); stroke: var(--ink); stroke-width: 1.5; }
.il .ln, .il .soft, .il .thin, .il .thick-soft, .il .acc-ln, .il .hot-ln, .il .on-acc, .il .on-hot,
.il .road, .il .road-in, .il .road-dash, .il .gear-teeth { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.il .ln { stroke: var(--ink); stroke-width: 2; }
.il .soft { stroke: var(--ink-3); stroke-width: 2.5; opacity: .7; }
.il .thin { stroke: var(--line-strong); stroke-width: 1; }
.il .thick-soft { stroke: var(--line-strong); stroke-width: 5; }
.il .acc-ln { stroke: var(--accent); stroke-width: 3; }
.il .hot-ln { stroke: var(--clay); stroke-width: 2.5; }
.il .on-acc { stroke: var(--on-accent); stroke-width: 2.5; }
.il .on-hot { stroke: #fff; stroke-width: 3; }
.il .on-hot-fill { fill: #fff; }
.il .dash { stroke-dasharray: 4 5; }
.il .road { stroke: var(--ink); stroke-width: 20; }
.il .road-in { stroke: var(--bg-elev); stroke-width: 16; }
.il .road-dash { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 6 8; }
.il .gear-teeth { stroke: var(--accent); stroke-width: 9; stroke-linecap: butt; }
.il .spin { transform-box: fill-box; transform-origin: center; animation: il-spin 16s linear infinite; }
.il .float { transform-box: fill-box; animation: il-float 4s ease-in-out infinite; }
@keyframes il-spin { to { transform: rotate(360deg); } }
@keyframes il-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .il .spin, .il .float { animation: none; } }

/* Page hero with art */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero-art { max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-art { max-width: 280px; justify-self: start; }
}

/* Home: problems */
.problems { padding-top: 64px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.problem { padding: 20px 24px 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.problem-art { margin: 0 -8px 4px; }
.problem h3 { font-size: 1.375rem; }
.problem p { color: var(--ink-2); font-size: 15px; }
.problem-fix { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--accent); }
.problem-fix span { flex: 1; }
.problem-fix svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.problem-fix:hover svg:last-child { transform: translateX(3px); }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } .problem-art { max-width: 320px; } }

/* Home: pillars with illustrations */
.pillars.band-sunk { padding-top: 112px; }
.pillar { padding-top: 20px; }
.pillar-illo { margin: 0 -8px 6px; border-radius: 16px; }
.pillar:hover .il .float { animation-duration: 1.6s; }
@media (max-width: 900px) { .pillar-illo { max-width: 320px; } }
/* Home pillars: each card lists its services */
.pillar-services { list-style: none; margin: auto 0 0; padding: 0; }
.pillar-services a {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink);
}
.pillar-services a > svg { width: 15px; height: 15px; margin-left: auto; flex: none; color: var(--ink-3); transition: transform .2s, color .2s; }
.pillar-services a:hover { color: var(--accent); }
.pillar-services a:hover > svg { color: var(--accent); transform: translateX(3px); }
.pillar-service-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--bg-sunk); color: var(--accent); }
.pillar-service-icon svg { width: 16px; height: 16px; }
.pillars-foot { display: flex; justify-content: center; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .pillar-services a:hover > svg { transform: none; } }

/* Home: specialties */
.spec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.spec { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s; }
.spec:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.spec-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; background: var(--accent); color: var(--on-accent); }
.spec-icon svg { width: 26px; height: 26px; }
.spec:nth-child(even) .spec-icon { background: var(--ink); color: var(--bg); }
.spec h3 { font-size: 1.2rem; }
.spec p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 1000px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

/* Home: process step icon, about teaser art */
.step-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.step-icon svg { width: 28px; height: 28px; }
.about-illo { max-width: 300px; margin: 8px 0 4px -12px; }

/* Inner pages */
.signs-card .signs-art { margin: -12px -12px 0; }
.value-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent); color: var(--on-accent); }
.value-icon svg { width: 26px; height: 26px; }
.engagement-top { display: flex; justify-content: space-between; align-items: center; }
.engagement .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.engagement .icon svg { width: 24px; height: 24px; }
.error-art { max-width: 300px; margin-bottom: 8px; }
/* Bricolage has no italic: keep emphasis upright unless a serif headline face is selected. */
.about-quote em { font-style: normal; }

/* ==========================================================================
   Hero delivery studio (Pages/Sections/_HeroStudio.cshtml, site.js)
   One example engagement played through the six stages, one scene per stage.
   ========================================================================== */
.studio { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.studio-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.studio-head .dots { display: flex; gap: 6px; }
.studio-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.studio-title { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.studio-title em { font-style: normal; color: var(--ink-3); }
.studio-status { --c: var(--clay); display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: color .3s, background .3s; }
.studio-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: studio-blink 1.1s ease-in-out infinite; }
.studio-status[data-state="deploying"] { --c: var(--plum); }
.studio-status[data-state="live"] { --c: var(--accent); }
.studio-status[data-state="live"]::before { animation: studio-pulse 1.8s infinite; }
@keyframes studio-blink { 50% { opacity: .25; } }
@keyframes studio-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* Stage rail */
.studio-rail { position: relative; list-style: none; margin: 0; padding: 18px 14px 4px; display: grid; grid-template-columns: repeat(6, 1fr); }
.studio-track { position: absolute; top: 32px; left: calc(14px + (100% - 28px) / 12); right: calc(14px + (100% - 28px) / 12); height: 2px; border-radius: 2px; background: var(--line); }
.studio-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.studio-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.studio-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); border: 1.5px solid var(--line-strong); color: var(--ink-3); transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease), box-shadow .35s; }
.studio-dot svg { width: 14px; height: 14px; }
.studio-label { font-size: 11px; font-weight: 500; color: var(--ink-3); transition: color .3s; }
.studio-stage.done .studio-dot { background: color-mix(in srgb, var(--accent) 16%, var(--bg-elev)); border-color: transparent; color: var(--accent); }
.studio-stage.active .studio-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.12); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.studio-stage.active .studio-label { color: var(--ink); }

/* Canvas and scene switching */
.studio-canvas { position: relative; height: 256px; margin: 12px 18px 0; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease) .1s, transform .45s var(--ease) .1s; }
@keyframes s-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes s-fade { from { opacity: 0; } }

/* 1 · Discover */
.note { position: absolute; width: 46%; padding: 16px 14px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; color: #2a2a28; box-shadow: 0 8px 18px rgba(0, 0, 0, .1); }
.note::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #c9483a; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.note.n1 { left: 1%; top: 8px; background: #fbe9a6; transform: rotate(-3deg); }
.note.n2 { right: 2%; top: 26px; background: #f6d2c2; transform: rotate(2.5deg); }
.note.n3 { left: 12%; top: 112px; background: #d7ecd3; transform: rotate(1.5deg); }
.goal { position: absolute; right: 2%; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.goal-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.goal-ico svg { width: 18px; height: 18px; }
.goal small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.goal strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; }
.scene-discover.is-active .note, .scene-discover.is-active .goal { animation: s-pop .5s var(--ease) both; }
.scene-discover.is-active .n1 { animation-delay: .15s; }
.scene-discover.is-active .n2 { animation-delay: .45s; }
.scene-discover.is-active .n3 { animation-delay: .75s; }
.scene-discover.is-active .goal { animation-delay: 1.2s; }

/* 2 · Design */
.wf { position: absolute; inset: 4px 4% 40px 0; display: grid; grid-template-columns: 22% 1fr; border: 1.5px dashed var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--bg); }
.wf-side { display: grid; gap: 10px; align-content: start; padding: 16px 10px; background: var(--bg-sunk); }
.wf-side i { height: 8px; border-radius: 4px; background: var(--line-strong); }
.wf-side i:first-child { width: 70%; background: var(--accent); }
.wf-main { display: grid; gap: 12px; align-content: start; padding: 14px; }
.wf-bar { display: flex; justify-content: space-between; align-items: center; }
.wf-bar i { width: 42%; height: 11px; border-radius: 6px; background: var(--ink); }
.wf-bar b { width: 24%; height: 18px; border-radius: 9px; background: var(--accent); }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wf-cards span { height: 50px; border-radius: 8px; border: 1.5px dashed var(--line-strong); }
.wf-rows { display: grid; gap: 8px; }
.wf-rows i { height: 9px; border-radius: 5px; background: var(--bg-sunk); }
.wf-rows i:nth-child(2) { width: 84%; }
.wf-rows i:nth-child(3) { width: 92%; }
.wf-cursor { position: absolute; left: 48%; top: 36%; width: 22px; height: 22px; color: var(--ink); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
.wf-cursor svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--bg-elev); stroke-width: 1.5; stroke-linejoin: round; }
.chip-ok { position: absolute; left: 0; bottom: 2px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip-ok svg { width: 14px; height: 14px; }
.scene-design.is-active .wf { animation: s-fade .4s both; }
.scene-design.is-active .wf-side, .scene-design.is-active .wf-bar, .scene-design.is-active .wf-rows { animation: s-pop .45s var(--ease) both; }
.scene-design.is-active .wf-side { animation-delay: .2s; }
.scene-design.is-active .wf-bar { animation-delay: .4s; }
.scene-design.is-active .wf-rows { animation-delay: .6s; }
.scene-design.is-active .wf-cards span { animation: s-card .45s var(--ease) both; }
.scene-design.is-active .wf-cards span:nth-child(1) { animation-delay: 1.3s; }
.scene-design.is-active .wf-cards span:nth-child(2) { animation-delay: 1.5s; }
.scene-design.is-active .wf-cards span:nth-child(3) { animation-delay: 1.7s; }
.wf-cards span { background: color-mix(in srgb, var(--accent) 16%, transparent); border-style: solid; border-color: transparent; }
@keyframes s-card { from { background: transparent; border-color: var(--line-strong); border-style: dashed; } }
.scene-design.is-active .wf-cursor { animation: s-cursor 1.6s var(--ease) both; }
@keyframes s-cursor { 0% { left: 78%; top: 92%; opacity: 0; } 15% { opacity: 1; } 75%, 100% { left: 48%; top: 36%; } }
.scene-design.is-active .chip-ok { animation: s-pop .45s var(--ease) 2.1s both; }

/* 3 · Develop (an editor stays dark in both themes) */
.scene-develop { display: grid; grid-template-rows: auto 1fr auto; border-radius: 12px; overflow: hidden; background: #16161a; border: 1px solid #2a2a2e; }
.code-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #0f0f12; }
.code-tabs span { padding: 6px 12px; border-radius: 6px 6px 0 0; font-family: var(--font-mono); font-size: 11px; color: #8a8a90; }
.code-tabs .on { background: #16161a; color: #e8e6df; }
.code { margin: 0; padding: 12px 14px; overflow: hidden; white-space: pre; font-family: var(--font-mono); font-size: clamp(9.5px, 2.6vw, 11.5px); line-height: 1.8; color: #e8e6df; }
.code .kw { color: #7ccf78; }
.code .ty { color: #e6b673; }
.code .fn { color: #8fb4ff; }
.code .cm { color: #6e6e76; font-style: italic; }
.tests { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid #2a2a2e; background: #0f0f12; font-family: var(--font-mono); font-size: 11.5px; color: #9a9aa0; }
.tests svg { width: 14px; height: 14px; color: #5cc458; }
.tests b { color: #5cc458; font-weight: 500; }
.scene-develop.is-active .cl { animation: s-fade .25s both; }
.scene-develop.is-active .cl:nth-child(1) { animation-delay: .2s; }
.scene-develop.is-active .cl:nth-child(2) { animation-delay: .4s; }
.scene-develop.is-active .cl:nth-child(3) { animation-delay: .6s; }
.scene-develop.is-active .cl:nth-child(4) { animation-delay: .8s; }
.scene-develop.is-active .cl:nth-child(5) { animation-delay: 1s; }
.scene-develop.is-active .cl:nth-child(6) { animation-delay: 1.2s; }
.scene-develop.is-active .cl:nth-child(7) { animation-delay: 1.4s; }
.scene-develop.is-active .tests { animation: s-fade .4s 1.9s both; }

/* 4 · Automate */
.scene-automate { display: grid; align-content: center; gap: 26px; }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow-line { position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); }
.packet { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.scene-automate.is-active .packet { animation: s-packet 2.2s cubic-bezier(.6, 0, .4, 1) .6s infinite both; }
@keyframes s-packet { from { left: 0; } to { left: 100%; } }
.fnode { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; text-align: center; }
.fnode svg { box-sizing: border-box; width: 56px; height: 56px; padding: 16px; margin-bottom: 6px; border-radius: 16px; background: var(--bg-elev); border: 1.5px solid var(--line-strong); color: var(--ink-2); }
.fnode b { font-size: 13px; font-weight: 600; }
.fnode small { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.fnode.ai svg { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: s-glow 1.8s ease-in-out infinite; }
@keyframes s-glow { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 18%, transparent); } }
.flow-stat { padding: 12px 14px; border-radius: 12px; background: var(--bg-sunk); text-align: center; font-size: 13px; color: var(--ink-2); }
.flow-stat strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.scene-automate.is-active .fnode, .scene-automate.is-active .flow-stat { animation: s-pop .45s var(--ease) both; }
.scene-automate.is-active .fnode:nth-of-type(2) { animation-delay: .25s; }
.scene-automate.is-active .fnode:nth-of-type(3) { animation-delay: .5s; }
.scene-automate.is-active .fnode:nth-of-type(4) { animation-delay: .75s; }
.scene-automate.is-active .flow-stat { animation-delay: 1.3s; }

/* 5 · Deploy */
.scene-deploy { display: grid; grid-template-columns: 92px 1fr; gap: 14px 16px; align-items: center; align-content: center; }
.deploy-cloud { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2; }
.deploy-cloud svg { box-sizing: border-box; width: 64px; height: 64px; padding: 15px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.deploy-cloud small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.checks li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--bg-sunk); font-size: 13px; font-weight: 500; }
.checks svg { width: 16px; height: 16px; color: var(--accent); }
.checks small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.deploy-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bg-sunk); }
.deploy-bar i { display: block; height: 100%; background: var(--accent); }
.scene-deploy.is-active .checks li { animation: s-pop .4s var(--ease) both; }
.scene-deploy.is-active .checks li:nth-child(1) { animation-delay: .2s; }
.scene-deploy.is-active .checks li:nth-child(2) { animation-delay: .65s; }
.scene-deploy.is-active .checks li:nth-child(3) { animation-delay: 1.1s; }
.scene-deploy.is-active .checks li:nth-child(4) { animation-delay: 1.55s; }
.scene-deploy.is-active .deploy-bar i { animation: s-bar 2s var(--ease) .2s both; }
@keyframes s-bar { from { width: 0; } }

/* 6 · Optimize */
.scene-optimize { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--bg-sunk); }
.kpi small { display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--ink-3); }
.kpi strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }
.kpi strong span, .kpi .up { color: var(--accent); }
.kpi em { margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-pill); vertical-align: 3px; font-family: var(--font-mono); font-size: 10.5px; font-style: normal; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.bars { display: flex; align-items: flex-end; gap: 8px; padding: 0 4px; border-bottom: 1.5px solid var(--line-strong); }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--accent) 30%, var(--bg-sunk)); }
.bars i:last-child { background: var(--accent); }
.bars-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.scene-optimize.is-active .kpi { animation: s-pop .45s var(--ease) both; }
.scene-optimize.is-active .kpi:nth-child(2) { animation-delay: .2s; }
.scene-optimize.is-active .bars i { animation: s-grow .6s var(--ease) both; }
@keyframes s-grow { from { height: 0; } }
.scene-optimize.is-active .bars i:nth-child(2) { animation-delay: .45s; }
.scene-optimize.is-active .bars i:nth-child(3) { animation-delay: .55s; }
.scene-optimize.is-active .bars i:nth-child(4) { animation-delay: .65s; }
.scene-optimize.is-active .bars i:nth-child(5) { animation-delay: .75s; }
.scene-optimize.is-active .bars i:nth-child(6) { animation-delay: .85s; }
.scene-optimize.is-active .bars i:nth-child(7) { animation-delay: .95s; }
.scene-optimize.is-active .bars i:nth-child(8) { animation-delay: 1.05s; }
.scene-optimize.is-active .bars i:nth-child(1) { animation-delay: .35s; }

/* Footer: stage counter + caption */
.studio-foot { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; margin: 14px 18px 18px; padding: 12px 16px; border-radius: 12px; background: var(--bg-sunk); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.studio-step strong { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.studio-step span { margin-left: 3px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.studio-caption b { font-weight: 600; color: var(--ink); }
.studio-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: right; }

@media (max-width: 520px) {
  .studio-label, .studio-note, .deploy-cloud, .fnode small { display: none; }
  .studio-foot { grid-template-columns: auto 1fr auto; }
  .scene-deploy { grid-template-columns: 1fr; }
  .note { width: 52%; font-size: 12px; }
  .fnode svg { width: 46px; height: 46px; padding: 12px; }
  .studio-title em, .code .cm { display: none; }
  .code { padding: 10px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before { animation: none !important; transition: none !important; }
}

/* Footer: icons beside headings and links, legal links */
.foot-h { display: flex; align-items: center; gap: 8px; }
.foot-h-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-sunk); color: var(--accent); }
.foot-h-ic svg { width: 15px; height: 15px; }
.foot-grid > div > a { display: flex; align-items: flex-start; gap: 10px; }
.foot-ic { display: inline-flex; flex: none; padding-top: 2px; color: var(--ink-3); transition: color .15s; }
.foot-ic svg { width: 15px; height: 15px; }
.foot-grid > div > a:hover .foot-ic { color: var(--accent); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.foot-legal a:hover, .foot-legal a[aria-current="page"] { color: var(--accent); }
.foot-legal svg { width: 14px; height: 14px; }

/* Legal pages: Privacy, Terms, Accessibility */
.legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.legal-updated { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-3); }
.legal-updated svg { width: 15px; height: 15px; flex: none; }
.legal-updated strong { color: var(--ink-2); font-weight: 500; }
.legal-aside nav { display: grid; gap: 2px; padding: 8px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.legal-aside nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-2); }
.legal-aside nav a svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.legal-aside nav a:hover, .legal-aside nav a[aria-current="page"] { background: var(--bg-sunk); color: var(--ink); }
.legal-aside nav a:hover svg, .legal-aside nav a[aria-current="page"] svg { color: var(--accent); }
.legal-help { display: grid; gap: 8px; justify-items: start; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-sunk); }
.legal-help p { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.legal-help .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-aside { position: static; order: 2; }
}

/* Hero studio: pause / play (WCAG 2.2.2). Hidden when there is no animation to control. */
.studio-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink-2);
}
.studio-toggle:hover { color: var(--accent); border-color: var(--accent); }
.studio-toggle svg { width: 14px; height: 14px; }
.studio-toggle .i-play, .studio.is-paused .studio-toggle .i-pause { display: none; }
.studio.is-paused .studio-toggle .i-play { display: contents; }
.studio-toggle .i-pause { display: contents; }
html:not(.js) .studio-toggle { display: none; }
.studio.is-paused *, .studio.is-paused *::before, .studio.is-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .studio-toggle { display: none; } }

/* Minimum 24px target size for small inline navigation (WCAG 2.5.8) */
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 24px; }
.foot-legal a { min-height: 24px; }

/* Contact page: office details and map */
.office { padding-top: 0; }
.office-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.office-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 40px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line);
}
.office-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.office-card address { font-style: normal; width: 100%; }
.office-list { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; gap: 20px; }
.office-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.office-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.office-list span { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.office-list small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.office-list a { color: var(--ink); font-weight: 500; font-size: 16px; }
.office-list a:hover { color: var(--accent); }
.office-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.office-ic svg { width: 19px; height: 19px; }
.office-card .btn { margin-top: auto; }
.office-map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunk); }
.office-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
/* Google's embed has no dark style; invert it so it doesn't glare in dark mode. */
[data-theme="dark"] .office-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .office-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); } }

/* Click-to-load placeholder: a quiet street-grid pattern behind a centred notice. */
.map-consent {
  position: relative; display: grid; place-items: center; padding: 32px 24px;
  background-color: var(--bg-sunk);
  background-image:
    linear-gradient(115deg, transparent 47%, color-mix(in srgb, var(--ink) 9%, transparent) 47% 49.5%, transparent 49.5%),
    linear-gradient(25deg, transparent 62%, color-mix(in srgb, var(--ink) 7%, transparent) 62% 64%, transparent 64%),
    repeating-linear-gradient(0deg, transparent 0 46px, var(--line) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--line) 46px 47px);
}
.map-consent-body {
  position: relative; max-width: 420px; text-align: center;
  display: grid; justify-items: center; gap: 12px;
  padding: 28px 26px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
}
.map-consent-pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.map-consent-pin svg { width: 22px; height: 22px; }
.map-consent-body h3 { font-size: 1.25rem; }
.map-consent-body p { font-size: 14px; color: var(--ink-2); }
.map-consent-body p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.map-consent-body .btn { margin-top: 4px; }
.js .map-nojs { display: none; }
.office-map.map-loaded { display: block; padding: 0; background: var(--bg-sunk); }
@media (max-width: 900px) {
  .office-grid { grid-template-columns: 1fr; }
  .office-card { padding: 28px 24px; }
  .office-map, .office-map iframe { min-height: 300px; }
}
