@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-500-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;
}

/* Foundation */
:root {
  color-scheme: light;
  --bg: #f3f2ef;
  --panel: #e8e7e3;
  --ink: #252629;
  --muted: #626366;
  --line: #d2d1cd;
  --red: #ce3e34;
  --bright: #b9362e;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'DM Sans', Arial, sans-serif;
  --header-height: 76px;
  --body-size: 18px;
  --meta-size: 11px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #a42d27; outline-offset: 7px; }
::selection { background: #bb362e; color: #fff; }
p, h1, h2, h3 { margin: 0; }
p { line-height: 1.5; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.055em; }
h2 { font-size: clamp(34px, 3.3vw, 47px); line-height: 1.12; }
em { font-style: normal; color: var(--bright); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.skip { position: fixed; left: 20px; top: -100px; z-index: 50; background: var(--ink); color: var(--bg); padding: 15px; }
.skip:focus { top: 20px; }
.eyebrow { font-family: var(--mono); font-size: var(--meta-size); font-weight: 400; letter-spacing: .7px; display: flex; align-items: center; gap: 12px; line-height: 1.7; }
.tiny-ring { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--bright); border-radius: 50%; flex-shrink: 0; }

/* Navigation and shared controls */
.header { height: var(--header-height); padding: 0 4.8%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 29px; line-height: .9; letter-spacing: -1.6px; font-weight: 550; }
.brand-ring { display: block; width: 33px; height: 33px; border: 3px solid var(--red); border-radius: 50%; flex-shrink: 0; }
.brand-small { display: block; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 3.8px; margin-top: 9px; }
.header nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.header nav > a { transition: color .2s; }
.header nav > a:hover { color: var(--bright); }
.nav-contact { margin-left: 16px; border: 1px solid #c9c7c2; padding: 11px 16px; display: flex; gap: 36px; }
.menu-toggle { display: none; }
.menu-toggle span { transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; padding: 15px 21px; font-size: 16px; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-red { background: #ba352d; color: white; margin-top: 20px; }
.button-red:hover { background: #a52a24; }
.button-light { background: #fff8f1; color: #382622; min-width: 260px; }
.button-light:hover { background: white; }
.button span { font-size: 20px; }
.button span, .nav-contact span { display: inline-block; transition: transform .3s; }
.button:hover span, .nav-contact:hover span { transform: translate(2px, -2px); }

/* Hero and ribbon */
.hero { position: relative; min-height: 510px; overflow: hidden; padding: 30px 4.8% 0; display: flex; flex-direction: column; justify-content: space-between; }
.hero-art { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; }
.hero-art:before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #f3f2ef 0%, #f3f2ef 28%, rgba(243,242,239,.92) 40%, rgba(243,242,239,0) 65%); }
.hero-art:after { z-index: 2; content: ''; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(transparent, #f3f2ef); }
.hero-wave { position: absolute; inset: -22px; }
.wave-image { position: absolute; inset: 0; background: url(assets/consensus-ribbon.jpg) right center / cover no-repeat; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.has-flow { background-image: none; }
.has-flow .wave-canvas { opacity: 1; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.compact-break { display: none; }
.hero h1 { font-size: clamp(60px, 6.15vw, 88px); line-height: 1.02; margin: 16px 0 20px; letter-spacing: -.065em; }
.hero-description { font-size: 19px; color: #57595c; max-width: 555px; line-height: 1.5; }
.hero-bottom { z-index: 1; position: relative; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #c6c3bd; padding: 10px 0; margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .4px; color: #5b5c5e; }
.hero-bottom a { display: flex; gap: 35px; }
.hero-controls { display: flex; width: 100%; align-items: center; gap: 20px; justify-content: space-between; flex-direction: row; }
.motion-toggle { border: 0; background: transparent; color: #5b5c5e; font: 11px var(--mono); letter-spacing: .4px; cursor: pointer; padding: 6px 0; line-height: 1.7; }
.motion-toggle, .hero-controls > a { min-height: 32px; display: inline-flex; align-items: center; }
.motion-toggle:hover { text-decoration: underline; }
.motion-toggle[hidden] { display: none; }
.hero-controls a:hover, .footer > div a:hover { color: var(--bright); }
.motion-ready .hero-content { animation: hero-arrive .8s cubic-bezier(.2,.7,.2,1) both; }
.motion-paused .hero-content { animation: none; }
@keyframes hero-arrive {
  from { opacity: .5; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections and services */
.section { padding: 40px 4.8%; }
.section-label { display: flex; justify-content: space-between; font: var(--meta-size) var(--mono); letter-spacing: .7px; color: var(--muted); margin-bottom: 18px; }
.intro-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; margin-bottom: 22px; }
.intro-heading h2 span { color: #757575; }
.intro-heading > p { font-size: var(--body-size); color: var(--muted); max-width: 490px; }
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service summary { display: grid; grid-template-columns: 38px 1fr 250px 24px; align-items: center; gap: 14px; padding: 17px 0; }
.service summary:hover .service-title { color: var(--bright); }
.service-number { font: 11px var(--mono); color: var(--bright); }
.service-title { font-size: 28px; letter-spacing: -1px; }
.service-tags { font: 11px var(--mono); letter-spacing: .5px; color: var(--muted); }
.expand { display: flex; align-items: center; justify-content: center; justify-self: center; line-height: 1; color: var(--bright); font-weight: 400; transition: transform .2s; }
.service[open] .expand { transform: rotate(45deg); }
.service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0 24px 20px 52px; }
.service-body p { font-size: var(--body-size); color: var(--muted); max-width: 520px; }
.service-body ul { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.65; }
.service-body li:before { content: '↗'; color: var(--bright); margin-right: 10px; }


/* Approach and experience */
.approach { border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps article { display: flex; flex-direction: column; padding: 18px 24px 0; border-top: 1px solid #c14a3e; border-right: 1px solid var(--line); }
.steps article:first-child { padding-left: 0; }
.steps article:last-child { padding-right: 0; border-right: 0; }
.step-index { font: var(--meta-size) var(--mono); letter-spacing: .7px; color: var(--bright); }
.steps h3 { font-size: 30px; margin: 14px 0 10px; }
.steps p { font-size: var(--body-size); color: var(--muted); padding-bottom: 16px; }
.experience-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6%; }
.experience-lead h2 { font-size: clamp(34px, 3.3vw, 47px); margin: 0 0 16px; }
.experience-lead > p { font-size: var(--body-size); color: var(--muted); margin: 0 0 14px; }
.experience-list { border-left: 2px solid var(--red); padding-left: 26px; }
.experience-list article { padding: 15px 0; border-top: 1px solid var(--line); }
.experience-list article:first-child { padding-top: 0; border: 0; }
.experience-list article:last-child { padding-bottom: 0; }
.experience-list h3 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.6px; }
.experience-list article p { font-size: var(--body-size); color: var(--muted); }

/* Questions, contact, and footer */
.faq { background: #eae9e5; display: grid; grid-template-columns: 1fr 1.7fr; gap: 5%; border-top: 1px solid var(--line); }
.faq h2 { margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 18px; }
.faq summary span { color: var(--bright); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { font-size: 17px; color: var(--muted); padding: 0 16px 18px 0; }
.expand, .faq summary > span { position: relative; flex-shrink: 0; font-size: 0; width: 16px; height: 16px; }
.expand:before, .expand:after, .faq summary > span:before, .faq summary > span:after { content: ''; position: absolute; width: 14px; height: 1.5px; background: currentColor; left: 1px; top: 7px; }
.expand:after, .faq summary > span:after { transform: rotate(90deg); }
.contact { color: #fff8f2; background: #bb382e; position: relative; overflow: hidden; }
.contact:after { content: ''; position: absolute; width: 570px; height: 570px; border: 80px solid #f28c76; border-radius: 50%; opacity: .16; right: -130px; top: -100px; pointer-events: none; }
.contact .tiny-ring { border-color: #ffe1d4; }
.contact .eyebrow { color: #fff2ed; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(52px, 6vw, 80px); margin: 18px 0 20px; position: relative; z-index: 1; line-height: .98; }
.contact em { color: #ffd1bf; }
.contact-bottom { display: flex; justify-content: space-between; align-items: end; gap: 28px; position: relative; z-index: 1; }
.contact-bottom p { max-width: 480px; font-size: 18px; color: #fff0eb; }
.footer { padding: 24px 4.8%; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
.footer > p { font-size: 14px; color: var(--muted); }
.footer > div { display: flex; flex-direction: column; align-items: end; gap: 4px; font-size: 13px; color: var(--muted); }
.footer > div a { color: var(--ink); display: inline-flex; align-items: center; min-height: 32px; }
.footer .brand { width: max-content; }

/* Responsive layouts */
@media (min-width: 1600px) {
  .hero { min-height: 545px; }
  .section { padding-inline: max(4.8%, calc((100vw - 1460px) / 2)); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .service-tags { display: none; }
  .service summary { grid-template-columns: 28px 1fr 24px; }
  .service-body { margin-left: 42px; }
  .hero h1 { font-size: 60px; }
  .steps article { padding-inline: 16px; }
  .experience-layout { gap: 4%; }
  .experience-list { padding-left: 20px; }
}
@media (max-width: 760px) {
  :root { --header-height: 72px; --body-size: 17px; }
  .header { padding-inline: 6%; }
  .brand { font-size: 25px; }
  .brand-ring { width: 29px; height: 29px; }
  .brand-small { font-size: 8px; letter-spacing: 3px; }
  .menu-toggle { display: flex; gap: 25px; align-items: center; background: none; border: 1px solid #b6b0aa; color: var(--ink); padding: 11px 13px; font-size: 12px; }
  .menu-toggle span { color: var(--bright); font-size: 20px; line-height: 1; }
  .header nav { display: none; position: absolute; top: calc(var(--header-height) - 1px); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px 6%; align-items: stretch; font-size: 16px; }
  .header nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .no-js .header { position: static; height: auto; flex-wrap: wrap; gap: 16px; padding-block: 20px; }
  .no-js .menu-toggle { display: none; }
  .no-js .header nav { position: static; display: flex; flex-direction: column; width: 100%; padding: 0; gap: 0; border: 0; }
  .header nav > a { padding: 17px 0; }
  .header nav .nav-contact { margin: 8px 0; padding: 15px; }
  .hero { padding: 26px 6% 0; min-height: 0; }
  .hero-content { max-width: none; }
  .hero h1 { font-size: clamp(50px, 9vw, 66px); margin: 16px 0; max-width: 600px; }
  .hero-description { font-size: 18px; max-width: 520px; }
  .hero-art:before { background: linear-gradient(180deg, #f3f2ef 0%, #f3f2ef 47%, rgba(243,242,239,.65) 60%, transparent 82%, #f3f2ef 100%); }
  .wave-image { inset: auto 0 0; width: 100%; aspect-ratio: 2048 / 1147; min-height: 320px; background-size: cover; background-position: center; mask-image: linear-gradient(to bottom, transparent, black 24%); -webkit-mask-image: linear-gradient(to bottom, transparent, black 24%); }
  .hero-bottom { margin-top: 115px; padding: 8px 0; gap: 16px; align-items: start; }
  .hero-bottom a { gap: 15px; white-space: nowrap; line-height: 1.7; }
  .hero-controls { gap: 16px; }
  .button { padding: 14px 18px; gap: 24px; }
  .button-red { margin-top: 18px; }
  .section { padding: 30px 6%; }
  .section-label { margin-bottom: 16px; gap: 14px; line-height: 1.7; letter-spacing: .5px; }
  .section-label > span:nth-child(2):not(.tiny-ring) { display: none; }
  h2, .experience-lead h2 { font-size: 34px; }
  .intro-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
  .service summary { padding: 15px 0; grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 10px; }
  .service-title { font-size: 24px; letter-spacing: -.7px; }
  .service-tags { display: none; }
  .service-number { font-size: 9px; }
  .service-body { display: block; margin: 0 0 18px 32px; }
  .service-body ul { margin-top: 10px; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article:first-child, .steps article:last-child { padding: 16px 0; border-right: 0; margin-bottom: 18px; }
  .steps article:last-child { margin-bottom: 0; }
  .steps h3 { font-size: 28px; margin: 10px 0 8px; }
  .steps p { min-height: 0; padding-bottom: 12px; }
  .experience-layout { grid-template-columns: 1fr; gap: 16px; }
  .experience-lead > p { margin-bottom: 10px; }
  .experience-list { padding-left: 18px; }
  .experience-list h3 { font-size: 23px; }
  .experience-list article { padding-block: 12px; }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .faq h2 { font-size: 34px; margin-top: 10px; }
  .faq summary { font-size: 17px; padding-block: 15px; }
  .faq details p { font-size: 16px; }
  .contact h2 { font-size: 56px; margin: 16px 0; }
  .contact-bottom { display: block; }
  .contact-bottom p { font-size: 17px; }
  .contact-bottom .button { margin-top: 18px; min-width: 0; }
  .contact:after { width: 360px; height: 360px; border-width: 55px; top: 20px; right: -195px; }
  .footer { padding: 22px 6%; grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer > p { font-size: 13px; }
  .footer > div { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .compact-break { display: initial; }
  .hero h1 { font-size: clamp(47px, 13vw, 62px); }
  .hero-description { font-size: 17px; }
  .hero-bottom { margin-top: 105px; }
  h2, .experience-lead h2 { font-size: 32px; }
}
@media (max-width: 380px) {
  .hero-controls a { gap: 8px; }
}

/* Motion preferences override every responsive layout. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
  .hero-wave { transform: none !important; will-change: auto; }
  .motion-toggle { display: none; }
  .wave-image { animation: none !important; will-change: auto; }
  .has-flow { background-image: url(assets/consensus-ribbon.jpg); }
  .wave-canvas { display: none; }
}
