:root {
  --bg: #f1f6fd;
  --panel: rgba(255, 255, 255, 0.55);
  --panel-strong: #ffffff;
  --text: #2a2a39;
  --muted: rgba(42, 42, 57, 0.7);
  --line: rgba(42, 42, 57, 0.12);
  --accent: #1c73ff;
  --accent-strong: #1c73ff;
  --status: #7bcf6a;
  --shadow: 0 18px 50px rgba(18, 18, 28, 0.05);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1320px, calc(100vw - 64px));
}

@property --shake-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --shake-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --shake-rotate {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

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

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

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 500;
}

.status-text {
  color: var(--status);
  font-size: 0.92rem;
}

.avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 58px;
  height: 58px;
}

.avatar-lg {
  width: 138px;
  height: 138px;
}

.nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.nav-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.08rem;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.hero {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding-top: 0;
  min-height: 470px;
}

.hero-image {
  display: grid;
  place-items: center;
}

.hero-copy {
  text-align: center;
  max-width: 1800px;
}

.hero-name {
  margin: 0 0 28px;
  font-size: 1.42rem;
  font-weight: 500;
  color: rgba(42, 42, 57, 0.8);
  letter-spacing: -0.02em;
}

.hero-copy h1,
.page-header h1,
.section-intro h2,
.info-card h2,
.project-copy h2 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero-copy h1,
.page-header h1 {
  font-size: clamp(1.9rem, 3.45vw, 3.85rem);
  line-height: 1.02;
  max-width: 38ch;
  margin-inline: auto;
}

.hero-copy h1 span {
  display: block;
}

