/* Mingjin portfolio — DotGothic 16 primary; Inter for long-form; Space Mono for meta */

:root {
  --bg-top: #d4f1a1;
  --bg-mid: #ffffff;
  --bg-bottom: #e0f7fa;
  --text: #1a3366;
  --text-muted: #6b7a8f;
  --nav-red: #c41e3a;
  --nav-red-hover: #a01830;
  --card-border: #333333;
  /* Google Fonts serves this family name exactly: */
  --font-dotgothic: "DotGothic 16", sans-serif;
  --font-inter: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-hero-script: "Herr Von Muellerhoff", cursive;
  --max: 52rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Base: DotGothic 16 everywhere unless overridden with .font-inter */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-dotgothic);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-mid) 45%, var(--bg-bottom));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.font-inter {
  font-family: var(--font-inter);
  font-weight: 300;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--bg-mid);
  color: var(--text);
  font-family: var(--font-dotgothic);
  font-weight: 400;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Top bar */
.top-bar {
  width: 100%;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(26, 51, 102, 0.12);
  background: rgba(255, 255, 255, 0.35);
}

.top-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-family: var(--font-dotgothic);
  font-size: 0.9375rem;
  font-weight: 400;
}

.top-nav__link {
  position: relative;
  z-index: 0;
  color: var(--nav-red);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-nav__link::after {
  content: "";
  position: absolute;
  left: -0.85rem;
  right: -0.85rem;
  top: -0.65rem;
  bottom: -0.65rem;
  z-index: -1;
}

.top-nav__link:hover {
  color: var(--nav-red-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-nav__link[aria-current="page"] {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Page */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero__title {
  margin: 0 0 1.75rem;
  line-height: 1.2;
}

.hero__title-script {
  display: block;
  font-family: var(--font-hero-script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.hero__title-block {
  display: block;
  font-family: var(--font-dotgothic);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero__copy {
  text-align: left;
  max-width: 42rem;
  margin: 0 auto;
}

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

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

/* Sections */
.section {
  margin-bottom: 3.5rem;
}

.section__heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-dotgothic);
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Work cards */
.work-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-card {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  text-align: left;
}

.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.work-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-dotgothic);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.work-card__body {
  margin: 0;
  max-width: 100%;
  font-size: 1rem;
  color: var(--text);
}

/* Quote grid */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.quote-card {
  margin: 0;
  padding: 1.1rem 1rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quote-card__text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.quote-card__text p {
  margin: 0;
}

.quote-card__by {
  margin-top: auto;
  font-family: var(--font-dotgothic);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: none;
  border-image: none;
}

@media (min-width: 720px) {
  .site-footer {
    flex-direction: row;
    align-items: center;
  }
}

.site-footer__msg {
  margin: 0;
  font-size: 1rem;
  max-width: 28rem;
  line-height: 1.45;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.footer-link {
  font-family: var(--font-dotgothic);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stub page */
.stub {
  text-align: center;
  padding: 4rem 1rem;
}

.stub p {
  margin: 0;
  font-family: var(--font-dotgothic);
  font-size: 1rem;
  font-weight: 400;
}

/* ——— Landing (Figma modular home) ——— */
body.page-landing {
  background: #c4b59a;
  min-height: 100vh;
  overflow-x: clip;
  cursor: url("assets/cursor-horse.png") 42 31, auto;
}

@media (prefers-reduced-motion: reduce) {
  body.page-landing {
    cursor: url("assets/cursor-horse.png") 42 31, auto;
  }
}

.page-landing .skip-link:focus {
  z-index: 20000;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, #ddd2bc 0%, #c9b896 42%, #a89478 100%);
  pointer-events: none;
}

.landing-bg__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.landing-canvas {
  position: relative;
  z-index: 1;
  /* Figma 189:52 artboard 1512×1154 — use calc(N * 100vw / 1512) so values stay valid lengths (never length×length) */
  min-height: max(
    100vh,
    min(1154px, calc(1154 * 100vw / 1512)),
    calc(964 * 100vw / 1512 + 118px + 4rem)
  );
  padding: 0.5rem 0.75rem 3rem;
  max-width: none;
  margin: 0;
}

/* Subpages: reuse home `main.landing-canvas` + fixed nav stack (no home figma min-height) */
.landing-canvas.landing-canvas--sandbox {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0.5rem 0.75rem 0;
  box-sizing: border-box;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1.65rem 1rem 1.2rem;
  background: linear-gradient(to bottom, rgba(250, 247, 242, 0.92), rgba(250, 247, 242, 0));
  pointer-events: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.landing-nav__inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.75rem, 4.2vw, 3rem);
  width: max-content;
  min-width: 100%;
  align-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
  color: #b23323;
}

.landing-nav__link {
  position: relative;
  z-index: 0;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid transparent;
}

/* Widen invisible hit area so the custom cursor does not need pixel-perfect aim */
.landing-nav__link::after {
  content: "";
  position: absolute;
  left: -1.15rem;
  right: -1.15rem;
  top: -0.85rem;
  bottom: -0.85rem;
  z-index: -1;
}

.landing-nav__link:hover {
  border-bottom-color: currentColor;
}

.landing-nav__link[aria-current="page"] {
  border-bottom-color: currentColor;
}

@media (max-width: 520px) {
  .landing-nav__inner {
    gap: 0.75rem;
    font-size: 16px;
    justify-content: flex-start;
  }
}

.font-source-serif {
  font-family: "Source Serif 4", Georgia, serif;
}

.font-source-code {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 400;
  line-height: 1.3;
}

.modular {
  --panel-bg: #ffffff;
  position: absolute;
  left: calc(var(--base-left, 10%) + var(--drag-x, 0px));
  top: calc(var(--base-top, 10%) + var(--drag-y, 0px));
  z-index: 10;
  width: var(--panel-width, auto);
  max-width: min(var(--panel-max, 100%), calc(100vw - 1.5rem));
  background-color: var(--panel-bg);
  box-shadow: 0 12px 40px rgba(26, 20, 10, 0.12), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 2px;
  cursor: url("assets/cursor-horse.png") 42 31, grab;
  touch-action: auto;
}

.modular a {
  cursor: url("assets/cursor-horse.png") 42 31, pointer;
}

.modular.is-dragging {
  cursor: url("assets/cursor-horse.png") 42 31, grabbing;
  box-shadow: 0 20px 50px rgba(26, 20, 10, 0.22);
}

.modular.reduced-motion {
  transition: none;
}

.modular__body {
  position: relative;
}

/* Intro — Figma 189:141 @ (567, 254) w 410; tops offset by nav h 71 */
.modular--intro {
  --panel-width: min(410px, 92vw);
  --panel-max: 410px;
  --panel-bg: #909ff3;
  --intro-ring-stroke: #791f14;
  --intro-ring-stroke-w: 0.649444px;
  --intro-mark-h: 2.4375rem;
  border: none;
  z-index: 12;
  --base-left: max(0.75rem, min(min(567px, calc(567 * 100vw / 1512)), calc(100vw - min(410px, 92vw) - 1rem)));
  --base-top: min(183px, calc(183 * 100vw / 1512));
}

.intro-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 34px 29px;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: thin;
}

.intro-card__top {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.intro-card__header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 39px;
  margin: 0;
  min-width: 0;
}

.intro-card__name {
  margin: 0;
  flex-shrink: 0;
  font-family: "Mea Culpa", cursive;
  font-size: clamp(2.25rem, 5vw, 2.8rem);
  letter-spacing: 0.1em;
  color: #791f14;
  line-height: 1;
}

.intro-card__marks {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.intro-card__photo-ring {
  position: relative;
  box-sizing: border-box;
  height: var(--intro-mark-h);
  width: calc(var(--intro-mark-h) * (82.4793 / 39.6161));
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: var(--intro-ring-stroke-w) solid var(--intro-ring-stroke);
  background: #909ff3;
}

.intro-card__photo-ring--fallback {
  background: linear-gradient(135deg, #e8d5cf, #c9a99e);
}

.intro-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.intro-card__han {
  position: relative;
  box-sizing: border-box;
  width: var(--intro-mark-h);
  height: var(--intro-mark-h);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: var(--intro-ring-stroke-w) solid var(--intro-ring-stroke);
  background: transparent;
}

.intro-card__han-char {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #791f14;
  line-height: 1;
}

.intro-card__rules {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
}

.intro-card__rule--solid {
  width: 100%;
  height: 1px;
  background-color: #791f14;
  opacity: 0.9;
}

.intro-card__rule--dashed {
  width: 100%;
  height: 0;
  border: 0;
  border-bottom: 1px dashed #791f14;
  opacity: 0.9;
}

.intro-card__copy {
  cursor: text;
  color: #791f14;
  font-size: 0.875rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.intro-card__copy p {
  margin: 0;
}

/* Selected works — Figma 189:53 @ (172, 506) w 636 */
.modular--works {
  --panel-width: min(636px, 94vw);
  --panel-max: 636px;
  --panel-bg: transparent;
  background: transparent;
  background-color: transparent;
  border: none;
  box-shadow: none;
  z-index: 11;
  /* Figma 172 / 435, nudged left + up for gap vs Research */
  --base-left: max(0.75rem, min(min(120px, calc(120 * 100vw / 1512)), calc(100vw - min(636px, 94vw) - 1rem)));
  --base-top: min(420px, calc(420 * 100vw / 1512));
}

.works-card {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 12px 28px rgba(26, 20, 10, 0.14));
}

.works-card__shape {
  display: block;
  width: 100%;
  height: auto;
}

.works-card__inner {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  /* ~560/636 of prior padding so inset scales with the narrower card */
  padding: calc(2.6rem + 30px) 1.1rem calc(1.2rem + 50px) 1.1rem;
  box-sizing: border-box;
}

.works-card__title {
  position: relative;
  margin: 0 0 1.1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.06rem);
  font-weight: 400;
  color: #000;
}

.works-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.works-card__item {
  border-top: 1px solid #000;
  padding: 1.1rem 0.35rem 1.1rem 0.35rem;
}

.works-card__item-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.works-card__text-col {
  flex: 1;
  min-width: 0;
}

.works-card__row {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.62rem);
  line-height: 1.2;
  color: #000;
  margin-bottom: 0.2rem;
}

.works-card__idx {
  font-style: normal;
}

.works-card__client {
  font-style: italic;
}

.works-card__desc {
  margin: 0;
  max-width: none;
  font-size: 0.8125rem;
  color: #000;
}

.works-card__arrow-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.works-card__arrow {
  display: block;
  height: 1.35rem;
  width: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.works-card__item:hover .works-card__arrow,
.works-card__item:focus-within .works-card__arrow,
.works-card__item-link:hover .works-card__arrow,
.works-card__item-link:focus-visible .works-card__arrow {
  opacity: 1;
}

.works-card__item-link {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  margin: -0.35rem -0.2rem;
  padding: 0.35rem 0.2rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.works-card__item-link::after {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: -0.65rem;
  bottom: -0.65rem;
  z-index: -1;
}

.works-card__item-link > .works-card__item-row {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.works-card__item-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .works-card__arrow {
    transition: none;
  }
}

/* Research — Figma 189:81 @ (861, 491) w ~410 */
.modular--research {
  --panel-width: min(410px, 92vw);
  --panel-max: 410px;
  --panel-bg: #87a971;
  border: none;
  z-index: 10;
  --base-left: max(0.75rem, min(min(861px, calc(861 * 100vw / 1512)), calc(100vw - min(410px, 92vw) - 1rem)));
  --base-top: min(420px, calc(420 * 100vw / 1512));
}

.research-card {
  --research-pad-x: 1.7rem;
  padding: 2.15rem var(--research-pad-x) 2rem var(--research-pad-x);
  min-height: 24rem;
  box-sizing: border-box;
}

.research-card__head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.65rem;
}

.research-card__title {
  margin: 0 0 0.5rem 0.35rem;
  font-size: clamp(1.65rem, 3.2vw, 2.06rem);
  /* Match rail offset math: default line-height is taller than font-size, which pulled the rail up past the rule. */
  line-height: 1;
  font-style: italic;
  font-weight: 400;
  color: #000;
}

.research-card__title-rule {
  display: block;
  box-sizing: border-box;
  height: 1px;
  width: 100%;
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.research-card__rail {
  position: absolute;
  left: calc(var(--research-pad-x) + 0.25rem + 1.22rem + 11px);
  /* Align top with bottom of title rule (do not include head margin — that gap is filled by the rail). */
  top: calc(2.15rem + clamp(1.65rem, 3.2vw, 2.06rem) + 0.5rem + 1px);
  bottom: 1.5rem;
  width: 1px;
  background: #000;
  opacity: 0.55;
  pointer-events: none;
}

.research-card__timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
  position: relative;
}

.research-card__event {
  position: relative;
  display: grid;
  grid-template-columns: 1.22rem 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.65rem 0 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.45);
}

.research-card__event:first-of-type {
  border-top: none;
  padding-top: 0.15rem;
}

.research-card__dot {
  width: 1.22rem;
  height: 1.22rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  border: none;
  background: #000;
  justify-self: start;
}

.research-card__text {
  margin: 0;
  width: auto;
  max-width: 100%;
  padding: 0 10px;
  font-size: 0.8125rem;
  color: #000;
}

/* Drag — Figma 189:209; abs (861+326, 491-95) = (1187, 396) */
.modular--drag-hint {
  --panel-bg: transparent;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 14;
  --panel-width: min(168px, calc(100vw - 2rem));
  --panel-max: 168px;
  --base-left: max(0.75rem, min(min(1187px, calc(1187 * 100vw / 1512)), calc(100vw - min(168px, calc(100vw - 2rem)) - 1rem)));
  --base-top: min(325px, calc(325 * 100vw / 1512));
}

.drag-hint {
  position: relative;
  filter: drop-shadow(0 10px 22px rgba(26, 20, 10, 0.18));
}

.drag-hint__frame {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 168 / 164;
  margin: 0 auto;
}

.drag-hint__union {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
}

.drag-hint__script {
  position: absolute;
  left: calc(85 / 168 * 100%);
  top: calc(44 / 164 * 100%);
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  font-family: "Mea Culpa", cursive;
  font-size: 3.125rem;
  font-size: clamp(2.25rem, 29.76cqw, 3.125rem);
  font-weight: 400;
  line-height: 1.1;
  color: #792f46;
  white-space: nowrap;
}

.drag-hint__line {
  position: absolute;
  margin: 0;
  padding: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.625rem;
  font-size: clamp(0.5625rem, 5.952cqw, 0.6875rem);
  line-height: 1.1;
  color: #7b3349;
  white-space: nowrap;
  transform: translateX(-50%);
}

.drag-hint__line--around {
  left: calc(63 / 168 * 100%);
  top: calc(101 / 164 * 100%);
}

.drag-hint__line--cards {
  left: calc(84 / 168 * 100%);
  top: calc(112 / 164 * 100%);
}

/* Contact — Figma 193:214 @ (467, 1035) w 341 */
.modular--contact {
  --panel-width: min(401px, calc(100vw - 2rem));
  --panel-max: 401px;
  --base-left: max(0.75rem, min(min(467px, calc(467 * 100vw / 1512)), calc(100vw - min(401px, calc(100vw - 2rem)) - 1rem)));
  --base-top: min(1124px, calc(1124 * 100vw / 1512));
  --panel-bg: transparent;
  background: transparent;
  background-color: transparent;
  border: none;
  box-shadow: none;
  z-index: 13;
}

.contact-card--figma {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 12px 28px rgba(26, 20, 10, 0.16));
}

.contact-card__frame {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 401 / 152;
  margin: 0 auto;
  background: #d1cf70;
  box-sizing: border-box;
}

.contact-card__mountains {
  position: absolute;
  left: calc(22 / 401 * 100%);
  top: calc(31 / 152 * 100%);
  width: calc(156.364 / 401 * 100%);
  height: auto;
  max-height: calc(70 / 152 * 100%);
  display: block;
  pointer-events: none;
}

.contact-card__links--figma {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card__links--figma li {
  margin: 0;
  padding: 0;
}

.contact-card__link {
  position: absolute;
  z-index: 1;
  margin: 0;
  font-size: 1.125rem;
  font-size: clamp(0.875rem, 5.278cqw, 1.125rem);
  font-weight: 400;
  line-height: 1.1;
  color: #534b2c;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-card__link--email {
  left: calc(242 / 401 * 100%);
  top: calc(35 / 152 * 100%);
}

.contact-card__link--linkedin {
  left: calc(242 / 401 * 100%);
  top: calc(69 / 152 * 100%);
}

.contact-card__link--twitter {
  left: calc(242 / 401 * 100%);
  top: calc(103 / 152 * 100%);
}

.contact-card__link::after {
  content: "";
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  top: -0.35rem;
  bottom: -0.35rem;
  z-index: -1;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
  color: #2e2918;
}

@media (prefers-reduced-motion: reduce) {
  .contact-card__link {
    transition: none;
  }
}

/* Case-study footer: minimal strip (mountain left, links + location right), centered */
.site-footer--case {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.site-footer__inner--strip {
  width: 100%;
}

.contact-footer-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  width: 100%;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  background: transparent;
}

.contact-footer-strip__mountain {
  display: block;
  width: clamp(5.5rem, 22vw, 8.5rem);
  height: auto;
  opacity: 0.92;
}

.contact-footer-strip__art--fallback {
  width: clamp(5.5rem, 22vw, 8.5rem);
  min-height: 3.25rem;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(83, 75, 44, 0.1),
    rgba(83, 75, 44, 0.1) 5px,
    transparent 5px,
    transparent 10px
  );
}

.contact-footer-strip__art--fallback .contact-footer-strip__mountain {
  display: none;
}

.contact-footer-strip__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
}

.contact-footer-strip__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2rem 2.75rem;
  line-height: 1.15;
  color: #534b2c;
}

.contact-footer-strip__links a {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.25rem;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform-origin: center;
  transition: transform 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.contact-footer-strip__links a::after {
  content: "";
  position: absolute;
  left: -0.65rem;
  right: -0.65rem;
  top: -0.45rem;
  bottom: -0.45rem;
  z-index: -1;
}

.contact-footer-strip__links a:hover,
.contact-footer-strip__links a:focus-visible {
  color: #2e2918;
  transform: scale(1.06);
}

.contact-footer-strip__loc {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
  color: #534b2c;
}

@media (prefers-reduced-motion: reduce) {
  .contact-footer-strip__links a {
    transition: none;
  }
}

@media (max-width: 520px) {
  .contact-footer-strip {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .contact-footer-strip__meta {
    align-items: center;
    text-align: center;
  }

  .contact-footer-strip__links {
    justify-content: center;
    gap: 1.25rem 1.75rem;
  }
}

@media (max-width: 900px) {
  .landing-canvas {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 5.75rem 0.75rem 2.5rem;
  }

  .modular {
    position: relative;
    z-index: auto;
    left: auto;
    top: auto;
    width: min(var(--panel-max, 100%), 100%);
    max-width: 100%;
    margin: 0 auto;
    cursor: default;
  }

  .modular--intro {
    order: 1;
  }

  .modular--research {
    order: 2;
  }

  .modular--works {
    order: 3;
  }

  .modular--drag-hint {
    order: 4;
  }

  .modular--contact {
    order: 5;
  }

  .works-card__inner {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    padding: 1.25rem 1rem 1.2rem;
    background: #eecabf;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: none;
    overflow: visible;
  }

  .works-card__inner::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -14px;
    height: 14px;
    background:
      linear-gradient(-45deg, transparent 8px, #eecabf 0) 0 0 / 16px 100% repeat-x,
      linear-gradient(45deg, transparent 8px, #eecabf 0) 8px 0 / 16px 100% repeat-x;
    border-left: 1px solid rgba(0, 0, 0, 0.14);
    border-right: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  }

  .works-card__shape {
    display: none;
  }

  .works-card__item-row {
    align-items: flex-start;
  }

  .works-card__row {
    gap: 0.75rem;
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .works-card__desc {
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .modular--works {
    margin-bottom: 14px;
  }

  .intro-card {
    padding: 1.35rem 1.1rem;
  }

  .intro-card__header {
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .research-card__rail {
    display: none;
  }
}

/* ——— Blink case study (PNG reference) — landing nav only from home ——— */
body.page-case {
  margin: 0;
  min-height: 100vh;
  background: #f9f9e0;
  cursor: url("assets/cursor-horse.png") 42 31, auto;
}

@media (prefers-reduced-motion: reduce) {
  body.page-case {
    cursor: url("assets/cursor-horse.png") 42 31, auto;
  }
}

.page-case .skip-link:focus {
  z-index: 20000;
}

.page-case .landing-nav__link {
  cursor: url("assets/cursor-horse.png") 42 31, pointer;
}

.blink-page__main {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 6.25rem 1.5rem 4.5rem;
  box-sizing: border-box;
}

.blink {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1a2820;
}

.blink p:not(.blink__eyebrow):not(.blink__section-title) {
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

.blink__hero {
  margin-bottom: 3.5rem;
}

.blink__eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d4a3c;
}

.blink__title {
  margin: 0 0 0.85rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.18;
  color: #0f1a14;
}

.blink__meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: #5a6658;
}

.blink__role {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: #3d4a3c;
}

.blink__intro {
  margin: 0 0 1.5rem;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

.blink__keybox {
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid rgba(26, 40, 32, 0.2);
  background: #f5f2b8;
  box-sizing: border-box;
}

.blink__keybox-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2820;
}

.blink__keybox-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.blink__section {
  margin: 0 0 3.5rem;
}

.blink__section-title {
  margin: 0 0 0.65rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c83828;
}

#blink-challenges-h {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 11px;
  color: rgba(177, 51, 35, 1);
}

#blink-reflect-h {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 11px;
  color: rgba(183, 70, 52, 1);
}

#figma-tldr-label,
#figma-impact-h,
#figma-reflect-label {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 11px;
}

.blink__section-lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: #2e3b2c;
}

.blink__timeline {
  margin-bottom: 2.5rem;
}

.blink__timeline-wave {
  display: block;
  width: 100%;
  height: 3rem;
  margin-bottom: 0.25rem;
}

.blink__timeline-path {
  stroke: #e0702c;
  stroke-width: 2.5;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
}

.blink__timeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 0.85rem;
}

.blink__timeline-step {
  margin: 0;
  padding: 0 0.35rem 0 0;
}

.blink__timeline-icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.blink__timeline-heading {
  margin: 0 0 0.4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f1a14;
}

.blink__timeline-step p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #2e3b2c;
}

.blink__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.5rem;
  margin-top: 2rem;
}

.blink__list-block-title {
  margin: 0 0 0.5rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f1a14;
}

.blink__list-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.blink__list-block li {
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #2e3b2c;
}

.blink__process-block {
  margin-bottom: 1.35rem;
}

.blink__process-heading {
  margin: 0 0 0.4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: #0f1a14;
}

.blink__process-block p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #2e3b2c;
}

