:root {
  --bg: #050505;
  --text: #f5f5f0;
  --muted: #9c9c9c;
  --card: #101010;
  --card-2: #0c0c0c;
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.28);
  --radius: 14px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 0%, rgba(255, 255, 255, 0.06), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

img {
  display: block;
  max-width: 100%;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu a {
  position: relative;
  transition: color 180ms ease;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
}

.page-section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 128px 0 60px;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-content: center;
  padding-top: 150px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.hero-title {
  min-height: clamp(4.2rem, 10vw, 8rem);
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  line-height: 1.03;
  letter-spacing: -0.07em;
}

.type-cursor {
  display: inline-block;
  width: 0.08em;
  min-width: 2px;
  height: 0.9em;
  margin-left: 0.08em;
  background: currentColor;
  vertical-align: -0.08em;
  animation: caretBlink 0.9s ease-in-out infinite;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.section-heading,
.page-title {
  margin-bottom: 32px;
}

.page-title h1,
.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.page-title p:last-child,
.section-heading p:last-child {
  max-width: 560px;
  color: var(--muted);
}

.photo-collage {
  max-width: calc(100% - 48px);
  margin-inline: 24px;
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  overflow-x: clip;
  padding: 34px 0;
}

.collage-card {
  position: relative;
  flex: 0 0 clamp(210px, 24vw, 310px);
  overflow: hidden;
  margin: 0 -22px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  background: var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.collage-card img,
.gallery-card img,
.project-mini-card img,
.music-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-card img {
  aspect-ratio: 4 / 5;
}

.rotate-left {
  transform: rotate(-4deg);
}

.rotate-right {
  transform: rotate(4deg) translateY(24px);
}

.rotate-soft {
  transform: rotate(-2deg) translateY(-18px);
}

.rotate-back {
  transform: rotate(3deg) translateY(6px);
}

.collage-card:hover {
  z-index: 3;
  border-color: var(--border-hover);
  transform: translateY(-10px) rotate(0deg) scale(1.02);
}

.collage-card figcaption,
.gallery-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 46px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.74));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.collage-card:hover figcaption,
.gallery-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

figcaption span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

figcaption small {
  color: rgba(245, 245, 240, 0.74);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 18px;
  padding-top: 40px;
}

.music-card,
.currently-card,
.experience-item,
.featured-project,
.project-mini-card,
.gear-group,
.gear-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card), var(--card-2));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.music-card:hover,
.currently-card:hover,
.experience-item:hover,
.project-mini-card:hover,
.gear-group:hover,
.gear-product-card:hover,
.featured-project:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.music-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.26fr) minmax(0, 0.74fr);
  gap: 28px;
  padding: 18px;
}

.music-art,
.spotify-hero {
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}

.music-art img {
  aspect-ratio: 1 / 1;
}

.spotify-hero {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.11), transparent 14rem),
    #020202;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.spotify-hero iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  filter: saturate(0.95);
}

.music-copy {
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 0;
}

.music-copy h2,
.currently-card h2,
.featured-copy h2,
.gear-group h2,
.project-mini-card h2,
.experience-item h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
}

.music-copy p,
.currently-card p,
.featured-copy p,
.gear-group span,
.project-mini-card p,
.experience-item p {
  color: var(--muted);
}

.music-copy a,
.featured-copy a,
.project-mini-card a,
.gear-group a {
  width: fit-content;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
}

.currently-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.sparkline {
  width: 100%;
  margin: 18px 0;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.2;
  opacity: 0.82;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.currently-card small {
  display: block;
  margin-top: 18px;
  color: #777;
  font-size: 0.72rem;
}

.experience-page {
  padding-top: 150px;
}

.experience-hero {
  min-height: 54vh;
  display: grid;
  align-content: center;
  position: relative;
}

.experience-hero::after {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: min(34vw, 320px);
  height: min(34vw, 320px);
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
  opacity: 0.75;
}

.experience-hero h1 {
  max-width: 940px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.experience-hero p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.experience-photo-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr) minmax(0, 0.82fr);
  gap: clamp(14px, 2vw, 24px);
  margin: -16px 0 86px;
  align-items: center;
}

.experience-photo-strip figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-photo-strip .experience-side-photo {
  height: clamp(240px, 30vw, 330px);
}

.experience-photo-strip .experience-main-photo {
  height: clamp(360px, 45vw, 520px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.experience-photo-strip .experience-side-photo:first-child {
  transform: none;
}

.experience-photo-strip .experience-side-photo:last-child {
  transform: none;
}

.experience-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.experience-photo-strip .experience-main-photo img {
  object-position: 50% 45%;
}

.experience-photo-strip figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 44px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.76));
}

.experience-story {
  display: grid;
  gap: clamp(54px, 8vw, 110px);
  padding-top: 18px;
}

.experience-quote {
  display: grid;
  place-items: center;
  width: min(680px, 100%);
  min-height: 220px;
  margin-inline: auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 50%, transparent 50.5%),
    linear-gradient(145deg, #090909, #030303);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-quote:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.experience-quote p {
  max-width: 320px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-align: center;
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.experience-row.reverse {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.92fr);
}

.experience-row.reverse .experience-row-media {
  order: 2;
}

.experience-row.reverse .experience-row-copy {
  order: 1;
}

