/* andrewlaville.com — design B2a ("flow lines"). Light only. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --hero-bg: #f8fafd;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #0f1a2b;
  --text-body: #24303f;
  --text-soft: #3a4658;
  --muted: #586577;
  --rule: #dce3ee;
  --rule-soft: #e3e9f2;
  --chip-rule: #c9d7ff;
  --button-rule: #c6d0de;
  --accent: #1f5eff;
  --accent-hover: #1442c2;
  --highlight: #ea580c; /* "find the bottleneck" only; 3.4:1, large text only */
  --marker: #fde047; /* highlighter behind "get your team using it."; navy text on it is 13:1 */
  --accent-tint: rgba(31, 94, 255, 0.08);
  --on-accent: #ffffff;
  --shadow-card: 0 1px 2px rgba(15, 26, 43, 0.04), 0 16px 40px -24px rgba(31, 94, 255, 0.22);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 80rem; /* 1280px */
  --gutter: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-accent);
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--accent);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button svg {
  flex: none;
}

.button-sm {
  min-height: 44px;
  padding: 0 1.125rem;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button-secondary {
  border-color: var(--button-rule);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-light {
  background: var(--surface);
  color: var(--text);
}

.button-light:hover {
  background: #eef3ff;
  color: var(--text);
}

.button-outline-light {
  border-color: var(--on-accent);
  color: var(--on-accent);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-accent);
}

/* Hero */

.hero {
  background: var(--hero-bg);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem 3.5rem;
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}

.hero-text {
  flex: 999 1 37.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chip {
  align-self: flex-start;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--chip-rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em;
}

/* Bold role label above the headline: the first thing the eye lands on */
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
}

.kicker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6875rem 1.25rem 0.6875rem 0.875rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -12px rgba(31, 94, 255, 0.6);
}

.kicker-label svg {
  flex: none;
}

