:root {
  --navy: #10243A;
  --ink: #162435;
  --warm-white: #FAF6EF;
  --cream: #F5EFE5;
  --card: #FFFDF8;
  --teal: #18B9B0;
  --coral: #FF704D;
  --gold: #F7B733;
  --border: #E7DED2;
  --muted: #617083;
  --shadow: 0 18px 50px rgba(16, 36, 58, .10);
  --soft-shadow: 0 10px 28px rgba(16, 36, 58, .08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 180ms var(--ease);
  --slow: 520ms var(--ease);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--navy);
  background: var(--warm-white);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.90), rgba(250,246,239,.72) 36%, transparent 68%),
    var(--warm-white);
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(24, 185, 176, .48);
  outline-offset: 4px;
}

/* The page itself is the scroll container so each panel can snap into a full-screen moment. */
.snap-shell {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(76px, 7vw, 112px) clamp(18px, 5vw, 82px) 48px;
}

.hero-section {
  padding: clamp(92px, 7.4vw, 124px) clamp(24px, 4.2vw, 72px) clamp(28px, 3vw, 44px);
  overflow: hidden;
}

.menu-button,
.menu-close,
.modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button {
  position: fixed;
  z-index: 20;
  top: clamp(20px, 3vw, 42px);
  left: clamp(18px, 3vw, 44px);
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 6px;
  border-radius: 999px;
  transition: background var(--fast), transform var(--fast);
}

.menu-button:hover {
  background: rgba(255, 253, 248, .82);
  transform: translateY(-1px);
}

.menu-button span {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--navy);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow);
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 28px;
  right: 34px;
  font-size: 54px;
  line-height: 1;
}

.menu-panel {
  display: grid;
  gap: 14px;
  text-align: center;
}

.menu-panel a {
  display: block;
  padding: 8px 24px;
  font-size: clamp(42px, 8vw, 94px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 24px;
  transition: color var(--fast), transform var(--fast);
}

.menu-panel a:hover {
  color: var(--teal);
  transform: translateY(-2px);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 14px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-brand {
  transform: scale(1.12);
  transform-origin: center;
}

.section-brand {
  justify-self: center;
  margin-bottom: 32px;
}

.left-brand {
  justify-self: start;
}

.wordmark {
  font-family: "Nunito", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 78px;
  line-height: .76;
  font-weight: 800;
  letter-spacing: .01em;
}

.mini + .wordmark,
.section-brand .wordmark {
  font-size: 38px;
}

/* Character bars are DOM elements so the bodies, eyes, and smile can animate independently. */
.character-mark {
  width: 150px;
  height: 116px;
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
}

.character-mark.mini {
  width: 72px;
  height: 58px;
  gap: 5px;
}

.bar {
  position: relative;
  display: block;
  width: 39px;
  border-radius: 10px;
  animation: breathe 4.8s var(--ease) infinite;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.38);
  transition: transform var(--fast), border-radius var(--fast);
}

.mini .bar {
  width: 20px;
  border-radius: 6px;
}

.bar-small {
  height: 62px;
  background: linear-gradient(145deg, #FFD569, var(--gold));
  animation-delay: -.7s;
}

.bar-mid {
  height: 88px;
  background: linear-gradient(145deg, #FF936F, var(--coral));
  animation-delay: -1.4s;
}

.bar-tall {
  height: 116px;
  background: linear-gradient(145deg, #44D0C8, var(--teal));
  animation-delay: -2.1s;
}

.mini .bar-small { height: 32px; }
.mini .bar-mid { height: 44px; }
.mini .bar-tall { height: 58px; }

.brand:hover .bar,
.character-mark:hover .bar {
  transform: translateY(-3px);
}

.eye {
  position: absolute;
  top: 32%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--navy);
  transform-origin: center;
  animation: blink 6.5s infinite;
}

.mini .eye {
  width: 3px;
  height: 3px;
}

.eye-left { left: 26%; }
.eye-right { right: 26%; }
.bar-mid .eye { animation-delay: 1.7s; }
.bar-tall .eye { animation-delay: 3.2s; }
.brand:hover .eye,
.character-mark:hover .eye {
  animation: hoverBlink 520ms var(--ease) 1;
}

.smile {
  position: absolute;
  left: 28%;
  top: 48%;
  width: 44%;
  height: 14px;
  border-bottom: 4px solid var(--navy);
  border-radius: 0 0 999px 999px;
  transition: height var(--fast), transform var(--fast);
}

.mini .smile {
  border-bottom-width: 2px;
  height: 7px;
}

.brand:hover .smile,
.character-mark:hover .smile {
  height: 17px;
  transform: translateY(1px);
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  48% { transform: translateY(-2px); }
}

@keyframes blink {
  0%, 90%, 94%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(.08); }
}

@keyframes hoverBlink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.08); }
}