.experience-row-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: clamp(280px, 34vw, 430px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.experience-toggle {
  cursor: pointer;
}

.experience-toggle::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.62);
  color: rgba(245, 245, 240, 0.82);
  content: "click for details";
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.experience-interactive.is-flipped .experience-toggle::after {
  content: "click to return";
}

.experience-toggle:hover::after,
.experience-toggle:focus-visible::after {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.experience-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.experience-row-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.experience-row-media.logo-media {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 28vw, 360px);
  padding: clamp(28px, 5vw, 64px);
  --accent: rgba(255, 222, 88, 0.88);
  --accent-glow: rgba(255, 222, 88, 0.18);
  background:
    radial-gradient(circle at 50% 38%, rgba(37, 99, 235, 0.10), transparent 13rem),
    linear-gradient(145deg, #ffffff, #f4f1e9);
}

.experience-row-media.logo-media img {
  width: min(78%, 340px);
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.experience-row-copy {
  max-width: 560px;
}

.experience-switcher {
  display: grid;
}

.experience-panel {
  grid-area: 1 / 1;
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.experience-panel-detail {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  filter: blur(3px);
}

.experience-interactive.is-flipped .experience-panel-summary {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  filter: blur(3px);
}

.experience-interactive.is-flipped .experience-panel-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0);
}

.experience-row-copy span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-row-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.experience-row-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.experience-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  list-style: none;
}

.experience-detail-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.025);
}

.experience-detail-list strong {
  color: var(--text);
  font-weight: 500;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.time-grid div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.025);
}

.time-grid dt {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.time-grid dd {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.experience-interactive.is-flipped .experience-row-media {
  transform: translateY(-3px);
}

.build-row {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card), var(--card-2));
}

.build-row .experience-row-copy {
  max-width: none;
}

.date,
.org,
.place {
  margin-bottom: 6px;
}

.date {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.org {
  color: var(--text) !important;
}

.place {
  font-size: 0.86rem;
}

.featured-project,
.project-feature,
.joam-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  gap: 26px;
  padding: 18px;
}

.project-showcase {
  display: grid;
  gap: 18px;
}

.project-feature,
.joam-project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card), var(--card-2));
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-feature:hover,
.joam-project:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.project-feature.reverse {
  grid-template-columns: 0.92fr minmax(280px, 1.08fr);
}

.project-shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: #111;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-shot-large {
  min-height: 390px;
}

.project-feature:hover .project-shot img,
.project-mini-card:hover .project-shot img {
  transform: scale(1.025);
}

.title-card-visual {
  display: grid;
  min-height: 340px;
  align-content: end;
  padding: 28px;
  border: 1px solid rgba(145, 169, 255, 0.22);
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 20% 20%, rgba(133, 154, 255, 0.24), transparent 16rem),
    linear-gradient(145deg, #02040b, #0b1020 48%, #030303);
}

.civilsense-visual {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 12rem),
    linear-gradient(145deg, #050505, #0b0b0b 48%, #030303);
}

.title-card-visual p,
.title-card-visual span {
  color: rgba(245, 245, 240, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title-card-visual h2 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.05em;
}

.featured-copy {
  align-self: center;
  padding: 20px;
}

.related {
  margin-top: 18px;
  font-size: 0.92rem;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.project-mini-card {
  overflow: hidden;
}

.project-mini-card > img,
.project-mini-card .project-shot {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
}

.project-mini-card div {
  padding: 24px;
}

.project-mini-card .project-shot {
  padding: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.project-mini-card .project-shot + div {
  padding: 24px;
}

.project-status {
  display: inline-block;
  width: fit-content;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.82rem;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gear-section {
  margin-top: 46px;
}

.gear-section + .gear-section {
  margin-top: 72px;
}

.gear-section-head {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.gear-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.055em;
}

.gear-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
  gap: 16px;
}

.gear-layout-editorial {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
}

.gear-layout-editorial .gear-product-card {
  grid-column: span 3;
}

.gear-layout-editorial .gear-product-card:nth-child(1) {
  grid-column: span 5;
  min-height: 430px;
}

.gear-layout-editorial .gear-product-card:nth-child(2) {
  grid-column: span 4;
  transform: translateY(36px);
}

.gear-layout-editorial .gear-product-card:nth-child(3) {
  grid-column: span 3;
  min-height: 390px;
}

.gear-layout-editorial .gear-product-card:nth-child(5) {
  transform: translateY(-24px);
}

.gear-layout-studio {
  grid-template-columns: minmax(300px, 1.2fr) repeat(2, minmax(220px, 0.8fr));
  align-items: stretch;
}

.gear-layout-studio .gear-product-card:first-child {
  grid-row: span 2;
}

.gear-layout-studio .gear-product-card:first-child .gear-image {
  min-height: 380px;
}

.gear-layout-studio .gear-product-card:not(:first-child) {
  min-height: 300px;
}

.gear-layout-training {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: center;
  padding: 28px 0;
}

.gear-layout-training .gear-product-card:nth-child(1),
.gear-layout-training .gear-product-card:nth-child(3) {
  transform: translateY(-24px);
}

.gear-layout-training .gear-product-card:nth-child(2),
.gear-layout-training .gear-product-card:nth-child(4) {
  transform: translateY(24px);
}

.gear-layout-training .gear-product-card:hover {
  transform: translateY(-4px);
}

.gear-layout-care {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
}

.gear-layout-care .gear-product-card {
  min-height: 285px;
  border-radius: 18px;
}

.gear-layout-care .gear-image {
  min-height: 175px;
}

.gear-layout-care .gear-info {
  padding: 14px;
}

.gear-layout-care .gear-info span {
  display: none;
}

.gear-layout-care .gear-info h3 {
  font-size: 1rem;
}

.gear-layout-media {
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  align-items: stretch;
}

.gear-layout-media .gear-product-card {
  min-height: 410px;
}

.gear-layout-media .gear-product-card:nth-child(2) .gear-image {
  min-height: 320px;
}

.gear-group {
  min-height: 200px;
  padding: 24px;
}

.gear-group p {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
}

.gear-product-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 340px;
  color: var(--text);
}

.wide-gear {
  grid-column: span 1;
}

.gear-product-card::after {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.92);
  color: #050505;
  content: "↗";
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gear-product-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gear-image {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 13rem),
    #f4f4f2;
}

.gear-image img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 74%;
  object-fit: contain;
  object-position: center;
  transition: transform 260ms ease;
}

