/* ==========================================================================
   Amanda Coto — Portfolio
   Minimalist / editorial style
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #041233;
  --color-text-soft: #5c6b8a;
  --color-border: #dbeaf5;
  --color-navy: #03045e;
  --color-accent: #023eba;
  --color-highlight: #00b4d8;
  --color-surface: #caf0f8;
  --color-surface-2: #e7ecfa;
  --color-cta: #fbb02d;
  --color-cta-text: #041233;
  --color-surface-3: #fff1d6;
  --color-surface-4: #cbf4e1;
  --color-surface-5: #f8dee3;

  --font-display: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
  font-weight: 700;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 16ch;
  margin-top: 1rem;
}

.hero .lede {
  margin-top: 1.75rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-text-soft);
}

.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.hero-meta strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================================
   Buttons / links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-cta);
  background: var(--color-cta);
  color: var(--color-cta-text);
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-navy);
  background: transparent;
  color: var(--color-navy);
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  color: var(--color-accent);
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

/* ==========================================================================
   Project filter pills
   ========================================================================== */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover { background: var(--color-surface-2); }

.filter-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.filter-empty {
  display: none;
  padding: 1rem 0 0.5rem;
  color: var(--color-text-soft);
  font-style: italic;
}

/* ==========================================================================
   Project grid / cards
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-card {
  display: block;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.placeholder-image {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--color-surface),
      var(--color-surface) 10px,
      #e9e3da 10px,
      #e9e3da 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.placeholder-image span {
  background: var(--color-bg);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.project-card .placeholder-image {
  margin-bottom: 1.25rem;
  transition: opacity 0.2s ease;
}

.project-card:hover .placeholder-image { opacity: 0.75; }

.project-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
  display: block;
  transition: opacity 0.2s ease;
}

.project-card:hover > img { opacity: 0.85; }

.project-card .tag {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

.project-card p {
  margin-top: 0.5rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   About preview / two-column
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.skills-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ==========================================================================
   About collage + trait pills
   ========================================================================== */

.trait-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}

.trait-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}

.trait-pill:nth-child(3n+1) { background: var(--color-surface); }
.trait-pill:nth-child(3n+2) { background: var(--color-surface-2); }
.trait-pill:nth-child(3n+3) { background: var(--color-surface-3); }

.about-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Case study page
   ========================================================================== */

.case-nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
}

.case-nav-top {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.case-content-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.case-cover {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.case-cover .placeholder-image {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.case-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.client-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-navy);
}

.case-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-top: 0.75rem;
  max-width: 24ch;
}

.case-hero p + p { margin-top: 1rem; }

.case-hero .lede { margin-top: 1rem; font-size: 21px; }

.case-hero .lede + p { margin-top: 0.5rem; color: var(--color-text-soft); }

.case-meta {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--color-surface);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

@media (max-width: 720px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}

.case-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  margin-bottom: 0.35rem;
}

.case-meta dd { font-weight: 600; line-height: 1.4; }

.case-block {
  max-width: 70ch;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.case-block-wide {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.case-block h2,
.case-block-wide h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  margin-bottom: 1.25rem;
}

.case-block p + p,
.case-block-wide p + p {
  margin-top: 1rem;
}

.case-block .placeholder-image,
.case-block-wide .placeholder-image {
  aspect-ratio: 16 / 10;
  margin-top: 1.5rem;
  border-radius: 12px;
}

/* Persona cards */

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .persona-grid { grid-template-columns: 1fr; }
}

.persona-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.persona-card h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.persona-card p {
  margin-top: 0.5rem;
  color: var(--color-text-soft);
}

/* How might we callout */

.hmw-block {
  background: var(--color-navy);
  color: #fff;
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hmw-block .eyebrow { color: rgba(255, 255, 255, 0.65); }

.hmw-block .question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.18;
  margin-top: 1rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .hmw-block .question { font-size: 1.5rem; }
}

/* Problem / What I did / Why it worked */

.decision-block + .decision-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.decision-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: 2rem;
}