.section-label {
  margin: 0 0 14px;
  color: rgba(42, 42, 57, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.section-label .section-year {
  margin-left: 8px;
  color: rgba(42, 42, 57, 0.56);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.section-intro {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.narrow {
  max-width: 52ch;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.projects-preview .section-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  transform: translateY(-1px);
  background: #01377d;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
}

.based-line {
  text-align: center;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 88px;
}

.based-line p {
  margin: 0;
}

.strike {
  color: rgba(42, 42, 57, 0.34);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(42, 42, 57, 0.34);
  margin-right: 6px;
}

.based-highlight {
  color: var(--text);
  font-weight: 500;
}

.section {
  margin-top: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  margin-top: 18px;
}

.about-photo {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.about-copy .lead {
  max-width: 56ch;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.project-card-link {
  display: block;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(18, 18, 28, 0.08);
  border-color: rgba(42, 42, 57, 0.18);
}

.project-card-link:hover .project-copy h2 {
  color: var(--accent);
}

.project-card-recall .project-copy {
  padding: 18px 18px 22px;
  display: grid;
  gap: 14px;
}

.project-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tag-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(42, 42, 57, 0.14);
  color: rgba(42, 42, 57, 0.66);
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  white-space: nowrap;
}

.project-card-recall .project-copy h2 {
  font-size: 2.15rem;
  margin: 2px 0 0;
}

.project-card-recall .project-copy p:last-child {
  font-size: 1.02rem;
  max-width: 64ch;
}

.project-preview {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
}

.project-preview::after {
  content: none;
}

.project-year {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-weight: 700;
}

.project-preview-1 {
  min-height: 340px;
  background: url("recallpreviewnew.png") center center / cover no-repeat;
}

.project-preview-2 {
  background: url("nexus preview.png") center center / cover no-repeat;
}

.project-preview-3 {
  background: linear-gradient(135deg, #dce4d5, #97b386 58%, #55725e);
}

.project-preview-4 {
  background: url("first screen.png") center 18% / cover no-repeat;
}

.project-preview-5 {
  background: linear-gradient(135deg, #ddd6f3, #9ca6e1 55%, #6270b2);
}

.project-preview-6 {
  background: linear-gradient(135deg, #ebe6da, #c7b28b 55%, #82704e);
}

.project-preview-7 {
  min-height: 300px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 22%),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(135deg, #dbe7f7, #8ea8d0 52%, #52688b);
}

.project-preview-8 {
  background:
    linear-gradient(180deg, rgba(14, 18, 28, 0.28), rgba(14, 18, 28, 0.58)),
    url("clickify.png") center center / cover no-repeat;
}

.project-preview-8 .project-year {
  background: rgba(14, 18, 28, 0.78);
  color: #fff;
}

.project-copy {
  padding: 18px 18px 22px;
  display: grid;
  gap: 14px;
}

.project-copy h2 {
  font-size: 2.15rem;
  margin: 2px 0 0;
}

.project-tags {
  margin: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(42, 42, 57, 0.55);
  font-size: 0.92rem;
}

.project-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
  max-width: 64ch;
}

.skills-section .section-intro {
  margin-top: 88px;
  margin-bottom: 22px;
}

.section-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 16ch;
}

.about-statement {
  margin-top: 90px;
  margin-bottom: 34px;
}

.beyond-section {
  margin-top: 120px;
}

.beyond-section .section-intro {
  margin-top: 60px;
  margin-bottom: 40px;
}

.beyond-section .lead.narrow {
  max-width: 70ch;
}

.statement-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.statement-copy p {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.7rem, 2.9vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--text);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.skill-list::-webkit-scrollbar {
  display: none;
}

.tools-list {
  display: flex;
}

.tools-list .skill-chip {
  width: auto;
}

.skill-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
  white-space: nowrap;
}

.skills-strip {
  display: grid;
  gap: 38px;
}

.skills-strip-group {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.skills-strip-group .section-label {
  margin-bottom: 0;
}

.skills-strip-group .skill-list {
  padding-bottom: 0;
  justify-content: center;
  width: 100%;
}

.polaroid-collage {
  position: relative;
  min-height: 560px;
  margin-top: -4px;
  overflow: visible;
}

.favorites-panel {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(400px, calc(100% - 180px));
  transform: translate(-50%, -78%);
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  z-index: 0;
  pointer-events: none;
}

.favorites-panel-title {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: rgba(42, 42, 57, 0.2);
  text-transform: lowercase;
}

.favorites-panel-list {
  display: grid;
  gap: 9px;
  color: rgba(42, 42, 57, 0.3);
}

.favorites-panel-list div {
  display: grid;
  gap: 2px;
}

.favorites-panel-list span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.favorites-panel-list strong {
  font-size: clamp(0.88rem, 1.22vw, 1.04rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.polaroid {
  position: absolute;
  margin: 0;
  width: clamp(140px, 16vw, 220px);
  background: rgba(255, 255, 255, 0.94);
  padding: 11px 11px 16px;
  border-radius: 17px;
  box-shadow: 0 16px 30px rgba(18, 18, 28, 0.11);
  transform-origin: center center;
  touch-action: none;
  cursor: grab;
  user-select: none;
  z-index: 2;
  --drag-x: 0px;
  --drag-y: 0px;
  --rotate: 0deg;
  --shake-x: 0px;
  --shake-y: 0px;
  --shake-rotate: 0deg;
  transform:
    translate(calc(var(--drag-x) + var(--shake-x)), calc(var(--drag-y) + var(--shake-y))) rotate(calc(var(--rotate) + var(--shake-rotate)));
}

.polaroid.is-dragging {
  cursor: grabbing;
  box-shadow: 0 26px 45px rgba(18, 18, 28, 0.16);
}

.polaroid-frame {
  position: relative;
  display: grid;
  gap: 10px;
}

.polaroid-4 {
  animation: polaroid-shake 3.1s ease-in-out infinite;
  box-shadow:
    0 20px 40px rgba(18, 18, 28, 0.14),
    0 0 28px rgba(28, 115, 255, 0.08);
}

.polaroid-4.is-settled {
  animation: none;
}

.polaroid-photo {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.polaroid-photo::before,
.polaroid-photo::after {
  content: none;
}

.polaroid-caption {
  display: block;
  color: rgba(42, 42, 57, 0.68);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.polaroid-1 {
  left: 6%;
  top: 30px;
  z-index: 10;
  --rotate: -8deg;
}

.polaroid-2 {
  left: 15%;
  top: 110px;
  z-index: 18;
  --rotate: 5deg;
}

.polaroid-3 {
  left: 31%;
  top: 40px;
  z-index: 12;
  --rotate: -3deg;
}

.polaroid-4 {
  left: 45%;
  top: 24px;
  z-index: 22;
  --rotate: 7deg;
}

.polaroid-5 {
  left: 58%;
  top: 112px;
  z-index: 20;
  --rotate: -6deg;
}

.polaroid-6 {
  left: 77%;
  top: 44px;
  z-index: 14;
  --rotate: 4deg;
}

.polaroid-photo-1 {
  background: url("/img/polaroids/pic1.webp") center center / cover no-repeat;
}

.polaroid-photo-2 {
  background: url("/img/polaroids/pic2.webp") center center / cover no-repeat;
}

.polaroid-photo-3 {
  background: url("/img/polaroids/pic3.webp") center center / cover no-repeat;
}

.polaroid-photo-4 {
  background: url("/img/polaroids/pic4.webp") center center / cover no-repeat;
}

.polaroid-photo-5 {
  background: url("/img/polaroids/pic5.webp") center center / cover no-repeat;
}

.polaroid-photo-6 {
  background: url("/img/polaroids/pic6.webp") center center / cover no-repeat;
}

@keyframes polaroid-shake {

  0%,
  100% {
    --shake-x: 0px;
    --shake-y: 0px;
    --shake-rotate: 0deg;
  }

  18% {
    --shake-x: -1px;
    --shake-y: 0px;
    --shake-rotate: -0.2deg;
  }

  28% {
    --shake-x: 2px;
    --shake-y: -2px;
    --shake-rotate: 0.5deg;
  }

  38% {
    --shake-x: -3px;
    --shake-y: 2px;
    --shake-rotate: -0.7deg;
  }

  48% {
    --shake-x: 3px;
    --shake-y: 1px;
    --shake-rotate: 0.45deg;
  }

  58% {
    --shake-x: -2px;
    --shake-y: -1px;
    --shake-rotate: -0.35deg;
  }

  68% {
    --shake-x: 2px;
    --shake-y: 0px;
    --shake-rotate: 0.3deg;
  }

  78% {
    --shake-x: -1px;
    --shake-y: 1px;
    --shake-rotate: -0.15deg;
  }
}

.page-header {
  text-align: left;
}

.page-header .section-intro {
  justify-items: start;
  text-align: left;
}

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

.info-card,
.contact-form {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.info-card p,
.contact-form label {
  color: var(--muted);
  line-height: 1.65;
}

.contact-card p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  grid-column: span 2;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(47, 91, 83, 0.25);
  border-color: rgba(47, 91, 83, 0.35);
}

.project-grid-full .project-card {
  min-height: 100%;
}

/* .projects-list .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
} */

.projects-preview {
  margin-top: 0;
}

.case-study {
  display: grid;
  gap: 72px;
}

.case-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.case-nav {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 6px 0;
}

.case-nav-link {
  width: fit-content;
  padding: 4px 0;
  color: rgba(42, 42, 57, 0.58);
  font-size: 0.98rem;
  line-height: 1.35;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.case-nav-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.case-nav-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.case-content {
  min-width: 0;
  display: grid;
  gap: 92px;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 -8px;
  color: rgba(42, 42, 57, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: rgba(42, 42, 57, 0.72);
  transition: color 180ms ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 14px;
  max-width: 980px;
  width: 100%;
  justify-self: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.case-hero-media,
.case-section {
  border-radius: 28px;
}

.case-hero-head {
  display: grid;
  gap: 16px;
  max-width: 100%;
}

.case-hero-head h1 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.45vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 38ch;
}

.case-hero-media {
  padding: 0;
  background: transparent;
}

.case-hero-image {
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  position: relative;
  overflow: hidden;
}

.case-hero-overlay,
.case-badge {
  display: none;
}

.case-hero-info {
  padding: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: none;
}

.case-hero-description {
  margin: 0;
  max-width: 36ch;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
  margin-top: 0;
  width: 100%;
  padding-top: 6px;
}

.meta-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 28px rgba(18, 18, 28, 0.04);
}

.meta-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(42, 42, 57, 0.5);
  font-weight: 600;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.case-section {
  padding: 0;
  display: grid;
  gap: 28px;
  max-width: 980px;
  width: 100%;
  justify-self: center;
  background: transparent;
}

.case-section-heading h2 {
  margin: 8px 0 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.case-overview {
  display: grid;
  gap: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.25rem;
  max-width: 78ch;
}

.case-overview p {
  margin: 0;
}

.case-goal-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 62ch;
}

.case-goal-list li {
  padding-left: 0.15em;
}

.case-highlight {
  background: transparent;
}

.case-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.case-problem-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(18, 18, 28, 0.04);
}

.case-problem-card h3 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.case-problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.case-research {
  display: grid;
  gap: 20px;
  max-width: 78ch;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.65;
}

.case-research p {
  margin: 0;
}

.case-decisions {
  display: grid;
  gap: 18px;
  max-width: 78ch;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.65;
}

.case-decisions p {
  margin: 0;
}

.case-quote {
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 115, 255, 0.1), rgba(28, 115, 255, 0.04));
  border: 1px solid rgba(28, 115, 255, 0.16);
  width: 100%;
}

.case-quote.case-quote-plain {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-quote p {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.14rem;
  line-height: 1.62;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.case-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 100%;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 100%;
}

#research .case-learning-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 100%;
}

.case-research-muted {
  color: rgba(42, 42, 57, 0.62);
}

.case-research-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 100%;
  width: 100%;
  margin-top: 44px;
}

.case-research-heading {
  max-width: 78ch;
  display: grid;
  gap: 10px;
}

.case-research-heading h2 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 36ch;
}

.case-design-image {
  display: grid;
  gap: 12px;
  max-width: 100%;
  margin-top: 22px;
}

.case-design-image-features {
  margin-top: 22px;
}

.case-design-image img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(18, 18, 28, 0.06);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.case-design-image img:hover {
  transform: scale(1.006);
  box-shadow: 0 12px 32px rgba(18, 18, 28, 0.08);
}

.case-design-image p {
  margin: 0;
  color: rgba(42, 42, 57, 0.58);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
  max-width: 76ch;
  justify-self: center;
}

.case-research-twitter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  padding-inline: 12px;
}

.case-twitter-item {
  margin: 0;
  display: grid;
  gap: 10px;
}

.case-twitter-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(18, 18, 28, 0.08);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.case-twitter-item img:hover {
  transform: scale(1.006);
  box-shadow: 0 8px 20px rgba(18, 18, 28, 0.1);
}

.case-twitter-item figcaption {
  color: rgba(42, 42, 57, 0.54);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  width: 100%;
  justify-self: center;
  white-space: nowrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 28, 0.78);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(92vw, 980px);
  max-height: 88vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.lightbox-content figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
  max-width: 68ch;
}

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

#features .case-learning-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 100%;
  width: 100%;
}

.case-metric-card {
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(18, 18, 28, 0.04);
}

.case-metric-value {
  margin: 0;
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.case-metric-label {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.5;
}

.case-learning-card {
  padding: 28px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(18, 18, 28, 0.04);
}

.case-learning-stat {
  margin: 0;
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-learning-card h3 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  min-height: 2.4em;
}

.case-learning-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
  align-self: start;
}

.case-highlight-text {
  color: var(--accent);
  font-weight: 600;
}

.case-press-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  padding: 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(18, 18, 28, 0.04);
}

.case-press-card:hover .case-press-link {
  color: var(--accent);
}

.case-press-icon {
  font-size: 1.3rem;
}

.case-press-copy {
  display: grid;
  gap: 4px;
}

.case-press-title {
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.case-press-text {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
}

.case-press-link {
  white-space: nowrap;
  justify-self: end;
  font-size: 1rem;
}

.case-press-link.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(28, 115, 255, 0.18);
}

.case-press-link.button:hover {
  transform: translateY(-1px);
  color: #fff;
}

.case-reflection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 16px;
}

.case-more-projects {
  gap: 28px;
  margin-top: 72px;
}

.case-more-head {
  display: grid;
  gap: 12px;
  max-width: 78ch;
}

.case-more-head h2 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.case-more-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 52ch;
}