.blink__figure {
  margin: 2rem 0 0;
  padding: 0;
}

.blink__figure--setup {
  margin: 2.5rem auto 3rem;
  max-width: min(24rem, 100%);
  text-align: center;
}

.blink__setup-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: none;
  border-image: none;
  box-sizing: border-box;
}

.blink__photo-sprite {
  display: block;
  width: 100%;
  border: 1px solid rgba(26, 40, 32, 0.15);
  background-image: url("assets/blink-case-full.png");
  background-repeat: no-repeat;
}

.blink__photo-sprite--lab {
  height: clamp(11rem, 36vw, 17rem);
  background-position: center 24%;
  background-size: 108% auto;
}

.blink__photo-sprite--portrait {
  width: min(17.5rem, 78vw);
  height: 13.5rem;
  margin: 2rem auto 0;
  border-radius: 999px;
  background-position: center 88%;
  background-size: 120% auto;
}

.blink__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 40, 32, 0.12);
  text-align: center;
}

.blink__footer-tagline {
  margin: 0 0 1.75rem;
  font-family: "Mea Culpa", cursive;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  color: #3d6ea8;
}

.blink__footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.5rem;
}

.blink__footer-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #1a2820;
  font-size: 0.75rem;
  transform-origin: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.blink__footer-link:hover,
