:root {
  --paper: #fbfaf6;
  --paper-deep: #f4efe6;
  --ink: #07141b;
  --muted: #516066;
  --line: #ddd5c8;
  --line-strong: #cfc3b4;
  --green: #006b55;
  --green-deep: #004c3f;
  --green-soft: #dceee7;
  --gold: #b9893b;
  --shadow: 0 24px 65px rgba(18, 25, 24, 0.14);
  --radius: 8px;
  --max: 1180px;
  --hero-max: 1520px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 197, 158, 0.22), transparent 32rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 55%, #f6f2eb 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img {
  display: block;
  max-width: 100%;
}

body.is-zooming {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--hero-max), calc(100% - 80px));
  margin: 0 auto;
  padding: 28px 0 18px;
  backdrop-filter: blur(14px);
}

.site-header::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 82px;
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid rgba(221, 213, 200, 0);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled::before {
  border-bottom-color: rgba(221, 213, 200, 0.85);
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
}

.brand-role {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: #101c22;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.case-content a:hover,
.contact-links a:hover,
.back-link:hover {
  color: var(--green);
}

.section-boundary {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.hero.section-boundary {
  width: 100%;
  border-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.88fr) minmax(560px, 1.12fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  min-height: calc(100svh - 82px);
  padding: clamp(44px, 6vw, 82px) max(48px, calc((100vw - var(--hero-max)) / 2)) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.18rem, 4.15vw, 4.75rem);
  line-height: 0.96;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 590px;
  margin-bottom: 18px;
  color: #263238;
  font-size: 1.26rem;
}

.hero-context {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 18px;
  padding: 0 28px;
  border: 1px solid var(--green-deep);
  border-radius: 4px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, #0d1518, #030607);
  color: white;
  border-color: #0d1518;
  box-shadow: 0 16px 32px rgba(7, 20, 27, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(4.9rem, 6.9vw, 7.55rem);
  font-weight: 500;
  line-height: 0.95;
}

.hero-statement {
  max-width: 640px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.15vw, 3.45rem);
  line-height: 1.08;
}

.hero-rule {
  display: block;
  width: 58px;
  height: 1px;
  margin: 0 0 28px;
  background: var(--gold);
}

.hero-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: #28343a;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-focus span {
  position: relative;
  padding-left: 18px;
}

.hero-focus span::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}

.product-stage {
  position: relative;
  min-height: clamp(500px, 40vw, 560px);
  padding-top: 54px;
}

.status-badge {
  position: absolute;
  left: 36%;
  top: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 1px solid rgba(207, 195, 180, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(18, 25, 24, 0.12);
  backdrop-filter: blur(12px);
}

.status-badge strong {
  font-size: 1.04rem;
}

.status-badge span:last-child {
  color: #263238;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #36a548;
  box-shadow: 0 0 0 5px rgba(54, 165, 72, 0.12);
}

.desktop-device {
  overflow: hidden;
  width: min(760px, 90%);
  margin-left: auto;
  border: 10px solid #101416;
  border-radius: 24px;
  background: #f7f4ee;
  box-shadow: 0 30px 80px rgba(18, 25, 24, 0.22);
}

.desktop-device img {
  width: 100%;
  aspect-ratio: 1.56;
  object-fit: cover;
  object-position: left top;
}

.phone-device {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 3;
  overflow: hidden;
  width: clamp(160px, 17vw, 235px);
  border: 8px solid #101416;
  border-radius: 34px;
  background: #101416;
  box-shadow: 0 24px 60px rgba(18, 25, 24, 0.22);
}

.phone-device img {
  width: 100%;
  aspect-ratio: 0.46;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

.flow-card {
  position: absolute;
  left: 2%;
  bottom: 18px;
  z-index: 4;
  width: min(310px, 42%);
  min-height: 154px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(9, 13, 15, 0.97), rgba(27, 31, 33, 0.96)),
    radial-gradient(circle at 100% 100%, rgba(185, 137, 59, 0.16), transparent 12rem);
  color: #fffdf8;
  box-shadow: 0 24px 60px rgba(18, 25, 24, 0.24);
}

.flow-card img {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
}

.flow-card strong {
  display: inline-block;
  font-size: 1.52rem;
  vertical-align: middle;
}

.flow-card span {
  display: block;
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.82);
}