.gear-product-card:hover .gear-image img {
  transform: scale(1.055);
}

.gear-info {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.gear-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gear-info h2,
.gear-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.22;
}

.gear-info span {
  color: var(--muted);
  font-size: 0.86rem;
}

.gear-info small {
  width: fit-content;
  margin-top: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-size: 0.74rem;
}

.gallery-flow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: clamp(10px, 2vw, 22px);
  align-items: start;
  padding-top: 28px;
}

.gallery-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: zoom-in;
  transition: transform 180ms ease, border-color 180ms ease;
  animation: fadeUp 600ms ease both;
}

.gallery-card:nth-of-type(2) { margin-top: 44px; }
.gallery-card:nth-of-type(5) { margin-top: 30px; }
.gallery-card:nth-of-type(8) { margin-top: 54px; }
.gallery-card:nth-of-type(11) { margin-top: 32px; }
.gallery-card:nth-of-type(14) { margin-top: 48px; }
.gallery-card:nth-of-type(17) { margin-top: 28px; }
.gallery-card:nth-of-type(20) { margin-top: 42px; }

.gallery-card:nth-child(2) { animation-delay: 70ms; }
.gallery-card:nth-child(3) { animation-delay: 140ms; }
.gallery-card:nth-child(4) { animation-delay: 210ms; }
.gallery-card:nth-child(5) { animation-delay: 280ms; }

.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.mosaic-large {
  grid-column: 1 / span 5;
  grid-row: span 2;
}

.mosaic-wide {
  grid-column: span 4;
  grid-row: span 1;
}

.mosaic-tall {
  grid-column: span 3;
  grid-row: span 2;
}

.mosaic-portrait {
  grid-column: span 4;
  grid-row: span 2;
}

.mosaic-medium {
  grid-column: span 3;
  grid-row: span 1;
}

.mosaic-detail {
  grid-column: span 4;
  grid-row: span 1;
}

.mosaic-small {
  grid-column: span 2;
  grid-row: span 1;
}

.mosaic-large img,
.mosaic-tall img,
.mosaic-portrait img {
  aspect-ratio: 3 / 4;
}

.mosaic-wide img,
.mosaic-medium img,
.mosaic-detail img,
.mosaic-small img {
  aspect-ratio: 16 / 10;
}

.gallery-card.la-frame img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 48%;
  background: #050505;
}

.gallery-card.family-frame img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.gallery-card.formal-frame img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 48%;
}

