/* ── Gotham Rounded ── */
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-BookItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'GothamRounded';
  src: url('images/gotham_rounded/GothamRounded-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

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

:root {
  --bg: #f4f1ec;
  --surface: #edeae4;
  --surface-2: #e4e0d8;
  --border: rgba(0,0,0,0.09);
  --text: #18140f;
  --text-muted: #7a6e62;
  --accent: #2a9d8f;
  --accent-dark: #1f7a6e;
  --marble: #e8ddd0;
  --clay: #c97060;
  --stone: #6b5e52;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'GothamRounded', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'GothamRounded', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'GothamRounded', system-ui, sans-serif;
  font-weight: 700;
}

/* Sculptural grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(244,241,236,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav__links a:hover { color: var(--text); }

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-menu__link:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(0,0,0,0.25);
}

.btn--ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ── Section base ── */
.section { padding: 120px 0; }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header--left { text-align: left; }

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: none;
  line-height: 1.1;
}

.text-accent { color: var(--accent); }

/* ── Top control bar ── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  overflow: visible;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Sidebar watermark */
.sidebar__watermark {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 280px;
  height: auto;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  filter: invert(45%) sepia(60%) saturate(400%) hue-rotate(145deg);
}


/* Avatar wrap */
.sidebar__avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Badge — half circle over right side of avatar */
.sidebar__badge {
  position: absolute;
  top: 0;
  left: 48px;
  width: 48px;
  height: 96px;
  border-radius: 0 96px 96px 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-left: none;
  overflow: hidden;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sidebar__badge-logo {
  position: absolute;
  inset: 0;
  width: 70%;
  height: 60%;
  margin: auto;
  object-fit: contain;
}

/* Hover: badge slides away, full avatar revealed */
.sidebar__avatar-wrap:hover .sidebar__badge {
  opacity: 0;
  transform: translateX(10px);
}

/* Restored sidebar avatar */
.sidebar__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.top-bar__brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.top-bar .panel-toggles {
  margin-left: 0;
}

/* ── Split Layout ── */
html, body { height: 100%; overflow: hidden; }

.site-layout {
  display: flex;
  height: calc(100vh - 56px);
  margin-top: 56px;
  overflow: hidden;
}

/* Left sidebar — fixed */
.sidebar {
  width: 340px;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.35s ease, opacity 0.35s ease;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar__inner {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  position: relative;
  overflow-y: auto;
}
/* Prevent flex children from shrinking so sidebar can actually scroll */
.sidebar__inner > * { flex-shrink: 0; }



.sidebar__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.sidebar__name {
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin: 0;
}

.sidebar__name span { color: var(--accent); }

.sidebar__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 4px 0;
}

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

.sidebar__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar__meta a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.sidebar__available {
  color: var(--accent) !important;
  font-weight: 600;
}

.sidebar__skills {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Sidebar contact section */
.sidebar__contact {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.sidebar__contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sidebar__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.sidebar__form input,
.sidebar__form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--text);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.sidebar__form input:focus,
.sidebar__form textarea:focus {
  border-color: var(--accent);
}
.sidebar__submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar__submit:hover { background: var(--accent-dark); }
.sidebar__contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar__contact-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar__contact-links a:hover { color: var(--accent); }

/* Contact slot — right panel landing zone when WORK is off */
.contact-slot:not(:empty) {
  padding: var(--gap);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.contact-slot .sidebar__contact {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  max-width: 480px;
}

/* Main-panel contact section */
.section.contact {
  padding: var(--gap);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.contact__inner {
  width: 100%;
  max-width: 480px;
}
.contact__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--accent);
}
.contact__submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact__submit:hover { background: var(--accent-dark); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.contact__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.contact__links a:hover { color: var(--accent); }

/* Right main content — scrollable */
.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
}

/* ── Intro (hidden in split layout) ── */
.intro { display: none; }
.nav { display: none; }
.mobile-menu { display: none; }

.intro__inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.intro__avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--stone) 50%, var(--marble) 100%);
  padding: 3px;
}

.intro__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.intro__text {
  flex: 1;
  padding-top: 4px;
}

.intro__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.intro__name {
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
  color: var(--text);
}

.intro__name span { color: var(--accent); }

.intro__bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 16px;
}