.kicker-note {
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

.headline {
  max-width: 12.5em; /* four lines on laptops and desktops */
  font-size: clamp(2.125rem, 3.9vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.headline-accent {
  color: var(--accent);
}

.headline-highlight {
  color: var(--highlight);
}

/* Highlighter-pen band behind the lower part of the words, kept on every wrapped line */
.headline-marker {
  color: var(--text);
  background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

.lede {
  max-width: 64ch;
  color: var(--text-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* From tablet width up, text left and diagram + photo right, always side by side.
   Phones keep the flex layout below: photo above the headline, diagram hidden. */
@media (min-width: 45.0625rem) {
  .hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 26.25rem);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .hero-media .hero-diagram {
    width: 80%;
  }

  .hero-media .hero-photo {
    width: min(17.5rem, 100%);
  }
}

.hero-media {
  flex: 1 1 21.25rem;
  max-width: 26.25rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-diagram {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo {
  position: relative;
  width: min(20rem, 100%);
  display: flex;
  flex-direction: column;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 6px solid var(--surface);
  border-radius: 24px;
  background: var(--rule-soft);
  box-shadow: 0 2px 4px rgba(15, 26, 43, 0.05), 0 28px 56px -28px rgba(31, 94, 255, 0.4);
}

.name-card {
  position: relative;
  align-self: flex-start;
  margin: -1.875rem 0 0 -0.875rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 28px -14px rgba(15, 26, 43, 0.25);
  display: flex;
  flex-direction: column;
  width: max-content;
  white-space: nowrap;
  line-height: 1.3;
}

.name-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.name-card-role {
  color: var(--accent);
  font: 400 0.75rem/1.3 var(--mono);
}

.name-card-name + .name-card-role {
  margin-top: 0.125rem;
}

/* Numbers */

.stats-wrap {
  padding-bottom: 2.5rem;
}

.stats-wrap .section-label {
  margin-bottom: 0.875rem;
}

.stats-wrap .availability {
  margin-top: 1.125rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: 0 16px 40px -28px rgba(31, 94, 255, 0.35);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.375rem;
  padding: 1.5rem 1.5rem 1.375rem;
  background: var(--surface);
}

.stat dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.stat dd {
  color: var(--accent);
  font: 500 clamp(1.375rem, 1.8vw, 1.625rem)/1.15 var(--mono);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Sections */

.section {
  border-top: 1px solid var(--rule);
}

.section-white {
  background: var(--surface);
}

.section-tint {
  background: var(--bg);
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-block: 3.5rem;
}

.section-label {
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 2.7vw, 2.375rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-count {
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
}

/* Testimonials */

.testimonials .section-stack {
  padding-block: 5rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28.75rem, 100%), 1fr));
  gap: 1.25rem;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface-soft);
}

.quote blockquote {
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-person {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.quote-role {
  color: var(--muted);
  font-size: 0.875rem;
}

.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font: 400 0.75rem/1.4 var(--mono);
}

/* Case studies */

.case {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.case-featured {
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.case-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "CASE STUDIES" and "ABOUT" section titles in capitals; capitals need open tracking, not the titles' tight -0.035em */
.systems .section-title,
.section-title-caps {
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.case-num {
  color: var(--accent);
  font-weight: 500;
}

.badge {
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 0.75rem/1.4 var(--mono);
}

/* One title style for all three case studies */
.case-title {
  max-width: 26ch;
  scroll-margin-top: 6rem; /* in-page links land with the card's top in view */
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.case-sub {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.case-byline {
  color: var(--muted);
  font: 400 0.8125rem/1.5 var(--mono);
}

/* Byline on the same line as the case number: "Case study 2 · The Flag Consultancy".
   On narrow screens it drops to its own line, never splitting either part. */
.case-meta-line {
  display: block;
}

.case-meta-line > span {
  white-space: nowrap;
}

.case-meta-line .case-num::after {
  content: " ·";
  content: " ·" / "";
}

.case-meta-line .case-byline {
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
}

/* Headline result at the top of cases 2 and 3 */
.case-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 1.25rem 1.375rem;
  border-radius: 14px;
  background: rgba(31, 94, 255, 0.07);
}

.case-highlight-figure {
  color: var(--accent);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.case-highlight-note {
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Case study tabs (assets/tabs.js): one tab per case study, one case study shown at a time.
   Styled as press-me buttons: navy outline, solid offset shadow, the open one yellow and pressed in.
   Without JavaScript the row and its hint stay hidden and all three case studies show in full. */
.cs-hint {
  margin-bottom: -0.25rem;
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  padding: 0 5px 5px 0; /* room for the offset shadow */
}

.cs-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.125rem 3rem 1.125rem 1.25rem;
  border: 2px solid var(--text);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--text);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

@media (hover: hover) {
  .cs-tab[aria-selected="false"]:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 var(--text);
  }
}

.cs-tab[aria-selected="false"]:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--text);
}

.cs-tab[aria-selected="true"] {
  background: var(--marker);
  box-shadow: 2px 2px 0 var(--text);
  transform: translate(3px, 3px);
}

.cs-tab-num {
  color: var(--accent);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-tab[aria-selected="true"] .cs-tab-num {
  color: var(--text);
}

.cs-tab-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cs-tab-note {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

.cs-tab-arrow {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--accent);
  transform: translateY(-50%);
}

.cs-tab[aria-selected="true"] .cs-tab-arrow {
  color: var(--text);
  transform: translateY(-50%) rotate(90deg);
}

.cs-tabbed .case-pair {
  display: block;
}

.cs-next {
  display: none;
}

.cs-tabbed .cs-next {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.cs-tabbed .cs-next:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .cs-tab,
  .cs-tab:hover,
  .cs-tab:active {
    transition: none;
  }
}

/* About me: a compact card like the case studies, text beside a small award photo on wide screens, stacked on narrow ones */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-card);
}

@media (min-width: 48rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2.5rem;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.about-text p {
  max-width: 70ch;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.about-photo {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  background: var(--rule-soft);
  box-shadow: 0 12px 28px -18px rgba(15, 26, 43, 0.45);
}

.about-photo figcaption {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.case-pair {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(32.5rem, 100%), 1fr));
  gap: 1.75rem;
}

/* Video */

.video-window {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.video-box {
  padding: 0.75rem;
  border-radius: 18px;
  background: var(--accent-tint);
}

.video-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font: 400 0.75rem/1.4 var(--mono);
}

.video {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.video-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 24px -14px rgba(15, 26, 43, 0.45);
}

.video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px -10px rgba(15, 26, 43, 0.5);
  color: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.video:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-cta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  background: var(--surface);
}

.video-cta-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: background-color 0.15s ease;
}

.video:hover .video-cta-icon {
  background: var(--accent-hover);
}

.video-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.video-cta-title {
  font-weight: 600;
}

.video-cta-sub {
  color: var(--muted);
  font-size: 0.875rem;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.media-caption {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16.25rem, 100%), 1fr));
  gap: 1rem;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--rule-soft);
}

.shot figcaption {
  color: var(--muted);
  font-size: 0.875rem;
}

.case:not(.case-featured) .shots {
  grid-template-columns: repeat(auto-fit, minmax(min(13.75rem, 100%), 1fr));
  gap: 0.875rem;
}

.case:not(.case-featured) .shot {
  gap: 0.5rem;
}

.case:not(.case-featured) .shot figcaption {
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Click-to-enlarge preview: a link to the full-size image, opened in a pop-out by assets/lightbox.js */
.shot-zoom {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 20px -12px rgba(15, 26, 43, 0.4);
  cursor: zoom-in;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.shot-zoom:hover {
  box-shadow: 0 14px 30px -14px rgba(15, 26, 43, 0.45);
  transform: translateY(-2px);
}

.shot-zoom img {
  border: 0;
  border-radius: 0;
  background: none;
}

.shot-zoom-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px -4px rgba(15, 26, 43, 0.35);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .shot-zoom,
  .shot-zoom:hover {
    transform: none;
    transition: none;
  }
}

/* Pop-out for enlarged screenshots (native <dialog>: Esc, focus trap and focus return come with it) */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 3.5rem);
  border: 0;
  background: transparent;
  color: var(--on-accent);
  cursor: zoom-out;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(15, 26, 43, 0.82);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  max-width: min(75rem, 100%);
  cursor: default;
}

.lightbox-scroll {
  max-width: 100%;
  border-radius: 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline-color: var(--on-accent);
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

/* Phones: show the screenshot at a readable size and let it scroll sideways */
@media (max-width: 45rem) {
  .lightbox-figure {
    width: 100%;
    align-items: stretch;
  }

  .lightbox-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .lightbox-img {
    width: 48rem;
    max-width: none;
    max-height: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open],
  .lightbox[open]::backdrop {
    animation: lightbox-in 0.18s ease-out;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

/* Hero availability strip */

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font: 400 0.8125rem/1.5 var(--mono);
}

.availability li:not(:last-child)::after {
  content: "·";
  margin-inline: 0.625rem;
  color: var(--muted);
}

/* What you get */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface-soft);
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.benefit p {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.closing-line {
  max-width: 40ch;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Section intros */

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.intro-line {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* Case study bodies */

.case-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.case-featured .case-body {
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
}

/* Cases 2 and 3: the body fills the card, so the last item (.case-foot) sits on the bottom edge */
.case:not(.case-featured) .case-body {
  flex: 1 1 auto;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft); /* same divider under the title as case study 1 */
}

.case:not(.case-featured) .case-block > p {
  font-size: 0.9375rem;
}

.case-foot {
  margin-top: auto;
}

.case .quote {
  gap: 0.875rem;
  padding: 1.5rem 1.625rem;
}

/* Case 1: video and results on the left, the problem and steps on the right. Stacks below 62rem. */
.case-split {
  display: grid;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
}

.case-aside,
.case-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-aside {
  gap: 1.25rem;
}

.case-main {
  gap: 1.75rem;
}

.case-featured .case-block > p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

@media (min-width: 62rem) {
  .case-split {
    grid-template-columns: minmax(0, 32.5rem) minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.result-card .results {
  border-top: 0;
}

.result-card .results > div {
  flex-direction: column;
  gap: 0;
  padding-block: 0.625rem;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 0;
}

.result-card .results > div:last-child {
  padding-bottom: 0;
}

.result-card .results dt {
  flex: none;
  font-size: 0.8125rem;
}

.result-card .results dd {
  flex: none;
  font-weight: 600;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.case-block > p {
  max-width: 72ch;
  color: var(--text-body);
  text-wrap: pretty;
}

.block-label {
  margin: 0;
  color: var(--accent);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-note {
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--text-body);
  font-size: 0.9375rem;
}

/* Step cards (case 1): numbered, the current stage outlined in blue */

.step-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-cards li {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: var(--surface-soft);
}

.step-cards .step-current {
  border-color: var(--accent);
  background: var(--surface);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.step-num {
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: rgba(31, 94, 255, 0.1);
  color: var(--accent);
  font: 500 0.75rem/1.5 var(--mono);
}

.step-current .step-num {
  background: var(--accent);
  color: var(--on-accent);
}

.step-name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.step-current .step-name {
  color: var(--accent);
}

.step-cards p {
  max-width: 72ch;
  color: var(--text-body);
  text-wrap: pretty;
}

/* Stepper (case 2): numbered circles joined by a line, the last one filled */

.stepper {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 0.875rem;
  padding-bottom: 1.125rem;
}

.stepper li:last-child {
  padding-bottom: 0;
}

.stepper li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.875rem;
  bottom: 0.25rem;
  left: calc(0.875rem - 1px);
  width: 2px;
  background: var(--rule);
}

.stepper-num {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font: 500 0.75rem/1 var(--mono);
}

.stepper li:last-child .stepper-num {
  background: var(--accent);
  color: var(--on-accent);
}

.stepper-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 0.125rem;
}

.stepper-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.stepper p {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* Results: measure + result rows */

.results {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-soft);
}

.results > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
}

.results dt {
  flex: 0 0 9.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.results dd {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
  text-wrap: pretty;
}

/* "For you, this means" callout */

.for-you {
  max-width: 80ch;
  padding: 1.125rem 1.375rem;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--text-body);
  text-wrap: pretty;
}

.for-you strong {
  color: var(--text);
}

/* First ten weeks */

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phases li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.375rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface-soft);
}

.phases p {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* Track record */

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
  gap: 1.25rem;
}

.record {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.record-where {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.record-detail {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.record-detail > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.record-detail dt {
  color: var(--accent);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.record-detail dd {
  color: var(--text-body);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.credentials {
  color: var(--text-soft);
  font: 400 0.875rem/1.6 var(--mono);
}

/* UAE */

.prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 68ch;
}

.prose p {
  color: var(--text-soft);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.prose .prose-lead {
  color: var(--text);
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.targeting {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list .tag {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Contact */

.contact {
  padding-bottom: 4rem;
  background: var(--surface);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 24px;
  background: var(--accent);
  color: var(--on-accent);
}

.contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-title {
  font-size: clamp(1.75rem, 2.7vw, 2.375rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.contact-email {
  color: var(--on-accent);
  font: 400 1.0625rem/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--on-accent);
  text-decoration-thickness: 2px;
}

.contact-text {
  flex: 1 1 32rem;
}

.contact-lede {
  max-width: 56ch;
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 0.9375rem/1.6 var(--mono);
}

.contact-list a {
  color: var(--on-accent);
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--on-accent);
  text-decoration-thickness: 2px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font: 400 0.8125rem/1.5 var(--mono);
}

/* 404 */

.notfound {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: var(--hero-bg);
}

.notfound .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding-block: 4rem;
}

/* Phones: photo under the headline, diagram hidden */

@media (max-width: 45rem) {
  .site-header {
    display: none;
  }

  /* One compact row of three buttons that stays at the top of the screen while a case study is read */
  .cs-tabs {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.625rem calc(var(--gutter) + 4px) 0.75rem var(--gutter);
    background: var(--bg);
    box-shadow: 0 10px 16px -14px rgba(15, 26, 43, 0.35);
  }

  .cs-tab {
    gap: 0.125rem;
    padding: 0.5rem 0.625rem;
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--text);
  }

  .cs-tab[aria-selected="true"] {
    box-shadow: 1px 1px 0 var(--text);
  }

  .cs-tab-num {
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
  }

  .cs-tab-title {
    font-size: 0.9375rem;
    line-height: 1.25;
  }

  .cs-tab-note,
  .cs-tab-arrow {
    display: none;
  }

  .hero-row {
    row-gap: 1.75rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  /* Unwrap the text column so the photo can sit between the headline and the lede */
  .hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text {
    display: contents;
  }

  .kicker {
    order: 1;
  }

  .headline {
    order: 2;
  }

  .hero-media {
    order: 3;
    flex: none;
    align-items: center;
  }

  .hero-media .name-card {
    align-self: center;
    margin-left: 0;
  }

  .lede {
    order: 4;
  }

  .actions {
    order: 5;
  }

  .hero-diagram {
    display: none;
  }

  .hero-media:not(:has(.hero-photo)) {
    display: none;
  }

  .hero-photo {
    width: 10.5rem;
  }

  .site-nav a:not(.button) {
    display: none;
  }

  .availability {
    flex-direction: column;
  }

  .availability li:not(:last-child)::after {
    content: none;
  }

  .stats-wrap {
    padding-bottom: 2rem;
  }

  .section-stack {
    padding-block: 3rem;
  }
}

@media print {
  .site-nav,
  .actions,
  .contact .actions {
    display: none;
  }
}
