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

:root {
  --grid-vertical: #d0e5f9;
  --grid-horizontal: #d0f9d5;
  --grid-size: 28px;
  --accent-green: #5ae628;
  --accent-pink: #f472b6;
  --accent-teal: #2dd4bf;
  --text: #111;
  --text-muted: #333;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
  --font-display: "Space Mono", "SF Mono", monospace;
  --font-script: "Grand Hotel", cursive;
  --font-inter: "Inter", "Helvetica Neue", Arial, sans-serif;
  --nav-height: 83px;
}

html {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  padding-top: var(--nav-height);
  font-family: var(--font-sans);
  color: var(--text);
  background-color: #fff;
  background-image:
    linear-gradient(var(--grid-horizontal) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-vertical) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

body.is-loading {
  overflow: hidden;
}

/* ── Page loader / skeleton ── */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-image:
    linear-gradient(var(--grid-horizontal) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-vertical) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgb(255, 60, 190),
    rgb(205, 228, 30),
    rgb(255, 60, 190)
  );
  background-size: 200% 100%;
  animation:
    page-loader-progress 1.1s ease-in-out infinite,
    page-loader-shimmer 1.4s linear infinite;
}

.page-loader__shell {
  flex: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 48px;
  box-sizing: border-box;
}

.page-loader__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-loader__nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-loader__content {
  display: grid;
  gap: 40px;
}

.page-loader__panel {
  display: none;
}

/* Home */
body.page-home .page-loader__panel--home,
body.page-works .page-loader__panel--works,
body.page-blog .page-loader__panel--blog,
body.page-404 .page-loader__panel--blog,
body.page-about .page-loader__panel--about,
body.page-contact .page-loader__panel--contact,
body.page-case-study .page-loader__panel--case {
  display: grid;
  gap: 28px;
}

.page-loader__hero {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 48px 0 24px;
}

.page-loader__works {
  display: grid;
  gap: 20px;
}

.page-loader__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-loader__about {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.page-loader__blog {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 64px 0;
}

.page-loader__contact {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.page-loader__case {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.page-loader__toc {
  display: grid;
  gap: 12px;
}

.page-loader__copy {
  display: grid;
  gap: 14px;
}

.skel {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgb(232, 236, 240) 0%,
    rgb(244, 246, 248) 45%,
    rgb(232, 236, 240) 100%
  );
  background-size: 200% 100%;
  animation: page-loader-shimmer 1.35s ease-in-out infinite;
}

.skel--logo {
  width: min(220px, 50vw);
  height: 28px;
}

.skel--nav {
  width: 64px;
  height: 14px;
}

.skel--title {
  width: min(360px, 70vw);
  height: 48px;
}

.skel--subtitle {
  width: min(220px, 50vw);
  height: 18px;
}

.skel--circle {
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  border-radius: 50%;
}

.skel--folder {
  width: 100%;
  aspect-ratio: 300 / 280;
  border-radius: 12px;
}

.skel--photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.skel--line {
  width: 100%;
  height: 14px;
}

.skel--line-short {
  width: 62%;
  height: 14px;
}

.skel--line-mid {
  width: 84%;
  height: 14px;
}

.skel--eyebrow {
  width: 72px;
  height: 12px;
}

.skel--cta {
  width: 120px;
  height: 40px;
  border-radius: 4px;
}

.skel--calendar {
  width: 100%;
  min-height: 320px;
  border-radius: 8px;
}

.skel--heading {
  width: min(280px, 80%);
  height: 36px;
}

.skel--toc {
  width: 140px;
  height: 28px;
}

@keyframes page-loader-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@keyframes page-loader-progress {
  0% {
    transform: scaleX(0.12);
  }

  50% {
    transform: scaleX(0.72);
  }

  100% {
    transform: scaleX(0.28);
  }
}

@media (max-width: 767px) {
  .page-loader__shell {
    width: calc(100% - 32px);
    padding-top: 16px;
  }

  .page-loader__about,
  .page-loader__case {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-loader__hero {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skel,
  .page-loader__progress {
    animation: none;
  }

  .page-loader {
    transition: none;
  }
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 18px 32px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s;
}

.nav__links a:hover {
  opacity: 0.55;
}

.nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.accent-z {
  font-family: var(--font-script);
  color: var(--accent-green);
  font-size: 1.35em;
  font-weight: 400;
  line-height: 0;
  position: relative;
  top: 0.08em;
}

/* ── Hero layout ── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc((100vh - var(--nav-height)) * 2 / 3 + 60px);
  width: 100%;
  max-width: none;
  margin: 0;
  /* Extra bottom space keeps the +60px grid below; content centers above it */
  padding: 2rem 2rem calc(2rem + 60px);
}

.hero__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 240px;
  width: auto;
}

.hero__left,
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__left {
  align-items: flex-end;
}

/* Temporarily remove turntable + controls — delete this rule to restore */
.hero__left,
.hero__left[hidden],
.audio-player-layout,
.audio-player-wrap {
  display: none !important;
}

.hero__right {
  align-items: flex-start;
  flex-shrink: 0;
}

.hero__title-block {
  position: relative;
  text-align: left;
  flex-shrink: 0;
  width: max-content;
  max-width: 100%;
}

.hero__arrow {
  position: absolute;
  left: calc(100% + 72px);
  top: 60px;
  z-index: 0;
  width: 100.018px;
  height: 71.14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 165, 155);
  pointer-events: none;
}

.hero__arrow-inner {
  position: relative;
  width: 71.14px;
  height: 100.018px;
  color: inherit;
  /* Point toward the skills folder; loop opens to the right */
  transform: rotate(-90deg);
}

.hero__arrow-squiggle,
.hero__arrow-plane {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  overflow: visible;
}

.hero__arrow-squiggle {
  transform: matrix(-0.0014, 1, 1, 0.0014, 15.14, 0);
  transform-origin: 0 0;
}

.hero__arrow-plane {
  transform: matrix(-0.0014, 1, 1, 0.0014, 0.048, 65.979);
  transform-origin: 0 0;
}

.hero__center {
  display: none;
}

/* ── Hero typography ── */

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero__title-letter {
  display: inline-block;
  cursor: default;
}

.hero__title-letter.is-waving {
  animation: hero-letter-wave 0.55s ease-in-out both;
}

@keyframes hero-letter-wave {
  0%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-0.28em);
  }

  65% {
    transform: translateY(-0.08em);
  }
}

.name-z-wrap {
  position: relative;
  display: inline-block;
}

.hero__title .accent-z {
  font-size: 1.25em;
}

.accent-z--interactive {
  cursor: pointer;
  display: inline-block;
  transform-origin: top center;
}

.accent-z--interactive:hover:not(.is-bouncing),
.accent-z--interactive:focus-visible:not(.is-bouncing) {
  animation: z-swing 1.2s ease-in-out infinite;
  outline: none;
}

.accent-z--interactive.is-bouncing {
  animation: z-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes z-swing {
  0%,
  100% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(12deg);
  }
}

@keyframes z-bounce {
  0% {
    transform: scale(1) translateY(0);
  }

  25% {
    transform: scale(0.88) translateY(3px);
  }

  45% {
    transform: scale(1.18) translateY(-10px);
  }

  65% {
    transform: scale(0.96) translateY(1px);
  }

  80% {
    transform: scale(1.06) translateY(-3px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  body,
  body * {
    cursor: none !important;
  }
}

.hero__cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: block;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  will-change: transform;
}

.hero__cursor.is-visible {
  opacity: 1;
}

.hero__cursor-icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 24px;
  height: 25px;
  /* Align SVG tip to the pointer position */
  transform: translate(-6px, -4px);
}

.hero__cursor-label {
  position: absolute;
  top: 18px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 20px 8px 16px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 2px 24px 24px 24px;
  border: 2px solid #dd2590;
  background: #ee46bc;
  box-shadow: 4px 4px 10px 0 rgba(238, 70, 188, 0.16);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__tagline {
  margin-top: 16px;
  margin-left: 4px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
}

.hero__blurb {
  margin: 8px 0 0 4px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9a227;
}

.hero__award-wrap {
  position: relative;
  display: inline-block;
  margin: 38px 0 0 0;
  width: clamp(64px, 7vw, 88px);
  cursor: pointer;
  isolation: isolate;
  outline: none;
  z-index: 2;
}

.hero__award-wrap:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 4px;
}

.hero__award {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  transition: filter 0.35s ease;
}

.hero__award-wrap:hover .hero__award,
.hero__award-wrap:focus-within .hero__award {
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.55));
}

.hero__award-glitter {
  position: absolute;
  inset: -18%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero__award-wrap:hover .hero__award-glitter,
.hero__award-wrap:focus-within .hero__award-glitter {
  opacity: 1;
}

.hero__award-sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #c9a227;
  clip-path: polygon(
    50% 0%,
    62% 38%,
    100% 50%,
    62% 62%,
    50% 100%,
    38% 62%,
    0% 50%,
    38% 38%
  );
  opacity: 0;
  transform: scale(0.2);
  filter: drop-shadow(0 0 3px rgba(255, 220, 120, 0.9));
}

.hero__award-wrap:hover .hero__award-sparkle,
.hero__award-wrap:focus-within .hero__award-sparkle {
  animation: hero-award-twinkle 1.1s ease-in-out infinite;
}

.hero__award-sparkle--1 {
  top: 6%;
  left: 12%;
  width: 12px;
  height: 12px;
  animation-delay: 0s;
}

.hero__award-sparkle--2 {
  top: 18%;
  right: 4%;
  width: 8px;
  height: 8px;
  animation-delay: 0.15s;
  background: #e8c547;
}

.hero__award-sparkle--3 {
  top: 42%;
  left: 0%;
  width: 9px;
  height: 9px;
  animation-delay: 0.3s;
}

.hero__award-sparkle--4 {
  top: 48%;
  right: -2%;
  width: 11px;
  height: 11px;
  animation-delay: 0.45s;
  background: #f0d56a;
}

.hero__award-sparkle--5 {
  bottom: 22%;
  left: 8%;
  width: 7px;
  height: 7px;
  animation-delay: 0.2s;
}

.hero__award-sparkle--6 {
  bottom: 14%;
  right: 10%;
  width: 10px;
  height: 10px;
  animation-delay: 0.55s;
  background: #e8c547;
}

.hero__award-sparkle--7 {
  top: 2%;
  right: 28%;
  width: 6px;
  height: 6px;
  animation-delay: 0.35s;
  background: #fff3b0;
}

