/* ============================================================
   Артур Мелконян — portfolio
   Restrained editorial / portfolio direction
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-raised: #1c1c1c;
  --border: #2a2a2a;
  --text-primary: #e8e4df;
  --text-secondary: #9a958f;
  --text-muted: #6b6560;
  --accent: #c8a882;
  --accent-dim: rgba(200, 168, 130, 0.15);
  --accent-soft: rgba(200, 168, 130, 0.08);
  --white: #f5f2ed;
  --black: #0a0a0a;
  --radius: 3px;
  --max-w: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 300;
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-brand span {
  color: var(--text-muted);
  font-weight: 300;
  margin-left: 0.5em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-mobile-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem var(--gutter);
    gap: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
}

/* --- Sections --- */
section {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* --- 1. Hero / First View --- */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  padding-top: 52px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-reel {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  border: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.74;
  filter: saturate(0.78) contrast(1.03) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(10, 10, 10, 0.76) 28%,
    rgba(10, 10, 10, 0.32) 64%,
    rgba(10, 10, 10, 0.14) 100%
  ),
  radial-gradient(circle at 72% 46%, rgba(10, 10, 10, 0.03), rgba(10, 10, 10, 0.58) 68%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.hero-name {
  font-size: clamp(2.65rem, 6.6vw, 5.6rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0.3em;
}

.hero-role {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.8em;
  font-weight: 400;
}

.hero-tagline {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: 92vh;
  }

  .hero-reel {
    opacity: 0.62;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(10, 10, 10, 0.78) 34%,
      rgba(10, 10, 10, 0.36) 70%,
      rgba(10, 10, 10, 0.12) 100%
    );
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-reel {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 40px;
  padding: 0.7em 1.15em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #d4b892;
}

/* --- 2. About --- */
.about-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.about-copy {
  max-width: 820px;
}

.about-copy p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.about-copy .about-lead {
  color: var(--text-primary);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
  font-weight: 300;
}

.about-side {
  display: grid;
  gap: 1rem;
}

.about-collabs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.05rem 0 1.15rem;
}

.about-collabs-label {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.about-brand-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.4rem;
  list-style: none;
}

.about-brand-list li {
  color: var(--text-secondary);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  letter-spacing: 0.015em;
  line-height: 1.4;
  padding: 0.48rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.about-brand-list li:nth-child(-n + 2) {
  border-top: 0;
}

.about-visual-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.about-portrait-inset {
  min-height: 172px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060606;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.about-portrait-inset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(0.74) contrast(1.03) brightness(0.84);
}

.about-podcast {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  background: #080808;
  color: var(--text-primary);
  overflow: hidden;
  text-decoration: none;
}

.about-podcast img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 210px;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9) contrast(1.02);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.about-podcast::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.about-podcast span {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  color: var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.about-podcast:hover img {
  filter: brightness(0.9) saturate(0.98) contrast(1.04);
  transform: scale(1.018);
}

.about-visual-row .about-podcast {
  min-height: 172px;
}

.about-visual-row .about-podcast img {
  height: 100%;
  min-height: 172px;
  aspect-ratio: auto;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-brand-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-visual-row {
    grid-template-columns: minmax(108px, 0.46fr) minmax(0, 1fr);
    gap: 0.8rem;
  }

  .about-portrait-inset,
  .about-visual-row .about-podcast,
  .about-visual-row .about-podcast img {
    min-height: 142px;
  }

  .about-podcast img {
    min-height: 180px;
  }
}

.tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25em 0.6em;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}

/* --- 3. Project Archive --- */
.project-archive {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 240px),
    #0d0d0d;
}

.archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.archive-intro {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.65;
}

.archive-count {
  flex: 0 0 auto;
  padding-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-all-link {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.archive-filter,
.archive-more {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 40px;
  padding: 0.55rem 0.82rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.archive-filter.is-active,
.archive-filter:hover,
.archive-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.archive-search {
  margin-left: auto;
  min-width: min(260px, 100%);
}

.archive-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.58rem 0.75rem;
}

.archive-search input::placeholder {
  color: var(--text-muted);
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.archive-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 310px;
  border: 0;
  background: #101010;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease, color 0.18s ease;
}

.archive-card:hover,
.archive-card:focus-visible {
  color: var(--text-primary);
  background: #15130f;
  outline: none;
}

.archive-card-preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #171717;
}

.archive-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.archive-card:hover .archive-card-preview img,
.archive-card:focus-visible .archive-card-preview img {
  transform: scale(1.03);
  filter: saturate(0.95);
}

.archive-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035), transparent 42%),
    #151515;
}

.archive-card-placeholder span {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 122px;
  padding: 1rem 1rem 1.05rem;
}

.archive-card-title {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.35;
}