.hero-inner {
  width: min(1360px, 100%);
  max-width: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.4vw, 28px);
  text-align: center;
}

.hero-section h1,
.section-heading h2,
.about-grid h2,
.contact-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 4.8vw, 62px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-actions,
.contact-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.button {
  min-width: 154px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 11px 26px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: rgba(255, 253, 248, .70);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--fast), color var(--fast), transform var(--fast), box-shadow var(--fast);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.contact-reveal.is-revealed {
  min-width: min(100%, 320px);
  user-select: all;
}

.contact-reveal.is-revealed span {
  overflow-wrap: anywhere;
}

.button-dark {
  background: var(--navy);
  color: #fff;
}

.service-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}

.home-services {
  margin-top: clamp(28px, 4vw, 54px);
}

.service-card {
  min-height: clamp(300px, 27vw, 356px);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  padding: clamp(26px, 3vw, 36px) 22px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 253, 248, .76);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  text-align: center;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 185, 176, .58);
  background: var(--card);
  box-shadow: var(--shadow);
}

.service-card strong {
  max-width: 13ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.12;
}

.service-card span:not(.service-icon) {
  color: var(--muted);
  max-width: 18ch;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.36;
}

.service-card em {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: clamp(12px, 2vw, 20px) 0 0;
  color: var(--navy);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 700;
}

.hero-proof span {
  color: var(--teal);
  font-size: 28px;
  line-height: 1;
}

.service-icon {
  width: 72px;
  height: 72px;
  display: inline-block;
  color: var(--teal);
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.modal-icon {
  width: 58px;
  height: 58px;
  display: inline-block;
  color: var(--teal);
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.service-icon.teal,
.modal-icon.teal { color: var(--teal); }
.service-icon.coral,
.modal-icon.coral { color: var(--coral); }
.service-icon.gold,
.modal-icon.gold { color: var(--gold); }

[data-icon="target"] { mask-image: url("assets/target.svg"); -webkit-mask-image: url("assets/target.svg"); }
[data-icon="bulb"] { mask-image: url("assets/bulb.svg"); -webkit-mask-image: url("assets/bulb.svg"); }
[data-icon="design"] { mask-image: url("assets/design.svg"); -webkit-mask-image: url("assets/design.svg"); }
[data-icon="code"] { mask-image: url("assets/code.svg"); -webkit-mask-image: url("assets/code.svg"); }
[data-icon="chat"] { mask-image: url("assets/chat.svg"); -webkit-mask-image: url("assets/chat.svg"); }
[data-icon="bot"] { mask-image: url("assets/bot.svg"); -webkit-mask-image: url("assets/bot.svg"); }
[data-icon="search"] { mask-image: url("assets/search.svg"); -webkit-mask-image: url("assets/search.svg"); }
[data-icon="spark"] { mask-image: url("assets/spark.svg"); -webkit-mask-image: url("assets/spark.svg"); }

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading p,
.section-lede,
.contact-card p {
  margin: 16px auto 0;
  max-width: 780px;
  color: #27435f;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.35;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-row,
.case-card,
.belief-stack article,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .84);
  box-shadow: var(--soft-shadow);
}

.service-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.service-row:hover {
  transform: translateX(4px);
  border-color: rgba(24, 185, 176, .55);
  box-shadow: var(--shadow);
}

.service-row h3 {
  margin: 0 0 3px;
  font-size: 24px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.row-arrow,
.circle-button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.case-stack {
  display: grid;
  gap: 16px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(230px, 42%) 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 185, 176, .55);
  background: var(--card);
  box-shadow: var(--shadow);
}

.case-card:focus-visible {
  outline-offset: 6px;
}

.case-photo {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #8f8a83;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(245,239,229,.85), rgba(255,253,248,.95));
  overflow: hidden;
}

.case-photo img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
}