.site-footer .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.footer-note {
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero {
  padding: clamp(4rem, 12vw, 7rem) 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Hero blob
   ========================================================================== */

.hero { position: relative; overflow: hidden; }

.hero-blob {
  position: absolute;
  top: -10%;
  right: -12%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, #00b4d8 0%, transparent 60%),
    radial-gradient(circle at 65% 60%, #023eba 0%, transparent 55%),
    radial-gradient(circle at 40% 70%, #fbb02d 0%, transparent 55%);
  filter: blur(50px) saturate(115%);
  opacity: 0.5;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  animation: blob-morph 16s ease-in-out infinite;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%;
    transform: rotate(8deg) scale(1.05);
  }
  66% {
    border-radius: 50% 50% 35% 65% / 35% 55% 45% 65%;
    transform: rotate(-6deg) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

@media (max-width: 720px) {
  .hero-blob { width: 70vw; top: -8%; right: -20%; opacity: 0.4; }
}

.hero > .wrapper { position: relative; z-index: 1; }

/* ==========================================================================
   Staggered project grid
   ========================================================================== */

@media (min-width: 721px) {
  .project-grid.stagger .project-card:nth-child(even) {
    margin-top: 4rem;
  }
}

/* ==========================================================================
   Feature cards (Jessica-style full-bleed case study blocks)
   ========================================================================== */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--color-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(3, 4, 94, 0.25);
}

.feature-list .feature-card:nth-child(2n) { background: var(--color-surface-2); }
.feature-list .feature-card:nth-child(3n) { background: var(--color-surface-3); }

@media (max-width: 800px) {
  .feature-card { grid-template-columns: 1fr; }
}

.feature-card .tag {
  color: var(--color-navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 0.75rem;
  max-width: 20ch;
}

.feature-card .description {
  margin-top: 1rem;
  max-width: 50ch;
  color: var(--color-text-soft);
}

.feature-card .stat-row {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.feature-card .stat {
  display: flex;
  flex-direction: column;
}

.feature-card .stat-divider {
  width: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.feature-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
}

.feature-card .stat-label {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.feature-card .btn { margin-top: 1.75rem; }

.feature-card .placeholder-image {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(3, 4, 94, 0.25);
}

.feature-card .feature-cover {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.feature-card .feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-cover img { transform: scale(1.03); }

/* Work in progress variant: same card, no link, "coming soon" state */
.feature-card.is-wip { cursor: default; }
.feature-card.is-wip:hover { transform: none; box-shadow: none; }
.feature-card.is-wip:hover .feature-cover img { transform: none; }

.feature-card.is-wip .feature-cover img,
.feature-card.is-wip .feature-cover svg { filter: saturate(0.55); opacity: 0.85; }

.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.5rem 1rem;
  border: 1px dashed rgba(3, 4, 94, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wip-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cta);
  animation: wip-pulse 1.8s ease-in-out infinite;
}

@keyframes wip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 176, 45, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(251, 176, 45, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wip-badge .dot { animation: none; }
}

.feature-card .btn-soon {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem 1.6rem;
  border: 1px dashed rgba(3, 4, 94, 0.4);
  border-radius: 999px;
  color: rgba(3, 4, 94, 0.65);
  font-size: 0.9rem;
  font-weight: 700;
  pointer-events: none;
}

/* ==========================================================================
   Stacking case study cards (Work page scroll animation)
   ========================================================================== */

.stack-list {
  position: relative;
}

.stack-item {
  position: sticky;
  top: 104px;
  height: calc(100vh - 104px);
  min-height: 460px;
}

.stack-card {
  position: relative;
  transform-origin: top center;
  transition: box-shadow 0.3s ease;
  will-change: transform, top;
}

@media (max-width: 800px) {
  .stack-item { top: 88px; height: calc(100vh - 88px); min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack-item {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 1.5rem;
  }
  .stack-card {
    top: 0 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.testimonial-author strong { color: var(--color-text); display: block; }

/* ==========================================================================
   Footer CTA
   ========================================================================== */

/* Footer CTA: halo, writing animation, stickers */
.footer-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  border-top: 1px solid var(--color-border);
}

.footer-cta.reveal { opacity: 1; transform: none; }

.footer-cta .wrapper { position: relative; }
.footer-cta .wrapper > * { position: relative; z-index: 1; }

.footer-cta .wrapper::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 46%;
  left: 50%;
  width: min(38rem, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(3, 4, 94, 0.3) 1.4px, transparent 1.9px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 1.2s ease, transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.footer-cta.is-visible .wrapper::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cta-title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.cta-line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.25em 0.14em;
  margin: -0.08em -0.25em -0.14em;
}

.cta-line--script { overflow: visible; }

.cta-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(0.15s + var(--i, 0) * 0.14s);
}

.footer-cta.is-visible .cta-word { transform: none; }

.cta-strong { font-weight: 700; }

.cta-under { position: relative; }

.cta-under::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.05em;
  height: 0.055em;
  border-radius: 99px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1) 0.9s;
}

.footer-cta.is-visible .cta-under::after { transform: scaleX(1); }

.cta-script {
  display: inline-block;
  padding: 0 0.12em;
  font-family: "Caveat Brush", "Segoe Script", cursive;
  font-weight: 400;
  font-size: 1.3em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-accent);
  transform: rotate(-2.5deg);
  clip-path: inset(-15% 100% -15% 0);
  transition: clip-path 1.1s cubic-bezier(0.55, 0, 0.25, 1) 0.85s;
}

.footer-cta.is-visible .cta-script { clip-path: inset(-15% -6% -15% 0); }

.cta-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-text-soft);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 1.6s, transform 0.7s ease 1.6s;
}

.cta-sub em {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-cta.is-visible .cta-sub { opacity: 1; transform: none; }

.cta-action {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 1.8s, transform 0.7s ease 1.8s;
}

.footer-cta.is-visible .cta-action { opacity: 1; transform: none; }

.footer-cta .cta-action .btn { margin-top: 0; }

.cta-action::after {
  content: "";
  position: absolute;
  inset: -10px -18px;
  border: 2px solid #aab8f2;
  border-radius: 44px 38px 46px 36px / 34px 46px 38px 44px;
  opacity: 0;
  transform: rotate(-2deg) scale(0.92);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.cta-action:hover::after,
.cta-action:focus-within::after {
  opacity: 1;
  transform: rotate(-2deg) scale(1);
}

.cta-title::before,
.cta-title::after {
  content: "";
  position: absolute;
  width: clamp(4.5rem, 9vw, 7.5rem);
  aspect-ratio: 130 / 112;
  background: center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(3, 4, 94, 0.16));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.cta-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 130 112%22%3E%3Cpath d=%22M24 20 C44 6 92 6 106 24 C118 40 110 64 92 72 C80 77 68 77 60 76 L40 92 L42 74 C24 70 10 56 10 42 C10 32 15 26 24 20 Z%22 fill=%22%23fff%22 stroke=%22%23fff%22 stroke-width=%2216%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M24 20 C44 6 92 6 106 24 C118 40 110 64 92 72 C80 77 68 77 60 76 L40 92 L42 74 C24 70 10 56 10 42 C10 32 15 26 24 20 Z%22 fill=%22%23caf0f8%22 stroke=%22%23041233%22 stroke-width=%224%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2246%22 cy=%2244%22 r=%224.5%22 fill=%22%23041233%22/%3E%3Ccircle cx=%2276%22 cy=%2244%22 r=%224.5%22 fill=%22%23041233%22/%3E%3Cpath d=%22M44 58 C54 69 68 69 78 58%22 fill=%22none%22 stroke=%22%23041233%22 stroke-width=%224%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");
  left: -17%;
  top: 4%;
  transform: scale(0.2) rotate(-25deg);
  transition-delay: 1.4s;
}

.cta-title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 130 112%22%3E%3Cpath d=%22M10 56 L116 10 L78 96 L58 66 Z%22 fill=%22%23fff%22 stroke=%22%23fff%22 stroke-width=%2216%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M10 56 L116 10 L78 96 L58 66 Z%22 fill=%22%23fbb02d%22 stroke=%22%23041233%22 stroke-width=%224%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M58 66 L116 10%22 fill=%22none%22 stroke=%22%23041233%22 stroke-width=%224%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M58 66 L61 86%22 fill=%22none%22 stroke=%22%23041233%22 stroke-width=%224%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");
  right: -15%;
  bottom: 8%;
  transform: scale(0.2) rotate(25deg);
  transition-delay: 1.55s;
}

.footer-cta.is-visible .cta-title::before {
  opacity: 1;
  transform: scale(1) rotate(-9deg);
  animation: cta-wobble-a 1.4s steps(1, end) 2.4s infinite;
}

.footer-cta.is-visible .cta-title::after {
  opacity: 1;
  transform: scale(1) rotate(10deg);
  animation: cta-wobble-b 1.4s steps(1, end) 2.6s infinite;
}

@keyframes cta-wobble-a {
  0% { transform: scale(1) rotate(-9deg); }
  50% { transform: scale(1) rotate(-5deg) translateY(-3px); }
}

@keyframes cta-wobble-b {
  0% { transform: scale(1) rotate(10deg); }
  50% { transform: scale(1) rotate(6deg) translateY(-3px); }
}

@media (max-width: 720px) {
  .cta-title::before,
  .cta-title::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta .wrapper::before,
  .cta-word,
  .cta-under::after,
  .cta-script,
  .cta-sub,
  .cta-action,
  .cta-title::before,
  .cta-title::after {
    transition: none;
    animation: none;
  }
}

/* ==========================================================================
   My approach / process (About page)
   ========================================================================== */

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.approach-list li {
  padding-left: 1.75rem;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.approach-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.research-themes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
  row-gap: 1rem;
}

.research-themes-list li { font-size: 15px; }

@media (max-width: 600px) {
  .research-themes-list { grid-template-columns: 1fr; }
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.process-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
}

.process-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-accent);
}

.process-step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--color-text-soft); max-width: 60ch; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { max-width: 70ch; }

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-text);
  transition: transform 0.25s ease;
}

.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }

.faq-item.is-open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer p {
  padding-bottom: 1.4rem;
  color: var(--color-text-soft);
  max-width: 65ch;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.result-stat {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.result-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--color-accent);
  font-weight: 600;
}

.result-stat .stat-label {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Before / after comparison slider
   ========================================================================== */

.ba-slider { margin-top: 1.5rem; }

.ba-slider-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: ew-resize;
  user-select: none;
}

.ba-slider-frame .placeholder-image,
.ba-slider-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin-top: 0;
  border: none;
  border-radius: 0;
  object-fit: cover;
}

.ba-img-after,
.ba-img-before { position: absolute; inset: 0; }

.ba-img-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-img-before .placeholder-image {
  background:
    repeating-linear-gradient(
      135deg,
      var(--color-surface-2),
      var(--color-surface-2) 10px,
      #dfe4f5 10px,
      #dfe4f5 20px
    );
}

.ba-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(4, 18, 51, 0.15);
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(3, 4, 94, 0.35);
}

.ba-slider-handle svg { width: 18px; height: 18px; color: var(--color-navy); }

.ba-slider-tag {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-navy);
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; background: var(--color-accent); }

.ba-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
}

.ba-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 42px;
  height: 42px;
}