.hero__award-sparkle--8 {
  bottom: 4%;
  left: 36%;
  width: 8px;
  height: 8px;
  animation-delay: 0.65s;
  background: #f0d56a;
}

@keyframes hero-award-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.25) rotate(0deg);
  }

  35% {
    opacity: 1;
    transform: scale(1.15) rotate(20deg);
  }

  65% {
    opacity: 0.75;
    transform: scale(0.85) rotate(-10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__award-wrap:hover .hero__award-sparkle,
  .hero__award-wrap:focus-within .hero__award-sparkle {
    animation: none;
    opacity: 0.85;
    transform: scale(1);
  }
}

.hero__description {
  margin-top: 0.75rem;
  max-width: 420px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Audio player layout ── */

.audio-player-layout {
  width: 218.029px;
  transform: rotate(-8.051deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

/* ── Audio player ── */

.audio-player-wrap {
  width: 100%;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-teal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.35);
  overflow: visible;
}

.audio-player button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}

.audio-player button:hover {
  opacity: 1;
}

.audio-player__time {
  white-space: nowrap;
  opacity: 0.95;
}

.audio-player__progress {
  flex: 1;
  min-width: 48px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.audio-player__progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 0.1s linear;
}

.audio-player__volume {
  position: relative;
  flex-shrink: 0;
  padding-top: 58px;
  margin-top: -58px;
}

.audio-player__volume-popover {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.28rem;
  border-radius: 999px;
  background: var(--accent-teal);
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.audio-player__volume.is-open .audio-player__volume-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.audio-player__volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}

.audio-player__volume-btn:hover {
  opacity: 1;
}

.audio-player__volume-track {
  position: relative;
  width: 3px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.audio-player__volume-icon--off {
  display: none;
}

.audio-player-wrap.is-muted .audio-player__volume-icon--on {
  display: none;
}

.audio-player-wrap.is-muted .audio-player__volume-icon--off {
  display: block;
}

.audio-player__volume-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  writing-mode: vertical-lr;
  direction: rtl;
}

.audio-player__volume-slider::-webkit-slider-runnable-track {
  width: 3px;
  height: 44px;
  background: transparent;
}

.audio-player__volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 5px;
  margin-left: -3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.audio-player__volume-slider::-moz-range-track {
  width: 3px;
  height: 44px;
  background: transparent;
  border: none;
}

.audio-player__volume-slider::-moz-range-thumb {
  width: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ── Skills folder ── */

.folder-wrapper {
  --folder-scale: 0.78;
  position: relative;
  width: calc(383.34px * var(--folder-scale));
  height: calc(460.62px * var(--folder-scale));
  cursor: pointer;
}

.folder-wrapper__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(16.18deg);
}

.skill-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.skill-icon {
  position: absolute;
  width: calc(52px * var(--folder-scale));
  height: calc(52px * var(--folder-scale));
  border-radius: calc(14px * var(--folder-scale));
  background: rgb(30, 34, 53);
  box-shadow: 0 calc(10px * var(--folder-scale)) calc(22px * var(--folder-scale))
    rgba(20, 24, 40, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: var(--rest-transform) rotate(var(--rest-rotate, 0deg));
  transform-origin: center center;
  transition:
    transform 1.8s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 1.4s ease;
  transition-delay: var(--delay, 0s);
}

.skill-icon--figma svg {
  width: calc(24px * var(--folder-scale));
  height: calc(34px * var(--folder-scale));
}

.skill-icon--react svg,
.skill-icon--framer svg {
  width: calc(34px * var(--folder-scale));
  height: calc(34px * var(--folder-scale));
}

.skill-icon--css svg,
.skill-icon--html svg {
  width: calc(28px * var(--folder-scale));
  height: calc(28px * var(--folder-scale));
}

.skill-icon--cursor svg {
  width: calc(33px * var(--folder-scale));
  height: calc(33px * var(--folder-scale));
}

.skill-icon--figma {
  left: calc(17px * var(--folder-scale));
  top: calc(64px * var(--folder-scale));
  --rest-transform: translate(calc(149px * var(--folder-scale)), calc(161px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: -20deg;
  --delay: 0s;
}

.skill-icon--react {
  left: calc(122px * var(--folder-scale));
  top: calc(52px * var(--folder-scale));
  --rest-transform: translate(calc(44px * var(--folder-scale)), calc(173px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: -30deg;
  --delay: 0.04s;
}

.skill-icon--framer {
  left: calc(78px * var(--folder-scale));
  top: calc(123px * var(--folder-scale));
  background: linear-gradient(160deg, #cb6b42, #bd5c37);
  box-shadow: 0 calc(10px * var(--folder-scale)) calc(22px * var(--folder-scale))
    rgba(180, 80, 30, 0.4);
  --rest-transform: translate(calc(88px * var(--folder-scale)), calc(102px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: 17deg;
  --delay: 0.08s;
}

.skill-icon--js {
  left: calc(213px * var(--folder-scale));
  top: calc(64px * var(--folder-scale));
  --rest-transform: translate(calc(-47px * var(--folder-scale)), calc(161px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: 20deg;
  --delay: 0.12s;
}

.skill-icon__js-mark {
  position: relative;
  width: calc(30px * var(--folder-scale));
  height: calc(30px * var(--folder-scale));
  border-radius: 0;
  background: #f7df1e;
}

.skill-icon__js-text {
  position: absolute;
  right: calc(4px * var(--folder-scale));
  bottom: calc(1px * var(--folder-scale));
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: calc(16px * var(--folder-scale));
  color: #1a1a1a;
  letter-spacing: -1px;
  line-height: 1;
}

.skill-icon--css {
  left: calc(167px * var(--folder-scale));
  top: calc(138px * var(--folder-scale));
  overflow: hidden;
  --rest-transform: translate(calc(-1px * var(--folder-scale)), calc(87px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: -15deg;
  --delay: 0.16s;
}

.skill-icon__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.skill-icon__glare--linear {
  background: linear-gradient(
    133deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.1) 24%,
    rgba(255, 255, 255, 0) 46%
  );
}

.skill-icon__glare--radial {
  background: radial-gradient(
    60% 45% at 22% 12%,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0) 60%
  );
}

.skill-icon--html {
  left: calc(255px * var(--folder-scale));
  top: calc(154px * var(--folder-scale));
  --rest-transform: translate(calc(-89px * var(--folder-scale)), calc(71px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: 26deg;
  --delay: 0.2s;
}

.skill-icon--cursor {
  left: calc(300px * var(--folder-scale));
  top: calc(84px * var(--folder-scale));
  background: rgb(20, 20, 24);
  box-shadow: 0 calc(10px * var(--folder-scale)) calc(22px * var(--folder-scale)) rgba(0, 0, 0, 0.4);
  --rest-transform: translate(calc(-134px * var(--folder-scale)), calc(141px * var(--folder-scale)))
    scale(0.15);
  --rest-rotate: -32deg;
  --delay: 0.24s;
}

.folder-wrapper:hover .skill-icon,
.folder-wrapper:focus-within .skill-icon {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(var(--rest-rotate, 0deg));
  transition:
    transform 1.1s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.folder {
  position: absolute;
  left: calc(41.67px * var(--folder-scale));
  top: calc(185.26px * var(--folder-scale));
  width: calc(300px * var(--folder-scale));
  height: calc(275.362px * var(--folder-scale));
  z-index: 2;
  pointer-events: none;
}

.folder__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 calc(8px * var(--folder-scale)) calc(16px * var(--folder-scale)) rgba(12, 112, 168, 0.3));
}

.folder__front {
  position: absolute;
  left: 0;
  top: calc(66px * var(--folder-scale));
  width: 100%;
  height: calc(209.362px * var(--folder-scale));
  border-radius: calc(22.979px * var(--folder-scale));
  overflow: hidden;
  box-shadow:
    0 calc(-5.106px * var(--folder-scale)) calc(20.426px * var(--folder-scale)) rgba(0, 132, 205, 0.5),
    0 calc(10px * var(--folder-scale)) calc(22px * var(--folder-scale)) rgba(12, 112, 168, 0.3);
}

.folder__front-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgb(115, 215, 255) 0%,
    rgb(113, 212, 252) 25%,
    rgb(111, 209, 249) 50%,
    rgb(109, 206, 246) 75%,
    rgb(107, 203, 243) 100%
  );
}

.folder__front-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 calc(1.915px * var(--folder-scale)) calc(1.915px * var(--folder-scale)) rgba(255, 255, 255, 0.2),
    inset 0 calc(-10.213px * var(--folder-scale)) calc(40.851px * var(--folder-scale)) rgba(12, 112, 168, 0.3);
}

.folder__label {
  position: relative;
  width: calc(148px * var(--folder-scale));
  height: calc(50px * var(--folder-scale));
  overflow: hidden;
  border-radius: calc(6px * var(--folder-scale));
  background: #fff;
  box-shadow: 0 calc(4px * var(--folder-scale)) calc(4px * var(--folder-scale)) rgba(0, 0, 0, 0.25);
  transform: matrix(1, 0.008, -0.008, 1, 0, 0);
  transform-origin: center center;
}

.folder__label-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(32px * var(--folder-scale));
  line-height: 1;
  color: #000;
  white-space: nowrap;
}

.folder__ridge {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(5.745px * var(--folder-scale));
  box-shadow: 0 calc(1.915px * var(--folder-scale)) calc(1.915px * var(--folder-scale)) rgba(0, 132, 205, 0.1);
}

.folder__ridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

.folder__ridge::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 calc(-1.915px * var(--folder-scale)) calc(1.915px * var(--folder-scale))
    rgba(0, 132, 205, 0.1);
}

.folder__ridge--upper {
  top: calc(244.085px * var(--folder-scale));
}

.folder__ridge--lower {
  top: calc(255.894px * var(--folder-scale));
}

/* ── Featured works ── */

.works {
  width: 100%;
  background: #fff;
  padding: 96px 160px;
  box-sizing: border-box;
  overflow: visible;
}

.works__layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.works__main {
  position: relative;
  width: max-content;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-start;
  flex-shrink: 0;
  overflow: visible;
}

.works__header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: max-content;
}

.works__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 36px;
  color: #000;
  flex-shrink: 0;
}

.works__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 160px;
  align-items: flex-start;
  align-self: stretch;
  overflow: visible;
}

.works__item {
  width: 300px;
}

.works__item--capintel,
.works__item--peek {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.works__item--capintel:hover,
.works__item--capintel:focus-within,
.works__item--peek:hover,
.works__item--peek:focus-within {
  z-index: 8;
}

.works__card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.works__card {
  position: relative;
  width: 300px;
  height: 314px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
  overflow: visible;
}

.works__card-link:hover .works__card,
.works__card:hover {
  transform: translateY(-8px);
}

.works__soon {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  translate: -50% -35%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(205, 228, 30);
  box-shadow:
    inset 0 0 0 2px rgb(25, 29, 33),
    0 6px 18px rgba(0, 0, 0, 0.18);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(25, 29, 33);
  pointer-events: none;
  white-space: nowrap;
}

.other-works__label--soon {
  font-weight: 600;
  color: #111;
}

.other-works__image-slot--soon {
  background: rgb(232, 238, 243);
}

.other-works__image-slot--soon span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(25, 29, 33);
  background: rgb(205, 228, 30);
  box-shadow: inset 0 0 0 1px rgb(25, 29, 33);
  border-radius: 999px;
  padding: 10px 16px;
}

/* Peek screens: tablet + desktop when there is room to the right; off on mobile */
.works__peek {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.works__item--capintel .folder--works,
.works__item--peek .folder--works {
  z-index: 2;
}

.works__item--capintel .works__polaroid,
.works__item--peek .works__polaroid {
  z-index: 3;
}

@media (min-width: 768px) {
  .works__peek {
    display: block;
  }

  .works__peek-item {
    position: absolute;
    left: 280px;
    top: 40px;
    border-radius: 16px;
    background: #fff;
    box-shadow:
      0 22px 60px rgba(20, 24, 40, 0.2),
      0 6px 16px rgba(20, 24, 40, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translate(8px, 36px) scale(0.22) rotate(-6deg);
    transform-origin: left center;
    transition:
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease;
    transition-delay: 0s;
    will-change: transform, opacity;
  }

  .works__peek-item img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Tablet: scaled to fit remaining white space */
  .works__peek-item--1 {
    width: clamp(120px, 14vw, 180px);
    z-index: 3;
  }

  .works__peek-item--2 {
    width: clamp(200px, 28vw, 320px);
    z-index: 2;
  }

  .works__peek-item--3 {
    width: clamp(160px, 22vw, 260px);
    z-index: 1;
  }

  .works__card-link:hover .works__peek-item,
  .works__card-link:focus-visible .works__peek-item,
  .works__card-link:focus-within .works__peek-item,
  .works__item--capintel:focus-within .works__peek-item,
  .works__item--peek:focus-within .works__peek-item,
  .works__card:hover .works__peek-item {
    opacity: 1;
  }

  .works__card-link:hover .works__peek-item--1,
  .works__card-link:focus-visible .works__peek-item--1,
  .works__item--capintel:focus-within .works__peek-item--1,
  .works__item--peek:focus-within .works__peek-item--1,
  .works__card:hover .works__peek-item--1 {
    transform: translate(0, 20px) rotate(-11deg) scale(1);
    transition-delay: 0.02s;
  }

  .works__card-link:hover .works__peek-item--2,
  .works__card-link:focus-visible .works__peek-item--2,
  .works__item--capintel:focus-within .works__peek-item--2,
  .works__item--peek:focus-within .works__peek-item--2,
  .works__card:hover .works__peek-item--2 {
    transform: translate(clamp(80px, 12vw, 160px), -64px) rotate(5deg) scale(1);
    transition-delay: 0.09s;
  }

  .works__card-link:hover .works__peek-item--3,
  .works__card-link:focus-visible .works__peek-item--3,
  .works__item--capintel:focus-within .works__peek-item--3,
  .works__item--peek:focus-within .works__peek-item--3,
  .works__card:hover .works__peek-item--3 {
    transform: translate(clamp(180px, 26vw, 360px), 4px) rotate(12deg) scale(1);
    transition-delay: 0.16s;
  }
}

@media (min-width: 1200px) {
  .works__peek-item--1 {
    width: clamp(160px, 12vw, 220px);
  }

  .works__peek-item--2 {
    width: clamp(300px, 26vw, 440px);
  }

  .works__peek-item--3 {
    width: clamp(240px, 20vw, 360px);
  }

  .works__card-link:hover .works__peek-item--1,
  .works__card-link:focus-visible .works__peek-item--1,
  .works__item--capintel:focus-within .works__peek-item--1,
  .works__item--peek:focus-within .works__peek-item--1,
  .works__card:hover .works__peek-item--1 {
    transform: translate(0, 24px) rotate(-11deg) scale(1);
  }

  .works__card-link:hover .works__peek-item--2,
  .works__card-link:focus-visible .works__peek-item--2,
  .works__item--capintel:focus-within .works__peek-item--2,
  .works__item--peek:focus-within .works__peek-item--2,
  .works__card:hover .works__peek-item--2 {
    transform: translate(clamp(120px, 14vw, 220px), -80px) rotate(5deg) scale(1);
  }

  .works__card-link:hover .works__peek-item--3,
  .works__card-link:focus-visible .works__peek-item--3,
  .works__item--capintel:focus-within .works__peek-item--3,
  .works__item--peek:focus-within .works__peek-item--3,
  .works__card:hover .works__peek-item--3 {
    transform: translate(clamp(280px, 32vw, 520px), 8px) rotate(12deg) scale(1);
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .works__peek-item {
    transition: none;
  }
}

.folder--works {
  --folder-scale: 1;
  position: absolute;
  left: 0;
  top: 38px;
  width: calc(300px * var(--folder-scale));
  height: calc(275.362px * var(--folder-scale));
  z-index: 1;
  pointer-events: none;
}

.folder--works .folder__front-shine {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 36px;
}

.folder--works .folder__title {
  max-width: 238px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: italic;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 1px;
  color: rgb(44, 44, 44);
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  overflow: visible;
}

.works__polaroid {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 160px;
  height: 160px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  transform: matrix(0.992, -0.127, 0.127, 0.992, 67, 20.33);
  transform-origin: 0 0;
}

.works__polaroid-img {
  position: absolute;
  left: 15.83px;
  top: 10.29px;
  width: 130px;
  height: 130px;
  overflow: hidden;
  background: rgb(217, 217, 217);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.works__polaroid-img span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
}

.works__polaroid-badge {
  position: absolute;
  left: 50%;
  top: 146px;
  transform: translateX(-50%);
  min-width: 86px;
  height: 28px;
  border-radius: 40px;
  background: rgb(225, 240, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 10px;
}

.works__polaroid-badge span {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  line-height: 12px;
  color: #000;
  white-space: nowrap;
}

.works__hint {
  position: relative;
  margin-left: 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-shrink: 0;
  color: rgb(0, 165, 155);
  height: 36px;
  overflow: visible;
}

.works__arrow {
  /* Tall frame: same artwork as hero, oriented so the plane points down */
  position: relative;
  top: -4px;
  width: 71.14px;
  height: 100.018px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.works__arrow-inner {
  position: relative;
  width: 71.14px;
  height: 100.018px;
  color: inherit;
  /* Flipped: loop opens to the right */
  transform: none;
}

.works__arrow-squiggle,
.works__arrow-plane {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  overflow: visible;
}

.works__arrow-squiggle {
  transform: matrix(-0.0014, 1, 1, 0.0014, 15.14, 0);
  transform-origin: 0 0;
}

.works__arrow-plane {
  transform: matrix(-0.0014, 1, 1, 0.0014, 0.048, 65.979);
  transform-origin: 0 0;
}

.works__hint-text {
  position: relative;
  margin-left: 4px;
  top: 8px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  white-space: nowrap;
  line-height: 1.2;
  color: #000;
}

/* ── Other works ── */

.other-works {
  width: 100%;
  background: rgb(233, 245, 254);
  padding: 96px 160px;
  box-sizing: border-box;
}

.other-works__inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-start;
}

.other-works__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 64px;
  color: #000;
  align-self: stretch;
}

.other-works__list {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.other-works__card {
  position: relative;
  width: 320px;
  height: 378px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgb(26, 25, 30);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  align-items: flex-end;
  box-sizing: border-box;
}

.other-works__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  align-self: stretch;
  flex-shrink: 0;
}

.other-works__card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #000;
  align-self: stretch;
}

.other-works__client {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgb(101, 111, 119);
  text-transform: uppercase;
  align-self: stretch;
}

.other-works__image {
  height: 200px;
  border-radius: 8px;
  background: rgb(232, 238, 243);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  align-items: flex-start;
  box-sizing: border-box;
  flex-shrink: 0;
  align-self: stretch;
}

.other-works__image-slot {
  flex-grow: 1;
  align-self: stretch;
  width: 100%;
  border-radius: 4px;
  background: repeating-linear-gradient(
    135deg,
    rgb(220, 228, 233) 0px,
    rgb(220, 228, 233) 10px,
    rgb(210, 218, 224) 10px,
    rgb(210, 218, 224) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.other-works__image-slot span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.other-works__label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgb(101, 111, 119);
  align-self: stretch;
  flex-shrink: 0;
}

.other-works__open {
  width: 69px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgb(205, 228, 30);
  box-shadow: inset 0 0 0 1px rgb(25, 29, 33);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  color: rgb(25, 29, 33);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.other-works__open:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

/* ── Case study pages ── */

.page-case-study {
  background: #fff;
}

.page-case-study .nav {
  box-shadow: none !important;
  border-bottom: none;
}

/* ── Case study arch header ── */

.case-arch {
  --case-arch-color: rgb(255, 60, 190);
  /* Matched to reference video: gentle full-width scoop (~5.5–7vw) */
  --arch-curve-height: clamp(56px, 6.5vw, 112px);
  --arch-scroll: 0;
  position: relative;
  width: 100%;
  background: #fff;
  overflow: clip;
}

.page-case-study--capintel {
  --case-accent: #0567e4;
}

.page-case-study--purple {
  --case-accent: #aa37f4;
}

.page-case-study--meaningful {
  --case-accent: #0048a8;
}

.page-case-study--questrade {
  --case-accent: #00a830;
}

.page-case-study--capintel .case-arch,
.page-case-study--purple .case-arch,
.page-case-study--meaningful .case-arch,
.page-case-study--questrade .case-arch {
  --case-arch-color: var(--case-accent);
}

.page-case-study--capintel .case-study__item-title,
.page-case-study--purple .case-study__item-title,
.page-case-study--meaningful .case-study__item-title,
.page-case-study--questrade .case-study__item-title {
  color: var(--case-accent);
}

.page-case-study--capintel .case-study__accordion--recommended > .case-study__accordion-summary,
.page-case-study--purple .case-study__accordion--recommended > .case-study__accordion-summary,
.page-case-study--meaningful .case-study__accordion--recommended > .case-study__accordion-summary,
.page-case-study--questrade .case-study__accordion--recommended > .case-study__accordion-summary {
  color: var(--case-accent);
}

.page-case-study--capintel .case-study__embed-link a:hover,
.page-case-study--purple .case-study__embed-link a:hover,
.page-case-study--meaningful .case-study__embed-link a:hover,
.page-case-study--questrade .case-study__embed-link a:hover {
  color: var(--case-accent);
}

.case-arch__panel {
  position: relative;
  width: 100%;
  min-height: min(72vh, 720px);
  background: var(--case-arch-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px calc(var(--arch-curve-height) + 40px);
  box-sizing: border-box;
  transform: translate3d(0, 68%, 0);
  transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Beem case study: Superbloom-style brand shape frame */
.case-arch__collage--beem {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease 0.2s;
}

body.is-ready .case-arch__collage--beem {
  opacity: 1;
}

.case-arch__shape {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  animation: beem-shape-float 9s ease-in-out infinite;
  will-change: transform;
}

/* Top ribbon — spaced along the top edge */
.case-arch__shape--1 {
  left: -2%;
  top: -5%;
  width: clamp(72px, 9vw, 120px);
  rotate: -22deg;
  animation-delay: 0s;
}

.case-arch__shape--2 {
  left: 12%;
  top: -7%;
  width: clamp(78px, 9.5vw, 128px);
  rotate: 10deg;
  animation-delay: -1.4s;
}

.case-arch__shape--3 {
  left: 28%;
  top: -8%;
  width: clamp(88px, 11vw, 148px);
  rotate: -8deg;
  animation-delay: -2.2s;
}

.case-arch__shape--4 {
  left: 46%;
  top: -6%;
  width: clamp(68px, 8.5vw, 112px);
  rotate: 14deg;
  animation-delay: -0.8s;
}

.case-arch__shape--5 {
  right: 30%;
  top: -7%;
  width: clamp(60px, 7.5vw, 100px);
  rotate: 28deg;
  animation-delay: -3s;
}

.case-arch__shape--6 {
  right: 14%;
  top: -5%;
  width: clamp(72px, 9vw, 120px);
  rotate: -12deg;
  animation-delay: -1.8s;
}

.case-arch__shape--7 {
  right: -1%;
  top: -6%;
  width: clamp(76px, 9.5vw, 124px);
  rotate: 16deg;
  animation-delay: -2.6s;
}

.case-arch__shape--8 {
  right: -3%;
  top: 18%;
  width: clamp(80px, 10vw, 132px);
  rotate: -6deg;
  animation-delay: -0.4s;
}

.case-arch__shape--9 {
  right: -2%;
  top: 38%;
  width: clamp(64px, 8vw, 108px);
  rotate: 18deg;
  animation-delay: -3.4s;
}

/* Side frame */
.case-arch__shape--10 {
  left: -3%;
  top: 22%;
  width: clamp(56px, 7vw, 96px);
  rotate: 8deg;
  animation-delay: -1.1s;
}

.case-arch__shape--11 {
  left: -2%;
  top: 46%;
  width: clamp(60px, 7.5vw, 100px);
  rotate: -18deg;
  animation-delay: -2.9s;
}

.case-arch__shape--12 {
  right: -2%;
  top: 58%;
  width: clamp(66px, 8vw, 110px);
  rotate: 20deg;
  animation-delay: -4s;
}

.case-arch__shape--13 {
  left: -1%;
  bottom: 24%;
  width: clamp(70px, 8.5vw, 116px);
  rotate: -14deg;
  animation-delay: -1.6s;
}

/* Bottom corners near the arch curve */
.case-arch__shape--14 {
  left: 8%;
  bottom: 8%;
  width: clamp(84px, 10vw, 140px);
  rotate: -10deg;
  animation-delay: -3.7s;
}

.case-arch__shape--15 {
  left: 28%;
  bottom: 4%;
  width: clamp(58px, 7vw, 96px);
  rotate: 12deg;
  animation-delay: -0.6s;
}

.case-arch__shape--16 {
  right: 12%;
  bottom: 9%;
  width: clamp(52px, 6.5vw, 88px);
  rotate: -28deg;
  scale: -1 1;
  animation-delay: -2.1s;
}

@keyframes beem-shape-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

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

@media (max-width: 767px) {
  .case-arch__shape--3,
  .case-arch__shape--5,
  .case-arch__shape--8,
  .case-arch__shape--11,
  .case-arch__shape--15 {
    display: none;
  }
}

.case-arch__intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 0.8s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.32s;
  will-change: transform, opacity;
}

.case-arch__logo {
  display: block;
  width: clamp(140px, 18vw, 220px);
  height: auto;
}

.case-arch__logo--meaningful {
  width: clamp(180px, 28vw, 320px);
}

.case-arch__logo--questrade {
  width: clamp(120px, 16vw, 180px);
}

.case-arch__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  text-wrap: balance;
}

.case-arch__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: var(--arch-curve-height);
  pointer-events: none;
  color: #fff;
}

.case-arch__curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.is-ready .case-arch__panel {
  transform: translate3d(0, 0, 0);
}

body.is-ready .case-arch__intro {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Scroll: intro eases up and fades as the arch leaves the viewport */
body.is-ready .case-arch.is-scrolling .case-arch__intro {
  transition:
    opacity 0.12s linear,
    transform 0.12s linear;
  transition-delay: 0s;
  opacity: calc(1 - var(--arch-scroll) * 1.15);
  transform: translate3d(0, calc(var(--arch-scroll) * -120px), 0);
}

body.is-ready .case-arch.is-scrolling .case-arch__panel {
  transition: none;
  transform: translate3d(0, calc(var(--arch-scroll) * -12%), 0);
}

@media (prefers-reduced-motion: reduce) {
  .case-arch__panel,
  .case-arch__intro {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 767px) {
  .case-arch__panel {
    min-height: min(58vh, 520px);
    padding: 56px 24px calc(var(--arch-curve-height) + 28px);
  }

  .case-arch__title {
    max-width: 12ch;
    font-size: clamp(34px, 10vw, 56px);
  }
}

.case-study {
  width: 100%;
  background: #fff;
  padding: 72px 96px 120px;
  box-sizing: border-box;
}

.case-study__layout {
  max-width: 1168px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 884px);
  gap: 64px;
  align-items: start;
}

.case-study__nav {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

/* Sliding pill indicator (Cursor-style) */
.case-study__nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 10px;
  background: rgb(229, 229, 229);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0);
  transition:
    transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.18s ease;
  will-change: transform, width, height;
}

.case-study__nav-indicator.is-visible {
  opacity: 1;
}

.case-study__back,
.case-study__toc a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: none;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 10px;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  line-height: 48px;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: color 0.18s ease;
}

.case-study__back {
  font-weight: 500;
  margin-bottom: 0;
}

.case-study__toc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.case-study__toc li {
  min-width: 0;
  overflow: visible;
}

.case-study__back:hover,
.case-study__toc a:hover,
.case-study__toc a.is-active {
  background: transparent;
  color: #666;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .case-study__nav-indicator {
    transition: opacity 0.15s ease;
  }
}

.case-study__content {
  min-width: 0;
  width: 100%;
  max-width: 884px;
}

.case-study__coming-soon {
  margin: 0 0 40px;
  padding: 16px 20px;
  border-left: 3px solid var(--case-accent, #aa37f4);
  background: color-mix(in srgb, var(--case-accent, #aa37f4) 8%, #fff);
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
}

.case-study__section {
  scroll-margin-top: calc(var(--nav-height) + 32px);
  padding-bottom: 64px;
}

.case-study__section:last-child {
  padding-bottom: 0;
}

.case-study__section h2 {
  margin: 0 0 32px;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  color: #111;
}

.case-study__subsection {
  margin: 0 0 24px;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.case-study__subsection--follow {
  margin-top: 48px;
}

.case-study__subsection--nested {
  margin-top: 40px;
  font-size: 14px;
  color: rgb(70, 75, 82);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.case-study__list {
  margin: 0 0 16px;
  padding: 0 0 0 1.25em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study__list li {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: #111;
}

.case-study__group-title {
  margin: 40px 0 20px !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  color: #111;
}

.case-study__group-title--underlined {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-study__item-title {
  margin: 36px 0 16px;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255, 60, 190);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.case-study__module {
  margin: 40px 0 8px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.case-study__module-title {
  margin: 0 0 20px;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(70, 75, 82);
}

.case-study__module-eyebrow {
  margin: 0 0 8px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  font-style: italic;
  line-height: 1.4;
  color: rgb(120, 126, 134);
}

.case-study__module-def {
  margin: 0 0 10px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px !important;
  line-height: 1.55;
  color: #111;
}

.case-study__module-note {
  margin: 0 0 24px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.55;
  color: rgb(160, 165, 172);
}

.case-study__section p.case-study__module-note--body,
.case-study__module-note--body {
  font-size: 16px !important;
  color: #111;
}

.case-study__module-label {
  margin: 0 0 12px !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px !important;
  line-height: 1.4;
  color: #111;
}

.case-study__module-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-study__module-list li {
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.5;
  color: #111;
}

.case-study__module-list strong {
  font-weight: 600;
  color: #111;
}

.case-study__module-list span {
  color: #111;
}

.case-study__module--considerations .case-study__module-list span {
  color: #111;
}

.case-study__module-sublist {
  margin: 10px 0 4px;
  padding: 0 0 0 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-study__module-sublist li {
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.5;
  color: #111;
}

.case-study__module-sublist strong {
  font-weight: 600;
  color: #111;
}

.case-study__module-sublist span {
  color: #111;
}

.case-study__module-figure {
  margin: 8px 0 28px;
  text-align: center;
}

.case-study__module-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 6px;
  background: rgb(245, 246, 247);
}

.case-study__module-figure figcaption {
  margin: 0;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: rgb(120, 126, 134);
}

.case-study__analysis-lead {
  margin: 8px 0 8px;
}

.case-study__analysis-lead .case-study__stat-grid {
  margin-top: 0;
}

.case-study__analysis-consider-label {
  margin: 0 0 12px !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px !important;
  line-height: 1.4;
  color: #111;
}

.case-study__analysis-considerations {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study__analysis-considerations li {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #111;
}

.case-study__analysis-considerations strong {
  font-weight: 600;
}

.case-study__example-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}

.case-study__example-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgb(240, 241, 243);
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: rgb(55, 60, 66);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.case-study__example-pill:hover {
  background: rgb(230, 232, 235);
  color: rgb(35, 39, 44);
}

.case-study__def-label {
  margin: 0 0 8px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  font-style: italic;
  color: #333;
}

.case-study__card-figure--solo {
  margin: 8px 0 16px;
}

.case-study__iterations--pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .case-study__iterations--pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.case-study__section p.case-study__card-result--wide,
.case-study__card-result--wide {
  margin: 40px 0 8px;
}

.case-study__decision {
  margin: 40px 0 8px;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgb(244, 245, 247);
}

.case-study__decision--bare {
  margin-top: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.case-study__decision--bare .case-study__decision-title {
  margin-bottom: 0 !important;
}

.case-study__research-test {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgb(228, 230, 235);
}

.case-study__research-test:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.case-study__research-test-title {
  margin: 0 0 8px;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #111;
}

.case-study__final-title {
  margin: 0 0 8px;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #111;
}

.case-study__research-test-title .case-study__card-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
}

.case-study__research-test-desc {
  margin: 0 0 20px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 15px !important;
  line-height: 1.5;
  color: #111;
}

.case-study__research-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: research-flow;
}

.case-study__research-flow li {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 10px;
  background: rgb(244, 245, 247);
  font-family: var(--font-inter);
  font-size: 13px;
  line-height: 1.4;
  color: #111;
  counter-increment: research-flow;
}

.case-study__research-flow li::before {
  content: counter(research-flow);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  color: rgb(120, 126, 134);
}

.case-study__research-test-caption {
  margin: 0 0 20px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 13px !important;
  line-height: 1.5;
  color: rgb(120, 126, 134);
}

.case-study__carousel {
  margin: 0 0 12px;
}

.case-study__carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.case-study__carousel-label {
  margin: 0 !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 12px !important;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(120, 126, 134);
}

.case-study__carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-study__carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgb(228, 230, 235);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.case-study__carousel-btn:hover {
  border-color: var(--case-accent, #0567e4);
  color: var(--case-accent, #0567e4);
}

.case-study__carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: rgb(228, 230, 235);
  color: #111;
}

.case-study__carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-study__carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(210, 214, 220);
  cursor: pointer;
}

.case-study__carousel-dot.is-active {
  background: var(--case-accent, #0567e4);
}

.case-study__carousel-track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study__carousel-slide .case-study__card-figure--bare {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.case-study__carousel-slide .case-study__card-figure--bare img {
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.case-study__stat--inline {
  max-width: 320px;
  margin: 0 0 16px;
}

.case-study__research-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 20px;
}

@media (min-width: 640px) {
  .case-study__research-options {
    grid-template-columns: 1fr 1fr;
  }
}

.case-study__research-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid transparent;
  border-radius: 14px;
}

.case-study__research-option--chosen {
  border-color: var(--case-accent, #0567e4);
  background: color-mix(in srgb, var(--case-accent, #0567e4) 4%, #fff);
}

.case-study__research-option-icon {
  display: inline-flex;
  color: rgb(90, 95, 102);
}

.case-study__research-option--chosen .case-study__research-option-icon {
  color: var(--case-accent, #0567e4);
}

.case-study__research-option p {
  margin: 0 !important;
  font-family: var(--font-inter);
  font-size: 14px !important;
  line-height: 1.5;
  color: #111;
}

.case-study__research-option strong {
  font-weight: 700;
}

.case-study__research-option .case-study__card-badge {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 4px;
}

.case-study__research-option .case-study__card-figure--bare {
  width: 100%;
  max-width: 100%;
  margin: 4px 0 0;
}

.case-study__research-option .case-study__card-figure--bare img {
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.case-study__research-test .case-study__quote {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .case-study__research-flow {
    grid-template-columns: 1fr;
  }
}

.case-study__decision-label {
  margin: 0 0 8px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.4;
  color: rgb(120, 126, 134);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-study__decision-title {
  margin: 0 0 4px !important;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 14px !important;
  line-height: 1.45;
  letter-spacing: 0;
  color: #111;
}

.case-study__decision-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-study__decision-list li {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

.case-study__findings {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgb(244, 245, 247);
}

.case-study__findings-title {
  margin: 0 0 12px !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

.case-study__findings .case-study__list {
  margin-bottom: 0;
}

.case-study__points-takeaway .case-study__findings-title {
  margin-bottom: 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  text-transform: none;
}

.case-study__point {
  margin: 0 0 18px;
}

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

.case-study__section p.case-study__point-title,
.case-study__points-takeaway .case-study__point-title,
.case-study__point-title {
  margin: 0 0 8px !important;
  font-family: var(--font-inter);
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.4;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-study__point-title strong {
  font-weight: 700 !important;
}

.case-study__points-takeaway .case-study__point > p {
  margin: 0 0 6px !important;
  font-size: 12px !important;
  line-height: 1.55;
  color: rgb(85, 90, 98);
}

.case-study__points-takeaway .case-study__point > p:last-child {
  margin-bottom: 0 !important;
}

.case-study__points-takeaway .case-study__point > p strong {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111;
}

.case-study__finding-action {
  margin: 8px 0 0 !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.55;
  color: rgb(85, 90, 98);
}

.case-study__finding-options {
  margin: 8px 0 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study__finding-options li {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(85, 90, 98);
}

.case-study__quote {
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 2px solid rgb(210, 214, 220);
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: #222;
}

.case-study__accordions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border: 1px solid rgb(228, 230, 235);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition:
    gap 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

/* When any item is open: split into separate cards */
.case-study__accordions.is-split {
  gap: 10px;
  border-color: transparent;
  background: transparent;
  overflow: visible;
}

.case-study__accordion {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    border-radius 0.2s ease,
    background-color 0.2s ease;
}

.case-study__accordion + .case-study__accordion {
  border-top: 1px solid rgb(235, 236, 240);
}

.case-study__accordions.is-split .case-study__accordion {
  border: 1px solid rgb(228, 230, 235);
  border-radius: 18px;
  background: #fff;
}

.case-study__accordions.is-split .case-study__accordion + .case-study__accordion {
  border-top: 1px solid rgb(228, 230, 235);
}

.case-study__accordions.is-split .case-study__accordion[open],
.case-study__accordions.is-split .case-study__accordion.is-open {
  box-shadow: 0 10px 28px rgba(25, 29, 33, 0.06);
}

.case-study__accordions.is-split .case-study__accordion--recommended.is-open,
.case-study__accordions.is-split .case-study__accordion--recommended[open] {
  border-color: var(--case-accent, #0567e4);
  border-width: 1.5px;
}

.case-study__accordion--recommended > .case-study__accordion-summary {
  color: var(--case-accent, #0567e4);
  font-weight: 600;
}

.case-study__accordion--recommended > .case-study__accordion-summary::after {
  background-color: var(--case-accent, #0567e4);
  opacity: 1;
}

.case-study__accordion-why {
  margin: 0 0 12px;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: rgb(85, 90, 98);
}

.case-study__section .case-study__accordion-body > p {
  font-size: 14px !important;
}

.case-study__accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #111;
  user-select: none;
  outline: 0 !important;
  outline-offset: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  transition: background-color 0.18s ease;
}

.case-study__accordion:focus,
.case-study__accordion:focus-visible,
.case-study__accordion-summary:focus,
.case-study__accordion-summary:focus-visible,
.case-study__accordion-summary:active {
  outline: 0 !important;
  outline-color: transparent !important;
  -webkit-focus-ring-color: transparent;
}

.case-study__accordion-summary::-moz-focus-inner {
  border: 0;
}

.case-study__accordion-summary-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.case-study__accordion-summary .case-study__card-badge {
  letter-spacing: 0.04em;
}

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

.case-study__accordion-summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: rgb(120, 126, 134);
  opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.22s ease;
}

.case-study__accordion[open] > .case-study__accordion-summary::after,
.case-study__accordion.is-open > .case-study__accordion-summary::after {
  transform: rotate(180deg);
}

.case-study__accordion-summary:hover {
  background: rgb(250, 251, 252);
}

.case-study__accordion-body {
  padding: 0 22px 22px;
}

.case-study__accordion[open] > .case-study__accordion-body,
.case-study__accordion.is-open > .case-study__accordion-body {
  animation: case-study-accordion-in 0.24s ease;
}

@keyframes case-study-accordion-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-study__accordion-body > p:first-child {
  margin-top: 0;
}

.case-study__accordion-body .case-study__card-figure,
.case-study__pill-panel .case-study__card-figure {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
}

.case-study__accordion-body .case-study__card-figure img,
.case-study__accordion-body .case-study__card-figure video,
.case-study__pill-panel .case-study__card-figure img,
.case-study__pill-panel .case-study__card-figure video {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: left top;
  background: rgb(245, 246, 247);
}

.case-study__card-figure--centered {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  background: transparent;
}

.case-study__accordion-body .case-study__card-figure--centered img,
.case-study__pill-panel .case-study__card-figure--centered img {
  width: auto;
  max-width: min(480px, 100%);
  max-height: 280px;
  object-fit: contain;
  object-position: center;
}

/* Segmented toggle pills (iteration switcher) */
.case-study__pills {
  margin-top: 20px;
}

.case-study__pill-track {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgb(236, 238, 241);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.case-study__pill {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: rgb(130, 136, 145);
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.case-study__pill:hover:not(.is-active) {
  color: rgb(70, 75, 82);
}

.case-study__pill.is-active {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.18);
}

.case-study__pill:focus,
.case-study__pill:focus-visible {
  outline: none;
}

.case-study__pill-panels {
  margin-top: 20px;
}

.case-study__pill-panel-heading {
  margin: 0 0 12px;
}

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

.case-study__iterations {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-study__card {
  padding: 28px 28px 24px;
  border: 1px solid rgb(220, 220, 220);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 29, 33, 0.06);
}

.case-study__card--chosen {
  border-color: rgb(205, 228, 30);
  box-shadow:
    0 0 0 1px rgb(205, 228, 30),
    0 8px 24px rgba(25, 29, 33, 0.06);
}

.case-study__card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.case-study__card-title {
  margin: 0;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: #111;
}

.case-study__card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fdff93;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

.case-study__card-badge--recommended {
  background: color-mix(in srgb, var(--case-accent, #0567e4) 18%, #fff);
  border: none;
  color: #043d8a;
}

.case-study__card > p {
  margin: 0 0 16px;
}

.case-study__card-figure {
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 6px;
  background: rgb(245, 246, 247);
}

.case-study__card-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study__card-figure--bare,
.case-study__accordion-body .case-study__card-figure--bare {
  width: auto;
  max-width: min(720px, 100%);
  margin-left: 0;
  margin-right: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.case-study__accordion-body .case-study__card-figure--bare img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left top;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.case-study__media {
  margin: 0 0 24px;
}

.case-study__media .case-study__card-figure {
  margin-bottom: 0;
}

.case-study__figcaption {
  margin: 12px 0 0;
  padding: 0 2px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
  color: #555;
}

/* Match Portfolio Holdings result takeaways (same as .case-study__stat). */
.case-study__card-result {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgb(244, 245, 247);
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.55;
  color: #111;
}

.case-study__card-result strong {
  font-weight: 600;
}

.case-study__card-result > p {
  margin: 0 0 10px !important;
  font-size: 14px !important;
  line-height: 1.55;
}

.case-study__card-result > p:last-child {
  margin-bottom: 0 !important;
}

.case-study__takeaway-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: disc;
}

.case-study__takeaway-list li {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: #111;
}

.case-study__section p.case-study__decision-takeaway-lead,
.case-study__decision-takeaway-lead {
  margin: 0 0 14px !important;
  font-family: var(--font-inter);
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.55;
  color: #111;
}

.case-study__decision-takeaway-label {
  margin: 14px 0 6px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.4;
  color: rgb(120, 126, 134);
}

.case-study__takeaway-list + .case-study__decision-takeaway-label {
  margin-top: 22px !important;
}

.case-study__decision-takeaway-label + .case-study__takeaway-list {
  margin-top: 0;
}

.case-study__decision-takeaway .case-study__takeaway-list li {
  font-size: 12px;
}

.case-study__decision-takeaway-rule {
  margin: 16px 0 20px;
  border: 0;
  border-top: 1px solid rgb(220, 223, 228);
}

.case-study__decision-takeaway-next {
  margin: 0 !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.55;
  color: #111;
}

.case-study__decision-takeaway-next strong {
  font-weight: 700;
}

.case-study__accordion-body .case-study__stat--inline {
  margin-top: 16px;
}

.case-study__result-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.case-study__result-stack .case-study__stat--inline {
  max-width: none;
  margin: 0;
  border-radius: 10px 10px 0 0;
}

.case-study__result-stack .case-study__card-result {
  margin: 0;
  border-radius: 0 0 10px 10px;
}

.case-study__accordion-body .case-study__quote {
  margin-top: 12px;
}

.case-study__card-quotes {
  margin-top: 4px;
}

.case-study__card-quotes-label {
  margin: 0 0 10px !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.case-study__card-quotes ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study__card-quotes li {
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.55;
  color: #222;
}

.case-study__card-emphasis {
  color: var(--case-accent, #0567e4);
  font-weight: 500;
}

/* Scannable research stats + quote/observation split */
.case-study__stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.case-study__stat-grid:has(.case-study__stat:only-child) {
  grid-template-columns: 1fr;
}

.case-study__stat {
  padding: 18px 20px;
  border-radius: 10px;
  background: rgb(244, 245, 247);
}

.case-study__section p.case-study__stat-label,
.case-study__stat-label {
  margin: 0 0 8px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px !important;
  line-height: 1.35;
  color: rgb(90, 95, 102);
}

.case-study__section p.case-study__stat-value,
.case-study__stat-value {
  margin: 0 !important;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 32px !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111;
}

.case-study__section p.case-study__stat-sub,
.case-study__stat-sub {
  margin: 6px 0 0 !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 13px !important;
  line-height: 1.35;
  color: rgb(120, 126, 134);
}

.case-study__insights {
  margin: 4px 0 0;
}

.case-study__insights-title {
  margin: 0 0 16px;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #111;
}

.case-study__insight {
  margin: 0 0 18px;
  padding: 0 0 0 16px;
  border-left: 2px solid rgb(210, 214, 220);
}

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

.case-study__section p.case-study__insight-quote,
.case-study__insight-quote {
  margin: 0 0 8px !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px !important;
  font-style: italic;
  line-height: 1.5;
  color: #222;
}

.case-study__section p.case-study__insight-note,
.case-study__insight-note {
  margin: 0 !important;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 12px !important;
  font-style: normal;
  line-height: 1.5;
  color: rgb(100, 105, 112);
}

.case-study__insight-quote + .case-study__insight-note {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .case-study__stat-grid {
    grid-template-columns: 1fr;
  }
}

.case-study__section p {
  margin: 0 0 16px;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: #111;
}

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

.case-study__embed {
  position: relative;
  width: 100%;
  max-width: 884px;
  margin: 28px 0 12px;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  background: rgb(245, 246, 247);
  box-shadow: inset 0 0 0 1px rgba(25, 29, 33, 0.12);
}

/* Mobile login proto — taller frame so the full screen stays in view. */
.case-study__embed--login {
  aspect-ratio: 9 / 16;
  max-width: min(420px, 100%);
  min-height: 560px;
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 767px) {
  .case-study__embed--login {
    max-width: 100%;
    min-height: 480px;
    aspect-ratio: 9 / 16;
  }
}

.case-study__embed--full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: 16 / 10;
  min-height: min(70vh, 720px);
}

/* Wide desktop protos — edge-to-edge in the accordion, scaled to fit. */
.case-study__accordion-body .case-study__embed--wide {
  max-width: none;
  width: calc(100% + 44px);
  margin: 16px -22px 12px;
  aspect-ratio: 16 / 9;
  min-height: min(52vh, 560px);
}

/* 3-screen horizontal flows — edge-to-edge + panoramic so all screens fit. */
.case-study__accordion-body .case-study__embed--flow {
  max-width: none;
  width: calc(100% + 44px);
  margin: 16px -22px 12px;
  aspect-ratio: 21 / 9;
  min-height: min(38vh, 420px);
}

@media (max-width: 767px) {
  .case-study__accordion-body .case-study__embed--wide {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }

  .case-study__accordion-body .case-study__embed--flow {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .case-study__embed--full {
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }
}

/* Beem interactive protos: stay in the case-study content column. */
.case-study__embed--beem-proto {
  aspect-ratio: unset;
  width: 100%;
  max-width: 884px;
  margin-left: 0;
  margin-right: 0;
  min-height: 180px;
  height: min(56vw, 640px);
  max-height: none;
  background: #badede;
  overflow: hidden;
  isolation: isolate;
}

.case-study__embed--beem-accounts {
  background: #ffffff;
}

@media (max-width: 767px) {
  .case-study__embed--beem-proto {
    aspect-ratio: unset;
    min-height: 180px;
    height: min(72vw, 520px);
  }

  .case-study__embed--beem-proto.case-study__embed {
    aspect-ratio: unset;
    min-height: 180px;
  }
}

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

.case-study__embed--beem-proto iframe {
  overflow: hidden;
  pointer-events: auto;
}

.case-study__embed-link {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.case-study__embed-link a {
  color: rgb(25, 29, 33);
  text-underline-offset: 3px;
}

.case-study__embed-link a:hover {
  color: rgb(255, 60, 190);
}

@media (max-width: 767px) {
  .case-study__embed {
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }
}

.page-case-study .site-footer,
.page-case-study .site-footer__stage {
  --footer-sky: #fff;
  --footer-accent: rgb(255, 60, 190);
}


/* ── About page ── */

.about-page {
  width: 100%;
  padding: 96px 160px 120px;
  box-sizing: border-box;
  background: #fff;
}

.about-page__layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.about-page__photo {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgb(26, 25, 30);
  background: rgb(233, 245, 254);
}

.about-page__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 1590;
  object-fit: cover;
  object-position: center top;
}

.about-page__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.about-page__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(101, 111, 119);
}

.about-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: #111;
}

.about-page__role {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
  color: rgb(255, 60, 190);
}

.about-page__body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-page__body p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: rgb(60, 66, 72);
  max-width: 38em;
}

.about-page__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-page__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgb(25, 29, 33);
  background: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.about-page__link--primary {
  background: rgb(205, 228, 30);
}

.about-page__link:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.about-page__award {
  max-width: 1120px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-page__award-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: #111;
}

.about-page__award-figure {
  margin: 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-page__award-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgb(26, 25, 30);
}

.about-page__award-caption {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: rgb(60, 66, 72);
  max-width: 38em;
}


/* ── Contact page ── */

.contact-page {
  width: 100%;
  padding: 96px 160px 120px;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.contact-page__intro {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-page__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(101, 111, 119);
}

.contact-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  color: #111;
}

.contact-page__lede {
  margin: 0;
  max-width: 36em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.5;
  color: rgb(101, 111, 119);
}

.contact-page__email-block {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-page__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(101, 111, 119);
}

.contact-page__email {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  color: rgb(255, 60, 190);
  text-decoration: none;
  word-break: break-word;
}

.contact-page__email:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-page__book {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-page__book-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page__book-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: #111;
}

.contact-page__book-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: rgb(101, 111, 119);
}

.contact-page__calendar-wrap {
  position: relative;
  width: 100%;
  min-height: 700px;
  border-radius: 16px;
  background: rgb(233, 245, 254);
  box-shadow: inset 0 0 0 2px rgb(26, 25, 30);
  overflow: hidden;
}

.contact-page__calendar {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
  background: #fff;
}

.contact-page__calendar-wrap.is-fallback .contact-page__calendar {
  display: none;
}

.contact-page__calendar-fallback {
  display: none;
  min-height: 700px;
  padding: 48px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  box-sizing: border-box;
}

.contact-page__calendar-wrap.is-fallback .contact-page__calendar-fallback {
  display: flex;
}

.contact-page__calendar-fallback p {
  margin: 0;
  max-width: 28em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
}

.contact-page__calendar-fallback code {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.contact-page__fallback-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background: rgb(205, 228, 30);
  box-shadow: inset 0 0 0 1px rgb(25, 29, 33);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #111;
  text-decoration: none;
}

.contact-page__fallback-cta:hover {
  filter: brightness(0.97);
}


/* ── Coming soon (Works page) ── */

.coming-soon {
  width: 100%;
  min-height: calc(100vh - 83px - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 160px;
  box-sizing: border-box;
  background: #fff;
}

.coming-soon__inner {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.coming-soon__cartoon {
  width: min(240px, 62vw);
  margin: 0 0 12px;
}

.coming-soon__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 444 / 657;
  overflow: visible;
  background: transparent;
}

.coming-soon__stage--lime {
  background: rgb(205, 228, 30);
  box-shadow: 0 18px 40px rgba(205, 228, 30, 0.28);
  animation-name: coming-soon-glow-lime;
}

@keyframes coming-soon-glow-lime {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(205, 228, 30, 0.22);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 22px 48px rgba(205, 228, 30, 0.38);
    transform: scale(1.015);
  }
}

/* ── 404 error page ── */

.error-page {
  width: 100%;
  min-height: calc(100vh - 83px - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 160px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(205, 228, 30, 0.14), transparent 70%),
    #fff;
}

.error-page__inner {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-page__cartoon {
  width: min(160px, 42vw);
  margin: 0 0 8px;
}

.error-page__clouds {
  width: 100%;
  aspect-ratio: 166 / 292;
  background: rgb(255, 60, 190);
  -webkit-mask-image: url("assets/404/clouds.png");
  mask-image: url("assets/404/clouds.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform-origin: 50% 60%;
  animation: error-page-clouds 3.2s ease-in-out infinite;
}

@keyframes error-page-clouds {
  0%,
  100% {
    transform: translate(0, 6px) rotate(-1.5deg);
  }

  33% {
    transform: translate(3px, -8px) rotate(1.5deg);
  }

  66% {
    transform: translate(-3px, -2px) rotate(-0.5deg);
  }
}

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

.error-page__code {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #111;
}

.error-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: #111;
}

.error-page__script {
  display: inline-block;
  font-family: "Pacifico", var(--font-script), cursive;
  font-weight: 400;
  font-size: 1.15em;
  color: rgb(255, 60, 190);
  transform: rotate(-4deg);
}

.error-page__body {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  color: rgb(101, 111, 119);
}

.error-page__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.error-page__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #111;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.error-page__cta--primary {
  background: rgb(205, 228, 30);
  box-shadow: inset 0 0 0 1px rgb(25, 29, 33);
}

.error-page__cta--secondary {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(25, 29, 33);
}

.error-page__cta:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.coming-soon__figure-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: 52% 68%;
  animation: coming-soon-cook 1.3s ease-in-out infinite;
  will-change: transform;
}

@keyframes coming-soon-cook {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  30% {
    transform: translate(0, -3px) rotate(-1.4deg);
  }

  55% {
    transform: translate(0, 2px) rotate(1.2deg);
  }

  78% {
    transform: translate(0, -1px) rotate(-0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon__figure-img {
    animation: none;
  }
}

.coming-soon__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(101, 111, 119);
}

.coming-soon__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  color: #111;
}

.coming-soon__script {
  display: inline-block;
  font-family: "Pacifico", var(--font-script), cursive;
  font-weight: 400;
  font-size: 1.15em;
  color: rgb(255, 60, 190);
  transform: rotate(-4deg);
}

.coming-soon__body {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  color: rgb(101, 111, 119);
}

.coming-soon__body a {
  color: #111;
  text-underline-offset: 0.15em;
}

.coming-soon__body a:hover {
  color: rgb(255, 60, 190);
}

.coming-soon__cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background: rgb(205, 228, 30);
  box-shadow: inset 0 0 0 1px rgb(25, 29, 33);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.coming-soon__cta:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}


/* ── Standalone page content (Blog, About) ── */

.page-content {
  width: 100%;
  background: #fff;
  padding: 96px 160px;
  box-sizing: border-box;
  min-height: 40vh;
}

.page-content__inner {
  max-width: 720px;
}

.page-content__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: #000;
}

.page-content__body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  color: rgb(101, 111, 119);
}


/* ── Footer ── */

.site-footer {
  --footer-accent: rgb(255, 60, 190);
  --footer-sky: rgb(233, 245, 254);
  --footer-heading: rgb(253, 255, 147);
  /* Match case study header arch */
  --arch-curve-height: clamp(56px, 6.5vw, 112px);
  width: 100%;
  background: var(--footer-sky);
  overflow: hidden;
}

/* Non-homepage pages (except Works): no sky-blue behind the pink arch */
.page-blog .site-footer,
.page-about .site-footer,
.page-contact .site-footer,
.page-404 .site-footer {
  --footer-sky: #fff;
}

.site-footer__stage {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 2032 / 722;
  min-height: 420px;
  overflow: hidden;
  border-radius: 0;
  background: var(--footer-sky);
}

.site-footer__blob {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}

/* Pink arch on a background layer so pills/content aren't clipped by the mask */
.site-footer__blob::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  background: var(--footer-accent);
  pointer-events: none;
  /* Same Q720 curve + height as .case-arch__curve */
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 120 Q720 0 1440 120 L1440 120 L0 120 Z'/%3E%3C/svg%3E"),
    linear-gradient(#000 0 0);
  -webkit-mask-size:
    100% var(--arch-curve-height),
    100% calc(100% - var(--arch-curve-height) + 2px);
  -webkit-mask-position:
    0 0,
    0 calc(var(--arch-curve-height) - 1px);
  -webkit-mask-repeat: no-repeat;
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 120 Q720 0 1440 120 L1440 120 L0 120 Z'/%3E%3C/svg%3E"),
    linear-gradient(#000 0 0);
  mask-size:
    100% var(--arch-curve-height),
    100% calc(100% - var(--arch-curve-height) + 2px);
  mask-position:
    0 0,
    0 calc(var(--arch-curve-height) - 1px);
  mask-repeat: no-repeat;
}

.site-footer__pill {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 8px;
  border-radius: 20px;
  background: var(--footer-accent);
  box-shadow: inset 0 0 0 2px #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(12px, 1.1vw, 20px);
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  z-index: 6;
}

.site-footer__pill--ux {
  /*
    Anchored to heading so the pill overlaps the “L” in “Let’s”
    (artboard pill 581,143 → heading 680,136).
  */
  left: calc((581 - 680) / 672 * 100% - 24px);
  top: calc((143 - 136) / 64 * 1em);
  transform: rotate(-8.31deg);
  z-index: 2;
}

.site-footer__pill--research {
  /* Artboard 2032×722 — x:601 y:227 */
  left: calc(601 / 2032 * 100% - 12px);
  top: calc(227 / 722 * 100%);
  transform: rotate(8.14deg);
}

.site-footer__pill--frontend {
  left: 46.1%;
  top: 43.9%;
}

.site-footer__pill--systems {
  left: calc(1322 / 2032 * 100% + 6px);
  top: calc(148 / 722 * 100% - 20px);
  transform: rotate(-5.1deg);
}

.site-footer__pill--branding {
  left: calc(1303 / 2032 * 100%);
  top: calc(255 / 722 * 100% - 24px);
  transform: rotate(7.08deg);
}

.site-footer__figure {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
  user-select: none;
  /* Shared baseline with CTA */
  top: auto;
  bottom: 32px;
}

.site-footer__figure--left {
  left: 23.6%;
  width: 8.2%;
}

.site-footer__figure--right {
  /* Artboard x:1361 */
  left: 66.978%; /* 1361 / 2032 */
  width: 10.581%; /* 215 / 2032 */
}

.site-footer__heading {
  position: absolute;
  left: 50%;
  top: calc(136 / 722 * 100%);
  width: 33.1%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.15vw, 64px);
  line-height: 1.2;
  color: var(--footer-heading);
  z-index: 4;
}

.site-footer__script {
  position: relative;
  display: inline-block;
  font-family: "Pacifico", var(--font-script), cursive;
  font-weight: 400;
  font-size: clamp(40px, 4.7vw, 96px);
  line-height: 1;
}

/* Artboard — x:1083 y:225 */
.site-footer__sparkle {
  position: absolute;
  left: calc(1083 / 2032 * 100%);
  top: calc(225 / 722 * 100% - 14px);
  width: calc(76 / 2032 * 100%);
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.site-footer__cta {
  position: absolute;
  left: 50%;
  top: auto;
  /* Same baseline as cloud + girl illustrations */
  bottom: 32px;
  width: min(564px, 48%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  z-index: 4;
}

.site-footer__cta p {
  margin: 0;
  width: 100%;
  max-width: 544px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 20px);
  text-align: center;
  line-height: 1.4;
  color: #fff;
}

.site-footer__cta a {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__cta a:hover {
  opacity: 0.85;
}

/* ── Responsive breakpoints ──
   mobile portrait:  320–479
   mobile landscape: 480–599
   tablet portrait:  600–767
   tablet landscape: 768–1024
──────────────────────────────── */

/* Other works cards: more gap on tablet / mid widths (3-across) */
@media (max-width: 1280px) {
  .other-works__list {
    justify-content: center;
    gap: 32px;
  }

  .other-works__card {
    flex-shrink: 0;
  }
}

/* Hide footer pills below 1026px to avoid layout breaks */
@media (max-width: 1025px) {
  .site-footer__pill {
    display: none;
  }
}

/* Tablet landscape and below (≤1024) */
@media (max-width: 1024px) {
  .nav {
    height: auto;
    min-height: 72px;
    padding: 16px 28px;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  :root {
    --nav-height: 72px;
  }

  .nav__logo {
    font-size: 28px;
  }

  .nav__links {
    gap: 28px;
  }

  .nav__links a {
    font-size: 18px;
  }

  .hero {
    padding: 2rem 1.5rem calc(2rem + 48px);
    min-height: auto;
  }

  .hero__row {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 100%;
  }

  .hero__right {
    flex-shrink: 1;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }

  .hero__title-block {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
    overflow: visible;
    padding-right: 0;
    box-sizing: border-box;
  }

  .hero__title {
    font-size: clamp(40px, 7vw, 56px);
    white-space: normal;
    max-width: 100%;
  }

  .hero__tagline {
    text-align: left;
    margin-left: 4px;
  }

  .hero__award-wrap {
    margin: 38px 0 0 0;
  }

  /* Between name and folder (stacked): sit by the name, point down */
  .hero__arrow {
    left: 72%;
    right: auto;
    top: calc(clamp(40px, 7vw, 56px) * 0.72 + 32px);
    width: 56px;
    height: 72px;
    translate: none;
    transform: none;
  }

  .hero__arrow-inner {
    transform: none;
    width: 52px;
    height: 72px;
  }

  .folder-wrapper {
    --folder-scale: 0.68;
    margin-inline: auto;
  }

  .works,
  .other-works {
    padding: 80px 48px;
  }

  .works__title,
  .other-works__title {
    font-size: 36px;
  }

  .works__list {
    gap: 120px;
  }

  .other-works__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  .other-works__card {
    flex-shrink: 0;
  }

  .about-page,
  .contact-page,
  .coming-soon,
  .error-page,
  .page-content {
    padding-left: 48px;
    padding-right: 48px;
  }

  .about-page__layout {
    gap: 48px;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .case-study {
    padding: 40px 40px 96px;
  }

  .case-study__layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }

  .case-study__toc a {
    font-size: 16px;
  }

  .site-footer__stage {
    min-height: 480px;
    overflow: hidden;
  }

  .site-footer__heading {
    width: min(52%, 12.5em);
    top: 18%;
    font-size: clamp(24px, 3.6vw, 44px);
  }

  .site-footer__script {
    font-size: clamp(36px, 5.2vw, 68px);
  }

  .site-footer__cta {
    width: min(480px, 54%);
  }
}

/* Tablet portrait and below (≤767) */
@media (max-width: 767px) {
  .nav {
    padding: 14px 20px;
  }

  .nav__logo {
    font-size: 24px;
  }

  .nav__links {
    gap: 18px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav__links a {
    font-size: 16px;
  }

  .hero {
    padding: 96px 1.25rem 3rem;
  }

  .hero__row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .hero__title-block {
    text-align: center;
    width: 100%;
  }

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

  .hero__award-wrap {
    margin: 38px auto 0;
  }

  .hero__arrow {
    display: flex;
    left: 50%;
    right: auto;
    top: calc(100% - 52px);
    translate: calc(-50% + 110px) 0;
    width: 48px;
    height: 64px;
  }

  .hero__arrow-inner {
    width: 46px;
    height: 64px;
    /* Point down toward the skills folder below; flip + tip left */
    transform: scaleX(-1) rotate(-30deg);
  }

  .hero__right {
    align-items: center;
  }

  .folder-wrapper {
    --folder-scale: 0.62;
    margin-inline: auto;
  }

  .works,
  .other-works {
    padding: 72px 24px;
  }

  .works__main {
    width: 100%;
    max-width: min(300px, 100%);
    min-width: 0;
    margin: 0 auto;
    align-items: center;
  }

  .works__header {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .works__title {
    font-size: 32px;
    line-height: 1.15;
    text-align: center;
  }

  .works__hint {
    margin-left: 0;
  }

  .works__item,
  .works__card {
    width: min(300px, 100%);
  }

  .works__list {
    align-items: center;
    gap: 96px;
    width: 100%;
  }

  .other-works__inner {
    gap: 48px;
    align-items: center;
  }

  .other-works__title {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
  }

  .other-works__list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .other-works__card {
    width: 100%;
    max-width: 320px;
  }

  .about-page,
  .contact-page {
    padding: 72px 24px 80px;
    gap: 40px;
  }

  .about-page__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-page__photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-page__copy {
    text-align: left;
  }

  .about-page__award {
    margin-top: 56px;
  }

  .about-page__award-figure {
    max-width: 100%;
  }

  .contact-page__book-title {
    font-size: 32px;
  }

  .contact-page__calendar-wrap,
  .contact-page__calendar,
  .contact-page__calendar-fallback {
    min-height: 520px;
  }

  .contact-page__calendar {
    height: 520px;
  }

  .coming-soon,
  .error-page,
  .page-content {
    padding: 72px 24px;
    min-height: 50vh;
  }

  .case-study {
    padding: 28px 20px 72px;
  }

  .case-study__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-study__nav {
    position: sticky;
    top: var(--nav-height);
    z-index: 8;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -20px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid rgb(220, 220, 220);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    min-width: 0;
    max-width: 100vw;
  }

  .case-study__back {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .case-study__toc {
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 8px;
    width: max-content;
    min-width: max-content;
    overflow: visible;
  }

  .case-study__toc li {
    flex-shrink: 0;
    min-width: max-content;
  }

  .case-study__back,
  .case-study__toc a {
    font-size: 16px;
    padding: 6px 12px;
  }

  .case-study__section {
    scroll-margin-top: calc(var(--nav-height) + 56px);
  }

  /* Footer: flow layout so content stays inside the arch */
  .site-footer__stage {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
  }

  .site-footer__blob {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: clamp(48px, 10vw, 72px) clamp(40px, 10vw, 72px) 56px;
  }

  .site-footer__heading {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: min(100%, 13em);
    max-width: 100%;
    transform: none;
    font-size: clamp(24px, 5.6vw, 38px);
    line-height: 1.15;
    margin: 0;
  }

  .site-footer__script {
    display: block;
    margin-top: 0.08em;
    font-size: clamp(36px, 9vw, 58px);
  }

  .site-footer__sparkle {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    width: 44px;
    margin: 10px 0 20px;
  }

  .site-footer__cta {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    order: 3;
    width: 100%;
    max-width: 28em;
    transform: none;
    margin-top: 8px;
    gap: 16px;
    z-index: 4;
  }

  .site-footer__cta br {
    display: none;
  }

  .site-footer__cta p {
    font-size: clamp(13px, 2.4vw, 16px);
  }

  .site-footer__figure--left,
  .site-footer__figure--right {
    order: 0;
    opacity: 0.95;
    z-index: 1;
    bottom: 3%;
  }

  .site-footer__figure--left {
    left: 2%;
    width: 56px;
  }

  .site-footer__figure--right {
    left: auto;
    right: 1%;
    width: 72px;
  }
}

/* Mobile landscape and below (≤599) */
@media (max-width: 599px) {
  .nav {
    padding: 12px 16px;
    gap: 10px 16px;
  }

  .nav__logo {
    font-size: 22px;
  }

  .nav__links {
    gap: 14px;
  }

  .nav__links a {
    font-size: 14px;
  }

  .hero {
    padding: 80px 1rem 2.5rem;
  }

  .hero__title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero__tagline {
    font-size: 14px;
  }

  .folder-wrapper {
    --folder-scale: 0.55;
  }

  .works,
  .other-works {
    padding: 56px 16px;
  }

  .works__title,
  .other-works__title {
    font-size: 28px;
  }

  .works__list {
    gap: 80px;
  }

  .about-page,
  .contact-page,
  .coming-soon,
  .error-page,
  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-page__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .contact-page__title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .contact-page__email {
    font-size: 18px;
  }

  .contact-page__calendar-wrap,
  .contact-page__calendar,
  .contact-page__calendar-fallback {
    min-height: 480px;
  }

  .contact-page__calendar {
    height: 480px;
  }

  .case-study__section p,
  .case-study__accordion-summary {
    font-size: 15px;
  }

  .case-study__back {
    font-size: 16px;
  }

  .site-footer__blob {
    padding: 56px 36px 48px;
    border-radius: 0;
  }

  .site-footer__heading {
    font-size: clamp(22px, 6.5vw, 32px);
    width: min(100%, 12em);
  }

  .site-footer__script {
    font-size: clamp(34px, 10vw, 48px);
  }

  .site-footer__sparkle {
    width: 36px;
    margin: 8px 0 16px;
  }

  .site-footer__cta {
    gap: 14px;
    max-width: 24em;
  }

  .site-footer__cta p {
    font-size: 13px;
  }

  .site-footer__figure--left,
  .site-footer__figure--right {
    display: none;
  }

  .audio-player {
    font-size: 0.58rem;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
  }

  .audio-player__volume {
    padding-top: 48px;
    margin-top: -48px;
  }

  .audio-player__volume-popover {
    padding: 0.3rem 0.24rem;
  }

  .audio-player__volume-track {
    height: 36px;
  }

  .audio-player__volume-slider::-webkit-slider-runnable-track {
    height: 36px;
  }

  .audio-player__volume-slider::-moz-range-track {
    height: 36px;
  }

  .audio-player__progress {
    min-width: 32px;
  }
}

/* Mobile portrait (≤479) */
@media (max-width: 479px) {
  :root {
    --grid-size: 22px;
  }

  .nav {
    padding: 12px 12px;
  }

  .nav__logo {
    font-size: 20px;
  }

  .nav__links {
    gap: 10px 12px;
  }

  .nav__links a {
    font-size: 13px;
  }

  .hero {
    padding: 72px 0.75rem 2rem;
  }

  .hero__title {
    font-size: clamp(26px, 8.5vw, 34px);
    letter-spacing: -0.02em;
  }

  .hero__title-block {
    max-width: 100%;
  }

  .hero__arrow {
    display: flex;
    left: 50%;
    right: auto;
    top: calc(100% - 52px);
    translate: calc(-50% + 110px) 0;
    width: 42px;
    height: 58px;
  }

  .hero__arrow-inner {
    width: 40px;
    height: 58px;
    transform: scaleX(-1) rotate(-30deg);
  }

  .folder-wrapper {
    --folder-scale: 0.48;
  }

  .works,
  .other-works {
    padding: 48px 12px;
  }

  .works__main {
    max-width: 100%;
  }

  .works__item,
  .works__card {
    width: 100%;
    max-width: 280px;
  }

  .works__card {
    height: auto;
    aspect-ratio: 300 / 314;
  }

  .folder--works {
    --folder-scale: 0.93;
    width: calc(300px * var(--folder-scale));
    height: calc(275.362px * var(--folder-scale));
    left: 50%;
    transform: translateX(-50%);
  }

  .folder--works .folder__title {
    font-size: 13px;
  }

  .about-page,
  .contact-page {
    padding: 56px 12px 64px;
  }

  .about-page__photo {
    max-width: 100%;
  }

  .about-page__body p {
    font-size: 16px;
  }

  .coming-soon,
  .error-page,
  .page-content {
    padding: 56px 12px;
  }

  .coming-soon__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .case-study {
    padding: 20px 12px 56px;
  }

  .case-study__nav {
    margin-inline: -12px;
    padding: 10px 12px;
  }

  .case-study__toc a {
    font-size: 16px;
  }

  .case-study__section {
    padding-bottom: 40px;
    scroll-margin-top: calc(var(--nav-height) + 48px);
  }

  .site-footer__blob {
    padding: 52px 28px 40px;
    border-radius: 0;
  }

  .site-footer__heading {
    font-size: clamp(20px, 6.8vw, 26px);
    width: min(100%, 11em);
  }

  .site-footer__script {
    font-size: clamp(30px, 11vw, 40px);
  }

  .site-footer__sparkle {
    width: 28px;
    margin: 6px 0 12px;
  }

  .site-footer__cta {
    gap: 12px;
    max-width: 100%;
  }

  .site-footer__cta p {
    font-size: 12px;
  }

  .site-footer__figure--left {
    width: 36px;
    bottom: 2%;
  }

  .site-footer__figure--right {
    width: 48px;
    bottom: 2%;
  }
}