.blink__footer-link:focus-visible {
  transform: scale(1.1);
  color: #0f1a14;
}

.blink__footer-link:focus-visible {
  outline: 2px solid #1a2820;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .blink__footer-link {
    transition: none;
  }
}

.blink__footer-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #7a7a7a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
}

.blink__footer-icon--in {
  background-color: #0a66c2;
}

.blink__footer-icon--cv {
  background-color: #8a9a3c;
}

.blink__footer-label {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .blink__timeline-steps {
    grid-template-columns: 1fr 1fr;
  }

  .blink__two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .blink__timeline-steps {
    grid-template-columns: 1fr;
  }
}

/* ——— NN/g case study (cyan field, same blink typography) ——— */
body.nng-page.page-case {
  background: #e0f7fa;
}

.nng-page .landing-nav {
  background: linear-gradient(to bottom, rgba(224, 247, 250, 0.96), rgba(224, 247, 250, 0));
}

.nng-page .blink {
  color: #0f1413;
}

.nng-page .blink p:not(.blink__eyebrow) {
  color: #3d4d4c;
}

.nng-page .blink__eyebrow {
  color: #5a6b6a;
}

.nng-page .blink__title {
  color: #0a1211;
}

.nng-page .blink__role {
  color: #5a6b6a;
}