.ba-slider-input::-moz-range-thumb {
  width: 42px;
  height: 42px;
  border: none;
  opacity: 0;
}

.ba-slider-caption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  text-align: center;
}

/* ==========================================================================
   Real case-study images, galleries & callouts
   ========================================================================== */

.case-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: block;
}

.case-img {
  width: 100%;
  display: block;
  margin-top: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.improvements-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.context-row { display: flex; gap: 24px; }
.context-image { width: 252px; flex-shrink: 0; align-self: stretch; }
.research-scope-image { width: 220px; flex-shrink: 0; align-self: stretch; }

@media (max-width: 720px) {
  .context-row { flex-direction: column; }
  .context-image { width: 100%; aspect-ratio: 4 / 3; align-self: auto; }
  .spec-box.spec-box-media { flex-direction: column; }
  .research-scope-image { width: 100%; aspect-ratio: 4 / 3; align-self: auto; }
}

.before-after-compare {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
}

.before-after-compare-item { text-align: center; width: 160px; }
.before-after-compare-item img { width: 100%; display: block; }

.before-after-compare-label {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

@media (max-width: 720px) {
  .improvements-layout { flex-direction: column; }
  .before-after-compare { flex-direction: column; align-items: center; width: 100%; }
  .before-after-compare-item { width: 220px; max-width: 100%; }
}

.device-compare {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 1rem 1rem;
}

.device-compare-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(1);
  transform-origin: bottom center;
  transition: transform 0.35s ease;
}

.device-compare-item img {
  width: 190px;
  max-width: 100%;
  display: block;
}

.device-compare-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  transition: color 0.35s ease;
}

.device-compare-item.is-active {
  transform: scale(1.12);
  z-index: 1;
}

.device-compare-item.is-active .device-compare-label {
  color: var(--color-navy);
}

@media (max-width: 700px) {
  .device-compare { gap: 1rem; }
  .device-compare-item img { width: 120px; }
}

.img-caption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 720px) {
  .gallery-grid,
  .gallery-grid.cols-3 { grid-template-columns: 1fr; }
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.scroll-gallery {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-gallery .gallery-item {
  flex: 0 0 clamp(220px, 32vw, 280px);
  scroll-snap-align: start;
}

.scroll-gallery img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--color-border); }

/* Step icons */

.step-icon {
  display: inline-flex;
  vertical-align: -5px;
  margin-right: 0.5rem;
  color: var(--color-accent);
}

.step-icon svg { width: 19px; height: 19px; }

/* Highlight / narrative callout card */

.callout-card {
  background: linear-gradient(135deg, var(--color-navy), #0a1660 65%, #170a5e);
  color: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: 1.5rem;
}

.callout-card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.callout-card .icon-circle svg { width: 24px; height: 24px; color: var(--color-highlight); }

.callout-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  max-width: 32ch;
}

.callout-card p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 68ch;
}

.callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.callout-badge svg { width: 16px; height: 16px; color: var(--color-cta); flex-shrink: 0; }

.case-block-wide.on-surface {
  background: var(--color-surface-2);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3rem);
  border-bottom: none;
  /* Keep the filled block clear of the dividers around it */
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

/* ==========================================================================
   Case study v2 — numbered sections, highlight cards, spec grids, decisions
   ========================================================================== */

.section-number {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}

.section-number .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.section-number .rule {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  max-width: 80px;
}

/* Highlights row — 4-up colored stat/meta cards */
.highlights-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.highlight-card {
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.highlight-card:nth-child(4n+1) { background: var(--color-surface); }
.highlight-card:nth-child(4n+2) { background: var(--color-surface-2); }
.highlight-card:nth-child(4n+3) { background: var(--color-surface-3); }
.highlight-card:nth-child(4n+4) { background: var(--color-surface-4); }

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  flex-shrink: 0;
}

.highlight-card > .card-icon { margin-bottom: 0.375rem; }

.card-icon svg { width: 16px; height: 16px; }

.highlight-card .eyebrow { color: var(--color-navy); opacity: 0.7; }
.highlight-card .value { font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; line-height: 1.4; }
.highlight-card .stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--color-navy); }
.highlight-card .stat-label { font-weight: 700; font-size: 0.95rem; }
.highlight-card .stat-desc { font-size: 0.85rem; color: var(--color-text-soft); line-height: 1.5; }

.highlights-row.cols-5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.highlights-row.stats { grid-template-columns: repeat(2, 1fr); }

.highlights-row.stats .highlight-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
}

.highlights-row.stats .highlight-card > .card-icon { margin-bottom: 0; margin-top: 0.1rem; }

.highlights-row.stats .highlight-card > div { display: flex; flex-direction: column; gap: 0.375rem; }

@media (max-width: 720px) {
  .highlights-row { grid-template-columns: 1fr 1fr; }
  .highlights-row.stats { grid-template-columns: 1fr; }
}

/* Split block — text column + photo that extends into the gutter */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.split-block img {
  width: 100%;
  aspect-ratio: 4 / 3.9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

@media (max-width: 720px) {
  .split-block { grid-template-columns: 1fr; }
}

/* Split block where the image runs the full height of the text column.
   The caption sits at the bottom, level with the last line of the text. */
.split-block.fill-image { align-items: stretch; }

.split-block.fill-image .fill-image-col {
  display: flex;
  flex-direction: column;
}

.split-block.fill-image .fill-image-col img {
  flex: 1 1 0;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

@media (max-width: 720px) {
  .split-block.fill-image .fill-image-col img { flex: none; aspect-ratio: 4 / 3.9; }
}

/* Spec grid — pain points / requirements / stakeholder priority cards */
.spec-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.spec-column { display: flex; flex-direction: column; gap: 0.85rem; }

.spec-arrows {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  gap: 0.85rem;
  color: var(--color-accent);
}

.spec-arrows svg { width: 24px; height: 16px; }

.spec-box {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.75rem;
  min-height: 150px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.spec-box .card-icon { margin-top: -0.3rem; background: var(--color-surface-2); }

.spec-box-content { display: flex; flex-direction: column; gap: 0.5rem; }

.spec-box-content p + p { margin-top: 0; }

.spec-box .eyebrow { font-size: 0.72rem; }
.spec-box-content > p:not(.eyebrow) { font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; line-height: 1.5; }

.spec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.spec-grid-3 .spec-box {
  min-height: 115px;
  border: none;
  background: var(--color-surface-2);
}

.spec-grid-3 .spec-box .card-icon { background: rgba(255, 255, 255, 0.6); }

@media (max-width: 720px) {
  .spec-columns { grid-template-columns: 1fr; }
  .spec-arrows { flex-direction: row; height: auto; padding: 0.25rem 0; }
  .spec-arrows svg { transform: rotate(90deg); }
  .spec-grid-3 { grid-template-columns: 1fr; }
}

/* Spec columns — equalized row variant: constraint/approach pairs (flattened,
   per-row grid children) stretch to match the taller card in their row on
   desktop, then hug their own content once stacked into one column. */
.spec-columns.equalized {
  align-items: stretch;
  row-gap: 1rem;
}

.spec-columns.equalized .spec-box { min-height: 0; height: 100%; }

.spec-columns.equalized .spec-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.spec-columns.equalized .spec-arrow svg { width: 24px; height: 16px; }

@media (max-width: 720px) {
  .spec-columns.equalized { row-gap: 1.5rem; }
  .spec-columns.equalized .spec-box { height: auto; }
  .spec-columns.equalized .spec-arrow { transform: rotate(90deg); padding: 0.25rem 0; }
}

/* Process timeline — connected step nodes, 3 columns / 2 rows on desktop,
   collapsing to a single vertical timeline on mobile. */
.process-timeline { margin-top: 2rem; }

.process-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.process-row + .process-row { margin-top: 2.75rem; }

.process-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--color-accent);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(2, 62, 186, 0.25);
}

.process-icon {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  color: var(--color-navy);
}

.process-icon svg { width: 28px; height: 28px; }

.process-title {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.process-desc {
  margin-top: 0.5rem;
  color: var(--color-text-soft);
  font-size: 0.92rem;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .process-row { grid-template-columns: 1fr; gap: 0; }
  .process-row + .process-row { margin-top: 0; }
  .process-row::before { display: none; }

  .timeline-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1.1rem;
    text-align: left;
    padding-bottom: 2rem;
  }

  .timeline-step::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: var(--color-accent);
  }

  .timeline-step.is-last::before { display: none; }

  .process-node { grid-row: 1; grid-column: 1; }

  .process-icon {
    grid-row: 1;
    grid-column: 2;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0;
  }

  .process-title { grid-column: 2; margin-top: 0.5rem; }

  .process-desc {
    grid-column: 2;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

/* Requirement detail grid (Adaptability, Versatility, etc.) */
.requirement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 1rem;
}

.requirement-item h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }
.requirement-item ul { list-style: none; color: var(--color-text-soft); }
.requirement-item li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}
.requirement-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (max-width: 720px) {
  .requirement-grid { grid-template-columns: 1fr; }
}

