:root {
  --ink: #ece9e1;
  --muted: #9b9da3;
  --bg: #07090d;
  --panel: #101319;
  --line: #323640;
  --blue: #78a8ff;
  --blue-bright: #2d76ff;
  --paper: #e8e3d9;
  --paper-ink: #15171b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
h1, h2, h3 { overflow-wrap: anywhere; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: #000; background: #fff; }
.skip-link:focus { top: 1rem; }
.section-pad { padding-left: var(--pad); padding-right: var(--pad); }
main > section { scroll-margin-top: 5rem; }

.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; min-height: 5rem; padding: .8rem var(--pad); background: rgb(7 9 13 / 88%); border-bottom: 1px solid rgb(255 255 255 / 12%); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; flex-direction: column; width: fit-content; text-decoration: none; font-family: var(--mono); letter-spacing: .12em; font-size: .85rem; }
.wordmark small { color: var(--blue); font-size: .62rem; letter-spacing: .18em; }
.header-nav { display: flex; gap: 1.5rem; font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover, .header-nav a:focus-visible { color: var(--ink); }
.languages { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.languages button { min-width: 2.3rem; min-height: 2.2rem; padding: 0; border: 0; color: var(--muted); background: transparent; font: .68rem var(--mono); cursor: pointer; }
.languages button[aria-pressed="true"] { color: #061126; background: var(--blue); }

.hero { min-height: calc(100svh - 5rem); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(20rem, .9fr); grid-template-rows: 1fr auto; border-bottom: 1px solid var(--line); }
.hero-image { grid-row: 1 / 3; position: relative; min-height: 46rem; margin: 0; overflow: hidden; background: #15171c; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgb(7 9 13 / 24%)), linear-gradient(0deg, rgb(7 9 13 / 75%), transparent 35%); pointer-events: none; }
.hero-image img { filter: saturate(.82) contrast(1.08); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hero-image:hover img { transform: scale(1.018); }
.hero-image figcaption { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 1.8rem; display: flex; justify-content: space-between; gap: 1rem; font: .68rem var(--mono); letter-spacing: .12em; color: #fff; }
.hero-copy { align-self: center; padding: clamp(3rem, 8vw, 8rem) var(--pad) 3rem; }
.eyebrow, .section-number, .project-meta, .credit { margin: 0; color: var(--blue); font: .7rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 11ch; margin: 1.3rem 0 1.5rem; padding-bottom: .08em; font: 400 clamp(3rem, 6vw, 6.8rem)/1.02 var(--serif); letter-spacing: -.045em; }
.hero-lead { max-width: 40rem; margin: 0; color: #c9c9c8; font-size: clamp(1.05rem, 1.45vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.1rem; border: 1px solid var(--line); text-decoration: none; font: .73rem var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.button.primary { color: #061126; background: var(--blue); border-color: var(--blue); }
.button.secondary { color: var(--ink); }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 .6rem 1.6rem rgb(0 0 0 / 30%); }
.hero-index { display: grid; grid-template-columns: repeat(3, 1fr); align-self: end; border-top: 1px solid var(--line); }
.hero-index div { min-height: 7rem; padding: 1rem; border-right: 1px solid var(--line); }
.hero-index div:last-child { border-right: 0; }
.hero-index span { color: var(--blue); font: .65rem var(--mono); }
.hero-index p { margin: .8rem 0 0; font-size: .82rem; line-height: 1.25; }

.statement { display: grid; grid-template-columns: minmax(9rem, .3fr) 1fr; gap: 3rem; padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); background: var(--paper); color: var(--paper-ink); }
.statement .section-number { color: #5672a0; }
.statement blockquote { max-width: 32ch; margin: 0; font: 400 clamp(2rem, 4.4vw, 4.8rem)/1.08 var(--serif); letter-spacing: -.035em; }

.project { padding-top: clamp(4rem, 8vw, 8rem); border-bottom: 1px solid var(--line); }
.project-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.project-heading h2, .project-card h2, .sinestesia h2, .method h2, .contact h2 { margin: .55rem 0 0; padding-bottom: .08em; font: 400 clamp(2.5rem, 5vw, 5.2rem)/1.05 var(--serif); letter-spacing: -.04em; }
.project-meta { max-width: 32rem; text-align: right; color: var(--muted); }
.case-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.case-copy { position: sticky; top: 7rem; padding-bottom: 2rem; }
.case-copy h3, .split-copy h3, .project-card h3, .sinestesia h3 { margin: 0 0 1rem; font: 400 clamp(1.5rem, 2.5vw, 2.5rem)/1.1 var(--serif); }
.case-copy > p, .split-copy p, .project-card > p, .sinestesia > div > p { color: #b8bac0; }
.case-list { margin: 2rem 0; padding: 0; list-style: none; counter-reset: tasks; border-top: 1px solid var(--line); }
.case-list li { counter-increment: tasks; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.case-list li::before { content: counter(tasks, decimal-leading-zero); color: var(--blue); font: .65rem var(--mono); }
.specs { margin: 2.5rem 0 0; }
.specs div { display: grid; grid-template-columns: 6rem 1fr; padding: .55rem 0; border-bottom: 1px dotted var(--line); }
.specs dt { color: var(--muted); font: .65rem var(--mono); text-transform: uppercase; }
.specs dd { margin: 0; font-size: .88rem; }
.case-main { margin: 0; }
.case-main img { aspect-ratio: 4 / 5; object-position: 52% center; }
figcaption { padding-top: .65rem; color: var(--muted); font: .65rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tta-performance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; padding-top: 4rem; }
.tta-performance figure { min-width: 0; margin: 0; }
.tta-performance img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.tta-performance figcaption { font-size: .875rem; line-height: 1.5; }
@media (max-width: 700px) { .tta-performance { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; gap: 1rem; padding-top: 5rem; padding-bottom: 6rem; }
.gallery figure { position: relative; margin: 0; overflow: hidden; }
.gallery figure img { min-height: 0; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery figcaption { position: absolute; left: .75rem; right: .75rem; bottom: .6rem; padding: .45rem .55rem; color: #fff; background: rgb(7 9 13 / 72%); backdrop-filter: blur(8px); }
.technical-plan { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(4rem, 7vw, 7rem); border-top: 1px solid var(--line); }
.plan-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.plan-heading h3 { margin: .55rem 0 0; font: 400 clamp(1.65rem, 2.8vw, 2.8rem)/1.1 var(--serif); }
.plan-sheet { margin: 0; padding: clamp(.7rem, 1.5vw, 1.2rem); background: #d8d8d5; border: 1px solid #5c6069; }
.plan-sheet img { height: auto; max-height: 70rem; object-fit: contain; background: #fff; }
.plan-sheet figcaption { color: #4e5157; }
.plan-sheet.portrait-plan { max-width: 58rem; margin-inline: auto; }

.grooves { background: #090d16; }
.split-copy { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 9rem); padding-bottom: 4rem; }
.split-copy p:first-child { margin-top: 0; }
.cinema-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; height: auto; padding: 0 var(--pad); }
.cinema-strip figure { aspect-ratio: 3 / 2; margin: 0; overflow: hidden; }
.cinema-strip img { filter: saturate(.9); transition: filter .3s, transform .7s; }
.cinema-strip figure:hover img { filter: saturate(1.18); transform: scale(1.025); }
.credit { padding-top: 1rem; padding-bottom: 4rem; color: var(--muted); }

.inaudit { background: #0b0d11; }
.inaudit-copy { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 9rem); padding-bottom: 4rem; }
.inaudit-copy h3 { margin: 0; font: 400 clamp(1.5rem, 2.5vw, 2.5rem)/1.1 var(--serif); }
.inaudit-copy p { max-width: 52rem; margin: 0; color: #b8bac0; }
.inaudit-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.inaudit-gallery figure { margin: 0; overflow: hidden; background: #07090d; }
.inaudit-gallery img { aspect-ratio: 8 / 5; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.inaudit-gallery .inaudit-lead { grid-column: 1 / -1; }
.inaudit-gallery .inaudit-lead img { aspect-ratio: 16 / 7; }
.inaudit-gallery figure:hover img { transform: scale(1.018); }

.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); background: var(--line); }
.project-card { min-width: 0; padding: clamp(1.5rem, 4vw, 4rem); background: var(--bg); }
.project-card figure { height: min(44vw, 40rem); margin: 2rem 0 2.5rem; overflow: hidden; }
.project-card h2 { font-size: clamp(2.2rem, 4vw, 4.3rem); }
.project-card .project-meta { margin: 1rem 0 2.5rem; text-align: left; }
.project-card h3 { margin-top: 2.5rem; }
.project-card .puma-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; gap: .75rem; margin-top: 2.5rem; }
.project-card .puma-gallery figure { height: auto; margin: 0; background: #12151b; }
.project-card .puma-gallery .portrait { grid-row: span 2; }
.project-card .puma-gallery img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.project-card .puma-gallery figure:hover img { transform: scale(1.025); }
.sinestesia { display: grid; grid-template-columns: .7fr 1fr; gap: clamp(3rem, 10vw, 10rem); padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); background: var(--paper); color: var(--paper-ink); }
.sinestesia .section-number, .sinestesia .project-meta { color: #5672a0; text-align: left; }
.sinestesia > div > p { color: #3f4248; }
.sinestesia-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1rem, 3vw, 3rem); }
.sinestesia-gallery figure { margin: 0; overflow: hidden; background: #08090c; }
.sinestesia-gallery img { aspect-ratio: 8 / 5; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.sinestesia-gallery .sinestesia-lead { grid-column: 1 / -1; }
.sinestesia-gallery .sinestesia-lead img { aspect-ratio: 16 / 7; }
.sinestesia-gallery figure:hover img { transform: scale(1.018); }

.method { padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); }
.method header { display: grid; grid-template-columns: .4fr 1fr; align-items: end; gap: 2rem; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 5rem 0 0; padding: 1px; list-style: none; background: var(--line); }
.method-grid li { min-height: 22rem; padding: 2rem; background: var(--panel); }
.method-grid span { color: var(--blue); font: .68rem var(--mono); }
.method-grid h3 { margin: 4rem 0 1rem; font: 400 2rem var(--serif); }
.method-grid p { color: #aaadb4; }
.toolkit { padding-top: 4rem; padding-bottom: 5rem; border-top: 1px solid var(--line); }
.tool-line { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.tool-line span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: #cfd1d5; font: .72rem var(--mono); }

.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 10vw, 10rem); padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); color: var(--paper-ink); background: var(--paper); }
.contact h2 { max-width: 12ch; }
.contact-copy > p:last-child { max-width: 43rem; font-size: 1.1rem; }
.contact .section-number { color: #5672a0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1rem; }
.contact-actions > a:not(.button) { font: 1rem var(--mono); }
.contact-actions span { color: #54575d; }
.contact .button.primary { margin-top: 1rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; color: var(--muted); font: .65rem var(--mono); letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .hero-image img, .cinema-strip img { transition: none; } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; gap: 1rem; }
  .header-nav { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-image { min-height: 58svh; }
  .hero-copy { padding-top: 3.5rem; }
  .hero-index { display: grid; }
  .statement, .case-layout, .split-copy, .inaudit-copy, .sinestesia, .contact { grid-template-columns: 1fr; }
  .statement { gap: 2rem; }
  .case-copy { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 15rem; }
  .cinema-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .project-pair { grid-template-columns: 1fr; }
  .project-card figure { height: 70vw; }
  .method header { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .contact-actions { justify-content: start; }
}

@media (max-width: 560px) {
  .site-header { min-height: 4.5rem; }
  .wordmark small { display: none; }
  .languages button { min-width: 2rem; }
  .hero-image { min-height: 54svh; }
  .hero-image figcaption { flex-direction: column; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .hero-index { grid-template-columns: 1fr; }
  .hero-index div { min-height: 0; display: grid; grid-template-columns: 2rem 1fr; padding: .8rem var(--pad); border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-index p { margin: 0; }
  .project-heading { align-items: start; flex-direction: column; }
  .plan-heading { align-items: start; flex-direction: column; }
  .project-meta { text-align: left; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 0; }
  .gallery figure { flex: 0 0 82vw; height: 30rem; scroll-snap-align: start; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .cinema-strip { display: flex; height: auto; padding-right: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .cinema-strip figure { flex: 0 0 82vw; aspect-ratio: 3 / 2; scroll-snap-align: start; }
  .project-pair { padding-left: 0; padding-right: 0; }
  .project-card .puma-gallery { display: flex; grid-auto-rows: auto; margin-right: calc(clamp(1.5rem, 4vw, 4rem) * -1); overflow-x: auto; scroll-snap-type: x mandatory; }
  .project-card .puma-gallery figure, .project-card .puma-gallery .portrait { flex: 0 0 80vw; height: auto; aspect-ratio: 8 / 5; scroll-snap-align: start; }
  .inaudit-gallery { display: flex; gap: .75rem; padding-left: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; }
  .inaudit-gallery figure, .inaudit-gallery .inaudit-lead { flex: 0 0 84vw; scroll-snap-align: start; }
  .inaudit-gallery img, .inaudit-gallery .inaudit-lead img { aspect-ratio: 8 / 5; }
  .sinestesia-gallery { display: flex; gap: .75rem; margin-right: calc(var(--pad) * -1); overflow-x: auto; scroll-snap-type: x mandatory; }
  .sinestesia-gallery figure, .sinestesia-gallery .sinestesia-lead { flex: 0 0 84vw; scroll-snap-align: start; }
  .sinestesia-gallery img, .sinestesia-gallery .sinestesia-lead img { aspect-ratio: 8 / 5; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid li { min-height: 17rem; }
  .method-grid h3 { margin-top: 2.5rem; }
  .site-footer { flex-direction: column; }
}