.gallery-card.close-frame img {
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.gallery-card.detail-frame img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.collage-card.monument-frame img,
.gallery-card.monument-frame img {
  object-position: 52% 42%;
}

.collage-card.museum-frame img,
.gallery-card.dc-portrait img {
  object-position: 54% 42%;
}

.collage-card.alley-frame img,
.gallery-card.alley-frame img {
  object-position: 50% 44%;
}

.collage-card.braids-frame img {
  object-position: 50% 44%;
}

.gallery-card.blowout-frame-01 img {
  object-position: 50% 38%;
}

.gallery-card.blowout-frame-02 img {
  object-position: 54% 38%;
}

.gallery-card.personal-frame img {
  aspect-ratio: 461 / 693;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.gallery-card.camera-frame img {
  object-position: 50% 46%;
}

.gallery-card.travel-detail img {
  object-position: 58% 52%;
}

.gallery-card.transit-detail img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.gallery-card.metro-overlook img,
.gallery-card.underground-frame img,
.gallery-card.airplane-frame img {
  object-position: 50% 50%;
}

.gallery-card.architecture-frame img {
  object-position: 50% 48%;
}

.gallery-card.castle-frame img {
  object-position: 50% 45%;
}

.gallery-card.walking-frame img {
  object-position: 50% 48%;
}

.gallery-card.lobby-frame img {
  object-position: 58% 42%;
}

.gallery-card.avenue-frame img {
  object-position: 50% 52%;
}

.gallery-card.street-frame img {
  aspect-ratio: 423 / 693;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

/* Interaction color layer. The site stays monochrome until a card is active. */
.collage-card,
.music-card,
.currently-card,
.experience-photo-strip figure,
.experience-row-media,
.experience-quote,
.experience-row.build-row,
.project-feature,
.joam-project,
.project-mini-card,
.gear-product-card,
.gallery-card {
  --accent: rgba(245, 245, 240, 0.64);
  --accent-glow: rgba(245, 245, 240, 0.10);
}

.collage-card:hover,
.music-card:hover,
.currently-card:hover,
.experience-photo-strip figure:hover,
.experience-row-media:hover,
.experience-quote:hover,
.experience-row.build-row:hover,
.project-feature:hover,
.joam-project:hover,
.project-mini-card:hover,
.gear-product-card:hover,
.gallery-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 56px var(--accent-glow),
    0 22px 70px rgba(0, 0, 0, 0.24);
}

.music-card { --accent: rgba(30, 215, 96, 0.78); --accent-glow: rgba(30, 215, 96, 0.16); }
.currently-card { --accent: rgba(96, 165, 250, 0.74); --accent-glow: rgba(96, 165, 250, 0.14); }
.collage-card:nth-child(1), .gallery-card[data-caption*="dusk"], .gallery-card[data-caption*="street"], .gallery-card.la-frame { --accent: rgba(255, 214, 88, 0.80); --accent-glow: rgba(255, 214, 88, 0.17); }
.collage-card:nth-child(2), .gallery-card[data-caption*="track"], .experience-photo-strip .experience-side-photo:first-child { --accent: rgba(56, 189, 248, 0.82); --accent-glow: rgba(56, 189, 248, 0.16); }
.collage-card:nth-child(3), .gallery-card.formal-frame, .experience-photo-strip .experience-main-photo { --accent: rgba(251, 146, 60, 0.82); --accent-glow: rgba(251, 146, 60, 0.18); }
.collage-card:nth-child(4), .gallery-card.close-frame, .gallery-card.detail-frame, .experience-photo-strip .experience-side-photo:last-child { --accent: rgba(168, 85, 247, 0.74); --accent-glow: rgba(168, 85, 247, 0.14); }
.gallery-card.family-frame, .gallery-card[data-caption*="friends"] { --accent: rgba(244, 114, 182, 0.74); --accent-glow: rgba(244, 114, 182, 0.14); }
.gallery-card.dc-portrait,
.gallery-card.architecture-frame,
.gallery-card.castle-frame,
.gallery-card.avenue-frame {
  --accent: rgba(74, 222, 128, 0.76);
  --accent-glow: rgba(74, 222, 128, 0.14);
}

.gallery-card.monument-frame {
  --accent: rgba(147, 197, 253, 0.82);
  --accent-glow: rgba(147, 197, 253, 0.16);
}

.gallery-card.travel-detail,
.gallery-card.transit-detail,
.gallery-card.metro-overlook,
.gallery-card.underground-frame {
  --accent: rgba(56, 189, 248, 0.82);
  --accent-glow: rgba(56, 189, 248, 0.16);
}

.gallery-card.blowout-frame-01,
.gallery-card.blowout-frame-02,
.gallery-card.personal-frame,
.gallery-card.street-frame,
.gallery-card.camera-frame,
.gallery-card.alley-frame,
.gallery-card.lobby-frame {
  --accent: rgba(251, 146, 60, 0.82);
  --accent-glow: rgba(251, 146, 60, 0.18);
}

.gallery-card.airplane-frame {
  --accent: rgba(250, 204, 21, 0.84);
  --accent-glow: rgba(250, 204, 21, 0.17);
}

.experience-story .experience-row:nth-of-type(1) .experience-row-media { --accent: rgba(255, 222, 88, 0.88); --accent-glow: rgba(255, 222, 88, 0.18); }
.experience-story .experience-row:nth-of-type(2) .experience-row-media { --accent: rgba(74, 222, 128, 0.76); --accent-glow: rgba(74, 222, 128, 0.14); }
.experience-story .experience-row:nth-of-type(4) .experience-row-media { --accent: rgba(56, 189, 248, 0.82); --accent-glow: rgba(56, 189, 248, 0.16); }
.experience-quote { --accent: rgba(251, 191, 36, 0.72); --accent-glow: rgba(251, 191, 36, 0.13); }
.experience-row.build-row { --accent: rgba(148, 163, 184, 0.72); --accent-glow: rgba(148, 163, 184, 0.12); }

.project-feature:nth-of-type(1), .project-mini-card:nth-child(1) { --accent: rgba(96, 165, 250, 0.78); --accent-glow: rgba(96, 165, 250, 0.15); }
.project-mini-card:nth-child(2) { --accent: rgba(45, 212, 191, 0.78); --accent-glow: rgba(45, 212, 191, 0.15); }
.project-feature.reverse { --accent: rgba(74, 222, 128, 0.76); --accent-glow: rgba(74, 222, 128, 0.14); }
.joam-project { --accent: rgba(251, 146, 60, 0.80); --accent-glow: rgba(251, 146, 60, 0.16); }

.gear-layout-editorial .gear-product-card { --accent: rgba(251, 191, 36, 0.76); --accent-glow: rgba(251, 191, 36, 0.14); }
.gear-layout-studio .gear-product-card { --accent: rgba(96, 165, 250, 0.76); --accent-glow: rgba(96, 165, 250, 0.14); }
.gear-layout-training .gear-product-card { --accent: rgba(56, 189, 248, 0.80); --accent-glow: rgba(56, 189, 248, 0.15); }
.gear-layout-care .gear-product-card { --accent: rgba(45, 212, 191, 0.74); --accent-glow: rgba(45, 212, 191, 0.13); }
.gear-layout-media .gear-product-card { --accent: rgba(168, 85, 247, 0.74); --accent-glow: rgba(168, 85, 247, 0.14); }

@keyframes kickUp {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  45% { transform: translateY(-9px) rotate(-2.5deg) scale(1.045); }
  100% { transform: translateY(-5px) rotate(-1.2deg) scale(1.035); }
}

@keyframes clickIn {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  42% { transform: translateY(3px) scale(0.975); filter: brightness(1.12); }
  100% { transform: translateY(0) scale(1.035); filter: brightness(1.05); }
}

@keyframes liftOn {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-13px) rotate(1.5deg) scale(1.035); }
  100% { transform: translateY(-8px) rotate(0.7deg) scale(1.025); }
}

