:root {
  --mat-green: #2d5048;
  --mat-green-dark: #244039;
  --grid-line: rgba(140, 200, 180, 0.32);
  --grid-line-major: rgba(160, 220, 200, 0.45);
  --accent-yellow: #f4d34a;
  --ink: #1a1a1a;
  --paper: #fafaf6;
  --muted: #6c7370;
  --pin-blue: #4a90e2;
}

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

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Cutting mat background ---------- */
.cutting-mat {
  background-color: var(--mat-green);
  background-image:
    /* major grid every 5 cells */
    linear-gradient(var(--grid-line-major) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid-line-major) 1.5px, transparent 1.5px),
    /* minor grid every cell */
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    /* subtle texture */
    radial-gradient(rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size:
    300px 300px,
    300px 300px,
    60px 60px,
    60px 60px,
    3px 3px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
}

/* ---------- LINKS PAGE ---------- */
.links-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 60px 20px 80px;
}

.links-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 240px;
  height: 240px;
  margin: 0 auto 24px;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
}

.avatar .wink { opacity: 0; transition: opacity 0.18s ease; }
.avatar .eye-right { transition: opacity 0.18s ease; }
.avatar:hover .eye-right { opacity: 0; }
.avatar:hover .wink { opacity: 1; }

.greeting {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-size: 56px;
  line-height: 1.05;
  color: var(--accent-yellow);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: baseline;
}

.greeting .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--accent-yellow);
  animation: blink 1s steps(2) infinite;
  transform: translateY(2px);
}

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

.tagline {
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
  margin-bottom: 36px;
  max-width: 420px;
}

.tagline .hand {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent-yellow);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.link-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.link-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.section-label {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.featured-card {
  background: rgba(120, 120, 110, 0.55);
  background-image: radial-gradient(rgba(0,0,0,0.25) 1px, transparent 1px);
  background-size: 3px 3px;
  padding: 28px 18px 18px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  min-height: 280px;
}

.featured-card .icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.featured-card .title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.featured-card .subtitle {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-yellow);
  margin-bottom: 18px;
}

.featured-card .preview {
  flex: 1;
  width: 100%;
  background: #444;
  border-radius: 6px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  min-height: 110px;
}

.featured-card .cta {
  background: #fff;
  color: var(--ink);
  padding: 8px 28px;
  font-size: 14px;
  letter-spacing: 1px;
  border: 1.5px dashed #999;
}

@media (max-width: 480px) {
  .greeting { font-size: 42px; }
  .featured-grid { grid-template-columns: 1fr; }
}

/* ---------- HOME PAGE (sidebar + board) ---------- */
.home-page {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 100vh auto;
  min-height: 100vh;
}

.sidebar {
  padding: 40px 32px 24px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  grid-row: 1 / -1;
}

.sidebar .avatar-link {
  display: block;
  width: 180px;
  margin: 0 auto;
}

.sidebar .avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  transform-origin: 50% 70%;
  transition: transform 0.3s ease;
}

.sidebar .avatar .cheek {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar .bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 auto 32px;
  max-width: 240px;
  text-align: center;
}

.sidebar .bio strong {
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.sidebar .bio strong:hover,
.sidebar.is-name-hover .bio strong {
  color: #e85d75;
}

.sidebar:has(.bio strong:hover) .avatar,
.sidebar.is-name-hover .avatar {
  animation: avatar-bounce 0.8s ease-in-out infinite;
}

.sidebar:has(.bio strong:hover) .avatar .cheek,
.sidebar.is-name-hover .avatar .cheek {
  opacity: 0.75;
}

@keyframes avatar-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-6px) rotate(4deg); }
}

