@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --palette-paper: #f6f5f0;
  --palette-ink: #182b22;
  --palette-surface-light: #faf9f5;
  --palette-surface-dark: #13251d;
  --palette-border-dark: #4f6657;
  --palette-border-light: #bfc6bd;
  --palette-sage: #758d69;
  --palette-muted-light: #657160;
  --palette-muted-dark: #b7c7b2;
  --palette-field-dark: #1c3025;
  --palette-raised-dark: #253b2e;
  --palette-raised-light: #e8ece3;
  --text: var(--palette-ink);
  --surface: var(--palette-paper);
  --surface-header: var(--palette-surface-light);
  --surface-control: var(--palette-surface-light);
  --text-muted: var(--palette-muted-light);
  --border: var(--palette-border-light);
  --focus: #49633d;
  --error: #a12222;
  --success: #285b36;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Bebas Neue', sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --width-reading: 660px;
  --width-content: 1040px;
  --width-page: 1200px;
  --radius-control: 0;
  --border-width: 1px;
  --shadow-overlay: 0 12px 32px #0003;
  --layer-header: 5;
  --layer-overlay: 10;
  --motion-fast: 200ms;
}
html[data-theme="dark"] {
  --text: var(--palette-paper);
  --surface: var(--palette-surface-dark);
  --surface-header: var(--palette-surface-dark);
  --surface-control: var(--palette-field-dark);
  --text-muted: var(--palette-muted-dark);
  --border: var(--palette-border-dark);
  --focus: #c5dcb6;
  --error: #ffb4ab;
  --success: #b6dcb6;
}
* { box-sizing: border-box; }
    html { background: var(--palette-paper); scroll-behavior: smooth; }
    body { margin: 0; color: var(--text); font-family: var(--font-body); line-height: 1.7; }
    body::before, body::after { content: ''; position: fixed; inset: 0; background-position: calc(50% + var(--map-x, 0px)) var(--map-y, 0px); background-size: var(--map-size, cover); background-repeat: no-repeat; pointer-events: none; }
    body::before { z-index: -2; background-color: #fafafa; background-image: var(--map-preview, url('/assets/collage/preview.webp')); filter: blur(5px); }
    body::after { z-index: -1; background-image: var(--map-full-image, none); opacity: 0; transition: opacity 650ms ease; }
    html.map-ready body::after { opacity: 1; }
    @property --map-reveal { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
    html.has-dissolve.map-ready body::after {
      transition: none;
      animation: map-dissolve 1800ms ease-out both;
      mask-image:
        radial-gradient(ellipse at 8% 24%, #000 calc(var(--map-reveal) * .65), transparent var(--map-reveal)),
        radial-gradient(ellipse at 34% 12%, #000 calc(var(--map-reveal) * .75), transparent var(--map-reveal)),
        radial-gradient(ellipse at 72% 20%, #000 calc(var(--map-reveal) * .6), transparent var(--map-reveal)),
        radial-gradient(ellipse at 22% 78%, #000 calc(var(--map-reveal) * .7), transparent var(--map-reveal)),
        radial-gradient(ellipse at 53% 55%, #000 calc(var(--map-reveal) * .6), transparent var(--map-reveal)),
        radial-gradient(ellipse at 90% 80%, #000 calc(var(--map-reveal) * .7), transparent var(--map-reveal));
    }
    @keyframes map-dissolve {
      0% { --map-reveal: 0%; opacity: 0; filter: blur(6px) brightness(1.16) saturate(.8); }
      25% { --map-reveal: 20%; opacity: 1; filter: blur(0) brightness(1.08) saturate(1); }
      70% { --map-reveal: 65%; filter: blur(0) brightness(1.02) saturate(1); }
      100% { --map-reveal: 150%; opacity: 1; filter: none; }
    }
    html.has-dissolve.map-revealed body::after { animation: none; mask-image: none; filter: none; opacity: 1; }
    @media (prefers-reduced-motion: reduce) { body::after { transition: none; } }
    @media (prefers-reduced-motion: reduce) { html.has-dissolve.map-ready body::after { animation: none; mask-image: none; filter: none; } }
    a { color: inherit; text-underline-offset: 5px; }
    a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
    html { color-scheme: light; }
    html[data-theme="dark"] { color-scheme: dark; background: var(--palette-surface-dark); }
    html[data-theme="dark"] body { color: var(--palette-paper); }
    html[data-theme="dark"] header { background: var(--palette-surface-dark); }
    html[data-theme="dark"] .projects { background: var(--palette-surface-dark); }
    html[data-theme="dark"] .project-art { background: var(--palette-raised-dark); border-color: var(--palette-border-dark); }
    html[data-theme="dark"] .project:nth-child(2) .project-art,
    html[data-theme="dark"] .project:nth-child(6) .project-art { background: #343b2e; }
    html[data-theme="dark"] .project:nth-child(3) .project-art,
    html[data-theme="dark"] .project:nth-child(4) .project-art { background: #20392e; }
    html[data-theme="dark"] .status, html[data-theme="dark"] .form-note,
    html[data-theme="dark"] .project-placeholder { color: var(--palette-muted-dark); }
    html[data-theme="dark"] .section-heading, html[data-theme="dark"] .contact,
    html[data-theme="dark"] footer { border-color: var(--palette-border-dark); }
    html[data-theme="dark"] input, html[data-theme="dark"] textarea { background: var(--palette-field-dark); color: var(--palette-paper); border-color: var(--palette-border-dark); }
    html[data-theme="dark"] nav a:hover { background: var(--palette-paper); color: var(--palette-ink); }
    html[data-theme="dark"] input:focus-visible, html[data-theme="dark"] textarea:focus-visible,
    html[data-theme="dark"] button:focus-visible { outline-color: var(--focus); }
    .theme-toggle { display: inline-grid; place-items: center; align-self: center; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--palette-ink); color: var(--palette-paper); border: 1px solid var(--palette-border-dark); cursor: pointer; }
    .theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .theme-toggle .sun { display: none; }
    html[data-theme="dark"] .theme-toggle .moon { display: none; }
    html[data-theme="dark"] .theme-toggle .sun { display: block; }
    .hero { height: calc(100svh - 150px); min-height: 210px; padding: 0 0 20px; display: flex; flex-direction: column; }
    header { z-index: var(--layer-header); flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 24px clamp(20px, 4vw, 64px); background: var(--palette-surface-light); text-align: left; }
    .masthead { min-width: 0; flex-shrink: 1; display: grid; justify-items: start; }
    .home-link { text-decoration: none; }
    h1 { margin: 0; font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 6.5vw, 96px); line-height: 1; letter-spacing: .015em; }
    .subtitle { margin: 10px 0 0 2px; font-size: 11px; line-height: 1.5; letter-spacing: 1.5px; text-transform: uppercase; }
    nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-1); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
    nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px; line-height: 1; text-decoration: none; }
    nav a:hover { background: var(--palette-ink); color: var(--palette-surface-light); }
    .hero-center { flex: 1; cursor: grab; touch-action: pan-y; user-select: none; position: relative; overflow: hidden; }
    .map-regions { position: absolute; max-width: none; pointer-events: none; }
    .map-region { pointer-events: auto; cursor: grab; }
    .map-region polygon { fill: transparent; }
    .river-hit { fill: none; stroke: transparent; stroke-width: 24px; pointer-events: stroke; }
    .map-region:focus-visible .river-hit { stroke: currentColor; stroke-width: 2px; vector-effect: non-scaling-stroke; }
    .map-region:focus-visible { outline: none; }
    .map-region:focus-visible polygon { stroke: currentColor; stroke-width: 2px; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
    .map-tooltip { pointer-events: auto; position: absolute; z-index: 1; max-width: calc(100% - 24px); padding: 10px 14px; background: var(--palette-surface-light); color: var(--palette-ink); border: 1px solid var(--palette-border-light); font-size: 14px; line-height: 1.4; box-shadow: 0 4px 16px #0003; cursor: default; }
    html[data-theme="dark"] .map-tooltip { background: var(--palette-ink); color: var(--palette-surface-light); border-color: var(--palette-sage); }
    .hero-center.dragging { cursor: grabbing; }
    .maple-leaf { width: 15px; height: 15px; vertical-align: -3px; margin-right: 7px; fill: currentColor; }
    h2, .case-services h3 { font-family: var(--font-heading); margin: 0 0 22px; font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: .015em; }
    .about { max-width: var(--width-reading); margin: 64px auto 0; font-size: 17px; line-height: 1.75; scroll-margin-top: 32px; }
    .about h2 { text-transform: uppercase; }
    .projects { margin: 0 auto; padding: 20px clamp(20px, 5vw, 80px) 64px; background: var(--palette-paper); animation: project-bump 1.2s .4s ease-in-out both; }
    @keyframes project-bump { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-16px); } }
    .projects-inner { max-width: 1280px; margin: auto; }
    .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid var(--palette-border-light); padding-bottom: 20px; margin-bottom: 24px; }
    .section-heading h2 { margin: 0; text-transform: uppercase; }
    .section-heading span { font-size: 11px; white-space: nowrap; }
    .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
    .project { margin: 0; }
    .project-invite { display: block; text-decoration: none; }
    .project-invite .project-art { border: 1px dashed currentColor; background: transparent; transition: background .2s; }
    .project-invite:hover .project-art { background: #dfe7df; }
    .invite-content { padding: 20px; text-align: center; }
    .invite-plus { display: block; margin-bottom: 18px; font-size: 48px; line-height: 1; }
    .invite-title { display: block; font-family: var(--font-heading); font-size: clamp(26px, 3vw, 42px); }
    .invite-copy { display: block; margin-top: 12px; font-size: 11px; line-height: 1.6; }
    html[data-theme="dark"] .project-invite:hover .project-art { background: #2c4635; }
    .project-art { width: 100%; min-height: 0; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1px solid #ccd1c7; background: var(--palette-raised-light); }
    .project:nth-child(2) .project-art, .project:nth-child(6) .project-art { background: #e7e4db; }
    .project:nth-child(3) .project-art, .project:nth-child(4) .project-art { background: #dfe7df; }
    .project-number { position: absolute; bottom: 18px; right: 18px; font-size: 11px; }
    .project-placeholder { font: 400 clamp(52px, 6vw, 84px)/1 var(--font-body); color: #768674; }
    figcaption { padding: 18px 0 26px; display: flex; justify-content: space-between; gap: var(--space-3); font-size: 12px; }
    .status { color: var(--palette-muted-light); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
    .contact { max-width: var(--width-reading); margin: 72px auto 0; padding-top: 32px; border-top: 1px solid var(--palette-border-light); scroll-margin-top: 32px; }
    .contact p { font-size: 16px; line-height: 1.8; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .field { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; min-width: 0; }
    label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
    input, textarea { width: 100%; min-width: 0; padding: 14px; border: 1px solid var(--palette-border-light); border-radius: 0; color: var(--palette-ink); background: var(--palette-surface-light); font: 16px/1.5 var(--font-body); }
    textarea { min-height: 160px; resize: vertical; }
    input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
    #contact-name.contact-highlight { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(117,141,105,.2); }
    button { padding: 16px 24px; border: 1px solid var(--border); background: var(--surface-control); color: var(--text); font: 11px var(--font-body); text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
    button:disabled { opacity: .5; cursor: not-allowed; }
    .form-note { color: var(--palette-muted-light); }
    footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1280px; margin: 42px auto 0; padding-top: 24px; border-top: 1px solid var(--palette-border-light); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.8; }
    @media (max-width: 800px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
    @media (max-width: 520px) {
      .hero { padding: 0 0 20px; }
      header { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: 20px 16px 12px; }
      .subtitle { font-size: 9px; letter-spacing: 1px; }
      nav { font-size: 10px; letter-spacing: 1px; }
      nav { gap: var(--space-5); }
      h1 { font-size: clamp(38px, 12vw, 60px); }
      .about { font-size: 16px; margin-top: 48px; }
      .project-grid { gap: var(--space-4); }
      .form-row { grid-template-columns: 1fr; gap: 0; }
      .form-row .field { margin-bottom: 0; }
      .section-heading { align-items: flex-end; }
      .section-heading span { font-size: 9px; }
      .project-number { bottom: 12px; right: 12px; }
      figcaption { flex-direction: column; gap: var(--space-2); font-size: 11px; }
      footer { flex-direction: column; gap: var(--space-2); }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .projects { animation: none; } }

    .content-section { max-width: var(--width-reading); margin: 72px auto 0; scroll-margin-top: 32px; font-size: 17px; line-height: 1.75; }
    .content-section h2 { text-transform: uppercase; }
    .faq details { border-bottom: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
    .faq-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
    .faq-heading h2 { margin: 0; }
    .faq-toggle-all { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; width: 44px; height: 44px; background: transparent; color: inherit; border: 0; }
    .faq-toggle-all svg { width: 16px; height: 16px; opacity: .55; }
    .faq-toggle-all:hover svg, .faq-toggle-all:focus-visible svg { opacity: 1; }
    .faq-toggle-all[hidden], .faq-toggle-all [hidden] { display: none; }
    .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 18px 0; font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after { content: '+'; flex: 0 0 44px; text-align: center; }
    .faq details[open] > summary::after { content: '−'; }
    .faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
    .faq p { margin: 0; padding-bottom: 20px; }
    .post-list { border-top: 1px solid var(--palette-border-light); }
    .post-link { display: flex; justify-content: space-between; gap: var(--space-5); padding: 24px 0; border-bottom: 1px solid var(--palette-border-light); text-decoration: none; font-size: 14px; line-height: 1.6; }
    .post-link:hover span:first-child { text-decoration: underline; text-underline-offset: 5px; }
    html[data-theme="dark"] .post-list, html[data-theme="dark"] .post-link { border-color: var(--palette-border-dark); }
    .page-content { padding: 64px clamp(20px, 5vw, 80px); background: var(--palette-paper); min-height: 75svh; }
    html[data-theme="dark"] .page-content { background: var(--palette-surface-dark); }
    body.inner-page::before, body.inner-page::after { display: none; }
    .reading { max-width: var(--width-reading); margin: auto; font-size: 17px; line-height: 1.75; }
    .reading > h2 { margin-bottom: 32px; }
    .privacy-page .reading h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: .015em; }
    .reading section { margin-top: 48px; }
    .reading ul { padding-left: 22px; }
    .reading li { margin-bottom: 12px; }
    .reading .back-link { display: inline-block; margin-top: 40px; }
    #updates-status:empty { display: none; }
    @media (max-width: 1100px) {
      header { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
      nav { justify-content: flex-start; }
    }
    @media (max-width: 520px) {
      nav { gap: 8px 18px; }
      .content-section { margin-top: 48px; font-size: 16px; }
      .page-content { padding-top: 40px; }
    }

    .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

    .header-tools { min-width: 0; width: min(100%, 440px); display: grid; justify-items: stretch; gap: var(--space-3); }
    .header-tools nav { width: 100%; justify-content: space-between; }
    .header-signup { width: 100%; margin: 0; }
    .header-signup label { display: block; margin-bottom: 8px; font-size: 12px; text-transform: none; letter-spacing: 0; }
    .signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: 44px; border: 1px solid var(--palette-border-light); }
    .signup-row:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
    .signup-row input { width: 100%; height: 100%; padding: 0 12px; font-size: 16px; line-height: 1.25; border: 0; }
    .header-signup .signup-row input:focus-visible { outline: none; }
    .signup-row button { min-height: 0; height: 100%; padding: 0 14px; text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 1.25; border: 0; border-left: 1px solid var(--border); background: var(--palette-raised-light); color: var(--text); }
    html[data-theme="dark"] .signup-row button { background: var(--palette-raised-dark); }
    html[data-theme="dark"] .signup-row { border-color: var(--palette-border-dark); }
    .header-signup #updates-status { max-width: 380px; margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
    @media (max-width: 1100px) { .header-tools { width: min(100%, 440px); justify-items: stretch; } }

    footer { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .footer-nav { grid-column: 1 / -1; width: calc(100% + 20px); margin-inline: -10px; justify-content: flex-start; gap: var(--space-5); }
    @media (max-width: 520px) { footer { grid-template-columns: 1fr; } .footer-nav { gap: 8px 20px; } }

    :is(header, .projects, .page-content, .project-art, button) { position: relative; isolation: isolate; }
    :is(header, .projects, .page-content, .project-art, button)::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: inherit;
      background: url('/assets/grain.webp') repeat;
      opacity: .18;
      mix-blend-mode: soft-light;
      pointer-events: none;
    }

    .project-link { display: block; text-decoration: none; }
    .project-preview { padding: 0; overflow: hidden; }
    .project-preview img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity .2s; }
    .project-preview .project-number { z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: var(--palette-surface-light); color: var(--palette-ink); }
    html[data-theme="dark"] .project-preview .project-number { background: var(--palette-ink); color: var(--palette-surface-light); }
    .project-link:hover .project-preview img { opacity: .92; }
    .project-link:hover figcaption > span:first-child { text-decoration: underline; text-underline-offset: 5px; }
    .project-case { max-width: var(--width-content); }
    .case-intro { max-width: none; }
    .project-visit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--text); border-radius: var(--radius-control); background: var(--text); color: var(--surface); font-size: 15px; font-weight: 600; text-decoration: none; }
    .project-visit-button:hover { background: var(--surface); color: var(--text); }
    .case-quote { position: relative; margin: 24px 0 40px; padding: 24px; border: 0; border-left: 2px solid var(--border); background: color-mix(in srgb, var(--palette-raised-light) 35%, transparent); font-size: 18px; line-height: 1.65; }
    html[data-theme="dark"] .case-quote { background: color-mix(in srgb, var(--palette-raised-dark) 35%, transparent); }
    .case-quote p { margin: 0; }
    .case-quote-mark { display: inline-block; margin-right: 4px; font-family: Georgia, serif; font-size: 2em; line-height: 0; vertical-align: -.18em; color: var(--text-muted); }
    .case-quote p + p { margin-top: 20px; }
    .case-quote .case-quote-attribution { display: block; margin: 16px 0 0; padding: 0; border: 0; font-family: var(--font-body); font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text-muted); }
    .case-image { display: block; width: 100%; height: auto; margin-top: 32px; border: 1px solid var(--palette-border-light); }
    .case-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
    @media (max-width: 640px) { .case-services { grid-template-columns: 1fr; } }
    @media (prefers-reduced-motion: reduce) { .project-preview img { transition: none; } }


    .process-content { max-width: var(--width-content); }
    .process-content > p { margin: 0 0 28px; }
    .illustrated-page .contact, .process-page footer { max-width: var(--width-content); }
    .contact-inner { max-width: var(--width-reading); margin-inline: auto; }
    .process-table-frame { width: 100%; overflow-x: auto; border: 1px solid var(--palette-border-light); }
    .process-table-frame:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
    .process-table { width: 100%; min-width: 500px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.75; }
    .process-table th, .process-table td { padding: 13px 16px; border-bottom: 1px solid var(--palette-border-light); text-align: left; vertical-align: top; }
    .process-table thead th { background: var(--palette-raised-light); font-size: 14px; font-weight: 600; }
    .process-table th:first-child { width: 25%; }
    .process-table tbody th { font-weight: 500; }
    .process-table tbody tr:last-child > * { border-bottom: 0; }
    html[data-theme="dark"] .process-table-frame, html[data-theme="dark"] .process-table th, html[data-theme="dark"] .process-table td { border-color: var(--palette-border-dark); }
    html[data-theme="dark"] .process-table thead th { background: var(--palette-raised-dark); }

    .process-stages th:first-child { width: 8%; }
    .process-stages th:nth-child(2) { width: 18%; }
    .process-stages td > p { margin: 0; }
    .process-stages td > p + p { margin-top: 12px; }
    .process-stage-number { color: var(--palette-muted-light); font-variant-numeric: tabular-nums; }
    html[data-theme="dark"] .process-stage-number { color: var(--palette-muted-dark); }

    .case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
    .case-gallery figure { margin: 0; }
    .case-gallery figcaption { font-size: 14px; line-height: 1.6; }
    @media (max-width: 640px) { .case-gallery { grid-template-columns: 1fr; } }
    .menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; background: transparent; color: inherit; border: 0; }
    .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
    .menu-toggle::after { content: none; }
    .menu-close { display: none; }
    .menu-open .menu-bars { display: none; }
    .menu-open .menu-close { display: block; }
    @media (max-width: 768px) {
      header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px 12px; z-index: var(--layer-header); }
      html.has-menu .menu-toggle { display: inline-grid; place-items: center; justify-self: end; align-self: start; }
      .header-tools { grid-column: 1 / -1; }
      html.has-menu .header-tools { display: grid; }
      .header-tools nav { justify-content: flex-start; gap: 8px 12px; }
      html.has-menu .header-tools nav { display: none; position: absolute; top: calc(100% + 8px); right: 24px; width: min(240px, calc(100vw - 32px)); padding: 8px; flex-direction: column; align-items: stretch; gap: 0; background: var(--palette-surface-light); border: 1px solid var(--palette-border-light); box-shadow: var(--shadow-overlay); z-index: var(--layer-overlay); font-size: 14px; letter-spacing: 1px; }
      html.has-menu .menu-open .header-tools nav { display: flex; }
      html[data-theme="dark"].has-menu .header-tools nav { background: var(--palette-ink); border-color: var(--palette-border-dark); }
      .header-tools nav a { min-height: 44px; }
      .header-tools nav .theme-toggle { align-self: flex-start; margin: 8px 10px; }
    }
    @media (max-width: 520px) { html.has-menu .header-tools nav { right: 16px; } }
    @media (max-width: 640px) {
      .project-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
      .process-table { display: block; min-width: 0; }
      .process-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
      .process-table tbody { display: block; }
      .process-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: 18px 16px; border-bottom: 1px solid var(--palette-border-light); }
      .process-table tbody tr:last-child { border-bottom: 0; }
      .process-table tbody th, .process-table tbody td { display: block; width: auto; padding: 0; border: 0; overflow-wrap: anywhere; }
      .process-table tbody th { font-weight: 600; }
      .process-table tbody th:first-child, .process-table tbody th:nth-child(2) { width: auto; }
      .process-stages tbody tr { grid-template-columns: 2em minmax(0, 1fr); }
      .process-stages .process-stage-number { grid-column: 1; grid-row: 1; }
      .process-stages tbody th { grid-column: 2; grid-row: 1; }
      .process-stages tbody td:not(.process-stage-number) { grid-column: 2; }
      html[data-theme="dark"] .process-table tbody tr { border-color: var(--palette-border-dark); }
    }


    .projects-inner > .about { margin: 24px auto 64px; }

    .services { margin: 32px 0; }

    .services-table th:first-child { width: 34%; }
    @media (max-width: 640px) { .services-table tbody th:first-child { width: auto; } }


    .contact-needs { min-width: 0; padding: 0; border: 0; margin: 24px 0; }
    .contact-needs legend { padding: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
    .contact-need-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin-top: 10px; }
    .contact-need-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; line-height: 1.5; text-transform: none; letter-spacing: normal; cursor: pointer; }
    .contact-need-options input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; padding: 0; appearance: none; border: 1px solid var(--palette-muted-light); border-radius: 50%; background: var(--palette-surface-light); display: grid; place-content: center; cursor: pointer; }
    .contact-need-options input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--palette-ink); transform: scale(0); }
    .contact-need-options input:checked::before { transform: scale(1); }
    html[data-theme="dark"] .contact-need-options input { border-color: var(--palette-sage); background: var(--palette-field-dark); }
    html[data-theme="dark"] .contact-need-options input::before { background: var(--palette-muted-dark); }
    @media (max-width: 520px) { .contact-need-options { grid-template-columns: 1fr; } }

    @media (hover: hover) {
      .process-table tbody tr:hover { background: var(--palette-raised-light); }
      html[data-theme="dark"] .process-table tbody tr:hover { background: var(--palette-raised-dark); }
    }

    .map-regions[hidden] { display: none; }
    .background-picker { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: flex; gap: var(--space-1); padding: 4px; border: 1px solid var(--palette-border-light); background: var(--palette-surface-light); color: var(--palette-ink); }
    .background-picker button { min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: inherit; text-transform: none; letter-spacing: normal; font-size: 13px; }
    .background-picker button[aria-pressed="true"], .background-picker button:hover { background: var(--palette-raised-light); }
    html[data-theme="dark"] .background-picker { background: var(--palette-surface-dark); color: var(--palette-paper); border-color: var(--palette-border-dark); }
    html[data-theme="dark"] .background-picker button[aria-pressed="true"], html[data-theme="dark"] .background-picker button:hover { background: var(--palette-raised-dark); }
    @media (max-width: 520px) { .background-picker { right: 12px; bottom: 12px; } }

    .background-picker { gap: 0; padding: 0; }
    .background-picker button { display: grid; place-items: center; width: 44px; height: 44px; padding: 8px; }
    .background-picker button span { width: 28px; height: 28px; background: url('/assets/map/swatch.webp') center / cover; border: 1px solid var(--palette-sage); }
    .background-picker button[data-background-choice="forest"] span { background-image: url('/assets/forest/swatch.webp'); }
    .background-picker button[aria-pressed="true"] span { outline: 2px solid currentColor; outline-offset: 2px; }

    .illustrated-page .page-content { width: 100%; max-width: 1200px; margin-inline: auto; }
    @media (min-width: 1201px) {
      body.illustrated-page::before { display: block; inset: 0; background-image: var(--process-image, url('/assets/map/preview.webp')); background-size: cover; background-position: center; filter: none; }
      body.illustrated-page::after { display: block; inset: 0; background-image: none; background-color: rgba(246, 245, 240, .86); opacity: 1; transition: none; }
      html[data-theme="dark"] body.illustrated-page::after { background-color: rgba(19, 37, 29, .86); }
    }

    .illustrated-page header { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: var(--space-5); }
    .illustrated-page .masthead { justify-items: start; }
    .illustrated-page .subtitle { margin-left: 0; }
    .illustrated-page .header-tools { width: min(100%, 440px); margin-inline: 0; }
    @media (min-width: 769px) { .illustrated-page .header-tools nav { justify-content: space-between; gap: var(--space-1); } }
    @media (min-width: 769px) and (max-width: 1100px) { .illustrated-page header { flex-direction: column; align-items: flex-start; gap: var(--space-4); } .illustrated-page h1 { font-size: clamp(40px, 5.5vw, 60px); } }
    @media (max-width: 768px) {
      .illustrated-page header { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); text-align: left; }
      .illustrated-page .masthead { grid-column: 1 / -1; padding: 0 44px 0 0; justify-items: start; }
      .illustrated-page .header-tools { margin-inline: 0; }
      .illustrated-page h1 { font-size: clamp(28px, 7.5vw, 48px); }
      .illustrated-page .subtitle { font-size: 10px; }
      html.has-menu .illustrated-page .menu-toggle { position: absolute; top: 20px; right: clamp(20px, 5vw, 80px); }
    }

    .illustrated-page header { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(clamp(20px, 5vw, 80px), calc((min(100vw, 1200px) - 1040px) / 2)); }

    .background-picker button[data-background-choice="collage"] span { background-image: url('/assets/collage/swatch.webp'); }
    [data-background="collage"] .river-hit { stroke-width: 60px; }

    html.skip-map-reveal body::after { transition: none; }

    .process-image { display: block; width: 100%; height: auto; margin: 0 0 40px; }

    .background-picker button[data-background-choice="city"] span { background-image: url('/assets/city/swatch.webp'); }
    [data-background="city"] .river-hit { stroke-width: 60px; }

    #contact-status:empty { display: none; }
    .header-signup > .form-note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }

    .form-confirmation { width: min(440px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--palette-border-light); background: var(--palette-paper); color: var(--palette-ink); }
    .form-confirmation::backdrop { background: #0009; backdrop-filter: blur(4px); }
    .form-confirmation h2 { margin-bottom: 16px; }
    .form-confirmation p { margin: 0 0 24px; font-size: 16px; line-height: 1.7; }
    .form-confirmation button { width: 100%; }
    html[data-theme="dark"] .form-confirmation { background: var(--palette-surface-dark); color: var(--palette-paper); border-color: var(--palette-border-dark); }

    .screenshot-trigger { display: block; width: 100%; padding: 0; margin-top: 32px; border: 0; background: transparent; cursor: zoom-in; }
    .screenshot-trigger::after { content: none; }
    .screenshot-trigger .case-image { margin-top: 0; }
    .screenshot-lightbox { width: min(1312px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 16px; border: 1px solid var(--palette-border-light); background: var(--palette-paper); color: var(--palette-ink); }
    .screenshot-lightbox::backdrop { background: #000b; backdrop-filter: blur(4px); }
    .lightbox-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
    .lightbox-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; background: transparent; color: inherit; border: 0; }
    .lightbox-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
    .screenshot-lightbox figure { margin: 0; }
    .lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 160px); margin-inline: auto; }
    .screenshot-lightbox figcaption { display: block; padding: 12px 0 0; font-size: 14px; line-height: 1.5; }
    html[data-theme="dark"] .screenshot-lightbox { background: var(--palette-surface-dark); color: var(--palette-paper); border-color: var(--palette-border-dark); }

    html.lightbox-open { overflow: hidden; }


    @media (min-width: 769px) {
      .header-tools { flex-shrink: 0; }
      .header-tools nav { flex-wrap: wrap; }
      .header-tools nav a, .header-tools nav .theme-toggle { flex-shrink: 0; white-space: nowrap; }
    }

/* Shared interaction and accessibility foundations. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 16px; background: var(--surface); color: var(--text); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
button { min-height: 44px; border-radius: var(--radius-control); }
button:active:not(:disabled) { filter: brightness(.9); }
button[aria-busy="true"] { cursor: progress; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
[data-status="error"] { color: var(--error); }
[data-status="success"] { color: var(--success); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.reference-actions, .reference-swatches { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.reference-swatches > span { padding: var(--space-3); border: var(--border-width) solid var(--border); }

input, textarea, .signup-row { border-color: var(--text-muted); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] .signup-row { border-color: var(--text-muted); }
.theme-toggle { width: 44px; height: 44px; }

.map-regions { visibility: hidden; }
.map-regions[data-positioned] { visibility: visible; }
/* Keep the multi-mask dissolve on desktop; use a simple fade on small screens. */
@media (max-width: 768px) {
  html.has-dissolve.map-ready body::after { animation: none; mask-image: none; filter: none; transition: opacity 200ms ease; }
  html.has-dissolve.skip-map-reveal body::after { transition: none; }
}

.reference-projects { max-width: 320px; grid-template-columns: 1fr; margin-block: var(--space-5); }

summary { cursor: pointer; padding-block: var(--space-3); min-height: 44px; }
summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
/* Allow names and headings to reflow when visitors enlarge text. */
h1, h2, h3, .subtitle { overflow-wrap: anywhere; }

/* Two-colour landmark outlines remain visible over light and dark map artwork. */
.map-region:focus-visible polygon, .map-region:focus-visible .river-hit {
  stroke: #000;
  stroke-width: 3px;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
:root input[aria-invalid="true"], :root textarea[aria-invalid="true"] { border-color: var(--error); }
.theme-toggle { border: 0; background: transparent; }
.theme-toggle::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--palette-border-dark); border-radius: 50%; background: var(--palette-ink); z-index: -1; }
.theme-toggle::after { inset: 6px; }