@keyframes quietGalleryShift {
  0% { transform: scale(1); }
  100% { transform: scale(1.018); }
}

.gear-product-card[data-motion="kick"]:hover .gear-image img,
.collage-card[data-motion="kick"]:hover img {
  animation: kickUp 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  transform-origin: 50% 82%;
}

.gear-product-card[data-motion="click"]:hover .gear-image img {
  animation: clickIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center;
}

.gear-product-card[data-motion="lift"]:hover .gear-image img {
  animation: liftOn 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  transform-origin: 50% 20%;
}

.gallery-card:hover img {
  animation: quietGalleryShift 260ms ease both;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1120px);
  max-height: 82vh;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox p {
  margin: 16px 0 0;
  color: var(--text);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.map-title {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.photo-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}

.photo-map {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--card);
}

.map-fallback {
  display: grid;
  height: 100%;
  min-height: inherit;
  place-items: center;
  margin: 0;
  color: var(--muted);
}

.photo-map .leaflet-control-container,
.photo-map .leaflet-popup {
  font-family: var(--sans);
}

.photo-map .leaflet-control-zoom a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.84);
  color: var(--text);
}

.photo-map .leaflet-control-attribution {
  background: rgba(5, 5, 5, 0.72);
  color: rgba(245, 245, 240, 0.7);
}

.photo-map .leaflet-control-attribution a {
  color: var(--text);
}

.photo-marker {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(245, 245, 240, 0.88);
  border-radius: 15px;
  background: rgba(5, 5, 5, 0.74);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  transform: rotate(-3deg);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.photo-marker img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
}