.hero-proof-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.48);
}

.hero-proof-strip div {
  min-width: 0;
  padding: 26px 32px;
  border-left: 1px solid var(--line);
}

.hero-proof-strip div:first-child {
  border-left: 0;
}

.proof-icon {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.08em;
}

.hero-proof-strip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.hero-proof-strip span:last-child {
  color: var(--muted);
}

.browser-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.browser-frame img,
.case-image img,
.wide-media img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d8cbb9;
}

.browser-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.large-product {
  aspect-ratio: 1.42;
}

.large-product img {
  object-position: left top;
}

.hero-proof {
  position: absolute;
  right: 28px;
  bottom: -22px;
  width: min(360px, calc(100% - 56px));
  padding: 18px 20px;
  border: 1px solid rgba(0, 76, 63, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(18, 25, 24, 0.12);
  backdrop-filter: blur(12px);
}

.hero-proof span,
.status-stack span,
.ops-board small {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.work,
.systems,
.process,
.looking-contact,
.case-study,
.evidence,
.operations-flow,
.product-gallery,
.outcome {
  scroll-margin-top: 96px;
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 22px;
}

.section-heading p {
  max-width: 610px;
  margin-bottom: 6px;
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.case-card.feature {
  border-left-color: transparent;
  padding-left: 0;
}

.case-image,
.marketplace-panel {
  overflow: hidden;
  aspect-ratio: 1.28;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
}

.case-image img {
  object-position: left top;
  transition: transform 500ms ease;
}

.case-image img.pretzi-shot {
  object-position: center top;
}

.case-image:hover img {
  transform: scale(1.025);
}

.case-content p {
  margin-bottom: 20px;
  color: #263238;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  border-top: 1px solid rgba(221, 213, 200, 0.9);
  border-bottom: 1px solid rgba(221, 213, 200, 0.9);
}

.metric-row span {
  min-width: 0;
  padding: 12px 10px 12px 0;
  border-left: 1px solid rgba(221, 213, 200, 0.9);
}

.metric-row span:first-child {
  border-left: 0;
}

.metric-row strong,
.evidence-metric strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  line-height: 1;
}

.metric-row small,
.evidence-metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  color: rgba(185, 137, 59, 0.28);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.star-rating.large {
  margin-top: 9px;
  font-size: 1.05rem;
}

.star-rating .stars {
  position: relative;
  display: inline-block;
  font-weight: 400;
}

.star-rating .stars::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 96%;
  overflow: hidden;
  color: var(--gold);
  content: "\2605\2605\2605\2605\2605";
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 10px;
}

.case-number {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.case-kicker {
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #314044;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38a64a;
}

.case-content h3 a {
  text-decoration: none;
}

.proof-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.proof-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(221, 213, 200, 0.8);
}

.proof-list dt {
  font-weight: 820;
}

.proof-list dd {
  margin: 0;
  color: #253238;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.ownership-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 34px;
}

.ownership-grid .system-block:nth-child(4n + 1) {
  border-left: 0;
  padding-left: 0;
}

.system-block {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.system-block:first-child {
  border-left: 0;
  padding-left: 0;
}

.system-block span,
.flow-steps span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 860;
  letter-spacing: 0.08em;
}

.system-block h3 {
  max-width: 210px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.system-block p {
  margin-bottom: 0;
  color: #263238;
}

.subsection-title {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0;
}

.marketplace-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(7, 20, 27, 0.92), rgba(18, 39, 45, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: white;
}

.panel-heading span {
  display: block;
  margin-bottom: 14px;
  color: #94ead3;
  font-weight: 800;
}

.panel-heading strong {
  display: block;
  max-width: 340px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.08;
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}

.platform-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f0e8;
  font-size: 0.76rem;
  font-weight: 800;
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-board div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.ops-board small {
  color: #94ead3;
  letter-spacing: 0.06em;
}

.ops-board b {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  min-width: 0;
  padding: 0 24px 0 24px;
  border-left: 1px solid var(--line);
}

.process-step:first-child {
  border-left: 0;
  padding-left: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--muted);
  font-weight: 800;
}

.process-step svg {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.process-step h3 {
  max-width: 190px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.process-step p {
  color: #263238;
  font-size: 0.95rem;
}

.positioning-line {
  max-width: 780px;
  margin: 34px auto 0;
  color: #243038;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  text-align: center;
}

.looking-contact {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(36px, 8vw, 80px);
  align-items: start;
}

.looking-block {
  padding-right: 48px;
  border-right: 1px solid var(--line);
}

.looking-block p,
.contact-block p {
  max-width: 680px;
  color: #263238;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 1.08rem;
  font-weight: 760;
}

.contact-links a::before {
  color: var(--green);
  content: "/";
  margin-right: 8px;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(34px, 8vw, 100px);
  align-items: end;
  padding: 66px 0 44px;
}

.case-hero h1 {
  font-size: clamp(3.2rem, 5vw, 5.4rem);
}

.case-hero p {
  max-width: 760px;
  color: #263238;
  font-size: 1.18rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 760;
  text-decoration: none;
}

.status-stack {
  display: grid;
  gap: 12px;
}

.status-stack > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.status-stack strong {
  display: block;
  line-height: 1.25;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pretzi-evidence .evidence-metric strong {
  font-size: clamp(1.8rem, 2.45vw, 2.8rem);
}

.verifi-evidence .evidence-metric strong {
  font-size: clamp(1.7rem, 2.2vw, 2.55rem);
}

.proof-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-panel {
  min-width: 0;
  padding: 22px 26px;
  border-left: 1px solid var(--line);
}

.proof-panel:first-child {
  border-left: 0;
  padding-left: 0;
}

.proof-panel span {
  display: block;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-panel strong {
  display: block;
  max-width: 300px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.22;
}

.proof-panel p {
  max-width: 340px;
  margin: 10px 0 0;
  color: var(--muted);
}

.evidence-metric {
  min-width: 0;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.evidence-metric:first-child {
  border-left: 0;
  padding-left: 0;
}

.evidence-metric strong {
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: var(--ink);
}

.source-note {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.flow-steps li:first-child {
  border-left: 0;
  padding-left: 0;
}

.flow-steps strong {
  display: block;
  max-width: 190px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.18;
}

.wide-media {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.wide-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.case-study {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.study-column {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.study-column:last-child {
  border-right: 0;
}

.study-column h2,
.outcome h2 {
  font-size: 2rem;
}

.study-column p,
.outcome p {
  color: #263238;
}

.product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.extension-gallery {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  align-items: start;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  aspect-ratio: 1.38;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  object-fit: contain;
  object-position: center center;
}

.gallery-item.tall img {
  aspect-ratio: 0.52;
  max-height: 860px;
}

.is-zoomable {
  cursor: zoom-in;
}

.is-zoomable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(7, 20, 27, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-zoom.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-zoom img {
  width: auto;
  max-width: min(1280px, calc(100vw - 68px));
  max-height: calc(100svh - 96px);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.image-zoom-close {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 101;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 780;
}

.image-zoom-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-item figcaption {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.outcome {
  max-width: min(var(--max), calc(100% - 48px));
}

.outcome p {
  max-width: 830px;
  font-size: 1.08rem;
}

.reveal {
  transform: none;
  opacity: 1;
  transition: transform 650ms ease, opacity 650ms ease;
}

.reveal.is-visible {
  transform: none;
  opacity: 1;
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 160ms;
}

.delay-3 {
  transition-delay: 230ms;
}

.delay-4 {
  transition-delay: 300ms;
}

.delay-5 {
  transition-delay: 370ms;
}

.delay-6 {
  transition-delay: 440ms;
}

@media (max-width: 980px) {
  .site-header {
    width: min(var(--max), calc(100% - 32px));
  }

  .section-boundary {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero,
  .case-hero,
  .looking-contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 46px 32px 0;
  }

  .hero h1 {
    font-size: clamp(4.8rem, 13vw, 6.4rem);
  }

  .hero-statement {
    max-width: 720px;
  }

  .hero-visual {
    margin-bottom: 28px;
  }

  .product-stage {
    min-height: 570px;
  }

  .desktop-device {
    width: 88%;
  }

  .phone-device {
    right: 2%;
  }

  .flow-card {
    left: 0;
    width: min(310px, 46%);
  }

  .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof-strip div:nth-child(odd) {
    border-left: 0;
  }

  .case-grid,
  .systems-grid,
  .case-study,
  .evidence-grid,
  .proof-panels,
  .flow-steps,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card.feature,
  .system-block,
  .evidence-metric,
  .proof-panel,
  .flow-steps li,
  .study-column,
  .looking-block {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .proof-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .case-card {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .case-card:last-child {
    border-bottom: 0;
  }

  .system-block,
  .evidence-metric,
  .proof-panel,
  .flow-steps li {
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid var(--line);
  }

  .system-block:first-child,
  .evidence-metric:first-child,
  .proof-panel:first-child,
  .flow-steps li:first-child {
    border-top: 0;
  }

  .section-heading {
    display: block;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 0;
  }

  .process-step:nth-child(odd) {
    border-left: 0;
    padding-left: 8px;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    display: block;
    padding: 22px 0 10px;
  }

  .brand {
    display: inline-flex;
    gap: 14px;
    margin-bottom: 18px;
  }

  .brand-mark {
    font-size: 2rem;
  }

  .brand-divider {
    height: 28px;
  }

  .brand-role {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .nav-links {
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: 3rem;
    line-height: 0.96;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding: 34px 16px 0;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 14vw, 3.85rem);
    white-space: nowrap;
  }

  .hero-statement {
    font-size: 2.05rem;
  }

  .case-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.35rem);
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .hero .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    gap: 10px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .hero .button.primary {
    flex-grow: 1.4;
  }

  .hero .button.secondary {
    flex-grow: 0.8;
  }

  .hero-focus {
    display: none;
  }

  .product-stage {
    min-height: 540px;
    padding-top: 64px;
  }

  .status-badge {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .desktop-device {
    width: 100%;
    border-width: 6px;
    border-radius: 20px;
  }

  .desktop-device img {
    aspect-ratio: 1.05;
  }

  .phone-device {
    left: 0;
    right: auto;
    bottom: 8px;
    width: 42%;
    border-width: 6px;
    border-radius: 28px;
  }

  .phone-device img {
    border-radius: 20px;
  }

  .flow-card {
    display: none;
  }

  .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
  }

  .hero-proof-strip div {
    padding: 20px 14px;
  }

  .hero-proof {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .large-product,
  .case-image,
  .marketplace-panel,
  .wide-media img,
  .gallery-item img {
    aspect-ratio: 1.05;
  }

  .image-zoom {
    padding: 18px;
  }

  .image-zoom img {
    max-width: calc(100vw - 36px);
    max-height: calc(100svh - 86px);
  }

  .marketplace-panel {
    aspect-ratio: auto;
  }

  .platform-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-board,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-panel .ops-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-row strong {
    font-size: 1.28rem;
  }

  .process-step,
  .process-step:first-child,
  .process-step:nth-child(odd) {
    border-left: 0;
    padding: 0;
  }

  .positioning-line {
    text-align: left;
  }
}

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