:root {
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bg: #f4f0e7;
  --surface: #fcfaf6;
  --text: #1f2320;
  --muted: #64615a;
  --border: #e9e2d6;
  --brand: #0e8c7b;
  --brand-strong: #0b6a5d;
  --brand-light: #3fc9b0;
  --brand-tint: #d6f0ea;
  --accent: #e0913d;
  --accent-strong: #a8621f;
  --accent-tint: #f6e4cc;
  --deep: #26223a;
  --focus: #e0913d;
  --white: #fff;
  --container: 90rem;
  --inline: clamp(1rem, 4vw, 4rem);
  --section: clamp(4rem, 9vw, 8rem);
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --radius-sm: .5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
.project-image { width: 100%; height: 100%; display: block; object-position: top center; }
.project-image--small { object-fit: contain; background: var(--bg); }
.project-image--medium { object-fit: contain; padding: clamp(.25rem, .7vw, .6rem); background: var(--border); }
.project-image--large { object-fit: contain; background: var(--border); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
button, select { font: inherit; }
::selection { color: var(--text); background: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .98; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.15; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -5rem; left: 1rem; padding: .75rem 1rem; color: var(--white); background: var(--text); border-radius: var(--radius-sm); transition: top 120ms ease-out; }
.skip-link:focus { top: 1rem; }
.container-shell { width: min(100% - 2 * var(--inline), var(--container)); margin-inline: auto; }
.eyebrow { margin-bottom: 1rem; color: var(--muted); font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--accent { color: var(--brand-light); }
.lead { max-width: 54ch; color: var(--muted); font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.lead--small { font-size: 1.125rem; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 84%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.site-header__inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__symbol { width: 2.4rem; height: 2.4rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font: 800 1rem/1 var(--font-display); }
.brand small { margin-top: .25rem; color: var(--muted); font: 400 .625rem/1 var(--font-mono); letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav > a:not(.button) { padding: .6rem .75rem; border-radius: .4rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.main-nav > a:not(.button):hover { color: var(--text); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: .3rem 0; background: var(--text); }

.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 0 1.5rem; border: 1px solid transparent; border-radius: var(--radius-pill); font-weight: 600; line-height: 1; transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.button:hover { transform: translateY(-1px); }
.button--small { min-height: 2.75rem; padding-inline: 1.25rem; font-size: .875rem; }
.button--primary { color: var(--white); background: var(--brand); }
.button--primary:hover { color: var(--white); background: var(--brand-strong); }
.button--secondary { color: var(--text); border-color: var(--text); background: transparent; }
.button--secondary:hover { color: var(--white); background: var(--text); }
.button--accent { min-height: 3.25rem; color: var(--text); background: var(--accent); }
.button--accent:hover { color: var(--text); background: var(--accent-tint); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero { min-height: calc(100svh - 4.5rem); padding-block: clamp(2rem, 4.5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(19rem, .9fr); align-content: center; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.hero h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero .lead { max-width: 46ch; }
.hero .button-row { margin-top: 1.75rem; }
.hero__trust { margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; }
.hero__trust strong { color: var(--text); font-weight: 600; }

.hero-showcase { display: grid; gap: 1rem; }
.hero-showcase__frame { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 2rem 5rem color-mix(in srgb, var(--text) 12%, transparent); }
.hero-showcase__bar { height: 3rem; display: flex; align-items: center; gap: .45rem; padding: 0 1rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.hero-showcase__dot { width: .58rem; height: .58rem; border-radius: 50%; background: var(--border); }
.hero-showcase__dot:first-child { background: var(--accent); }
.hero-showcase__url { margin-left: .5rem; padding: .28rem .7rem; flex: 1; overflow: hidden; color: var(--muted); border-radius: var(--radius-pill); background: var(--surface); font: .68rem/1 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.hero-showcase__url::before { content: "🔒 "; }
.hero-showcase__live { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .55rem; color: var(--brand-strong); border-radius: var(--radius-pill); background: var(--brand-tint); font: 500 .6rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.hero-showcase__live::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); animation: hero-pulse 2.4s var(--ease) infinite; }
.hero-showcase__stage { position: relative; aspect-ratio: 16 / 9; max-height: min(58vh, 30rem); background: var(--border); }
.hero-showcase__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 640ms var(--ease); pointer-events: none; }
.hero-showcase__slide.is-active { opacity: 1; }
.hero-showcase__slide .project-image--medium { width: 100%; height: 100%; }
.hero-showcase__slide figcaption { position: absolute; left: .9rem; bottom: .9rem; padding: .35rem .6rem; color: var(--text); border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent); border-radius: .35rem; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); font: 500 .66rem var(--font-mono); }
.hero-showcase__tabs { display: flex; gap: .5rem; padding-inline: .15rem; }
.hero-showcase__tab { flex: 1; height: .32rem; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--border); cursor: pointer; transition: background 200ms var(--ease); }
.hero-showcase__tab:hover { background: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.hero-showcase__tab.is-active { background: var(--brand); }
@keyframes hero-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 .4rem transparent; } }

.section { padding-block: var(--section); }
.section--compact { padding-top: clamp(2rem, 4vw, 4rem); }
.section-heading { padding-top: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--border); }
.section-heading h2 { max-width: 20ch; margin-bottom: 0; }
.section-heading--split { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 6rem) var(--gap); }
.project-card__link { display: block; color: var(--text); }
.project-card__link:hover { color: var(--text); }
.project-card__media { position: relative; aspect-ratio: 16 / 9; min-height: 18rem; display: flex; align-items: end; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--border); transition: transform 200ms var(--ease); }
.project-card__link:hover .project-card__media { transform: translateY(-4px); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--text) 8%, transparent), transparent 35%, color-mix(in srgb, var(--text) 12%, transparent)); pointer-events: none; }
.project-card__media .project-image--small { width: 100%; height: 100%; transition: transform 350ms var(--ease); }
.project-card__link:hover .project-card__media img { transform: scale(1.015); }
.project-card__caption { position: absolute; left: .9rem; padding: .35rem .6rem; border-radius: .35rem; font: 500 .68rem var(--font-mono); }
.project-card__caption { z-index: 1; bottom: .9rem; color: var(--text); border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); }
.project-card__caption--live { display: inline-flex; align-items: center; gap: .4rem; }
.project-card__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 5%, transparent); }
.project-card h3 { margin: 1.25rem 0 .75rem; }
.project-card p { max-width: 52ch; margin-bottom: 1rem; color: var(--muted); line-height: 1.55; }
.project-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.1rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); font-size: .875rem; font-weight: 650; }
.text-link:hover { color: var(--brand); }
.text-link--external { color: var(--brand); }
.project-card__status { color: var(--muted); font: .72rem var(--font-mono); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list span { padding: .3rem .55rem; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-sm); font: .7rem var(--font-mono); }

