@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500&display=swap");
:root {
  color-scheme: light;
  --bg: #f4f2ec;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #101413;
  --muted: #626a66;
  --line: #d9d7cf;
  --line-strong: #c5c2b8;
  --accent: #155c4b;
  --accent-2: #d8ff68;
  --accent-soft: #e4eee8;
  --dark: #101815;
  --dark-2: #18221e;
  --dark-muted: #aab5af;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(17, 25, 21, .09);
  --max: 1240px;
  --text-max: 760px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(16,20,19,.055) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 70%);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-2); color: var(--ink); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(244,242,236,.84); backdrop-filter: blur(18px); transition: .25s var(--ease); }
.site-header.is-scrolled { border-color: rgba(16,20,19,.09); background: rgba(244,242,236,.95); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Wordmark: Instrument Serif subset (assets/fonts, OFL). Letters roll up on hover/focus; the incoming copy is the accent green. */
.brand { display: inline-flex; align-items: center; min-width: 0; padding: 6px 0; color: var(--ink); }
.brand-name { display: inline-flex; font: 500 30px/1.2 "Fraunces", Georgia, serif; letter-spacing: -.035em; white-space: nowrap; }
.brand-l { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.brand-l > span { position: relative; display: block; transition: transform .55s cubic-bezier(.65,0,.25,1) calc(var(--i) * 14ms); }
.brand-l > span::after { content: attr(data-l); position: absolute; top: calc(100% + .3em); left: 0; color: var(--accent); }
.brand-gap { width: .26em; }
.brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand:hover .brand-l > span, .brand:focus-visible .brand-l > span { transform: translateY(calc(-100% - .3em)); }
@media (max-width: 720px) { .brand-name { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .brand-l > span { transition: color .2s ease !important; }
  .brand:hover .brand-l > span, .brand:focus-visible .brand-l > span { transform: none; color: var(--accent); }
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 620; }
.nav-links a { color: #39413e; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links .nav-cta { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); }
.nav-links .nav-cta:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; border: 0; background: transparent; font-weight: 650; }

.hero { padding: 74px 0 54px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); gap: clamp(44px,7vw,100px); align-items: center; }
.kicker, .eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; line-height: 1.2; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(48px,6.2vw,88px); line-height: .98; letter-spacing: -.06em; font-weight: 690; }
.hero h1 em { display: block; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero .lead { max-width: 700px; margin: 28px 0 0; color: #46504c; font-size: clamp(18px,2vw,22px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { border-color: var(--line-strong); background: rgba(255,255,255,.35); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-arrow::after { content: "↗"; font-size: 15px; }
.hero-note { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4c9c6a; box-shadow: 0 0 0 5px rgba(76,156,106,.11); }

.hero-proof { position: relative; min-height: 570px; }
.hero-proof::before { content: ""; position: absolute; inset: 4% 2% 3% 6%; border-radius: 42% 58% 50% 50% / 54% 42% 58% 46%; background: var(--accent-2); opacity: .52; transform: rotate(-4deg); }
.product-window { position: absolute; inset: 7% 0 8% 9%; overflow: hidden; border: 1px solid rgba(16,20,19,.12); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(17,25,21,.17); transform: rotate(2deg); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid #ecebe7; background: #f8f8f6; }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #c8cbc8; }
.product-window img { width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: center; }
.proof-chip { position: absolute; z-index: 3; max-width: 220px; padding: 13px 15px; border: 1px solid rgba(16,20,19,.1); border-radius: 13px; background: rgba(251,250,246,.96); box-shadow: 0 16px 38px rgba(17,25,21,.12); font-size: 12px; line-height: 1.35; }
.proof-chip strong { display: block; margin-bottom: 3px; font-size: 13px; }
.proof-chip.one { top: 3%; right: -3%; }
.proof-chip.two { left: 0; bottom: 4%; }
.proof-chip.three { right: -4%; bottom: 14%; background: var(--dark); color: #fff; border-color: var(--dark); }

.proof-strip { padding: 54px 0 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-item { padding: 23px 20px 22px 0; }
.proof-item + .proof-item { padding-left: 24px; border-left: 1px solid var(--line); }
.proof-item strong { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.04em; }
.proof-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.section { padding: 100px 0; }
.section.compact { padding: 76px 0; }
.section-head { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 40px; align-items: end; margin-bottom: 42px; }
.section-head h2, .case-section h2, .contact-panel h2 { margin: 0; max-width: 860px; font-size: clamp(34px,4.2vw,58px); line-height: 1.02; letter-spacing: -.05em; font-weight: 670; }
.section-head > p { margin: 0; max-width: 470px; color: var(--muted); }
/* Case studies: one left-aligned editorial block. No constrained two-column headline. */
#work .work-head { display: block; margin-bottom: 38px; }
#work .work-head-main { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
#work .work-head .eyebrow { margin: 0 0 18px; }
#work .work-head h2 { max-width: 920px; font-size: clamp(38px, 4.1vw, 58px); line-height: 1.05; letter-spacing: -.049em; }
#work .work-head-lead { margin: 21px 0 0; max-width: 640px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.52; letter-spacing: 0; }

.case-feature { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 600px; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.case-feature-copy { padding: clamp(32px,5vw,64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.case-label { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.case-label span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #d7e0dc; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.case-feature h3 { margin: 0; max-width: 540px; font-size: clamp(38px,4.2vw,60px); line-height: 1.01; letter-spacing: -.05em; font-weight: 650; }
.case-feature-copy > div > p { max-width: 570px; margin: 22px 0 0; color: #b9c4bf; font-size: 17px; }
.decision-list { display: grid; gap: 10px; }
.decision-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.12); color: #d9e1dd; font-size: 13px; }
.decision-item b { color: var(--accent-2); font-size: 11px; letter-spacing: .06em; }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 14px; }
.case-link::after { content: "→"; transition: transform .2s ease; }
a:hover .case-link::after { transform: translateX(5px); }
.case-feature-media { position: relative; min-height: 600px; overflow: hidden; background: #e6ece7; }
.case-feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,24,21,.15), transparent 26%); pointer-events: none; }
.case-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s var(--ease); }
.case-feature:hover .case-feature-media img { transform: scale(1.018); }

.case-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 18px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease; }
.case-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.case-card-media { position: relative; height: 290px; overflow: hidden; background: #e9ebe6; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.case-card:hover .case-card-media img { transform: scale(1.025); }
/* Design system card: the component cover zooms in on hover instead of switching to the Figma file. */
.bento-ds .case-card-media img { transition: transform 1.1s var(--ease); }
.bento-ds:hover .case-card-media img, .bento-ds:focus-visible .case-card-media img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .bento-ds:hover .case-card-media img, .bento-ds:focus-visible .case-card-media img { transform: none; } }
.case-card-body { flex: 1; padding: 26px 28px 28px; display: flex; flex-direction: column; }
.case-card .meta { color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.case-card h3 { margin: 11px 0 12px; font-size: 29px; line-height: 1.05; letter-spacing: -.04em; }
.case-card p { margin: 0 0 24px; color: var(--muted); }
.case-card .case-link { margin-top: auto; }
.case-card.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.case-card.dark p { color: var(--dark-muted); }
.case-card.dark .meta { color: var(--accent-2); }
.case-card.dark .case-card-media { background: var(--dark-2); }

.snapshot-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 18px; }
.snapshot { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.36); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease; }
.snapshot:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.snapshot-visual { padding: 0; }
.snapshot-media { aspect-ratio: 16 / 9; overflow: hidden; background: #e8ece7; }
.snapshot-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.snapshot:hover .snapshot-media img { transform: scale(1.02); }
.snapshot-body { padding: 24px 28px 28px; }
.snapshot .meta { color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.snapshot h3 { margin: 9px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.snapshot p { margin: 0; color: var(--muted); }
.snapshot ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.snapshot li { padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: #2f5a4d; font-size: 11px; font-weight: 700; }

.expertise { background: var(--dark); color: #fff; }
.expertise .section-head > p { color: var(--dark-muted); }
.expertise .eyebrow { color: var(--accent-2); }
.expertise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.1); }
.expertise-card { padding: 32px; background: var(--dark); }
.expertise-card .num { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.expertise-card h3 { margin: 38px 0 12px; font-size: 26px; line-height: 1.05; letter-spacing: -.035em; }
.expertise-card p { margin: 0; color: var(--dark-muted); }
.expertise-card ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: #dce3df; font-size: 13px; }
.expertise-card li::before { content: "—"; margin-right: 8px; color: #748079; }
.keyword-line { margin-top: 28px; color: #839089; font-size: 12px; line-height: 1.9; }

.about-grid { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: clamp(40px,6vw,82px); align-items: start; }
.about-side { display: grid; gap: 28px; align-content: start; }
.about-side .career { margin-top: 0; }
.about-photo { overflow: hidden; border-radius: 20px; background: #dfe3dc; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { margin: 0; max-width: 800px; font-size: clamp(36px,4.4vw,58px); line-height: 1.03; letter-spacing: -.05em; }
.about-copy > p { max-width: 760px; color: #46504c; font-size: 17px; }
.about-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; }
.about-fact { padding: 18px; border-top: 1px solid var(--line); }
.about-fact strong { display: block; font-size: 14px; }
.about-fact span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.recommendation { padding: 52px; border-radius: var(--radius-lg); background: #e8eadf; }
.recommendation blockquote { margin: 0; max-width: 1020px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px,3.3vw,45px); line-height: 1.18; letter-spacing: -.025em; }
.recommendation figcaption { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: #4b544f; font-size: 13px; }
.recommendation figcaption img { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 2px solid rgba(255,255,255,.72); box-shadow: 0 5px 18px rgba(17,25,21,.12); }
.recommendation figcaption strong { display: block; color: var(--ink); }


/* Compact recommendation carousel */
.testimonials-section { padding-top: 58px; padding-bottom: 58px; }
.testimonial-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.testimonial-head h2 { margin: 0; font-size: clamp(34px,4vw,52px); line-height: 1.02; letter-spacing: -.05em; }
.testimonial-controls { display: flex; align-items: center; gap: 8px; }
.testimonial-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 19px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.testimonial-arrow:hover { background: var(--accent-soft); transform: translateY(-1px); }
.testimonial-count { min-width: 48px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.testimonial-count b { color: var(--ink); }
.testimonial-carousel { overflow: hidden; border-radius: var(--radius-lg); outline: none; }
.testimonial-stage { display: grid; }
.testimonial-slide { grid-area: 1 / 1; margin: 0; }
.testimonial-slide[hidden] { display: none; }
.testimonial-slide.is-active { animation: recommendation-in .28s var(--ease); }
.testimonial-carousel .recommendation { min-height: 360px; padding: 38px 42px 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.testimonial-carousel .recommendation blockquote { max-width: 1080px; font-size: clamp(25px,2.65vw,38px); line-height: 1.2; }
.testimonial-carousel .recommendation figcaption { margin-top: 0; }
.testimonial-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.testimonial-carousel .recommendation { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.testimonial-tab { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 0; background: var(--surface); color: var(--muted); text-align: left; font: inherit; cursor: pointer; transition: background .2s ease, color .2s ease; }
.testimonial-tab:hover { background: #f1f1eb; color: var(--ink); }
.testimonial-tab.is-active { background: var(--accent-soft); color: var(--ink); }
.testimonial-tab img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; object-position: center; }
.testimonial-tab:first-child img { object-position: 50% 28%; }
.testimonial-tab span { min-width: 0; }
.testimonial-tab strong, .testimonial-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.testimonial-tab strong { font-size: 12px; }
.testimonial-tab small { margin-top: 2px; color: var(--muted); font-size: 11px; }
@keyframes recommendation-in { from { opacity: .25; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding: clamp(34px,5vw,64px); border-radius: var(--radius-lg); background: radial-gradient(circle at 80% 20%, rgba(216,255,104,.28), transparent 38%), linear-gradient(145deg,#e8eee8,#f6f5ef); }
.contact-panel p { max-width: 720px; margin: 18px 0 0; color: #3c463f; font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.contact-panel .btn-primary { background: var(--ink); }
.contact-panel .btn-secondary { border-color: rgba(16,20,19,.32); background: rgba(255,255,255,.35); }
.site-footer { padding: 28px 0 42px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* Case studies */
.case-page { background: var(--surface); }
.case-page .site-header { background: rgba(251,250,246,.9); }
.case-hero { padding: 76px 0 54px; }
.case-breadcrumb { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 650; }
.case-breadcrumb:hover { color: var(--accent); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 50px; align-items: end; margin-top: 34px; }
.case-hero h1 { margin: 0; max-width: 920px; font-size: clamp(48px,6vw,82px); line-height: .98; letter-spacing: -.06em; }
.case-deck { max-width: 760px; margin: 25px 0 0; color: #46504c; font-size: 20px; }
.case-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.case-meta div { min-height: 94px; padding: 15px; background: var(--surface); }
.case-meta span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.case-meta strong { display: block; margin-top: 7px; font-size: 13px; line-height: 1.35; }
.case-cover { margin-top: 48px; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #e7ebe5; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-proofbar { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case-proofbar div { padding: 20px; }
.case-proofbar div + div { border-left: 1px solid var(--line); }
.case-proofbar strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.case-proofbar span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.case-layout { display: grid; grid-template-columns: 220px minmax(0,800px); gap: clamp(40px,8vw,110px); justify-content: center; padding: 90px 0; }
.case-aside { align-self: start; position: sticky; top: 104px; }
.case-aside p { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.case-aside a { display: block; padding: 6px 0; color: #59615e; font-size: 13px; }
.case-aside a:hover { color: var(--accent); }
.case-content { min-width: 0; }
.case-section { padding: 0 0 86px; scroll-margin-top: 100px; }
.case-section:last-child { padding-bottom: 0; }
.case-section .eyebrow { margin-bottom: 14px; }
.case-section h2 { font-size: clamp(32px,4vw,52px); }
.case-section h3 { margin: 34px 0 10px; font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
.case-section p { margin: 18px 0 0; color: #48514d; font-size: 17px; }
.case-section > p { max-width: 68ch; }
.case-section ul { margin: 20px 0 0; padding-left: 20px; color: #48514d; }
.case-section li + li { margin-top: 8px; }
.case-callout { margin-top: 28px; padding: 24px 26px; border-left: 3px solid var(--accent); background: #eef1eb; }
.case-callout strong { display: block; font-size: 14px; }
.case-callout p { margin-top: 7px; font-size: 15px; }
.decision-block { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.decision-number { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.decision-block h3 { margin-top: 8px; font-size: 29px; }
.decision-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 22px; }
.decision-cell { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f5; }
.decision-cell span { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.decision-cell p { margin: 7px 0 0; font-size: 14px; }
.case-visual { margin: 30px 0 0; padding: 18px; border-radius: 18px; background: #eceee9; }
.case-visual img { width: 100%; height: auto; border-radius: 10px; object-fit: contain; }
.case-visual.phone { display: grid; place-items: center; padding: 34px; }
.case-visual.phone img { width: min(100%,360px); }
.visual-pair { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 30px; }
.visual-pair .case-visual { margin: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.case-tags span { padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: #2e594c; font-size: 11px; font-weight: 720; }
.case-next { margin-top: 86px; padding: 52px; border-radius: var(--radius-lg); background: var(--dark); color: #fff; }
.case-next .eyebrow { color: var(--accent-2); }
.case-next h2 { margin: 0; font-size: clamp(32px,4vw,50px); line-height: 1.08; letter-spacing: -.05em; }
.case-next p { max-width: 680px; color: var(--dark-muted); }
.case-next .btn { margin-top: 24px; background: var(--accent-2); color: var(--ink); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .hero-grid, .case-feature, .section-head, .case-hero-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-proof { min-height: 500px; max-width: 680px; width: 100%; }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .proof-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:nth-child(4) { border-top: 1px solid var(--line); }
  .case-feature-media { min-height: 460px; order: -1; }
  .expertise-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(100%,360px); }
  .contact-actions { justify-content: flex-start; }
  .case-layout { grid-template-columns: 1fr; }
  .case-aside { position: static; display: none; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 62px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(251,250,246,.98); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 8px; }
  .nav-links .nav-cta { margin-top: 6px; text-align: center; }
  .hero h1 { font-size: clamp(45px,14vw,68px); }
  .hero-proof { min-height: 410px; }
  .product-window { inset: 8% 2% 8% 5%; }
  .proof-chip { max-width: 175px; font-size: 11px; }
  .proof-chip.one { right: 0; }
  .proof-chip.three { right: 0; }
  .proof-grid, .case-grid, .snapshot-row, .about-facts, .case-proofbar, .decision-grid, .visual-pair { grid-template-columns: 1fr; }
  .proof-item + .proof-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 74px 0; }
  .case-feature-media { min-height: 360px; }
  .case-feature-copy { padding: 30px 24px; }
  .case-card { min-height: 0; }
  .case-card-media { height: 250px; }
  .recommendation { padding: 30px 24px; }
  .contact-panel { padding: 32px 24px; }
  .footer-inner { flex-direction: column; }
  .case-hero { padding-top: 54px; }
  .case-cover { border-radius: 16px; }
  .case-proofbar div + div { border-left: 0; border-top: 1px solid var(--line); }
  .case-layout { padding: 68px 0; }
  .case-section { padding-bottom: 68px; }
  .case-next { padding: 32px 24px; }
}


@media (max-width: 720px) {
  .testimonials-section { padding-top: 34px; padding-bottom: 34px; }
  .testimonial-head { align-items: center; margin-bottom: 12px; }
  .testimonial-head h2 { font-size: 31px; }
  .testimonial-head .eyebrow { margin-bottom: 7px; }
  .testimonial-arrow { width: 38px; height: 38px; }
  .testimonial-count { display: none; }
  .testimonial-carousel .recommendation { min-height: 0; padding: 24px 20px 22px; gap: 24px; }
  .testimonial-carousel .recommendation blockquote { font-size: clamp(22px,6.6vw,27px); line-height: 1.2; }
  .testimonial-carousel .recommendation figcaption { gap: 10px; font-size: 12px; }
  .testimonial-carousel .recommendation figcaption img { width: 50px; height: 50px; }
  .testimonial-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .testimonial-tab { justify-content: center; padding: 10px 6px; gap: 0; }
  .testimonial-tab img { width: 34px; height: 34px; flex-basis: 34px; }
  .testimonial-tab span { display: none; }
}

/* v3 — editorial, mobile-first recommendations */
.testimonial-slide[hidden] { display: none !important; }
.testimonials-section { padding-top: 54px; padding-bottom: 54px; }
.testimonial-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,420px); align-items: end; gap: 32px; margin-bottom: 18px; }
.testimonial-head h2 { margin: 0; font-size: clamp(34px,4vw,52px); line-height: 1.02; letter-spacing: -.05em; }
.testimonial-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.testimonial-carousel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #f0f1e9; outline: none; }
.testimonial-stage { display: grid; }
.testimonial-slide { grid-area: 1 / 1; margin: 0; }
.testimonial-slide.is-active { animation: recommendation-in .24s var(--ease); }
.testimonial-carousel .recommendation { position: relative; min-height: 0; padding: clamp(30px,4.2vw,54px); border-radius: 0; background: transparent; display: block; }
.testimonial-carousel .recommendation::before { content: "“"; display: block; height: 28px; margin-bottom: 14px; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 58px; line-height: .8; }
.testimonial-carousel .recommendation blockquote { display: -webkit-box; max-width: 1000px; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px,2.35vw,34px); line-height: 1.25; letter-spacing: -.02em; }
.testimonial-carousel .recommendation.is-expanded blockquote { display: block; overflow: visible; }
.testimonial-more { margin-top: 16px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--accent); font: inherit; font-size: 12px; font-weight: 760; cursor: pointer; }
.testimonial-carousel .recommendation figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.testimonial-carousel .recommendation figcaption img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center; border: 2px solid rgba(255,255,255,.82); box-shadow: 0 5px 18px rgba(17,25,21,.10); }
.testimonial-carousel .recommendation:first-child figcaption img { object-position: 50% 28%; }
.testimonial-carousel .recommendation figcaption span { min-width: 0; }
.testimonial-carousel .recommendation figcaption strong,
.testimonial-carousel .recommendation figcaption small { display: block; }
.testimonial-carousel .recommendation figcaption strong { color: var(--ink); font-size: 14px; }
.testimonial-carousel .recommendation figcaption small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.testimonial-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px 10px 20px; border-top: 1px solid var(--line); background: rgba(251,250,246,.74); }
.testimonial-progress { display: flex; align-items: center; gap: 8px; }
/* 24px hit area (WCAG 2.5.8); the visible dot is drawn by ::before. */
.testimonial-progress { gap: 0; }
.testimonial-dot { position: relative; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.testimonial-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #b8bfba; transition: width .2s ease, background .2s ease; }
.testimonial-dot.is-active { width: 32px; }
.testimonial-dot.is-active::before { width: 24px; background: var(--accent); }
.testimonial-count { margin-left: 6px; min-width: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.testimonial-count b { color: var(--ink); }
.testimonial-controls { display: flex; align-items: center; gap: 8px; }
.testimonial-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.testimonial-arrow:hover { background: var(--accent-soft); transform: translateY(-1px); }
.testimonial-arrow:focus-visible, .testimonial-dot:focus-visible, .testimonial-more:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 720px) {
  .testimonials-section { padding-top: 26px; padding-bottom: 28px; }
  .testimonial-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
  .testimonial-head h2 { font-size: 31px; }
  .testimonial-head .eyebrow { margin-bottom: 7px; }
  .testimonial-intro { max-width: 34em; font-size: 13px; }
  .testimonial-carousel { border-radius: 20px; }
  .testimonial-carousel .recommendation { padding: 24px 20px 22px; }
  .testimonial-carousel .recommendation::before { height: 22px; margin-bottom: 10px; font-size: 48px; }
  .testimonial-carousel .recommendation blockquote { -webkit-line-clamp: 7; font-size: clamp(20px,5.4vw,23px); line-height: 1.28; letter-spacing: -.018em; }
  .testimonial-more { margin-top: 13px; font-size: 11px; }
  .testimonial-carousel .recommendation figcaption { margin-top: 22px; gap: 10px; }
  .testimonial-carousel .recommendation figcaption img { flex-basis: 46px; width: 46px; height: 46px; }
  .testimonial-carousel .recommendation figcaption strong { font-size: 13px; }
  .testimonial-carousel .recommendation figcaption small { font-size: 11px; }
  .testimonial-footer { min-height: 62px; padding: 8px 10px 8px 18px; }
  .testimonial-arrow { width: 44px; height: 44px; }
  .testimonial-count { display: inline; }
}

/* v4 — animated mobile product showcase */
.mobile-project-card { position: relative; }
.mobile-showcase {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 44%, rgba(216,255,104,.34), transparent 30%),
    radial-gradient(circle at 14% 20%, rgba(21,92,75,.16), transparent 34%),
    linear-gradient(145deg, #e8eee8 0%, #f6f5ef 56%, #e2ebe5 100%);
  border-bottom: 1px solid var(--line);
}
.mobile-showcase::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.72) 48%, transparent 62%);
  transform: translateX(-55%) rotate(6deg);
  animation: mobile-sheen 8s ease-in-out infinite;
}
.mobile-showcase::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 5%; height: 18%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(18,33,27,.18);
  filter: blur(28px);
}
.mobile-showcase-badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 6;
  padding: 7px 10px;
  border: 1px solid rgba(16,20,19,.09);
  border-radius: 999px;
  background: rgba(251,250,246,.88);
  box-shadow: 0 8px 24px rgba(17,25,21,.08);
  backdrop-filter: blur(12px);
  color: #315a4e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.mobile-device {
  position: absolute;
  top: 52px;
  width: 30%;
  max-width: 170px;
  z-index: 2;
  filter: drop-shadow(0 18px 24px rgba(17,25,21,.16));
  transform-origin: 50% 100%;
  transition: transform .55s var(--ease), filter .55s var(--ease);
}
.mobile-device::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 28px;
  background: #101815;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.mobile-device-screen {
  position: relative;
  height: 268px;
  overflow: hidden;
  border-radius: 21px;
  background: #fff;
}
.mobile-device-screen img { width: 100%; height: auto; max-width: none; }
.mobile-device > span {
  position: absolute;
  left: 50%; bottom: 11px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16,24,21,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.mobile-device-left { left: 10%; transform: translateY(20px) rotate(-7deg) scale(.92); animation: mobile-float-left 5.8s ease-in-out infinite; }
.mobile-device-center { left: 50%; z-index: 4; transform: translateX(-50%) translateY(-2px) scale(1.08); animation: mobile-float-center 5.2s ease-in-out infinite; }
.mobile-device-right { right: 10%; transform: translateY(22px) rotate(7deg) scale(.92); animation: mobile-float-right 6.1s ease-in-out infinite; }
.mobile-device-left .mobile-device-screen img { animation: mobile-scroll-long 10s ease-in-out infinite alternate; }
.mobile-device-right .mobile-device-screen img { animation: mobile-scroll-long 11.5s ease-in-out 1s infinite alternate; }
.mobile-device-center .mobile-device-screen img { height: 100%; object-fit: cover; object-position: top center; }
.mobile-showcase-orbit {
  position: absolute;
  width: 78px; height: 78px;
  right: 5%; top: 13%;
  border: 1px solid rgba(21,92,75,.18);
  border-radius: 50%;
  animation: mobile-orbit 9s linear infinite;
}
.mobile-showcase-orbit::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  top: -5px; left: 50%;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(216,255,104,.18);
}
.mobile-project-card:hover .mobile-device-left { transform: translate(-8px,12px) rotate(-9deg) scale(.95); }
.mobile-project-card:hover .mobile-device-center { transform: translateX(-50%) translateY(-10px) scale(1.11); }
.mobile-project-card:hover .mobile-device-right { transform: translate(8px,14px) rotate(9deg) scale(.95); }
.mobile-project-card:hover .mobile-device { filter: drop-shadow(0 24px 30px rgba(17,25,21,.21)); }
.mobile-case-link { margin-top: 20px; color: var(--accent); }

@keyframes mobile-float-left { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes mobile-float-center { 0%,100% { translate: 0 0; } 50% { translate: 0 8px; } }
@keyframes mobile-float-right { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes mobile-scroll-long { 0%,18% { transform: translateY(0); } 82%,100% { transform: translateY(-24%); } }
@keyframes mobile-sheen { 0%,18% { transform: translateX(-60%) rotate(6deg); opacity: 0; } 35% { opacity: .7; } 58%,100% { transform: translateX(68%) rotate(6deg); opacity: 0; } }
@keyframes mobile-orbit { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .mobile-showcase { min-height: 320px; }
  .mobile-device { top: 54px; width: 31%; }
  .mobile-device-screen { height: 238px; border-radius: 18px; }
  .mobile-device::before { inset: -5px; border-radius: 23px; }
  .mobile-device-left { left: 8%; }
  .mobile-device-right { right: 8%; }
  .mobile-showcase-badge { top: 14px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-showcase::before,
  .mobile-device,
  .mobile-device-screen img,
  .mobile-showcase-orbit { animation: none !important; }
}
.keyword-line strong { color: #53615b; font-weight: 760; }


/* v5 — mobile rhythm + concise case keywords */
.case-tags span {
  letter-spacing: .005em;
  white-space: nowrap;
}
.case-content > .case-next { margin-top: 0; }

@media (max-width: 720px) {
  /* One consistent mobile rhythm: avoid stacked section padding creating 100–180px voids. */
  .section { padding: 54px 0; }
  .section.compact { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  #work .work-head { margin-bottom: 28px; }
  #work .work-head .eyebrow { margin-bottom: 12px; }
  #work .work-head h2 { max-width: none; font-size: clamp(34px, 8.5vw, 42px); line-height: 1.06; }
  #work .work-head-lead { margin-top: 16px; font-size: 15px; line-height: 1.5; }
  .about-side { gap: 18px; }

  /* Homepage: social proof should feel connected to About and Contact, not like a separate long chapter. */
  .testimonials-section { padding-top: 22px; padding-bottom: 24px; }

  /* Case-study hero and content transition. */
  .case-hero { padding-top: 42px; padding-bottom: 28px; }
  .case-hero-grid { margin-top: 24px; gap: 26px; }
  .case-deck { margin-top: 18px; font-size: 17px; }
  .case-meta div { min-height: 78px; padding: 13px 14px; }
  .case-cover { margin-top: 30px; }
  .case-proofbar { margin-top: 12px; }
  .case-proofbar div { padding: 16px 18px; }

  /* Main case flow. */
  .case-layout { padding: 38px 0 36px; }
  .case-section { padding-bottom: 48px; }
  .case-content > .case-section:last-of-type { padding-bottom: 30px; }
  .case-section .eyebrow { margin-bottom: 10px; }
  .case-section h3 { margin-top: 26px; }
  .case-section p { margin-top: 14px; }
  .decision-block { margin-top: 28px; padding-top: 24px; }
  .decision-grid { margin-top: 18px; gap: 8px; }
  .decision-cell { padding: 15px; }
  .case-visual, .visual-pair { margin-top: 22px; }
  .case-visual { padding: 12px; }
  .case-visual.phone { padding: 22px; }

  /* Keywords are supporting metadata, not a second content block. */
  .case-tags { gap: 6px; margin-top: 18px; }
  .case-tags span { padding: 6px 9px; font-size: 11px; }

  /* CTA and footer should follow the story without a blank-screen gap. */
  .case-next { margin-top: 0; padding: 28px 22px; border-radius: 20px; }
  .case-next h2 { font-size: clamp(29px,8.5vw,38px); line-height: 1.05; }
  .case-next .btn { margin-top: 20px; }
  .site-footer { padding: 18px 0 28px; }
  .footer-inner { gap: 14px; padding-top: 18px; }
}

/* v5.1 — final mobile spacing calibration */
@media (max-width: 720px) {
  .case-hero { padding-bottom: 22px; }
  .case-layout { padding-top: 28px; }
  .snapshot ul { margin-top: 14px; gap: 6px; }
  .snapshot li { padding: 6px 9px; font-size: 11px; }
  .case-label { gap: 6px; margin-bottom: 18px; }
  .case-label span { padding: 6px 8px; font-size: 11px; }
}


/* v6 — mobile hero balance + full recommendation cards */
@media (max-width: 720px) {
  /* Keep the availability signal concise and visually attached to the CTA row. */
  .hero-note {
    margin-top: 16px;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .hero-note::before { flex: 0 0 8px; }

  /* The proof artwork should sit in the visual center of the remaining hero viewport,
     instead of dropping away from the copy because of the desktop grid gap. */
  .hero-grid { gap: 22px; }
  .hero-proof {
    min-height: 390px;
    margin-top: 2px;
  }
  .hero-proof::before { inset: 2% 2% 4% 5%; }
  .product-window { inset: 4% 2% 7% 5%; }
  .proof-chip.one { top: 1%; }
  .proof-chip.two { bottom: 5%; }
  .proof-chip.three { bottom: 15%; }

  /* Full, authentic recommendations: no teaser state or expand interaction.
     A shared stage height keeps the carousel stable as quote lengths change. */
  .testimonial-stage { min-height: 500px; }
  .testimonial-carousel .recommendation {
    min-height: 500px;
    box-sizing: border-box;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
  }
  .testimonial-carousel .recommendation::before {
    flex: 0 0 auto;
    height: 20px;
    margin-bottom: 8px;
    font-size: 44px;
  }
  .testimonial-carousel .recommendation blockquote {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    font-size: clamp(17px,4.45vw,19px);
    line-height: 1.3;
    letter-spacing: -.012em;
  }
  .testimonial-carousel .recommendation figcaption {
    margin-top: auto;
    padding-top: 18px;
  }
  .testimonial-more { display: none !important; }
  .testimonial-footer { min-height: 58px; }
}

@media (max-width: 360px) {
  .hero-note { font-size: 11.5px; }
  .testimonial-stage,
  .testimonial-carousel .recommendation { min-height: 520px; }
  .testimonial-carousel .recommendation blockquote { font-size: 16.5px; }
}

/* v10-from-v6 — audited evidence and case context */
.case-byline { margin: 10px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .035em; }
@media (max-width:720px){ .case-byline{margin-top:8px;font-size:11px;} }

/* v11 — homepage information architecture: work first, then concise identity + proof */
.proof-grid { grid-template-columns: repeat(3,1fr); }

.about-section { padding-top: 82px; padding-bottom: 76px; }
.about-section .about-grid { align-items: center; }
.about-section .about-copy > p { margin: 16px 0 0; max-width: 720px; }
.about-section .about-copy > p + p { margin-top: 10px; }
.about-strengths {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 26px;
}
.about-strength {
  padding: 16px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.34);
}
.about-strength strong { display: block; font-size: 13px; line-height: 1.25; }
.about-strength span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 980px) {
  .about-section .about-grid { align-items: start; }
.about-section .about-side { gap: 20px; }
  .about-strengths { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .proof-grid { grid-template-columns: 1fr; }
  .about-section { padding-top: 46px; padding-bottom: 30px; }
  .about-section .about-grid { gap: 24px; }
  .about-section .about-photo { max-width: 220px; }
  .about-section .about-copy h2 { font-size: clamp(31px,9vw,40px); }
  .about-section .about-copy > p { margin-top: 13px; font-size: 15px; line-height: 1.55; }
  .about-section .about-copy > p + p { margin-top: 8px; }
  .about-strengths { grid-template-columns: 1fr; gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
  .about-strength { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .about-strength strong { font-size: 13px; }
  .about-strength span { margin-top: 4px; font-size: 12px; }
    .testimonials-section { padding-top: 28px; }
}


/* v12 — product-first motion previews and tighter mobile storytelling */
.preview { position: relative; }
.preview-poster { position: relative; z-index: 0; }
.preview-live {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 0%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 1.6s cubic-bezier(.33,0,.2,1) !important;
  pointer-events: none;
}
.preview-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,24,21,.84);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.preview-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 0 4px rgba(216,255,104,.12); }
.preview-badge .on-touch { display:none; }
@keyframes preview-pan-y { 0%,12% { object-position:50% 0%; } 88%,100% { object-position:50% var(--pan-end,70%); } }
@keyframes preview-pan-x { 0%,12% { object-position:0% 50%; transform:scale(1.12); } 88%,100% { object-position:100% 50%; transform:scale(1.12); } }
.preview-live.pan-y { animation: preview-pan-y 10.5s ease-in-out infinite alternate paused; }
.preview-live.pan-x { animation: preview-pan-x 11.5s ease-in-out infinite alternate paused; }
@media (hover:hover) {
  a:hover .preview-live, a:focus-visible .preview-live { opacity:1; animation-play-state:running; }
  a:hover .preview-badge .on-hover, a:focus-visible .preview-badge .on-hover { display:none; }
  a:hover .preview-badge::after, a:focus-visible .preview-badge::after { content:"Previewing"; }
}
@media (hover:none) {
  .preview-badge .on-hover { display:none; }
  .preview-badge .on-touch { display:inline; }
  .preview.is-inview .preview-live { opacity:1; transform:none; animation-play-state:running; }
}
.case-feature:hover .case-feature-media img.preview-live,
.case-card:hover .case-card-media img.preview-live { transform:none; }

/* Mobile showcase: three consistent frameless product surfaces, all scrolling. */
.mobile-device::before { display:none; }
.mobile-device-screen {
  border: 1px solid rgba(16,20,19,.12);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(17,25,21,.16);
  background:#fff;
}
.mobile-device-center .mobile-device-screen img {
  width:100%; height:auto; object-fit:initial; object-position:initial;
  animation: mobile-scroll-center 12.5s ease-in-out .5s infinite alternate;
}
@keyframes mobile-scroll-center { 0%,16% { transform:translateY(0); } 84%,100% { transform:translateY(-46%); } }

@media (max-width:720px) {
  /* Flagship on home is a teaser, not a second case study. */
  .case-feature { min-height:0; }
  .case-feature-media { min-height:310px; height:310px; }
  .case-feature-copy { padding:26px 22px 28px; gap:18px; }
  .case-feature .case-label { margin-bottom:15px; }
  .case-feature .case-label span { padding:6px 8px; font-size: 11px; }
  .case-feature .case-label span:nth-child(n+3) { display:none; }
  .case-feature h3 { max-width:12em; font-size:clamp(31px,9.4vw,39px); line-height:1.01; }
  .case-feature-copy > div > p { margin-top:14px; font-size:14px; line-height:1.48; }
  .case-feature .decision-list { display:none; }
  .case-feature .case-link { margin-top:0 !important; font-size:13px; }
  .preview-badge { left:10px; bottom:10px; padding:5px 8px; font-size: 11px; }

  /* About portrait becomes a deliberate full-width editorial crop instead of a small image + blank column. */
  .about-section .about-photo { width:100%; max-width:none; aspect-ratio:4 / 3; border-radius:18px; }
  .about-section .about-photo img { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:50% 31%; }

  .mobile-device { width:31.5%; max-width:none; }
  .mobile-device-screen { border-radius:13px; }
}

@media (prefers-reduced-motion:reduce) {
  .preview-live, .mobile-device-center .mobile-device-screen img { animation:none !important; }
  .preview.is-inview .preview-live { opacity:0; }
}

/* v12 mobile surfaces: let side screens reveal more of their long product flows. */
.mobile-device-left .mobile-device-screen img { animation-name: mobile-scroll-side-left; }
.mobile-device-right .mobile-device-screen img { animation-name: mobile-scroll-side-right; }
@keyframes mobile-scroll-side-left { 0%,18% { transform:translateY(0); } 82%,100% { transform:translateY(-35%); } }
@keyframes mobile-scroll-side-right { 0%,18% { transform:translateY(0); } 82%,100% { transform:translateY(-38%); } }

/* v13 · Investor Portal evidence and system proof */
.artifact-figure { margin-top:28px; }
.artifact-figure figcaption {
  padding:12px 4px 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.system-proof-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:22px 0 34px;
}
.system-proof-grid > div {
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.34);
}
.system-proof-grid strong { display:block; margin-bottom:7px; font-size:14px; }
.system-proof-grid p { margin:0; font-size:13px; line-height:1.55; color:var(--muted); }
.case-subhead { margin:38px 0 10px; font-size:clamp(22px,3vw,30px); line-height:1.1; }
.mobile-system-figure { background:#f4f2ec; }
@media (max-width:720px) {
  .system-proof-grid { grid-template-columns:1fr; gap:8px; margin-top:18px; }
  .system-proof-grid > div { padding:15px 16px; }
  .artifact-figure figcaption { font-size:12px; }
  .case-subhead { margin-top:30px; }
}

/* v14 · Investor Portal narrative case study */
.story-lead { max-width:720px; font-size:20px !important; line-height:1.55; color:#303936 !important; }
.story-note { display:grid; grid-template-columns:110px 1fr; gap:22px; margin-top:34px; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.story-note > span { color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.story-note p { margin:0; font-size:15px; }
.story-question { margin-top:54px; padding:34px 38px; border-radius:22px; background:var(--dark); color:#fff; }
.story-question span { display:block; margin-bottom:12px; color:var(--accent-2); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.story-question strong { display:block; max-width:680px; font-size:clamp(25px,3.2vw,38px); line-height:1.16; letter-spacing:-.035em; }
.story-question em { color:#c9d2cd; font-family:Georgia,"Times New Roman",serif; font-weight:400; }

.source-note { margin-top:16px !important; color:var(--muted) !important; font-size:12px !important; }


.decision-scrolly { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:34px; margin-top:36px; align-items:start; }
.decision-steps { display:grid; gap:72px; padding-bottom:90px; }
.decision-step { min-height:360px; padding:24px 0 0 22px; border-left:2px solid var(--line); opacity:.8; transition:.3s var(--ease); }
.decision-step.is-active { border-left-color:var(--accent); opacity:1; }
.decision-step > span { color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.decision-step h3 { margin:10px 0 0; font-size:clamp(25px,3vw,34px); }
.decision-step p { font-size:15px; }
.decision-aside { padding:13px 15px; border-radius:10px; background:#eef1eb; color:#3a423f !important; font-size:13px !important; }
.decision-stage { position:sticky; top:105px; min-height:560px; border-radius:20px; overflow:hidden; background:#e9ece7; box-shadow:0 20px 60px rgba(17,25,21,.08); }
.decision-stage figure { position:absolute; inset:0; margin:0; opacity:0; transform:scale(.985); transition:opacity .45s var(--ease), transform .55s var(--ease); pointer-events:none; }
.decision-stage figure.is-active { opacity:1; transform:scale(1); }
.decision-stage img { width:100%; height:100%; object-fit:contain; padding:18px 18px 70px; }
.decision-stage figure:nth-child(3) img { object-position:top center; }
.decision-stage figcaption { position:absolute; left:16px; right:16px; bottom:16px; padding:12px 14px; border-radius:11px; background:rgba(16,24,21,.92); color:#e5ebe7; font-size:12px; backdrop-filter:blur(8px); }


.mobile-story-head { display:flex; align-items:center; justify-content:space-between; margin-top:30px; }
.mobile-story-head > span { color:var(--muted); font-size:12px; }
.mobile-story-head button { width:38px; height:38px; margin-left:5px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); }
.mobile-story-track { display:flex; gap:14px; margin-top:12px; padding:2px 2px 14px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.mobile-story-track::-webkit-scrollbar { display:none; }
.mobile-story-track figure { flex:0 0 43%; margin:0; scroll-snap-align:start; }
.mobile-story-screen { height:570px; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#eef0ec; }
.mobile-story-screen img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.mobile-story-track figcaption { display:flex; justify-content:space-between; gap:10px; padding:10px 3px 0; font-size:12px; }
.mobile-story-track figcaption span { color:var(--muted); text-align:right; }
.impact-lines { display:grid; gap:0; margin-top:28px; border-top:1px solid var(--line); }
.impact-lines span { display:grid; grid-template-columns:130px 1fr; gap:18px; padding:14px 0; border-bottom:1px solid var(--line); color:#4c5551; font-size:14px; }
.impact-lines b { color:var(--ink); }

@media (max-width:900px) {
  .decision-steps { gap:18px; padding-bottom:0; }
  .decision-step { min-height:0; padding:18px 0 18px 18px; opacity:1; }
  .decision-stage { position:relative; top:auto; min-height:500px; }
}
@media (max-width:720px) {
  .story-lead { font-size:17px !important; }
  .story-note { grid-template-columns:1fr; gap:8px; }
  .story-question { margin-top:36px; padding:25px 22px; }
  .decision-stage { min-height:430px; }
  .decision-stage img { padding:10px 10px 66px; }
  .mobile-story-track figure { flex-basis:82%; }
  .mobile-story-screen { height:520px; }
  .impact-lines span { grid-template-columns:1fr; gap:3px; }
}
@media (prefers-reduced-motion:reduce) {
  .decision-stage figure { transition:none !important; }
}
.decision-mobile-visual { display:none; margin:18px 0 0; height:320px; overflow:hidden; border-radius:14px; background:#e9ece7; }
.decision-mobile-visual img { width:100%; height:100%; object-fit:contain; }
@media (max-width:900px) {
  .decision-stage { display:none; }
  .decision-mobile-visual { display:block; }
}
@media (max-width:720px) { .decision-mobile-visual { height:280px; } }

/* ===================== v15 · audit fixes ===================== */
/* Typography: eyebrows were inflated by `.case-section p` / `.contact-panel p` specificity. */
.case-section p.eyebrow, .contact-panel p.eyebrow, .case-next p.eyebrow { margin: 0 0 14px; font-size: 12px; line-height: 1.2; letter-spacing: .13em; }
.case-section p.eyebrow, .contact-panel p.eyebrow { color: var(--accent); }
/* Headlines: no widows, no overflow on any viewport. */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li, figcaption, blockquote { text-wrap: pretty; }
.hero h1, .case-hero h1 { max-width: 15ch; }
@media (max-width: 720px) {
  .case-hero h1 { font-size: clamp(38px, 11.2vw, 52px); max-width: none; }
  .case-section h2 { font-size: clamp(29px, 8.6vw, 38px); }
  .decision-step h3 { font-size: clamp(22px, 6.6vw, 27px); }
}
/* Hero product window: anchor the crop on the product, not the middle of a table. */
.product-window img { object-position: left top; }

/* Cross-document view transitions: card → case cover (Chrome/Edge/Safari 18.2+, graceful elsewhere). */
@view-transition { navigation: auto; }
.vt-portal { view-transition-name: case-portal; }
.vt-ds { view-transition-name: case-ds; }
.vt-grow { view-transition-name: case-grow; }
.vt-mobile { view-transition-name: case-mobile; }
.vt-ops { view-transition-name: case-ops; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Reading progress + chapter pill (case pages). */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.case-aside a { position: relative; transition: color .2s ease; }
.case-aside a.is-active { color: var(--ink); font-weight: 700; }
.case-aside a.is-active::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.chapter-pill { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 65; display: none; transform: translate(-50%, 140%); transition: transform .35s var(--ease); }
.chapter-pill.is-shown { transform: translate(-50%, 0); }
.chapter-pill > button { display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(16,24,21,.94); color: #fff; font-size: 13px; font-weight: 650; box-shadow: 0 14px 34px rgba(17,25,21,.25); backdrop-filter: blur(10px); }
.chapter-pill > button small { color: var(--accent-2); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chapter-pill ol { position: absolute; left: 50%; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); margin: 0; padding: 8px; list-style: none; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.chapter-pill ol[hidden] { display: none; }
.chapter-pill ol a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #39413e; }
.chapter-pill ol a.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
@media (max-width: 960px) { .chapter-pill { display: block; } }

/* Box → fullscreen image viewer. */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.zoom-hint { position: absolute; top: 12px; right: 12px; z-index: 4; padding: 6px 10px; border-radius: 999px; background: rgba(16,24,21,.82); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: .25s var(--ease); pointer-events: none; }
.zoom-host { position: relative; }
.zoom-host:hover .zoom-hint, .zoom-host:focus-within .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }
.lb { position: fixed; inset: 0; z-index: 200; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(12,17,15,.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.lb.is-open .lb-backdrop { opacity: 1; }
.lb-frame { position: fixed; overflow: hidden; border-radius: 14px; background: #eef0ec; box-shadow: 0 40px 120px rgba(0,0,0,.4); }
.lb-frame img { width: 100%; height: 100%; object-fit: contain; max-width: none; }
.lb-frame.is-actual { overflow: auto; cursor: zoom-out; }
.lb-frame.is-actual img { width: auto; height: auto; max-width: none; object-fit: initial; }
.lb-bar { position: fixed; top: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; opacity: 0; transition: opacity .3s ease .15s; }
.lb.is-open .lb-bar { opacity: 1; }
.lb-bar button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(16,24,21,.9); color: #fff; font-size: 13px; font-weight: 700; }
.lb-caption { position: fixed; left: 50%; bottom: 14px; z-index: 2; width: min(720px, calc(100vw - 28px)); transform: translateX(-50%); color: #d9e1dd; font-size: 13px; text-align: center; opacity: 0; transition: opacity .3s ease .15s; }
.lb.is-open .lb-caption { opacity: 1; }
html.lb-lock, html.lb-lock body { overflow: hidden; }

/* Evidence switcher: natural tab heights + "where it landed" proof. */


/* Decision stage: composites fill the stage; caption below, not over, the product. */
.decision-stage { min-height: 0; height: min(78vh, 660px); background: #e9ece7; }
.decision-stage figure { display: flex; flex-direction: column; }
.decision-stage img { flex: 1; min-height: 0; height: auto; padding: 14px 14px 0; object-fit: contain; }
.decision-stage figcaption { position: static; margin: 10px 14px 14px; }
.decision-mobile-visual { height: auto; padding: 0; background: #e9ece7; }
.decision-mobile-visual img { height: auto; }
@media (max-width: 720px) { .decision-mobile-visual { height: auto; } }


/* Mobile story: full phones, no second frame, four screens. */
.mobile-story-track figure { flex: 0 0 31%; }
.mobile-story-screen { height: auto; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.mobile-story-screen img { height: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(17,25,21,.14)); }
@media (max-width: 720px) { .mobile-story-track figure { flex-basis: 72%; } .mobile-story-screen { height: auto; } }

/* Operations schematic (home card + back-office case cover). */
.ops-card { display: flex; flex-direction: column; }
.ops-card .snapshot-body { flex: 1; display: flex; flex-direction: column; }
.ops-card .case-link { margin-top: auto; padding-top: 20px; }
.ops-schematic { position: relative; min-height: 350px; display: grid; place-items: center; padding: 48px 18px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 20%, rgba(216,255,104,.28), transparent 38%), linear-gradient(145deg,#e8eee8,#f6f5ef); }
.ops-badge { position: absolute; top: 18px; left: 18px; padding: 7px 10px; border: 1px solid rgba(16,20,19,.09); border-radius: 999px; background: rgba(251,250,246,.88); color: #315a4e; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ops-svg { width: 100%; max-width: 640px; height: auto; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ops-label { fill: #4b5551; font-size: 13px; font-weight: 700; }
.ops-link { stroke: #9aa39e; stroke-width: 1.5; }
.ops-pill rect { fill: #fff; stroke: #d3d8d1; }
.ops-pill text { fill: #505955; font-size: 11.5px; font-weight: 650; text-anchor: middle; }
.ops-done rect { fill: #155c4b; stroke: #155c4b; } .ops-done text { fill: #fff; }
.ops-warn rect { fill: #fbefc8; stroke: #e6cf85; } .ops-warn text { fill: #6d5410; }
.ops-cur rect { fill: #101815; stroke: #101815; } .ops-cur text { fill: #d8ff68; }
.ops-pill { animation: ops-in .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes ops-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ops-cover { min-height: 0; aspect-ratio: auto; padding: 64px 5% 36px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .ops-schematic { min-height: 0; padding: 50px 10px 14px; } .ops-cover { padding: 56px 8px 20px; } }
@media (prefers-reduced-motion: reduce) { .ops-pill { animation: none !important; } }
.decision-stage figure.is-active { pointer-events: auto; }

/* ===================== v16 ===================== */
/* Routing map: one job per page, labelled with the real link text from the dashboard. */
.route-map { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 22px; align-items: center; margin-top: 34px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #f7f6f1; }
.route-hub { position: relative; padding: 22px; border: 1px solid var(--accent); border-radius: 16px; background: #fff; box-shadow: 0 14px 36px rgba(17,25,21,.07); }
.route-hub::after { content: ""; position: absolute; top: 50%; right: -23px; width: 23px; height: 2px; background: var(--accent); }
.route-hub small, .route-dest small { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.route-hub strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.route-hub span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.route-list { position: relative; display: grid; gap: 10px; margin: 0; padding: 0 0 0 22px; list-style: none; }
.route-list li::after { content: ""; position: absolute; left: -24px; top: -5px; bottom: -5px; width: 2px; background: var(--accent); }
.route-list li:first-child::after { top: 50%; }
.route-list li:last-child::after { bottom: 50%; }
.route-list li { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: center; }
.route-list li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 18px; height: 2px; background: var(--accent); }
.route-link { justify-self: start; padding: 6px 10px; border-radius: 999px; background: #e8eee8; color: #1f4eff; font-size: 12px; font-weight: 650; line-height: 1.3; }
.route-dest { padding: 12px 14px; border: 1px solid #d4d8d1; border-radius: 12px; background: #fff; }
.route-dest strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.25; }
@media (max-width: 720px) {
  .route-map { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .route-hub::after { top: auto; bottom: -19px; right: auto; left: 24px; width: 2px; height: 19px; }
  .route-list { margin-left: 24px; padding-left: 16px; }
  .route-list li::after { left: -18px; }
  .route-list li:first-child::after { top: -18px; }
  .route-list li:last-child::after { bottom: auto; height: 26px; }
  .route-list li { grid-template-columns: 1fr; gap: 6px; }
  .route-list li::before { left: -16px; width: 12px; top: 20px; }
}

/* Info box: real exported frames; the box grows from the card into its breakdown. */
.ib { display: flex; flex-direction: column; gap: 10px; }
.ib-stage { position: relative; display: flex; align-items: center; min-height: 120px; }
.ib-row { width: 100%; }
.ib-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; transition: opacity .35s ease, filter .35s ease; }
.ib-stage.is-open .ib-row { opacity: .3; filter: saturate(.6); }
.ib-card { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(17,25,21,.07); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ib-card img, .decision-stage .ib-card img { display: block; width: 100%; height: auto; padding: 0; border-radius: 8px; object-fit: fill; flex: none; }
button.ib-card { cursor: pointer; }
button.ib-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17,25,21,.12); }
button.ib-card.is-press { transform: scale(.975); box-shadow: 0 0 0 3px var(--accent-2), 0 8px 22px rgba(17,25,21,.1); }
.ib-card.is-static { opacity: .82; }
.ib-panel { position: absolute; z-index: 3; overflow: hidden; border: 1px solid rgba(16,20,19,.08); border-radius: 10px; background: #fff; box-shadow: 0 26px 60px rgba(17,25,21,.2); cursor: zoom-out; }
.ib-panel[hidden] { display: none; }
.ib-panel img, .decision-stage .ib-panel img { position: absolute; top: 0; left: 0; display: block; max-width: none; height: auto; padding: 0; flex: none; object-fit: fill; }
.ib-panel img[hidden] { display: none; }
.ib-close { position: absolute; z-index: 2; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.ib-close:focus-visible { outline: 3px solid var(--accent); }
.ib-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ib-caption { margin: 0 !important; color: #3f4945 !important; font-size: 13px !important; line-height: 1.45; }
.ib-play { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.ib-note { margin: 0 !important; color: var(--muted) !important; font-size: 11.5px !important; }
.ib-figure { padding: 18px; justify-content: center; }
.ib-desktop-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.ib-mobile-slot { display: none; margin: 18px 0 0; padding: 14px; border-radius: 14px; background: #e9ece7; }
@media (max-width: 900px) { .ib-mobile-slot { display: block; } }
@media (max-width: 720px) { .ib-row { gap: 6px; } .ib-card, .ib-card img { border-radius: 5px; } .ib-bar { align-items: flex-start; } }

/* Home: feature poster anchored to the dashboard; centre phone uses the same flat screen as the side phones. */
.case-feature-media .preview-poster { object-position: left center; }
.mobile-device-center .mobile-device-screen img { object-position: top center; }
.ib-caption { min-height: 4.4em; }
@media (max-width: 720px) { .ib-caption { min-height: 5.8em; } }

/* v16.1 · single design-system card spans the row; compact case headings on phones; back-office note. */
.case-grid-single { grid-template-columns: 1fr; }
.case-grid-single .case-card-media { height: 340px; }
.case-callout .btn { margin-top: 16px; }
@media (max-width: 720px) {
  .case-grid-single .case-card-media { height: 250px; }
  .case-hero h1 { font-size: clamp(30px, 8.4vw, 38px); line-height: 1.04; letter-spacing: -.045em; }
  .case-section h2 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.08; letter-spacing: -.04em; }
  .case-next h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .decision-step h3, .decision-block h3 { font-size: clamp(20px, 5.6vw, 24px); }
  .story-question strong { font-size: clamp(22px, 6.2vw, 28px); }
}

/* v17: compact, scannable evidence of shipped product scope */
.scope-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 14px}
.scope-item{border:1px solid var(--line,rgba(30,40,40,.14));border-radius:16px;padding:19px 20px;background:var(--surface,#fff)}
.scope-item h3{font-size:1rem;line-height:1.35;margin:0 0 8px;font-weight:680}
.scope-item p{font-size:.94rem;line-height:1.55;margin:0}
.case-visual .visual-note{font-size:.83rem;line-height:1.45;text-align:center;margin:8px auto 0;max-width:350px}
@media(max-width:700px){.scope-grid{grid-template-columns:1fr;gap:10px}.scope-item{padding:15px 17px}}


/* v18 — mobile first-screen composition, uncropped About portrait and career overlay */
.about-section { padding-top: 41px; }
.about-section .about-photo img { width:100%; height:auto; aspect-ratio:900 / 853; object-fit:contain; object-position:center; }
.career { margin-top:23px; border-top:1px solid var(--line); }
.career h3 { margin:16px 0 8px; font-size:15px; line-height:1.25; letter-spacing:-.02em; }
.career-entry { display:flex; align-items:baseline; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid var(--line); }
.career-entry > div { min-width:0; }
.career-entry strong { display:block; font-size:13px; line-height:1.35; }
.career-entry span { display:block; margin-top:3px; color:var(--muted); font-size:12px; line-height:1.4; }
.career-entry time { flex:none; color:var(--muted); font-size:12px; white-space:nowrap; }
.career-more { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; margin-top:6px; padding:10px 0; border:0; background:transparent; color:var(--accent); text-align:left; font-size:13px; font-weight:750; }
.career-more small { display:inline; margin-left:8px; color:var(--muted); font-size:11px; font-weight:450; }
.career-more:hover { color:var(--ink); }
.experience-intro { margin:13px 0 23px; color:var(--muted); font-size:14px; line-height:1.5; }
.experience-history-item { display:grid; grid-template-columns:130px minmax(0,1fr); gap:18px; padding:17px 0; border-top:1px solid var(--line); }
.experience-history-item > span { padding-top:3px; color:var(--muted); font-size:12px; }
.experience-history-item h3 { margin:0; font-size:15px; line-height:1.35; }
.experience-history-item p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
@media (max-width:720px) {
  .site-header .nav { min-height:60px; }
  .hero {
    padding: 10px 0 18px;
    min-height: calc(100svh - 60px);
    display: flex;
    align-items: center;
  }
  .hero-grid {
    gap: 16px;
    min-height: calc(100svh - 88px);
    align-content: center;
  }
  .hero .kicker { margin-bottom:14px; font-size: 11px; line-height:1.3; letter-spacing:.11em; }
  .hero h1 {
    max-width: none;
    font-size: clamp(42px, 12vw, 52px);
    line-height: 1.03;
    letter-spacing: -.05em;
  }
  .hero .lead { margin-top:18px; font-size:clamp(15px,4vw,17px); line-height:1.42; }
  .hero-actions { gap:10px; flex-wrap:nowrap; margin-top:18px; }
  .hero-actions .btn { min-height:46px; padding:0 15px; font-size:12px; white-space:nowrap; }
  .hero .hero-note { display:none; }
  .hero-proof { min-height:0; height:clamp(168px,27svh,230px); margin-top:6px; }
  .hero-proof::before { inset:4% 10% 2% 9%; }
  .product-window { inset:8% 6% 5% 6%; border-radius:15px; }
  .window-bar { height:20px; padding:0 9px; }
  .window-bar span { width:5px; height:5px; }
  .product-window img { height:calc(100% - 20px); }
  .proof-chip.one { top:2%; right:0; max-width:150px; padding:10px 11px; font-size:9.6px; line-height:1.27; }
  .proof-chip.one strong { font-size:10.6px; }
  .proof-chip.two,.proof-chip.three { display:none; }
  .proof-strip { display:none; }
  .about-section { padding-top:23px; scroll-margin-top:80px; }
  .about-section .about-photo { aspect-ratio:900 / 853; }
  .about-section .about-photo img { width:100%; height:auto; aspect-ratio:900 / 853; object-fit:contain; object-position:center; }
  .career-entry { align-items:flex-start; }
  .career-entry time { font-size:11px; }
  .experience-history-item { grid-template-columns:1fr; gap:5px; padding:13px 0; }
  .experience-intro { margin-bottom:14px; }
}
@media (max-width:720px) and (max-height:730px) {
  .hero {
    padding-top: 8px;
    padding-bottom: 14px;
    min-height: calc(100svh - 60px);
  }
  .hero-grid {
    min-height: calc(100svh - 82px);
    gap: 12px;
  }
  .hero h1 { font-size:clamp(39px,11.4vw,47px); line-height:1.01; }
  .hero .lead { margin-top:12px; font-size:14px; line-height:1.34; }
  .hero-actions { margin-top:14px; }
  .hero-proof { height:clamp(132px,21svh,168px); }
}
@media (max-width:360px) {
  .hero-actions .btn { padding:0 12px; font-size:11px; }
  .career-entry { display:block; }
  .career-entry time { display:block; margin-top:5px; }
}

.scope-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .scope-grid { grid-template-columns: 1fr; } }

/* v21 · Unified work cards: one meta → title → summary → link rhythm, no overlay badges. */
.case-feature .meta, .case-card .meta, .snapshot .meta { display: block; font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.case-feature .meta { color: var(--accent-2); margin-bottom: 14px; }
.case-card h3, .snapshot h3 { margin: 11px 0 12px; font-size: 29px; line-height: 1.08; letter-spacing: -.04em; font-weight: 650; }
.case-card p, .snapshot p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.case-card-body, .snapshot-body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 28px; }
.snapshot { display: flex; flex-direction: column; background: var(--surface); }
.case-card .case-link, .snapshot .case-link { margin-top: auto; padding-top: 0; color: var(--accent); }
.case-feature .case-link { color: var(--accent-2); }
.case-grid-single .case-card-media, .mobile-showcase, .ops-schematic { height: 350px; min-height: 350px; }
.ops-schematic { padding-top: 56px; }
/* Mobile preview: dashboard scrolls, Portfolio and Auto Invest hold their first screen. */
.mobile-device-screen { --sh: 268px; }
.mobile-device-left .mobile-device-screen img { animation: mobile-scroll-dash 9s ease-in-out infinite alternate; }
.mobile-device-right .mobile-device-screen img { animation: none; }
.mobile-device-center .mobile-device-screen img, .mobile-device-right .mobile-device-screen img { height: 100%; object-fit: cover; object-position: top center; }
@keyframes mobile-scroll-dash { 0%,15% { transform: translateY(0); } 85%,100% { transform: translateY(calc(-100% + var(--sh))); } }
@media (max-width: 720px) {
  .mobile-device-screen { --sh: 238px; }
  .case-feature-media, .case-grid-single .case-card-media, .mobile-showcase, .ops-schematic { height: 300px; min-height: 300px; }
  .mobile-device { top: 40px; }
  .ops-schematic { padding: 50px 10px 14px; }
  .case-feature-copy, .case-card-body, .snapshot-body { padding: 22px 22px 24px; }
  .case-feature h3, .case-card h3, .snapshot h3 { margin: 10px 0 10px; font-size: 26px; line-height: 1.08; max-width: none; }
  .case-feature .meta { margin-bottom: 0; }
  .case-feature-copy > div > p, .case-card p, .snapshot p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .mobile-device-left .mobile-device-screen img { animation: none; } }
@media (max-width: 720px) { .case-feature-copy { gap: 0; justify-content: flex-start; } .case-feature .case-link { margin-top: 0 !important; } .case-feature-copy > div > p { margin-bottom: 18px; } }

.case-card.dark .case-link { color: var(--accent-2); }
@media (min-width: 721px) { .about-strengths { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* v24 · Work grid: featured, own products (2), Estateguru supporting cases (3). */
.work-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.work-row-3 .case-card { min-height: 0; }
.work-row-3 .case-card-media, .work-row-3 .mobile-showcase, .work-row-3 .ops-schematic { height: 300px; min-height: 300px; }
.work-row-3 .case-card h3, .work-row-3 .snapshot h3 { font-size: 24px; }
.work-row-3 .ops-schematic { padding: 52px 8px 12px; }
@media (max-width: 1100px) { .work-row-3 { grid-template-columns: 1fr 1fr; } .work-row-3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .work-row-3 { grid-template-columns: 1fr; } .work-row-3 > :first-child { grid-column: auto; } }

/* v25 · Kymatic case: 12-family scene mosaic, three phones; home: wide single card */
.scene-mosaic { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 28px; padding: 8px; border-radius: 18px; background: #0b0912; }
.scene-mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 10px; aspect-ratio: 8 / 5; background: #14111d; }
.scene-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 7px; background: linear-gradient(rgba(4,3,8,0), rgba(4,3,8,.82) 32%, rgba(4,3,8,.92)); color: rgba(255,255,255,.86); font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,.6); line-height: 1.3; pointer-events: none; }
.scene-mosaic figcaption b { display: block; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.scene-mosaic .zoom-hint { display: none; }
.case-tags span { white-space: nowrap; }
.case-section > .visual-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.decision-cell p strong { color: var(--ink); font-weight: 700; }
.visual-trio { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
.visual-trio .case-visual { margin: 0; padding: 18px 14px; }
@media (min-width: 981px) {
  .case-card-wide { flex-direction: row; min-height: 0; }
  .case-grid-single .case-card-wide .case-card-media { flex: 0 0 58%; height: auto; min-height: 400px; }
  .case-card-wide .case-card-body { justify-content: center; padding: 34px 36px; }
}
@media (max-width: 720px) {
  .scene-mosaic { grid-template-columns: repeat(2,1fr); gap: 6px; padding: 6px; }
  .scene-mosaic figcaption { padding: 20px 8px 7px; font-size: 11px; }
  .scene-mosaic figcaption b { font-size: 12px; }
  .visual-trio { grid-template-columns: 1fr; }
}

/* v25 · Home mobile card: static composite of the framed app screens */
.mobile-thumb { background: #eef1ec; }
.mobile-thumb::before, .mobile-thumb::after { display: none; }
.mobile-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.mobile-project-card:hover .mobile-thumb img { transform: scale(1.025); }
.case-section p > .case-link { color: var(--accent); font-weight: 700; }

/* v26 · one label colour: every small uppercase label on light surfaces uses the dark green accent */
.about-copy > p.eyebrow, .about-section .about-copy > p.eyebrow { margin: 0 0 16px; max-width: none; color: var(--accent); font-size: 12px; line-height: 1.2; }
.case-meta span { color: var(--accent); }
.case-aside > p { color: var(--accent); }

/* v27 · Work grid: Kymatic as the dark flagship, then a 12-column bento with alternating 7/5 and 5/7 rows */
.case-feature-ky .case-feature-media { background: #07060b; }
.case-feature-ky .case-feature-media::after { background: linear-gradient(90deg, rgba(16,24,21,.55), transparent 22%); }
.case-feature-ky .case-feature-media img { object-position: center; }
.work-bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.work-bento > a { min-height: 0; margin: 0; }
.bento-portal { grid-column: span 7; }
.bento-mobile { grid-column: span 5; }
.bento-ds { grid-column: span 5; }
.bento-ops { grid-column: span 7; }
.work-bento .case-card-media, .work-bento .mobile-showcase, .work-bento .ops-schematic { height: 340px; min-height: 340px; }
.work-bento .bento-ds .case-card-media, .work-bento .bento-ops .ops-schematic { height: 300px; min-height: 300px; }
.work-bento .ops-schematic { padding: 52px 16px 12px; }
.work-bento .case-card h3, .work-bento .snapshot h3 { font-size: 26px; max-width: 30ch; }
.work-bento .case-card p, .work-bento .snapshot p { max-width: 60ch; }
.bento-portal .case-card-media .preview-poster { object-position: left 30%; }
.bento-mobile .mobile-thumb img { object-position: center 12%; }
@media (max-width: 1100px) {
  .bento-portal, .bento-mobile, .bento-ds, .bento-ops { grid-column: span 6; }
}
@media (max-width: 720px) {
  .work-bento { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .bento-portal, .bento-mobile, .bento-ds, .bento-ops { grid-column: auto; }
  .work-bento .case-card-media, .work-bento .mobile-showcase, .work-bento .ops-schematic,
  .work-bento .bento-ds .case-card-media, .work-bento .bento-ops .ops-schematic { height: 250px; min-height: 250px; }
  .work-bento .case-card h3, .work-bento .snapshot h3 { font-size: 24px; }
}

/* v28 · About: photo anchored to the top of the column, company and role on separate lines, modal trigger icon */
.about-section .about-grid { align-items: start; }
@media (min-width: 981px) { .about-section .about-photo { position: static; top: auto; } }
.career-role { display: block; margin-top: 2px; color: var(--ink); font-style: normal; font-size: 13px; font-weight: 500; line-height: 1.35; }
.career-entry .career-role + span { margin-top: 4px; }
.experience-history-item .career-role { font-size: 14px; margin-top: 3px; }
@media (max-width: 720px) { .about-strengths + .career { border-top: 0; margin-top: 6px; } }

/* v29 · Hero reel: four products, autoplay with progress tabs, pause, swipe, pointer tilt */
.hero-reel { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 520px; }
.hero-reel::before { inset: 6% 0 14% 8%; }
.reel-stage { position: relative; z-index: 1; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid rgba(16,20,19,.1);
  box-shadow: 0 30px 80px rgba(17,25,21,.18), 0 2px 6px rgba(17,25,21,.06);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); will-change: transform; }
.reel-slide { position: absolute; inset: 0; display: block; color: inherit; opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .7s ease, transform 1.1s var(--ease), visibility 0s .7s; }
.reel-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform 1.1s var(--ease), visibility 0s; }
.reel-slide img { position: absolute; inset: 30px 0 0; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: left top; }
.reel-light img { inset: 0; height: 100%; object-position: center; }
.reel-ds img { object-position: center; }   /* the component cover is centred, unlike the top-left anchored screens */
.reel-light { background: #eef1ec; }
.reel-bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #f6f6f3; border-bottom: 1px solid #ebeae5; }
.reel-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfd2cf; }
.reel-pan.is-active img { animation: reel-pan var(--reel-dur, 7000ms) cubic-bezier(.45,0,.25,1) .6s both; }
@keyframes reel-pan { from { object-position: left 0%; } to { object-position: left 62%; } }
.hero-reel.is-paused .reel-pan img, .hero-reel.is-holding .reel-pan img { animation-play-state: paused; }
.reel-caption { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: grid; gap: 2px; max-width: min(300px, 70%); padding: 13px 15px 12px; border-radius: 14px;
  background: rgba(251,250,246,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(16,20,19,.08); box-shadow: 0 14px 34px rgba(17,25,21,.14);
  transform: translateY(8px); opacity: 0; transition: transform .6s var(--ease) .25s, opacity .5s ease .25s; }
.reel-slide.is-active .reel-caption { transform: none; opacity: 1; }
.reel-kicker { color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.reel-caption strong { font-size: 17px; letter-spacing: -.02em; line-height: 1.2; }
.reel-line { color: var(--muted); font-size: 13px; line-height: 1.4; }
.reel-go { margin-top: 6px; color: var(--accent); font-size: 12px; font-weight: 750; }
.reel-go::after { content: " →"; transition: margin .25s var(--ease); }
.reel-slide:hover .reel-go::after, .reel-slide:focus-visible .reel-go::after { margin-left: 4px; }
.reel-slide:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.reel-controls { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.reel-tabs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.reel-tab { position: relative; padding: 10px 4px 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; transition: color .2s ease; }
.reel-tab:hover, .reel-tab[aria-selected="true"] { color: var(--ink); }
.reel-tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(16,20,19,.12); overflow: hidden; }
.reel-tab i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.reel-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.reel-pause { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(16,20,19,.16); border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.reel-pause span { width: 10px; height: 10px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); box-sizing: border-box; }
.hero-reel.is-paused .reel-pause span { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
.reel-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 980px) { .hero-reel { min-height: 0; max-width: 680px; } }
@media (max-width: 720px) {
  .hero-reel { position: relative; display: block; gap: 0; min-height: 0; }
  .hero-reel .reel-stage { position: absolute; inset: 6% 3% 4% 3%; aspect-ratio: auto; border-radius: 15px; }
  .reel-slide img { inset: 20px 0 0; height: calc(100% - 20px); }
  .reel-light img { inset: 0; height: 100%; }
  .reel-bar { height: 20px; padding: 0 9px; } .reel-bar i { width: 5px; height: 5px; }
  .reel-caption { left: 8px; bottom: 8px; padding: 7px 9px; border-radius: 10px; max-width: 62%; }
  .reel-caption strong { font-size: 13px; } .reel-kicker { font-size: 11px; letter-spacing: .03em; } .reel-line, .reel-go { display: none; }
  .reel-controls { position: absolute; right: 6%; bottom: 7%; z-index: 3; gap: 6px; padding: 5px 7px; border-radius: 999px; background: rgba(16,20,19,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  /* Buttons are 24px+ hit areas (WCAG 2.5.8); the visible bars keep their 16/26px size. */
  .reel-tabs { display: flex; gap: 0; }
  .reel-tab { width: 24px; height: 24px; padding: 0; } .reel-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reel-tab i { top: 10px; bottom: auto; left: 4px; right: 4px; height: 4px; background: rgba(255,255,255,.35); } .reel-tab i::after { background: #fff; }
  .reel-tab[aria-selected="true"] { width: 34px; }
  .reel-pause { width: 24px; height: 24px; border-color: rgba(255,255,255,.35); background: transparent; }
  .reel-pause span { width: 8px; height: 8px; border-left-width: 2px; border-right-width: 2px; border-color: #fff; }
  .hero-reel.is-paused .reel-pause span { border-width: 4px 0 4px 7px; border-color: transparent transparent transparent #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-slide, .reel-caption, .reel-stage { transition: none; transform: none; }
  .reel-pan.is-active img { animation: none; }
}
/* v29 · compact caption so the product stays the hero */
.reel-caption { left: 14px; bottom: 14px; max-width: min(220px, 60%); padding: 10px 12px 10px; border-radius: 12px; gap: 1px; }
.reel-caption strong { font-size: 15px; }
.reel-line { font-size: 12px; }
.reel-go { margin-top: 4px; font-size: 11.5px; }
@media (max-width: 720px) { .hero-reel::before { inset: 2% 1% 0 7%; } .reel-caption { left: 8px; bottom: 8px; padding: 6px 9px; } }
/* Mouse and trackpad: the caption fades in only while the thumbnail is hovered or a slide has keyboard focus. Touch keeps it visible. */
@media (hover: hover) and (pointer: fine) {
  .reel-caption { transition: transform .45s var(--ease), opacity .35s ease; }
  .reel-slide.is-active .reel-caption { transform: translateY(8px); opacity: 0; }
  .reel-stage:hover .reel-slide.is-active .reel-caption, .reel-slide.is-active:focus-visible .reel-caption { transform: none; opacity: 1; }
}

/* v30 · Hero: remove the lime blob behind the reel */
.hero-proof::before, .hero-reel::before { content: none !important; display: none; }

/* v31 · About: expandable earlier experience (no modal), chevron toggles */
.career-more { min-height:44px; margin-top:0; padding:8px 0; cursor:pointer; }
.career-more:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
.career-more-icon { flex:none; transition:transform .3s var(--ease); }
.career-more[aria-expanded="true"] .career-more-icon { transform:rotate(180deg); }
.career-earlier { display:grid; grid-template-rows:0fr; visibility:hidden; transition:grid-template-rows .35s var(--ease), visibility 0s .35s; }
.career-earlier.is-open { grid-template-rows:1fr; visibility:visible; transition:grid-template-rows .35s var(--ease), visibility 0s; }
.career-earlier-inner { min-height:0; overflow:hidden; }
.career-earlier .experience-intro { margin:2px 0 8px; font-size:13px; }
.career-earlier .experience-history-item { grid-template-columns:140px minmax(0,1fr); gap:14px; padding:14px 0; }
.career-earlier .experience-history-item h3 { font-size:13px; }
.career-earlier .experience-history-item .career-role { font-size:13px; }
.career-earlier .experience-history-item p { font-size:12px; }
@media (max-width:720px) {
  .career-earlier .experience-history-item { grid-template-columns:1fr; gap:4px; }
  .career-earlier .experience-history-item > span { padding-top:0; font-size:11px; }
}
@media (prefers-reduced-motion:reduce) { .career-earlier, .career-more-icon { transition:none; } }

/* v32 — silent, native Chladni previews and readable capability copy. */
.kymatic-feature-wrap { position: relative; }
.chladni-preview { position: relative; display: block; overflow: hidden; background: #080910; }
.chladni-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; }
.chladni-preview.chladni-ready canvas { opacity: 1; }
.chladni-preview.chladni-ready > img { visibility: hidden; }
.chladni-preview canvas { transition: transform 1.8s cubic-bezier(.33,0,.2,1); }
.case-feature-ky:hover .chladni-preview canvas, .case-feature-ky:focus-visible .chladni-preview canvas,
.reel-stage:hover .reel-kymatic .chladni-preview canvas, .reel-kymatic:focus-visible .chladni-preview canvas { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .preview-live, .chladni-preview canvas { transform: none !important; } }
.reel-kymatic .chladni-preview { position: absolute; inset: 30px 0 0; }
.reel-kymatic .chladni-preview > img { inset: 0; height: 100%; }
.reel-kymatic .reel-caption { background: rgba(15,12,24,.6); border-color: rgba(239,231,214,.14); box-shadow: 0 14px 34px rgba(0,0,0,.35); color: #efe7d6; }
.reel-kymatic .reel-kicker, .reel-kymatic .reel-go { color: #e9c46a; }
.reel-kymatic .reel-line { color: rgba(239,231,214,.74); }
.chladni-pause { position: absolute; z-index: 3; top: 20px; right: 20px; padding: 9px 12px; min-height: 40px; border: 1px solid #ffffff40; border-radius: 20px; background: #11121be6; color: #eee8d8; font: inherit; font-size: 11px; cursor: pointer; }
.chladni-pause[hidden] { display: none; }
.chladni-pause:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.about-strength { min-width: 0; }
.about-strength strong { font-size: 14px; line-height: 1.4; text-wrap: balance; word-break: normal; overflow-wrap: normal; }
.about-strength span { font-size: 13px; line-height: 1.55; text-wrap: pretty; word-break: normal; overflow-wrap: normal; hyphens: none; }
@media (max-width: 720px) {
  .about-strengths { grid-template-columns: minmax(0,1fr); }
  .about-strength { padding: 15px 0; }
  .about-strength span { max-width: 48ch; }
  .reel-kymatic .chladni-preview { inset: 20px 0 0; }
  .chladni-pause { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .chladni-pause { display: none; } }


/* v34 — consistent 16:9 hero preview, including mobile. */
.hero-reel .reel-stage { aspect-ratio: 16 / 9; flex-shrink: 0; }
@media (max-width: 720px) {
  .hero-proof.hero-reel { height: auto; min-height: 0; }
  .hero-reel .reel-stage { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero-reel .reel-controls { right: 3%; bottom: 5%; }
}

/* About: desktop photo + Experience in left column; single-column reading order on tablets/phones. */
@media (max-width: 960px) {
  .about-section .about-side { display: contents; }
  .about-section .about-photo { order: 0; }
  .about-section .about-copy { order: 1; }
  .about-section .career { order: 2; margin-top: 0; }
}

/* v40 — section intros share one pattern on desktop: title on the left, supporting line on the right. */
@media (min-width: 981px) {
  #work .work-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,420px); align-items: end; gap: 32px; }
  #work .work-head-lead, .testimonial-intro { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.55; }
  #contact { padding-top: 64px; }
}
@media (max-width: 980px) {
  .testimonial-head { grid-template-columns: 1fr; gap: 12px; }
}

/* v40 — full recommendations on every breakpoint; inactive slides keep their space so the card height never jumps. */
.testimonial-carousel .recommendation { display: flex; flex-direction: column; }
.testimonial-carousel .recommendation[hidden] { display: flex !important; visibility: hidden; }
.testimonial-carousel .recommendation blockquote { display: block; overflow: visible; -webkit-line-clamp: unset; }
.testimonial-carousel .recommendation figcaption { margin-top: auto; }
@media (min-width: 721px) {
  .testimonial-carousel .recommendation blockquote { font-size: clamp(20px,1.9vw,27px); line-height: 1.3; }
  .testimonial-carousel .recommendation figcaption { padding-top: 28px; }
}

/* v40 — hero reel tab labels stay on one line on small laptops. */
.reel-tab span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 721px) and (max-width: 1200px) { .reel-tab { font-size: 11px; } }
/* Narrow phones: the caption sits above the reel controls. */
@media (max-width: 380px) { .reel-caption { bottom: 54px; } }

/* Design-system case: brand swatches, tonal ramp and spec tables (values come from the Estateguru Storybook). */
.swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.case-section .swatch-grid { padding: 0; }
.case-section .swatch-grid li + li { margin-top: 0; }
.swatch-grid li { min-width: 0; font-size: 13px; line-height: 1.3; }
.swatch-grid i { display: block; height: 56px; margin-bottom: 8px; border-radius: 10px; }
.swatch-grid i.is-light { box-shadow: inset 0 0 0 1px rgba(16,20,19,.12); }
.swatch-grid b { display: block; color: var(--ink); font-weight: 700; }
.swatch-grid code, .spec-table code { color: var(--muted); font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.spec-heading { margin: 40px 0 0; font-size: 19px; letter-spacing: -.01em; }
.ramp { display: grid; grid-template-columns: repeat(9, 1fr); height: 48px; margin-top: 20px; overflow: hidden; border-radius: 10px; }
.ramp i { display: block; }
.case-section > .ramp-scale { max-width: none; }
.ramp-scale { display: flex; justify-content: space-between; margin: 8px 0 0 !important; color: var(--muted) !important; font-size: 12px !important; }
.spec-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.spec-table caption { padding-bottom: 10px; color: var(--muted); font-size: 12px; text-align: left; }
.spec-table th, .spec-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.spec-table tbody th { color: var(--ink); font-weight: 650; }
.spec-table td { color: #48514d; }
.spec-table .chip { display: inline-block; width: 12px; height: 12px; margin: 0 7px -1px 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(16,20,19,.12); }
.spec-table + p { margin-top: 18px; }
@media (max-width: 720px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding-right: 8px; }
  .spec-table code { font-size: 11px; }
}

/* Investor portal case: company context, research methods, findings and delivery steps. */
.case-context { max-width: 62ch; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.case-context .case-link { margin-left: 4px; color: var(--accent); white-space: nowrap; }
.method-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.method-row > div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f5; }
.method-row span { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.method-row p { margin: 7px 0 0 !important; font-size: 14px !important; }
.impact-lines.findings span { grid-template-columns: 200px 1fr; }
.process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.case-section .process-steps li + li { margin-top: 0; }
.process-steps li { position: relative; padding: 18px 18px 20px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.process-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.process-steps b { display: block; color: var(--ink); font-size: 16px; }
.process-steps p { margin: 5px 0 0 !important; font-size: 14px !important; }
.process-steps a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .method-row, .process-steps { grid-template-columns: 1fr; }
  .impact-lines.findings span { grid-template-columns: 1fr; }
}
.case-visual.is-compact { max-width: 560px; }

/* Investor portal: two-line title on desktop. */
.investor-title-break, .kymatic-title-break, .back-office-title-break { display: none; }
@media (min-width: 981px) {
  .case-hero h1 { font-size: clamp(48px, 5vw, 72px); }
  .case-hero h1.investor-case-title, .case-hero h1.kymatic-case-title, .case-hero h1.back-office-title { max-width: none; }
  .investor-title-break, .kymatic-title-break, .back-office-title-break { display: block; }
}

@media (min-width: 981px) { .hero-reel .reel-stage { aspect-ratio: 16 / 10.2; } }

/* Homepage contact: dark surface with a soft green glow. */
#contact .contact-panel { background: radial-gradient(ellipse at 78% 30%, rgba(24, 86, 65, .52), transparent 65%), #0d1713; color: #f8faf7; }
#contact .contact-panel p { color: #d4ded8; }
#contact .contact-panel p.eyebrow { color: #d8ff68; }
#contact .contact-panel .btn-primary { background: #d8ff68; color: #101a15; }
#contact .contact-panel .btn-primary:hover { background: #e5ff9f; }
#contact .contact-panel .btn-secondary { color: #f8faf7; background: transparent; border-color: rgba(248,250,247,.55); }
#contact .contact-panel .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #f8faf7; }

/* Homepage hero, desktop: reel 15 % wider, title and lead 15 % smaller. */
@media (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0,.83fr) minmax(380px,1fr); }
  .hero h1 { font-size: clamp(41px,5.27vw,75px); }
  .hero .lead { font-size: clamp(15.5px,1.7vw,18.7px); }
}