.photo-marker:hover,
.photo-marker.is-active {
  border-color: var(--accent, #facc15);
  box-shadow: 0 0 0 2px rgba(5, 5, 5, 0.88), 0 0 26px var(--accent-glow, rgba(250, 204, 21, 0.24));
  transform: translateY(-4px) rotate(0deg) scale(1.04);
}

.photo-map-popup .leaflet-popup-content-wrapper,
.photo-map-popup .leaflet-popup-tip {
  border: 1px solid var(--border-hover);
  background: #080808;
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.map-popup-card {
  width: min(260px, 66vw);
}

.map-popup-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.map-popup-card h3 {
  margin: 12px 0 4px;
  font-size: 1rem;
}

.map-popup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.map-preview {
  position: sticky;
  top: 98px;
  align-self: start;
  min-height: 420px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, var(--card), var(--card-2));
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.map-preview.is-active {
  border-color: var(--accent, var(--border-hover));
  box-shadow: 0 22px 70px var(--accent-glow, rgba(255, 255, 255, 0.08));
}

.map-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  border-radius: var(--radius);
  object-fit: cover;
}

.map-preview h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.map-preview p {
  margin-bottom: 14px;
  color: var(--muted);
}

.map-preview span {
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 60px auto 0;
  padding: 28px 0 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.social a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-copy {
  margin: 0;
  font-size: 0.86rem;
}

.fade-up {
  animation: fadeUp 650ms ease both;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes caretBlink {
  0%, 45% {
    opacity: 1;
  }

  55%, 100% {
    opacity: 0.08;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 840px) {
  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 66px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.96);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px;
  }

  .nav-menu a::after {
    display: none;
  }

  .page-section {
    width: min(100% - 28px, 1180px);
    padding-top: 110px;
  }

  .hero {
    min-height: 70vh;
  }

  .photo-collage {
  max-width: calc(100% - 48px);
  margin-inline: 24px;
    min-height: auto;
    overflow-x: auto;
    padding: 18px 6px 28px;
    scroll-snap-type: x mandatory;
  }

  .collage-card {
    flex-basis: 240px;
    margin: 0 8px;
    scroll-snap-align: center;
    transform: none !important;
  }

  .home-grid,
  .music-card,
  .photo-map-shell,
  .featured-project,
  .project-feature,
  .project-feature.reverse,
  .joam-project,
  .project-card-grid,
  .gear-grid,
  .gear-section-grid,
  .gear-section-head,
  .experience-item {
    grid-template-columns: 1fr;
  }

  .wide-gear,
  .experience-quote {
    grid-column: span 1;
  }

  .experience-story,
  .experience-row,
  .experience-row.reverse {
    grid-template-columns: 1fr;
  }

  .experience-row.reverse .experience-row-media,
  .experience-row.reverse .experience-row-copy {
    order: initial;
  }

  .experience-switcher {
    min-height: 0;
  }

  .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-photo-strip {
    grid-template-columns: 1fr;
    margin: 0 0 34px;
  }

  .experience-photo-strip .experience-side-photo:first-child,
  .experience-photo-strip .experience-side-photo:last-child {
    transform: none;
  }

  .experience-photo-strip .experience-side-photo,
  .experience-photo-strip .experience-main-photo {
    height: auto;
  }

  .experience-photo-strip .experience-side-photo img,
  .experience-photo-strip .experience-main-photo img {
    aspect-ratio: 4 / 5;
  }

  .experience-hero::after {
    width: 170px;
    height: 170px;
    opacity: 0.35;
  }

  .music-copy {
    padding: 8px;
  }

  .photo-map {
    min-height: 520px;
  }

  .map-preview {
    position: static;
    min-height: auto;
  }

  .gear-grid {
    gap: 12px;
  }

  .gear-section-grid {
    gap: 12px;
  }

  .gear-layout-editorial,
  .gear-layout-studio,
  .gear-layout-training,
  .gear-layout-care,
  .gear-layout-media {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .gear-layout-editorial .gear-product-card,
  .gear-layout-editorial .gear-product-card:nth-child(1),
  .gear-layout-editorial .gear-product-card:nth-child(2),
  .gear-layout-editorial .gear-product-card:nth-child(3),
  .gear-layout-editorial .gear-product-card:nth-child(5),
  .gear-layout-studio .gear-product-card:first-child,
  .gear-layout-training .gear-product-card:nth-child(1),
  .gear-layout-training .gear-product-card:nth-child(2),
  .gear-layout-training .gear-product-card:nth-child(3),
  .gear-layout-training .gear-product-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
    transform: none;
    min-height: 340px;
  }

  .gear-layout-studio .gear-product-card:first-child .gear-image,
  .gear-layout-media .gear-product-card:nth-child(2) .gear-image {
    min-height: 210px;
  }

  .gear-layout-care .gear-info span {
    display: block;
  }

  .gallery-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .gallery-card,
  .mosaic-large,
  .mosaic-wide,
  .mosaic-tall,
  .mosaic-portrait,
  .mosaic-medium,
  .mosaic-detail,
  .mosaic-small {
    grid-column: span 1;
    grid-row: span 1;
    transform: none;
  }

  .gallery-card {
    min-height: auto;
    border-radius: 8px;
  }

  .gallery-card img {
    aspect-ratio: 1 / 1;
  }

  .gallery-card.la-frame img,
  .gallery-card.family-frame img {
    aspect-ratio: 2 / 3;
  }

  .gallery-card.family-frame img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
  }

  .gallery-card figcaption {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(2.75rem, 18vw, 4.6rem);
  }

  .page-title h1,
  .section-heading h2 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }

  .experience-item,
  .currently-card,
  .featured-copy,
  .project-mini-card div,
  .gear-group {
    padding: 20px;
  }

  .footer-inner {
    justify-content: center;
  }

  .footer-copy {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.type-cursor {
  animation: caretBlink 0.9s ease-in-out infinite !important;
}

/* JOAM layout system: shared geometry, spacing, typography, and component rhythm. */
:root {
  --header-height: 68px;
  --page-width: 1220px;
  --page-gutter: clamp(22px, 4vw, 64px);
  --hero-bottom-gap: clamp(22px, 3vh, 36px);
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 104px;
  --radius-small: 10px;
  --radius-card: 16px;
  --radius-large: 24px;
  --text-primary: #f5f5f2;
  --text-secondary: #a8a8a4;
  --text-tertiary: #737370;
  --collage-overlap: clamp(-32px, -2vw, -18px);
  --collage-card-width: clamp(210px, 22vw, 310px);
}

body {
  color: var(--text-primary);
}

.site-header {
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.9);
}

.nav,
.page-section,
.site-footer {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
}

.nav {
  min-height: var(--header-height);
  gap: var(--space-4);
}

.brand {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-menu {
  gap: clamp(18px, 2vw, 30px);
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-transform: none;
}

.nav-menu a.active {
  font-weight: 600;
}

.nav-menu a::after {
  bottom: -7px;
}

h1,
h2,
.page-title h1,
.section-heading h2,
.gear-section-head h2,
.music-copy h2,
.currently-card h2,
.gear-info h2,
.gear-info h3 {
  font-family: var(--sans);
}

p {
  color: var(--text-secondary);
}

.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--text-tertiary);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.page-section {
  padding-top: calc(var(--header-height) + var(--space-7));
  padding-bottom: var(--space-7);
}

.hero {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  height: 100svh;
  min-height: 100svh;
  margin-inline: auto;
  padding: var(--header-height) 0 var(--hero-bottom-gap);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: initial;
  overflow: clip;
}

@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.hero-copy {
  align-self: center;
  padding-bottom: var(--space-3);
}

.hero-title {
  min-height: 1em;
  max-width: 950px;
  margin-bottom: var(--space-4);
  font-family: var(--sans);
  font-size: clamp(3.6rem, 6.5vw, 6.8rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 44px;
  text-transform: uppercase;
}

.hero-label {
  justify-self: end;
}

.scroll-cue {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}

.scroll-cue-icon {
  width: 10px;
  height: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: color 180ms ease, transform 180ms ease;
}

.scroll-cue:hover .scroll-cue-icon {
  color: var(--text-primary);
  transform: rotate(45deg) translate(1px, 1px);
}

.scroll-cue:focus-visible {
  outline: 1px solid var(--text-primary);
  outline-offset: 2px;
}

#home-content {
  overflow: clip;
}

.camera-roll {
  padding-top: var(--space-8);
}

.section-heading,
.page-title {
  margin-bottom: var(--space-6);
}

.page-title h1,
.section-heading h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 600;
  line-height: 0.98;
}