.nng-page .blink__intro {
  color: #4a5a59;
}

.nng-page .blink__process-heading {
  color: #0a1211;
}

.nng-page .blink__process-block p,
.nng-page .nng-list {
  color: #3d4d4c;
}

.nng-tldr {
  margin: 0 0 1.75rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c83828;
}

.nng-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
}

.nng-list li {
  margin-bottom: 0.45rem;
}

.nng-list li:last-child {
  margin-bottom: 0;
}

.nng-article-card-wrap {
  margin: 3rem 0 1rem;
}

.nng-article-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 36rem;
  min-height: 5.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 40, 45, 0.08), 0 1px 3px rgba(15, 40, 45, 0.06);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nng-article-card::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 18px;
}

.nng-article-card:hover {
  box-shadow: 0 8px 32px rgba(15, 40, 45, 0.12), 0 2px 6px rgba(15, 40, 45, 0.08);
  transform: translateY(-1px);
}

.nng-article-card:focus-visible {
  outline: 2px solid #b23323;
  outline-offset: 3px;
}

.nng-article-card__thumb {
  flex-shrink: 0;
  width: clamp(5.5rem, 28vw, 7.5rem);
  border-radius: 8px;
  overflow: hidden;
  background: #e8f6f8;
}

.nng-article-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.nng-article-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.nng-page .nng-article-card .nng-article-card__title {
  margin: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: #0a1211;
}

