/* Layout idea: left-aligned oversized serif name over a live waveform, credits set like end titles. */
:root {
  --bg: #0a0a0b;
  --panel: #121214;
  --ink: #ebe7df;
  --dim: #9a968e;
  --line: #26262a;
  --accent: #c8a36a;
  --display: var(--body);
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--accent); color: var(--bg); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 11, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.brand-name {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  font-stretch: 112%;
}
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.nav a {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--dim);
  padding-block: .3rem; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* Hero */
.hero-bg {
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,10,0) 22%),
    url("../images/hero.jpg") 65% center / cover no-repeat;
  background-color: var(--bg);
}
@media (max-width: 700px) {
  .hero-bg {
    background:
      linear-gradient(0deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.5) 60%, rgba(10,10,10,.3) 100%),
      url("../images/hero.jpg") 62% center / cover no-repeat;
    background-color: var(--bg);
  }
}
.hero { padding-top: clamp(4rem, 11vw, 9rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-stretch: 112%;
}
h1 {
  font-family: var(--display); font-weight: 800; font-stretch: 78%; text-transform: uppercase;
  font-size: clamp(3.6rem, 15.5vw, 12rem); line-height: .92; letter-spacing: -.01em;
}
h1 em { font-style: normal; color: var(--accent); }
/* Same type style as the menu: Archivo, small caps-style uppercase with wide tracking. */
.lede { margin-top: 1.8rem; max-width: 36rem; font-size: clamp(.8rem, 1.6vw, .95rem); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1.9; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.btn {
  display: inline-block; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: .9rem 1.5rem; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #dcb97f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #3b3b40; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Inner pages */
.page-head { padding-top: clamp(2.5rem, 7vw, 5rem); }
.page-title {
  font-size: clamp(3rem, 10vw, 7rem); line-height: .95;
}
.page-head + .block { padding-top: clamp(2rem, 4vw, 3rem); }

/* Waveform */
.scope { border-block: 1px solid var(--line); background: var(--panel); padding-top: 1.5rem; }
#wave { display: block; width: 100%; height: 120px; }
.scope-meta {
  display: flex; justify-content: space-between; padding-block: .8rem;
  font-size: .75rem; letter-spacing: .14em; color: var(--dim); font-variant-numeric: tabular-nums;
}

/* Sections */
.block { padding-top: clamp(4rem, 9vw, 7rem); scroll-margin-top: 3.5rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 2rem;
}
h2 { font-family: var(--display); font-weight: 700; font-stretch: 85%; letter-spacing: -.005em; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.05; text-wrap: balance; }
.meta { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.reel { aspect-ratio: 16 / 9; background: var(--panel); }
.reel iframe { width: 100%; height: 100%; border: 0; }

/* Posters */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.poster-card { display: flex; flex-direction: column; gap: .8rem; }
.poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.poster-card:hover .poster img { transform: scale(1.03); }
.poster-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.2rem; background: linear-gradient(160deg, #17171a 0%, #0e0e10 100%);
}
.poster-fallback span { font-size: .75rem; letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.poster-fallback strong { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.05; }
.has-img .poster-fallback { visibility: hidden; }
.poster-title { font-weight: 600; line-height: 1.3; }
.poster-meta { font-size: .875rem; color: var(--dim); line-height: 1.4; margin-top: .15rem; }

/* Home: link to full portfolio */
.see-all { margin-top: 2.5rem; text-align: center; }

/* Credits */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.chip {
  font: inherit; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  background: transparent; border: 1px solid #34343a; padding: .55rem 1rem; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--dim); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.year-group { display: grid; grid-template-columns: 6rem 1fr; gap: 0 1rem; }
.year-label {
  padding-top: 1rem; color: var(--accent); font-size: .875rem; letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.rows { border-bottom: 1px solid var(--line); }
.row-item { position: relative; border-top: 1px solid var(--line); }
.row { display: flex; align-items: baseline; gap: 1rem; padding-block: .75rem; }
button.row { width: 100%; background: none; border: 0; padding-inline: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row-toggle:hover .row-title, .is-open .row-title { color: var(--accent); }
.row-title { transition: color .2s; }
.row-plus { flex: none; position: relative; align-self: center; width: .9rem; height: .9rem; }
.row-plus::before, .row-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--accent); transition: transform .25s; }
.row-plus::after { transform: rotate(90deg); }
.is-open .row-plus::after { transform: rotate(0); }

/* Expanded details */
.more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.is-open > .more { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
.more-inner { overflow: hidden; min-height: 0; }
.more-body { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem 2rem; padding: .3rem 0 1.8rem; }
.more-body:not(:has(.more-poster)) { grid-template-columns: 1fr; }
.more-poster { width: 150px; }
.more-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem 2rem; max-width: 44rem; }
.more-facts dt, .more-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.more-facts dd { margin-top: .2rem; line-height: 1.4; }
.more-info { min-width: 0; }
.more-poster .poster-fallback { padding: .8rem; }
.more-poster .poster-fallback strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.more-did { margin-top: 1.3rem; max-width: 40rem; }
.more-did p:last-child { margin-top: .3rem; }
.more-link { margin-top: 1.4rem; padding: .65rem 1.1rem; font-size: .72rem; }
.more-info { display: flex; flex-direction: column; align-items: flex-start; }
.more-info .more-facts { width: 100%; }
.row-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.3; }
.row-title small { font-family: var(--body); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-left: .5rem; }
.leader { flex: 1; min-width: 1rem; border-bottom: 1px dotted #3c3c42; transform: translateY(-.35em); }
.row-role { color: var(--dim); font-size: .875rem; text-align: right; max-width: 45%; line-height: 1.35; }
.empty { color: var(--dim); padding-block: 1rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.services article { border-top: 2px solid var(--accent); padding-top: 1.2rem; }
.services h3 { font-family: var(--display); font-weight: 700; font-stretch: 88%; font-size: 1.35rem; line-height: 1.15; text-wrap: balance; }
.services p { margin-top: .8rem; color: var(--dim); max-width: 32ch; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about:has(.portrait[hidden]) { grid-template-columns: 1fr; }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 1.2rem; max-width: 40rem; }
.about-text p { color: var(--dim); }
.big { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.25; color: var(--ink); max-width: 28ch; text-wrap: balance; }
.about-text .big { color: var(--ink); max-width: none; }

/* Contact */
.contact .big { max-width: 30ch; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.mail {
  font-family: var(--display); font-weight: 600; font-stretch: 90%; font-size: clamp(1.5rem, 5vw, 3.2rem); line-height: 1.1;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .15em;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); }
.links { display: flex; gap: 1.6rem; margin-top: 2rem; }
.links a { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-decoration: none; border-bottom: 1px solid #3b3b40; padding-bottom: .15rem; }
.links a:hover { color: var(--ink); border-color: var(--accent); }

/* Footer */
.site-footer { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: .8rem; color: var(--dim); }
.foot a { text-decoration: none; }
.foot-links { display: flex; gap: 1.4rem; }
.foot-right { display: flex; align-items: center; gap: 1.6rem; }
.psa { display: block; width: 58px; height: auto; opacity: .85; }
.foot a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 900px) {
  .posters { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}

/* Phone */
@media (max-width: 640px) {
  .year-group { grid-template-columns: 1fr; }
  .year-label { padding-top: 1.2rem; padding-bottom: .3rem; }
  .row { flex-direction: column; align-items: flex-start; gap: .15rem; }
  button.row { padding-right: 1.8rem; }
  .row-plus { position: absolute; right: 0; top: 1.15rem; }
  .more-body { grid-template-columns: 100px 1fr; gap: 1rem 1.2rem; }
  .more-poster { width: 100px; }
  .more-facts { grid-template-columns: minmax(0, 1fr); }
  .more-poster .poster-fallback strong { font-size: .85rem; }
  .leader { display: none; }
  .row-role { text-align: left; max-width: none; }
  .nav { gap: .25rem 1.1rem; }
  #wave { height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .poster-card:hover .poster img { transform: none; }
}