.case-photo > span {
  width: 58px;
  height: 50px;
  border: 4px solid #c8c0b7;
  border-radius: 8px;
  position: relative;
}

.case-photo > span::before,
.case-photo > span::after {
  content: "";
  position: absolute;
}

.case-photo > span::before {
  width: 10px;
  height: 10px;
  left: 8px;
  top: 8px;
  border: 4px solid #c8c0b7;
  border-radius: 50%;
}

.case-photo > span::after {
  left: 9px;
  right: 7px;
  bottom: 8px;
  height: 22px;
  border-left: 4px solid #c8c0b7;
  border-bottom: 4px solid #c8c0b7;
  transform: skewY(-40deg);
}

.case-content {
  position: relative;
  padding-left: 70px;
  display: grid;
  gap: 8px;
}

.case-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
}

.teal-bg { background: var(--teal); }
.coral-bg { background: var(--coral); }
.gold-bg { background: var(--gold); }

.case-content h3,
.belief-stack h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.case-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-content strong {
  font-size: 28px;
  line-height: 1.05;
}

.case-content p,
.belief-stack p {
  margin: 0 0 12px;
  color: #27435f;
  line-height: 1.45;
}

.case-content > span:not(.case-number):not(.tags):not(.case-label) {
  color: #27435f;
  line-height: 1.42;
}

.case-content ul,
.modal-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-content li,
.modal-bullets li {
  position: relative;
  margin: 6px 0;
  padding-left: 24px;
  color: #27435f;
}

.case-content li::before,
.modal-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}

.about-grid h2 {
  margin-top: 30px;
}

.section-lede {
  margin: 24px 0 30px;
}

.belief-stack {
  display: grid;
  gap: 18px;
}

.belief-stack article {
  padding: 26px;
}

.accent-dot {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  margin-bottom: 16px;
}

.contact-card {
  width: min(980px, 100%);
  padding: clamp(38px, 8vw, 88px);
  text-align: center;
}

.contact-actions {
  margin-top: 28px;
}

.service-modal,
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 34px;
  visibility: hidden;
  opacity: 1;
  pointer-events: none;
}

.service-modal.is-open,
.case-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 36, 58, .30);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 68px);
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  padding: clamp(34px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 30px 100px rgba(16, 36, 58, .24);
  transform: scale(.96) translateY(18px);
  transition: transform var(--slow);
}

.modal-panel,
.case-modal-panel {
  scrollbar-color: rgba(16, 36, 58, .28) transparent;
  scrollbar-width: thin;
}

.modal-panel::-webkit-scrollbar,
.case-modal-panel::-webkit-scrollbar {
  width: 16px;
}

.modal-panel::-webkit-scrollbar-thumb,
.case-modal-panel::-webkit-scrollbar-thumb {
  border: 5px solid transparent;
  border-radius: 999px;
  background: rgba(16, 36, 58, .26);
  background-clip: content-box;
}

.modal-panel::-webkit-scrollbar-track,
.case-modal-panel::-webkit-scrollbar-track {
  background: transparent;
}

.modal-panel:focus,
.case-modal-panel:focus {
  outline: none;
}

.service-modal.is-open .modal-panel {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 222, 210, .82);
  background: rgba(255, 253, 248, .78);
  color: var(--navy);
  font-size: 34px;
  line-height: .8;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 36, 58, .08);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}

.modal-close:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.modal-grid {
  display: block;
  min-height: 0;
  min-width: 0;
}

.modal-copy {
  max-width: 640px;
  padding-right: clamp(8px, 4vw, 38px);
  min-width: 0;
}

.modal-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1;
}

.modal-statement {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.modal-description p {
  margin: 0 0 14px;
  color: #27435f;
  font-size: 19px;
  line-height: 1.48;
}

.modal-bullets {
  margin-top: 24px;
}

.modal-actions {
  justify-content: flex-start;
  margin-top: 30px;
}

.case-modal-panel {
  position: relative;
  width: min(1500px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 30px 100px rgba(16, 36, 58, .24);
  transform: scale(.96) translateY(18px);
  transition: transform var(--slow);
}

.case-modal.is-open .case-modal-panel {
  transform: scale(1) translateY(0);
}

.case-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 222, 210, .82);
  border-radius: 50%;
  background: rgba(255, 253, 248, .84);
  color: var(--navy);
  font-size: 34px;
  line-height: .8;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 36, 58, .08);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}

