/* Jordan James Consulting Co. — v2 */
/* Open Sans Light (300) body; Open Sans Bold (700) headings/UI/hero; Yellowtail logo (Google Fonts in HTML) */

:root {
  --bg: #e9e8e7;
  --bg-alt: #e2e1df;
  --surface: #f3f2f1;
  --ink: #2a2826;
  --ink-muted: #5c5956;
  /* Primary CTA / brand accent */
  --accent: #ff4040;
  --accent-soft: #ff8a8a;
  --accent-deep: #cc3333;
  --border: #d4d3d0;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Yellowtail", cursive;
  --max: 1100px;
  --narrow: 640px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.75s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
}

strong,
b {
  font-weight: 700;
}

/* Fixed viewport glows — top-right, middle-left, bottom-right (right pair staggered), stay put while scrolling */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 42% at 90% 9%, rgba(255, 64, 64, 0.3), transparent 54%),
    radial-gradient(ellipse 74% 70% at 6% 51%, rgba(255, 64, 64, 0.28), transparent 52%),
    radial-gradient(ellipse 64% 54% at 74% 91%, rgba(255, 64, 64, 0.26), transparent 54%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - clamp(1rem, 5vw, 2.5rem), var(--max));
  margin-inline: auto;
}

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

.text-accent {
  color: var(--accent);
  font-weight: inherit;
}

.narrow {
  max-width: var(--narrow);
  margin-inline: auto;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(233, 232, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 4.2vw, 1.8rem);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ----- Hero ----- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 1;
}