/* Bulletpoints — icon + text row (used in Starting point / Solution) */
.bulletpoint-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.bulletpoint-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.bulletpoint-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.bulletpoint-icon svg { width: 14px; height: 14px; }

/* In cards with multi-line bullets, line the check up with the first line of text */
.persona-card .bulletpoint-item { align-items: flex-start; }
.persona-card .bulletpoint-icon { margin-top: -0.2rem; }
.persona-card .bulletpoint-item p { margin-top: 0; }

.bulletpoint-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.bulletpoint-item p { font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; line-height: 1.5; }

/* Illustration images float without a card border */
img.illustration,
.case-img.illustration {
  border: none;
  border-radius: 0;
  background: none;
}

/* Expand/collapse disclosure block */
.details-block {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: var(--color-surface-2);
}

.details-block summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.details-block summary::-webkit-details-marker { display: none; }

.details-block summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-navy);
}

.details-block[open] summary::after { content: "\2212"; }

.details-block[open] summary { margin-bottom: 0.25rem; }

.details-block .case-img { margin-top: 1rem; }

/* Decision v2 — numbered problem/change/impact blocks with a diagram column */
.decision-v2 + .decision-v2 {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.decision-v2 > .gallery-grid {
  margin-top: 2.5rem !important;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.decision-v2-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.decision-v2-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.decision-v2-header h3 { font-size: 1.2rem; }

.decision-v2-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

.decision-v2-text .decision-label { margin-top: 1rem; }
.decision-v2-text .decision-label:first-child { margin-top: 0; }

.decision-v2-media img,
.decision-v2-media .case-img { border-radius: 16px; }

.before-after-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.before-after-row.cols-2 { grid-template-columns: repeat(2, 1fr); }

.before-after-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.before-after-row > div { text-align: center; }

.before-after-row h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.before-after-row p { font-size: 0.85rem; color: var(--color-text-soft); }

@media (max-width: 720px) {
  .decision-v2-body { grid-template-columns: 1fr; }
  .before-after-row,
  .before-after-row.cols-2 { grid-template-columns: 1fr; }
}

/* Results — key takeaway box paired with an illustration */
.conclusion-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.conclusion-block img { width: 100%; }

@media (max-width: 720px) {
  .conclusion-block { grid-template-columns: 1fr; }
  .conclusion-block img { order: -1; max-width: 260px; margin: 0 auto; }
}

/* Relevant documentation — video + prototype thumbnail gallery */
.doc-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.media-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-frame img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.doc-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.doc-play-overlay svg { width: 26px; height: 26px; margin-left: 3px; }

@media (max-width: 720px) {
  .doc-gallery { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Case study v3 — wide hero row, nav title, tabbed decisions
   ========================================================================== */

.case-nav { position: relative; }

.case-nav-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-navy);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .case-nav-title { display: none; }
}

.case-hero-wide {
  max-width: 1072px;
  margin: 0 auto;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-row .case-hero {
  padding: 0;
  border-bottom: none;
}

.hero-row .case-hero h1 { max-width: none; }

.hero-cover-image img {
  width: 100%;
  aspect-ratio: 524 / 575;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.case-hero-wide .highlights-row {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-cover-image { order: -1; }
}

/* Tab bar — segmented navy control for the decisions section */
.tab-bar {
  display: flex;
  background: var(--color-navy);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  margin: 1.75rem 0 2.5rem;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.tab-btn.active {
  background: #fff;
  color: var(--color-text);
}

.tab-btn:not(.active):hover { background: rgba(255, 255, 255, 0.12); }

.tab-panel[hidden] { display: none; }

@media (max-width: 720px) {
  .tab-bar { flex-direction: column; border-radius: 20px; }
  .tab-btn { border-radius: 16px; justify-content: flex-start; padding: 0.75rem 1rem; }
}

/* Carousel — two-slide content switcher with prev/next arrows */
.carousel { position: relative; }

.carousel-slide[hidden] { display: none; }

.carousel-image-wrap { position: relative; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-btn:hover { background: var(--color-surface-2); }

.carousel-btn svg { width: 20px; height: 20px; }

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

@media (max-width: 900px) {
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* ==========================================================================
   Persona profile — photo, traits, frustrations, fear bars and need rings
   ========================================================================== */

.persona-profile {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.pp-photo {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.pp-name {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-navy);
}

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pp-tags span {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
}

.pp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-soft);
}

.pp-facts strong { color: var(--color-text); font-weight: 700; }

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

.pp-about p:not(.eyebrow) {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.pp-block + .pp-block { margin-top: 1.75rem; }

.pp-block > .eyebrow { margin-bottom: 0.75rem; }

.pp-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pp-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.pp-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pp-block-head .eyebrow { margin: 0; }

.pp-block > .pp-block-head { margin-bottom: 0.75rem; }

.pp-bars { display: flex; flex-direction: column; gap: 0.95rem; }

.pp-bar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.case-block-wide .pp-bar-top p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.pp-bar-top .pp-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.pp-track {
  height: 8px;
  border-radius: 999px;
  background: var(--color-surface-2);
  overflow: hidden;
}

.pp-track span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: var(--color-accent);
}

.pp-needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.pp-need {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text);
}

.pp-need .pp-need-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-need .pp-need-icon svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .persona-profile { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pp-needs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Citations — superscript numbers that jump to the sources list
   ========================================================================== */

a.cite {
  font-size: 0.7em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.15em;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0;
}

a.cite:hover { text-decoration: underline; }

.sources-list {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

.sources-list li {
  padding: 0.35rem 0.6rem;
  margin-left: -0.6rem;
  border-radius: 8px;
  transition: background 0.4s ease;
}

.sources-list li::marker { font-weight: 700; color: var(--color-accent); }

.sources-list li.is-active {
  background: var(--color-surface-2);
  color: var(--color-text);
  font-weight: 700;
}

.sources-list li.is-active .src-group { font-weight: 700; }

.sources-list a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

.sources-list .src-group {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
}

/* Back to reading — floating pill shown after jumping to a source */
.back-to-reading {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(3, 4, 94, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-reading svg { width: 16px; height: 16px; flex-shrink: 0; }

.back-to-reading.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-reading:hover { background: var(--color-accent); }

.back-to-reading:focus-visible { outline: 3px solid var(--color-cta); outline-offset: 2px; }

/* Decision v2, stacked variant: three text columns above a full-width image */
.decision-v2-body.is-stacked {
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.is-stacked .decision-v2-text {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .is-stacked .decision-v2-text { grid-template-columns: 1fr; gap: 1rem; }
}

/* ==========================================================================
   Design process phase navigation (sticky) + phase tags
   ========================================================================== */

.phase-nav {
  position: sticky;
  top: var(--header-h, 76px);
  z-index: 90;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.phase-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.phase-nav ol::-webkit-scrollbar { display: none; }

.phase-nav li { flex: 1 0 auto; }

.phase-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-soft);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.phase-nav a:hover { color: var(--color-navy); }

.phase-nav .pn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-navy);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.phase-nav a.is-active {
  color: var(--color-navy);
  border-bottom-color: var(--color-accent);
}

.phase-nav a.is-active .pn {
  background: var(--color-accent);
  color: #fff;
}

.case-content-wrap [id^="phase-"] {
  scroll-margin-top: calc(var(--header-h, 76px) + 64px);
}

/* ==========================================================================
   Side-by-side prototype comparison
   ========================================================================== */

.compare-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.compare-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.compare-col h3 { font-size: 1.15rem; line-height: 1.3; }

.compare-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.compare-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.compare-thumbs figure { margin: 0; }

.compare-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.compare-thumbs figcaption {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.compare-text { display: flex; flex-direction: column; gap: 0.9rem; }

@media (max-width: 800px) {
  .compare-cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Usage: click-to-play video + numbered steps
   ========================================================================== */

.usage-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.75rem;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}

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

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.video-play:hover img { transform: scale(1.03); }

.video-play-icon {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(3, 4, 94, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-play-icon svg { width: 22px; height: 22px; margin-left: 2px; }

.video-play:hover .video-play-icon {
  background: var(--color-accent);
  transform: scale(1.08);
}

.video-play:focus-visible { outline: 3px solid var(--color-cta); outline-offset: -3px; }

.video-note {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-navy);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.steps-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-block-wide .steps-list .step-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.case-block-wide .steps-list .step-desc {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-soft);
}

@media (max-width: 800px) {
  .usage-split { grid-template-columns: 1fr; }
}

/* Compact variants */
.requirement-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.requirement-grid.cols-3 .requirement-item h3 { font-size: 1.05rem; }
.requirement-grid.cols-3 .requirement-item li { font-size: 0.9rem; line-height: 1.45; }

.bulletpoint-list.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}

@media (max-width: 900px) {
  .requirement-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .requirement-grid.cols-3,
  .bulletpoint-list.cols-2 { grid-template-columns: 1fr; }
}

.compare-main { aspect-ratio: 16 / 10; }
.compare-thumbs img { aspect-ratio: 16 / 10; }

/* ==========================================================================
   Concept map: image in the center, principles around it
   ========================================================================== */

.concept-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.concept-lines { display: none; }

.concept-center {
  grid-column: 1 / -1;
  justify-self: center;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border), 0 10px 30px rgba(3, 4, 94, 0.15);
}

.concept-center img { width: 100%; height: 100%; object-fit: cover; display: block; }

.concept-node h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  transition: color 0.2s ease;
}

.case-block-wide .concept-node p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

.concept-quote { grid-column: 1 / -1; text-align: center; }

.case-block-wide .concept-quote p { margin: 0.3rem auto 0; max-width: 52ch; font-size: 0.875rem; color: var(--color-text-soft); }

.case-block-wide .concept-quote .concept-quote-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-accent);
}

.concept-node:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 6px; }

@media (min-width: 861px) {
  .concept-map {
    position: relative;
    display: grid;
    grid-template-columns: 33.77% 32.46% 33.77%;
    grid-template-rows: 18.5% 21% 21% 21% 18.5%;
    aspect-ratio: 770 / 595;
    gap: 0;
  }

  .concept-lines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }

  .concept-lines line {
    stroke: var(--color-accent);
    stroke-opacity: 0.45;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    transition: stroke-opacity 0.25s ease, stroke-width 0.25s ease;
  }

  .concept-lines line.is-on { stroke-opacity: 1; stroke-width: 2.5; }

  .concept-center {
    position: absolute;
    left: 50%;
    top: 49.9%;
    width: 28.6%;
    transform: translate(-50%, -50%);
    grid-column: auto;
  }

  .concept-node { position: relative; align-self: center; padding: 0 1.1rem; cursor: default; }

  .concept-node::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    transition: transform 0.25s ease;
  }

  .concept-node.is-on h4 { color: var(--color-accent); }
  .concept-node.is-on::after { transform: scale(1.5); }

  .n-ergonomics { grid-column: 2; grid-row: 1; text-align: center; align-self: stretch; padding-top: 0; }
  .n-ergonomics::after { left: 50%; bottom: -4px; margin-left: -4.5px; }

  .n-perceptuality, .n-materials, .n-aesthetics { grid-column: 1; text-align: left; padding-left: 0; }
  .n-perceptuality::after, .n-materials::after, .n-aesthetics::after { right: -4.5px; top: 50%; margin-top: -4.5px; }
  .n-perceptuality { grid-row: 2; }
  .n-materials { grid-row: 3; }
  .n-aesthetics { grid-row: 4; }

  .n-functions, .n-portable, .n-experience { grid-column: 3; padding-right: 0; }
  .n-functions::after, .n-portable::after, .n-experience::after { left: -4.5px; top: 50%; margin-top: -4.5px; }
  .n-functions { grid-row: 2; }
  .n-portable { grid-row: 3; }
  .n-experience { grid-row: 4; }

  .concept-quote { grid-column: 1 / -1; grid-row: 5; align-self: end; }
}

/* ==========================================================================
   Phase colors: dividers and the phase nav share one code
   ========================================================================== */

[data-phase="empathize"] { --phase-color: var(--color-surface); }
[data-phase="define"] { --phase-color: var(--color-surface-2); }
[data-phase="ideate"] { --phase-color: var(--color-surface-3); }
[data-phase="prototype"] { --phase-color: var(--color-surface-4); }
[data-phase="test"] { --phase-color: var(--color-surface-5); }

.phase-divider {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  text-align: center;
}

.phase-divider-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.phase-divider-row::before,
.phase-divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.phase-divider-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: var(--phase-color);
  box-shadow: inset 0 0 0 1px rgba(3, 4, 94, 0.06);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-navy);
}

.phase-divider-pill .pd-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.phase-divider p {
  margin: 0.75rem auto 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  color: var(--color-text-soft);
}

.phase-nav a[data-phase-link="empathize"] .pn { background: var(--color-surface); }
.phase-nav a[data-phase-link="define"] .pn { background: var(--color-surface-2); }
.phase-nav a[data-phase-link="ideate"] .pn { background: var(--color-surface-3); }
.phase-nav a[data-phase-link="prototype"] .pn { background: var(--color-surface-4); }
.phase-nav a[data-phase-link="test"] .pn { background: var(--color-surface-5); }

.phase-nav a.is-active .pn {
  color: var(--color-navy);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* The divider draws its own rules, so drop the border of the section right before it */
.case-content-wrap section:has(+ .phase-divider) { border-bottom: none; }

/* Zoomable images: hover lift + click-to-enlarge lightbox */
img.is-zoomable {
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
img.is-zoomable:hover,
img.is-zoomable:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 40px rgba(3, 4, 94, 0.18);
}
img.is-zoomable:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 1.5rem;
  background: rgba(4, 18, 51, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(96vw, 1600px);
  max-height: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: default;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--color-surface-2); }
body.lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  img.is-zoomable, .lightbox, .lightbox-img { transition: none; }
  img.is-zoomable:hover { transform: none; }
}