.case-more-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.case-more-grid {
  margin-top: 6px;
}

.case-more-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
}

.case-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: rgba(42, 42, 57, 0.74);
}

.case-more-links a {
  color: inherit;
}

.footer-section {
  margin-top: 48px;
  padding-bottom: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
}

.footer-card {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: 0 18px 48px rgba(18, 18, 28, 0.05);
}

.footer-card-large {
  min-height: 520px;
  padding: 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  justify-items: start;
  row-gap: 20px;
}

.footer-card-large h2 {
  margin: 0;
  width: min(100%, 26ch);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.9rem, 2.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-transform: none;
  text-align: left;
}

.footer-card-large h2>span {
  display: block;
}

.footer-card-large {
  position: relative;
}

.miami-note {
  position: relative;
  display: inline-block;
}

.miami-tooltip-trigger {
  color: inherit;
}

.miami-tooltip-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  z-index: 20;
  width: min(320px, 46vw);
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: #050505;
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
}

.miami-tooltip-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.miami-tooltip-panel span {
  display: block;
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.miami-note:hover .miami-tooltip-panel,
.miami-note:focus-within .miami-tooltip-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-email {
  display: inline-flex;
  width: fit-content;
  font-size: 1.08rem;
  color: var(--text);
  align-self: end;
}

.footer-stack {
  display: grid;
  gap: 18px;
}

.footer-link-card {
  min-height: 162px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.footer-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18, 18, 28, 0.08);
  border-color: rgba(42, 42, 57, 0.16);
}