.hero-animate__el {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.hero.is-loaded .hero-animate__el {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-loaded .hero-animate__el:nth-child(1) {
  transition-delay: 0.05s;
}
.hero.is-loaded .hero-animate__el:nth-child(2) {
  transition-delay: 0.14s;
}
.hero.is-loaded .hero-animate__el:nth-child(3) {
  transition-delay: 0.22s;
}
.hero.is-loaded .hero-animate__el:nth-child(4) {
  transition-delay: 0.3s;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero__actions .btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.fine-print {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ----- Buttons & links ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 64, 64, 0.35);
  transition:
    background 0.25s,
    transform 0.15s,
    box-shadow 0.25s;
}

.btn:hover {
  background: linear-gradient(165deg, #ff5555 0%, #d93636 100%);
  box-shadow: 0 8px 28px rgba(255, 64, 64, 0.45);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  box-shadow: none;
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: rgba(255, 64, 64, 0.35);
  transform: none;
}

.btn--header-glow {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 24px rgba(255, 64, 64, 0.35);
}

.btn--header-glow:hover {
  background: #ff5555;
  box-shadow: 0 10px 32px rgba(255, 64, 64, 0.45);
  transform: translateY(-1px);
}

.link-arrow {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.link-arrow:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
}

/* ----- Scroll reveal ----- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal-group.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(1) {
  transition-delay: 0.04s;
}
.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}
.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(3) {
  transition-delay: 0.16s;
}
.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(4) {
  transition-delay: 0.22s;
}
.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(5) {
  transition-delay: 0.28s;
}
.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(6) {
  transition-delay: 0.34s;
}
.manifesto__flow.reveal-group.is-visible .reveal-item:nth-child(7) {
  transition-delay: 0.42s;
}

.testimonial-stack.reveal-group.is-visible .reveal-item:nth-child(1) {
  transition-delay: 0s;
}
.testimonial-stack.reveal-group.is-visible .reveal-item:nth-child(2) {
  transition-delay: 0.12s;
}
.testimonial-stack.reveal-group.is-visible .reveal-item:nth-child(3) {
  transition-delay: 0.24s;
}
.testimonial-stack.reveal-group.is-visible .reveal-item:nth-child(4) {
  transition-delay: 0.36s;
}

.steps-reveal.reveal-group.is-visible .reveal-item:nth-child(1) {
  transition-delay: 0.06s;
}
.steps-reveal.reveal-group.is-visible .reveal-item:nth-child(2) {
  transition-delay: 0.18s;
}
.steps-reveal.reveal-group.is-visible .reveal-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* ----- Sections ----- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--alt {
  background: var(--bg-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--ink);
}

.section__title.text-accent {
  color: var(--accent);
}

.section__title--decor {
  position: relative;
  padding-bottom: 1.25rem;
}

.section__title--decor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.section__title--left {
  text-align: left;
  margin-bottom: 1rem;
}

.section__title--left.section__title--decor::after {
  left: 0;
  transform: none;
}

/* Manifesto — dark band; Problem block centered, Process steps stay left (see .section--process) */

.section--manifesto {
  position: relative;
  background: linear-gradient(160deg, #2e2e2e 0%, #242424 55%, #1a1a1a 100%);
  color: #f0efee;
  border-top: none;
  border-bottom: none;
  overflow: hidden;
}

.section--manifesto > .wrap {
  position: relative;
  z-index: 1;
  text-align: left;
}

.section.manifesto.section--manifesto > .wrap {
  text-align: center;
}

.manifesto {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section--manifesto .section__title {
  color: #f0efee;
}

/* Process / 1-2-3 — same dark band as Problem; keep heading & block centered */
.section--manifesto.section--process > .wrap {
  text-align: center;
}

.section--manifesto.section--process .steps {
  text-align: left;
}

.manifesto__flow {
  max-width: 38rem;
  margin-inline: auto;
  margin-block: 0;
  padding: 0;
}

.manifesto .reveal-item {
  margin: 0 0 1.15rem;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(240, 239, 238, 0.94);
}

.manifesto .reveal-item:last-child {
  margin-bottom: 0;
}

/* Beat: what went wrong — after the “you didn’t know” hook */
.manifesto__beat-start {
  margin-top: 1.75rem !important;
}

.manifesto .reveal-item.manifesto__punch {
  margin-top: 1.35rem !important;
  margin-bottom: 1.15rem;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(240, 239, 238, 0.94);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Tighter pair: market pressure + time */
.manifesto__beat-tight {
  margin-top: 0.65rem !important;
}

.manifesto__close {
  margin-top: 1.75rem !important;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(240, 239, 238, 0.94);
}

/* Video embed (YouTube) */

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(42, 40, 38, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: #111;
}

.video-embed iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.quote {
  margin: 0 auto 1.5rem;
  max-width: 560px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.quote p {
  margin: 0 0 1rem;
}

.quote footer {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
}

.about-quote {
  margin-top: 1.5rem;
}

.about-profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.about-profile .about-quote {
  margin: 1rem 0 0;
  max-width: none;
  text-align: left;
  font-size: clamp(1.02rem, 1.75vw, 1.2rem);
  font-weight: 400;
  line-height: 1.38;
}

.about-profile .about-quote footer {
  text-align: left;
}

.center {
  text-align: center;
  margin: 0;
}

/* Work — brands + footnote */

.section--work {
  text-align: center;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3rem);
  margin: 0 auto 1.75rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
  max-width: 52rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.05);
}

.brand-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}

.brand-logos__item img {
  display: block;
  width: auto;
  height: auto;
  max-height: 2.65rem;
  max-width: min(100%, 18rem);
  object-fit: contain;
}

@media (min-width: 520px) {
  .brand-logos__item img {
    max-height: 2.85rem;
  }
}

/* Stacked icon + wordmark (taller than wide wordmarks) */
.brand-logos__item--stacked img {
  max-height: 4.25rem;
  max-width: min(100%, 9.5rem);
}

/* Work — conveyor belt (slow horizontal scroll, multiple cards visible) */

.section--work .work-conveyor {
  margin-top: 0.25rem;
}

.our-work-code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
}

.work-conveyor {
  width: 100%;
  margin-inline: auto;
  padding-block: 0.35rem 0.15rem;
}

/* Same horizontal width as `.steps` (800px capped on small screens, full `.wrap` from 768px up) */
.work-conveyor__viewport {
  container-type: inline-size;
  container-name: work-conveyor;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: transparent;
}

.work-conveyor__track {
  display: flex;
  width: max-content;
  gap: 1.75rem;
  align-items: flex-start;
  animation: work-conveyor-scroll 72s linear infinite;
  will-change: transform;
}

.work-conveyor__sequence {
  display: flex;
  gap: 1.75rem;
  flex-shrink: 0;
}

/* One card width ≈ one `.steps` column: (row width − 2 gaps) ÷ 3 */
.work-conveyor__card {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(15rem, 29vw, 18.5rem);
}

@supports (width: 1cqi) {
  .work-conveyor__card {
    width: max(15rem, calc((100cqi - 2 * 1.75rem) / 3));
  }
}

/* Narrow viewports: smaller cards + gaps so the belt stays clipped (no page overflow) */
@media (max-width: 767px) {
  .work-conveyor__track,
  .work-conveyor__sequence {
    gap: 1rem;
  }

  .work-conveyor__card {
    width: clamp(11.5rem, 72vw, 18.5rem);
  }

  @supports (width: 1cqi) {
    .work-conveyor__card {
      width: max(11.5rem, calc((100cqi - 2 * 1rem) / 3));
    }
  }
}

@media (min-width: 768px) {
  .work-conveyor__viewport {
    max-width: none;
  }

  .work-conveyor__track,
  .work-conveyor__sequence {
    gap: 2rem;
  }

  @supports (width: 1cqi) {
    .work-conveyor__card {
      width: calc((100cqi - 2 * 2rem) / 3);
    }
  }
}

.work-conveyor__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(11rem, 24vh, 16rem);
  margin-inline: auto;
  background: transparent;
}

.work-conveyor__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.work-conveyor__caption {
  margin: 0.65rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
  background: transparent;
}

@keyframes work-conveyor-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-conveyor__track {
    animation: none;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.5rem;
  }

  .work-conveyor__sequence--clone {
    display: none !important;
  }

  .work-conveyor__sequence {
    flex-wrap: wrap;
    justify-content: center;
  }

  .work-conveyor {
    max-width: var(--max);
    margin-inline: auto;
  }
}

/* Our Work page — case studies */

.case-studies {
  text-align: left;
}

.case-studies__intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 auto 1.5rem;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-study__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 14rem;
  border: none;
  border-radius: var(--radius);
  /* Transparent so PNG alpha shows card surface, not a second grey */
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}