.intro__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.intro__meta a {
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

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

.intro__dot { opacity: 0.4; }

.intro__skills {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ── Work ── */
.work {
  background: var(--surface);
  padding: 0 !important;
}

/* ── Browser window chrome ── */
.browser-chrome {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #e8e4de;
  border-bottom: 1px solid #d4cfc8;
  flex-shrink: 0;
}
.panel-toggles {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.toggle-switch__label {
  font-size: 0.62rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9e9890;
  text-transform: uppercase;
  user-select: none;
}
.toggle-switch__track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 100px;
  background: #c8c3bb;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s;
  flex-shrink: 0;
}
.toggle-switch__track.active {
  background: var(--accent);
}
.toggle-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.toggle-switch__track.active .toggle-switch__thumb {
  transform: translateX(14px);
}

/* Collapsed states */
.sidebar--hidden {
  width: 0 !important;
  min-width: 0 !important;
  border-right: none !important;
  padding: 0 !important;
}
.sidebar--hidden * {
  visibility: hidden;
}
.section--hidden {
  display: none !important;
}

.browser-chrome__title {
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #7a746c;
  text-transform: uppercase;
}

/* ── Playground masonry grid ── */
:root { --gap: 20px; }

.work__playground {
  columns: 2;
  column-gap: var(--gap);
  padding: var(--gap);
  padding-bottom: 0;
}

.play-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.play-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-item__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-item:hover .play-item__hover { opacity: 1; }
.play-item:hover img { transform: scale(1.04); }

.play-item__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.play-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Project group — spans all columns, own 2-col grid inside */
.play-group {
  column-span: all;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
  margin-bottom: var(--gap);
}
.play-group .play-item {
  min-width: 0;
  margin-bottom: 0;
}

/* Packaging lineup — all images side by side */
.play-item--lineup .lineup-track {
  display: flex;
  align-items: flex-end;
  background: #f0ece5;
  padding: 16px 8px 0;
  gap: 4px;
}
.play-item--lineup .lineup-track img {
  flex: 1;
  width: 0;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Merch grid — 3×2 wrap, each item on its own white tile */
.lineup-track--wrap {
  flex-wrap: wrap;
  padding: 3px;
  gap: 3px;
  background: transparent;
  align-items: stretch;
  justify-content: center;
}
.lineup-track--wrap img {
  flex: 0 0 calc(33.333% - 2px);
  height: 220px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  padding: 16px;
  box-sizing: border-box;
}

/* Carousel play-item */
.play-item--carousel {
  position: relative;
}
.carousel-track {
  position: relative;
  width: 100%;
}
/* First image — flows normally to define container height */
.carousel-track img:first-child {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  animation: carouselFade 10s infinite;
  transition: none;
}
/* All other images — stacked absolutely on top */
.carousel-track img:not(:first-child) {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: carouselFade 10s infinite;
  transition: none;
}
/* 5-slide: 10s total, each visible 2s */
@keyframes carouselFade {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

/* 6-slide: 12s total, each visible 2s */
.carousel-track--6 img {
  animation: carouselFade6 12s infinite;
}
@keyframes carouselFade6 {
  0%, 14% { opacity: 1; }
  17%, 100% { opacity: 0; }
}

/* 3-slide: 6s total, each visible 2s */
.carousel-track--3 img {
  animation: carouselFade3 6s infinite;
}
@keyframes carouselFade3 {
  0%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

/* 2-slide: 4s total, each visible 2s */
.carousel-track--2 img {
  animation: carouselFade2 4s infinite;
}
@keyframes carouselFade2 {
  0%, 42% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.play-item--video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Sound indicator */
.play-item--video::after {
  content: '🔇';
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}
.play-item--video:hover::after { opacity: 1; }
.play-item--video.sound-on::after { content: '🔊'; opacity: 1; }

/* Span 2 columns within a play-group */
.play-group .play-item--span2 {
  grid-column: span 2;
}

/* Padded item — white card with breathing room, stretches to row height */
.play-item--padded {
  padding: 16px;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.play-item--padded img,
.play-item--padded .carousel-track,
.play-item--padded video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}

/* Small items — capped height */
.play-item--sm img {
  max-height: 200px;
  object-fit: contain;
}

/* Featured — spans all columns for a big showcase moment */
.play-item--featured {
  column-span: all;
  margin-top: var(--gap);
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
}
.play-item--featured video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.play-item.hidden { display: none; }

/* ── About ── */
.about {
  background: var(--surface);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,112,96,0.4), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.about__avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c97060 0%, #6b5e52 50%, #e8ddd0 100%);
  padding: 4px;
}

.about__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

.about__bio {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.about__tools { margin: 32px 0; }

.about__tools-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Contact ── */
.contact {
  background: var(--bg);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107,94,82,0.3), transparent);
}

.contact__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact__sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact__form {
  text-align: left;
  margin-bottom: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
}

.form-success.visible { display: block; }

.contact__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}

.contact__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Gallery Modal ── */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: all;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
}

.gallery-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 32px;
}

.gallery-modal.open .gallery-modal__panel {
  transform: translateY(0);
}

.gallery-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.gallery-modal__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 3px;
}

