/* Hugo Denis — portfolio (static) */
:root {
  --color-bg: #faf9f7;
  --color-bg-elevated: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-accent: #7c2d12;
  --color-accent-soft: rgba(124, 45, 18, 0.08);
  --color-border: #e7e5e4;
  --color-footer: #0c0a09;
  --color-footer-text: #e7e5e4;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --space-header: 1rem;
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(12, 10, 9, 0.06);
  --max-width: 72rem;
  /* Horizontal inset for text and nav — scales up slightly on larger viewports */
  --page-gutter: clamp(1.5rem, 4vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--space-header);
  padding-bottom: var(--space-header);
}

.site-logo {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.1;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding-top: 0.5rem;
}

.site-nav.is-open {
  display: flex;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    padding-top: 0;
  }
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .lang-switch {
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--color-border);
    padding-left: 1.25rem;
    margin-left: 0.5rem;
  }
}

.lang-switch__item {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 0.35rem 0.5rem;
}

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

.lang-switch__item.is-active {
  color: var(--color-accent);
  cursor: default;
}

/* Home — contained portrait + intro, rising bio block */
.home-hero {
  padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(165deg, var(--color-bg-elevated) 0%, var(--color-bg) 45%, var(--color-accent-soft) 100%);
  border-bottom: 1px solid var(--color-border);
}

.home-hero__layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 768px) {
  .home-hero__layout {
    grid-template-columns: minmax(0, min(380px, 38vw)) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

.home-hero__figure {
  margin: 0;
  justify-self: center;
  max-width: min(420px, 88vw);
  width: 100%;
}

@media (min-width: 768px) {
  .home-hero__figure {
    justify-self: start;
    max-width: min(380px, 100%);
  }
}

.home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-sm), 0 12px 40px rgba(12, 10, 9, 0.12);
}

.home-hero__intro {
  text-align: center;
}

@media (min-width: 768px) {
  .home-hero__intro {
    text-align: left;
  }
}

.home-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.home-hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--color-accent);
  margin: 0;
}

.home-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(-2.75rem, -4vw, -2rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--color-bg-elevated);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px rgba(12, 10, 9, 0.06);
  border: 1px solid var(--color-border);
}

.home-content__inner {
  max-width: 40rem;
  margin: 0 auto;
}

/* Prose */
.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  text-decoration: none;
}

/* Page — vertical rhythm only; horizontal padding comes from .container */
.page-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 36rem;
}

.page-article .prose {
  max-width: 42rem;
}

/* Performances — title → full-bleed hero → intro */
.performances-page__title-block {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 0.35rem;
}

.page-header--performances {
  margin-bottom: 0;
}

.performances-page__intro {
  margin-bottom: 0;
}

.performances-page__intro ul {
  margin-top: 0.75rem;
}

.performances-page__intro-wrap {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.performances-showcase {
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0;
  overflow: hidden;
}

/* Full-width immersive carousel (streaming-style hero) */
.performances-carousel--hero {
  position: relative;
  width: 100%;
  margin: 0;
}

.performances-carousel--hero .performances-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  border: none;
  border-radius: 0;
  /* Responsive height: cinematic on large screens, readable on phones */
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 42vw, 520px);
  max-height: min(85vh, 920px);
}

@media (min-width: 768px) {
  .performances-carousel--hero .performances-carousel__viewport {
    /* Match 16:9 exports — same ratio as default; wider 21:9 was cropping photos heavily */
    aspect-ratio: 16 / 9;
    min-height: clamp(280px, 36vw, 640px);
  }
}

@media (max-width: 480px) {
  .performances-carousel--hero .performances-carousel__viewport {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }
}

/* Bottom vignette for controls legibility (Apple TV–style) */
.performances-carousel--hero .performances-carousel__viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 38%,
    transparent 58%
  );
}

.performances-carousel--hero .performances-carousel__track {
  --n: 1;
  display: flex;
  width: calc(100% * var(--n));
  height: 100%;
  min-height: inherit;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .performances-carousel--hero .performances-carousel__track {
    transition: none;
  }
}

.performances-carousel--hero .performances-carousel__slide {
  flex: 0 0 calc(100% / var(--n));
  position: relative;
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

.performances-carousel--hero .performances-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

/* Single full-bleed image */
.performances-carousel--hero.performances-carousel--single {
  margin: 0;
}

.performances-carousel__viewport--static {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 42vw, 520px);
  max-height: min(85vh, 920px);
  overflow: hidden;
  background: #0a0a0a;
}

@media (min-width: 768px) {
  .performances-carousel__viewport--static {
    aspect-ratio: 16 / 9;
    min-height: clamp(280px, 36vw, 640px);
  }
}

@media (max-width: 480px) {
  .performances-carousel__viewport--static {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }
}

.performances-carousel__viewport--static .performances-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.performances-carousel--single .performances-carousel__viewport--static::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 45%
  );
}

/* Overlay controls: prev | dots | next */
.performances-carousel--hero .performances-carousel__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 2.5rem clamp(0.75rem, 4vw, 2rem) 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 85%);
}

.performances-carousel--hero .performances-carousel__dots {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0;
}

.performances-carousel--hero .performances-carousel__arrow {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.performances-carousel--hero .performances-carousel__arrow:hover,
.performances-carousel--hero .performances-carousel__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

@media (max-width: 520px) {
  .performances-carousel--hero .performances-carousel__arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
  }
}

/* Dot indicators — light on dark */
.performances-carousel--hero .performances-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.performances-carousel--hero .performances-carousel__dot:hover,
.performances-carousel--hero .performances-carousel__dot:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.performances-carousel--hero .performances-carousel__dot[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Compositions */
.compositions-intro {
  margin-bottom: 2.5rem;
}

.composition-category {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.composition-category__title {
  margin: 0;
  padding: 0.9rem 1.25rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: linear-gradient(
    135deg,
    rgba(124, 45, 18, 0.1) 0%,
    rgba(124, 45, 18, 0.04) 55%,
    rgba(250, 249, 247, 0.5) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.composition-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.composition-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}

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

.composition-item:hover,
.composition-item:focus-visible {
  background: rgba(124, 45, 18, 0.06);
  outline: none;
}

.composition-item__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.composition-item__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.composition-item__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.composition-item__preview {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.composition-item__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.composition-item__template {
  display: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.55);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  max-height: min(85vh, 720px);
  overflow-y: auto;
  background: var(--color-bg-elevated);
  padding: 2rem 1.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--color-border);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

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

.modal__body {
  font-size: 0.95rem;
  line-height: 1.65;
}

.modal__body p {
  margin: 0 0 0.75rem;
}

.modal__body strong {
  color: var(--color-text);
}

.modal__body h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text);
}

.modal__body h3:first-child {
  margin-top: 0;
}

.modal__body ul,
.modal__body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.modal__body li {
  margin-bottom: 0.25rem;
}

.modal__body .tbd {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Contact */
.contact-page__intro {
  margin-bottom: 1.5rem;
  max-width: 40rem;
  line-height: 1.65;
}

.contact-form {
  position: relative;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Honeypot — hidden from sighted users; do not remove (spam bots). */
.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.contact-form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.contact-page__privacy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.contact-page__extra {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.btn--primary:hover {
  filter: brightness(1.08);
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  margin-top: auto;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.site-footer__brand p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__social a {
  color: var(--color-footer-text);
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.site-footer__social a:hover {
  opacity: 1;
  color: #fff;
}

.site-footer__legal {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .site-footer__legal {
    text-align: left;
    border-top: none;
    padding-top: 0;
    width: auto;
  }
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  body.nav-open {
    overflow: auto;
  }
}
