/* Layout: left-aligned editorial column (max 1120px). Hero splits name + portrait;
   work is a filterable two-column grid; case studies use a meta sidebar + reading column.
   Signature: a periwinkle "highlighter" swipe behind my name only (the --pop color).
   Corners: --radius for panels and image frames, --radius-sm for prints, thumbnails
   and small badges, and full pills (999px) for buttons, chips and tags. Nothing else. */
:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --ink: #1F1B2B;
  --muted: #5E5A57;
  --line: #E6E2DC;
  --mat: #EFEDEA;
  --pop: #9DACF5;
  --on-pop: #1F1B2B;
  --accent: var(--muted);
  --accent-soft: var(--mat);
  --on-accent: #FFFFFF;
  --contact-bg: #E8EBFA;
  --contact-fg: #1F1B2B;

  /* Same pairing as the Canva site: Montserrat headings, Inter body */
  --display: "Montserrat", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 4px;

  /* Always light, even when a visitor's device is set to dark mode */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Jump links land below the sticky header instead of underneath it */
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: var(--radius-sm); }

/* Keyboard users can skip straight past the menu */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font: 700 0.78rem/1.3 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Highlighter swipe */
.mark {
  background-image: linear-gradient(var(--pop), var(--pop));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.38em;
  padding-inline: 0.06em;
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .mark--draw { animation: draw 0.9s 0.25s cubic-bezier(.6,.1,.2,1) both; }
  @keyframes draw { from { background-size: 0 0.38em; } to { background-size: 100% 0.38em; } }
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font: 800 1.15rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.logo span { background: var(--pop); color: var(--on-pop); border-radius: var(--radius-sm); padding: 2px 6px; margin-right: 6px; }
.nav { display: flex; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; padding-block: 2px; transition: color .15s ease, border-color .15s ease; }
.nav a:hover { color: var(--ink); }
/* Underline follows the page (or home-page section) you're on */
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--pop); }
@media (max-width: 560px) { .nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--body);
  padding: 14px 22px; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--ink);
  transition: transform .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--pop { background: var(--pop); border-color: var(--pop); color: var(--on-pop); }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.2rem); font-weight: 900; margin-block: 18px 24px; letter-spacing: -0.03em; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.portrait { position: relative; justify-self: end; width: min(100%, 380px); }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  background: var(--accent-soft); border-radius: var(--radius);
}
.portrait img { position: relative; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; width: 100%; height: auto; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(78%, 320px); }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }


/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 0.88rem/1 var(--body);
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Project grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px); }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.card { display: grid; gap: 14px; text-decoration: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--mat);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { display: grid; gap: 6px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.card-meta span:last-child { font-variant-numeric: tabular-nums; }
.card h3 { display: flex; align-items: baseline; gap: 10px; }
.card h3 .arrow { transition: transform .2s ease; font-family: var(--body); }
.card:hover h3 .arrow { transform: translateX(5px); }
.card p { color: var(--muted); max-width: 46ch; }

/* Thumbnail presentation: the piece sits whole on a mat, like a print proof */
.card-media--mat { display: flex; align-items: center; justify-content: center; padding: 8% 10%; }
.card-media--mat img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 22px 40px -22px rgba(31, 27, 43, .55);
}
.card-media--mat.is-wide img { width: 100%; height: auto; }
/* Multi-page pieces get two sheets peeking out behind */
.card-media--stack img {
  box-shadow:
    9px -9px 0 -3px var(--surface), 9px -9px 0 -2px var(--line),
    18px -18px 0 -6px var(--surface), 18px -18px 0 -5px var(--line),
    0 22px 40px -22px rgba(31, 27, 43, .55);
}
.card:hover .card-media--mat img { transform: translateY(-4px) rotate(-0.6deg); }
/* Social: three posts in a row, middle one forward */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 4%; padding: 0 9%; width: 100%; height: 100%; }
.mosaic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); box-shadow: 0 18px 32px -18px rgba(31, 27, 43, .55); }
.mosaic img:nth-child(2) { transform: scale(1.18); position: relative; z-index: 1; }
.card:hover .mosaic img:nth-child(2) { transform: scale(1.24); }
.card:hover .mosaic img:not(:nth-child(2)) { transform: none; }