.photo-collage {
  width: 100%;
  max-width: var(--page-width);
  min-height: clamp(390px, 46vw, 520px);
  margin-inline: auto;
  justify-content: center;
  overflow: visible;
  padding: var(--space-5) max(var(--space-5), calc(var(--collage-card-width) * 0.12));
}

.collage-card {
  flex-basis: var(--collage-card-width);
  margin-inline: var(--collage-overlap);
  border-radius: var(--radius-large);
}

.collage-card:nth-child(1) { transform: rotate(-4deg) translateY(14px); }
.collage-card:nth-child(2) { transform: rotate(2deg) translateY(28px); }
.collage-card:nth-child(3) { z-index: 2; transform: rotate(0deg) translateY(-10px); }
.collage-card:nth-child(4) { transform: rotate(-2deg) translateY(28px); }
.collage-card:nth-child(5) { transform: rotate(4deg) translateY(14px); }

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2vw, 28px);
  padding-top: var(--space-7);
}

.music-card,
.currently-card {
  min-width: 0;
  height: 100%;
  min-height: clamp(520px, 58svh, 640px);
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.music-card {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  gap: var(--space-4);
}

.music-copy {
  display: block;
  flex: 0 0 auto;
  padding: 0;
}

.music-copy a {
  display: inline-block;
}

.spotify-hero {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: var(--radius-small);
}

.spotify-hero iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.currently-card {
  display: flex;
  flex-direction: column;
}

.currently-card .sparkline {
  margin-top: auto;
}

.currently-card small {
  color: var(--text-tertiary);
}

.gear-section {
  margin-top: var(--space-6);
}

.gear-section + .gear-section {
  margin-top: var(--space-7);
}

.gear-section-head {
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.gear-section-grid,
.gear-layout-editorial,
.gear-layout-studio,
.gear-layout-training,
.gear-layout-care,
.gear-layout-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: var(--space-4);
  padding: 0;
}

.gear-section-grid .gear-product-card,
.gear-layout-editorial .gear-product-card,
.gear-layout-studio .gear-product-card,
.gear-layout-training .gear-product-card,
.gear-layout-care .gear-product-card,
.gear-layout-media .gear-product-card,
.wide-gear {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  transform: none !important;
}

.gear-product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
}

.gear-product-card:hover,
.gear-layout-training .gear-product-card:hover {
  transform: translateY(-3px);
}

.gear-image,
.gear-layout-studio .gear-product-card:first-child .gear-image,
.gear-layout-media .gear-product-card:nth-child(2) .gear-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.gear-image img {
  width: 82%;
  height: 82%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.gear-info,
.gear-layout-care .gear-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-content: initial;
  gap: var(--space-2);
  padding: var(--space-4);
}

.gear-info h2,
.gear-info h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.gear-info span,
.gear-layout-care .gear-info span {
  display: block;
  color: var(--text-secondary);
  line-height: 1.55;
}

.gear-info small {
  margin-top: auto;
  padding-top: var(--space-3);
}

.site-footer {
  margin-top: var(--space-7);
  padding: var(--space-5) 0 var(--space-6);
}