.case-modal-close:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.case-detail-content {
  display: grid;
  gap: 24px;
}

.case-detail-hero {
  padding: 0 clamp(48px, 5vw, 70px) 6px 0;
}

.case-detail-title {
  display: grid;
  gap: 14px;
  max-width: 1120px;
}

.case-detail-title > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-detail-title h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
}

.case-client-line {
  margin: 0;
  color: #27435f;
  font-size: 18px;
  font-weight: 800;
}

.case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 185, 176, .12);
  color: #087b75;
  font-size: 13px;
  font-weight: 900;
}

.case-detail-tags span:nth-child(2n) {
  background: rgba(255, 112, 77, .14);
  color: #b43b21;
}

.case-detail-tags span:nth-child(3n) {
  background: rgba(247, 183, 51, .18);
  color: #9a6500;
}

.case-detail-overview {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.section-kicker,
.case-writing h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-kicker .service-icon,
.case-writing .service-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.case-detail-overview p {
  margin: 0;
  color: #172c42;
  font-size: 17px;
  line-height: 1.5;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, .98fr) minmax(360px, 1.02fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.case-media-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.case-media-viewer {
  position: relative;
  min-height: 0;
  height: min(34vw, 400px);
  max-height: min(52vh, 400px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.case-media-viewer img,
.case-media-viewer video,
.case-media-video-link {
  width: 100%;
  height: 100%;
  max-height: inherit;
  display: block;
  object-fit: contain;
}

.case-media-video-link {
  position: relative;
  color: inherit;
}

.case-media-video-link img {
  transition: transform var(--fast), filter var(--fast);
}

.case-media-video-link:hover img {
  transform: scale(1.01);
  filter: saturate(1.02) brightness(.96);
}

.case-video-badge {
  position: absolute;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, .92);
  color: var(--navy);
  font-size: 30px;
  box-shadow: var(--soft-shadow);
  pointer-events: none;
}

.case-video-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 253, 248, .44);
  border-radius: 999px;
  background: rgba(16, 36, 58, .62);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(16, 36, 58, .18);
}

.case-video-overlay span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, .22);
  font-size: 10px;
}

.case-link-preview,
.case-media-placeholder {
  width: min(460px, calc(100% - 44px));
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 253, 248, .86);
  text-align: center;
}

.case-link-preview .service-icon,
.case-media-placeholder .service-icon {
  width: 56px;
  height: 56px;
}

.case-link-preview strong,
.case-media-placeholder strong {
  font-size: 28px;
}

.case-link-preview small,
.case-media-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.case-media-caption {
  min-height: 50px;
  padding: 0 4px;
  color: #27435f;
}

.case-media-caption p {
  margin: 0;
  line-height: 1.45;
}

.case-media-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.case-media-prev,
.case-media-next {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 253, 248, .86);
  color: var(--navy);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.case-media-count {
  color: var(--muted);
  font-weight: 800;
}

.case-media-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.case-media-thumb {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 253, 248, .9);
  color: var(--navy);
  cursor: pointer;
}

.case-media-thumb.is-active {
  border-color: var(--teal);
}

.case-media-thumb img {
  width: 100%;
  height: 76px;
  display: block;
  object-fit: cover;
}

.case-media-thumb > span:not(.thumb-video-dot) {
  display: grid;
  place-items: center;
  min-height: 76px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.thumb-video-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  min-height: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 36, 58, .68);
  color: #fffdf8;
  font-size: 10px;
}

.case-writing {
  display: grid;
  gap: 0;
  padding-left: clamp(20px, 4vw, 46px);
  border-left: 1px solid var(--border);
}

.case-writing section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.case-writing section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.case-writing h3 {
  margin: 0 0 14px;
}

.case-writing p,
.case-writing li {
  color: #172c42;
  font-size: 17px;
  line-height: 1.5;
}

.case-writing p {
  margin: 0;
}

.case-writing ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-writing li {
  position: relative;
  padding-left: 22px;
}