.nng-page .nng-article-card .nng-article-card__date {
  margin: 0;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  color: #5a6b6a;
}

.nng-article-card__cta {
  margin-top: 0.25rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #1a2820;
}

.nng-article-card:hover .nng-article-card__cta,
.nng-article-card:focus-visible .nng-article-card__cta {
  color: #b23323;
}

@media (max-width: 520px) {
  .nng-article-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nng-article-card__thumb {
    width: 100%;
    max-height: 12rem;
  }

  .nng-article-card__thumb img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* ——— Sandbox: ASCII orchid (case page shell) ——— */
body.sandbox-case {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: #fffdde;
}

body.sandbox-case .site-footer {
  flex-shrink: 0;
}

body.sandbox-case .blink-page__main.sandbox-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 7.5rem);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: calc(5rem + 80px) 0 0;
  box-sizing: border-box;
}

.sandbox-article {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1a2820;
}

/* Two-column layout */
.sandbox-layout {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100dvh - 5rem - 80px - 60px);
}

/* Left panel: orchid image + text, scrollable */
.sandbox-left {
  flex: 0 0 30%;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  gap: 0;
}

.sandbox-orchid-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.sandbox-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: -20px 0 0;
  padding: 0;
  text-align: left;
}

.sandbox-welcome__title {
  margin: 0 0 0.85rem;
  font-weight: 400;
  line-height: 1.1;
}

.sandbox-welcome__line--place {
  display: block;
  color: #8a8f8a;
}

.sandbox-welcome__line--name,
.sandbox-welcome__line--sub {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.sandbox-welcome__lede {
  max-width: 26rem;
  margin: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: left;
  color: #9a9f9a;
}

.sandbox-welcome__lede::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: currentColor;
  vertical-align: text-bottom;
  margin-left: 1px;
  opacity: 0;
  animation: sandbox-cursor-blink 0.75s step-end infinite;
}

.sandbox-welcome__lede.is-typing::after {
  opacity: 1;
}

@keyframes sandbox-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Right panel: stamp scatter, sticky, no scroll */
.sandbox-right {
  flex: 0 0 70%;
  width: 70%;
  position: sticky;
  top: calc(5rem + 80px);
  height: calc(100dvh - 5rem - 80px);
  overflow: hidden;
  align-self: flex-start;
}

.sandbox-projects {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
}

.sandbox-card {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 216px;
  max-width: min(216px, 42vw);
  min-height: 0;
  padding: 0.52rem 0.56rem 0.68rem;
  border-radius: 2px;
  box-shadow: 0 5px 18px rgba(20, 15, 10, 0.12);
  pointer-events: auto;
  user-select: none;
}

.sandbox-card__meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0.44rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.624rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #e414da;
}

.sandbox-card__fig {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 119px;
  margin: 0 0 0.44rem;
  padding: 0;
  overflow: hidden;
}