.footer-label {
  grid-column: 1 / -1;
  font-size: 0.98rem;
  color: rgba(42, 42, 57, 0.52);
}

.footer-link-title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: -0.06em;
  font-weight: 500;
}

.footer-arrow {
  align-self: center;
  font-size: 2.4rem;
  line-height: 1;
}

.legal-footer {
  margin-top: 28px;
  padding: 10px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(42, 42, 57, 0.58);
  font-size: 0.92rem;
}

.legal-footer p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.legal-links a {
  color: inherit;
}

.back-to-top {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  position: relative;
  top: -1px;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav {
    justify-self: start;
    gap: 12px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 9px 14px;
  }

  .about-grid,
  .contact-grid,
  .about-hero,
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .polaroid-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: auto;
  }

  .polaroid {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .about-copy h1 {
    max-width: 100%;
  }

  .about-photo img {
    min-height: 420px;
  }

  .contact-form {
    grid-column: auto;
  }

  .case-hero,
  .case-learning-grid,
  .case-metrics-grid {
    grid-template-columns: 1fr;
  }

  .case-research-twitter-row {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .case-twitter-item figcaption {
    white-space: normal;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-nav {
    display: none;
  }

  .case-hero-image {
    aspect-ratio: auto;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding: 12px 0 32px;
  }

  .section {
    margin-top: 34px;
  }

  .skills-section .section-intro {
    margin-top: 56px;
  }

  .skills-strip {
    gap: 30px;
  }

  .skills-strip-group {
    gap: 14px;
  }

  .hero-copy h1,
  .page-header h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .avatar-lg {
    width: 120px;
    height: 120px;
  }

  .project-preview {
    min-height: 220px;
  }

  .polaroid-collage {
    grid-template-columns: 1fr;
  }

  .case-hero-media,
  .case-hero-info,
  .case-section,
  .case-learning-card,
  .project-card {
    border-radius: 22px;
  }

  .case-hero-info,
  .case-section {
    padding: 20px;
  }

  .case-hero-head h1 {
    max-width: 100%;
  }

  .case-hero-image {
    aspect-ratio: auto;
    min-height: 0;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-problem-grid {
    grid-template-columns: 1fr;
  }

  .case-learning-grid {
    grid-template-columns: 1fr;
  }

  .case-press-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }

  .case-more-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-card-large {
    min-height: auto;
  }

  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}