.archive-card-description {
  color: var(--text-muted);
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-more {
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .archive-head {
    display: block;
  }

  .archive-all-link {
    display: inline-block;
    margin-top: 1rem;
  }

  .archive-search {
    margin-left: 0;
    width: 100%;
  }

  .archive-list {
    grid-template-columns: 1fr;
  }

  .archive-card {
    min-height: 0;
  }
}

body.modal-open {
  overflow: hidden;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal-card {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(840px, calc(100vh - 2rem));
  overflow: auto;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

.project-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.92);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-right: 3rem;
  margin-bottom: 1rem;
}

.project-modal-kicker {
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal-header h3 {
  max-width: 780px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.project-modal-year {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 1.4rem;
}

.project-modal-stills {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-modal-stills img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
  grid-column: span 6;
}

.project-modal-stills img:first-child {
  grid-column: 1 / -1;
}

.project-modal-empty {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-modal-description {
  max-width: 760px;
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.project-modal-meta span {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.project-modal-link {
  text-decoration: none;
}

@media (max-width: 768px) {
  .project-modal {
    padding: 0.6rem;
  }

  .project-modal-card {
    max-height: calc(100vh - 1.2rem);
  }

  .project-modal-header {
    display: block;
    padding-right: 2.5rem;
  }

  .project-modal-year {
    display: block;
    padding-top: 0.5rem;
  }

  .project-modal-stills {
    grid-template-columns: 1fr;
  }

  .project-modal-stills img,
  .project-modal-stills img:first-child {
    grid-column: 1 / -1;
  }
}

/* --- Category Headers --- */
.category-header {
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.category-header h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.category-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- 3. Before / After --- */
.ba-section {
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.ba-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.ba-head p {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ba-case {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 360px));
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

.ba-reference {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  aspect-ratio: 2664 / 3654;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.ba-reference img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.ba-reference figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.8rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
}

.ba-work {
  min-width: 0;
  width: 100%;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2664 / 3654;
  overflow: hidden;
  cursor: col-resize;
  background: var(--surface);
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider--portrait {
  border: 1px solid var(--border);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.ba-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  justify-content: center;
  max-width: var(--max-w);
  margin: clamp(2.25rem, 5vw, 3.75rem) auto 0;
}

.ba-compact-grid + .ba-compact-grid {
  margin-top: clamp(0.9rem, 1.8vw, 1.25rem);
}

.ba-slider--wide {
  aspect-ratio: 2048 / 858;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.ba-slider.is-dragging {
  cursor: col-resize;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

.ba-before img,
.ba-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.ba-after {
  clip-path: inset(0 0 0 var(--ba-position, 50%));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-position, 50%);
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  opacity: 0.8;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--ba-position, 50%);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: col-resize;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: transform 0.15s;
}

.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.ba-handle::before,
.ba-handle::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
}

.ba-handle::before {
  left: 10px;
}

.ba-handle::after {
  right: 10px;
}

.ba-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.ba-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.6em 1em;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
}

@media (max-width: 768px) {
  .ba-head {
    display: block;
  }
  .ba-head p {
    margin-top: 0.6rem;
  }
  .ba-case {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 1.25rem;
  }
  .ba-reference {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }
  .ba-work {
    max-width: 330px;
    margin: 0 auto;
  }
  .ba-slider--portrait {
    aspect-ratio: 2664 / 3654;
  }
  .ba-handle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 560px) {
  .ba-compact-grid {
    grid-template-columns: 1fr;
    max-width: 390px;
    gap: 1rem;
    margin-top: 1.25rem;
  }
}

/* --- 4. Reel --- */
.reel-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.reel-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.reel-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- 5. Teaching Proof --- */
.teaching-text {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) auto;
  align-items: start;
  gap: 2rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
}

.teaching-text h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
}

.teaching-text p {
  max-width: 820px;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.teaching-link {
  white-space: nowrap;
  text-decoration: none;
}

.teaching-actions {
  display: grid;
  gap: 0.75rem;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--border);
  border: 1px solid var(--border);
}

.teaching-photo {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.teaching-photo:nth-child(n + 4) {
  grid-column: span 3;
}

.teaching-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.teaching-photo:hover img {
  opacity: 0.94;
  transform: scale(1.015);
}

@media (max-width: 768px) {
  .teaching-text {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .teaching-actions {
    justify-self: start;
  }

  .teaching-link {
    white-space: normal;
  }

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

  .teaching-photo,
  .teaching-photo:nth-child(n + 4) {
    grid-column: auto;
  }
}

/* --- 6. Bio / Contacts --- */
.bio-contacts {
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.bio-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.bio-text .contact-lead {
  max-width: 560px;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}

.contact-email {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: 0.035em;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-value a {
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--gutter);
  text-align: center;
}

.footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Placeholder image styling --- */
.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.placeholder-img--before {
  filter: saturate(0.05) contrast(0.72) brightness(1.18) opacity(0.78);
}

.placeholder-img--after {
  filter: saturate(0.9) contrast(1.04);
}