.case-writing li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .snap-section {
    min-height: auto;
  }

  .hero-section,
  .overview-section,
  .work-section,
  .about-section,
  .contact-section {
    min-height: 100vh;
  }

  .modal-grid,
  .about-grid,
  .case-detail-hero,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-copy {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 34px;
  }

  .case-writing {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .snap-shell {
    scroll-snap-type: y proximity;
  }

  .snap-section {
    padding: 84px 16px 34px;
  }

  .hero-section {
    padding-top: 112px;
    padding-bottom: 72px;
  }

  .hero-inner {
    min-height: calc(100vh - 184px);
    align-content: center;
    gap: 30px;
  }

  .menu-button {
    top: 14px;
    left: 12px;
    background: rgba(255, 253, 248, .62);
  }

  .hero-brand {
    transform: scale(.86);
    margin-bottom: 8px;
  }

  .hero-section h1 br {
    display: block;
  }

  .hero-section h1 {
    max-width: 320px;
    overflow-wrap: normal;
  }

  .character-mark {
    width: 112px;
    height: 96px;
    gap: 9px;
  }

  .bar { width: 31px; }
  .bar-small { height: 52px; }
  .bar-mid { height: 72px; }
  .bar-tall { height: 96px; }
  .wordmark { font-size: 52px; }

  .hero-section h1,
  .section-heading h2,
  .about-grid h2,
  .contact-card h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-actions,
  .contact-actions,
  .modal-actions {
    width: 100%;
    max-width: 342px;
    flex-direction: column;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 4px;
  }

  .button {
    min-width: 0;
    width: 100%;
    min-height: 58px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .home-services {
    display: none;
  }

  .service-card {
    min-height: 260px;
  }

  .hero-proof {
    display: none;
  }

  .service-row {
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
  }

  .service-row .service-icon {
    width: 46px;
    height: 46px;
  }

  .service-row h3 {
    font-size: 20px;
  }

  .service-row p {
    font-size: 15px;
  }

  .case-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-content {
    padding-left: 0;
    padding-top: 58px;
  }

  .case-content strong {
    font-size: 24px;
  }

  .circle-button {
    justify-self: start;
  }

  .contact-card {
    padding: 34px 20px;
  }

  .service-modal {
    padding: 16px;
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-x: hidden;
    border-radius: 22px;
    padding: 54px 18px 24px;
  }

  .modal-grid {
    display: block;
    min-height: 0;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .modal-copy h2 {
    max-width: 100%;
    font-size: 38px;
  }

  .modal-copy {
    width: 100%;
    max-width: 100%;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .modal-statement {
    max-width: 100%;
    font-size: 22px;
    overflow-wrap: break-word;
  }

  .modal-description p {
    max-width: 100%;
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .case-modal {
    padding: 0;
  }

  .case-modal-panel {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding: 16px 16px 28px;
  }

  .case-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .case-detail-content {
    gap: 18px;
  }

  .case-detail-hero {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .case-detail-title {
    gap: 10px;
  }

  .case-detail-title h2 {
    max-width: 100%;
    font-size: clamp(30px, 7.4vw, 36px);
    overflow-wrap: break-word;
  }

  .case-detail-title > span {
    display: none;
  }

  .case-client-line {
    font-size: 16px;
  }

  .case-detail-tags {
    display: none;
  }

  .case-detail-overview {
    min-height: auto;
    margin-top: 0;
    padding: 0 0 22px;
    border-top: 0;
  }

  .case-detail-overview p {
    margin-top: 0;
    font-size: 16px;
  }

  .case-detail-grid {
    gap: 24px;
  }

  .case-media-viewer,
  .case-media-viewer img,
  .case-media-viewer video,
  .case-media-video-link {
    height: auto;
    min-height: 260px;
    max-height: none;
  }

  .case-media-caption {
    min-height: auto;
    font-size: 15px;
  }

  .case-media-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .case-media-thumb {
    min-width: 74px;
    min-height: 58px;
  }

  .case-media-thumb img,
  .case-media-thumb > span:not(.thumb-video-dot) {
    height: 58px;
    min-height: 58px;
  }

  .case-writing section {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }

  .case-writing h3 {
    font-size: 16px;
  }

  .case-writing .service-icon {
    width: 26px;
    height: 26px;
  }

  .case-writing p,
  .case-writing li {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