/* Approach list set in body type (same size and weight as paragraphs) */
.approach-list.is-body li {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
}

/* Section 06 refinements */
.case-block-wide .concept-node p strong,
.case-block-wide .yardstick-note strong { color: inherit; font-weight: 700; }
.bulletpoint-list.cols-2.by-column {
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
}
@media (max-width: 600px) {
  .bulletpoint-list.cols-2.by-column { grid-auto-flow: row; grid-template-rows: none; }
}

/* ==========================================================================
   About intro
   ========================================================================== */

.about-intro {
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.about-intro > :first-child { container-type: inline-size; }

@media (max-width: 720px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); }
}

.about-intro h1 {
  font-size: min(5rem, 12.8cqw);
  max-width: none;
  margin-top: 0.75rem;
  white-space: nowrap;
}

.about-tagline {
  margin-top: 1.25rem;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: var(--color-text-soft);
}

.about-intro p:not(.eyebrow):not(.about-tagline) { margin-top: 1.25rem; max-width: 52ch; }

/* ==========================================================================
   Experience list (one gliding pill + expand/collapse)
   ========================================================================== */

.exp-list {
  --exp-bleed: clamp(0.5rem, calc(var(--gutter) - 0.75rem), 2.5rem);
  position: relative;
  isolation: isolate;
  margin-top: 3.5rem;
}

