:root {
  --section-y: clamp(56px, 8vw, 96px);
  --navy: #14283a;
  --navy-deep: #0e1c2a;
  --navy-card: #172b3c;
  --paper: #f1ede6;
  --ink: #1c2f4a;
  --on-navy: #f4f1ea;
  --florian-paper: #e2e5e1;
}
@font-face { font-family: 'Sequel Sans'; src: url('assets/fonts/SequelSans-Light.woff2') format('woff2'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sequel Sans'; src: url('assets/fonts/SequelSans-Book.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
html { font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--on-navy); font-family: 'Sequel Sans', 'Inter', system-ui, -apple-system, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: -.005em; word-spacing: .04em; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 400; }
h2 { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.25; }
h3 { font-size: 19px; line-height: 1.4; }
a { color: inherit; text-underline-offset: 4px; overflow-wrap: anywhere; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10; left: 20px; top: 20px; padding: 12px 20px; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
section { padding: var(--section-y) 0; scroll-margin-top: 24px; }
.container { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.paper { background: var(--paper); color: var(--ink); }
.navy { background: var(--navy); }
.textured { position: relative; isolation: isolate; overflow: clip; }
.textured::before, .textured::after { content: ''; pointer-events: none; position: absolute; z-index: -1; background: currentColor; opacity: .045; width: 1100px; height: 1400px; border-radius: 48%; transform: rotate(-32deg); }
.textured::before { top: -900px; left: -700px; }
.textured::after { right: -800px; bottom: -1000px; }
.paper::before, .paper::after { opacity: .025; }
.hero { min-height: 680px; min-height: 100svh; display: grid; place-items: center; padding: 100px 20px 140px; }
.hero::before { width: 100vw; height: 170%; top: -95%; left: -35%; }
.hero::after { width: 85vw; height: 180%; right: -54%; bottom: -70%; }
.hero-content { width: 100%; text-align: center; }
.hero h1 { display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 300; font-size: clamp(30px, 4.3vw, 68px); line-height: 1.1; letter-spacing: -.05em; }
.hero h1 span { max-width: 240px; }
.mark { width: clamp(65px, 7vw, 110px); flex-shrink: 0; fill: currentColor; }
.hero hr { margin: 32px auto 24px; border: 0; border-top: 1px solid var(--on-navy); width: min(100%, 1000px); }
.tagline { max-width: 940px; margin: auto; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.8; }
.tagline span { padding: 0 4px; }
.socials { display: flex; gap: 10px; position: absolute; right: clamp(24px, 6vw, 100px); bottom: 42px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--on-navy); color: var(--navy); display: grid; place-items: center; }
.socials svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.5; }
.socials a:first-child svg { fill: currentColor; stroke: none; }
.scroll-hint { position: absolute; bottom: 35px; left: 20px; width: 44px; height: 52px; }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 44px; margin: auto; background: currentColor; opacity: .45; }
.intro { text-align: center; }
.statement { max-width: 1000px; margin: 0 auto 64px; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.55; }
.statement strong { font-weight: 400; }
.small-label { font-size: 14px; font-weight: 400; line-height: 1.5; }
.experience { margin: 22px auto; max-width: 1240px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.8; }
.footnote { font-size: 13px; }
.section-heading { display: grid; gap: 24px; margin-bottom: 44px; }
.section-heading p { max-width: 62ch; font-size: 18px; }
.cards { display: grid; gap: 24px; align-items: stretch; }
.card { border: 1px solid transparent; padding: 28px 24px; transition: border-color .2s, background-color .2s; }
.service { background: var(--paper); color: var(--ink); }
.service h3 { margin-bottom: 30px; }
.service:hover { border-color: var(--ink); background: #e9e5de; }
.centered { text-align: center; margin-bottom: 44px; }
.client { background: var(--navy-card); color: var(--on-navy); }
.client:hover { border-color: var(--on-navy); background: var(--navy); }
.client-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.5; }
.client-meta span:last-child { white-space: nowrap; }
.client h3 { margin: 36px 0; font-size: 27px; }
.client p + p { margin-top: 24px; }
.why { background: var(--navy-deep); }
.questions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; border: 1px solid #7a858e; background: transparent; color: var(--on-navy); padding: 12px 17px; min-height: 48px; text-align: left; font-weight: 400; font-size: 14px; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover:not(:disabled), .chip[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip:disabled { cursor: default; }
.chip:disabled:not([aria-pressed='true']) { opacity: .6; }
.conversation { border-top: 1px solid #ffffff1f; margin-top: 36px; padding-top: 32px; scroll-margin-top: 32px; }
.conversation h3 { margin-bottom: 26px; font-weight: 400; }
.messages { max-width: 800px; }
.message { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px; margin: 0 0 20px; align-items: start; }
.message .shape { width: 24px; height: 24px; margin-top: 4px; }
.speaker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-weight: 400; font-size: 13px; margin-bottom: 7px; }
.bubble { background: var(--paper); color: var(--ink); padding: 18px 20px; font-weight: 400; }
.florian .bubble { background: var(--florian-paper); }
.review .needs-approval .bubble { outline: 2px dashed #d5ac68; outline-offset: 4px; }
.message.enter { animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typing { display: flex; gap: 5px; width: fit-content; min-height: 48px; align-items: center; }
.typing i { display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: typing .75s ease-in-out infinite alternate; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { from { opacity: .3; } to { opacity: 1; } }
#follow-up { margin-top: 36px; }
#follow-up h3 { margin-bottom: 16px; }
.conversation-contact { margin-top: 32px; font-size: 15px; }
.transcript { max-width: 62ch; border-top: 1px solid #ffffff1f; padding: 28px 0; }
.transcript p { margin: 20px 0; }
.about { border-top: 1px solid #ffffff1f; }
.about-grid { display: grid; gap: 40px; }
.portrait { width: 100%; max-width: 400px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-heading { display: grid; gap: 20px; margin-bottom: 36px; }
.about-copy > p { max-width: 62ch; margin-bottom: 28px; font-size: 18px; }
.timeline { display: grid; list-style: none; margin: 36px 0 0; padding: 0; border-top: 2px solid #ffffff33; }
.timeline li { padding: 22px 0; border-bottom: 1px solid #ffffff1f; font-size: 14px; line-height: 1.5; }
.timeline h3 { font-size: 15px; }
.closing { text-align: center; }
.closing h2 { max-width: 580px; margin: 30px auto 44px; font-weight: 300; font-size: clamp(28px, 3vw, 42px); line-height: 1.4; }
.closing p { font-size: clamp(16px, 1.8vw, 22px); }
.motif { display: flex; justify-content: center; gap: 4px; }
.shape { display: inline-block; width: 32px; height: 32px; background: currentColor; flex-shrink: 0; }
.triangle { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.quarter { border-bottom-right-radius: 100%; }
.motif .shape { cursor: default; transition: transform .25s; }
.motif .shape:hover, .motif .shape:active { transform: scale(1.05); }
footer { text-align: center; padding: 26px 20px; font-size: 14px; border-top: 1px solid #ffffff1f; }
@media (min-width: 600px) {
  .hero h1 span { max-width: none; }
  .container { width: min(1280px, calc(100% - 80px)); }
  .scroll-hint { left: calc(50% - 22px); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline li { padding: 20px 18px; border-bottom: 0; border-right: 1px solid #ffffff33; }
  .timeline li:first-child { padding-left: 0; }
  .timeline li:last-child { border-right: 0; padding-right: 0; }
}
@media (min-width: 1000px) {
  .section-heading { grid-template-columns: 1fr 2fr; gap: 50px; margin-bottom: 70px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .card { padding: 32px 28px; }
  .service { min-height: 260px; }
  .client { min-height: 380px; }
  .centered { margin-bottom: 70px; }
  .about-grid { grid-template-columns: 1fr 2.5fr; gap: 60px; }
  .about-heading { grid-template-columns: 1fr 2.5fr; gap: 60px; align-items: baseline; }
  .portrait { align-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal.pending { opacity: 0; transform: translateY(8px); }
  .reveal { transition: opacity .3s ease, transform .3s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The questions stay outside the scrollable conversation. */
.chat-layout { display: grid; gap: 36px; align-items: start; }
.chat-sidebar { min-width: 0; }
.chat-sidebar h2 { font-size: clamp(34px, 3.5vw, 48px); font-weight: 300; }
.chat-intro { margin-top: 24px; max-width: 38ch; font-size: 18px; }
.speaker-roster { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 32px 0; font-size: 13px; }
.mini-shapes { display: inline-flex; gap: 3px; flex-shrink: 0; }
.mini-shapes .shape { width: 20px; height: 20px; }
.chat-sidebar .questions { gap: 10px; }
.chat-sidebar .chip { padding: 10px 13px; }
.chip.answered:not([aria-pressed='true']) { border-color: #b6bfc6; border-style: dotted; }
.chat-window { display: flex; flex-direction: column; min-width: 0; height: 70vh; height: 70svh; background: #e7e4de; color: var(--ink); border: 1px solid #b8bebf; scroll-margin-top: 20px; }
.chat-header { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--paper); border-bottom: 1px solid #1c2f4a30; flex-shrink: 0; }
.chat-header p { font-size: 18px; font-weight: 400; line-height: 1.4; }
.chat-header .chat-subline { font-size: 12px; margin-top: 4px; }
.chat-scroll { overflow-y: auto; overscroll-behavior-y: contain; min-height: 0; flex: 1; padding: 24px 18px; scrollbar-color: #6c7884 #e7e4de; }
.chat-scroll:focus-visible { outline-offset: -3px; }
.chat-window .conversation { margin-top: 24px; padding-top: 24px; border-color: #1c2f4a30; }
.chat-window .conversation h3 { font-size: 14px; margin-bottom: 22px; }
.chat-window .message { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.chat-window .message .shape { width: 20px; height: 20px; }
.chat-window .bubble { padding: 14px; font-size: 14px; }
.chat-window .chip { color: var(--ink); border-color: #596b7c; }
.chat-window .messages:focus-visible { outline-offset: 3px; }
.chat-footer { padding: 16px 20px; border-top: 1px solid #1c2f4a30; background: var(--paper); font-size: 13px; flex-shrink: 0; }
@media (min-width: 960px) {
  .chat-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; }
  .chat-window { position: sticky; top: 24px; height: 560px; }
  .chat-scroll { padding: 26px; }
}
.own-question-form { margin-top: 28px; }
.own-question-form label { display: block; font-size: 14px; margin-bottom: 10px; }
.question-input-row { display: flex; gap: 8px; }
.question-input-row input { min-width: 0; width: 100%; border: 1px solid #7a858e; border-radius: 0; background: transparent; color: var(--on-navy); padding: 12px; font: inherit; font-size: 16px; }
.question-input-row input::placeholder { color: #c0c7cd; opacity: 1; }
.question-input-row .chip { flex-shrink: 0; }
.chat-window .visitor { display: flex; justify-content: flex-end; margin: 0 0 24px 24px; }
.visitor > div { max-width: 90%; min-width: 0; }
.visitor .speaker { justify-content: flex-end; }
.chat-window .visitor .bubble { background: var(--navy); color: var(--on-navy); overflow-wrap: anywhere; }

/* Compact speaker groups and a pinned messenger composer. */
.chat-intro { max-width: 34ch; text-wrap: balance; }
#question-controls { margin-top: 36px; }
.chat-window { background: #deddd7; }
.chat-header { display: block; padding: 14px 18px; }
.team-avatars { display: flex; gap: 8px; margin-top: 10px; }
.chat-header .chat-subline { margin-top: 6px; }
.avatar { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 0; display: grid; place-items: center; background: var(--paper); overflow: hidden; flex-shrink: 0; color: var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }
.chat-window .avatar .shape { width: 22px; height: 22px; margin: 0; background: var(--ink); }
.chat-window .message.speaker-group { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.group-content { min-width: 0; }
.bubble-stack { display: flex; flex-direction: column; gap: 6px; }
.chat-window .speaker { margin-bottom: 4px; }
.chat-window .bubble { padding: 8px 11px; border: 1px solid #bac0c2; line-height: 1.4; }
.chat-window .conversation { margin: 18px 0 0; padding: 0; border: 0; }
.chat-window .visitor { margin-bottom: 14px; }
.chat-window .visitor .bubble { border-color: var(--navy); }
.chat-scroll { padding: 16px; scroll-padding-bottom: 16px; overflow-anchor: none; }
.chat-composer { flex-shrink: 0; padding: 14px 18px; background: var(--navy); color: var(--on-navy); }
.own-question-form { margin: 0; }
.own-question-form label { font-size: 12px; margin-bottom: 8px; }
.question-input-row input { height: 44px; padding: 10px; border: 1px solid #b9c4ce; background: var(--paper); color: var(--ink); }
.question-input-row input::placeholder { color: #536274; }
.question-input-row input:focus { border-color: transparent; outline: 2px solid var(--on-navy); outline-offset: 2px; box-shadow: none; }
.chat-window .question-input-row .chip { height: 44px; min-height: 44px; background: var(--navy-deep); border: 1px solid #b9c4ce; color: var(--on-navy); padding: 9px 14px; }
.chat-contact { font-size: 12px; margin-top: 8px; }
.chip.answered { border-color: #b6bfc6; border-style: solid; }
.chip.answered:not([aria-pressed='true']) { border-style: solid; }
.chip .answered-check { margin-left: 8px; }
.review .bubble.needs-approval { outline: 2px dashed #987236; outline-offset: 1px; }
@media (min-width: 960px) {
  .chat-layout { align-items: stretch; }
  .chat-window { align-self: start; height: min(680px, 78vh); min-height: 0; }
}
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

/* Compact header and content-sized conversation bubbles. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.team-avatars { gap: 4px; margin: 0; flex-shrink: 0; }
.team-avatars .avatar { width: 32px; height: 32px; }
.chat-header-copy { min-width: 0; }
.chat-header-copy > p { font-size: 16px; }
.chat-header .chat-subline { font-size: 11px; margin-top: 3px; }
.chat-window .bubble { width: fit-content; max-width: 85%; overflow-wrap: anywhere; }
.chat-window .florian .bubble { background: var(--paper); }
.chat-window .visitor .bubble { margin-left: auto; }
.question-input-row input::placeholder { color: var(--ink); }
.chat-window .question-input-row .chip { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chat-window .question-input-row .chip:disabled { opacity: 1; color: #536274; background: #d7d6d1; border-color: #d7d6d1; cursor: default; }
.chat-scroll { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px); mask-image: linear-gradient(to bottom, transparent, #000 16px); }
@media (max-width: 599px) {
  .chat-header { gap: 9px; padding-inline: 12px; }
  .chat-header-copy > p { font-size: 13px; }
  .chat-header .chat-subline { font-size: 10px; }
}

/* Two-speaker chat, quiet composer and aligned questions. */
.chat-sidebar .questions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.chat-sidebar .chip { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 58px; padding: 10px 13px; gap: 8px; }
.chip .answered-check { margin-left: auto; flex-shrink: 0; }
.chat-sidebar-notes { margin-top: 24px; }
.chat-sidebar-notes .chat-contact { font-size: 12px; line-height: 1.6; margin: 0; }
.chat-sidebar-notes .chat-contact { margin-top: 10px; }
.chat-composer { background: var(--paper); color: var(--ink); border-top: 1px solid #b7bfc4; padding: 12px 16px; }
.chat-window .question-input-row .chip { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.chat-window .question-input-row .chip:disabled { background: #deddd7; color: #536274; border-color: #bac0c2; }
.question-input-row input { border-color: #6a7987; }
.question-input-row input:focus { border-color: transparent; outline-color: var(--ink); }
.chat-window .bubble { text-wrap: pretty; }
.chat-window .visitor > div { width: 100%; max-width: 100%; }
.chat-window .visitor .bubble { max-width: 70%; white-space: normal; }
.chat-window .visitor .bubble.short-question { white-space: nowrap; }
@media (min-width: 960px) {
 .chat-sidebar { position: sticky; top: 24px; align-self: start; }
}

/* Categories follow the three disciplines, then working together. */
.chat-sidebar #initial-questions { display: block; }
.question-category + .question-category { margin-top: 16px; }
.category-title { margin: 0 0 8px; padding-top: 8px; border-top: 1px solid #f4f1ea30; color: #b1b5b5; font-size: 14px; line-height: 1.4; font-weight: 400; }
.category-chips { display: grid; gap: 8px; }
.chat-sidebar .category-chips .chip { padding: 10px 14px; height: auto; min-height: 42px; line-height: 1.4; }
.chat-scroll { padding-top: 20px; scroll-padding-top: 20px; }
.noscript-category { margin-top: 32px; }
.noscript-category > h3 { border-top: 1px solid #f4f1ea30; padding-top: 12px; font-size: 14px; color: #b1b5b5; }
.transcript h4 { margin: 0; font-weight: 400; font-size: 18px; }

/* Segment accordion. General questions remain available below it. */
.segment-group + .segment-group { margin-top: 8px; }
.segment-heading { margin: 0; font-size: inherit; font-weight: 400; }
.segment-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; height: 56px; min-height: 56px; border: 1px solid #9aa7b1; border-radius: 0; background: transparent; color: var(--on-navy); font: inherit; font-size: 16px; line-height: 1.4; text-align: left; cursor: pointer; }
.segment-button:hover, .segment-button[aria-expanded='true'] { background: #ffffff09; border-color: var(--on-navy); }
.segment-title { flex: 1; }
.segment-toggle { width: 16px; text-align: center; font-size: 20px; flex-shrink: 0; }
.segment-panel { padding: 8px 0 0 12px; }
.general-questions { margin-top: 16px; }
.general-questions .category-title { padding-top: 14px; margin-bottom: 12px; }

/* Compact question navigation, retaining comfortable mobile targets. */
.chat-intro { margin-top: 16px; }
#question-controls { margin-top: 22px; }
.general-questions .category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-sidebar .general-questions .chip { width: auto; min-height: 38px; padding: 8px 12px; font-size: 13px; }
.chat-sidebar-notes { margin-top: 16px; }
@media (min-width: 960px) {
  .chat-sidebar h2 { font-size: 40px; }
  .chat-intro { margin-top: 12px; }
  #question-controls { margin-top: 16px; }
}

/* Paper question controls. */
.chat-sidebar .segment-button,
.chat-sidebar .chip { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.chat-sidebar .segment-button:hover,
.chat-sidebar .chip:hover:not(:disabled) { background: #e6e1d8; color: var(--ink); }
.chat-sidebar .segment-button[aria-expanded='true'] { background: var(--paper); border-color: var(--paper); position: relative; }
.chat-sidebar .segment-button[aria-expanded='true']::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--navy-deep); }
.chat-sidebar .chip[aria-pressed='true'],
.chat-sidebar .chip[aria-pressed='true']:hover { background: var(--navy-card); color: var(--on-navy); border-color: var(--paper); }
.chat-sidebar .chip.answered { border-color: var(--paper); }
.chat-sidebar .answered-check { color: var(--ink); }
.chat-sidebar .chip[aria-pressed='true'] .answered-check { color: var(--on-navy); }
.chat-sidebar button:focus-visible { outline: 2px solid var(--on-navy); outline-offset: 2px; }
.chat-sidebar .category-chips { gap: 12px; }
.segment-group + .segment-group { margin-top: 12px; }
.segment-panel { padding-top: 12px; }

.chat-sidebar .chat-intro { max-width: 52ch; font-size: 18px; text-wrap: pretty; }

/* Shared section rhythm and aligned desktop columns. */
.about-heading { margin-bottom: 0; grid-column: 1 / -1; }
@media (min-width: 960px) {
  .chat-layout { --chat-height: min(640px, 80vh); align-items: start; }
  .chat-sidebar { display: flex; flex-direction: column; min-height: var(--chat-height); }
  .chat-sidebar #question-controls { display: flex; flex-direction: column; flex: 1; }
  .chat-sidebar-notes { margin-top: auto; padding-top: 16px; }
  .chat-sidebar-notes .chat-contact { margin-top: 0; }
  .chat-window { height: var(--chat-height); }
  .chat-sidebar h2 { text-box-trim: trim-start; text-box-edge: cap alphabetic; }
  .about-heading { grid-column: 1 / -1; grid-template-columns: 1fr 2.5fr; gap: 60px; align-items: baseline; }
  .about-heading p { font-size: 18px; }
}

/* Typography: readable small copy and deliberate line breaks. */
:root { --section-heading-size: clamp(28px, 2.2vw, 34px); --section-heading-weight: 300; --section-heading-leading: 1.25; }
#services-title, #clients-title, #why-title, #about-title {
  font-size: var(--section-heading-size); font-weight: var(--section-heading-weight); line-height: var(--section-heading-leading); letter-spacing: -.02em; word-spacing: .04em;
}
.hero h1 { letter-spacing: -.03em; word-spacing: .12em; }
.statement { max-width: 62rem; font-size: clamp(22px, 1.667vw, 24px); text-wrap: balance; letter-spacing: -.005em; word-spacing: .04em; }
.statement .brand-name { white-space: nowrap; font-weight: 400; }
.experience-name { display: inline-block; white-space: nowrap; }
.section-heading p { text-wrap: balance; }
.closing h2 { letter-spacing: -.02em; word-spacing: .04em; }
.about-grid { align-items: stretch; }
.timeline { border-top-width: 2px; }
@media (min-width: 1000px) {
  .portrait { align-self: stretch; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; }
}
.card p, .client-meta, .client-meta span, .timeline li, .timeline h3,
.footnote, footer, .small-label, .speaker, .chip, .chat-subline,
.category-title, .chat-contact { letter-spacing: -.005em; word-spacing: .04em; }
@media (min-width: 1000px) {
  .about-copy { display: flex; flex-direction: column; }
  .about-copy > p:last-of-type { margin-bottom: 36px; }
  .about-copy .timeline { margin-top: auto; }
}

@font-face { font-family: 'Inter'; src: url('assets/fonts/InterVariable.woff2') format('woff2'); font-style: normal; font-weight: 300 500; font-display: swap; }
.sep > span { display: inline-block; position: relative; white-space: nowrap; margin-inline: .6em; }
.sep > span:not(:last-child)::after { content: "|" / ""; position: absolute; right: -.6em; transform: translateX(50%); }
.sep > span.line-end::after { visibility: hidden; }
.hero h1 span { text-wrap: balance; }
@media (min-width: 1000px) { .section-heading { align-items: baseline; } }
@media (max-width: 599px) {
  .chat-window .message.speaker-group { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .chat-window .avatar { width: 32px; height: 32px; }
  .chat-window .bubble { max-width: 100%; }
}

@media (min-width: 1000px) { .statement-lead { display: block; } }

/* Selected experience details preserve the existing text-row appearance. */
.credit-name { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; word-spacing: inherit; text-align: inherit; cursor: pointer; }
.credit-name[aria-expanded='true'] { text-decoration: underline; text-underline-offset: 4px; }
.credit-slot { position: relative; max-width: 62ch; margin: 0 auto; overflow: hidden; }
.credit-panel { padding-bottom: 22px; border-top: 1px solid #1c2f4a33; padding-top: 20px; text-align: left; overflow-wrap: anywhere; }
.credit-panel h3 { margin: 0 0 10px; font-size: 19px; font-weight: 400; line-height: 1.4; }
.credit-panel p { margin: 0; }
/* Leave room for the 2px keyboard outline plus its 3px offset. */
#credits-list { line-height: 2.2; }
#credits-list > span { margin-inline: .8em; }
#credits-list > span::after { right: -.8em; }
.credit-name { line-height: 1.4; }
.credit-name:focus:not(:focus-visible) { outline: none; }
.credit-name:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.credits-transcript { text-align: left; max-width: 62ch; margin: 22px auto; padding-left: 24px; }
.credits-transcript li + li { margin-top: 16px; }

/* Sequel Light for display copy; Book for body text and emphasis. */
.statement { font-weight: 300; }
.credit-name { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-thickness: 1px; text-decoration-color: #1c2f4a80; text-underline-offset: 4px; }
.credit-name:hover, .credit-name[aria-expanded='true'] { text-decoration-style: solid; text-decoration-color: var(--ink); }

/* Round 22: real supplied logo, with intrinsic dimensions reserved before loading. */
.hero h1 { height: clamp(66px, 4.73vw, 74.8px); }
.brand-logo { display: block; width: min(100%, 1000px); height: 100%; object-fit: contain; }
.motif img { display: block; width: 104px; height: 32px; }
/* Sequel Display small copy needs more breathing room. Display typography is unchanged. */
body { letter-spacing: .01em; word-spacing: 0; }
.card p, .client-meta, .client-meta span, .timeline li, .timeline p,
.small-label, .chip, .speaker, .bubble, .footnote, .category-title,
.chat-contact, .credit-panel p, footer, .question-input-row input,
.chat-subline, .chat-header .chat-subline, .own-question-form label,
.chat-footer, .speaker-roster { letter-spacing: .01em; word-spacing: 0; }
.hero, .section-heading p, .about-copy > p, .chat-intro, .chat-header p,
.closing p, .experience { letter-spacing: -.005em; word-spacing: .04em; }
@media (max-width: 1439px) { .experience { letter-spacing: .01em; word-spacing: 0; } }
@media (max-width: 999px) { .closing p { letter-spacing: .01em; word-spacing: 0; } }
h1, h2, h3 { letter-spacing: -.005em; word-spacing: .04em; }
.chat-header p { letter-spacing: .01em; word-spacing: 0; }

/* Round 23: alternating section colours and readable client-list wrapping. */
.why { background: var(--navy); }
.about .timeline { border-top-color: #1c2f4a55; }
.about .timeline li { border-color: #1c2f4a33; }
.client .sep { display: flex; flex-wrap: wrap; column-gap: 1.2em; row-gap: .15em; margin-top: 8px; }
.client .sep > span { margin-inline: 0; }
.card p, .card .sep > span, .about-copy > p, .chat-intro,
.bubble, .credit-panel p, .chat-contact, .footnote, .timeline li,
.timeline p, .chip, .closing p, .question-input-row input { word-spacing: .08em; }

/* Round 24: remove tight display tracking and separate words clearly. */
#services-title, #clients-title, #why-title, #about-title,
.closing h2, .statement, .chat-intro, .section-heading p,
.about-copy > p { letter-spacing: .015em; word-spacing: .12em; }
.card p, .card .sep > span, .bubble, .credit-panel p,
.chat-contact, .footnote, .timeline p, .chip,
.question-input-row input { word-spacing: .12em; }

/* Round 29: services intro follows the same three-column grid as its cards. */
@media (min-width: 1000px) {
  section[aria-labelledby="services-title"] .section-heading {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
    align-items: baseline;
  }
  section[aria-labelledby="services-title"] .section-heading > p {
    grid-column: 2 / 4;
    max-width: none;
  }
}
@media (min-width: 1000px) {
  /* Let the last service column absorb subpixel rounding at the container edge. */
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 72px) / 3))) minmax(0, 1fr);
  }
}
/* Round 29 addition: full-width about copy, with the timeline anchored below. */
@media (min-width: 1000px) {
  .about-heading > p,
  .about-copy > p { max-width: none; }
  .about-copy { display: flex; flex-direction: column; }
  .about-copy > .timeline { margin-top: auto; }
}
/* Services intro: light weight, right-aligned to the final card on desktop. */
section[aria-labelledby="services-title"] .section-heading > p {
  font-weight: 300;
}
@media (min-width: 1000px) {
  section[aria-labelledby="services-title"] .section-heading > p {
    text-align: right;
  }
}

/* Matched question context for typed questions only. */
.chat-window .visitor .answering { display: block; color: #59636b; font-weight: 400; margin: 7px 0 0; line-height: 1.4; text-align: left; }

/* Compact selected experience on wide screens; retain mobile readability. */
@media (min-width: 1200px) { #credits-list { font-size: 14px; } }

/* Round 37: group mark and contextual follow-up. */
.team-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: var(--paper); border: 1px solid #1c2f4a30; }
.team-mark img { display: block; width: 32px; height: auto; }
.chip[hidden] { display: none; }
.chat-window .followup-question { margin-top: 12px; max-width: 100%; background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .followup-question { transition: none; animation: none; } }

/* Clearly distinguish visitors from the team, with module status in the header. */
.chat-beta { margin-left: auto; align-self: flex-start; flex-shrink: 0; padding: 3px 6px; border: 1px solid #bac0c2; color: var(--ink); font-size: 11px; line-height: 1.4; letter-spacing: .01em; white-space: nowrap; }
.chat-window .visitor .bubble { background: #234d70; border-color: #234d70; color: #f4f1ea; margin-left: auto; margin-right: 0; }
.chat-window .visitor .speaker { text-align: right; }
.chat-window .visitor .answering { text-align: right; }
.chat-window .speaker-group { justify-content: flex-start; }
.chat-window .speaker-group .bubble { margin-left: 0; margin-right: auto; }
@media (max-width: 420px) { .chat-beta { padding: 2px 4px; font-size: 10px; } }
/* Tint the existing transparent brand mark with the exact msaf navy. */
.team-mark { position: relative; }
.team-mark::after { content: ''; position: absolute; width: 32px; height: 11px; background: var(--navy); -webkit-mask: url('assets/mark-dark@2x.png') center / contain no-repeat; mask: url('assets/mark-dark@2x.png') center / contain no-repeat; pointer-events: none; }
.team-mark img { opacity: 0; }

.chat-version { margin-left: auto; align-self: flex-start; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-version .chat-beta { margin-left: 0; align-self: auto; }
.chat-updated { color: #59636b; font-size: 9px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 420px) { .chat-header { column-gap: 7px; } .chat-updated { font-size: 8px; } }

.nowrap { white-space: nowrap; }