/* Give missing-page recovery the space and scale of a landing section. */
.not-found { max-width: 1040px; margin: clamp(24px, 7vw, 100px) auto clamp(64px, 12vw, 160px); }
.not-found h2 { font-size: clamp(52px, 7vw, 96px); line-height: 1.05; margin-bottom: 28px; }
.not-found p { max-width: 850px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.65; }

/* Dissolve the image while the full-width summary stays in place. */
.project-details-card { display: block; overflow: hidden; border: 0; background: var(--surface); }
.project-card-faces { position: absolute; inset: 0; }
.project-front, .project-back { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid var(--border); }
.project-front { z-index: 2; opacity: 1; transition: opacity 450ms ease; display: block; margin: 0; padding: 0; background: var(--surface); color: var(--text); cursor: pointer; }
.project-front img { pointer-events: none; }
.project-back { display: flex; flex-direction: column; width: 100%; right: auto; padding: var(--space-4); overflow: hidden; transition: none; background: var(--surface); color: var(--text); visibility: hidden; pointer-events: none; text-decoration: none; cursor: pointer; }
.project-details-card.is-showing-details .project-back { visibility: visible; pointer-events: auto; }
.project-back-copy { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.project-back h3 { margin: 0 0 var(--space-1); font: 600 14px/1.5 var(--font-body); }
.project-back section + section { margin-top: var(--space-3); }
.project-back p { overflow-wrap: anywhere; margin: 0; font-size: 15px; line-height: 1.5; }
.project-back-actions { flex-shrink: 0; display: block; margin-top: auto; padding-top: var(--space-3); font-size: 15px; line-height: 1.5; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .project-front, .project-back { transition: none; } }

.subtle-button, .project-visit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--palette-raised-light); color: var(--text); font-size: 14px; line-height: 1.5; font-weight: 400; text-decoration: none; }
html[data-theme="dark"] .subtle-button, html[data-theme="dark"] .project-visit-button { background: var(--palette-raised-dark); }
.subtle-button:hover, .project-visit-button:hover { background: var(--surface); color: var(--text); }