.sandbox-card__fig img {
  display: block;
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 119px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.sandbox-card__name {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  color: #e414da;
}

.sandbox-card--synth {
  background: #e4dff7;
}

.sandbox-card--lifecycle {
  background: #fff9c9;
}

/* DDI stamp card — Figma nodes 221:26 (full set) + 221:24 (photo layer) */
.sandbox-card--ddi {
  --ddi-front: #b6aa3c;
  --stamp-rot: 0deg;
  position: absolute;
  width: 253px;
  max-width: 253px;
  height: 173px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: rotate(var(--stamp-rot));
  will-change: left, top;
}

.sandbox-card--ddi.is-stamp-out {
  z-index: 20;
}

.sandbox-card.sandbox-card--ddi {
  box-shadow: none;
}

.sandbox-card--ddi-front-orange {
  --ddi-front: #ed842b;
}

.sandbox-card--ddi-front-sky {
  --ddi-front: #96ccf2;
}

.sandbox-card--ddi-front-magenta {
  --ddi-front: #a4419f;
}

.sandbox-card--ddi-front-navy {
  --ddi-front: #4163a4;
}

.sandbox-card__ddi-set {
  position: relative;
  width: 207px;
  height: 142px;
  overflow: visible;
  transform: scale(1.214);
  transform-origin: top left;
}

/* Back stamp — always behind photo; closed = peek meta, open = pull up for title */
.sandbox-card__ddi-header {
  position: absolute;
  left: 17px;
  top: 0;
  z-index: 1;
  width: 190px;
  height: 126px;
  transform: translate(0, -8px);
  transition: transform 0.5s cubic-bezier(0.34, 1.12, 0.48, 1);
  will-change: transform;
}

.sandbox-card--ddi.is-stamp-out .sandbox-card__ddi-header {
  /* Pull up so “Diabetes Design Initiative” clears above the photo (photo top: 16px) */
  transform: translate(0, -70px);
}

.sandbox-card--ddi:not(.is-stamp-out) .sandbox-card__ddi-title {
  visibility: hidden;
  opacity: 0;
}

.sandbox-card--ddi.is-stamp-out .sandbox-card__ddi-title {
  visibility: visible;
  opacity: 1;
}

.sandbox-card__ddi-title-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  transition: transform 0.2s ease;
  cursor: url("assets/cursor-horse.png") 42 31, pointer;
}

.sandbox-card__ddi-title-link:hover,
.sandbox-card__ddi-title-link:focus-visible {
  text-decoration: underline;
  transform: scale(1.1);
}

.sandbox-card__ddi-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.sandbox-card__ddi-meta {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding: 0 15px;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  color: #52522f;
}

.sandbox-card__ddi-title {
  position: absolute;
  z-index: 1;
  top: 40px;
  left: 50%;
  width: 115px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 10px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: #52522f;
  opacity: 0;
  transition: opacity 0.35s ease 0.08s;
}