@media (max-width: 1024px) {
  .gear-section-grid,
  .gear-layout-editorial,
  .gear-layout-studio,
  .gear-layout-training,
  .gear-layout-care,
  .gear-layout-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav {
    min-height: var(--header-height);
  }

  .nav-menu {
    top: var(--header-height);
    right: var(--page-gutter);
    left: var(--page-gutter);
  }

  .page-section {
    width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
    padding-top: calc(var(--header-height) + var(--space-6));
  }

  .hero {
    min-height: 100svh;
    padding-top: var(--header-height);
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 5.3rem);
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    font-size: clamp(0.56rem, 1.8vw, 0.66rem);
    letter-spacing: 0.1em;
  }

  .camera-roll {
    padding-top: var(--space-7);
  }

  .photo-collage {
    width: calc(100% + var(--page-gutter));
    max-width: none;
    min-height: auto;
    margin: 0;
    justify-content: initial;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-3) var(--page-gutter) var(--space-5) 0;
    scroll-padding-inline: 0 var(--page-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .collage-card,
  .collage-card:nth-child(n) {
    flex: 0 0 min(76vw, 290px);
    margin: 0 var(--space-2) 0 0;
    scroll-snap-align: start;
    transform: none;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4vw, 28px);
  }

  .music-card,
  .currently-card {
    height: auto;
    min-height: 0;
  }

  .spotify-hero {
    height: clamp(360px, 70svh, 520px);
    min-height: clamp(360px, 70svh, 520px);
  }

  .currently-card {
    min-height: 420px;
  }

  .gear-section-head {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

@media (max-width: 600px) {
  .gear-section-grid,
  .gear-layout-editorial,
  .gear-layout-studio,
  .gear-layout-training,
  .gear-layout-care,
  .gear-layout-media {
    grid-template-columns: 1fr;
  }

  .hero-location,
  .hero-label {
    max-width: 110px;
    line-height: 1.35;
  }

  .hero-label {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-icon,
  .scroll-cue:hover .scroll-cue-icon {
    transform: rotate(45deg) translate(-1px, -1px);
  }
}

/* Homepage corrections: framed recent work, stacked cards, and study tracking. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand::before {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: url("./images/favicon.png") center / contain no-repeat;
  content: "";
}

.recent-frames {
  --recent-card-width: clamp(170px, min(20vw, 31svh), 260px);
  --recent-overlap: clamp(-28px, -1.7vw, -16px);
  --recent-rotation: 3deg;
  --recent-offset: clamp(8px, 1.4svh, 14px);
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(24px, 4svh, 42px);
  padding-bottom: clamp(24px, 4svh, 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  scroll-margin-top: var(--header-height);
}

@supports (height: 100dvh) {
  .recent-frames {
    min-height: calc(100dvh - var(--header-height));
  }
}

.recent-frames .section-heading {
  margin-bottom: clamp(12px, 2svh, 24px);
}

.recent-frames .section-heading h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
}

.recent-frames .photo-collage {
  width: 100%;
  height: 100%;
  max-width: var(--page-width);
  min-height: 0;
  margin-inline: auto;
  padding: var(--space-2) max(var(--space-5), calc(var(--recent-card-width) * 0.1));
  align-self: stretch;
}

.recent-frames .collage-card {
  flex-basis: var(--recent-card-width);
  margin-inline: var(--recent-overlap);
}

.recent-frames .collage-card:nth-child(1) {
  transform: rotate(calc(var(--recent-rotation) * -1)) translateY(var(--recent-offset));
}

.recent-frames .collage-card:nth-child(2) {
  transform: rotate(calc(var(--recent-rotation) * 0.45)) translateY(calc(var(--recent-offset) * 1.35));
}

.recent-frames .collage-card:nth-child(3) {
  z-index: 2;
  transform: translateY(calc(var(--recent-offset) * -0.45));
}

.recent-frames .collage-card:nth-child(4) {
  transform: rotate(calc(var(--recent-rotation) * -0.45)) translateY(calc(var(--recent-offset) * 1.35));
}

.recent-frames .collage-card:nth-child(5) {
  transform: rotate(var(--recent-rotation)) translateY(var(--recent-offset));
}

.home-cards {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  max-width: var(--page-width);
  margin-inline: auto;
  padding-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
}

.home-cards .music-card,
.home-cards .currently-card {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.home-cards .music-card {
  min-height: clamp(520px, 58svh, 640px);
}

.home-cards .currently-card {
  min-height: 0;
}

.study-chart {
  margin: var(--space-5) 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.018);
}

.study-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 500;
}

.study-chart-heading small {
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  overflow: visible;
}

.chart-grid,
.chart-axis,
.chart-trend {
  fill: none;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--text-tertiary);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  font-family: var(--sans);
  font-size: 15px;
}

.chart-axis text {
  stroke: none;
}

.chart-trend {
  stroke: rgba(245, 245, 242, 0.55);
  stroke-width: 2;
}

.chart-point {
  fill: var(--text-primary);
  stroke: var(--bg);
  stroke-width: 3;
  cursor: help;
  opacity: 0.9;
  transition: opacity 160ms ease, r 160ms ease;
}

.chart-point:hover,
.chart-point:focus-visible {
  r: 9;
  opacity: 1;
  outline: none;
}

.chart-empty {
  fill: var(--text-tertiary);
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: -0.01em;
}

@media (max-width: 840px) {
  .recent-frames {
    --recent-card-width: min(74vw, 280px);
    display: grid;
    padding-top: clamp(20px, 3svh, 30px);
    padding-bottom: clamp(20px, 3svh, 30px);
  }

  .recent-frames .photo-collage {
    width: calc(100% + var(--page-gutter));
    height: 100%;
    margin: 0;
    padding: var(--space-2) var(--page-gutter) var(--space-4) 0;
    align-items: center;
  }

  .recent-frames .collage-card,
  .recent-frames .collage-card:nth-child(n) {
    flex: 0 0 var(--recent-card-width);
    margin: 0 var(--space-2) 0 0;
    transform: none;
  }

  .home-cards {
    width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
    padding-top: var(--space-6);
  }

  .home-cards .music-card {
    min-height: 0;
  }

  .brand::before {
    width: 22px;
    height: 22px;
  }
}

@media (max-height: 800px) and (min-width: 841px) {
  .recent-frames {
    --recent-card-width: clamp(170px, min(19vw, 28svh), 232px);
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .recent-frames .section-heading {
    margin-bottom: 10px;
  }

  .recent-frames .section-heading h2 {
    font-size: clamp(2.55rem, 4vw, 3.4rem);
  }
}

@media (max-height: 700px) and (min-width: 841px) {
  .recent-frames {
    --recent-card-width: clamp(155px, min(18vw, 25svh), 205px);
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .recent-frames .section-heading h2 {
    font-size: clamp(2.35rem, 3.6vw, 3rem);
  }
}


