/* ============================================
   Design+Es — modern rebuild
   No jQuery, no float-based layout, no !important
   ============================================ */

:root {
  --ink: #111111;
  --ink-soft: #686868;
  --ink-faint: #999999;
  --line: #ededed;
  --paper: #ffffff;
  --paper-tint: #f8f7f7;
  --max-width: 1140px;
  --header-h: 80px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
a:hover { color: var(--ink-faint); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

::selection { background: var(--ink); color: var(--paper); }

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

ul { list-style: none; margin: 0; padding: 0; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-bottom: 0;
  margin-right: auto;
}

.site-nav ul {
  display: flex;
  gap: 8px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-faint);
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--paper);
}

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

/* ============ Fullscreen nav overlay ============ */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-list {
  text-align: center;
}

.nav-overlay-list li { margin: 18px 0; }

.nav-overlay-list a {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 600;
  color: #999;
  border-bottom: 0;
}
.nav-overlay-list a:hover { color: #fff; }

.nav-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

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

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-h) + 70px) 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  min-height: 1.3em;
}

.typewrite::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 4px;
  background: var(--ink);
  vertical-align: -0.1em;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
}

/* Sits on one line whenever there's room (desktop, tablet, and most phones
   in portrait); only wraps to a second line on the narrowest screens where
   forcing it would otherwise overflow. */
@media (min-width: 400px) {
  .hero-sub {
    white-space: nowrap;
  }
}

.hero-visual {
  position: relative;
  min-height: 460px;
  overflow: visible;
}

/* Pure CSS "widget" cards — three flat divs per cluster (a colored card,
   a floating white info card, a light gray row card), no images, no
   canvas, no SVG. Same technique as the old pastel circles: position/scale
   are the only layout properties, movement is added by JS (mouse) or the
   heroFloat keyframe (touch / reduced-motion) — so this costs nothing
   extra in memory, just a handful more DOM nodes. */