.split-layout { display: grid; grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.35fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.split-layout__intro { position: sticky; top: 7rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.split-layout__intro h2 { max-width: 15ch; }
.split-layout__intro > p:last-child { max-width: 38ch; color: var(--muted); font-size: 1.125rem; }
.capability-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.capability-list > li { padding: 1.75rem 1rem; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; border-bottom: 1px solid var(--border); transition: background 200ms var(--ease); }
.capability-list > li:hover { background: var(--surface); }
.capability-list > li > span { align-self: start; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; color: var(--brand); border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font: 600 .8rem var(--font-mono); }
.capability-list h3 { margin-bottom: .7rem; }
.capability-list p { max-width: 56ch; margin-bottom: 1rem; color: var(--muted); }
.process-timeline { position: relative; }
.timeline { position: relative; z-index: 1; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.timeline__step { position: relative; padding: 3.25rem var(--gap) 0 0; }
.timeline__step:last-child { padding-right: 0; }
.timeline__line { position: absolute; z-index: 0; top: 1.05rem; left: 1.1rem; right: calc(20% - 1.1rem); height: 2px; overflow: hidden; background: var(--border); }
.timeline__line-fill { display: block; width: 100%; height: 100%; background: var(--brand); transform-origin: left center; }
.js .timeline__line-fill { width: 0; transition: width 1.6s cubic-bezier(.16, .8, .3, 1); }
.js .process-timeline.is-active .timeline__line-fill { width: 100%; }
.js .timeline__step { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .process-timeline.is-active .timeline__step { opacity: 1; transform: translateY(0); }
.js .process-timeline.is-active .timeline__step:nth-child(1) { transition-delay: .15s; }
.js .process-timeline.is-active .timeline__step:nth-child(2) { transition-delay: .27s; }
.js .process-timeline.is-active .timeline__step:nth-child(3) { transition-delay: .39s; }
.js .process-timeline.is-active .timeline__step:nth-child(4) { transition-delay: .51s; }
.js .process-timeline.is-active .timeline__step:nth-child(5) { transition-delay: .63s; }
.timeline__num { position: absolute; top: 0; left: 0; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; color: var(--white); background: var(--brand); border-radius: 50%; font: 600 .85rem var(--font-mono); transition: transform .3s ease, box-shadow .3s ease; }
.timeline__step:hover .timeline__num { transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 15%, transparent); }
.timeline h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

.proof-band { color: var(--white); background: var(--deep); }
.proof-band__inner { padding-block: var(--section); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.proof-band h2 { max-width: 20ch; }
.automation-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; list-style: none; }
.automation-grid li { padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--white) 25%, transparent); }
.automation-grid span { color: var(--brand-light); font: 500 .7rem var(--font-mono); }
.automation-grid h3 { margin: .75rem 0 .55rem; color: var(--white); font-size: 1.1rem; }
.automation-grid p { margin: 0; color: var(--border); font-size: .92rem; line-height: 1.55; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.company-grid h2 { max-width: 18ch; }
.plain-list { padding: 0; list-style: none; border-top: 1px solid var(--border); }
.plain-list li { position: relative; padding: .95rem 0 .95rem 1.6rem; border-bottom: 1px solid var(--border); }
.plain-list li::before { content: ""; position: absolute; top: 1.5rem; left: .15rem; width: .5rem; height: .5rem; border-radius: .12rem; background: var(--brand); }
.identity-list .identity-list__item { padding: 1.1rem 0; display: flex; align-items: center; gap: 1rem; }
.identity-list .identity-list__item::before { top: 0; bottom: 0; left: -1.5rem; width: 2px; height: auto; border-radius: 0; transform: scaleY(0); transform-origin: center top; transition: transform .4s ease; }
.identity-list__badge { flex: 0 0 1.875rem; width: 1.875rem; height: 1.875rem; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 50%; font: 500 .68rem var(--font-mono); transition: color .3s ease, background .3s ease, border-color .3s ease; }
.identity-list__text { color: var(--text); line-height: 1.55; }
.identity-list__item:hover::before { transform: scaleY(1); }
.identity-list__item:hover .identity-list__badge { color: var(--white); border-color: var(--brand); background: var(--brand); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.insight-grid article { min-height: 16rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.insight-grid span { color: var(--brand); font: .7rem var(--font-mono); text-transform: uppercase; }
.insight-grid h3 { margin: 3rem 0 1rem; font-size: 1.35rem; }
.insight-grid p { color: var(--muted); }
.team-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-content: start; }
.team-card { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 1.25rem 3rem color-mix(in srgb, var(--text) 8%, transparent); }
.team-card__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; border-radius: var(--radius-sm); background: var(--border); }
.team-card__placeholder { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; color: var(--brand-strong); border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--surface), var(--brand-tint)); }
.team-card__placeholder span { font: 800 clamp(3rem, 7vw, 5.5rem)/1 var(--font-display); letter-spacing: -.06em; }
.team-card__body { padding: 1rem .35rem .35rem; }
.team-card h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.team-card__role { margin: 0 0 .75rem; color: var(--brand); font: 600 .78rem var(--font-mono); }
.team-card__bio { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-head { width: 100%; padding: 1.5rem .25rem; display: flex; align-items: center; gap: .85rem; color: var(--text); border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.faq-head:hover .faq-question { color: var(--brand-strong); }
.faq-head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.faq-chevron { flex: 0 0 auto; color: var(--muted); font-size: .7rem; transition: color .3s ease, transform .3s ease; }
.faq-question { font: 700 clamp(1.1rem, 1.6vw, 1.4rem)/1.3 var(--font-display); transition: color .2s ease; }
.faq-body { margin-left: .3rem; overflow: hidden; border-left: 2px solid var(--brand); }
.js .faq-body { max-height: 0; transition: max-height .35s ease; }
.js .faq-item.is-open .faq-body { max-height: 16rem; }
.faq-answer { max-width: 64ch; margin: .85rem 1.15rem 1.5rem; color: var(--muted); }
.faq-item.is-open .faq-chevron { color: var(--brand); transform: rotate(90deg); }
.cta-section { padding-block: var(--section); }
.cta-section > div { padding: clamp(2.5rem, 6vw, 5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-radius: var(--radius-md); background: var(--deep); }
.cta-section h2 { max-width: 18ch; margin: 0; color: var(--white); }
.cta-section__action { display: grid; justify-items: center; gap: .85rem; }
.cta-section__note { margin: 0; color: color-mix(in srgb, var(--white) 82%, transparent); font: 500 .8rem var(--font-mono); text-align: center; }

.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { margin-bottom: 1.5rem; }
.portfolio-filters { padding-bottom: 1rem; }
.filter-form { padding-block: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1rem; align-items: end; border-block: 1px solid var(--border); }
.filter-form label { display: grid; gap: .5rem; color: var(--muted); font: .7rem var(--font-mono); }
.filter-form select { width: 100%; min-height: 2.75rem; padding: 0 2.5rem 0 .8rem; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.filter-form__actions { display: flex; align-items: center; gap: .8rem; }
.filter-form__actions > a { color: var(--muted); font-size: .875rem; text-decoration: underline; text-underline-offset: .2rem; }
.filter-result { margin: 1.25rem 0 0; display: flex; justify-content: space-between; gap: 1rem; }
.filter-result code { padding: .3rem .55rem; color: var(--brand); border: 1px solid var(--border); border-radius: .35rem; background: var(--surface); font: .7rem var(--font-mono); }
.filter-result__live { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font: .72rem var(--font-mono); }
.filter-result__live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand); }
.empty-state { padding: clamp(3rem, 7vw, 6rem); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-md); }

.case-hero { padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem); color: var(--white); background: var(--deep); }
.case-back { display: inline-flex; gap: .5rem; margin-bottom: 2rem; color: var(--border); font: .75rem var(--font-mono); }
.case-back:hover { color: var(--accent); }
.case-hero h1 { max-width: 18ch; }
.case-hero__change { max-width: 25ch; margin-top: 1.75rem; font: 600 clamp(1.25rem, 2vw, 1.75rem)/1.35 var(--font-display); }
.case-hero dl { max-width: 50rem; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.case-hero dt { margin-bottom: .5rem; color: var(--brand-light); font: .68rem var(--font-mono); text-transform: uppercase; }
.case-hero dd { margin: 0; color: var(--border); }
.case-visual-wrap { padding-top: clamp(1.5rem, 3vw, 3rem); }
.case-hero__link { margin-top: 1.75rem; }
.case-hero__status { width: fit-content; margin-top: 1.75rem; padding: .55rem .8rem; color: var(--brand-light); border: 1px solid color-mix(in srgb, var(--brand-light) 45%, transparent); border-radius: var(--radius-pill); font: .72rem var(--font-mono); }
.case-visual { position: relative; aspect-ratio: 16 / 9; min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--border); }
.case-visual .project-image--large { width: 100%; height: 100%; }
.case-visual figcaption { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; color: var(--text); border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent); border-radius: .35rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); font: .68rem var(--font-mono); }
.case-gallery { margin-top: var(--gap); display: grid; gap: var(--gap); }
.case-visual--gallery { min-height: 0; aspect-ratio: 16 / 9; }
.case-visual--gallery .project-image--large { position: absolute; inset: 0; height: 100%; }
.case-visual__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand); }
.case-cta { padding-block: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; border-top: 1px solid var(--border); }
.case-cta h2 { max-width: 20ch; margin: 0; }
.case-cta__action { display: grid; justify-items: start; gap: .7rem; }
.case-cta__note { color: var(--muted); font: 500 .8rem var(--font-mono); }
.case-layout { padding-block: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 13rem minmax(0, 68ch); justify-content: center; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.case-nav { position: sticky; top: 6.5rem; display: flex; flex-direction: column; }
.case-nav p { padding-bottom: .75rem; margin-bottom: .5rem; color: var(--muted); border-bottom: 1px solid var(--border); font: .68rem var(--font-mono); text-transform: uppercase; }
.case-nav a { padding: .45rem 0; color: var(--muted); font-size: .875rem; }
.case-nav a:hover { color: var(--text); }
.case-body > section { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border); scroll-margin-top: 6rem; }
.case-body > section:first-child { padding-top: 0; }
.case-body > section > p:not(.eyebrow) { font-size: 1.125rem; text-wrap: pretty; }
.case-interface { min-height: 20rem; margin-top: 2rem; padding: 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.case-interface span { grid-row: 1 / 4; border-radius: .6rem; background: var(--text); }
.case-interface i { border-radius: .6rem; background: var(--border); }
.quality-list { padding: 0; list-style: none; border-top: 1px solid var(--border); }
.quality-list li { position: relative; padding: .9rem 0 .9rem 1.4rem; border-bottom: 1px solid var(--border); }
.quality-list li::before { content: ""; position: absolute; top: 1.45rem; left: .1rem; width: .45rem; height: .45rem; border-radius: .12rem; background: var(--accent); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.metric-grid > div { padding-top: 1.2rem; display: grid; border-top: 2px solid var(--text); }
.metric-grid strong { font: 800 clamp(2rem, 3.5vw, 3rem)/1 var(--font-display); }
.metric-grid span { margin-top: .65rem; line-height: 1.35; }
.metric-grid small { margin-top: .35rem; color: var(--muted); font: .65rem var(--font-mono); }
blockquote { margin: 3rem 0 0; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
blockquote p { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.35 var(--font-display); }
blockquote footer { color: var(--muted); }
.next-project { width: min(100% - 2 * var(--inline), var(--container)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; color: var(--text); border-top: 1px solid var(--border); }
.next-project:hover { color: var(--text); }
.next-project span { display: grid; gap: .7rem; }
.next-project small { color: var(--muted); font: .7rem var(--font-mono); text-transform: uppercase; }
.next-project strong { max-width: 22ch; font: 700 clamp(1.75rem, 3.5vw, 3rem)/1.08 var(--font-display); }
.next-project b { color: var(--brand); font: 700 clamp(2rem, 4vw, 3.5rem) var(--font-display); }

.site-footer { padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; color: var(--white); background: var(--deep); }
.site-footer__grid { padding-bottom: 3.5rem; display: grid; grid-template-columns: minmax(16rem, 2fr) 1fr minmax(14rem, 1.25fr); gap: 2.5rem; border-bottom: 1px solid color-mix(in srgb, var(--white) 15%, transparent); }
.brand--footer { color: var(--white); }
.brand--footer:hover { color: var(--white); }
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text small { color: var(--brand-light); }
.site-footer p { max-width: 34ch; margin-top: 1.25rem; color: var(--border); }
.site-footer h2 { margin-bottom: 1rem; color: var(--brand-light); font: .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; align-items: start; gap: .55rem; }
.site-footer a, .site-footer span { color: var(--border); font-size: .875rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { padding-top: 1.75rem; display: flex; justify-content: space-between; gap: 1rem; }
.site-footer__bottom span { color: var(--border); font: .65rem var(--font-mono); }

.wa-fab { position: fixed; z-index: 200; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: inline-flex; align-items: center; gap: .6rem; height: 3.5rem; padding: 0 1rem; color: var(--white); border-radius: var(--radius-pill); background: var(--brand); box-shadow: 0 .6rem 1.5rem color-mix(in srgb, var(--brand) 30%, transparent), 0 .2rem .5rem color-mix(in srgb, var(--text) 15%, transparent); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.wa-fab:hover { color: var(--white); background: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 .9rem 2rem color-mix(in srgb, var(--brand) 38%, transparent), 0 .3rem .7rem color-mix(in srgb, var(--text) 18%, transparent); }
.wa-fab__icon { flex: none; }
.wa-fab__label { max-width: 0; overflow: hidden; font-weight: 600; font-size: .95rem; white-space: nowrap; opacity: 0; transition: max-width 260ms var(--ease), opacity 200ms var(--ease); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { max-width: 10rem; opacity: 1; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent); animation: wa-pulse 2.8s var(--ease) infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent); } 70%, 100% { box-shadow: 0 0 0 1rem transparent; } }

[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity 420ms cubic-bezier(.16,1,.3,1), transform 420ms cubic-bezier(.16,1,.3,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 64rem) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-showcase { max-width: 44rem; }
  .split-layout, .proof-band__inner, .company-grid { grid-template-columns: 1fr; }
  .split-layout__intro { position: static; }
  .timeline { grid-template-columns: 1fr; }
  .timeline__step { padding: 0 0 2rem 3.25rem; }
  .timeline__line { display: none; }
  .timeline__step:not(:last-child)::before,
  .timeline__step:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 2.2rem; left: 1.05rem; bottom: 0; width: 2px; transform-origin: center top; }
  .timeline__step:not(:last-child)::before { background: var(--border); }
  .timeline__step:not(:last-child)::after { background: var(--brand); }
  .js .timeline__step:not(:last-child)::after { transform: scaleY(0); transition: transform .35s cubic-bezier(.16, .8, .3, 1); }
  .js .process-timeline.is-active .timeline__step:not(:last-child)::after { transform: scaleY(1); }
  .js .process-timeline.is-active .timeline__step:nth-child(1)::after { transition-delay: .35s; }
  .js .process-timeline.is-active .timeline__step:nth-child(2)::after { transition-delay: .55s; }
  .js .process-timeline.is-active .timeline__step:nth-child(3)::after { transition-delay: .75s; }
  .js .process-timeline.is-active .timeline__step:nth-child(4)::after { transition-delay: .95s; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .filter-form { grid-template-columns: repeat(3, 1fr); }
  .filter-form__actions { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 4.5rem 0 auto; padding: 1rem var(--inline) 1.5rem; display: none; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border); background: var(--bg); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { min-height: 2.75rem; display: flex; align-items: center; }
  .main-nav .button { margin-top: .5rem; }
  .section-heading--split { align-items: start; flex-direction: column; }
  .project-grid, .insight-grid, .team-grid { grid-template-columns: 1fr; }
  .project-card__media { min-height: 15rem; }
  .automation-grid { grid-template-columns: 1fr; }
  .cta-section > div { align-items: flex-start; flex-direction: column; }
  .filter-form { grid-template-columns: 1fr; }
  .filter-form__actions { grid-column: auto; }
  .filter-result { align-items: flex-start; flex-direction: column; }
  .case-hero dl { grid-template-columns: 1fr; }
  .case-layout { grid-template-columns: 1fr; }
  .case-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .case-nav p { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
  .site-footer__grid > div:last-child { grid-column: auto; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 30rem) {
  .button-row .button { width: 100%; }
  .hero-showcase__stage { aspect-ratio: 4 / 3; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > div:first-child { grid-column: auto; }
  .wa-fab { height: 3.25rem; padding: 0 .9rem; }
  .wa-fab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wa-fab::after { animation: none; }
}