.exp-list::after,
.exp-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.exp-list::after { bottom: 0; }

.exp-pill {
  position: absolute;
  top: 0;
  left: calc(var(--exp-bleed) * -1);
  right: calc(var(--exp-bleed) * -1);
  height: var(--pill-h, 0);
  border-radius: 2.75rem;
  background: var(--color-navy);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--pill-y, 0)) rotate(0deg) scale(1.02);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease;
}

.exp-pill.is-visible {
  opacity: 1;
  transform: translateY(var(--pill-y, 0)) rotate(var(--pill-tilt, 0deg)) scale(1);
}

.exp-pill.is-snap { transition: none; }

.exp-item {
  --tilt: -1deg;
  position: relative;
}

.exp-item::before { top: 0; }

.exp-item:nth-child(even) { --tilt: 1deg; }

.exp-row {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.exp-row:focus-visible { outline: none; }

.exp-row-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.exp-item.is-active .exp-row-inner { transform: rotate(var(--tilt)); }

.exp-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.exp-company {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  transition: color 0.3s ease;
}

.exp-dates {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-align: right;
  color: var(--color-text-soft);
  transition: color 0.3s ease;
}

.exp-item.is-active .exp-title { color: var(--color-cta); }
.exp-item.is-active .exp-company,
.exp-item.is-active .exp-dates { color: rgba(255, 255, 255, 0.85); }

.exp-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-text);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.exp-toggle::before,
.exp-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.25s ease, background 0.3s ease;
}

.exp-toggle::before { transform: translate(-50%, -50%); }
.exp-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.exp-item.is-open .exp-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.exp-item.is-active .exp-toggle { background: var(--color-cta); border-color: var(--color-cta); }
.exp-item.is-active .exp-toggle::before,
.exp-item.is-active .exp-toggle::after { background: var(--color-navy); }

.exp-card-clip {
  --card-w: clamp(11rem, 19vw, 16.5rem);
  position: absolute;
  z-index: 1;
  top: -11rem;
  bottom: 0.4rem;
  left: 54%;
  width: calc(var(--card-w) + 6rem);
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.exp-card {
  position: absolute;
  left: 50%;
  bottom: -2.5rem;
  width: var(--card-w);
  height: calc(var(--card-w) * 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 3.5rem;
  border-radius: 1.1rem;
  background: var(--card-bg, var(--color-surface));
  opacity: 0;
  transform: translate(-50%, 1.25rem) rotate(10deg);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.exp-item.is-hovered .exp-card {
  opacity: 1;
  transform: translate(-50%, 0) rotate(10deg);
}

.exp-item:nth-child(2) .exp-card { --card-bg: var(--color-surface-3); }
.exp-item:nth-child(3) .exp-card { --card-bg: var(--color-surface-4); }
.exp-item:nth-child(4) .exp-card { --card-bg: var(--color-surface-5); }

.exp-card.is-fill {
  padding: 0;
  overflow: hidden;
}

.exp-card.is-fill img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 80%;
}

.exp-card.is-top img { object-position: 50% 0; }

.exp-card img {
  max-width: 70%;
  max-height: 60%;
  object-fit: contain;
}

.exp-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s ease, visibility 0s linear 0.4s;
}

.exp-panel-inner { overflow: hidden; }

.exp-item.is-open .exp-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s ease, visibility 0s;
}

.exp-bullets {
  column-count: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
  padding: 2.25rem 0 1.75rem;
}

.exp-bullets li {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-soft);
}

.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.exp-bullets strong {
  color: var(--color-text);
  font-weight: 700;
}

.exp-bullets li.col-end { break-after: column; }

@media (max-width: 720px) {
  .exp-list { --exp-bleed: 1rem; }

  .exp-row {
    width: calc(100% + 2rem);
    margin: 0 -1rem;
  }

  .exp-row-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
    padding: 1.4rem 1rem;
  }

  .exp-pill { border-radius: 1.75rem; }
  .exp-dates { grid-column: 1; grid-row: 2; text-align: left; }
  .exp-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .exp-card-clip { display: none; }
  .exp-bullets { column-count: 1; padding-top: 1.75rem; }
  .exp-bullets li.col-end { break-after: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .exp-pill,
  .exp-row-inner,
  .exp-card,
  .exp-panel,
  .exp-toggle::before,
  .exp-toggle::after { transition: none; }
}

/* ==========================================================================
   FAQ post-it notes (draggable)
   ========================================================================== */

.faq-section { overflow: hidden; }

.faq-board {
  position: relative;
  min-height: 42rem;
}

.faq-board.reveal { opacity: 1; transform: none; }

.faq-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(5.5rem - 1px),
    var(--color-border) calc(5.5rem - 1px),
    var(--color-border) 5.5rem
  );
  -webkit-mask-image: repeating-linear-gradient(to right, #000 0 9px, transparent 9px 18px);
  mask-image: repeating-linear-gradient(to right, #000 0 9px, transparent 9px 18px);
}

.faq-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 2.75rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem 9rem;
}

.faq-note {
  --r: -2.4deg;
  --note: var(--color-surface);
  position: relative;
  padding: 2.9rem 1.7rem 2rem;
  border-radius: 0.5rem;
  background: var(--note);
  box-shadow: 0 16px 26px -6px rgba(3, 4, 94, 0.18), 0 2px 5px rgba(3, 4, 94, 0.06);
  translate: var(--x, 0px) var(--y, 0px);
  rotate: var(--r);
  scale: var(--s, 1);
  cursor: grab;
  opacity: 0;
  transition: rotate 0.3s ease, scale 0.3s ease, box-shadow 0.3s ease;
}

.faq-note:nth-child(1) { --r: -2.4deg; --note: var(--color-surface); margin-top: 1.5rem; }
.faq-note:nth-child(2) { --r: 1.8deg; --note: var(--color-surface-4); margin-top: 5rem; }
.faq-note:nth-child(3) { --r: -1.6deg; --note: var(--color-surface-5); margin-top: 0; }
.faq-note:nth-child(4) { --r: 2.4deg; --note: var(--color-surface-3); margin-top: 3.5rem; }

.faq-board.is-visible .faq-note {
  animation: faq-drop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
  animation-delay: calc(var(--n, 0) * 0.14s);
}