.sidebar .primary-link {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sidebar .primary-link:hover {
  color: var(--mat-green);
  border-color: var(--mat-green);
}

.sidebar .group-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sidebar .group-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar .group-list a {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.sidebar .group-list a:hover {
  color: var(--accent-yellow);
}

.sidebar .socials {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
}

.sidebar .socials a {
  color: var(--muted);
  font-size: 14px;
}

.sidebar .socials a:hover { color: var(--ink); }

.sidebar .copyright {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

.board {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.board .name-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DM Serif Display', serif;
  font-size: 96px;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

.board .name-title .type-cursor {
  display: inline-block;
  width: 6px;
  height: 0.82em;
  margin-left: 8px;
  background: #fff;
  vertical-align: baseline;
  animation: blink 1s steps(2) infinite;
}

.board .view-work {
  position: absolute;
  top: calc(50% + 70px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Caveat', cursive;
  font-size: 32px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 24px;
  pointer-events: auto;
  z-index: 5;
}

.board .view-work::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: rotate(-2deg);
}

.board .drag-hint {
  position: absolute;
  top: calc(50% + 130px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 4px;
  pointer-events: none;
}

.board .col-numbers {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

/* draggable items */
.draggable {
  position: absolute;
  cursor: grab;
  transition: box-shadow 0.15s ease;
  z-index: 1;
}

.draggable:active { cursor: grabbing; z-index: 10; }
.draggable.dragging { z-index: 100; }

.polaroid {
  background: #fff;
  padding: 10px 10px 38px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  border-radius: 2px;
}

.polaroid .photo {
  width: 180px;
  height: 180px;
  background: #ccc;
  background-size: cover;
  background-position: center;
}

.sticky-note {
  background: #b6dcf3;
  width: 170px;
  height: 170px;
  padding: 18px;
  box-shadow: 4px 8px 18px rgba(0,0,0,0.3);
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: #1a3a5a;
  line-height: 1.2;
  transform: rotate(8deg);
}

.pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #82b4ff, var(--pin-blue) 60%, #2c5ea8);
  box-shadow: 2px 4px 8px rgba(0,0,0,0.4);
}

@media (max-width: 800px) {
  .home-page { grid-template-columns: 1fr; grid-template-rows: auto; }
  .sidebar { order: 2; grid-row: auto; grid-column: auto; }
  .board { min-height: 70vh; order: 1; }
  .tool-stack { order: 3; }
  .board .name-title { font-size: 56px; }
}

/* ---------- Tool stack ---------- */
.tool-stack {
  color: #fff;
  padding: 80px 40px 100px;
}

.stack-header {
  text-align: center;
  margin-bottom: 40px;
}

.stack-title {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 8px;
}

.stack-sub {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-yellow);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.tool-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-block;
  background-color: #fff;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color 0.2s ease;
}

.tool-name, .tool-category {
  transition: color 0.2s ease;
}

.tool-card:hover .tool-icon {
  background-color: var(--accent-yellow);
}

.tool-card:hover .tool-name,
.tool-card:hover .tool-category {
  color: var(--accent-yellow);
}

.tool-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tool-name { font-size: 15px; font-weight: 600; }
.tool-category { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 800px) {
  .tool-stack { padding: 60px 22px 80px; }
  .stack-title { font-size: 34px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ---------- ABOUT — RECCS SECTION ---------- */
.reccs-section {
  padding: 60px 40px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.reccs-header { margin-bottom: 4px; }

.reccs-title {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.05;
  margin: 0 0 8px;
}

.reccs-sub {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-yellow);
  margin: 0;
}

.reccs-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .reccs-section { padding: 40px 20px 60px; }
  .reccs-title { font-size: 28px; }
  .reccs-sub { font-size: 18px; }
}

/* ---------- CONTACT PAGE ---------- */
.contact-board {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 40px;
}

.contact-svg {
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  height: auto;
  object-fit: contain;
}

.contact-inner {
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border-radius: 12px;
  padding: 44px 44px 36px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
}

.contact-title {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.contact-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact-form .field { display: flex; flex-direction: column; gap: 6px; }

.contact-form .field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-form .field-label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(0,0,0,0.32); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--mat-green);
  box-shadow: 0 0 0 3px rgba(45, 80, 72, 0.12);
}

.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.contact-submit {
  margin-top: 8px;
  align-self: flex-start;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  padding: 12px 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.contact-submit:hover:not(:disabled) {
  background: var(--mat-green);
  transform: translateY(-1px);
}

.contact-submit:disabled { opacity: 0.6; cursor: wait; }

.contact-status {
  margin: 0;
  font-size: 14px;
  min-height: 1.4em;
}

.contact-status.success { color: var(--mat-green); font-weight: 600; }
.contact-status.error { color: #c0392b; font-weight: 600; }

.contact-fallback {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 13px;
  color: var(--muted);
}

.contact-fallback.contact-fallback-top {
  margin: 0 0 26px;
  padding: 0;
  border-top: none;
  font-size: 14px;
}

.contact-fallback a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .contact-board { min-height: 60vh; padding: 40px 20px; }
  .contact-svg { max-width: 100%; }
  .contact-inner { padding: 32px 26px; }
  .contact-title { font-size: 36px; }
}

/* ---------- WORK PAGE ---------- */
.work-board {
  padding: 56px 56px 80px;
  overflow-y: auto;
  min-height: 100vh;
}

.work-header {
  text-align: center;
  margin-bottom: 44px;
}

.work-header .page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.work-header .page-sub {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent-yellow);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.work-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.work-card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.38);
}

.work-card-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
}

.work-card-meta {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-card-year {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--mat-green);
  font-weight: 700;
  letter-spacing: 1px;
}

.work-card-meta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
}

.work-card-meta p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.work-card-cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 1px;
}