/* Photo — fixed; click anywhere on cover toggles stamp */
.sandbox-card__ddi-photo {
  position: absolute;
  left: 0;
  top: 16px;
  z-index: 2;
  width: 190px;
  height: 126px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: inherit;
  cursor: url("assets/cursor-horse.png") 42 31, pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sandbox-card__ddi-photo:focus-visible {
  outline: 2px solid #52522f;
  outline-offset: 2px;
}

.sandbox-card__ddi-photo-panel {
  position: absolute;
  inset: 0;
  background: var(--ddi-front, #b6aa3c);
}

.sandbox-card__ddi-photo img {
  position: absolute;
  left: 8px;
  top: 9px;
  display: block;
  width: 173px;
  height: 108px;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sandbox-card__ddi-header,
  .sandbox-card__ddi-title {
    transition: none;
  }
}

.sandbox-card--she {
  background: #f7e6de;
}

.orchid-stack {
  position: relative;
  z-index: 2;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.35rem 0.35rem;
  box-sizing: border-box;
  background: transparent;
  user-select: none;
  pointer-events: auto;
}

.orchid-ascii-host {
  display: inline-block;
  text-align: left;
  transform-origin: top center;
  user-select: none;
}

.orchid-line {
  margin: 0;
  padding: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: clamp(23px, 2.67vw, 55px);
  line-height: 1.28;
  letter-spacing: 0.22em;
  white-space: pre;
  color: #0f1a14;
}

.orchid-char {
  display: inline-block;
  width: 1ch;
  text-align: center;
  vertical-align: top;
  will-change: transform;
}

.orchid-char--space {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .sandbox-layout {
    flex-direction: column;
    height: auto;
  }

  .sandbox-left {
    flex: none;
    width: 100%;
    padding: 1.5rem 1.25rem;
  }

  .sandbox-right {
    flex: none;
    width: 100%;
    position: static;
    height: auto;
    overflow: visible;
  }

  .sandbox-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 2.5rem;
    padding: 2rem 1rem 3rem;
    overflow: visible;
  }

  .sandbox-card,
  .sandbox-card--ddi {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none;
  }

  .sandbox-card--ddi {
    width: 202px;
    max-width: 202px;
    height: 138px;
  }

  .sandbox-card__ddi-set {
    transform: scale(0.972);
    transform-origin: top left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orchid-field {
    cursor: default;
  }

  .orchid-char {
    will-change: auto;
  }
}

/* ——— Figma case study (mint field; typography matches .blink) ——— */
body.figma-page.page-case {
  background: #f2faf2;
}

/* ——— DDI case study (white field; typography matches .blink) ——— */
body.ddi-page.page-case {
  background: #ffffff;
}

/* ——— Life Cycle case study (white field; typography matches .blink) ——— */
body.life-cycle-page.page-case {
  background: #ffffff;
}

/* ——— Handwave Synthesizer project (white field, wide 1152px layout) ——— */
body.handwave-page.page-case {
  background: #ffffff;
}

.handwave-page__main {
  max-width: 1152px;
}

.handwave-video {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— KEXP-inspired Lamp project (white field, wide 1152px layout) ——— */
body.kexp-page.page-case {
  background: #ffffff;
}

.kexp-page__main {
  max-width: 1152px;
}

.kexp-video-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.kexp-video {
  display: block;
  flex: 1 1 0;
  width: calc((100% - 1.5rem) / 2);
  max-width: 553px;
  height: auto;
  aspect-ratio: 553 / 811;
  background: #0f1a14;
}

@media (max-width: 900px) {
  .kexp-video-row {
    flex-wrap: wrap;
  }

  .kexp-video {
    width: min(553px, 100%);
  }
}

/* ——— She case study (white field, wide 1152px layout) ——— */
body.she-page.page-case {
  background: #ffffff;
}

.she-page__main {
  max-width: 1152px;
}

.she-hero-video-wrap {
  margin: 0 0 2.75rem;
}

.she-hero-video {
  display: block;
  width: 100%;
  height: auto;
  background: #0f1a14;
}

.she-page .blink__hero {
  max-width: none;
}

.figma-page .landing-nav {
  background: linear-gradient(to bottom, rgba(242, 250, 242, 0.97), rgba(242, 250, 242, 0));
}

.figma-page__main {
  padding-bottom: 3rem;
}

.figma-page .blink li {
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

.figma-hero-photo {
  margin: 0 0 2.75rem;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(20, 45, 30, 0.1);
}

.figma-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.figma-hero-photo__caption {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  text-align: center;
  color: #5a6658;
}

.ddi-hero-figure {
  margin: 0 0 2.75rem;
}

.ddi-hero-figure .figma-hero-photo {
  margin-bottom: 0;
}

.figma-impact-list {
  margin: 0;
  padding-left: 1.15rem;
}

.figma-impact-list li {
  margin-bottom: 0.65rem;
}

.figma-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.figma-project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.15rem;
  max-width: 36rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 4px 22px rgba(15, 40, 30, 0.07), 0 1px 3px rgba(15, 40, 30, 0.06);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.figma-project-card:hover {
  box-shadow: 0 8px 32px rgba(15, 40, 30, 0.11);
  transform: translateY(-2px);
}

.figma-project-card:focus-visible {
  outline: 2px solid #c83828;
  outline-offset: 3px;
}

.figma-project-card__thumb {
  flex-shrink: 0;
  width: clamp(5.25rem, 24vw, 7rem);
  height: clamp(5.25rem, 24vw, 7rem);
  border-radius: 8px;
  overflow: hidden;
  background: #e8f0ea;
}

.figma-project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figma-project-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
}

.figma-project-card .figma-project-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.figma-project-card__tags {
  margin: 0;
  font-size: 0.75rem;
  color: #5a6658;
}

.figma-project-card__link {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #1a2820;
}

.figma-project-card:hover .figma-project-card__link {
  color: #c83828;
}

.figma-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.figma-team-card {
  margin: 0;
  padding: 0;
}

.figma-team-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(15, 40, 30, 0.08);
}

.figma-team-card figcaption {
  margin-top: 0.55rem;
  font-size: 0.6875rem;
  text-align: center;
  color: #5a6658;
}

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

  .figma-project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .figma-project-card__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

.ddi-step {
  margin-bottom: 2.75rem;
}

.ddi-step:last-child {
  margin-bottom: 0;
}

.ddi-step__heading {
  margin-bottom: 0.85rem;
}

.ddi-step__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.ddi-step__media {
  margin: 0;
}

.ddi-step__content {
  min-width: 0;
}

.ddi-step__num {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.ddi-eyebrow--purple {
  color: #a4419f;
}

.ddi-step__subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: #52522f;
}

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

.life-cycle-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.life-cycle-columns .blink__section {
  margin-bottom: 0;
}

.life-cycle-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.life-cycle-activity-grid .ddi-step {
  margin-bottom: 0;
}

.life-cycle-activity-grid .figma-team-card {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .life-cycle-columns,
  .life-cycle-activity-grid {
    grid-template-columns: 1fr;
  }

  .life-cycle-columns .blink__section:first-child {
    margin-bottom: 2rem;
  }
}

.life-cycle-quote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.life-cycle-quote p {
  margin: 0 0 0.75rem;
  font-style: normal;
}

.life-cycle-quote cite {
  font-style: normal;
  font-size: 0.8125rem;
  color: #6b6b52;
}

/* ─── Gallery page ─────────────────────────────────── */

body.gallery-case {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: #eeff8b;
}

body.gallery-case .site-footer {
  flex-shrink: 0;
}

.landing-canvas--gallery {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0;
}

.gallery-page {
  flex: 1 1 auto;
  padding: 6rem 2.5rem 4rem;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.gallery-header {
  margin-bottom: 3rem;
}

.gallery-header__h1 {
  max-width: none;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  color: #6b7068;
}

.gallery-header__more {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #6b7068;
}

.gallery-header__more a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Masonry grid */
.gallery-grid {
  columns: 3 260px;
  column-gap: 0.75rem;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 0.75rem;
  overflow: hidden;
  cursor: zoom-in;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.04);
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.88;
  transform: scale(1.01);
}

.gallery-item--crop img {
  transform: scale(1.07);
}

.gallery-item--crop:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  cursor: zoom-out;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 90dvh;
  object-fit: contain;
  display: block;
  cursor: default;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.15s ease;
}

.gallery-lightbox__close:hover {
  opacity: 1;
}

@media (max-width: 720px) {
  .gallery-page {
    padding: 5rem 1.25rem 3rem;
  }

  .gallery-grid {
    columns: 2 160px;
    column-gap: 0.5rem;
  }

  .gallery-item {
    margin-bottom: 0.5rem;
  }
}

/* ── About page ─────────────────────────────────────────────────────────── */

.font-rubik-scribble {
  font-family: "Rubik Scribble", cursive;
}

body.about-case {
  background-color: #e1ff00;
}

.landing-canvas--about {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.about-page {
  flex: 1 1 auto;
  padding-top: 60px;
}

/* Hero: gif with hiya! overlay */
.about-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.about-hero__gif {
  display: block;
  width: 1178px;
  max-width: 100%;
  height: auto;
}

.about-hero__hiya {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Rubik Scribble", cursive;
  font-size: 160px;
  line-height: 1;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

/* Bio text */
.about-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5rem;
}

.about-h1 {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: #3a3a3a;
  margin: 0;
}

.about-h1 + .about-h1 {
  margin-top: 1rem;
}

.about-photos {
  max-width: 1178px;
  margin: 60px auto 0;
  padding: 0 2rem 5rem;
}

.about-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-photos__grid img {
  width: 100%;
  height: auto;
  display: block;
}

.about-photo {
  position: relative;
}

.about-photo__caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.about-photo:hover .about-photo__caption {
  opacity: 1;
}

@media (max-width: 720px) {
  .about-hero__hiya {
    font-size: clamp(3rem, 18vw, 120px);
  }

  .about-body {
    padding: 2rem 1.25rem 4rem;
  }

  .about-photos {
    padding: 0 1.25rem 4rem;
  }

  .about-photos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about-photos__grid img {
    height: auto;
  }

  .about-photo__caption {
    bottom: 16px;
  }
}

/* ——— mmmm case study ——— */
.mmmm-hero {
  margin-bottom: 3.25rem;
}

.mmmm-hero__mark {
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 18rem;
  overflow: hidden;
}

.mmmm-hero__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.mmmm-hero__tagline {
  margin: 0 0 1rem;
  max-width: none;
  width: 100%;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: #0a1211;
}

.mmmm-contexts__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.mmmm-contexts__copy {
  margin: 0;
}

.mmmm-contexts__diagram {
  margin: 0;
  padding: 0;
  max-width: 16rem;
  justify-self: end;
}

.mmmm-contexts__diagram img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .mmmm-contexts__row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.mmmm-page .blink-page__main {
  max-width: 54rem;
}

.mmmm-video-wrap {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 40, 32, 0.1);
  box-shadow: 0 8px 24px rgba(26, 40, 32, 0.08);
  background: transparent;
}

.mmmm-video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.mmmm-beyond__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 1.5rem;
  align-items: center;
}