/* Placeholder rows (no image yet) keep a visible block */
.case-study__media:not(:has(img)) {
  background: #ecebe9;
}

.case-study__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-study__content h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.case-study__content p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.case-study__content blockquote {
  margin: 1rem 0 0.9rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.case-study__content blockquote p {
  margin: 0 0 0.65rem;
  font-style: italic;
  color: var(--ink);
}

.case-study__content blockquote footer {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

@media (min-width: 860px) {
  .case-study {
    grid-template-columns: minmax(240px, 1.05fr) minmax(320px, 1.35fr);
    align-items: start;
  }

  .case-study__media {
    min-height: 100%;
    aspect-ratio: 4 / 3;
  }

  .case-study__media img {
    height: 100%;
  }
}

/* Case study detail page */

.case-detail-hero {
  padding-bottom: clamp(1.75rem, 4vw, 2.4rem);
}

.case-detail__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.case-detail__back-link-wrap {
  margin: 0 0 0.6rem;
  text-align: center;
}

.case-detail__back-link {
  font-size: 0.92rem;
  font-weight: 700;
}

.case-detail__title {
  flex: 1;
  margin: 0 0 1rem;
  text-align: center;
}

.case-detail__title.section__title--decor::after {
  left: 50%;
  transform: translateX(-50%);
}

.case-detail__subhead {
  margin: 0;
  text-align: center;
  font-size: clamp(1.12rem, 2.05vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.case-detail {
  padding-top: 0;
}

.case-detail__panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.8rem);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.case-detail__block {
  background: transparent;
}

.case-detail__block + .case-detail__block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(92, 89, 86, 0.18);
}

.case-detail__row + .case-detail__block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(92, 89, 86, 0.18);
}

.case-detail__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(92, 89, 86, 0.18);
}

