:root {
  --ink: #0b0b0b;
  --ink-soft: #151515;
  --paper: #f5f3ed;
  --amber: #e59413;
  --line: rgba(245, 243, 237, 0.18);
  --muted: #aaa79f;
  --display: "Manrope", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.5; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; width: 100%; }
em { color: var(--amber); font-style: normal; }

.skip-link { position: fixed; top: 0; left: 1rem; z-index: 1000; padding: .8rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 3vw; border-bottom: 1px solid var(--line); background: rgba(11, 11, 11, .82); backdrop-filter: blur(18px); transition: min-height .25s ease, background .25s ease; }
.site-header.is-scrolled { min-height: 64px; background: rgba(11, 11, 11, .96); }
.brand { display: inline-flex; align-items: center; gap: .85rem; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--amber); color: var(--ink); font: 700 1.15rem/1 var(--display); clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%); }
.brand-name { font-family: var(--display); font-weight: 650; letter-spacing: -.025em; }
.primary-nav { display: flex; gap: 2rem; }
.primary-nav a, .contact-link { position: relative; font-size: .9rem; text-decoration: none; }
.primary-nav a::after, .contact-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: var(--amber); transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .contact-link:hover::after, .contact-link:focus-visible::after { right: 0; }
.contact-link { justify-self: end; color: var(--amber); }

