:root {
  --bg: #030303;
  --ink: #f7f3ec;
  --muted: #b8b1a7;
  --dim: #8b8379;
  --red: #d41710;
  --line: rgba(247, 243, 236, 0.16);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.55;
}

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

a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 14px;
  z-index: 5;
  width: min(var(--max), calc(100% - 28px));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 6, 6, .82);
  backdrop-filter: blur(20px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand img { width: auto; height: 48px; object-fit: contain; }
.back { color: var(--muted); font-size: .9rem; font-weight: 800; }
.back:hover { color: var(--red); }

.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(280px, .72fr); gap: clamp(32px, 7vw, 100px); align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Archivo, Arial Black, system-ui, sans-serif; font-weight: 900; line-height: .98; }
h1 { max-width: 800px; font-size: clamp(3rem, 7vw, 6.25rem); letter-spacing: -.045em; }
.title-neo { color: var(--red); }
h2 { font-size: clamp(2.08rem, 4.35vw, 3.55rem); letter-spacing: -.04em; }
.lead { max-width: 62ch; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.75vw, 1.22rem); }
.hero-image { width: min(100%, 430px); margin-left: auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #080808; box-shadow: 24px 26px 0 -1px var(--red); }
.hero-image img { display: block; width: 100%; max-height: 610px; object-fit: cover; }
.hero-image.contain img { object-fit: contain; }

/* FrankenstAIn: a subtle white layer sits closely behind the full poster. */
.work-frankenstain .hero-image { box-shadow: 10px 12px 0 -1px rgba(255,255,255,.82); }
.work-frankenstain .hero-image img { max-height: 520px; }
.work-frankenstain .hero { padding-top: clamp(28px, 4vw, 52px); }
.work-frankenstain .hero-grid { align-items: start; }
.work-frankenstain .hero-copy { min-height: 522px; display: flex; flex-direction: column; justify-content: space-between; }
.work-frankenstain h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.work-frankenstain .lead { max-width: 54ch; font-size: clamp(1.04rem, 1.55vw, 1.18rem); }
.work-neoluddisme .hero { padding-top: clamp(28px, 4vw, 52px); }
.work-neoluddisme .hero-grid { align-items: start; }
.work-neoluddisme .hero-image.no-accent { border: 0; background: transparent; box-shadow: none; }
.work-neoluddisme .hero-image img { max-height: 520px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; font-weight: 900; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.button.primary { border-color: var(--red); background: var(--red); }
.button.primary:hover { background: #ef211a; }

.hero-facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding: 16px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts::after { content: ""; position: absolute; bottom: -1px; left: 0; width: clamp(72px, 13vw, 126px); height: 3px; background: var(--red); }
.hero-facts span { display: block; color: var(--dim); font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.hero-facts strong { display: block; margin-top: 5px; font-size: .92rem; line-height: 1.16; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { min-height: 122px; padding: 22px 20px 22px 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 20px; }
.fact:last-child { border-right: 0; }
.fact span { display: block; color: var(--dim); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 8px; font-size: 1.05rem; line-height: 1.2; }

.section { position: relative; padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section::after, .flyer-section::after, .pop-art-section::after { content: ""; position: absolute; bottom: -1px; left: max(20px, calc((100% - var(--max)) / 2)); width: clamp(86px, 12vw, 166px); height: 3px; background: var(--red); }
.section-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(280px, .7fr); gap: clamp(32px, 8vw, 120px); }
.synopsis-first .quote { margin-top: 38px; }
.copy { margin: 24px 0 0; max-width: 65ch; color: var(--muted); font-size: 1.04rem; }
.copy strong { color: var(--ink); }
.quote { align-self: start; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-left: 3px solid var(--red); background: rgba(255,255,255,.035); font-size: clamp(1.2rem, 2.1vw, 1.65rem); font-weight: 700; line-height: 1.24; }
.quote p { margin: 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr); gap: clamp(32px, 7vw, 96px); align-items: stretch; }
.story-notes { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 16px; }
.story-note { align-self: stretch; display: flex; align-items: center; padding: clamp(20px, 2.7vw, 30px); font-size: clamp(.96rem, 1.22vw, 1.12rem); line-height: 1.3; }
.headline-note { min-height: 174px; }
.selection-note { width: 100%; min-height: 0; padding: 18px 24px; border-left-color: #6aa5d8; background: rgba(106,165,216,.08); font-size: clamp(.82rem, 1vw, .94rem); }
.teaser-card { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-left: 3px solid #6aa5d8; background: #080808; transition: transform .28s ease, box-shadow .28s ease; }
.story-teaser { display: block; width: 100%; height: 100%; object-fit: cover; }
.teaser-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); transition: background .28s ease; pointer-events: none; }
.teaser-fullscreen { position: absolute; z-index: 2; top: 50%; left: 50%; padding: 12px 16px; border: 1px solid rgba(255,255,255,.75); color: #fff; background: rgba(8,8,8,.78); font: 800 .78rem/1 Archivo, Arial Black, sans-serif; letter-spacing: .035em; text-transform: uppercase; opacity: 0; transform: translate(-50%, -42%); transition: opacity .22s ease, transform .22s ease, background .22s ease; cursor: pointer; white-space: nowrap; }
.teaser-card:hover, .teaser-card:focus-within { z-index: 2; transform: scale(1.012); box-shadow: 0 18px 38px rgba(0,0,0,.32); }
.teaser-card:hover::after, .teaser-card:focus-within::after { background: rgba(0,0,0,.3); }
.teaser-card:hover .teaser-fullscreen, .teaser-card:focus-within .teaser-fullscreen { opacity: 1; transform: translate(-50%, -50%); }
.teaser-fullscreen:hover, .teaser-fullscreen:focus-visible { background: var(--red); }
.story-notes:has(.teaser-card:hover) .story-note { opacity: .52; filter: brightness(.72); }

.concept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 42px; }
.definition-card { min-height: 260px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); }
.definition-card.ours { border-color: rgba(212,23,16,.72); background: linear-gradient(145deg, rgba(212,23,16,.17), rgba(255,255,255,.025)); }
.definition-label { display: block; margin-bottom: 28px; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.definition-card blockquote { margin: 0; font-family: Archivo, Arial Black, system-ui, sans-serif; font-size: clamp(1.12rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.22; }
.definition-card p { margin: 18px 0 0; color: var(--muted); }
.definition-art { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #050505; }
.definition-art img { display: block; width: 100%; height: auto; }

.flyer-section { position: relative; padding: clamp(50px, 7vw, 78px) 0; border-bottom: 1px solid var(--line); }
.concept-flyer-grid { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.05fr); gap: clamp(36px, 8vw, 120px); align-items: center; }
.flyer { width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #050505; }
.flyer img { display: block; width: 100%; height: auto; }

.interactive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 9vw, 112px); align-items: start; }
.interaction-notes { display: grid; gap: 0; margin-top: 32px; }
.interaction-notes p { position: relative; margin: 0; padding: 15px 0 15px 22px; border-top: 1px solid var(--line); color: var(--muted); }
.interaction-notes p::before { content: "—"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.interaction-callout { margin-top: 26px; padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--red); background: rgba(255,255,255,.03); }
.interaction-callout strong { font-family: Archivo, Arial Black, system-ui, sans-serif; font-size: 1.08rem; }
.interaction-callout p { margin: 9px 0 0; color: var(--muted); }
.diptic-pair { display: grid; grid-template-columns: 1fr; gap: 18px; width: min(100%, 400px); justify-self: center; }
.diptic-pair figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #050505; }
.diptic-pair img { display: block; width: 100%; height: auto; }
.diptic-pair figcaption { padding: 10px 13px; color: var(--dim); font-size: .76rem; font-weight: 800; }

.company-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(28px, 6vw, 84px); align-items: center; margin-top: 36px; }
.details { display: grid; grid-template-columns: 1fr; gap: 0; }
.detail { padding: 18px 0; border-top: 1px solid var(--line); }
.detail span { display: block; color: var(--dim); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.detail strong { display: block; margin-top: 7px; font-size: 1rem; }

.gallery { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 40px; }
.gallery img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.gallery-side { display: grid; gap: 16px; }
.gallery-side img { min-height: 0; height: 100%; }
.project-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.gallery-item { position: relative; aspect-ratio: 3 / 4; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #080808; cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.065); filter: brightness(1.08); }
.gallery-label { position: absolute; right: 0; bottom: 0; left: 0; padding: 42px 14px 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.88)); font: 900 clamp(.92rem, 1.5vw, 1.16rem)/1 Archivo, Arial Black, sans-serif; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.gallery-item:hover .gallery-label, .gallery-item:focus-visible .gallery-label { opacity: 1; transform: translateY(0); }
.gallery-item:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.image-lightbox { width: min(92vw, 760px); max-height: 92vh; margin: auto; padding: 0; overflow: visible; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: #080808; box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.image-lightbox::backdrop { background: rgba(0,0,0,.88); }
.image-lightbox img { display: block; width: 100%; max-height: 88vh; object-fit: contain; border-radius: 9px; }
.lightbox-close { position: absolute; top: -16px; right: -16px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #080808; background: #fff; font: 700 1.65rem/1 Arial, sans-serif; cursor: pointer; }
.visual-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.visual-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #080808; }
.visual-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.visual-gallery figcaption { padding: 12px 14px; color: var(--dim); font-size: .78rem; font-weight: 800; }
.company-photo { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #080808; }
.company-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 58%; }
.company-photo figcaption { padding: 12px 14px; color: var(--dim); font-size: .78rem; font-weight: 800; }
.pop-art-section { position: relative; padding: clamp(44px, 6vw, 68px) 0; border-bottom: 1px solid var(--line); }
.pop-art-strip { width: 100%; margin: 0; overflow: hidden; background: #080808; }
.pop-art-strip img { display: block; width: 100%; height: auto; }

.programmer { color: #080808; background-color: var(--ink); background-image: linear-gradient(rgba(8,8,8,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8,8,8,.045) 1px, transparent 1px); background-size: 28px 28px; }
.programmer .eyebrow { color: var(--red); }
.programmer .copy { color: rgba(8,8,8,.72); }
.programmer .copy strong { color: #080808; }
.programmer .agenda-button { color: #fff; }
.date-highlight { position: relative; z-index: 0; padding: 0 .16em; white-space: nowrap; }
.date-highlight::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: .04em; left: 0; height: .46em; background: rgba(106,165,216,.68); transform: scaleX(0); transform-origin: left center; animation: marker-draw 4.5s ease-in-out infinite; }
.date-highlight-second::after { animation-delay: .22s; }
@keyframes marker-draw { 0%, 5% { transform: scaleX(0); opacity: 0; } 18% { transform: scaleX(1); opacity: 1; } 84% { transform: scaleX(1); opacity: 1; } 94%, 100% { transform: scaleX(0); opacity: 0; transform-origin: right center; } }
.programmer .section-grid { grid-template-columns: 1fr; gap: 32px; }
.programmer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: clamp(34px, 7vw, 92px); align-items: stretch; }
.ticket-cta { min-height: 240px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; overflow: hidden; color: #fff; background: #080808; clip-path: polygon(0 0, 100% 0, 100% 41%, 96% 50%, 100% 59%, 100% 100%, 0 100%, 0 59%, 4% 50%, 0 41%); transition: transform .2s ease, filter .2s ease; }
.ticket-cta:hover, .ticket-cta:focus-visible { transform: translateY(-4px) rotate(-.4deg); filter: drop-shadow(0 15px 18px rgba(8,8,8,.2)); }
.ticket-main { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 34px); }
.ticket-main small { color: rgba(255,255,255,.62); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ticket-main strong { max-width: 12ch; font-family: Archivo, Arial Black, sans-serif; font-size: clamp(1.6rem, 2.7vw, 2.55rem); line-height: .98; text-transform: uppercase; }
.ticket-main > span { color: rgba(255,255,255,.76); font-size: .82rem; font-weight: 800; }
.ticket-stub { display: flex; align-items: center; justify-content: center; border-left: 1px dashed rgba(255,255,255,.5); color: #080808; background: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); }
.needs { display: grid; gap: 14px; margin-top: 30px; }
.programmer .needs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 0; }
.need { padding-top: 14px; border-top: 1px solid rgba(8,8,8,.18); }
.need p { margin: 0; }
.work-contact-form { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1fr 1.7fr auto; gap: 12px; align-items: end; margin-top: 4px; padding-top: 20px; border-top: 1px solid rgba(8,8,8,.18); }
.work-contact-form label { display: grid; gap: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.work-contact-form input, .work-contact-form textarea { width: 100%; border: 1px solid rgba(8,8,8,.35); border-radius: 6px; padding: 11px 12px; color: #080808; background: rgba(255,255,255,.56); font: inherit; }
.work-contact-form textarea { min-height: 48px; height: 48px; resize: vertical; }
.work-contact-form button { min-width: 190px; min-height: 48px; border: 1px solid #080808; border-radius: 6px; color: var(--ink); background: #080808; font: inherit; font-weight: 900; cursor: pointer; }
.work-contact-form button:hover { color: #080808; background: transparent; }

.footer { padding: 54px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.footer p { margin: 10px 0 0; color: var(--muted); }
.footer a { color: var(--muted); font-weight: 800; }
.footer a:hover { color: var(--red); }

@media (max-width: 720px) {
  .topbar { min-height: 64px; padding: 0 14px; }
  .brand img { height: 40px; }
  .brand span { display: none; }
  .hero-grid, .section-grid, .story-grid, .interactive-grid, .concept-flyer-grid, .company-grid { grid-template-columns: 1fr; }
  .hero-image { width: min(78vw, 380px); margin: 12px auto 0; box-shadow: 14px 16px 0 -1px var(--red); }
  .work-frankenstain .hero-copy { min-height: 0; display: block; }
  .work-frankenstain .hero-image { box-shadow: 7px 8px 0 -1px rgba(255,255,255,.82); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-side { grid-template-columns: 1fr 1fr; }
  .gallery-side img { min-height: 180px; }
  .story-notes { grid-template-rows: auto; }
  .teaser-fullscreen { opacity: 1; transform: translate(-50%, -50%); }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-label { opacity: 1; transform: none; }
  .lightbox-close { top: 8px; right: 8px; }
  .concept-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .diptic-pair { grid-template-columns: 1fr; }
  .programmer .needs, .work-contact-form { grid-template-columns: 1fr; }
  .programmer-top { grid-template-columns: 1fr; }
  .ticket-cta { min-height: 176px; grid-template-columns: minmax(0, 1fr) 58px; }
  .work-contact-form button { width: 100%; }
  .visual-gallery { grid-template-columns: 1fr; }
  .visual-gallery img { aspect-ratio: auto; max-height: 620px; object-fit: contain; }
  .footer-inner { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .date-highlight::after { animation: none; transform: scaleX(1); opacity: 1; }
}

@media (max-width: 430px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .back { font-size: .82rem; }
  .details { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
}