.mmmm-beyond__copy p {
  margin: 0 0 1rem;
  font-size: inherit;
  line-height: inherit;
}

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

.mmmm-beyond__question {
  font-style: italic;
}

.mmmm-beyond__copy a {
  color: #c83828;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mmmm-beyond__copy a:hover,
.mmmm-beyond__copy a:focus-visible {
  color: #a01830;
}

.mmmm-beyond__media {
  margin: 0;
  padding: 0;
  max-width: 13.5rem;
  justify-self: end;
  background: transparent;
}

.mmmm-beyond__media img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.mmmm-beyond__gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.mmmm-beyond__shot {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(26, 40, 32, 0.1);
  box-shadow: 0 8px 22px rgba(26, 40, 32, 0.08);
  background: #fff;
}

.mmmm-beyond__shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mmmm-beyond__caption {
  margin: 0.6rem 0 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 400;
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: center;
  color: #5a6658;
}

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

  .mmmm-beyond__media {
    max-width: 12rem;
    justify-self: start;
  }

  .mmmm-beyond__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mmmm-ios {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.mmmm-page #mmmm-narrative-h {
  margin-top: 2.5rem;
}

.mmmm-page section[aria-labelledby="mmmm-narrative-h"] {
  margin-top: 3.5rem;
}

.mmmm-ui__feature {
  margin: 0 0 3rem;
}

.mmmm-ui__feature:last-child {
  margin-bottom: 0;
}

.mmmm-ui__label {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #c5d4a8;
  color: #2a3820;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mmmm-ui__lede {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #3d4a40;
}

.mmmm-ui__row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}

.mmmm-ui__row--solo {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
}

.mmmm-ui__row--solo .mmmm-ui__shot {
  grid-column: 1;
}

.mmmm-ui__shot {
  margin: 0;
  padding: 0;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 40, 32, 0.1);
  box-shadow: 0 8px 24px rgba(26, 40, 32, 0.08);
}

.mmmm-ui__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #fff;
  image-rendering: auto;
}

.mmmm-ui__note {
  margin: 0;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #3d4a40;
}

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

.mmmm-ios__heads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 0.85rem;
  padding: 0 0.35rem;
}

.mmmm-ios__head {
  margin: 0;
}

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

.mmmm-ios__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: #fffef6;
  border: 1px solid rgba(26, 40, 32, 0.08);
}

.mmmm-ios__insight,
.mmmm-ios__solution {
  min-width: 0;
  padding: 0.15rem 0.35rem;
}

.mmmm-ios__insight {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.mmmm-ios__icon {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  margin-top: 0.05rem;
}

.mmmm-ios__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mmmm-ios__title {
  margin: 0 0 0.45rem;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: #121812;
}

.mmmm-ios__insight p,
.mmmm-ios__solution p {
  margin: 0;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #3d4a40;
}

.mmmm-ios__glyph {
  display: inline-flex;
  vertical-align: -0.2em;
  width: 1em;
  height: 1em;
  margin: 0 0.15em;
}

.mmmm-ios__glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mmmm-ios__bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  margin: -1.15rem 0.15rem;
}

.mmmm-ios__rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-left: 1.5px dashed rgba(26, 40, 32, 0.28);
  transform: translateX(-50%);
}

.mmmm-ios__arrow {
  position: relative;
  z-index: 1;
  display: flex;
  width: 1.5rem;
  height: 1rem;
  background: #fffef6;
  padding: 0.15rem 0;
}

.mmmm-ios__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .mmmm-ios__heads {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .mmmm-ios__heads .mmmm-ios__head:last-child {
    margin-top: 0.75rem;
  }

  .mmmm-ios__row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .mmmm-ios__bridge {
    width: auto;
    height: auto;
    margin: 0;
    justify-content: flex-start;
    padding-left: 3.25rem;
  }

  .mmmm-ios__rule {
    display: none;
  }

  .mmmm-ios__arrow {
    background: transparent;
    transform: rotate(90deg);
  }
}

.mmmm-page .mmmm-insight-lead {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #1a2820;
}

.mmmm-page .mmmm-rq-list {
  list-style: decimal;
}

.mmmm-page .blink__process-block + .blink__process-block,
.mmmm-page .ddi-step + .ddi-step {
  margin-top: 1.75rem;
}

.mmmm-page .blink__process-block p + p {
  margin-top: 0.85rem;
}