@keyframes faq-drop {
  from { opacity: 0; transform: translateY(-2.5rem) rotate(-5deg) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.faq-note:hover {
  --s: 1.015;
  box-shadow: 0 22px 34px -8px rgba(3, 4, 94, 0.24), 0 3px 6px rgba(3, 4, 94, 0.07);
}

.faq-note.is-dragging {
  rotate: 0deg;
  scale: 1.05;
  cursor: grabbing;
  user-select: none;
  box-shadow: 0 28px 48px rgba(3, 4, 94, 0.2), 0 6px 12px rgba(3, 4, 94, 0.1);
}

.faq-pin {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -1.375rem;
  rotate: -10deg;
  touch-action: none;
  transition: rotate 0.25s ease;
}

.faq-note:hover .faq-pin,
.faq-note.is-dragging .faq-pin { rotate: 6deg; }

.faq-pin::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0.35rem;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.625rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8) 0 13%, var(--pin) 14% 100%);
  box-shadow: 0 3px 6px rgba(3, 4, 94, 0.28);
}

.faq-pin::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 50%;
  width: 2px;
  height: 0.95rem;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(#aab3cf, #6c7799);
  transform: rotate(16deg);
  transform-origin: top;
}

.faq-num {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  opacity: 0.65;
}

.faq-note h3 {
  margin-bottom: 0.8rem;
  font-size: 1.28rem;
  line-height: 1.2;
}

.faq-note p:not(.faq-num) {
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.85;
}

.faq-note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 1.5rem;
    padding-bottom: 7rem;
  }

  .faq-note:nth-child(n) { margin-top: 0; }
  .faq-note:nth-child(even) { margin-top: 2.5rem; }
}

@media (max-width: 620px) {
  .faq-board { min-height: 0; }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3rem var(--gutter) 5rem;
  }

  .faq-note:nth-child(n) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-note { opacity: 1; transition: none; }
  .faq-board.is-visible .faq-note { animation: none; }
  .faq-pin { transition: none; }
}

/* ==========================================================================
   Skills marquees
   ========================================================================== */

.skills-stage {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #f5f7fc;
}

.marquee {
  padding: 0.9rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--duration, 40s) linear infinite;
}

.marquee.reverse .marquee-track { animation-direction: reverse; }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  to { transform: translateX(calc(var(--shift, 50%) * -1)); }
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.tool-tile {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 10px 22px -8px rgba(3, 4, 94, 0.18), 0 1px 3px rgba(3, 4, 94, 0.06);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s ease;
}

.tool-tile img {
  width: 2.9rem;
  height: 2.9rem;
  object-fit: contain;
}

.tool-tile:hover {
  transform: translateY(-6px) rotate(-4deg) scale(1.06);
  box-shadow: 0 18px 28px -10px rgba(3, 4, 94, 0.28), 0 1px 3px rgba(3, 4, 94, 0.06);
}

.skill-pill {
  flex-shrink: 0;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--pill, var(--color-surface));
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.skill-pill:nth-child(5n + 1) { --pill: var(--color-surface); }
.skill-pill:nth-child(5n + 2) { --pill: var(--color-surface-2); }
.skill-pill:nth-child(5n + 3) { --pill: var(--color-surface-3); }
.skill-pill:nth-child(5n + 4) { --pill: var(--color-surface-4); }
.skill-pill:nth-child(5n + 5) { --pill: var(--color-surface-5); }

.skill-pill[data-c="0"] { --pill: var(--color-surface); }
.skill-pill[data-c="1"] { --pill: var(--color-surface-2); }
.skill-pill[data-c="2"] { --pill: var(--color-surface-3); }
.skill-pill[data-c="3"] { --pill: var(--color-surface-4); }
.skill-pill[data-c="4"] { --pill: var(--color-surface-5); }

.skill-pill:hover { transform: translateY(-4px) rotate(2deg) scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }

  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .marquee-group[data-clone] { display: none; }
}

/* About intro entrance */
.about-intro > :first-child > * {
  animation: intro-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.about-intro > :first-child > :nth-child(1) { animation-delay: 0.05s; }
.about-intro > :first-child > :nth-child(2) { animation-delay: 0.2s; }
.about-intro > :first-child > :nth-child(3) { animation-delay: 0.42s; }
.about-intro > :first-child > :nth-child(4) { animation-delay: 0.6s; }
.about-intro > :first-child > :nth-child(5) { animation-delay: 0.75s; }

.about-intro .about-photo {
  animation: intro-photo 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}

.about-intro .about-photo img {
  animation: intro-photo-img 1.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both;
}

.about-intro h1 .smile {
  display: inline-block;
  margin-left: 0.05em;
  color: var(--color-accent);
  animation:
    smile-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both,
    smile-wiggle 4s ease-in-out 2.2s infinite;
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-photo {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.97); clip-path: inset(8% 0 0 0 round 24px); }
  to { opacity: 1; transform: none; clip-path: inset(0 round 24px); }
}

@keyframes intro-photo-img {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes smile-pop {
  from { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes smile-wiggle {
  0%, 86%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-12deg) translateY(-2px); }
  95% { transform: rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .about-intro > :first-child > *,
  .about-intro .about-photo,
  .about-intro .about-photo img,
  .about-intro h1 .smile { animation: none; }
}

/* Click-to-stick stickers on the footer CTA */
.footer-cta { cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cpath d=%22M16 3 C17 12 20 15 29 16 C20 17 17 20 16 29 C15 20 12 17 3 16 C12 15 15 12 16 3 Z%22 fill=%22%23fbb02d%22 stroke=%22%23041233%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") 16 16, pointer; }
.footer-cta a,
.footer-cta button { cursor: pointer; }

.cta-sticker {
  position: absolute;
  z-index: 3;
  width: clamp(4.5rem, 9vw, 6.5rem);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1));
  filter: drop-shadow(0 6px 10px rgba(3, 4, 94, 0.2));
  animation: sticker-stamp 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) both;
}

.cta-sticker svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes sticker-stamp {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) - 35deg)) scale(0); }
  55% { opacity: 1; }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-sticker { animation: none; }
}

/* ==========================================================================
   Contact: note form
   ========================================================================== */

.contact-hero { padding-bottom: clamp(1rem, 4vw, 2rem); }

.contact-board {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 6rem;
}

.contact-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(5.5rem - 1px),
    var(--color-border) calc(5.5rem - 1px),
    var(--color-border) 5.5rem
  );
  -webkit-mask-image: repeating-linear-gradient(to right, #000 0 9px, transparent 9px 18px);
  mask-image: repeating-linear-gradient(to right, #000 0 9px, transparent 9px 18px);
}

.contact-board .wrapper { position: relative; z-index: 1; }

.contact-note,
.contact-thanks {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.2rem 2.4rem 2.4rem;
  border-radius: 0.5rem;
  box-shadow: 0 18px 30px -8px rgba(3, 4, 94, 0.2), 0 2px 5px rgba(3, 4, 94, 0.07);
}

.note-stage {
  display: grid;
  align-items: center;
}

.note-stage > * { width: 100%; }

.contact-note {
  background: var(--color-surface-3);
  rotate: -1deg;
}

.contact-thanks {
  background: var(--color-surface-4);
  rotate: 1deg;
  text-align: center;
}

.contact-thanks[hidden] { display: none; }

.contact-thanks h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  outline: none;
}

.contact-thanks p { margin: 0.9rem auto 1.6rem; max-width: 30rem; }

.note-field { display: block; margin-top: 1.5rem; }

.note-field:first-of-type { margin-top: 0; }

.note-field > span,
.note-topics legend {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.note-field input,
.note-field textarea {
  display: block;
  width: 100%;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 2px dashed rgba(4, 18, 51, 0.28);
  border-radius: 0;
  background: transparent;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-navy);
  outline: none;
  transition: border-color 0.2s ease;
}

