:root {
  --wine: #590610;
  --wine-dark: #260205;
  --ink: #100003;
  --paper: #f2eeeb;
  --white: #fff;
  --line: rgba(16, 0, 3, 0.22);
  --pad: clamp(1rem, 3vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-progress { position: fixed; z-index: 500; height: 3px; top: 0; left: 0; right: 0; pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

.topbar { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 68px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #fff; mix-blend-mode: difference; }
.brand { width: max-content; font-weight: 800; letter-spacing: -.04em; font-size: .95rem; }
.brand sup { margin-left: .1rem; font-size: .42em; vertical-align: super; }
.topbar nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.topbar nav a { position: relative; }
.topbar nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -.35rem; background: currentColor; transition: right .25s ease; }
.topbar nav a:hover::after { right: 0; }
.language { justify-self: end; display: flex; gap: .35rem; align-items: center; font-size: .66rem; }
.language button { padding: .3rem 0; border: 0; opacity: .48; cursor: pointer; background: none; }
.language button.active { opacity: 1; font-weight: 700; }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--wine); color: #fff; }
.hero-film, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-film { object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.08); }
.hero-shade { background: linear-gradient(180deg, rgba(20,0,3,.35), rgba(20,0,3,.08) 40%, rgba(48,0,8,.88)), linear-gradient(90deg, rgba(89,6,16,.35), rgba(89,6,16,.02)); mix-blend-mode: multiply; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(126, 0, 24, .42); mix-blend-mode: color; pointer-events: none; }
.hero-topline { position: absolute; z-index: 2; top: 92px; left: var(--pad); right: var(--pad); padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.6); display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; }
.hero h1 { position: absolute; z-index: 2; left: 50%; top: 50%; width: 100%; margin: 0; transform: translate(-50%, -52%); text-align: center; text-transform: uppercase; letter-spacing: -.085em; font-weight: 800; line-height: .72; font-size: clamp(4.7rem, 14vw, 14rem); }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-family: Georgia, "Times New Roman", serif; font-size: .46em; font-weight: 400; text-transform: lowercase; letter-spacing: -.055em; }
.hero-footer { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 2rem; padding-top: 1rem; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.6); }
.hero-footer p { max-width: 30rem; margin: 0; font-size: clamp(.78rem, 1.1vw, 1rem); line-height: 1.45; }
.round-link { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; font-size: 1.3rem; transition: background .2s, color .2s; }
.round-link:hover { color: var(--wine); background: #fff; }

.section-tag { margin: 0 0 clamp(3rem, 7vw, 7rem); text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; }
.section-tag.light { color: #fff; }
.manifesto, .method { padding: clamp(5rem, 9vw, 9rem) var(--pad); }
.manifesto-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: start; }
.manifesto h2, .method h2, .closing h2, .work-heading h2 { margin: 0; text-wrap: balance; letter-spacing: -.065em; line-height: .9; font-size: clamp(3rem, 6.8vw, 8rem); }
.manifesto-copy { max-width: 38rem; padding-top: .4rem; }
.manifesto-copy > p { margin: 0; font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.55; }
.capabilities { margin-top: 3rem; border-top: 1px solid var(--line); }
.capabilities span { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.capabilities span::after { content: "↗"; }

.work { min-height: 100vh; padding: clamp(5rem, 8vw, 8rem) var(--pad) clamp(6rem, 10vw, 11rem); color: #fff; background: var(--wine); }
.work-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 7vw; align-items: end; }
.work-heading h2 { max-width: 12ch; }
.work-intro { max-width: 32rem; margin: 0; padding-bottom: .5rem; line-height: 1.55; font-size: clamp(.9rem, 1.2vw, 1.05rem); }
.filters { position: sticky; z-index: 20; top: 68px; margin: 4rem calc(var(--pad) * -1) 2rem; padding: 1rem var(--pad); display: flex; gap: .55rem; overflow-x: auto; background: rgba(89,6,16,.94); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.32); border-bottom: 1px solid rgba(255,255,255,.32); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; padding: .65rem .9rem; color: #fff; border: 1px solid rgba(255,255,255,.42); border-radius: 2rem; background: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; cursor: pointer; transition: .2s ease; }
.filters button:hover, .filters button.active { color: var(--wine); background: #fff; border-color: #fff; }
.filters.selection-only > span { flex: 0 0 auto; padding: .65rem .9rem; color: var(--wine); border: 1px solid #fff; border-radius: 2rem; background: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.project-card { position: relative; grid-column: span 4; min-width: 0; padding: 0; border: 0; color: #fff; background: none; text-align: left; cursor: pointer; }
.project-card:nth-child(7n+1), .project-card:nth-child(7n+6) { grid-column: span 8; }
.project-card figure { position: relative; aspect-ratio: 4/5; margin: 0 0 1rem; overflow: hidden; background: var(--wine-dark); }
.project-card:nth-child(7n+1) figure, .project-card:nth-child(7n+6) figure { aspect-ratio: 16/10; }
.project-grid:has(.project-card:nth-child(3):last-child) .project-card { grid-column: span 4; }
.project-grid:has(.project-card:nth-child(3):last-child) .project-card figure { aspect-ratio: 4/5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s; }
.project-card:hover img { transform: scale(1.025); filter: brightness(.82); }
.project-card .open-mark { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; right: 1rem; top: 1rem; color: var(--wine); background: #fff; border-radius: 50%; transform: scale(0); transition: transform .25s ease; }
.project-card:hover .open-mark { transform: scale(1); }
.project-meta { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .75rem; align-items: start; }
.project-meta > span, .project-meta > i { font-size: .68rem; font-style: normal; }
.project-meta h3 { margin: -.08rem 0 .2rem; text-transform: uppercase; letter-spacing: -.035em; font-size: clamp(1.2rem, 2vw, 2rem); }
.project-meta p { margin: 0; opacity: .66; text-transform: uppercase; letter-spacing: .09em; font-size: .6rem; }

.method { background: var(--paper); }
.method-lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; }
.method-lead p { max-width: 31rem; margin: 0 0 .6rem; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.55; }
.method-steps { margin: clamp(4rem, 8vw, 8rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method-steps li { display: grid; grid-template-columns: 5rem 1fr 1fr; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.method-steps span { font-size: .68rem; }
.method-steps h3 { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.65rem); letter-spacing: -.03em; }
.method-steps p { margin: 0; max-width: 28rem; line-height: 1.5; font-size: .9rem; }

.closing { min-height: 82svh; padding: clamp(5rem, 8vw, 8rem) var(--pad) 2rem; display: flex; flex-direction: column; color: #fff; background: var(--ink); }
.closing > p { margin: 0 0 auto; font-size: .68rem; letter-spacing: .12em; }
.closing h2 { max-width: 13ch; margin: 5rem 0 3rem; }
.contact-link { width: max-content; padding-bottom: .5rem; border-bottom: 1px solid #fff; text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; }
.closing-bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.45); display: flex; justify-content: space-between; gap: 1rem; font-size: .58rem; letter-spacing: .1em; }

.case-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: var(--ink); overflow: hidden; }
.case-modal::backdrop { background: rgba(0,0,0,.82); }
.case-modal[open] { animation: modal-in .35s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(1.5rem); } }
.case-bar { height: 64px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.25); }
.case-bar > span { font-size: .62rem; letter-spacing: .1em; }
.case-close { justify-self: end; padding: .8rem 0; border: 0; color: #fff; background: transparent; text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; cursor: pointer; }
.case-layout { height: calc(100svh - 64px); display: grid; grid-template-columns: minmax(21rem, 38%) 1fr; }
.case-copy { padding: clamp(2rem, 4vw, 4rem) var(--pad) 2rem; overflow-y: auto; background: var(--wine); }
.case-category { margin: 0 0 2.4rem; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; }
.case-copy h2 { margin: 0; text-transform: uppercase; letter-spacing: -.07em; line-height: .86; font-size: clamp(3rem, 4.6vw, 5.5rem); overflow-wrap: normal; word-break: normal; }
.case-copy h3 { margin: 2.2rem 0 1rem; max-width: 25ch; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; line-height: 1.15; font-size: clamp(1.35rem, 2.2vw, 2.2rem); }
.case-summary { max-width: 38rem; margin: 0; line-height: 1.62; font-size: .92rem; }
.case-facts { margin: 3rem 0 0; }
.case-facts > div { padding: .95rem 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.35); }
.case-facts > div:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.case-facts dt { opacity: .62; text-transform: uppercase; letter-spacing: .08em; font-size: .58rem; }
.case-facts dd { margin: 0; font-size: .72rem; line-height: 1.35; }
.case-nav { margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 1rem; }
.case-nav button { padding: .8rem 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.7); color: #fff; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .07em; font-size: .62rem; }
.case-media { min-width: 0; overflow-y: auto; background: #0a0002; scroll-snap-type: y mandatory; }
.case-media figure { min-height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: start; border-bottom: 1px solid rgba(255,255,255,.12); }
.case-media img, .case-media video { width: 100%; height: 100%; max-height: calc(100svh - 64px); object-fit: contain; background: #0a0002; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; height: 60px; }
  .topbar nav { display: none; }
  .language { grid-column: 2; }
  .hero-topline { top: 74px; }
  .hero h1 { font-size: clamp(4.2rem, 18vw, 8rem); }
  .manifesto-grid, .work-heading, .method-lead { grid-template-columns: 1fr; }
  .manifesto-copy, .work-intro { margin-top: 2rem; }
  .filters { top: 60px; }
  .project-card, .project-card:nth-child(7n+1), .project-card:nth-child(7n+6) { grid-column: span 6; }
  .project-card:nth-child(7n+1) figure, .project-card:nth-child(7n+6) figure { aspect-ratio: 4/5; }
  .case-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .case-copy { overflow: visible; }
  .case-media { overflow: visible; }
  .case-media figure { min-height: auto; }
  .case-media img, .case-media video { height: auto; max-height: none; }
}

@media (max-width: 600px) {
  .hero-topline span:first-child { max-width: 9rem; }
  .hero h1 { top: 47%; font-size: clamp(3.8rem, 18vw, 6.3rem); }
  .hero-footer { align-items: center; }
  .hero-footer p { max-width: 15rem; font-size: .78rem; }
  .round-link { width: 3rem; height: 3rem; }
  .manifesto h2, .method h2, .closing h2, .work-heading h2 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .project-grid { display: flex; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .project-grid::-webkit-scrollbar { display: none; }
  .project-card, .project-card:nth-child(7n+1), .project-card:nth-child(7n+6) { flex: 0 0 82vw; scroll-snap-align: center; }
  .project-card figure, .project-card:nth-child(7n+1) figure, .project-card:nth-child(7n+6) figure { aspect-ratio: 4/5; }
  .method-steps li { grid-template-columns: 2.5rem 1fr; }
  .method-steps p { grid-column: 2; }
  .closing-bottom { align-items: flex-end; }
  .closing-bottom span:first-child { max-width: 15rem; line-height: 1.5; }
  .case-bar { height: 58px; grid-template-columns: 1fr auto; }
  .case-bar > span { display: none; }
  .case-layout { height: calc(100svh - 58px); }
  .case-copy h2 { font-size: clamp(3rem, 17vw, 5rem); }
  .case-facts > div { grid-template-columns: 1fr; gap: .45rem; }
}

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