:root {
  color-scheme: dark;
  --ink: #080808;
  --paper: #f4f2ea;
  --white: #f7f7f2;
  --yellow: #f4d21f;
  --muted: #97978f;
  --line: rgba(255, 255, 255, 0.17);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --display: clamp(3.6rem, 9.6vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--white); font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; line-height: 1.5; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; background: var(--yellow); color: var(--ink); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 5.5rem; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: linear-gradient(to bottom, rgba(8,8,8,.92), transparent); }
.brand { display: inline-flex; align-items: center; }
.brand-logo-crop { position: relative; display: grid; place-items: center; width: 8.4rem; height: 2.25rem; overflow: hidden; background: transparent; }
.brand-logo-crop img { position: absolute; width: 9.4rem; height: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -43.7%); }
.brand-logo-crop canvas { display: block; width: 100%; height: auto; }
.brand-logo-crop.logo-ready img { display: none; }
nav { display: flex; gap: clamp(.9rem, 2vw, 2rem); font-size: .88rem; }
nav a { color: #c8c8c1; transition: color .2s ease; }
nav a:hover { color: var(--yellow); }

.hero { min-height: 100svh; padding: 8.5rem var(--gutter) 4rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); align-items: end; gap: clamp(2rem, 6vw, 7rem); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 1.4rem; color: var(--yellow); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-size: var(--display); line-height: .84; letter-spacing: -.075em; font-weight: 800; }
h1 em, h2 em { color: var(--yellow); font-family: Georgia, serif; font-weight: 400; }
.intro { max-width: 38rem; margin: 2.3rem 0; color: #c1c1bb; font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 13rem; padding: 1rem 1.2rem; border: 1px solid var(--yellow); color: var(--yellow); transition: background .25s, color .25s; }
.button:hover { background: var(--yellow); color: var(--ink); }
.showreel-placeholder { aspect-ratio: 4 / 5; min-height: 30rem; padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 75% 25%, #494010 0, transparent 26%), linear-gradient(145deg, #0f0f0f, #181818); border: 1px solid var(--line); overflow: hidden; }
.hero-video { width: 100%; height: calc(100% - 2.5rem); min-height: 0; object-fit: cover; display: block; border: 1px solid var(--line); background: #050505; }
.frame-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; letter-spacing: .12em; }
.showreel-placeholder > p { margin: 0 0 0 -.35rem; color: var(--yellow); font-size: clamp(4rem, 8vw, 8rem); line-height: .72; letter-spacing: -.09em; font-weight: 900; transform: rotate(-8deg); }
.frame-note { font-size: .8rem; color: var(--muted); }

.section { padding: clamp(6rem, 11vw, 11rem) var(--gutter); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 2.2fr; align-items: start; margin-bottom: clamp(3rem, 8vw, 7rem); }
.section-heading h2 { font-size: clamp(3.5rem, 8vw, 8.5rem); }
.filters { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; }
.filter { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: .65rem 1rem; font-size: .84rem; cursor: pointer; }
.filter:hover, .filter.active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.content-notice { margin: 1.8rem 0 3.2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .86rem; }
.content-notice span { color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; }
.content-notice p { margin: 0; max-width: 44rem; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 2.4vw, 2.5rem); align-items: start; }
.project-card { grid-column: span 6; }
.project-card:nth-child(3n + 2) { grid-column: 8 / span 5; margin-top: 8rem; }
.project-card:nth-child(3n + 3) { grid-column: 2 / span 5; }
.project-open { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.project-cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border: 1px solid var(--line); background: #141414; }
.portrait .project-cover { aspect-ratio: 4 / 5; }
.square .project-cover { aspect-ratio: 1; }
.project-cover img, .project-cover video { width: 100%; height: 100%; object-fit: contain; background: #000; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.project-open:hover .project-cover img { transform: scale(1.025); }
.typographic-cover { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at calc(20% + var(--card-index) * 10%) 30%, rgba(244,210,31,.32), transparent 22%), #111; }
.typographic-cover strong { color: var(--yellow); font-size: clamp(5rem, 12vw, 12rem); line-height: 1; letter-spacing: -.1em; transform: skewY(-7deg); }
.cover-index, .cover-status { position: absolute; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.cover-index { top: 1rem; left: 1rem; }
.cover-status { right: 1rem; bottom: 1rem; color: var(--muted); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.project-meta h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.project-meta p { margin: .2rem 0 0; color: var(--muted); font-size: .86rem; }
.project-meta > span { color: var(--yellow); font-size: 1.4rem; }
.empty-state { color: var(--muted); }

.service-list { border-top: 1px solid var(--line); }
.service { width: 100%; display: grid; grid-template-columns: 4rem 1.2fr 1fr 2rem; gap: 2rem; align-items: center; padding: 2.3rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: padding .25s ease, color .25s ease; }
.service:hover { padding-left: 1rem; color: var(--yellow); }
.service-index { color: var(--yellow); font-size: .75rem; }
.service-title strong, .service-title em { display: block; font-size: clamp(1.35rem, 2.5vw, 2.4rem); line-height: 1.05; }
.service-title em { color: var(--muted); font-family: Georgia, serif; font-weight: 400; }
.service-description { color: #adada6; font-size: .92rem; max-width: 28rem; }
.service-arrow { justify-self: end; font-size: 1.4rem; }

.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-card { min-height: 15rem; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
button.client-card { cursor: pointer; }
button.client-card:hover { background: var(--yellow); color: var(--ink); }
.client-logos { height: 7.25rem; }
.logo-panel { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 1rem 1.25rem; overflow: hidden; background: #050505; border: 1px solid rgba(255,255,255,.08); }
.client-logo { display: block; width: 78%; height: 100%; max-height: 4.5rem; object-fit: contain; object-position: center; }
.logo-wlpt { position: absolute; top: 50%; left: 50%; width: 100%; height: 300%; max-height: none; transform: translate(-50%, -50%); }
.logo-seven { width: 82%; }
.logo-rai { width: 76%; }
.logo-bonamassa { width: 92%; filter: brightness(2.4) grayscale(1); }
.logo-wmm { width: 76%; filter: brightness(0) invert(1); }
.logo-calvarese { width: 78%; }
.logo-top-player { width: 82%; height: auto; max-height: none; }
.client-monogram { width: 4.5rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(244,210,31,.5); color: var(--yellow); font-size: 1.55rem; font-weight: 800; letter-spacing: -.06em; }
.client-card.tall-card { min-height: 23.5rem; }
.tall-card .client-logos { height: 19rem; }
.player-card .logo-panel { padding: 0; background: #101010; }
.player-card .logo-panel::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 28%; background: linear-gradient(to bottom, transparent, rgba(5,5,5,.92)); pointer-events: none; }
.client-portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 50% 28%); filter: saturate(.9) contrast(1.04); }
.client-identity { display: flex; flex-direction: column; gap: .35rem; }
.client-name { font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 700; letter-spacing: -.035em; }
.client-detail { color: var(--muted); font-size: .78rem; line-height: 1.35; max-width: 18rem; }
button.client-card:hover .client-detail { color: #222; }

.contact-section { min-height: 86svh; padding: clamp(7rem, 12vw, 12rem) var(--gutter) 4rem; display: flex; flex-direction: column; justify-content: center; background: var(--yellow); color: var(--ink); }
.contact-section .eyebrow { color: var(--ink); }
.contact-section h2 { font-size: clamp(3.5rem, 9vw, 9rem); }
.contact-section h2 em { color: var(--ink); }
.contact-row { margin-top: clamp(3rem, 7vw, 6rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.contact-links { display: flex; align-items: center; gap: 2rem; }
.social-link { color: var(--ink); text-decoration: none; font-size: .95rem; }
.social-link:hover { color: var(--yellow); }
.button-light { border-color: var(--ink); color: var(--ink); }
.button-light:hover { background: var(--ink); color: var(--yellow); }
footer { padding: 1.5rem var(--gutter); display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }

dialog { padding: 0; border: 0; color: var(--white); background: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(8px); }
.project-dialog { width: min(94vw, 92rem); max-width: none; max-height: 92svh; }
.dialog-shell { position: relative; min-height: 70svh; }
.icon-button { position: sticky; z-index: 5; top: 1rem; float: right; width: 3rem; height: 3rem; margin: 1rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(8,8,8,.88); cursor: pointer; font-size: 1.6rem; }
.project-detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail-hero { min-height: 75svh; background: #111; }
.detail-hero img { width: 100%; height: 100%; object-fit: contain; }
.detail-placeholder { min-height: 75svh; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 70% 25%, rgba(244,210,31,.32), transparent 22%), #131313; }
.detail-placeholder span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.detail-placeholder strong { color: var(--yellow); font-size: clamp(4rem, 8vw, 8rem); line-height: .8; letter-spacing: -.08em; }
.detail-copy { padding: clamp(2rem, 5vw, 5rem); }
.detail-copy h2 { font-size: clamp(3.5rem, 6vw, 7rem); }
.detail-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.detail-columns span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-columns p { margin: .6rem 0 0; font-size: .86rem; }
.detail-description { max-width: 38rem; color: #c9c9c2; font-size: 1.15rem; }
.media-pending { margin-top: 4rem; padding: 2rem; border: 1px solid var(--line); }
.media-pending span { color: var(--yellow); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.media-pending p { color: var(--muted); }
.media-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.media-gallery figure { position: relative; margin: 0; background: #111; }
.media-gallery figure > button { position: absolute; right: .7rem; bottom: .7rem; padding: .55rem .75rem; border: 1px solid var(--line); background: rgba(8,8,8,.86); cursor: zoom-in; }
.media-gallery img, .media-gallery video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; overflow: hidden; background: rgba(5,5,5,.98); }
.lightbox-content { width: 100%; height: 100%; display: grid; place-items: center; padding: 4rem; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-control { position: fixed; z-index: 4; top: 50%; translate: 0 -50%; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 50%; background: var(--ink); cursor: pointer; }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-count { position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .showreel-placeholder { min-height: auto; width: min(100%, 32rem); justify-self: end; }
  .section-heading, .content-notice { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(3n + 2), .project-card:nth-child(3n + 3) { grid-column: span 6; margin-top: 0; }
  .service { grid-template-columns: 3rem 1fr 2rem; }
  .service-description { grid-column: 2 / -1; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .project-detail { grid-template-columns: 1fr; }
  .detail-hero, .detail-placeholder { min-height: 52svh; }
}

@media (max-width: 620px) {
  .site-header { height: 4.5rem; }
  .brand-logo-crop { width: 6.6rem; height: 1.8rem; }
  .brand-logo-crop img { width: 7.4rem; }
  nav { gap: .8rem; font-size: .75rem; }
  .hero { padding-top: 7.5rem; }
  .showreel-placeholder { width: 100%; aspect-ratio: 16 / 10; padding: .75rem; }
  .hero-video { height: calc(100% - 2rem); object-fit: contain; }
  .project-card, .project-card:nth-child(3n + 2), .project-card:nth-child(3n + 3) { grid-column: 1 / -1; }
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 13rem; }
  .service { gap: .8rem; }
  .service-index { display: none; }
  .service { grid-template-columns: 1fr 2rem; }
  .service-description { grid-column: 1 / -1; }
  .detail-columns { grid-template-columns: 1fr; }
  .contact-row { align-items: stretch; flex-direction: column; }
  .contact-row .button-light { width: 100%; justify-content: space-between; }
  .contact-links { width: 100%; justify-content: space-between; gap: 1rem; }
  footer { flex-direction: column; gap: .5rem; }
  .lightbox-content { padding: 4rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