.note-field textarea {
  resize: none;
  line-height: 2.3rem;
  background-image: repeating-linear-gradient(
    transparent 0,
    transparent calc(2.3rem - 2px),
    rgba(4, 18, 51, 0.18) calc(2.3rem - 2px),
    rgba(4, 18, 51, 0.18) 2.3rem
  );
  background-attachment: local;
  border-bottom: 0;
}

.note-field input::placeholder,
.note-field textarea::placeholder { color: rgba(4, 18, 51, 0.35); }

.note-field input:focus { border-bottom-style: solid; border-bottom-color: var(--color-accent); }

.note-field.has-error input,
.note-field.has-error textarea { border-bottom-color: #d94d5f; }

.note-field.has-error { animation: note-shake 0.4s ease; }

@keyframes note-shake {
  20% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  80% { transform: translateX(-3px); }
}

.note-topics {
  margin: 1.7rem 0 0;
  padding: 0;
  border: 0;
}

.topic {
  position: relative;
  display: inline-block;
  margin: 0.5rem 0.55rem 0.2rem 0;
}

.topic input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.topic span {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--c);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  rotate: var(--tilt, 0deg);
  box-shadow: 0 0 0 2px transparent;
  transition: rotate 0.25s ease, translate 0.25s ease, box-shadow 0.2s ease;
}

.topic:hover span { translate: 0 -2px; }

.topic input:checked + span {
  rotate: 0deg;
  translate: 0 -3px;
  box-shadow: 0 0 0 2px var(--color-navy), 0 8px 14px -6px rgba(3, 4, 94, 0.3);
}

.topic input:focus-visible + span { box-shadow: 0 0 0 2px var(--color-accent); }

.topic::after {
  content: "";
  position: absolute;
  top: -0.35rem;
  right: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8) 0 14%, var(--pin) 15% 100%);
  box-shadow: 0 2px 4px rgba(3, 4, 94, 0.3);
  scale: 0;
  transition: scale 0.3s cubic-bezier(0.3, 1.8, 0.5, 1);
  pointer-events: none;
}

.topic:has(input:checked)::after { scale: 1; }

.note-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.note-error {
  min-height: 1.4rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #b3263a;
}

.note-send { margin-top: 0.4rem; }

.note-send:disabled { opacity: 0.6; cursor: progress; }

.note-send-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: translate 0.3s ease;
}

.note-send:hover .note-send-icon { translate: 3px -3px; }

.note-plane,
.burst-sticker {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(3, 4, 94, 0.2));
}

.note-plane {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 7rem;
}

.burst-sticker { z-index: 4; width: clamp(4rem, 8vw, 6rem); }

.note-plane svg,
.burst-sticker svg { display: block; width: 100%; height: auto; }

.contact-board .contact-links { margin-top: 3rem; }

@media (max-width: 620px) {
  .contact-board { padding-top: 5.5rem; }

  .contact-note,
  .contact-thanks { padding: 3rem 1.4rem 1.8rem; }

  .note-field input,
  .note-field textarea { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .note-field.has-error { animation: none; }
  .topic span,
  .topic::after,
  .note-send-icon { transition: none; }
}

/* Drag carousel */
.drag-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-x: contain;
  border-radius: 12px;
}

.drag-carousel::-webkit-scrollbar { display: none; }
.drag-carousel:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.drag-carousel.is-dragging { cursor: grabbing; }

.drag-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.drag-track .gallery-item {
  flex: 0 0 clamp(260px, 62vw, 520px);
}

.drag-track .gallery-item img {
  -webkit-user-drag: none;
  pointer-events: auto;
}

.drag-carousel.is-dragging img { cursor: grabbing; }

.drag-progress {
  height: 3px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: rgba(3, 4, 94, 0.12);
  overflow: hidden;
}

.drag-progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--color-navy);
  transform-origin: left center;
}

.drag-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* After the full-bleed carousel the enlarged slide and its caption reach further down, so give the bar and hint more room */
.drag-carousel.is-bleed ~ .drag-progress { margin-top: 2.25rem; }
.drag-carousel.is-bleed ~ .drag-hint { margin-top: 0.9rem; }

/* Full-bleed drag carousel: runs edge to edge of the screen, first slide lines up with the text column */
.drag-carousel.is-bleed {
  border-radius: 0;
  /* margin-left and width are set from JS so they ignore the scrollbar */
}

.drag-carousel.is-bleed .drag-track {
  /* Wide enough that the slide in the middle can grow without touching its neighbours */
  gap: clamp(3rem, 6vw, 5rem);
  padding-left: var(--bleed-edge, 0px);
  padding-right: var(--bleed-edge, 0px);
}

.drag-carousel.is-bleed .gallery-item {
  flex: 0 0 clamp(300px, 58vw, 800px);
}

.drag-carousel.is-bleed .gallery-item img { border-radius: 16px; }

/* Full-bleed carousel focus: the slide nearest the middle grows slightly, the rest stay at standard size.
   Only the full-bleed carousel uses this; the BA-Core one keeps the standard image hover. */
.drag-carousel.is-bleed {
  /* Room above and below so the enlarged slide and its shadow are not clipped by the scroll container */
  padding-block: 2.75rem;
  margin-block: -2.75rem;
}

.drag-carousel.is-bleed img.is-zoomable,
.drag-carousel.is-bleed img.is-zoomable:hover,
.drag-carousel.is-bleed img.is-zoomable:focus-visible {
  transform: none;
  box-shadow: none;
  transition: none;
}

.drag-carousel.is-bleed .gallery-item {
  --focus: 0;
  transform-origin: center center;
  transform: scale(calc(1 + 0.09 * var(--focus)));
  /* Short ease so the size change feels smooth while dragging, without lagging behind */
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.drag-carousel.is-bleed .gallery-item img {
  box-shadow: 0 14px 30px rgba(3, 4, 94, calc(0.2 * var(--focus)));
  transition: box-shadow 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .drag-carousel.is-bleed .gallery-item { transform: none; transition: none; }
  .drag-carousel.is-bleed .gallery-item img { box-shadow: none; transition: none; }
}

/* BA-Core carousel: on hover the whole card (image and caption) grows, with room around it so nothing is clipped */
.drag-carousel:not(.is-bleed) {
  padding: 1.25rem 1.5rem;
  margin: 0.25rem -1.5rem -1.25rem;
}

.drag-carousel:not(.is-bleed) img.is-zoomable,
.drag-carousel:not(.is-bleed) img.is-zoomable:hover,
.drag-carousel:not(.is-bleed) img.is-zoomable:focus-visible {
  transform: none;
  box-shadow: none;
  transition: none;
}

.drag-carousel:not(.is-bleed) .gallery-item {
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drag-carousel:not(.is-bleed) .gallery-item img { transition: box-shadow 0.4s ease; }

.drag-carousel:not(.is-bleed) .gallery-item:hover,
.drag-carousel:not(.is-bleed) .gallery-item:focus-within {
  transform: scale(1.06);
}

.drag-carousel:not(.is-bleed) .gallery-item:hover img,
.drag-carousel:not(.is-bleed) .gallery-item:focus-within img {
  box-shadow: 0 12px 26px rgba(3, 4, 94, 0.2);
}

.drag-carousel:not(.is-bleed).is-dragging .gallery-item { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .drag-carousel:not(.is-bleed) .gallery-item,
  .drag-carousel:not(.is-bleed) .gallery-item img { transition: none; }
  .drag-carousel:not(.is-bleed) .gallery-item:hover { transform: none; }
}