.hero { min-height: 100svh; padding: 7rem 3vw 3vw; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.35fr); gap: 3vw; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; padding-top: 5vh; }
.eyebrow, .section-index { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { color: var(--amber); margin: 0 .4rem; }
.hero h1 { margin: auto 0 1rem; font: 650 clamp(5rem, 10vw, 10.5rem)/.78 var(--display); letter-spacing: -.085em; }
.positioning { max-width: 34rem; margin: 1rem 0 2.8rem; font-size: clamp(1.15rem, 1.65vw, 1.65rem); line-height: 1.35; letter-spacing: -.02em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; }
.hero-meta span { padding: .55rem .75rem; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; }

.showreel-card { position: relative; min-height: calc(100svh - 10rem); padding: 0; overflow: hidden; border: 0; background: var(--ink-soft); cursor: pointer; text-align: left; }
.showreel-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.showreel-card:hover img, .showreel-card:focus-visible img { transform: scale(1.025); filter: saturate(1) contrast(1.05); }
.showreel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.52), transparent 36%, transparent 62%, rgba(0,0,0,.72)); }
.showreel-topline, .showreel-bottomline { position: absolute; left: 2rem; right: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.showreel-topline { top: 1.8rem; }
.showreel-bottomline { bottom: 1.8rem; }
.showreel-topline b, .showreel-bottomline b { font-family: var(--display); font-size: 1.1rem; }
.showreel-topline span, .showreel-bottomline span { color: #d7d3ca; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.play-control { position: absolute; left: 50%; top: 50%; width: 102px; height: 102px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(11,11,11,.25); transform: translate(-50%, -50%); backdrop-filter: blur(5px); transition: background .25s ease, transform .25s ease; }
.showreel-card:hover .play-control, .showreel-card:focus-visible .play-control { background: var(--amber); transform: translate(-50%, -50%) scale(1.06); }
.play-control i { width: 0; height: 0; margin-left: .45rem; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--paper); }
.showreel-card:hover .play-control i, .showreel-card:focus-visible .play-control i { border-left-color: var(--ink); }

.work-section { padding: 9rem 3vw 3vw; }
.section-heading { display: grid; grid-template-columns: .45fr 1.15fr .8fr; gap: 3vw; align-items: end; padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.section-heading h2, .insight-layout h2, .about-copy h2, .contact-section h2 { margin: 0; font: 600 clamp(2.7rem, 5vw, 5.6rem)/.98 var(--display); letter-spacing: -.065em; }
.section-heading > p:last-child { max-width: 31rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.filters { display: flex; gap: .6rem; padding: 2rem 0; overflow-x: auto; }
.filter { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.filter:hover, .filter:focus-visible, .filter.is-active { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3.5rem 1.5rem; }
.project { grid-column: span 5; }
.project-featured { grid-column: span 7; }
.project-wide { grid-column: span 7; }
.project-open { width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.project[hidden] { display: none; }
.project-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-soft); }
.project-image img { height: 100%; object-fit: cover; filter: grayscale(.3) saturate(.75); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.project-open:hover img, .project-open:focus-visible img { transform: scale(1.035); filter: grayscale(0) saturate(1); }
.project-number { position: absolute; top: 1rem; left: 1rem; min-width: 2.4rem; padding: .38rem .55rem; background: var(--amber); color: var(--ink); font-weight: 700; text-align: center; }
.project-play { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; padding-left: 3px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: .75rem; opacity: 0; transform: translateY(8px); transition: .3s ease; }
.project-open:hover .project-play, .project-open:focus-visible .project-play { opacity: 1; transform: translateY(0); }
.project-info { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; }
.project-info > span { display: flex; flex-direction: column; }
.project-info > span:last-child { align-items: flex-end; text-align: right; }
.project-info b { font-family: var(--display); font-size: 1.05rem; }
.project-info small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }
.project-statement { grid-column: span 5; min-height: 100%; border: 1px solid var(--amber); background: var(--amber); color: var(--ink); }
.statement-inner { height: 100%; min-height: 360px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.statement-kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.statement-title { font: 650 clamp(2.2rem, 4.2vw, 4.8rem)/.95 var(--display); letter-spacing: -.065em; }
.statement-title em { color: var(--ink); }
.statement-link { align-self: flex-end; font-weight: 700; }

.insight-section { margin-top: 8rem; padding: 8rem 3vw; background: var(--paper); color: var(--ink); }
.insight-section .section-index { color: #6d6961; }
.insight-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 8vw; padding-top: 4rem; }
.insight-copy > p { margin: 0 0 3rem; font-size: 1.15rem; }
.insight-copy ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(11,11,11,.2); }
.insight-copy li { display: grid; grid-template-columns: 3.2rem 1fr; padding: 1rem 0; border-bottom: 1px solid rgba(11,11,11,.2); font-family: var(--display); font-weight: 600; }
.insight-copy li span { color: #8a857b; }

.about-section { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 760px; }
.about-portrait { overflow: hidden; background: var(--ink-soft); }
.about-portrait img { height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-copy { display: flex; flex-direction: column; justify-content: center; padding: 7vw; }
.about-copy h2 { max-width: 900px; margin: 2.5rem 0; }
.about-copy > p:not(.section-index) { max-width: 42rem; color: var(--muted); font-size: 1.15rem; }
.about-copy a { width: fit-content; margin-top: 1.5rem; color: var(--amber); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--amber); }

.contact-section { min-height: 75svh; padding: 8rem 3vw 4rem; display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid var(--line); }
.contact-section h2 { max-width: 1100px; margin: auto 0; font-size: clamp(3.3rem, 7vw, 8rem); }
.contact-cta { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--paper); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 600; text-decoration: none; }
.contact-cta:hover, .contact-cta:focus-visible { color: var(--amber); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; padding: 2rem 3vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { text-decoration: none; }

.project-dialog { width: min(1120px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid #3c3c3c; background: var(--ink); color: var(--paper); }
.project-dialog::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(7px); }
.dialog-close { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 5; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.dialog-media { aspect-ratio: 16 / 8.4; background: var(--ink-soft); }
.dialog-media img { height: 100%; object-fit: cover; }
.dialog-content { padding: 2rem; }
.dialog-label { margin: 0 0 .75rem; color: var(--amber); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.dialog-content h2 { margin: 0 0 1rem; font: 650 clamp(2.2rem, 5vw, 4.5rem)/.95 var(--display); letter-spacing: -.06em; }
.dialog-content > p:not(.dialog-label,.dialog-note) { max-width: 48rem; color: var(--muted); font-size: 1.1rem; }
.dialog-content dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.dialog-content dl div { display: flex; flex-direction: column; }
.dialog-content dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.dialog-content dd { margin: .25rem 0 0; }
.dialog-note { color: #7f7c75; font-size: .8rem; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

@media (max-width: 950px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8rem; }
  .hero h1 { margin-top: 5rem; }
  .showreel-card { min-height: 62svh; margin-top: 2rem; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { margin-top: 2rem; }
  .project, .project-featured, .project-wide, .project-statement { grid-column: span 6; }
  .insight-layout { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-portrait { height: 70svh; }
  .site-footer { grid-template-columns: 1fr; gap: .5rem; }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 0 1rem; }
  .brand-name { display: none; }
  .hero { padding: 6rem 1rem 1rem; }
  .hero h1 { margin-top: 4rem; font-size: clamp(4.4rem, 25vw, 7rem); }
  .positioning { font-size: 1.1rem; }
  .showreel-card { min-height: 58svh; }
  .showreel-topline, .showreel-bottomline { left: 1rem; right: 1rem; }
  .showreel-topline span { display: none; }
  .play-control { width: 78px; height: 78px; }
  .work-section { padding: 6rem 1rem 1rem; }
  .section-heading { padding-bottom: 2.5rem; }
  .project-grid { gap: 2.5rem; }
  .project, .project-featured, .project-wide, .project-statement { grid-column: 1 / -1; }
  .statement-inner { min-height: 320px; }
  .insight-section { margin-top: 5rem; padding: 5rem 1rem; }
  .insight-layout { padding-top: 2.5rem; }
  .about-portrait { height: 58svh; }
  .about-copy { padding: 5rem 1rem; }
  .contact-section { min-height: 65svh; padding: 5rem 1rem 2rem; }
  .site-footer { padding: 2rem 1rem; }
  .project-dialog { width: calc(100vw - 1rem); }
  .dialog-media { aspect-ratio: 4 / 3; }
  .dialog-content { padding: 1.25rem; }
  .dialog-content dl { grid-template-columns: 1fr; }
}

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