.hero-widget {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hw-card {
  position: absolute;
  inset: 8% 20% 24% 0;
  border-radius: 20px;
  background: var(--widget-card, #f2a98f);
  box-shadow: 0 18px 36px -18px rgba(20, 20, 30, 0.4);
}

.hw-dot {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 18%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

.hw-info {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 54%;
  height: 48%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 26px -14px rgba(20, 20, 30, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16%;
  padding: 0 14%;
}

.hw-row {
  position: absolute;
  left: -8%;
  bottom: -12%;
  width: 80%;
  height: 32%;
  background: #f5f5f7;
  border-radius: 14px;
  box-shadow: 0 12px 24px -16px rgba(20, 20, 30, 0.22);
  display: flex;
  align-items: center;
  gap: 8%;
  padding: 0 10%;
}

.hw-bar {
  display: block;
  height: 18%;
  border-radius: 999px;
  width: 55%;
  background: #dcdee2;
}

.hw-bar--accent {
  width: 72%;
  background: var(--widget-accent, #9ac2e0);
}

.hw-row .hw-bar {
  height: 26%;
}

.hw-bar--wide {
  width: 62%;
  background: #d2d2d7;
}

.hw-pill {
  width: 24%;
  height: 40%;
  border-radius: 999px;
  background: var(--widget-pill, #b3dcbd);
}

.hero-widget--coral {
  --widget-card: #f2a98f;
  --widget-accent: #9ac2e0;
  --widget-pill: #b3dcbd;
  width: clamp(160px, 20vw, 240px);
  aspect-ratio: 4 / 3;
  top: -2%;
  right: 4%;
  z-index: 4;
}

/* ---- Minimal floating shapes — each just a sized/positioned .hero-widget
   wrapper (JS-controlled layer) around one static .hw-shape (its actual
   look, including any rotation, so JS's translate() never clobbers it). ---- */

.hw-shape {
  position: absolute;
  inset: 0;
}

.hero-widget--ring {
  width: clamp(64px, 8vw, 104px);
  aspect-ratio: 1 / 1;
  top: 4%;
  left: 6%;
  z-index: 1;
  opacity: 0.7;
}
.hero-widget--ring .hw-shape {
  border-radius: 50%;
  border: 8px solid #e7ddd6;
}

.hero-widget--dot {
  width: clamp(14px, 1.8vw, 22px);
  aspect-ratio: 1 / 1;
  bottom: 32%;
  left: 20%;
  z-index: 3;
}
.hero-widget--dot .hw-shape {
  border-radius: 50%;
  background: #a9e6c7;
}

.hero-widget--diamond {
  width: clamp(18px, 2.4vw, 28px);
  aspect-ratio: 1 / 1;
  bottom: 8%;
  right: 22%;
  z-index: 2;
}
.hero-widget--diamond .hw-shape {
  inset: 0;
  border-radius: 6px;
  background: #c7beef;
  transform: rotate(45deg);
}

.hero-widget--plus {
  width: clamp(20px, 2.6vw, 30px);
  aspect-ratio: 1 / 1;
  top: 46%;
  left: 36%;
  z-index: 3;
  opacity: 0.85;
}
.hero-widget--plus .hw-shape::before,
.hero-widget--plus .hw-shape::after {
  content: "";
  position: absolute;
  background: #d99e7a;
  border-radius: 999px;
}
.hero-widget--plus .hw-shape::before {
  top: 50%; left: 0; right: 0; height: 14%;
  transform: translateY(-50%);
}
.hero-widget--plus .hw-shape::after {
  left: 50%; top: 0; bottom: 0; width: 14%;
  transform: translateX(-50%);
}

.hero-widget--arc {
  width: clamp(50px, 6.5vw, 84px);
  aspect-ratio: 1 / 1;
  bottom: -2%;
  left: -2%;
  z-index: 1;
  opacity: 0.65;
}
.hero-widget--arc .hw-shape {
  border-radius: 50%;
  border: 7px solid transparent;
  border-top-color: #e7e68f;
  border-right-color: #e7e68f;
  transform: rotate(-35deg);
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--float-x, 10px), var(--float-y, -14px)); }
}

/* ============ Portfolio grid ============ */

.grid-section {
  max-width: var(--max-width);
  margin: 40px auto 100px;
  padding: 0 24px;
}

.grid-section + .grid-section {
  margin-top: 0;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.grid-section-head {
  margin-bottom: 24px;
}

.grid-section-title {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.grid-section-sub {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* For short grids (e.g. a 2-item row) — items fill the row instead of
   leaving empty trailing column space reserved by auto-fill. */
.portfolio-grid--fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-item a {
  position: relative;
  display: block;
  border-bottom: 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.grid-item a:hover img { transform: scale(1.04); }

.grid-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.grid-item a:hover .grid-caption { opacity: 1; }

.grid-caption-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grid-caption-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Understated "see also" links — used to point to case studies that don't
   get a full thumbnail in the grid above. */
.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.more-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.more-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.more-links-extra {
  margin: 14px 0 0;
}

.more-links-extra a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.more-links-extra a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Text-only summary panel — used where a case study exists but its visuals
   aren't shown (e.g. confidential/unreleased work at a former employer). */
.note-summary {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 32px;
  background: var(--paper-tint);
}

.note-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.note-summary-list li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.note-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.note-summary-footnote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-faint);
}

/* ============ Visual grid — true masonry, no cropping ============
   Matches the original site's float-based grid: each tile is set to a fixed
   column width with height left auto, so every image keeps its own natural
   ratio. A tall piece (like the isometric illustration) then visually spans
   two rows in its column, flowing into the tile below with only a hairline
   gap — the "overflow" look from the original — while nothing is ever
   cropped or stretched out of shape. Captions are a hover overlay, not
   static text, so the packed grid stays tight edge-to-edge. */

.visual-grid {
  columns: 3 220px;
  column-gap: 14px;
}

.visual-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}

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

.visual-hover {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.visual-item:hover .visual-hover {
  opacity: 1;
}

.visual-hover-title {
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1.3;
}

.visual-hover-sub {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  margin-top: 6px;
}

/* ============ Icon showcase — explicit 3x2 grid ============
   A precise composition, not auto-flowing masonry: two stacked square-ish
   tiles on the left, two stacked on the right, and one tall piece spanning
   both rows in the center column. Placement is explicit per tile via
   grid-column/grid-row (in .icon-showcase-item modifiers below), so it
   always lands exactly where intended regardless of source order. */

.icon-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.icon-showcase-item {
  position: relative;
  overflow: hidden;
  display: block;
}

.icon-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-showcase-item--square {
  aspect-ratio: 4 / 3;
}

.icon-showcase-item--tall {
  grid-row: span 2;
}

.icon-showcase-col-left {
  grid-column: 1;
}

.icon-showcase-col-center {
  grid-column: 2;
}

.icon-showcase-col-right {
  grid-column: 3;
}

@media (max-width: 640px) {
  .icon-showcase {
    grid-template-columns: 1fr;
  }
  .icon-showcase-col-left,
  .icon-showcase-col-center,
  .icon-showcase-col-right {
    grid-column: 1;
  }
  .icon-showcase-item--tall {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ============ Case study pages (Product) ============ */

.page-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-h) + 60px) 24px 8px;
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.page-sub {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ About / Contact ============ */

.about-body,
.contact-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.about-body p {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.contact-body p {
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.contact-email {
  display: inline-block;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 0 0 22px;
}

.contact-email:hover {
  color: var(--ink-soft);
  border-color: var(--ink-soft);
}

.contact-alt a {
  color: var(--ink);
  font-weight: 600;
}

.case-study {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--line);
}

/* Large hero — shows the selected image/video at its own natural ratio,
   never stretched or skewed; the frame just caps how tall it can get. */
.case-hero {
  width: 100%;
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-tint);
  margin-bottom: 28px;
}

.case-hero-img,
.case-hero-video {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  display: block;
}

.case-hero-video[hidden],
.case-hero-img[hidden] {
  display: none;
}

.case-body {
  max-width: 68ch;
  margin-bottom: 28px;
}

.case-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.case-title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 4px 0 14px;
}

.case-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

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

.case-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.15s var(--ease);
}

.case-link a:hover {
  background: var(--ink-soft);
}

/* ============ Case process block — research artifacts (personas, JTBD,
   sketches) shown alongside the finished screens ============ */

.case-process {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.case-process-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.case-process-intro {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

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

.persona-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--paper-tint);
}

.persona-role {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}

.persona-role-sub {
  font-weight: 500;
  text-transform: none;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.2px;
}

.persona-jtbd {
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--ink);
  text-wrap: pretty;
}

.persona-needs {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.persona-needs li {
  padding-left: 14px;
  position: relative;
}

.persona-needs li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* Thumbnail strip — click swaps the hero above. A lightweight, dependency-free
   "featured media" gallery: the interaction is a single click-delegated
   listener in main.js, no library required. */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.case-thumb {
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  line-height: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper-tint);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s var(--ease), border-color 0.15s var(--ease);
}

.case-thumb img,
.case-thumb video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.case-thumb:hover {
  opacity: 0.85;
}

.case-thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}

/* Gallery thumbs that link out to an external video instead of swapping the
   hero image. Full opacity by default (there's no "active" state to dim
   against) plus a play-button badge so it reads as "opens a video". */
.case-thumb--video {
  position: relative;
  opacity: 1;
}

.case-thumb--video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.62);
  transform: translate(-50%, -50%);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.case-thumb--video::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-42%, -50%);
}

.case-thumb--video:hover {
  opacity: 1;
}

.case-thumb--video:hover::after {
  background: rgba(20, 20, 22, 0.8);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ============ Case detail page chrome (back link + prev/next) ============ */

.case-back {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 0;
}

.case-back:hover {
  color: var(--ink);
}

.case-nav {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 24px 24px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.case-nav a {
  border-bottom: 0;
  color: var(--ink-soft);
}

.case-nav a:hover {
  color: var(--ink);
}

.case-nav-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.case-nav-next {
  text-align: right;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
}

.site-footer .social-links a {
  color: var(--ink-soft);
}