/* Logo header item — spans full width, centered character */
.gallery-item--logo-header {
  grid-column: span 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow: visible;
}
.gallery-item--logo-header img {
  width: auto !important;
  height: auto;
  max-height: 180px;
}

.gallery-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gallery-modal__close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-modal__close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  column-gap: 10px;
  row-gap: 0;
  align-items: start;
}

/* Full-width banner spans all columns */
.gallery-item--s6 {
  grid-column: span 3;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery-item--s6 img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item {
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Character GIFs — transparent bg, shown full */
.gallery-item--char {
  background: #f5f0e8;
  padding: 16px;
  box-sizing: border-box;
}

/* Brochure + GIF group wrapper — nested 3-col grid */
.brochure-gif-group {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 10px;
}
.brochure-gif-group .gallery-item--brochure {
  grid-column: 1 / span 2;
  grid-row: 1;
  margin-bottom: 0;
}
.brochure-gif-group > .gallery-item:not(.gallery-item--brochure) {
  grid-row: 2;
  margin-bottom: 0;
}
.brochure-gif-group > .gallery-item:nth-child(2) { grid-column: 1; }
.brochure-gif-group > .gallery-item:nth-child(3) { grid-column: 2; }
.char-stack {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.char-stack .gallery-item {
  flex: 1;
  margin-bottom: 0;
  min-height: 0;
}
.char-stack .gallery-item img {
  width: 100% !important;
  height: 100%;
  object-fit: contain;
}

/* Brochure spread: two pages side by side printed mockup */
.gallery-item--brochure {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #2a2420;
  margin-bottom: 10px;
}
.gallery-item--brochure img {
  width: calc(50% - 6px);
  height: auto;
  display: block;
  border-radius: 2px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Videos */
.gallery-item--video {
  position: relative;
  cursor: pointer;
}
.gallery-item--video video {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item--video .gallery-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-item--video.playing .gallery-item__play {
  opacity: 0;
}

.gallery-item__play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.gallery-item__play-icon::after {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.footer__copy, .footer__made {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {

  /* Unlock page scroll (desktop locks html/body to enable dual-panel scroll) */
  html, body {
    height: auto !important;
    overflow: auto !important;
  }

  /* Stack layout vertically */
  .site-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* Sidebar full width, auto height */
  .sidebar {
    width: 100% !important;
    height: auto !important;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Collapsed sidebar on mobile: shrink height, not width */
  .sidebar--hidden {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-bottom: none !important;
  }

  /* Main panel full width, auto height */
  .main-content {
    height: auto !important;
    overflow: visible;
  }

  /* Single-column work grid */
  .work__playground {
    columns: 1;
    padding: 12px;
  }

  /* Play-group: single column on mobile */
  .play-group {
    grid-template-columns: 1fr;
  }
  .play-group .play-item--span2 {
    grid-column: span 1;
  }

  /* Featured items full width */
  .play-item--featured { column-span: all; }

  /* Top bar: shrink label sizes */
  .toggle-switch__label {
    font-size: 0.6rem;
  }
  .top-bar__brand {
    font-size: 0.9rem;
  }

  /* Contact slot full width */
  .contact-slot:not(:empty) {
    padding: 16px;
  }
  .contact-slot .sidebar__contact {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .work__playground {
    padding: 10px;
  }
  --gap: 12px;

  /* Tighten top bar */
  .top-bar {
    padding: 0 12px;
    gap: 8px;
  }
  .panel-toggles {
    gap: 10px;
  }
}