/* NDA tile */
.nda {
  width: 100%; height: 100%;
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 5%, transparent) 14px 15px),
    var(--mat);
}
.nda strong { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: -0.03em; }
.nda span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; } }
.about-copy { display: grid; gap: 18px; max-width: 64ch; font-size: 1.1rem; }
/* About snapshots: instant-photo prints in a neat row */
.snapshots { grid-column: 1 / -1; display: grid; gap: 22px; margin-top: 24px; }
.snapshot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 26px; padding-block: 8px; }
.snap {
  margin: 0; background: var(--surface); padding: 10px 10px 0; border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(31, 27, 43, .08), 0 18px 34px -20px rgba(31, 27, 43, .4);
  transition: transform .25s ease;
}
.snap { width: min-content; }  /* frame hugs the photo; captions wrap to its width */
.snap img { display: block; height: 240px; width: auto; max-width: none; }
.snap--crop img { aspect-ratio: 3 / 4; object-fit: cover; }
.snap figcaption { font: 600 0.8rem/1.3 var(--label); text-align: center; padding: 10px 4px 12px; max-width: 32ch; margin-inline: auto; }


.snap:hover { transform: translateY(-4px); }
@media (max-width: 640px) {
  .snapshot-row { gap: 18px 12px; }
  .snap { padding: 6px 6px 0; width: calc(50% - 6px); }
  .snap img { height: auto; width: 100%; }
  .snap figcaption { font-size: 0.72rem; padding: 8px 2px 10px; }
}
.stack { display: grid; gap: 28px; align-content: start; }

.list-block { display: grid; gap: 12px; }
.list-block h3 { font-size: 1.05rem; letter-spacing: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; }
.pills--strengths li { background: var(--pop); color: var(--on-pop); border-color: var(--pop); font-weight: 600; }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 32px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.timeline .when { font: 500 0.85rem/1.5 var(--label); color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.15rem; }
.timeline .role { color: var(--muted); font-weight: 500; }
.timeline p { margin-top: 8px; max-width: 64ch; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }
.group-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 44px 0 14px; letter-spacing: 0; }
.section-head + .group-title { margin-top: 0; }
.edu {
  display: flex; justify-content: space-between; align-items: start; gap: 20px 40px; flex-wrap: wrap;
  padding-block: 26px; border-block: 1px solid var(--line);
}
.edu > div:first-child { display: grid; gap: 4px; min-width: 0; flex: 1 1 360px; }
.edu h3 { font-size: 1.15rem; }
.edu .role { color: var(--muted); font-weight: 500; }
.edu-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.edu-facts li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 0.9rem; font-weight: 500; }
.edu-grad { display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.edu-grad span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.edu-grad b { font: 800 1.4rem/1 var(--display); letter-spacing: -0.02em; }
.resume-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-fg); }
.contact-label { font-size: 0.9rem; font-weight: 500; color: color-mix(in srgb, var(--contact-fg) 72%, var(--contact-bg)); }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5rem); margin-block: 0 36px; }
.contact-intro { max-width: 52ch; margin: -14px 0 40px; font-size: 1.15rem; color: color-mix(in srgb, var(--contact-fg) 82%, var(--contact-bg)); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-list li { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--contact-fg) 25%, var(--contact-bg)); min-width: 0; }
.contact-list a, .contact-list .val { font-size: 1.1rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--pop); text-underline-offset: 4px; }
.copy { justify-self: start; margin-top: 4px; font: 600 0.82rem/1 var(--body); background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 7px 11px; cursor: pointer; opacity: .8; }
.copy:hover { opacity: 1; }
@media (max-width: 760px) { .contact-list { grid-template-columns: 1fr; } }

.site-footer { padding-block: 28px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Resume page ---------- */
.resume { padding-block: clamp(40px, 7vw, 80px) clamp(64px, 9vw, 112px); }
.resume-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.resume-head h1 { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 800; margin-block: 14px 18px; letter-spacing: -0.03em; }
.resume-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-weight: 500; }
.resume-contact a { text-decoration: none; overflow-wrap: anywhere; }
.resume-contact a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pop); text-underline-offset: 4px; }
.resume-section { display: grid; gap: 18px; padding-block: 32px; border-top: 1px solid var(--line); }
.resume-section h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.entries { display: grid; gap: 28px; min-width: 0; }
.entry { display: grid; gap: 10px; }
.entry-head { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; }
.entry-head > div:first-child { min-width: 0; }
.entry h3 { font-size: 1.15rem; }
.entry-role { color: var(--muted); font-weight: 500; font-style: italic; }
.entry-when { display: grid; justify-items: end; font: 500 0.85rem/1.5 var(--label); color: var(--muted); font-variant-numeric: tabular-nums; }
.entry ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; max-width: 72ch; }
.entry li::marker { color: var(--pop); }
@media (max-width: 760px) {
  .resume-section { grid-template-columns: 1fr; }
  .entry-when { justify-items: start; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #bbb; }
  body { font-size: 10pt; line-height: 1.4; }
  .site-header, .no-print { display: none !important; }
  .resume { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .resume-head { padding-bottom: 10pt; }
  .resume-head h1 { font-size: 26pt; margin-block: 4pt 6pt; }
  .mark { background: none; padding: 0; }
  .resume-section { grid-template-columns: 1fr; gap: 6pt; padding-block: 10pt; }
  .resume-section h2 { font-size: 12pt; text-transform: uppercase; letter-spacing: 0.04em; }
  .entries { gap: 10pt; }
  .entry { gap: 4pt; break-inside: avoid; }
  .entry h3 { font-size: 11pt; }
  .entry ul { gap: 2pt; max-width: none; }
  .pills li { border: 0; padding: 0; background: none; }
  .pills li + li::before { content: "| "; color: var(--muted); }
  .pills { gap: 4pt; }
  @page { margin: 0.5in; }
}

/* ---------- Case study pages ---------- */
.case-hero { padding-block: clamp(40px, 7vw, 80px) 32px; }
.back { display: inline-flex; gap: 8px; text-decoration: none; font-weight: 600; color: var(--muted); margin-bottom: 32px; }
.back:hover { color: var(--ink); }
.case-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-block: 14px 20px; letter-spacing: -0.03em; max-width: 16ch; }
.case-hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 52ch; }

.meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin: 40px 0 0; padding-block: 22px; border-block: 1px solid var(--line);
}
.meta div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.meta dt { font-size: 0.85rem; font-weight: 500; line-height: 1.2; color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; line-height: 1.4; }
@media (max-width: 700px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case-cover { margin-block: 40px 0; border-radius: var(--radius); overflow: hidden; background: var(--mat); }
.case-cover .nda { aspect-ratio: 16 / 7; }

/* Inline image viewer: left half of the image = previous, right half = next */
.viewer { margin-top: 40px; display: grid; gap: 14px; }
.viewer-stage {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mat);
  display: flex; align-items: center; justify-content: center;
  height: clamp(320px, 72vh, 760px); padding: clamp(12px, 2.5vw, 28px);
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.viewer--slides .viewer-stage { height: auto; aspect-ratio: 16 / 9; padding: 0; }
.viewer--slides .viewer-img { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.viewer-img {
  max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 24px 48px -24px rgba(31, 27, 43, .5);
}
.viewer-stage:has(> .viewer-prev):hover .viewer-prev,
.viewer-stage:has(> .viewer-prev):hover .viewer-next { opacity: 1; }
.viewer-prev, .viewer-next {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 1.25rem;
  box-shadow: 0 6px 18px -6px rgba(31, 27, 43, .35);
  opacity: .85; transition: opacity .15s ease, background .15s ease;
}
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
.viewer-prev:hover, .viewer-next:hover { background: var(--pop); color: var(--on-pop); }
.viewer-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.viewer-count { font: 700 0.85rem/1 var(--label); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.viewer-hint { font-size: 0.85rem; color: var(--muted); }
.viewer-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
.viewer-thumbs button {
  flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--mat); cursor: pointer; opacity: .6; transition: opacity .15s ease, border-color .15s ease;
  scroll-snap-align: start;
}
.viewer-thumbs button:hover { opacity: 1; }
.viewer-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--pop); }
.viewer-thumbs img { display: block; height: 84px; width: auto; }
.viewer--slides .viewer-thumbs img { height: 68px; }

/* Case study text: headings sit above the text, everything on the same left edge as the images */
.case-body { padding-block: clamp(48px, 7vw, 88px); }
.case-section { display: grid; gap: 14px; padding-block: 32px; border-top: 1px solid var(--line); }
.case-section:first-child { border-top: 0; padding-top: 0; }
.case-section h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.case-section .text { display: grid; gap: 14px; max-width: 70ch; }

/* Applications: finished pieces shown whole on the neutral mat */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin-top: 8px; }
.apps figure { margin: 0; display: grid; gap: 10px; }
.apps-mat { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 10%; background: var(--mat); border-radius: var(--radius); }
.apps-mat img { width: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 18px 32px -18px rgba(31, 27, 43, .5); }
.apps figcaption { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.callout { background: var(--pop); color: var(--on-pop); border-radius: var(--radius); padding: 22px 26px; font-weight: 600; font-size: 1.1rem; }

/* Nodd keeps its small inline logo gallery styles for any future inline use */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mat); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; object-position: top; }

.next { border-top: 1px solid var(--line); padding-block: 48px 72px; }
.next a { display: grid; gap: 10px; text-decoration: none; }
.next h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.next-label { font-weight: 600; color: var(--muted); }
.next h2 { text-decoration: underline 0.12em transparent; text-underline-offset: 0.18em; transition: text-decoration-color .15s ease; }
.next a:hover h2 { text-decoration-color: var(--pop); }