.case-detail__image-slot {
  min-height: 16rem;
  border-radius: var(--radius);
  background: #e7e6e3;
  color: var(--ink-muted);
  border: 1px dashed rgba(92, 89, 86, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.case-detail__image-slot--photo {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: block;
}

.case-detail__image-slot--photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.case-detail__block--support {
  padding: 0;
}

.case-detail__block--support p {
  margin: 0;
  color: var(--ink-muted);
}

@media (min-width: 860px) {
  .case-detail__row {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr);
    align-items: start;
  }

  .case-detail__row--image-left {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.35fr);
  }
}


.case-detail__block h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.38rem, 2.4vw, 1.72rem);
  color: var(--ink);
  text-align: left;
}

.case-detail__block p {
  margin: 0 0 0.8rem;
  text-align: left;
}

.case-detail__block p:last-child {
  margin-bottom: 0;
}

.case-detail__block ul {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  list-style-position: outside;
  text-align: left;
}

.case-detail__block li {
  margin: 0 0 0.45rem;
}

/* Partner — photo + bio */

.partner-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .partner-split {
    grid-template-columns: minmax(240px, 2fr) minmax(280px, 3fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.partner-photo {
  margin: 0;
}

.partner-photo img {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

@media (min-width: 860px) {
  .partner-photo img {
    margin-inline: 0;
    max-width: none;
  }
}

.partner-photo__caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
  font-weight: 300;
}

.two-col {
  max-width: var(--narrow);
  margin-inline: auto;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--panel {
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  max-width: 800px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: none;
  }
}

.steps li {
  position: relative;
  background: var(--surface);
  padding: 1.75rem 1.5rem 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 64, 64, 0.35);
}

.steps h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.steps p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-muted);
}

/* Services page offerings */

.services-intro__lead {
  font-size: clamp(1.28rem, 2.2vw, 1.5rem);
  line-height: 1.58;
  color: var(--ink-muted);
}

.services-goals {
  padding-top: 0;
}

.services-goals__grid .section__title {
  grid-column: 1 / -1;
}

.services-goals__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.service-goal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.8rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.service-goal h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  color: var(--accent);
}

.service-goal p {
  margin: 0 0 0.55rem;
}

.service-goal ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-goal li {
  margin: 0 0 0.3rem;
}

.service-goal li:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .services-goals__grid {
    grid-template-columns: 1fr;
  }
}

.services-faqs {
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: faq-item;
}

