/* ─── Fonts ─── */
@font-face {
  font-family: 'PP Agrandir';
  src: url('fonts/PPAgrandir-TightBlack.otf') format('opentype'),
       url('fonts/PPAgrandir-TightBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0D0D0D;
  --bg2: #1a1a1a;
  --bg3: #2a2a2a;
  --accent: #0DF2B9;
  --accent-grad-start: #9FF9E3;
  --text: #F2F2F2;
  --nav-pill-bg: #1A1A1A;
  --font-display: 'PP Agrandir', sans-serif;
  --font-body: 'Avenir Next', 'Avenir', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

.view--hidden { display: none; }

#info-view {
  min-height: 100vh;
}

/* ─── Info Page ─── */
.info-content {
  padding-top: 145px;
  padding-bottom: 80px;
}

.info-heading-group {
  width: 1222px;
  margin: 0 auto 40px;
}

.info-heading {
  font-family: var(--font-body);
  font-size: clamp(30px, 2.799vw, 47.78px);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin: 0 0 10px;
}

.info-heading-line {
  display: block;
  height: 18px;
}

/* "About me!" has no descenders, so the same margin reads as a much bigger gap than
   "My Process" (whose y descends); pull its wave up by about one descender to match */
.info-content > .info-heading-group .info-heading {
  margin-bottom: calc(10px - 0.23em);
}

.info-rows {
  width: 1222px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-row {
  display: flex;
  gap: 24px;
}

.info-card {
  background: var(--bg2);
  border-radius: 33px;
  height: 544px;
  flex-shrink: 0;
  overflow: hidden;
}

.info-card--photo {
  width: 600px;
}

.info-card--text {
  width: 598px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
}

.info-card-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.info-row:nth-child(2) .info-card-photo-img {
  object-position: 75% center;
}

.info-row:nth-child(3) .info-card-photo-img {
  object-position: center 60%;
}

.info-card-title {
  font-family: var(--font-body);
  font-size: clamp(19.44px, 1.35vw, 23.04px);
  font-weight: 600;
  color: var(--text);
  /* underline sits as close, proportionally, as the section headings' wave */
  margin: 0 0 0.075em;
}

.info-card-underline {
  display: block;
  height: 6px;
  margin-bottom: 48px;
}

.info-card-body {
  /* matches .process-card-text */
  font-size: clamp(16px, 1.111vw, 19px);
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ─── My Process section ─── */
.info-process-section {
  width: 1224px;
  margin: 40px auto 0;
}

.info-process-section .info-heading-group {
  margin-bottom: 24px;
}

.process-cards {
  display: flex;
  gap: 24px;
  width: 100%;
}

.process-card {
  flex: 0 0 288px;
  width: 288px;
  height: 288px;
  background: var(--bg2);
  border-radius: 33px;
  padding: 20px 24px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  transition: flex-basis 0.4s ease, width 0.4s ease, height 0.4s ease;
}

.process-card--research,
.process-card--design,
.process-card--synthesis,
.process-card--modification {
  position: relative;
}

/* Icon fades out on hover */
.process-card--research .process-card-icon,
.process-card--design .process-card-icon,
.process-card--synthesis .process-card-icon,
.process-card--modification .process-card-icon {
  transition: opacity 0.25s ease;
}

.process-card-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.111vw, 19px);
  line-height: 1.35;
  color: #fff;
  width: 349px;
  margin: 0;
  /* absolutely positioned so it overlaps the icon area for a crossfade */
  position: absolute;
  top: 68px;
  left: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.1s;
}

@media (hover: hover) and (min-width: 1025px) {
  /* Reserve the tallest (hovered) card height so a card changing shape never
     pushes the footer — or anything else below — down. */
  .process-cards {
    height: 408px;
    align-items: flex-start;
  }

  /* ── Research hover ── */
  .process-card--research:hover {
    flex: 0 0 408px;
    width: 408px;
    height: 408px;
  }
  .process-card--research:hover ~ .process-card {
    flex: 0 0 248px;
    width: 248px;
    height: 248px;
  }
  .process-card--research:hover .process-card-icon { opacity: 0; }
  .process-card--research:hover .process-card-text { opacity: 1; pointer-events: auto; }
  .process-card--research:hover ~ .process-card .process-card-icon img { height: 150px; }

  /* ── Design hover ── */
  .process-cards:has(.process-card--design:hover) .process-card--design {
    flex: 0 0 408px;
    width: 408px;
    height: 408px;
  }
  .process-cards:has(.process-card--design:hover) .process-card:not(.process-card--design) {
    flex: 0 0 248px;
    width: 248px;
    height: 248px;
  }
  .process-card--design .process-card-icon { transition: opacity 0.25s ease; }
  .process-card--design { position: relative; }
  .process-cards:has(.process-card--design:hover) .process-card--design .process-card-icon { opacity: 0; }
  .process-cards:has(.process-card--design:hover) .process-card--design .process-card-text { opacity: 1; pointer-events: auto; }
  .process-cards:has(.process-card--design:hover) .process-card:not(.process-card--design) .process-card-icon img { height: 150px; }

  /* ── Synthesis hover ── */
  .process-cards:has(.process-card--synthesis:hover) .process-card--synthesis {
    flex: 0 0 408px;
    width: 408px;
    height: 408px;
  }
  .process-cards:has(.process-card--synthesis:hover) .process-card:not(.process-card--synthesis) {
    flex: 0 0 248px;
    width: 248px;
    height: 248px;
  }
  .process-cards:has(.process-card--synthesis:hover) .process-card--synthesis .process-card-icon { opacity: 0; }
  .process-cards:has(.process-card--synthesis:hover) .process-card--synthesis .process-card-text { opacity: 1; pointer-events: auto; }
  .process-cards:has(.process-card--synthesis:hover) .process-card:not(.process-card--synthesis) .process-card-icon img { height: 150px; }

  /* ── Modification hover ── */
  .process-cards:has(.process-card--modification:hover) .process-card--modification {
    flex: 0 0 408px;
    width: 408px;
    height: 408px;
  }
  .process-cards:has(.process-card--modification:hover) .process-card:not(.process-card--modification) {
    flex: 0 0 248px;
    width: 248px;
    height: 248px;
  }
  .process-cards:has(.process-card--modification:hover) .process-card--modification .process-card-icon { opacity: 0; }
  .process-cards:has(.process-card--modification:hover) .process-card--modification .process-card-text { opacity: 1; pointer-events: auto; }
  .process-cards:has(.process-card--modification:hover) .process-card:not(.process-card--modification) .process-card-icon img { height: 150px; }
}

.process-card-title {
  font-family: var(--font-body);
  font-size: clamp(19.44px, 1.35vw, 23.04px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  flex-shrink: 0;
}

.process-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.process-card--research .process-card-icon {
  margin-top: 5px;
}

.process-card--modification .process-card-icon {
  margin-top: 7px;
}

.process-card-icon img {
  display: block;
  height: 200px;
  width: auto;
  transition: height 0.4s ease, width 0.4s ease;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 39px;
}

.nav-inner {
  position: relative;
  width: 100%;
  max-width: 1767px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Pill switch — centered */
.nav-switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 249px;
  height: 64px;
  background: var(--nav-pill-bg);
  border-radius: 180px;
  padding: 3px;
  gap: 0;
  flex-shrink: 0;
}

/* Sliding green indicator */
.nav-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: 58px;
  border-radius: 180px;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width   0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.nav-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 58px;
  border-radius: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(19.44px, 1.35vw, 23.04px);
  color: var(--text);
  transition: color 0.35s;
}

.nav-tab--active {
  color: #0D0D0D;
}

/* External links — right side */
.nav-ext {
  position: absolute;
  right: 14.77%; /* 261 / 1767 */
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.nav-ext-link {
  font-family: var(--font-body);
  /* matches .info-card-body */
  font-size: clamp(16px, 1.111vw, 19px);
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-ext-link:hover { color: #B2B2B2; }

.nav-ext-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
}

.nav-hamburger--open .ham-bar {
  fill: #b2b2b2;
}

/* Dropdown menu */
.nav-menu {
  display: none;
}

.nav-menu--open {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* ─── Hero ─── */
.hero {
  display: flex;
  align-items: flex-start;
  padding-top: 145px;
  padding-left: 15.39%; /* 272 / 1767 */
  padding-right: 0;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-text {
  width: 39.84vw; /* 704 / 1767 — use vw so % is relative to viewport, not padded parent */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  z-index: 1;
}

/* "Hi there!  I'm..." */
.hero-greeting {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(21px, 2.715vw, 47.78px);
  line-height: 1;
  color: var(--text);
  margin-bottom: 0;
  /* sits at top of Frame 22 */
}

/* MIKE DIBERNARDO */
.hero-name {
  display: flex;
  flex-direction: column;
  line-height: 0.87;
  margin-top: clamp(9px, 1.16vw, 20px);
}

.name-mike {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(100px, 16.41vw, 290px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.name-dibernardo {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38.5px, 6.39vw, 113px); /* min tuned so text width matches MIKE at small sizes */
  line-height: 1;
  margin-top: clamp(-53px, -3.0vw, -18px); /* proportional overlap, scaled with font */
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Italic subtitle + wavy teal underline */
.hero-sub-wrap {
  margin-top: clamp(28px, 3.79vw, 67px); /* 67px gap in Frame 25 */
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(16px, 1.87vw, 33.18px);
  line-height: 1;
  color: var(--text);
  display: block;
  margin-bottom: 14px;
}

/* Hand-drawn underline */
.hero-sub-line {
  display: block;
  height: 18px;
  margin-top: 4px;
}

/* CTA button */
.hero-cta {
  margin-top: clamp(28px, 3.79vw, 67px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 249px;
  height: 84px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--accent-grad-start), var(--accent));
  font-family: var(--font-body);
  font-weight: 600; /* Demi Bold */
  font-size: clamp(19.44px, 1.35vw, 23.04px);
  color: #1A1A1A;
  flex-shrink: 0;
  transition: background 0.6s, color 0.6s;
}

.hero-cta:hover {
  background: #1A1A1A;
  color: #F2F2F2;
}

/* Chair illustration */
.hero-chair {
  flex-shrink: 0;
  width: 36vw;
  margin-left: calc(3.85vw - 10px);
  margin-top: clamp(-20px, -1.5vw, -26px);
  align-self: flex-start;
}

.hero-chair img,
.hero-chair video {
  width: 100%;
  mix-blend-mode: lighten;
  opacity: 0.92;
}

/* ─── My Designs ─── */
/* Scales with the viewport like the hero. Values are the Figma sizes at 1767px
   wide (px / 17.67 = vw) and stop growing there; side padding matches .hero */
.my-designs {
  padding: min(1.019vw, 18px) 15.39% min(7.923vw, 140px);
  background: var(--bg);
}

.md-heading-group {
  margin-bottom: min(1.585vw, 28px);
}

/* Visually matches the gap under "My Process": measured from the lowest ink of the
   text to the top of the wave, so it allows for this heading's descenders. In em so
   it holds as the heading scales. */
.md-heading {
  font-family: var(--font-body);
  /* same size ramp and weight as .info-heading ("About me!" / "My Process") */
  font-size: clamp(30px, 2.799vw, 47.78px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-top: 0;
  /* the Info underline sits in a fixed 18px box, so its visual gap shrinks as the
     type grows; this tracks it (fitted at 40, 52 and 64px) */
  margin-bottom: calc(18.9px - 0.091em);
}

.md-heading-line {
  display: block;
  height: auto;
}

.md-layout {
  display: flex;
  gap: min(2.49vw, 44px);
}

/* Wrapper exists so the bottom shadow can sit ABOVE the rows */
.md-list-wrap {
  position: relative;
  flex: 368 1 0;
  min-width: 0;
  height: min(43.916vw, 776px);
  /* clips the native scrollbar to the rounded corners (browsers don't clip it
     against the scrolling element's own radius) */
  border-radius: min(1.868vw, 33px);
  overflow: hidden;
}

.md-list-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  border-radius: 0 0 min(1.868vw, 33px) min(1.868vw, 33px);
  pointer-events: none;
  transition: opacity 0.2s;
}

/* scrolled to the last row: nothing more below, so no shadow */
.md-list-wrap--end::after {
  opacity: 0;
}

.md-list {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: min(0.792vw, 14px);
  list-style: none;
  background: var(--bg2);
  border-radius: min(1.868vw, 33px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}

.md-item {
  position: relative;
  height: min(6.791vw, 120px);
}

.md-item::after {
  content: '';
  position: absolute;
  top: min(5.999vw, 106px);
  left: 0;
  right: 0;
  height: clamp(2px, 0.226vw, 4px);
  background: var(--bg);
  border-radius: 33px;
}

.md-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(4.98vw, 88px);
  /* centres the button between the rule above and the rule below (relative offset:
     a margin would collapse through the row and move the whole row instead) */
  position: relative;
  top: min(0.226vw, 4px);
  padding: min(0.113vw, 2px) 0 0;
  border: 0;
  border-radius: min(1.415vw, 25px);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(19.44px, 1.35vw, 23.04px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

/* Project buttons: Figma "vesus hover" (227:101) and "stalked hover" (232:127) variants;
   the other projects have no Figma variant yet and follow the same pattern */
.md-button--versus,
.md-button--stalked,
.md-button--fungi,
.md-button--hive,
.md-button--magazine,
.md-button--self-promo,
.md-button--cfk,
.md-button--united-percussion,
.md-button--psychology-club,
.md-button--host-chill-hang,
.md-button--wave-event-flyers,
.md-button--psych-club-flyers,
.md-button--slack-booklet,
.md-button--good-to-grow-app {
  transition: background 0.6s, color 0.6s;
}

.md-button--versus:hover,
.md-button--versus:focus-visible,
.md-button--stalked:hover,
.md-button--stalked:focus-visible,
.md-button--fungi:hover,
.md-button--fungi:focus-visible,
.md-button--hive:hover,
.md-button--hive:focus-visible,
.md-button--magazine:hover,
.md-button--magazine:focus-visible,
.md-button--self-promo:hover,
.md-button--self-promo:focus-visible,
.md-button--cfk:hover,
.md-button--cfk:focus-visible,
.md-button--united-percussion:hover,
.md-button--united-percussion:focus-visible,
.md-button--psychology-club:hover,
.md-button--psychology-club:focus-visible,
.md-button--host-chill-hang:hover,
.md-button--host-chill-hang:focus-visible,
.md-button--wave-event-flyers:hover,
.md-button--wave-event-flyers:focus-visible,
.md-button--psych-club-flyers:hover,
.md-button--psych-club-flyers:focus-visible,
.md-button--slack-booklet:hover,
.md-button--slack-booklet:focus-visible,
.md-button--good-to-grow-app:hover,
.md-button--good-to-grow-app:focus-visible {
  background: linear-gradient(180deg, var(--accent-grad-start), var(--accent));
  color: var(--bg);
}

.md-panel {
  position: relative;
  flex: 808 1 0;
  min-width: 0;
  height: min(43.916vw, 776px);
  background: var(--bg2);
  border-radius: min(1.868vw, 33px);
  overflow: hidden;
}

/* Panel hint: .process-card-text type, 3px smaller */
.md-panel-hint {
  position: absolute;
  top: min(1.585vw, 28px);
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 0 min(1.585vw, 28px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  color: hsl(0, 0%, 70%);
  text-align: center;
  pointer-events: none;
  transition: color 0.2s, opacity 0.2s;
}

/* Fades out once the section is in position (class set in index.html) */
.md-panel--fitted .md-panel-hint {
  opacity: 0;
}

.md-panel:hover .md-panel-hint {
  color: #fff;
  text-decoration: underline;
}

/* Project preview: fades in while its button is hovered or keyboard-focused */
.md-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* top padding clears the hint line (its offset + one 16px/1.35 line + a gap) */
  padding: calc(min(1.585vw, 28px) + 36px) min(0.792vw, 14px) min(0.792vw, 14px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s, padding-top 0.2s;
  pointer-events: none;
}

/* Idle slideshow frame (class set in index.html) */
.md-panel-img--auto {
  opacity: 1;
}

/* Hint hidden: no need to clear it, so images use the whole panel and centre */
.md-panel--fitted .md-panel-img {
  padding-top: min(0.792vw, 14px);
}

.md-layout:has(.md-button--versus:hover) .md-panel-img--versus,
.md-layout:has(.md-button--versus:focus-visible) .md-panel-img--versus,
.md-layout:has(.md-button--stalked:hover) .md-panel-img--stalked,
.md-layout:has(.md-button--stalked:focus-visible) .md-panel-img--stalked,
.md-layout:has(.md-button--fungi:hover) .md-panel-img--fungi,
.md-layout:has(.md-button--fungi:focus-visible) .md-panel-img--fungi,
.md-layout:has(.md-button--hive:hover) .md-panel-img--hive,
.md-layout:has(.md-button--hive:focus-visible) .md-panel-img--hive,
.md-layout:has(.md-button--magazine:hover) .md-panel-img--magazine,
.md-layout:has(.md-button--magazine:focus-visible) .md-panel-img--magazine,
.md-layout:has(.md-button--self-promo:hover) .md-panel-img--self-promo,
.md-layout:has(.md-button--self-promo:focus-visible) .md-panel-img--self-promo,
.md-layout:has(.md-button--cfk:hover) .md-panel-img--cfk,
.md-layout:has(.md-button--cfk:focus-visible) .md-panel-img--cfk,
.md-layout:has(.md-button--united-percussion:hover) .md-panel-img--united-percussion,
.md-layout:has(.md-button--united-percussion:focus-visible) .md-panel-img--united-percussion,
.md-layout:has(.md-button--psychology-club:hover) .md-panel-img--psychology-club,
.md-layout:has(.md-button--psychology-club:focus-visible) .md-panel-img--psychology-club,
.md-layout:has(.md-button--host-chill-hang:hover) .md-panel-img--host-chill-hang,
.md-layout:has(.md-button--host-chill-hang:focus-visible) .md-panel-img--host-chill-hang,
.md-layout:has(.md-button--wave-event-flyers:hover) .md-panel-img--wave-event-flyers,
.md-layout:has(.md-button--wave-event-flyers:focus-visible) .md-panel-img--wave-event-flyers,
.md-layout:has(.md-button--psych-club-flyers:hover) .md-panel-img--psych-club-flyers,
.md-layout:has(.md-button--psych-club-flyers:focus-visible) .md-panel-img--psych-club-flyers,
.md-layout:has(.md-button--slack-booklet:hover) .md-panel-img--slack-booklet,
.md-layout:has(.md-button--slack-booklet:focus-visible) .md-panel-img--slack-booklet,
.md-layout:has(.md-button--good-to-grow-app:hover) .md-panel-img--good-to-grow-app,
.md-layout:has(.md-button--good-to-grow-app:focus-visible) .md-panel-img--good-to-grow-app {
  opacity: 1;
}

/* Footer band, shown under both the Work and Info views */
.site-footer {
  height: 216px;
  background: var(--bg2); /* #1A1A1A */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Same three links as the nav: LinkedIn and Resume flanking the mailto link */
.footer-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* My Designs lightbox: opened by tapping an item on mobile (see index.html) */
.md-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 13, 0.85);
}

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

.md-lightbox-box {
  position: relative;
  display: flex;
  max-width: 100%;
  max-height: 100%;
  padding: 14px;
  background: var(--bg2);
  border-radius: 16.5px;
}

.md-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 76px);
  max-height: calc(100dvh - 76px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 9.5px;
}

.md-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
}

/* Gap from "See my work" to My Designs is spacing under the hero text, so the
   taller chair video doesn't push the section down. Scales with the hero. */
@media (min-width: 769px) {
  .hero { padding-bottom: 0; }
  .hero-text { padding-bottom: min(6.112vw, 108px); }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .info-content { padding-left: 24px; padding-right: 24px; }
  .info-heading-group { width: 100%; }
  .info-rows { width: 100%; }
  .info-row { flex-direction: column; }
  .info-card--photo,
  .info-card--text { width: 100%; }
  /* One column makes the photo cards wide and short, so a top-anchored crop on
     the first photo keeps the sequoia and loses Mike. Bias it down to his face. */
  .info-row:first-child .info-card-photo-img { object-position: center 85%; }
  .info-card--text { height: auto; padding-bottom: 24px; }
  .info-row:nth-child(2) .info-card--photo { order: -1; }
  .info-card-body { font-size: 15px; } /* matches .process-card-text */
  .info-card-title,
  .process-card-title,
  .hero-cta { font-size: 17.28px; }
  /* buttons are only ~38px tall at 769px, so two-line labels need a smaller size
     there; reaches 17.28px once the rows are tall enough */
  .md-button { font-size: clamp(14px, 1.9vw, 17.28px); }

  .info-process-section { width: 100%; }
  .process-cards { flex-wrap: wrap; }
  .process-card {
    flex: 1 1 calc(50% - 12px);
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 180px;
    align-items: flex-start;
    padding-bottom: 20px;
    padding-right: 96px; /* clear the icon */
  }
  /* Icon: small, pinned top-right */
  .process-card-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    margin-top: 0 !important;
  }
  .process-card-icon img {
    height: 72px !important;
  }
  /* Text always visible on small screens */
  .process-card-text {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100%;
    font-size: 15px;
    transition: none;
  }

  .hero { min-height: 0; }

  .nav-ext-link { font-size: 15px; } /* matches .info-card-body */
}

/* ── Mid + mobile: hamburger replaces nav-ext ── */
@media (max-width: 1024px) {
  .nav { padding-top: 20px; }
  .nav-inner { justify-content: flex-start; padding-left: 15.39%; align-items: flex-end; min-height: 64px; }
  .nav-switch { width: 180px; height: 46px; }
  .nav-indicator { height: 40px; }
  .nav-tab { height: 40px; font-size: 17.28px; }
  .nav-ext { display: none; }
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15.39%;
    bottom: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--nav-pill-bg);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .nav-menu {
    display: block;
    position: absolute;
    right: 15.39%;
    top: calc(64px + 10px);
    width: 184px;
    background: var(--nav-pill-bg);
    border-radius: 16px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
  }

  .nav-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #f2f2f2;
    font-family: var(--font-body);
    /* matches .info-card-body at this width */
    font-size: 15px;
    font-weight: 400;
    transition: color 0.15s;
  }

  .nav-menu-link:hover { color: #b2b2b2; }

  .nav-menu-link + .nav-menu-link {
    border-top: 1px solid rgba(255,255,255,0.06);
  }
}

/* ── Mobile only: layout + smaller switch ── */
@media (max-width: 768px) {
  /* keep the three links inside a phone's width */
  .footer-links { gap: 24px; }

  .nav-inner { padding-left: 24px; }
  .nav-hamburger { right: 24px; }
  .nav-menu { right: 24px; }
  .nav-switch { width: 180px; height: 46px; }
  .nav-indicator { height: 40px; }
  .hero-cta { display: none; }
  .nav-tab { height: 40px; font-size: 17.28px; }

  .hero {
    padding-top: 110px;
    padding-left: 24px;
    padding-right: 24px;
    min-height: 0;
    position: relative;
  }

  .hero-text { width: 100%; }
  .hero-chair {
    position: absolute;
    right: 0;
    top: 110px;
    width: clamp(160px, 42vw, 240px);
    margin: 0;
  }

  .process-card { flex: 1 1 100%; }
}

/* ── My Designs: stacked on mobile, like the hero ── */
@media (max-width: 768px) {
  .my-designs { padding: 60px 24px 80px; }
  .md-heading-group { margin-bottom: 24px; }
  .md-layout { flex-direction: column; gap: 24px; }
  .md-list-wrap { flex: none; width: 100%; height: auto; }
  /* the list never scrolls on phones, so it never has more rows to hint at */
  .md-list-wrap::after { display: none; }
  .md-list { height: auto; padding: 14px; border-radius: 33px; }
  .md-item { height: 120px; }
  .md-item::after { top: 106px; height: 4px; }
  .md-item:last-child { height: 88px; }
  .md-item:last-child::after { display: none; }
  .md-button { height: 88px; top: 4px; padding-top: 2px; border-radius: 25px; font-size: 17.28px; }
  /* No preview panel or hover on mobile; tapping an item opens the lightbox instead */
  .md-panel { display: none; }
  .md-button:hover,
  .md-button:focus-visible { background: var(--bg2); color: var(--text); }
}
