:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0e0d0b;
  --ink: #f7f3eb;
  --muted: #c5bbaa;
  --line: rgba(247, 243, 235, 0.16);
  --gold: #d5aa55;
  --gold-strong: #f0c66d;
  --cyan: #3aa8c8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.38), #050505 55%),
    url("assets/texture-dark.png") center / cover;
  opacity: 0.52;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 88px;
  height: 88px;
  border-radius: 4px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: rgba(247, 243, 235, 0.78);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.62);
  color: var(--ink);
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.64) 38%, rgba(5, 5, 5, 0.18) 78%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), #050505 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(68px, 10vw, 116px) clamp(18px, 7vw, 104px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

strong {
  color: var(--ink);
  font-weight: 800;
}

h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  line-height: 1.04;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.5vw, 4.15rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-quote {
  max-width: 680px;
  margin: 26px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--gold-strong);
  color: rgba(247, 243, 235, 0.86);
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  font-style: italic;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #16100a;
  border-color: var(--gold);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.82);
}

.metric {
  min-height: 134px;
  padding: 28px clamp(20px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--gold-strong);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-split {
  display: block;
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(520px, 0.58fr) minmax(0, 0.42fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: stretch;
  margin-top: 24px;
}

.roberto-portrait {
  margin: 0;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(213, 170, 85, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.roberto-portrait img {
  width: 100%;
  height: calc(100% - 52px);
  min-height: 378px;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.06);
}

.roberto-portrait figcaption {
  padding: 13px 14px 15px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roberto-copy {
  align-self: center;
}

.split-copy p,
.proposal p,
.timeline-section p,
.section-heading p,
.services p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.proposal {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proposal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article,
.services-grid article {
  min-height: 168px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.feature-list span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--cyan);
  font-weight: 800;
}

.timeline-section {
  border-bottom: 1px solid var(--line);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding: 10px 2px 18px;
  scrollbar-color: rgba(213, 170, 85, 0.55) rgba(255, 255, 255, 0.08);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 2px;
  right: 2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 170, 85, 0.18), rgba(213, 170, 85, 0.74), rgba(58, 168, 200, 0.32));
}

.timeline article {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 244px;
  padding: 56px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  outline: 0;
  transition: border-color 180ms ease, transform 180ms ease;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold-strong);
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 0 0 5px rgba(213, 170, 85, 0.12);
}

.timeline article:hover,
.timeline article:focus-visible {
  border-color: rgba(213, 170, 85, 0.68);
  transform: translateY(-3px);
}

.timeline article:focus-visible {
  box-shadow: 0 0 0 3px rgba(213, 170, 85, 0.2);
}

.timeline time {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.timeline h3 {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
}

.timeline p {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  font-size: 0.94rem;
}

.timeline-thumb {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 86px;
  margin-top: auto;
  border: 1px solid rgba(247, 243, 235, 0.18);
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.timeline article:hover .timeline-thumb,
.timeline article:focus-visible .timeline-thumb {
  border-color: rgba(213, 170, 85, 0.68);
  opacity: 1;
  transform: translateY(-2px);
}

.timeline-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 220ms ease, transform 260ms ease;
}

.timeline-preview[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.78) 54%, rgba(5, 5, 5, 0.94)),
    linear-gradient(90deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.2));
}

.timeline-preview img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.timeline article:hover .timeline-preview,
.timeline article:focus-visible .timeline-preview {
  opacity: 1;
  transform: scale(1);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-sets {
  display: grid;
  gap: 34px;
}

.gallery-set h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070707;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  opacity: 0.86;
}

.gallery-wide {
  grid-row: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.logo-tile img {
  object-fit: contain;
  padding: 42px;
}

.texture-tile img {
  opacity: 0.78;
}

.services {
  text-align: center;
}

.services h2 {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.productions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.productions span {
  padding: 10px 14px;
  border: 1px solid rgba(213, 170, 85, 0.34);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(213, 170, 85, 0.07);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto clamp(28px, 5vw, 56px);
  padding: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(213, 170, 85, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(213, 170, 85, 0.16), rgba(58, 168, 200, 0.08)),
    rgba(10, 10, 9, 0.9);
}

.contact-section h2 {
  margin-bottom: 18px;
}

.contact-actions {
  justify-content: flex-end;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--gold-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 82px;
  height: 82px;
  border-radius: 4px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .intro-band,
  .proposal-grid,
  .section-heading,
  .services-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split-copy {
    grid-template-columns: 1fr;
  }

  .roberto-portrait {
    min-height: 0;
  }

  .roberto-portrait img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-wide,
  .gallery-tall {
    grid-row: span 1;
  }

  .timeline {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .timeline::before {
    top: 10px;
    bottom: 18px;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(213, 170, 85, 0.18), rgba(213, 170, 85, 0.74), rgba(58, 168, 200, 0.32));
  }

  .timeline article {
    min-height: auto;
    padding: 22px 20px 22px 42px;
  }

  .timeline article::before {
    top: 25px;
    left: 1px;
  }

  .contact-actions,
  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 72px;
    height: 72px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.32), rgba(5, 5, 5, 0.82) 52%, #050505 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.4), transparent);
  }

  .hero-content {
    margin: 0 18px 58px;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 2.7rem);
  }

  .button {
    width: 100%;
  }

  .split-copy {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .contact-section {
    padding: 34px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