@media (max-width: 800px) {
  .work-board { padding: 36px 20px 60px; }
  .work-header .page-title { font-size: 44px; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
}

.clients-section {
  max-width: 880px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.clients-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.1;
  margin: 0;
}

.clients-svg {
  width: 100%;
  max-width: 880px;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .clients-section { margin-top: 56px; }
  .clients-title { font-size: 26px; }
}

/* ---------- Notes from collaborators ---------- */
.notes {
  max-width: 880px;
  margin: 80px auto 0;
}

.notes-header { text-align: center; margin-bottom: 36px; }

.notes-header .notes-title {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.notes-header .notes-sub {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-yellow);
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.note-card {
  background: #fff;
  color: var(--ink);
  padding: 28px 28px 24px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.note-card .note-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent-yellow);
  display: block;
  margin-top: -4px;
}

.note-card blockquote {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.note-card blockquote p { margin: 0 0 10px; }
.note-card blockquote p:last-child { margin-bottom: 0; }

.note-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 4px;
}

.note-card figcaption strong { font-size: 14px; font-weight: 600; }

.note-card figcaption span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .notes { margin-top: 60px; }
  .notes-header .notes-title { font-size: 30px; }
  .notes-grid { grid-template-columns: 1fr; }
}

/* ---------- CASE STUDY PAGE ---------- */
.case-study {
  background: var(--paper);
  min-height: 100vh;
  color: var(--ink);
}

.case-study .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 246, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 10;
}

.case-study .topbar a { font-size: 14px; font-weight: 600; }
.case-study .topbar .home-avatar { width: 36px; height: 36px; }

.case-study main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.case-study .hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.case-study .hero .tagline {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--mat-green);
  margin-bottom: 32px;
}

.case-study .meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.case-study .meta .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 4px;
}

.case-study .meta .value { font-size: 14px; font-weight: 500; }

.case-study .hero-image,
.case-study img.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #eaeae5;
  background-size: cover;
  background-position: top center;
  border-radius: 8px;
  margin-bottom: 56px;
}

.case-study section { margin-bottom: 48px; }

.case-study section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 14px;
}

.case-study section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.case-study section ul {
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.case-study section ul li { margin-bottom: 6px; }

/* full-width image with natural aspect, no cropping — good for app-screen showcases */
.case-study .figure-full,
.case-study img.figure-full {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 8px;
  background: #eaeae5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.case-study .figure,
.case-study img.figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 32px 0;
  background: #eaeae5;
  background-size: cover;
  background-position: top center;
  border-radius: 8px;
}

.case-study .figure-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 32px;
}

.case-study .figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 36px;
}

.case-study .figure-grid img {
  width: 100%;
  border-radius: 6px;
  display: block;
  background: #eee;
}

.case-study .figure-grid.two-col { grid-template-columns: 1fr 1fr; }

.case-study .figure-grid img.feature { grid-column: 1 / -1; }

.case-study .subhead {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin: 28px 0 8px;
}

.case-study .footer-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 56px;
}

.case-study .footer-nav a {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.case-study .footer-nav .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 700px) {
  .case-study .topbar { padding: 18px 22px; }
  .case-study main { padding: 40px 22px 80px; }
  .case-study .hero h1 { font-size: 42px; }
  .case-study .meta { grid-template-columns: 1fr 1fr; }
}