.faq-list li {
  counter-increment: faq-item;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-list.reveal-group .reveal-item {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transform: translateY(22px) scale(0.985);
}

.faq-list.reveal-group.is-visible .reveal-item {
  transform: translateY(0) scale(1);
}

.faq-list.reveal-group.is-visible .reveal-item:nth-child(1) {
  transition-delay: 0.12s;
}

.faq-list.reveal-group.is-visible .reveal-item:nth-child(2) {
  transition-delay: 0.28s;
}

.faq-list.reveal-group.is-visible .reveal-item:nth-child(3) {
  transition-delay: 0.44s;
}

.faq-list.reveal-group.is-visible .reveal-item:nth-child(4) {
  transition-delay: 0.6s;
}

.faq-list.reveal-group.is-visible .reveal-item:nth-child(5) {
  transition-delay: 0.76s;
}

.faq-list li + li {
  margin-top: 0.75rem;
}

.faq-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-list h3::before {
  content: counter(faq-item) ". ";
  color: var(--accent);
}

.faq-list p {
  margin: 0;
  color: var(--ink-muted);
}

.services-offerings {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.services-offerings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  max-width: 50rem;
  margin-inline: auto;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #dfdedb;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.2vw, 2.25rem);
  min-height: 33rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.service-card--primary {
  position: relative;
  border-color: rgba(7, 14, 33, 0.85);
  background: linear-gradient(165deg, #070e21 0%, #081634 60%, #071128 100%);
  box-shadow:
    0 18px 44px rgba(6, 11, 25, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.service-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 761px) {
  .services-offerings__grid .service-card h2 {
    min-height: 2.4em;
  }
}

.service-card--primary h2 {
  color: #ffffff;
}

.service-card p {
  margin: 0 0 0.95rem;
  color: var(--ink-muted);
}

.service-card__sub {
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (min-width: 761px) {
  /* Keep bullet lists aligned across offering cards */
  .services-offerings__grid .service-card__sub {
    min-height: 4.6rem;
  }
}

.service-card--primary .service-card__sub {
  color: rgba(237, 239, 246, 0.84);
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
}

@media (min-width: 761px) {
  /* Keep "Who is this for?" aligned across offering cards */
  .services-offerings__grid .service-card__list {
    min-height: 14rem;
  }
}

.service-card__list li {
  position: relative;
  margin: 0 0 0.55rem;
  padding-left: 1.45rem;
  line-height: 1.45;
}

.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.06rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: #24385f;
}

.service-card--primary .service-card__list li {
  color: rgba(241, 243, 248, 0.96);
}

.service-card--primary .service-card__list li::before {
  background: rgba(255, 255, 255, 0.2);
}

.service-card__list li:last-child {
  margin-bottom: 0;
}

.service-card__fit {
  margin: auto 0 0;
  padding-top: 1.5rem;
  min-height: 5.25rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.service-card__fit strong {
  color: var(--ink);
}

.service-card--primary .service-card__fit {
  color: rgba(237, 239, 246, 0.82);
}

.service-card--primary .service-card__fit strong {
  color: #fff;
}

.service-card__cta {
  margin-top: 0.7rem;
  min-height: 3.25rem;
  width: 100%;
}

.service-card--secondary .service-card__cta {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}

.service-card--secondary .service-card__cta:hover {
  background: var(--surface);
  color: var(--ink);
  transform: none;
}

@media (max-width: 760px) {
  .services-offerings__grid {
    grid-template-columns: 1fr;
  }
}

/* Guarantee */

.guarantee {
  text-align: center;
}

/* Glow uses manifesto band palette (#2e2e2e → #1a1a1a) like “How We’ll Bring Your Software to Life” */
.guarantee__card {
  max-width: 40rem;
  margin-inline: auto;
  background: var(--surface);
  padding: clamp(2rem, 5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 46, 46, 0.2);
  box-shadow:
    0 0 0 1px rgba(26, 26, 26, 0.06),
    0 4px 28px rgba(26, 26, 26, 0.18),
    0 12px 44px rgba(46, 46, 46, 0.14),
    0 20px 56px rgba(26, 26, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.guarantee .section__title {
  margin-bottom: 1rem;
}

.guarantee__card p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Footer CTA */

.footer-cta {
  position: relative;
  background: linear-gradient(160deg, #2e2e2e 0%, #242424 55%, #1a1a1a 100%);
  color: #f0efee;
  padding: clamp(3.5rem, 9vw, 5.5rem) 0;
  overflow: hidden;
}

.footer-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.footer-cta h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

.footer-cta .btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 64, 64, 0.35);
}

.footer-cta .btn:hover {
  background: #ff5555;
  box-shadow: 0 10px 32px rgba(255, 64, 64, 0.45);
}

/* Site footer */

.site-footer {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

[id] {
  scroll-margin-top: 4rem;
}

@media (max-width: 860px) {
  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    column-gap: clamp(0.65rem, 3vw, 1.15rem);
  }

  /* Hero + footer still surface “Book a call”; drop duplicate header CTA on small screens */
  .site-header .wrap > .btn {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-nav a {
    font-size: 0.88rem;
  }
}

/* Reduced motion */

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

  .hero-animate__el,
  .reveal,
  .reveal-group .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .steps li:hover {
    transform: none;
  }
}