.solutions-menu { position: relative; }
.solutions-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px; line-height: 1; cursor: pointer; list-style: none; }
.solutions-menu > summary::-webkit-details-marker { display: none; }
.solutions-links { position: absolute; top: 100%; left: 0; min-width: 180px; padding: 6px; background: var(--surface-header); border: 1px solid var(--border); box-shadow: var(--shadow-overlay); z-index: var(--layer-overlay); }
.solutions-links a { display: flex; white-space: nowrap; }
.solutions-menu > summary:hover, .solutions-menu[open] > summary { background: var(--text); color: var(--surface); }
.solutions-links a:hover, .solutions-links a:focus-visible { background: var(--text); color: var(--surface); }
@media (max-width: 768px) {
  .solutions-links { position: static; min-width: 0; margin-left: 10px; box-shadow: none; border: 0; border-left: 1px solid var(--border); }
}

.about { max-width: var(--width-content); }
.service-stories { margin: 56px 0; }
.service-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding: 40px 0; }
.service-story:nth-child(even) .service-copy { grid-column: 2; grid-row: 1; }
.service-story:nth-child(even) .service-scene { grid-column: 1; grid-row: 1; }
.service-copy h3 { margin: 0 0 16px; font: 400 clamp(30px, 3.5vw, 42px)/1.15 var(--font-heading); letter-spacing: .015em; }
.service-copy p { margin: 0; }
.service-scene { position: relative; min-height: 290px; width: 100%; max-width: 440px; margin-inline: auto; }
.service-story .service-scene::before { content: ''; position: absolute; inset: -44px -24px; background: url('/assets/services-city-map.webp') center 45% / cover no-repeat; opacity: .85; mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / .12) 5%, rgb(0 0 0 / .45) 12%, rgb(0 0 0 / .8) 22%, #000 34%, #000 66%, rgb(0 0 0 / .8) 78%, rgb(0 0 0 / .45) 88%, rgb(0 0 0 / .12) 95%, transparent 100%), linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / .12) 5%, rgb(0 0 0 / .45) 12%, rgb(0 0 0 / .8) 22%, #000 34%, #000 66%, rgb(0 0 0 / .8) 78%, rgb(0 0 0 / .45) 88%, rgb(0 0 0 / .12) 95%, transparent 100%); mask-composite: intersect; }
.service-story .service-scene-label, .service-story .service-scene-note { z-index: 2; padding: 3px 7px; border-radius: 3px; background: var(--surface); }
.service-scene-label { position: absolute; top: 8px; left: 8%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.service-float { position: absolute; width: 78%; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 6px 20px #00000008; font-size: 13px; line-height: 1.5; }
.service-float-1 { top: 44px; left: 3%; transform: rotate(-3deg); }
.service-float-2 { top: 115px; right: 0; z-index: 1; transform: rotate(2deg); }
.service-float-3 { top: 186px; left: 6%; transform: rotate(-1deg); }
.service-card-title, .service-card-status { display: block; }
.service-card-title { font-weight: 600; }
.service-card-status { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.service-card-dot { flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 5px; background: color-mix(in srgb, var(--palette-sage) 18%, transparent); }
.service-card-check { margin-left: auto; color: var(--text-muted); }
.service-scene-note { position: absolute; bottom: 0; right: 8%; font-size: 11px; color: var(--text-muted); }
@media (max-width: 640px) {
  .service-stories { margin: 32px 0; }
  .service-story { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0; }
  .service-story:nth-child(even) .service-copy, .service-story:nth-child(even) .service-scene { grid-column: auto; grid-row: auto; }
}
.service-copy .service-link { margin-top: 20px; }

.service-story:nth-child(2) .service-scene::before { transform: rotate(90deg); }
.service-story:nth-child(3) .service-scene::before { transform: rotate(180deg); }

@media (max-width: 640px) {
  .service-story .service-scene::before { inset: -32px -8px; }
}

.solutions-intro { padding: 36px clamp(20px, 4vw, 48px); background: var(--palette-raised-light); border-block: 1px solid var(--border); text-align: center; }

.solutions-intro h2 { margin: 0 auto 16px; font-size: 36px; }
.solutions-intro p { max-width: var(--width-reading); margin: 0 auto; }

.service-scene { min-height: 350px; }
.scene-browser, .scene-web-preview, .scene-reader, .scene-security-view { position: absolute; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-header); box-shadow: 0 12px 30px #0002; }
.service-scene img { display: block; width: 100%; height: auto; }
.scene-window-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--surface-header); color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.scene-window-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--border); }
.scene-window-bar span { margin-left: 7px; }
.scene-browser { width: 83%; top: 20px; left: 0; transform: rotate(-4deg); }
.scene-web-preview { width: 37%; right: 0; top: 150px; transform: rotate(7deg); }
.scene-web-preview > span { display: block; padding: 6px; font-size: 10px; }
.scene-badge { position: absolute; bottom: 24px; left: 4%; padding: 10px 13px; background: var(--surface-header); border: 1px solid var(--border); border-radius: 20px; font-size: 11px; transform: rotate(-3deg); }
.scene-spark { position: absolute; right: 2%; top: 75px; color: var(--text-muted); }
.scene-note { position: absolute; left: 0; top: 12px; width: 56%; padding: 20px 16px; background: var(--palette-raised-light); border: 1px solid var(--border); color: var(--palette-ink); transform: rotate(-8deg); font-size: 13px; box-shadow: 0 8px 20px #0001; }
.scene-note-line { height: 1px; background: #758d6966; margin-top: 16px; }
.scene-note-line.short { width: 65%; }
.scene-note-tag { display: block; margin-top: 18px; font-size: 10px; }
.scene-reader { width: 76%; right: 0; top: 105px; transform: rotate(3deg); }
.scene-chat, .scene-answer { position: absolute; padding: 12px 15px; border: 1px solid var(--border); background: var(--surface-header); font-size: 12px; box-shadow: 0 5px 15px #0001; }
.scene-chat { left: 2%; bottom: 62px; border-radius: 12px 12px 12px 0; transform: rotate(-3deg); }
.scene-answer { right: 3%; bottom: 6px; border-radius: 12px 12px 0 12px; }
.scene-answer span { color: var(--text-muted); margin-right: 8px; }
.scene-security-view { width: 85%; right: 0; top: 38px; transform: rotate(3deg); }
.scene-shield { position: absolute; top: 2px; left: 0; width: 84px; height: 90px; display: grid; place-items: center; background: var(--surface-header); border: 1px solid var(--border); border-radius: 16px; color: var(--text-muted); transform: rotate(-10deg); box-shadow: 0 8px 20px #0002; }
.scene-checklist { position: absolute; width: 58%; bottom: 20px; left: 3%; padding: 12px 16px; border: 1px solid var(--border); background: var(--surface-header); transform: rotate(-5deg); border-radius: 5px; }
.scene-checklist > span { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 11px; }
.scene-checklist b { font-weight: 400; color: var(--text-muted); }
.scene-security-note { position: absolute; bottom: 0; right: 0; padding: 4px 7px; background: var(--surface); font-size: 10px; color: var(--text-muted); }
@media (max-width: 400px) { .service-scene { min-height: 320px; } .scene-web-preview { top: 130px; } .scene-badge { bottom: 22px; font-size: 10px; } }

/* Let the map artwork flow around the content rather than enclosing each row. */
.projects { overflow: clip; }
.solutions-intro { position: relative; isolation: isolate; min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: 60px 190px; background: transparent; border: 0; }
.solutions-intro h2, .solutions-intro p { position: relative; z-index: 1; }
.intro-fragment { position: absolute; width: 155px; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 10px 24px #0002; }
.intro-fragment img { display: block; width: 100%; height: auto; }
.intro-fragment-left { left: 12px; top: 55px; transform: rotate(-11deg); }
.intro-fragment-right { right: 12px; top: 70px; width: 135px; transform: rotate(12deg); }
.intro-caption { display: block; padding: 7px; font-size: 10px; line-height: 1.5; }
.service-stories { margin-top: 16px; }
.service-story { padding-block: 26px; }
.service-story .service-scene::before { inset: -100px -70px; opacity: .65; }
.service-copy { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .solutions-intro { padding: 40px 12px 155px; min-height: 320px; }
  .intro-fragment { width: 110px; }
  .intro-fragment-left { top: auto; bottom: 12px; left: 12%; }
  .intro-fragment-right { top: auto; bottom: 0; right: 12%; width: 90px; }
  .service-story .service-scene::before { inset: -90px -30px; }
}

.intro-code, .intro-chat, .intro-check, .intro-orbit, .intro-spark { position: absolute; color: var(--text-muted); pointer-events: none; }
@media (max-width: 640px) {
}

.service-scene { max-width: 400px; }
.service-story .service-scene::before { inset: -55px -30px; opacity: .55; }
@media (max-width: 640px) {
  .service-story .service-scene::before { inset: -45px -12px; }
}

.solutions-intro { min-height: 350px; }
.intro-tasks { position: absolute; left: 5%; bottom: 0; width: 175px; padding: 12px 15px; background: var(--surface-header); border: 1px solid var(--border); border-radius: 5px; box-shadow: 0 6px 16px #0001; transform: rotate(-6deg); text-align: left; }
.intro-task-heading { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; }
.intro-tasks > span:not(.intro-task-heading) { display: flex; align-items: center; gap: 7px; padding: 4px 0; font-size: 10px; line-height: 1.5; }
.intro-tasks i { width: 8px; height: 8px; border: 1px solid var(--border); border-radius: 2px; }
.intro-conversation { position: absolute; right: 6%; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transform: rotate(4deg); }
.intro-message, .intro-reply { padding: 9px 14px; border: 1px solid var(--border); background: var(--surface-header); font-size: 11px; line-height: 1.5; border-radius: 12px 12px 12px 0; }
.intro-reply { margin-left: 35px; border-radius: 12px 12px 0 12px; background: var(--surface-control); }
@media (max-width: 640px) {
  .solutions-intro { padding-bottom: 255px; }
  .intro-fragment-left { bottom: 115px; }
  .intro-fragment-right { bottom: 110px; }
  .intro-tasks { left: 1%; bottom: 0; width: 150px; padding: 9px 10px; }
  .intro-conversation { right: 0; bottom: 10px; gap: 6px; }
  .intro-message, .intro-reply { font-size: 9px; padding: 8px; }
  .intro-reply { margin-left: 14px; }
}

.solutions-intro h2 { font-size: clamp(38px, 4vw, 48px); line-height: 1.1; }
.service-stories { margin-top: 110px; }
@media (max-width: 640px) { .service-stories { margin-top: 80px; } }

.about { margin-top: 24px; }
.solutions-intro { min-height: 440px; padding: 110px 210px; }
.intro-fragment { width: 195px; }
.intro-fragment-left { left: 0; top: 75px; }
.intro-fragment-right { right: 0; top: 55px; width: 165px; }
.intro-tasks { left: 4%; bottom: 0; width: 215px; padding: 14px 18px; }
.intro-task-heading { font-size: 13px; }
.intro-tasks > span:not(.intro-task-heading) { font-size: 12px; padding-block: 5px; }
.intro-conversation { right: 1%; bottom: 0; }
.intro-message, .intro-reply { font-size: 13px; padding: 10px 15px; }
.intro-comment { position: absolute; left: 28%; top: 0; width: 220px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); transform: rotate(3deg); text-align: left; font-size: 12px; line-height: 1.5; box-shadow: 0 5px 15px #0001; }
.intro-comment-label, .intro-comment-answer { display: block; }
.intro-comment-label { font-size: 10px; color: var(--text-muted); margin-bottom: 5px; }
.intro-comment-answer { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--border); color: var(--text-muted); }
.intro-design { position: absolute; left: 38%; bottom: 0; width: 195px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-header); text-align: left; transform: rotate(-4deg); font-size: 11px; box-shadow: 0 5px 15px #0001; }
.intro-swatches { display: flex; gap: 6px; margin: 10px 0; }
.intro-swatches i { width: 30px; height: 26px; border: 1px solid var(--border); border-radius: 3px; background: var(--palette-sage); }
.intro-swatches i:nth-child(2) { background: var(--palette-paper); }
.intro-swatches i:nth-child(3) { background: var(--palette-ink); }
.intro-swatches i:nth-child(4) { background: #b7c7b2; }
.intro-design-label { color: var(--text-muted); font-size: 10px; }
@media (max-width: 800px) {
  .solutions-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 22px 18px; padding: 20px 8px; }
  .solutions-intro h2 { grid-column: 1 / -1; order: -2; }
  .solutions-intro p { grid-column: 1 / -1; order: -1; margin-bottom: 12px; }
  .intro-fragment, .intro-tasks, .intro-conversation, .intro-comment, .intro-design { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: 100%; min-width: 0; }
  .intro-fragment-left { transform: rotate(-5deg); }
  .intro-fragment-right { width: 80%; justify-self: center; transform: rotate(6deg); }
  .intro-tasks { padding: 10px; }
  .intro-tasks > span:not(.intro-task-heading) { font-size: 10px; }
  .intro-message, .intro-reply { font-size: 10px; padding: 8px; }
  .intro-comment { font-size: 10px; padding: 10px; }
  .intro-design { padding: 10px; font-size: 10px; }
  .intro-swatches { gap: 4px; }
  .intro-swatches i { width: 22px; height: 22px; }
}

.solutions-intro { min-height: 510px; }
.intro-versions { position: absolute; left: -12px; top: 42px; width: 245px; height: 200px; }
.intro-version { position: absolute; width: 178px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 8px 18px #0002; text-align: left; font-size: 10px; line-height: 1.5; }
.intro-version-old { top: 0; left: 0; transform: rotate(-13deg); }
.intro-version-new { top: 65px; left: 44px; transform: rotate(5deg); }
.intro-version-label { display: block; font-weight: 600; margin-bottom: 10px; }
.intro-wire-layout { display: flex; gap: 5px; margin-bottom: 10px; }
.intro-wire-layout i { width: 33%; height: 38px; border: 1px solid var(--border); border-radius: 2px; }
.intro-wire-refined { display: flex; gap: 8px; margin-bottom: 10px; }
.intro-wire-refined > i { width: 34%; border-radius: 3px; background: var(--palette-sage); opacity: .6; }
.intro-wire-refined > div { flex: 1; }
.intro-wire-refined b { display: block; height: 7px; margin: 5px 0; border-radius: 2px; background: var(--border); }
.intro-wire-refined b:last-child { width: 65%; }
.intro-revision { position: absolute; right: -8px; top: 205px; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; background: var(--surface-header); border: 1px solid var(--border); border-radius: 5px; font-size: 11px; text-align: left; transform: rotate(-5deg); box-shadow: 0 6px 16px #0002; }
.intro-revision-label { font-size: 10px; color: var(--text-muted); }
.intro-revision-before { color: var(--text-muted); text-decoration: line-through; }
.intro-fragment-left { top: 190px; left: -5px; width: 175px; transform: rotate(-8deg); }
.intro-fragment-right { top: 25px; right: 0; }
.intro-tasks { left: 5%; bottom: 0; transform: rotate(-4deg); }
.intro-comment { top: 5px; left: 36%; }
@media (max-width: 800px) {
  .solutions-intro { min-height: 0; }
  .intro-versions, .intro-revision { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; }
  .intro-versions { height: 190px; }
  .intro-version { width: 85%; padding: 9px; font-size: 9px; }
  .intro-version-new { left: 12%; top: 65px; }
  .intro-version-old { transform: rotate(-7deg); }
  .intro-revision { font-size: 10px; padding: 10px; }
  .intro-fragment-left, .intro-fragment-right, .intro-comment { top: auto; left: auto; right: auto; width: 100%; }
  .intro-fragment-right { width: 80%; }
  .intro-tasks { left: auto; bottom: auto; }
}

.intro-options { position: absolute; right: -15px; top: 120px; width: 210px; height: 180px; }
.intro-option { position: absolute; width: 155px; padding: 11px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-header); transform: rotate(11deg); text-align: left; font-size: 10px; box-shadow: 0 7px 17px #0002; }
.intro-option-front { left: 32px; top: 55px; transform: rotate(-6deg); }
.intro-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.intro-option-grid i { height: 20px; border: 1px solid var(--border); border-radius: 2px; }
.intro-option-rows { margin-top: 10px; }
.intro-option-rows i { display: block; height: 12px; margin-top: 5px; border-left: 4px solid var(--palette-sage); background: var(--surface-control); }
.intro-feedback { position: absolute; left: 18%; top: 265px; padding: 11px 14px; background: var(--surface-header); border: 1px solid var(--border); border-radius: 10px 10px 0 10px; text-align: left; transform: rotate(5deg); box-shadow: 0 6px 16px #0001; }
.intro-feedback span { display: block; font-size: 10px; line-height: 1.6; }
.intro-feedback span:first-child { color: var(--text-muted); }
.intro-release { position: absolute; top: 100px; left: 48%; padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-header); font-size: 10px; transform: rotate(-4deg); }
.intro-revision { top: 290px; right: 2%; }
@media (max-width: 800px) {
  .intro-options, .intro-feedback, .intro-release, .intro-revision { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; }
  .intro-options { height: 180px; }
  .intro-option { width: 83%; }
  .intro-option-front { left: 12%; }
  .intro-feedback { padding: 10px; }
  .intro-release { width: auto; justify-self: center; font-size: 9px; }
}

.solutions-intro { min-height: 600px; }
.intro-hosting, .intro-metrics, .intro-security-log { position: absolute; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 8px 20px #0002; text-align: left; }
.intro-hosting { left: 1%; top: 360px; width: 205px; transform: rotate(-5deg); }
.intro-metrics { right: 1%; top: 380px; width: 185px; transform: rotate(7deg); }
.intro-security-log { left: 27%; bottom: -5px; width: 235px; transform: rotate(3deg); }
.intro-panel-label { display: block; font-size: 9px; color: var(--text-muted); margin-bottom: 8px; }
.intro-panel-detail { display: block; margin-top: 7px; font-size: 9px; color: var(--text-muted); }
.intro-hosting-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.intro-hosting-status > i { width: 6px; height: 6px; background: var(--palette-sage); border-radius: 50%; }
.intro-uptime-bars { display: flex; gap: 3px; margin-top: 10px; }
.intro-uptime-bars i { flex: 1; height: 22px; background: var(--palette-sage); border-radius: 2px; opacity: .8; }
.intro-uptime-bars i:nth-child(5n) { opacity: .45; }
.intro-metrics svg { display: block; width: 100%; color: var(--text-muted); }
.intro-log-line { display: block; font-size: 11px; line-height: 1.7; }
.intro-log-blocked { color: var(--text-muted); padding-left: 10px; border-left: 2px solid var(--palette-sage); margin-top: 5px; }
.intro-tasks { bottom: 10px; left: 1%; }
.intro-design { bottom: 100px; left: 41%; }
.intro-conversation { bottom: 0; }
@media (max-width: 800px) {
  .solutions-intro { min-height: 0; }
  .intro-hosting, .intro-metrics, .intro-security-log, .intro-tasks, .intro-design, .intro-conversation { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; }
  .intro-hosting, .intro-metrics, .intro-security-log { padding: 10px; }
  .intro-hosting-status { font-size: 11px; }
  .intro-security-log { grid-column: 1 / -1; width: 75%; justify-self: center; }
}

.solutions-intro { min-height: 800px; padding-top: 240px; padding-bottom: 270px; }
.intro-revenue, .intro-marketing, .intro-engagement { position: absolute; width: 210px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 7px 18px #0002; text-align: left; }
.intro-revenue { left: 49%; top: 12px; transform: rotate(-6deg); }
.intro-marketing { left: 24%; top: 100px; transform: rotate(4deg); }
.intro-engagement { left: 43%; bottom: 0; transform: rotate(-4deg); }
.intro-outcome-title { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.intro-growth-bars { display: flex; align-items: flex-end; gap: 7px; height: 45px; margin-top: 8px; }
.intro-growth-bars i { flex: 1; height: 20%; background: var(--palette-sage); opacity: .7; border-radius: 2px 2px 0 0; }
.intro-growth-bars i:nth-child(2) { height: 35%; }
.intro-growth-bars i:nth-child(3) { height: 30%; }
.intro-growth-bars i:nth-child(4) { height: 55%; }
.intro-growth-bars i:nth-child(5) { height: 65%; }
.intro-growth-bars i:nth-child(6) { height: 75%; }
.intro-growth-bars i:nth-child(7) { height: 95%; }
.intro-message-test { display: flex; align-items: center; gap: 10px; font-size: 10px; margin-top: 10px; }
.intro-message-test i { height: 6px; width: 40%; background: var(--border); border-radius: 4px; }
.intro-message-test + .intro-message-test i { width: 65%; background: var(--palette-sage); }
.intro-engagement svg { display: block; margin-top: 10px; max-width: 100%; color: var(--text-muted); }
.intro-business-note { position: absolute; left: 30%; bottom: 178px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 15px 15px 15px 0; background: var(--surface-header); transform: rotate(3deg); font-size: 11px; }
.intro-comment { top: 0; left: 24%; }
.intro-release { top: 190px; left: 48%; }
.intro-feedback { top: 260px; left: 10%; }
.intro-fragment-left { top: 235px; left: -20px; }
.intro-hosting { top: auto; bottom: 195px; }
.intro-metrics { top: auto; bottom: 190px; }
.intro-security-log { bottom: 40px; left: 22%; }
.intro-tasks { bottom: 35px; left: 0; }
.intro-design { bottom: 100px; left: 52%; }
.intro-conversation { bottom: 20px; right: 0; }
@media (max-width: 800px) {
  .solutions-intro { min-height: 0; padding: 20px 8px; }
  .intro-revenue, .intro-marketing, .intro-engagement, .intro-business-note, .intro-comment, .intro-release, .intro-feedback, .intro-fragment-left, .intro-hosting, .intro-metrics, .intro-security-log, .intro-tasks, .intro-design, .intro-conversation { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; }
  .intro-revenue, .intro-marketing, .intro-engagement { padding: 10px; }
  .intro-outcome-title { font-size: 10px; }
  .intro-business-note { grid-column: 1 / -1; width: auto; justify-self: center; font-size: 10px; }
  .intro-security-log { width: 75%; }
  .intro-release { width: auto; }
}

.collage-piece { translate: var(--piece-x, 0px) var(--piece-y, 0px); cursor: grab; user-select: none; touch-action: pan-y; }
.collage-piece img { pointer-events: none; }
.collage-piece.collage-dragging { cursor: grabbing; z-index: 5; touch-action: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .collage-piece:hover:not(.collage-dragging) { animation: collage-wobble 380ms ease-in-out; }
}
@keyframes collage-wobble {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -2deg; }
  50% { rotate: 2deg; }
  75% { rotate: -1deg; }
}

@media (min-width: 801px) {
  .solutions-intro { min-height: 850px; padding: 290px 230px; justify-content: center; }
  .intro-comment { left: 20%; top: 55px; }
  .intro-revenue { left: 46%; top: 0; }
  .intro-marketing { left: auto; right: 10%; top: 100px; }
  .intro-fragment-right { right: -2%; top: 220px; }
  .intro-options { right: -4%; top: 365px; }
  .intro-revision { right: 0; top: 550px; }
  .intro-metrics { right: 6%; top: auto; bottom: 55px; }
  .intro-conversation { right: 23%; bottom: -20px; }
  .intro-engagement { left: 37%; bottom: 10px; }
  .intro-security-log { left: 13%; bottom: 0; }
  .intro-tasks { left: -2%; bottom: 125px; }
  .intro-hosting { left: -5%; top: 400px; bottom: auto; }
  .intro-fragment-left { left: -3%; top: 235px; }
  .intro-versions { left: 0; top: 65px; }
  .intro-feedback { left: 3%; top: 335px; }
  .intro-design { left: 20%; bottom: 150px; }
  .intro-business-note { left: 45%; bottom: 175px; }
  .intro-release { left: 47%; top: 190px; }
}

@media (min-width: 801px) {
  .solutions-intro { min-height: 690px; padding: 220px 225px; }
  .intro-comment { left: 23%; top: 30px; }
  .intro-revenue { left: 43%; top: 0; }
  .intro-marketing { right: 12%; top: 65px; }
  .intro-fragment-right { right: 1%; top: 155px; }
  .intro-options { right: -1%; top: 265px; }
  .intro-revision { right: 3%; top: 420px; }
  .intro-metrics { right: 10%; bottom: 20px; }
  .intro-conversation { right: 25%; bottom: -5px; }
  .intro-engagement { left: 40%; bottom: 0; }
  .intro-security-log { left: 19%; bottom: 15px; }
  .intro-tasks { left: 2%; bottom: 80px; }
  .intro-hosting { left: -1%; top: 310px; }
  .intro-fragment-left { left: 0; top: 175px; }
  .intro-versions { left: 3%; top: 30px; }
  .intro-feedback { left: 9%; top: 270px; }
  .intro-design { left: 22%; bottom: 120px; }
  .intro-business-note { left: 44%; bottom: 135px; }
  .intro-release { left: 48%; top: 150px; }
}

.intro-editor, .intro-deploy, .intro-release-card { position: absolute; overflow: hidden; background: var(--surface-header); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 22px #0002; text-align: left; }
.intro-editor { left: 13%; top: 85px; width: 240px; transform: rotate(-4deg); }
.intro-editor-body { padding: 10px 12px; font-size: 10px; line-height: 1.9; font-family: monospace; }
.intro-editor-body > span { display: block; white-space: nowrap; }
.intro-editor-body b { font-weight: 400; margin-right: 9px; color: var(--text-muted); }
.intro-editor-body em { color: var(--text-muted); font-style: normal; }
.intro-editor-body strong { font-weight: 400; color: var(--text-muted); }
.intro-editor-footer { display: block; border-top: 1px solid var(--border); padding: 5px 12px; color: var(--text-muted); font-size: 9px; }
.intro-deploy { right: 12%; top: 380px; width: 205px; padding: 12px 15px; transform: rotate(5deg); }
.intro-deploy > span:not(.intro-panel-label):not(.intro-panel-detail) { display: block; font-size: 10px; line-height: 1.9; }
.intro-release-card { left: 30%; bottom: 65px; width: 220px; padding: 12px 15px; transform: rotate(-6deg); }
.intro-release-track { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 10px; color: var(--text-muted); }
.intro-release-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--palette-sage); }
@media (max-width: 800px) {
  .intro-editor, .intro-deploy, .intro-release-card { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; }
  .intro-editor { grid-column: 1 / -1; width: 80%; justify-self: center; }
  .intro-deploy, .intro-release-card { padding: 10px; }
}

.intro-terminal { position: absolute; top: 20px; right: 0; width: 235px; overflow: hidden; border: 1px solid var(--palette-border-dark); border-radius: 6px; background: var(--palette-surface-dark); color: var(--palette-paper); box-shadow: 0 8px 22px #0003; transform: rotate(7deg); text-align: left; }
.intro-terminal .scene-window-bar { background: var(--palette-raised-dark); color: var(--palette-muted-dark); }
.intro-terminal-body { padding: 10px 14px; font: 10px/1.9 monospace; }
.intro-terminal-body > span { display: block; }
.intro-terminal-body em { font-style: normal; color: var(--palette-muted-dark); }
.intro-terminal-output { color: var(--palette-muted-dark); }
.intro-terminal-cursor { display: inline-block; width: 6px; height: 11px; background: var(--palette-muted-dark); vertical-align: middle; }
@media (max-width: 800px) {
  .intro-terminal { position: relative; top: auto; right: auto; width: 100%; grid-column: 1 / -1; max-width: 260px; justify-self: end; }
}

.intro-terminal { background: var(--surface-header); color: var(--text); border-color: var(--border); }
.intro-terminal .scene-window-bar { background: var(--surface-control); color: var(--text-muted); }
.intro-terminal-body em, .intro-terminal-output { color: var(--text-muted); }
.intro-terminal-cursor { background: var(--text-muted); }

.intro-ai-agent, .intro-ai-tools, .intro-ai-review { position: absolute; padding: 12px 15px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 7px 18px #0002; text-align: left; }
.intro-ai-agent { top: -30px; left: 4%; display: flex; align-items: center; gap: 10px; width: 215px; transform: rotate(-7deg); }
.intro-ai-agent svg { flex-shrink: 0; color: var(--text-muted); }
.intro-ai-tools { top: -25px; left: 62%; width: 190px; transform: rotate(4deg); }
.intro-ai-tools > span:not(.intro-panel-label) { display: block; padding: 3px 0; font-size: 10px; }
.intro-ai-review { bottom: -40px; right: 3%; width: 205px; transform: rotate(-5deg); }
@media (max-width: 800px) {
  .intro-ai-agent, .intro-ai-tools, .intro-ai-review { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; padding: 10px; }
  .intro-ai-agent { gap: 6px; }
  .intro-ai-agent svg { width: 22px; }
}

.intro-ai-context, .intro-ai-private { position: absolute; width: 170px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 7px 18px #0002; text-align: left; }
@media (min-width: 801px) {
  .intro-ai-agent { left: auto; right: 15%; top: -45px; }
  .intro-ai-tools { left: auto; right: -35px; top: 160px; width: 175px; }
  .intro-ai-context { right: -28px; top: 300px; transform: rotate(6deg); }
  .intro-ai-private { right: -20px; bottom: 145px; transform: rotate(-5deg); }
  .intro-ai-review { right: -5px; bottom: -40px; }
}
@media (max-width: 800px) {
  .intro-ai-context, .intro-ai-private { position: relative; top: auto; right: auto; width: 100%; }
}

.intro-map-window { position: absolute; width: 185px; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 9px 22px #0002; text-align: left; }
.intro-map-window img { display: block; width: 100%; height: 115px; object-fit: cover; }
.intro-map-caption { display: block; padding: 7px 9px; font-size: 9px; color: var(--text-muted); }
.intro-map-one { left: -45px; top: 230px; transform: rotate(-9deg); }
.intro-map-two { right: -60px; top: 395px; transform: rotate(8deg); }
@media (max-width: 800px) {
  .intro-map-window { position: relative; top: auto; left: auto; right: auto; width: 100%; }
  .intro-map-window img { height: 100px; }
}
@media (min-width: 801px) {
  .intro-deploy { top: auto; bottom: 45px; right: -25px; width: 190px; }
}

/* Arrange the collage as an overlapping ring around a clear centre. */
@media (min-width: 801px) {
  .solutions-intro { min-height: 740px; padding: 240px 225px 260px; }
  .intro-versions { left: 3%; top: 20px; }
  .intro-comment { left: 23%; top: 20px; }
  .intro-editor { left: 13%; top: 80px; }
  .intro-revenue { left: 43%; top: 0; }
  .intro-ai-agent { right: 18%; top: 5px; }
  .intro-terminal { right: 0; top: 20px; }
  .intro-marketing { right: 10%; top: 85px; }
  .intro-release { left: 48%; top: 150px; }
  .intro-fragment-left { left: 0; top: 165px; }
  .intro-map-one { left: 5%; top: 255px; }
  .intro-hosting { left: 0; top: 325px; }
  .intro-feedback { left: 6%; top: 430px; }
  .intro-fragment-right { right: 5%; top: 185px; }
  .intro-ai-tools { right: -2%; top: 165px; }
  .intro-options { right: 2%; top: 270px; }
  .intro-ai-context { right: -1%; top: 310px; }
  .intro-map-two { right: 7%; top: 365px; }
  .intro-revision { right: 4%; top: 430px; }
  .intro-ai-private { right: 0; bottom: 160px; }
  .intro-tasks { left: 2%; bottom: 115px; }
  .intro-design { left: 20%; bottom: 135px; }
  .intro-business-note { left: 45%; bottom: 175px; }
  .intro-security-log { left: 20%; bottom: 60px; }
  .intro-release-card { left: 31%; bottom: 95px; }
  .intro-engagement { left: 41%; bottom: 35px; }
  .intro-conversation { right: 23%; bottom: 25px; }
  .intro-metrics { right: 10%; bottom: 60px; }
  .intro-deploy { right: -1%; bottom: 70px; }
  .intro-ai-review { right: 1%; bottom: -10px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .intro-map-two { right: -20px; width: 155px; }
}

@media (max-width: 800px) {
  .solutions-intro > [aria-hidden="true"]:not(.intro-fragment):not(.intro-map-window) { display: none; }
  .solutions-intro { gap: 18px 16px; }
  .intro-fragment, .intro-map-window { width: 100%; }
  .intro-fragment-right { width: 85%; }
  .intro-map-window img { height: 110px; }
}
@media (max-width: 800px) {
  .solutions-intro h2 br { display: none; }
  .solutions-intro h2 { text-wrap: balance; }
}

@media (max-width: 800px) {
  .projects-inner > footer, .page-content > footer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  footer > .footer-nav { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0; width: 100%; margin: 0; }
  footer > .footer-nav a { padding-inline: 0; }
  footer > span { display: block; }
}
.scene-note-idea { display: block; margin-top: 12px; font-size: 12px; line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready { opacity: 0; transition: none; }
  .reveal-ready.is-revealed { opacity: 1; transition: opacity 1400ms ease var(--reveal-delay, 0ms); }
  .contact.reveal-ready { background-color: var(--palette-raised-light); }
  html[data-theme="dark"] .contact.reveal-ready { background-color: var(--palette-raised-dark); }
  .contact.reveal-ready.is-revealed, html[data-theme="dark"] .contact.reveal-ready.is-revealed { background-color: transparent; transition: opacity 1400ms ease, background-color 2400ms ease 250ms; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; }
}

.intro-heatmap { position: absolute; left: 4%; bottom: -35px; width: 205px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-header); box-shadow: 0 8px 20px #0002; text-align: left; transform: rotate(-7deg); }
.intro-heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 8px; }
.intro-heat-grid i, .intro-heat-legend i { aspect-ratio: 1; border-radius: 2px; background: var(--palette-sage); }
.heat-level-0 { opacity: .08; }
.heat-level-1 { opacity: .2; }
.heat-level-2 { opacity: .4; }
.heat-level-3 { opacity: .65; }
.heat-level-4 { opacity: 1; }
.intro-heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 9px; color: var(--text-muted); }
.intro-heat-legend i { width: 9px; height: 9px; }
@media (max-width: 800px) { .intro-heatmap { display: none; } }

/* Paper frames around the square project previews. */
.project-grid { gap: 34px; padding: 12px 8px 20px; }
.project-grid .project { padding: 12px 12px 0; border: 1px solid #d2cdbf; background: #f3efe4; color: var(--palette-ink); box-shadow: 0 8px 18px #0002, 0 1px 3px #0001; rotate: -1.5deg; }
.project-grid .project:nth-child(2n) { rotate: 1.5deg; }
.project-grid .project:nth-child(3n) { rotate: -.7deg; }
.project-grid .project figcaption { min-height: 74px; padding: 20px 3px 25px; align-items: baseline; }
.project-grid .project .status, html[data-theme="dark"] .project-grid .project .status { color: #657160; }
.project-grid .project .project-link { color: var(--palette-ink); }
.project-grid .project .project-art { border-color: #c7c6ba; }
@media (max-width: 640px) {
  .project-grid { gap: 28px; padding-inline: 5px; }
  .project-grid .project { padding: 10px 10px 0; rotate: -1deg; }
  .project-grid .project:nth-child(2n) { rotate: 1deg; }
  .project-grid .project figcaption { min-height: 72px; padding: 15px 3px 22px; }
}
html[data-theme="dark"] .project-grid .project:not([data-project]) .project-art { background: #e8e7dc; color: var(--palette-ink); }
html[data-theme="dark"] .project-grid .project:not([data-project]) .project-placeholder { color: #657160; }

.project-details-card.is-showing-details .project-front { opacity: 0; pointer-events: none; }

.project-grid .project { border-radius: 10px; }
.project-grid .project .project-art, .project-grid .project .project-front, .project-grid .project .project-back { border-radius: 6px; }

html[data-theme="dark"] .project-grid .project { background: var(--palette-raised-dark); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .project-grid .project .project-link { color: var(--text); }
html[data-theme="dark"] .project-grid .project .status { color: var(--text-muted); }
html[data-theme="dark"] .project-grid .project .project-art { border-color: var(--border); }
html[data-theme="dark"] .project-grid .project:not([data-project]) .project-art { background: var(--surface-control); color: var(--text); }
html[data-theme="dark"] .project-grid .project:not([data-project]) .project-placeholder { color: var(--text-muted); }
@media (max-width: 640px) {
  .service-story .service-scene { order: -1; }
}

h1, h2, .service-copy h3, .case-services h3 {
  text-shadow: 0 2px 3px rgb(24 43 34 / .14);
}
html[data-theme="dark"] :is(h1, h2, .service-copy h3, .case-services h3) {
  text-shadow: 0 2px 4px rgb(0 0 0 / .4);
}

.case-gallery { gap: 32px; padding: 12px 6px; align-items: start; }
.case-gallery figure { padding: 12px 12px 0; border: 1px solid #d2cdbf; border-radius: 10px; background: #f3efe4; color: var(--palette-ink); box-shadow: 0 8px 18px #0002; rotate: -1deg; }
.case-gallery figure:nth-child(even) { rotate: 1deg; }
.case-gallery .screenshot-trigger { margin-top: 0; border-radius: 6px; overflow: hidden; }
.case-gallery .case-image { margin-top: 0; border-radius: 6px; }
.case-gallery figcaption { display: block; padding: 18px 4px 24px; line-height: 1.6; }
html[data-theme="dark"] .case-gallery figure { background: var(--palette-raised-dark); color: var(--text); border-color: var(--border); }
@media (max-width: 640px) {
  .case-gallery { gap: 26px; }
  .case-gallery figure { padding: 10px 10px 0; }
}

.project-case > .case-image, .project-case > section > .case-image {
  border: 1px solid var(--border);
  outline: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  outline-offset: 4px;
  border-radius: 6px;
}
.project-grid .project[data-project] { cursor: pointer; }
.case-gallery .case-image { border-color: color-mix(in srgb, var(--border) 55%, transparent); }

.contact {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px);
}

.process-content > .process-image {
  border: 1px solid var(--border);
  outline: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  outline-offset: 4px;
  border-radius: 6px;
}

.process-table-frame { border-radius: 10px; }

.masthead .subtitle {
  position: relative;
  margin: 14px 0 0 3px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px;
  background: var(--surface-control);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}

.masthead .subtitle { transform: rotate(-2deg); transform-origin: 12px 0; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.inner-page) .masthead .subtitle { animation: tagline-wobble 700ms ease-out 250ms both; }
}
@keyframes tagline-wobble {
  0%, 100% { transform: rotate(-2deg); }
  20% { transform: rotate(3deg); }
  40% { transform: rotate(-4deg); }
  60% { transform: rotate(1deg); }
  80% { transform: rotate(-3deg); }
}

h1, h2, .service-copy h3, .case-services h3 {
  text-shadow: 0 3px 5px rgb(24 43 34 / .24), 0 1px 1px rgb(24 43 34 / .12);
}
html[data-theme="dark"] :is(h1, h2, .service-copy h3, .case-services h3) {
  text-shadow: 0 3px 6px rgb(0 0 0 / .65), 0 1px 2px rgb(0 0 0 / .35);
}
header { box-shadow: 0 5px 16px rgb(24 43 34 / .12); }
html[data-theme="dark"] header { box-shadow: 0 5px 18px rgb(0 0 0 / .3); }
.masthead .subtitle { box-shadow: 0 3px 7px rgb(0 0 0 / .12); }

.masthead .subtitle {
  padding: 10px 16px;
  font-size: 14px;
  transform-origin: center;
}
@keyframes tagline-wobble {
  0%, 100% { transform: rotate(-2deg); }
  16% { transform: rotate(3deg); }
  33% { transform: rotate(-7deg); }
  50% { transform: rotate(2deg); }
  67% { transform: rotate(-6deg); }
  83% { transform: rotate(0deg); }
}

.masthead .subtitle { margin-top: -5px; z-index: 1; }

.masthead .subtitle { justify-self: center; margin-inline: 0; }

.masthead .subtitle { display: inline-flex; align-items: center; gap: 10px; }
.tagline-checkbox { flex-shrink: 0; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--text-muted); border-radius: 3px; background: var(--surface-header); }
.tagline-checkbox svg { width: 20px; height: 20px; overflow: visible; }
.tagline-checkbox path { stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tagline-checkbox path { animation: tagline-check 400ms ease-out 650ms both; }
}
@keyframes tagline-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

.tagline-checkbox { width: 25px; height: 25px; }
.tagline-checkbox svg { width: 25px; height: 25px; }

.masthead .subtitle { cursor: pointer; }
.tagline-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tagline-checkbox path { animation: none; transition: stroke-dashoffset 300ms ease; }
.tagline-input:not(:checked) + .tagline-checkbox path { stroke-dashoffset: 24; }
.tagline-input:checked + .tagline-checkbox path { stroke-dashoffset: 0; }
.tagline-input:focus-visible + .tagline-checkbox { outline: 2px solid var(--focus); outline-offset: 3px; }
.hero-center { border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }

.hero { padding-bottom: 0; }
.hero-center { border: 0; }
.hero-center::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 3;
}

.hero-center::after { border: 0; border-top: 1px solid var(--border); }
.hero + .projects { border-top: 1px solid var(--border); }

/* Inner pages use a compact, consistent header rather than the homepage masthead. */
.inner-page header { width: 100%; max-width: 1200px; margin-inline: auto; padding: 24px clamp(20px, 5vw, 80px); gap: 28px; }
.inner-page .masthead h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1; }
@media (min-width: 769px) {
  .inner-page header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
  .inner-page .header-tools { width: min(44%, 440px); flex-shrink: 0; }
}
@media (max-width: 768px) {
  .inner-page header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; padding: 20px 20px 16px; }
  .inner-page .masthead { grid-column: 1; padding: 0; }
  .inner-page .masthead h1 { font-size: clamp(28px, 7.5vw, 40px); }
  html.has-menu .inner-page .menu-toggle { position: static; grid-column: 2; grid-row: 1; align-self: center; }
  .inner-page .header-tools { width: 100%; grid-column: 1 / -1; }
}

.inner-page header, html[data-theme="dark"] .inner-page header { background: var(--surface); box-shadow: none; border-bottom: 0; }
.security-review-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .security-review-gallery { grid-template-columns: minmax(0, 1fr); } }



.security-review-gallery figure:not(.security-report-figure) .screenshot-trigger{display:block;overflow:hidden}
.security-review-gallery figure:not(.security-report-figure) img.case-image{width:100%;height:auto;max-height:none;margin:0}
@media (prefers-reduced-motion: no-preference) {
  html.fast-scroll-reveals .reveal-ready.is-revealed { transition-duration: 180ms; transition-delay: 0ms; }
  html.fast-scroll-reveals .contact.reveal-ready.is-revealed { transition-duration: 180ms, 300ms; transition-delay: 0ms; }
}

/* Tree mark at the start of the wordmark. */
.masthead .home-link { display: inline-flex; align-items: baseline; gap: 0; }
.brand-tree { display: block; width: 1.15em; height: .72em; margin-right: .03em; flex-shrink: 0; filter: drop-shadow(0 3px 5px rgb(24 43 34 / .24)) drop-shadow(0 1px 1px rgb(24 43 34 / .12)); }
.brand-tree::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; mask: url("/assets/tree-logo.webp?v=2") center / contain no-repeat; }
html[data-theme="dark"] .brand-tree { filter: drop-shadow(0 3px 6px rgb(0 0 0 / .65)) drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
@media (max-width: 520px) {
  .masthead h1 { font-size: clamp(28px, 8vw, 40px); }
}

.footer-logo { display: inline-flex; align-items: center; color: var(--text); font-size: 32px; line-height: 1; text-decoration: none; width: fit-content; }
.footer-logo .brand-tree { margin-right: 0; }

footer > .footer-navigation { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.footer-navigation .footer-logo { flex-shrink: 0; margin-top: 10px; }
.footer-navigation .footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 24px; width: auto; margin: 0; }
.footer-navigation .footer-nav a { padding-inline: 12px; }
@media (max-width: 520px) {
  .footer-navigation .footer-nav { flex-direction: column; align-items: flex-start; }
}

.maple-leaf { filter: drop-shadow(0 3px 5px rgb(24 43 34 / .24)) drop-shadow(0 1px 1px rgb(24 43 34 / .12)); }
html[data-theme="dark"] .maple-leaf { filter: drop-shadow(0 3px 6px rgb(0 0 0 / .65)) drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }

/* Matching screenshot proportions keep the review polaroids level. */
.security-review-gallery{align-items:stretch}
.security-review-gallery figure:not(.security-report-figure){display:flex;flex-direction:column}
.security-review-gallery figure:not(.security-report-figure) figcaption{min-height:88px;flex:1}

.security-review-gallery figure:not(.security-report-figure) .screenshot-trigger{aspect-ratio:16/9}
.security-review-gallery figure:not(.security-report-figure) img.case-image{height:100%;object-fit:contain}

@media(max-width:640px){.security-review-gallery figure:not(.security-report-figure) figcaption{min-height:112px}}


.scene-security-report{width:32%;top:120px;right:-1%;z-index:1}
@media(max-width:400px){.scene-security-report{top:110px}}

.security-review-example-images{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.security-review-example-images .case-image{margin-top:0}
@media(max-width:640px){.security-review-example-images{grid-template-columns:minmax(0,1fr)}}

a.service-scene,a.service-scene:hover{display:block;color:inherit;text-decoration:none}
a.service-scene:focus-visible{outline:2px solid var(--focus);outline-offset:8px;border-radius:7px}
a.service-scene::before{pointer-events:none}

.case-hero { margin: 28px 0; }
.case-hero .case-image { margin: 0; border: 1px solid var(--border); border-radius: 6px; }
.case-hero figcaption { display: block; padding: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.service-portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 40px; }
@media (max-width: 640px) { .service-portfolio { grid-template-columns: 1fr; } }
.project-invite.is-in-view .project-art { background-color: #dfe7df; transition: background-color 900ms ease; }
html[data-theme="dark"] .project-invite.is-in-view .project-art { background-color: #2c4635; }
@media (prefers-reduced-motion: no-preference) {
  .project-invite.is-in-view .invite-content { animation: invite-jiggle 900ms ease-in-out 350ms; }
  @keyframes invite-jiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 75% { transform: rotate(-1deg); } }
}

/* Scale the shared tagline widget with the wordmark on each page. */
.masthead { --title-size: clamp(48px, 6.5vw, 96px); }
.inner-page .masthead { --title-size: clamp(36px, 4.2vw, 60px); }
.masthead h1, .inner-page .masthead h1 { font-size: var(--title-size); }
.masthead .subtitle {
  font-size: clamp(10px, calc(var(--title-size) * .18), 14px);
  padding: .7em 1.1em;
  gap: .7em;
  margin-top: -.35em;
  max-width: 100%;
}
.tagline-checkbox { width: 1.78em; height: 1.78em; }
.tagline-checkbox svg { width: 100%; height: 100%; }
@media (min-width: 769px) and (max-width: 1100px) {
  .illustrated-page .masthead { --title-size: clamp(40px, 5.5vw, 60px); }
  .inner-page .masthead { --title-size: clamp(36px, 4.2vw, 60px); }
}
@media (max-width: 768px) {
  .masthead { --title-size: clamp(38px, 12vw, 60px); }
  .inner-page .masthead { --title-size: clamp(28px, 7.5vw, 40px); }
}
@media (max-width: 520px) {
  .masthead { --title-size: clamp(28px, 8vw, 40px); }
  .inner-page .masthead { --title-size: clamp(28px, 7.5vw, 40px); }
}

.home-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 56px 0 80px; }
.home-quotes figure { margin: 0; padding: 12px 12px 0; border: 1px solid #d2cdbf; border-radius: 4px; background: #f3efe4; color: var(--palette-ink); box-shadow: 0 12px 24px #0002, 0 2px 4px #0001; rotate: -2deg; }
.home-quotes figure:nth-child(even) { rotate: 2deg; }
.home-quotes blockquote { display: flex; align-items: center; position: relative; isolation: isolate; aspect-ratio: 2.2 / 1; box-sizing: border-box; margin: 0; padding: clamp(16px, 2vw, 26px); background: #f7f6f0; font-size: clamp(16px, 1.65vw, 22px); line-height: 1.5; }
.home-quotes figure:nth-child(even) blockquote { background: #f2f7f2; }
.home-quotes blockquote::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--quote-map) center / cover; opacity: .09; }
.home-quotes blockquote p { margin: 0; }
.home-quotes figcaption { padding: 12px 8px 16px; font-size: 13px; line-height: 1.7; }
.home-quotes figcaption span { padding-inline: 4px; }
.home-quotes a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 800px) { .home-quotes { grid-template-columns: 1fr; gap: 32px; max-width: 580px; margin: 40px auto 64px; } .home-quotes blockquote { font-size: clamp(16px, 3.3vw, 22px); padding: clamp(18px, 4vw, 32px); } }
.home-quotes .quote-logo { display: inline-block; width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 8px; }

.home-quotes blockquote { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.home-quotes .quote-mark { flex-shrink: 0; width: 32px; height: 24px; color: #456351; }
.home-quotes figcaption { display: flex; align-items: center; gap: 12px; }
.home-quotes .quote-company-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; padding: 8px; border: 1px solid #d2cdbf; border-radius: 12px; background: #faf8f1; color: #456351; }
.home-quotes .quote-company-icon svg, .home-quotes .quote-company-icon img { width: 32px; height: 32px; object-fit: contain; }
.home-quotes .quote-attribution { display: flex; flex-direction: column; padding: 0; }
.home-quotes .quote-attribution a { font-weight: 600; font-size: 15px; }
.home-quotes .quote-attribution > span { padding: 0; }
html[data-theme="dark"] .home-quotes figure { background: var(--palette-raised-dark); color: var(--text); border-color: var(--border); box-shadow: 0 12px 24px #0004, 0 2px 4px #0003; }
html[data-theme="dark"] .home-quotes blockquote { background: var(--palette-surface-dark); }
html[data-theme="dark"] .home-quotes figure:nth-child(even) blockquote { background: var(--palette-field-dark); }
html[data-theme="dark"] .home-quotes blockquote::before { opacity: .09; filter: saturate(.6); }
html[data-theme="dark"] .home-quotes .quote-mark { color: var(--palette-muted-dark); }
html[data-theme="dark"] .home-quotes .quote-company-icon { border-color: var(--border); background: var(--palette-paper); }
.home-quotes .quote-attribution > span { color: var(--text-muted); }

.home-quotes figure:nth-child(3n + 1) { --quote-map: url('/assets/forest/map-960.webp'); }
.home-quotes figure:nth-child(3n + 2) { --quote-map: url('/assets/city/map-960.webp'); }
.home-quotes figure:nth-child(3n) { --quote-map: url('/assets/map/map-960.webp'); }
.home-quotes figure { position: relative; }
.home-quotes .quote-attribution a::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 4px; }
.home-quotes figure:hover .quote-attribution a { text-decoration-thickness: 2px; }
.home-quotes figure:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 5px; }
.home-quotes { max-width: 980px; gap: 28px; margin: 36px auto 52px; }
.home-quotes figure { padding: 7px 7px 0; border-radius: 2px; rotate: -.5deg; box-shadow: 0 3px 10px #00000012; }
.home-quotes figure:nth-child(even) { rotate: .5deg; }
.home-quotes blockquote { aspect-ratio: auto; padding: 18px 20px; font-size: 16px; line-height: 1.55; gap: 8px; }
.home-quotes .quote-mark { width: 22px; height: 17px; }
.home-quotes figcaption { padding: 10px 6px 12px; gap: 9px; font-size: 11px; }
.home-quotes .quote-company-icon { width: 32px; height: 32px; padding: 5px; border-radius: 4px; }
.home-quotes .quote-company-icon svg, .home-quotes .quote-company-icon img { width: 22px; height: 22px; }
.home-quotes .quote-attribution a { font-size: 13px; }
html[data-theme="dark"] .home-quotes figure { box-shadow: 0 3px 10px #0003; }
@media (max-width: 800px) { .home-quotes { max-width: 500px; gap: 20px; } }
