:root {
  --bg: #fbfaf8;
  --bg-elevated: #efece6;
  --fg: #17140f;
  --fg-dim: #6b665c;
  --heading-accent: #c2410c;
  --border: #e2ddd2;
  --accent: #e8541f;
  --accent-fg: #fff8f3;
  --max-width: 1200px;
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #161412;
  --fg: #f2f0ea;
  --fg-dim: #9a9a94;
  --heading-accent: #ff8a4c;
  --border: #2a2620;
  --accent: #ff6a3d;
  --accent-fg: #1a0900;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
}

.wordmark {
  font-family: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex: none;
}

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

.header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover { color: var(--fg); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover { transform: translateY(-1px); opacity: 0.9; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 24px 70px;
  border-bottom: 1px solid var(--border);
}

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

.hero h1 {
  font-family: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  margin: 0 0 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  color: var(--heading-accent);
}

.hero-bio {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 620px;
  margin: 0 0 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 40px;
}

.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; }

/* ---------- Filters ---------- */
.filters {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  overflow-x: auto;
}

.filters-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.filter-btn {
  flex: none;
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.filter-btn:hover { color: var(--fg); border-color: var(--accent); }

.filter-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ---------- Grid ---------- */
.work {
  padding: 50px 24px 90px;
}

.grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: always a 2-column grid while scrolling. */
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.tile {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.tile:hover { transform: translateY(-3px); }

.tile video, .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  pointer-events: none;
}

.tile.hidden { display: none; }

.play-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tile:hover .play-hint { opacity: 1; }

.play-hint svg { width: 12px; height: 12px; fill: #fff; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.modal.open { display: flex; }

.modal-content {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.modal video {
  width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  display: block;
  background: #000;
}

.modal-title {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #f2f0ea;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #f2f0ea;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 50px;
  text-align: center;
}

footer .foot-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

footer p {
  color: var(--fg-dim);
  font-size: 14px;
  margin-top: 22px;
}

/* ---------- Workshop page ---------- */
.workshop-hero {
  padding-top: 70px;
}

.workshop-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.workshop-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 110px;
}

.detail-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
}

.workshop-section {
  padding: 70px 24px;
  border-bottom: 1px solid var(--border);
}

.workshop-section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 36px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .learn-grid { grid-template-columns: 1fr; }
  .workshop-details { gap: 10px; }
  .detail-card { min-width: 0; flex: 1 1 40%; }
}

.learn-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}

.learn-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.learn-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.learn-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
}

.who-section .who-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 620px;
  margin: 0 0 32px;
}
