:root {
  --bg: #f6efe1;
  --bg-deep: #ead8b7;
  --panel: rgba(255, 250, 241, 0.8);
  --panel-strong: #fffaf1;
  --line: rgba(57, 42, 25, 0.14);
  --text: #2c2014;
  --muted: #645445;
  --accent: #0e6b63;
  --accent-strong: #0a514b;
  --accent-soft: #d7f0e8;
  --shadow: 0 24px 60px rgba(79, 47, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(14, 107, 99, 0.14), transparent 22%),
    linear-gradient(135deg, var(--bg) 0%, #f1e5cb 55%, var(--bg-deep) 100%);
}

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

body.lightbox-active {
  overflow: hidden;
}

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

.page-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-shell-narrow {
  width: min(860px, calc(100% - 2rem));
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  flex-shrink: 0;
}

.site-logo img {
  width: 100px;
  height: auto;
}

.intro-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.intro-copy {
  min-width: 0;
}

.hero,
.panel,
.about-strip {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1rem 0 auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(14, 107, 99, 0.08);
  filter: blur(8px);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.lede {
  max-width: 56ch;
  margin: 1.2rem 0 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
}

.intro {
  max-width: 54ch;
  margin: 1rem 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(14, 107, 99, 0.22);
}

.button-primary:hover {
  background: var(--accent-strong);
}

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

.hero-media {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1rem 0 1rem 1rem;
}

.portrait-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--panel-strong);
}

.portrait-card img {
  width: 100%;
  height: min(70vh, 580px);
  object-fit: cover;
  object-position: center top;
}

main {
  display: grid;
  align-items: start;
  gap: 1.6rem;
}

.detail-layout {
  padding-top: 0.5rem;
}

.panel,
.about-strip {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  grid-auto-rows: max-content;
  gap: 1rem;
}

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  border-color: rgba(14, 107, 99, 0.45);
  box-shadow: 0 16px 36px rgba(79, 47, 14, 0.1);
}

.project-card h3 {
  font-size: 1.25rem;
}

.project-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.project-card p.card-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--accent-strong);
}

.project-card span:not(.card-tag) {
  color: var(--text);
}

.highlight {
  background:
    linear-gradient(180deg, rgba(215, 240, 232, 0.95), rgba(255, 255, 255, 0.8));
}

.card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card-static {
  background:
    linear-gradient(180deg, rgba(255, 249, 233, 0.94), rgba(255, 255, 255, 0.75));
}

.about-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: center;
}

.about-media {
  display: flex;
  justify-content: center;
}

.about-bitmoji {
  width: min(100%, 280px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.about-bitmoji img {
  width: 100%;
  height: auto;
}

.detail-panel {
  display: grid;
  gap: 1rem;
  min-height: 320px;
  align-content: start;
}

.detail-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.detail-lede {
  max-width: 46ch;
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.about-text p:last-child {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.project-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.project-hero-copy {
  min-width: 0;
}

.content-stack {
  display: grid;
  gap: 1.4rem;
}

.prose {
  display: grid;
  gap: 1rem;
  max-width: 72ch;
}

.prose p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.prose a,
.list-card a,
.software-bullet a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.intro-guidance {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid rgba(14, 107, 99, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(215, 240, 232, 0.46), rgba(255, 255, 255, 0.72));
}

.intro-guidance h3 {
  font-size: 1.2rem;
}

.intro-guidance p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.supporting-note {
  max-width: 72ch;
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card,
.list-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  line-height: 1.6;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.list-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.list-card ul + h3 {
  margin-top: 1.4rem;
}

.list-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.list-card li + li {
  margin-top: 0.45rem;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.media-copy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 1.5rem;
  align-items: start;
}

.media-copy-layout-30-70 {
  grid-template-columns: minmax(0, 3fr) minmax(320px, 7fr);
}

.software-bullet {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 320px);
  gap: 1.25rem;
  align-items: center;
}

.software-bullet-logo {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.6rem;
  box-sizing: border-box;
}

.software-bullet-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.software-bullet h3 {
  margin: 0 0 0.35rem 0;
}

.software-bullet p {
  margin: 0 0 0.85rem 0;
  line-height: 1.65;
}

.software-bullet p:last-child {
  margin-bottom: 0;
}

.software-bullet-figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.software-bullet-figure img {
  max-width: 100%;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}

.rigging-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(320px, 6fr);
  gap: 1rem;
  align-items: start;
}

.rigging-copy {
  min-width: 0;
}

.rigging-copy .section-heading {
  margin-bottom: 1rem;
}

.project-figure-fill {
  width: min(100%, 520px);
  justify-self: start;
  align-self: start;
}

.project-figure-fill img {
  width: 100%;
  height: auto;
  max-height: 600px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.project-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.project-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-figure figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.project-figure-portrait {
  max-width: 640px;
}

.project-figure-portrait img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}

.project-figure-capped {
  width: min(100%, 360px);
  justify-self: center;
}

.project-figure-capped img {
  max-height: 430px;
}

.lightbox-trigger {
  cursor: zoom-in;
}

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

.lightbox-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 12, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 96vw;
  padding: 3.5rem 1.5rem 1.5rem;
}

.lightbox-image {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: calc(96vh - 5rem);
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
  background: #fff;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy,
  .hero-media {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-copy {
    padding-right: 13rem;
  }

  .site-logo img {
    width: 82px;
  }

  .intro-lockup {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .hero-media {
    padding: 0;
    justify-self: end;
    align-self: start;
    margin-top: 0.35rem;
    justify-items: end;
  }

  .portrait-card {
    width: 200px;
    border-radius: 24px;
  }

  .portrait-card img {
    display: block;
    height: 200px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 18%;
  }

  h1 {
    max-width: 12ch;
  }

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

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

  .software-bullet {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .software-bullet-figure {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-copy {
    padding-right: 11.5rem;
  }

  h1 {
    max-width: 9.5ch;
  }
}

@media (max-width: 960px) {
  .about-strip,
  .card-grid,
  .project-hero-layout,
  .stat-grid,
  .checklist-grid,
  .figure-grid,
  .media-copy-layout {
    grid-template-columns: 1fr;
  }

  .card-grid-two {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
  }

  .lightbox-dialog {
    padding: 3.25rem 0.75rem 0.75rem;
  }

  .lightbox-image {
    max-width: 96vw;
    max-height: calc(96vh - 4.5rem);
  }

  .lightbox-close {
    top: 0;
    right: 0;
  }

  .site-logo img {
    width: 72px;
  }

  .intro-lockup {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
  }

  .hero,
  .panel,
  .about-strip {
    padding: 1.2rem;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    clear: both;
  }

  .button {
    width: 100%;
  }

  .hero-copy {
    padding-right: 9.5rem;
    padding-top: 0;
  }

  .hero-media {
    margin-top: 0;
  }

  .portrait-card {
    width: 140px;
  }

  .portrait-card img {
    height: 140px;
  }
}

@media (max-width: 400px) {
  .hero-copy,
  .hero-media {
    grid-row: auto;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-media {
    justify-self: center;
    align-self: start;
    justify-items: center;
    margin-bottom: 1rem;
  }

  .portrait-card {
    width: min(100%, 180px);
  }

  .portrait-card img {
    height: 180px;
  }
}
