/* ==========================================================================
   Siavash Kaveh — Sound Designer / Composer / Performer
   Mono Studio — minimal, monochrome, gallery-first design system
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f4f1;
  --bg-elevated: #ffffff;
  --border: rgba(20, 20, 20, 0.12);
  --border-strong: rgba(20, 20, 20, 0.32);
  --text: #141414;
  --text-dim: #55555a;
  --text-faint: #6b6b6d;
  --accent: #c6281e;
  --accent-soft: rgba(198, 40, 30, 0.07);
  --accent-2: #141414;
  --shadow: 0 14px 32px rgba(20, 20, 20, 0.08);
  --radius: 2px;
  --container: 1180px;
  --serif: "Space Grotesk", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-dim); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.btn-primary:hover {
  background: #333335;
  border-color: #333335;
}

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

.btn-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.main-nav a.nav-cta {
  border: 1px solid var(--text);
  padding: 10px 20px;
  color: var(--text);
}

.main-nav a.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.main-nav a.nav-group-start {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: all 0.25s ease;
}

/* ---------- hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 60px;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-content {
  flex: 1 1 480px;
}

.hero-bg {
  flex: 1 1 420px;
  align-self: stretch;
  min-height: 440px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-strong);
}

.hero-titles {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 26px;
}

.hero-titles span:not(:last-child)::after {
  content: "/";
  margin-left: 14px;
  color: var(--accent);
}

.hero p.lede {
  font-size: 1.1rem;
  max-width: 480px;
  margin-top: 18px;
}

.page-hero {
  min-height: 34vh;
  display: flex;
  align-items: flex-end;
  padding-top: 150px;
  padding-bottom: 40px;
  position: relative;
}

.page-hero .hero-bg { display: none; }

.page-hero .eyebrow { margin-bottom: 20px; }

/* ---------- services / cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- video / work cards ---------- */
.work-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
}

.work-card .video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-card .work-body {
  padding: 36px 40px 40px;
}

.work-card .work-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.work-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.work-card p:last-child { margin-bottom: 0; }

.study-card {
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
}

.study-card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.study-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- preview work strip (home) ---------- */
.preview-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.preview-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-card:hover .preview-thumb img {
  transform: scale(1.05);
}

.preview-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.play-dot::after {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.preview-body { padding: 22px 24px 26px; }
.preview-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.preview-body p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: var(--bg-elevated);
  padding: 34px 32px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial .quote {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  font-style: normal;
  flex-grow: 1;
  margin-bottom: 22px;
}

.testimonial .quote::before { content: "\201C"; }
.testimonial .quote::after { content: "\201D"; }

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.testimonial-person .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-person .role {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- timeline (performances) ---------- */
.timeline {
  position: relative;
  border-left: 1px solid var(--border-strong);
  margin-left: 8px;
  padding-left: 48px;
}

.timeline-item {
  position: relative;
  padding-bottom: 64px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -53px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border-strong);
}

.timeline-date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.timeline-item h3 { margin-bottom: 8px; font-size: 1.3rem; }
.timeline-item .venue {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-style: normal;
}

.timeline-item .tl-media {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 420px;
}

.timeline-closing {
  margin-top: 10px;
  padding-left: 48px;
  color: var(--text-faint);
  font-size: 0.92rem;
  font-style: normal;
}

/* ---------- gallery ---------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
}

.gallery-grid figure {
  margin: 0 0 20px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-grid figure:hover img {
  transform: scale(1.03);
}

.gallery-grid figcaption {
  padding: 12px 14px 16px;
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #fff;
  margin: 18px 0 0;
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 40px;
  font-size: 1.6rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- music page ---------- */
.soundcloud-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.embed-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.composition-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.composition-item:last-child { border-bottom: none; }

.composition-item .year {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

.composition-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.composition-item p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- about page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-portrait img { width: 100%; }

.fact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
}

.fact-list li {
  display: flex;
  gap: 14px;
  font-size: 0.94rem;
  color: var(--text-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.fact-list li strong {
  color: var(--text);
  min-width: 140px;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.tag {
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ---------- contact ---------- */
.contact-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin: 20px 0 34px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 10px;
  word-break: break-word;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.social-row a {
  color: var(--text-dim);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.social-row a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

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

.footer-contact a {
  font-size: 0.95rem;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 32px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 340px; }
  .gallery-grid { columns: 2 220px; }

  .hero-grid { flex-direction: column; gap: 36px; }
  .hero-bg { width: 100%; min-height: 280px; }
  .hero { min-height: auto; padding-top: 110px; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .main-nav a.nav-group-start {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .work-card .work-body { padding: 28px 24px 32px; }
  .composition-item { grid-template-columns: 1fr; gap: 6px; }
  .gallery-grid { columns: 1 100%; }
  .footer-inner { flex-direction: column; }
}
