/* Arial titles and subtitles; locally hosted Inter for reading. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/InterVariable.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/InterVariable-Italic.woff2') format('woff2'); }
:root {
  --sans: Arial, sans-serif;
  --reading: Inter, Arial, sans-serif;
  --paper: #fff;
  --ink: #0a0a0a;
  --accent: #f00;
  --muted: #606060;
  --line: #d9d9d9;
  --soft: #f3f3f3;
  --small: .875rem;
  --body: 1rem;
  --lead: 1.125rem;
  --title: 1.375rem;
  --section: clamp(1.5rem, 2.4vw, 2rem);
  --page: clamp(2.25rem, 5vw, 4.5rem);
  --hero: clamp(3.25rem, 7.4vw, 7rem);
  --space: clamp(22px, 4.5vw, 72px);
  --max: 1360px;
}
/* Richer accents on wide-gamut displays; standard screens retain the sRGB red. */
@supports (color: color(display-p3 1 0 0)) {
  @media (color-gamut: p3) {
    :root { --accent: color(display-p3 1 0 0); }
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navigation-height, 104px) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.65 var(--reading); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; isolation: isolate; }
/* Mechanical panel artwork: continuous channels, fine seams, vents and couplings. */
.circuit-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.circuit-surface { display: block; width: 100%; height: 100%; pointer-events: none; overflow: hidden; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; }
.circuit-surface use { pointer-events: none; }
.circuit-background { position: fixed; inset: 4px 0 0; height: calc(100% - 4px); z-index: -1; color: #161616; opacity: .86; mask-image: linear-gradient(90deg, #000, #0005 38%, #0005 62%, #000); }
.circuit-panel { --circuit-paper: var(--ink); position: absolute; inset: 0 0 0 auto; min-width: 960px; z-index: -1; color: #999; opacity: .72; mask-image: linear-gradient(90deg, #0006, #0009 45%, #000); }
.circuit-channel, .circuit-channel-bed, .circuit-seam, .circuit-signal, .circuit-insert, .circuit-registration { vector-effect: non-scaling-stroke; }
.circuit-channel-bed { stroke-width: var(--circuit-bed-width, 18); opacity: .12; }
.circuit-channel { stroke-width: var(--circuit-main-width, 9); }
.circuit-seam { stroke-width: 1; opacity: .7; }
.circuit-inner-seam { opacity: .35; }
.circuit-plate { stroke-width: 1; stroke-opacity: .3; fill: currentColor; fill-opacity: .065; }
.circuit-plate-secondary { fill-opacity: .035; }
.circuit-vent, .circuit-fastener, .circuit-slash { stroke: none; fill: currentColor; }
.circuit-vent { opacity: .7; }
.circuit-coupling-base { stroke: none; fill: var(--circuit-paper, var(--paper)); }
.circuit-coupling { stroke-width: 8; stroke-dasharray: 22 8; opacity: .65; }
.circuit-signal { stroke: var(--accent); stroke-width: var(--circuit-main-width, 9); }
.circuit-insert { stroke-width: 4; }
.circuit-registration { stroke-width: 1; opacity: .5; }
.circuit-grid-field { stroke: none; opacity: .13; }
.circuit-grid-line { fill: none; stroke-width: .7; }
.circuit-grid-cross { fill: none; stroke-width: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4, h5, h6, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; text-transform: uppercase; }
h1 { font-size: var(--page); }
h2 { font-size: var(--section); }
h3, h4, h5, h6 { font-size: var(--title); }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - var(--space)*2, var(--max)); margin-inline: auto; }
.eyebrow, .main-nav, .menu-toggle, .text-link, .button, .back-link, .project-meta dt, .footer-bottom, figcaption, .form-note, .film-note, .contact-form label { font-family: var(--sans); font-size: var(--small); line-height: 1.5; }
.eyebrow, .main-nav, .menu-toggle, .button, .back-link, .project-meta dt { text-transform: uppercase; letter-spacing: .035em; }
.eyebrow { font-weight: 700; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 99; background: #fff; color: #000; padding: 12px 20px; }
.skip-link:focus { top: 16px; }
.navigation-surface { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 4px solid var(--accent); }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; flex-shrink: 0; }
.brand-wordmark { font: 900 1.125rem/.95 var(--sans); text-transform: uppercase; letter-spacing: -.035em; }
.brand-dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 32px; font-weight: 700; }
.main-nav>a { position: relative; padding: 10px 0; }
.main-nav>a::after { content: ''; position: absolute; left: 0; bottom: 3px; height: 3px; width: 0; background: var(--accent); transition: width .15s; }
.main-nav>a:hover::after, .main-nav>a[aria-current]::after { width: 100%; }
.menu-toggle { display: none; align-items: center; gap: 14px; background: transparent; border: 0; padding: 10px 0; font-weight: 700; }

/* Clipped signal bands connect the circuit backgrounds to the media frames. */
.hero-shell, .contrast-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.hero-shell::after, .contrast-panel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(90deg, var(--accent) 0 13%, transparent 13% 15%, var(--accent) 15% 15.5%, transparent 15.5% 61%, #4a4a4a 61% 76%, transparent 76% 78%, var(--accent) 78% 100%); clip-path: polygon(0 25%, 63% 25%, 63% 0, 100% 0, 100% 65%, 80% 65%, 80% 100%, 20% 100%, 20% 70%, 0 70%); }
.hero { padding: 30px 0 38px; }
.hero-kicker { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px dashed #666; color: #bdbdbd; }
.hero-kicker .eyebrow:first-child { display: flex; align-items: center; gap: 10px; }
.studio-highlight { color: #fff; background: var(--accent); padding: .08em .18em; font-weight: 700; }
.status-square { width: 8px; height: 8px; display: inline-block; flex-shrink: 0; background: var(--accent); }
.hero-main { padding: 44px 0 18px; }
.hero h1 { font-size: var(--hero); line-height: .91; letter-spacing: -.055em; }
.hero-highlight { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 20px; border: 0; border-bottom: 2px solid currentColor; padding: 0 0 5px; background: transparent; font-weight: 700; }
.text-link:hover { border-color: var(--accent); }

/* Shared editorial grid and consistent project/research titles. */
.work-section { padding-top: 64px; }
.section-title, .section-heading h3, .home-topics h3, .studio-section-title { font-size: var(--section); }
.page-subtitle { display: block; margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 26px; }
.section-heading>p { font-size: var(--small); color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 42px 28px; }
.project-card>a { display: block; }
.card-image { overflow: hidden; position: relative; background: var(--soft); aspect-ratio: 1.5; }
.thumbnail-preview { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .3s; }
.thumbnail-preview.is-playing { opacity: 1; }
.thumbnail-preview iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.card-image>img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card-caption { display: flex; justify-content: space-between; gap: 20px; padding: 10px 7px 0; }
.card-caption :is(h3, h4), .lab-grid :is(h3, h4) { font-size: var(--title); line-height: 1.18; }
.card-caption p { font-size: var(--small); line-height: 1.4; color: #50565d; margin-top: 3px; }
.home-projects { grid-template-columns: minmax(0, 1fr); }
.feature-section { margin-top: 88px; background: var(--paper); color: var(--ink); }
.lab-section { background: transparent; }
.home-topics+.lab-section { margin-top: 24px; }
.section-band { padding: 36px 0; background: var(--paper); color: var(--ink); border-top: 4px solid var(--accent); }
.section-band .eyebrow { color: var(--muted); }
.section-band .section-title, .section-heading h3, .home-topics h3, .studio-section-title { font-size: var(--section); }
.section-heading { padding-bottom: 0; }
.section-band .section-heading .eyebrow { margin-bottom: 12px; }
.lab-section>.lab-grid { padding-top: 32px; }
.home-approach { position: relative; isolation: isolate; container-type: inline-size; overflow: clip; margin-top: 56px; padding: clamp(24px, 4vw, 48px); }
.home-approach::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--paper); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.home-approach h3 { max-width: none; margin-bottom: 24px; font-size: clamp(1rem, 2.7cqw, 2.125rem); line-height: 1.15; letter-spacing: -.035em; white-space: nowrap; text-transform: uppercase; }
.approach-token { display: inline-block; }
.approach-accent { color: var(--accent); }
.home-approach p { max-width: 80ch; font-size: var(--lead); }
.home-approach-closing { margin-top: 24px; text-transform: uppercase; line-height: 1.8; }
.home-approach-closing strong { padding: .15em .3em; background: var(--accent); color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.approach-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); mask-image: linear-gradient(90deg, #0002, #0002 55%, #000); }
.approach-panels { fill: #eee; stroke: #dedede; }
.approach-traces { fill: none; stroke: #a8a8a8; stroke-width: 2; }
.approach-signals { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: .18 .82; }
.approach-nodes { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.approach-orbit { fill: none; stroke: #888; stroke-width: 3; stroke-dasharray: 16 8; transform-origin: 1034px 290px; }
.approach-instruments { position: absolute; inset: 0; pointer-events: none; }
.approach-scan { position: absolute; top: 0; left: 28px; right: 48px; height: 4px; transform-origin: left; background: linear-gradient(90deg, var(--accent) 0 66%, transparent 66% 68%, var(--ink) 68% 87%, transparent 87% 90%, var(--accent) 90%); }
.approach-stripes { position: absolute; right: 28px; bottom: 0; width: 96px; height: 5px; background: repeating-linear-gradient(120deg, var(--accent) 0 5px, transparent 5px 10px); }
.client-section { overflow: hidden; margin-top: 56px; }
.client-section .section-band { padding-block: 18px; }
.client-section .section-title, .section-heading h3, .home-topics h3, .studio-section-title { font-size: var(--section); }
.section-heading { box-shadow: none; }
.client-section .section-heading .eyebrow { margin-bottom: 0; }
.client-label { display: inline-block; padding: .12em .35em; background: var(--accent); color: #fff; }
.home-topics { padding: 24px 0 40px; border-top: 1px solid var(--line); background: transparent; }
.home-topics .tag-cloud { margin: 18px 0 0; padding: 0; border: 0; box-shadow: none; }
.client-marquee { width: 100%; overflow: hidden; padding: 15px 0; }
/* Equal-height artwork, natural widths, and symmetric spacing at the loop seam. */
.client-track { display: flex; width: max-content; animation: client-drift var(--client-duration, 108s) linear infinite; will-change: transform; }
.client-group { display: flex; margin: 0; list-style: none; flex: 0 0 auto; align-items: center; gap: 0; padding: 0; }
.client-group>li { flex: 0 0 auto; width: auto; min-height: 96px; padding-inline: var(--logo-padding, 24px); display: grid; place-items: center; }
.client-group img { transform: translateY(calc(var(--logo-offset-y, 0px) * .75)); width: auto; height: calc(var(--logo-height, 80px) * .75); max-width: none; max-height: none; object-fit: contain; filter: brightness(0); }
.client-group img.client-grayscale { filter: grayscale(1); }
.client-group img.client-grayscale-invert { filter: grayscale(1) invert(1); }
@keyframes client-drift { to { transform: translateX(-50%); } }
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.lab-image { aspect-ratio: 1.35; background: var(--soft); overflow: hidden; }
.lab-image img { width: 100%; height: 100%; object-fit: cover; }
.lab-grid :is(h3, h4) { margin-top: 20px; }
.lab-feature { grid-template-columns: minmax(0, 1fr); }

/* Inner-page hierarchy: same heading, label and body styles on every route. */
.page-intro, .detail-header { padding-top: 42px; }
.page-intro { padding-bottom: 48px; }
.page-intro>.eyebrow { margin-bottom: 28px; }
.page-intro::before, .detail-header::before, .legal-page>header::before { content: ''; display: block; width: 96px; height: 6px; margin-bottom: 28px; background: linear-gradient(90deg, var(--accent) 0 68%, transparent 68% 74%, #0a0a0a 74% 95%, transparent 95% 97%, var(--accent) 97%); }
.intro-row { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: 64px; }
.intro-copy { max-width: 520px; justify-self: end; padding-top: 4px; }
.intro-copy.prose p { font-size: var(--body); color: var(--muted); }
.intro-copy.reality-description, .intro-copy.reality-description :is(p, li, a, strong, em, span) { font-family: var(--reading); font-size: var(--body); line-height: 1.8; letter-spacing: 0; }
.reality-description { font-weight: 700; }
.reality-description>p:last-child { margin-bottom: 0; }
.reality-highlight { color: #fff; background: var(--accent); padding: .12em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.work-intro-content { position: relative; }
.work-intro-content>.intro-row { min-height: 18rem; }
.reality-title { font: 800 var(--page)/1.1 var(--sans); letter-spacing: -.035em; text-transform: uppercase; }
.work-intro-content>.work-intro-measure { position: absolute; inset: 0 0 auto; min-height: 0; visibility: hidden; pointer-events: none; }
.page-intro+.work-section { padding-top: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.tag-cloud a { display: block; padding: 8px 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 700 var(--small)/1.5 var(--sans); }
a[rel="tag"] { text-transform: uppercase; }
.tag-cloud a:hover, .tag-cloud a:focus-visible { background: var(--accent); border-color: var(--accent); }
.tag-cloud a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-cloud a:focus-visible { outline-color: var(--accent); }
.category-tag-description { position: relative; isolation: isolate; margin-top: clamp(36px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); font: 400 var(--body)/1.8 var(--reading); color: var(--ink); filter: drop-shadow(0 10px 8px #0005) drop-shadow(0 28px 20px #0006); }
.category-tag-description::before { --paper-cut: clamp(20px, 2.5vw, 36px); content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--paper); clip-path: polygon(0 0, calc(100% - var(--paper-cut)) 0, 100% var(--paper-cut), 100% 100%, var(--paper-cut) 100%, 0 calc(100% - var(--paper-cut))); }
.category-tag-description>p { max-width: none; margin: 0; }
.detail-header { padding-bottom: 32px; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 28px; }
.detail-header>.eyebrow { margin-bottom: 16px; }
.detail-header h1 { max-width: 1100px; overflow-wrap: anywhere; }
.detail-cover img { width: 100%; height: auto; }
.detail-body { padding-top: 48px; display: grid; grid-template-columns: 1fr 2.4fr; gap: 64px; }
.detail-body-no-meta { grid-template-columns: minmax(0, 1fr); }
.project-meta { align-self: start; min-width: 0; padding: 28px; background: #c00; color: #fff; overflow-wrap: anywhere; }
.project-meta dl+dl { margin-top: 24px; }
.project-meta dt { color: inherit; font-weight: 700; margin-bottom: 6px; }
.project-meta dd { margin: 0; }
.project-meta dd>* { display: block; }
.project-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 20px; margin-top: 24px; border-top: 1px solid #ffffff60; }
.project-tags a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.project-tags a:hover, .project-tags a:focus-visible { text-decoration-thickness: 2px; }
.prose { font-size: var(--body); line-height: 1.8; }
.prose>p { margin-bottom: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose h2, .prose h3 { font-size: var(--title); line-height: 1.25; margin: 32px 0 18px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { list-style: disc; padding-left: 24px; margin-bottom: 24px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 24px; margin: 28px 0; }
.project-description { max-width: 800px; }
.lab-body { padding-top: 40px; }
.lab-body .project-description { max-width: none; }
.lead { font-size: var(--lead); line-height: 1.7; }
.project-videos { margin-top: 48px; }
.project-videos.lead-video { margin-top: 0; }
.project-videos figure+figure { margin-top: 32px; }
.project-videos video { width: 100%; max-height: 78vh; background: #000; aspect-ratio: 16/9; object-fit: contain; }
figcaption { color: var(--muted); padding-top: 12px; font-size: .75rem; text-transform: uppercase; }
figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.external-film { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px; background: var(--ink); color: #fff; text-align: center; }
.external-film h2 { font-size: var(--title); max-width: 760px; }
.film-note { color: #bdbdbd; }
.embedded-film { position: relative; width: 100%; aspect-ratio: 16/9; min-height: 200px; background: #000; }
.embedded-film iframe { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; }
/* Keep decoration outside the player: no clipping, links or pointer-catching overlays. */
.film-frame { position: relative; isolation: isolate; padding: 8px; border: 1px solid #383838; background: #090909; }
.film-frame::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, var(--accent) 0 6px, transparent 6px) top left / 12px 12px no-repeat, linear-gradient(-45deg, var(--accent) 0 6px, transparent 6px) bottom right / 12px 12px no-repeat; }
.project-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 48px; }
.project-gallery figure { display: flex; align-items: center; background: var(--soft); }
.project-gallery img { width: 100%; height: auto; }
.other-projects { margin-top: 64px; }
.other-projects-heading { border-top: 4px solid var(--accent); padding: 28px 0; background: var(--paper); }
.other-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.other-project-grid .cyber-frame>a { padding: 5px; }
.other-project-thumbnail { display: block; }
.other-project-thumbnail .card-image { margin-bottom: 0; }
.research-grid { grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); padding-top: 32px; }
.studio-photo { overflow: hidden; background: var(--paper); }
.studio-photo img { width: 100%; max-height: 670px; object-fit: cover; }
.studio-content { margin-top: 48px; }
.studio-content .prose { max-width: 800px; }
.studio-content .studio-section-title { font-size: clamp(1.5rem, 3.4vw, 2.75rem); line-height: 1.35; }
.studio-section-title span { color: #fff; background: var(--accent); padding: .04em .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.studio-section-photo { margin-top: 40px; }
.studio-content .prose>p:last-child { margin-bottom: 0; }
.awards { border-top: 2px solid var(--ink); padding-top: 28px; margin-top: 64px; }
.awards>div { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; margin-top: 24px; }
.award-logo { flex: 0 1 calc((100% - 80px) / 5); min-width: 0; height: 220px; overflow: hidden; }
/* Scale past the source PNGs' transparent margins, keeping each visible mark intact. */
.awards img { width: 100%; max-width: none; height: 100%; object-fit: contain; }
.award-logo:nth-child(3) img { transform: scale(2.15); }
.award-logo:nth-child(4) img { transform: scale(1.8); }
.award-logo:nth-child(5) img { transform: scale(1.15); }

/* Contact and legal surfaces use the same type and spacing tokens. */
.contact-grid { padding-top: 28px; }
.contact-grid-with-locations { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: clamp(20px, 3vw, 40px); }
.contact-locations { position: relative; isolation: isolate; padding: 22px; color: #fff; }
.contact-locations::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-top: 3px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.contact-locations h3 { margin-bottom: 14px; }
.contact-locations h3 span { display: inline-block; padding: 2px 6px; color: #fff; background: var(--accent); }
.contact-locations li { font-size: var(--small); line-height: 1.45; padding-block: 10px; }
.contact-location-name { display: block; font-weight: 700; }
.contact-location-city { display: block; margin-top: 2px; }
.contact-locations li:last-child { padding-bottom: 0; }
.contact-form-frame { --contact-cut: 20px; position: relative; min-width: 0; padding: 7px 7px 13px; background: var(--ink); clip-path: polygon(0 0, calc(100% - var(--contact-cut)) 0, 100% var(--contact-cut), 100% 100%, var(--contact-cut) 100%, 0 calc(100% - var(--contact-cut))); }
.contact-form-frame::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(var(--accent), var(--accent)) 18px top / 28% 4px no-repeat, linear-gradient(225deg, var(--accent) 0 16px, transparent 16px) top right / 24px 24px no-repeat, linear-gradient(var(--accent), var(--accent)) right 30% / 4px 36px no-repeat, linear-gradient(var(--accent), var(--accent)) left 72% / 4px 20px no-repeat, repeating-linear-gradient(120deg, var(--accent) 0 4px, transparent 4px 8px) right 20px bottom 4px / 72px 4px no-repeat; }
.contact-form-panel { min-width: 0; padding: clamp(18px, 3vw, 30px); background: var(--paper); clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)); }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form input:not([type=hidden]), .contact-form textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid #808080; border-radius: 0; padding: 8px 0; background: transparent; font-family: var(--reading); font-size: var(--body); margin-top: 4px; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-note { margin-bottom: 18px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 20px; background: var(--ink); color: #fff; border: 2px solid var(--ink); font-weight: 700; }
.button:hover { box-shadow: 4px 4px var(--accent); }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }
.form-note { color: var(--muted); margin-bottom: 24px; }
.contact-detail { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { padding: 24px; margin-bottom: 24px; border: 1px solid var(--ink); }
.form-feedback h3 { font-size: var(--title); margin-bottom: 12px; }
.form-feedback.error { border-color: var(--accent); }
.legal-page .prose { max-width: 800px; }
.error-page { padding: 64px 0; }
.error-page h1 { margin: 28px 0; }
.error-page p.lead { max-width: 480px; }
.error-page .button { margin-top: 28px; }
.site-footer { margin-top: 88px; }
.footer-cta { display: block; position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 4.5vw, 64px); background: var(--ink); color: #fff; border-bottom: 6px solid var(--accent); }
.footer-cta .eyebrow { color: #bdbdbd; }
.footer-cta-title { display: block; font: 800 var(--page)/1.05 var(--sans); letter-spacing: -.04em; text-transform: uppercase; margin-top: 24px; }
.footer-bottom { background: var(--paper); color: var(--ink); }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 28px 76px 28px 0; }
.footer-name { font: 800 var(--body)/1 var(--sans); text-transform: uppercase; letter-spacing: -.025em; color: var(--ink); }
.footer-bottom-content>div { display: flex; gap: 24px; }
.footer-bottom-content>div>a { text-transform: uppercase; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--accent); background: var(--ink); color: #fff; box-shadow: 0 4px 16px #0002; transition: background .15s; }
.back-to-top svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; pointer-events: none; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--accent); }
.back-to-top:focus-visible { outline-color: var(--ink); }
/* Dark title panels retain the original contrast beneath the white navigation. */
.contrast-panel .page-intro, .contrast-panel .detail-header { padding: 40px 0 46px; }
.contrast-panel .intro-copy, .contrast-panel .intro-copy.prose p, .contrast-panel .eyebrow, .contrast-panel .back-link, .contrast-panel .lead { color: #c4c4c4; }
.contrast-panel .button { background: #fff; border-color: #fff; color: var(--ink); }
.contrast-panel .page-intro::before, .contrast-panel .detail-header::before { background: linear-gradient(90deg, transparent 47%, #fff 50%, transparent 53%) -120px 0 / 192px 100% no-repeat, linear-gradient(90deg, var(--accent) 0 68%, transparent 68% 74%, #fff 74% 95%, transparent 95% 97%, var(--accent) 97%) 0 0 / 100% 100% no-repeat; animation: signal-scan 8s ease-in-out infinite; }
@keyframes signal-scan { 0%, 20% { background-position: -120px 0, 0 0; } 80%, 100% { background-position: 120px 0, 0 0; } }
.contrast-panel+.work-section { padding-top: 32px; }
.contrast-panel+.research-grid { border-top: 0; }
.legal-body { padding-top: 40px; }
.subtitle, .hero-subtitle, .card-caption p, .section-heading>p, .intro-copy { font-family: var(--sans); text-transform: uppercase; }
.hero-subtitle { margin-top: 30px; font-size: var(--lead); font-weight: 700; letter-spacing: .04em; }
.reality-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin-top: 20px; }
.reality-button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 18px; border: 1px solid #727272; border-left: 3px solid var(--accent); background: #161616; color: #fff; font: 700 var(--small)/1.5 var(--sans); letter-spacing: .025em; text-transform: uppercase; }
.reality-button:hover, .reality-button:focus-visible, .reality-button[aria-current] { background: #fff; color: var(--ink); border-color: #fff; border-left-color: var(--accent); }
.page-intro>.reality-buttons { margin-top: 32px; }

/* One size for all text inside project descriptions, including intro and subheads. */
.project-description, .project-description :is(p, ul, ol, li, a, strong, em, b, i, span, blockquote, table, td, th, h2, h3, h4, h5, h6), .project-meta, .project-meta dt {
  font-family: var(--reading);
  font-size: var(--body);
  line-height: 1.8;
}
.project-description :is(h2, h3, h4, h5, h6), .project-meta dt { font-family: var(--sans); letter-spacing: 0; }

/* Black technical panels with fine graphite edges, white captions and red accents. */
.cyber-frame { --cut: 14px; position: relative; padding: 1px; background: #383838; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cyber-frame>a { position: relative; display: block; padding: 5px 5px 14px; color: #fff; background: repeating-linear-gradient(0deg, transparent 0 31px, #ffffff0a 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #ffffff0a 31px 32px), linear-gradient(135deg, transparent 65%, #ffffff06 65% 78%, transparent 78%), linear-gradient(110deg, #090909, #181818); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
.cyber-frame .card-caption :is(h3, h4), .cyber-frame .card-caption p { color: #fff; }
.cyber-frame::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cyber-frame::after { content: ''; position: absolute; top: 6px; right: 0; width: 19px; height: 2px; background: var(--accent); transform: rotate(45deg); pointer-events: none; }
.cyber-frame>a::after { content: ''; position: absolute; bottom: 6px; right: 18px; width: 36px; height: 2px; background: repeating-linear-gradient(90deg, #ffffff99 0 2px, transparent 2px 6px); pointer-events: none; }
.cyber-frame>a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* The photograph itself is clipped; the rails and scattered dot patches sit on top. */
.thumbnail-frame { --photo-cut: 18px; position: relative; isolation: isolate; clip-path: polygon(var(--photo-cut) 0, calc(100% - var(--photo-cut)) 0, 100% var(--photo-cut), 100% calc(100% - var(--photo-cut)), calc(100% - var(--photo-cut)) 100%, var(--photo-cut) 100%, 0 calc(100% - var(--photo-cut)), 0 var(--photo-cut)); }
.thumbnail-frame::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 2px var(--accent); background: linear-gradient(135deg, var(--accent) 0 14px, transparent 14px) top left / 28px 28px no-repeat, linear-gradient(-135deg, var(--accent) 0 14px, transparent 14px) top right / 28px 28px no-repeat, linear-gradient(45deg, var(--accent) 0 14px, transparent 14px) bottom left / 28px 28px no-repeat, linear-gradient(-45deg, var(--accent) 0 14px, transparent 14px) bottom right / 28px 28px no-repeat; }
.thumbnail-frame::after { content: ''; position: absolute; width: 96px; height: 64px; right: 18px; bottom: 18px; z-index: 1; pointer-events: none; opacity: .65; background: radial-gradient(circle, #fff 1px, transparent 1.5px) 0 0 / 9px 9px, radial-gradient(circle, var(--accent) 1.4px, transparent 1.8px) 4px 3px / 23px 19px; mask-image: linear-gradient(135deg, transparent 5%, #000 90%); }
article:nth-child(3n + 2) .thumbnail-frame::after { right: auto; left: 18px; top: 18px; bottom: auto; transform: rotate(180deg); width: 72px; }
article:nth-child(3n) .thumbnail-frame::after { width: 120px; height: 46px; background-position: 3px 5px, 11px 7px; }
.cyber-frame .thumbnail-frame { --photo-cut: 10px; }
.cyber-frame .thumbnail-frame::before { box-shadow: inset 0 0 0 1px #25334330; background: linear-gradient(135deg, var(--accent) 0 8px, transparent 8px) top left / 16px 16px no-repeat, linear-gradient(-45deg, var(--accent) 0 8px, transparent 8px) bottom right / 16px 16px no-repeat, var(--edge-marks) var(--mark-bottom) top / var(--mark-short) 2px no-repeat, var(--edge-marks) var(--mark-top) bottom / var(--mark-long) 2px no-repeat, linear-gradient(var(--accent), var(--accent)) left var(--mark-right) / 2px var(--mark-short) no-repeat, linear-gradient(var(--accent), var(--accent)) right var(--mark-left) / 2px var(--mark-short) no-repeat; }
.cyber-frame .thumbnail-frame::after { content: none; }

/* Lab cards use opposite cut corners, a dot matrix and a red caption marker. */
.lab-frame { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.lab-frame>a { background: radial-gradient(circle, #ffffff1a 1px, transparent 1.4px) 0 0 / 12px 12px, linear-gradient(110deg, #080808, #151515); clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px); }
.lab-frame::after { left: 0; right: auto; transform: rotate(-45deg); }
.lab-frame>a::after { width: 48px; background: repeating-linear-gradient(120deg, var(--accent) 0 2px, transparent 2px 6px); }
.lab-frame :is(h3, h4) { position: relative; margin: 0; padding: 12px 10px 2px 18px; color: #fff; }
.lab-frame :is(h3, h4)::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 3px; width: 2px; background: var(--accent); }
.lab-frame .thumbnail-frame { clip-path: polygon(var(--photo-cut) 0, 100% 0, 100% calc(100% - var(--photo-cut)), calc(100% - var(--photo-cut)) 100%, 0 100%, 0 var(--photo-cut)); }
.lab-frame .lab-image img { transition: transform .25s; }
.photo-frame { --photo-cut: clamp(18px, 2vw, 32px); position: relative; isolation: isolate; clip-path: polygon(0 0, calc(100% - var(--photo-cut)) 0, 100% var(--photo-cut), 100% 100%, var(--photo-cut) 100%, 0 calc(100% - var(--photo-cut))); }
.photo-frame::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 1px var(--accent); background: linear-gradient(225deg, var(--accent) 0 calc(var(--photo-cut) * .7071 + 2px), transparent calc(var(--photo-cut) * .7071 + 2px)) top right / calc(var(--photo-cut) + 4px) calc(var(--photo-cut) + 4px) no-repeat, linear-gradient(45deg, var(--accent) 0 calc(var(--photo-cut) * .7071 + 2px), transparent calc(var(--photo-cut) * .7071 + 2px)) bottom left / calc(var(--photo-cut) + 4px) calc(var(--photo-cut) + 4px) no-repeat; }

/* Independent position, length and mark cycles give each frame a varied perimeter. */
.cyber-frame, .photo-frame, .film-frame { --mark-top: 12%; --mark-bottom: 76%; --mark-left: 62%; --mark-right: 28%; --mark-long: 108px; --mark-short: 28px; --edge-marks: linear-gradient(var(--accent), var(--accent)); }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(5n + 2) { --mark-top: 66%; --mark-bottom: 22%; --mark-left: 24%; --mark-right: 70%; }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(5n + 3) { --mark-top: 36%; --mark-bottom: 84%; --mark-left: 78%; --mark-right: 42%; }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(5n + 4) { --mark-top: 78%; --mark-bottom: 42%; --mark-left: 36%; --mark-right: 82%; }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(5n) { --mark-top: 24%; --mark-bottom: 58%; --mark-left: 48%; --mark-right: 16%; }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(3n + 2) { --mark-long: 76px; --mark-short: 40px; }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(3n) { --mark-long: 92px; --mark-short: 20px; }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(4n + 2) { --edge-marks: repeating-linear-gradient(120deg, var(--accent) 0 4px, transparent 4px 8px); }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(4n + 3) { --edge-marks: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 20px); }
:is(.cyber-frame, .photo-frame, .film-frame):nth-child(4n) { --edge-marks: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 7px); }
.cyber-frame::before, .photo-frame::after, .film-frame::after { background: var(--edge-marks) var(--mark-top) top / var(--mark-long) 3px no-repeat, linear-gradient(var(--accent), var(--accent)) right 18px top / 22px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) right var(--mark-right) / 3px var(--mark-short) no-repeat, var(--edge-marks) var(--mark-bottom) bottom / var(--mark-long) 3px no-repeat, linear-gradient(var(--accent), var(--accent)) left 18px bottom / 22px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) left var(--mark-left) / 3px var(--mark-short) no-repeat; }
.photo-frame::after, .film-frame::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Clip the paper behind the content, so text and keyboard focus are never cropped. */
.studio-content, .detail-body>.project-description, .lab-body, .legal-body, .awards, .work-section>.lead {
  position: relative; isolation: isolate; color: var(--ink);
}
:is(.studio-content, .detail-body>.project-description, .lab-body, .legal-body, .awards, .work-section>.lead)::before {
  --paper-cut: clamp(20px, 2.5vw, 36px);
  content: ''; position: absolute; inset: var(--paper-top, -20px) -20px -20px; z-index: -1; pointer-events: none; background: var(--paper);
  clip-path: polygon(0 0, calc(100% - var(--paper-cut)) 0, 100% var(--paper-cut), 100% 100%, var(--paper-cut) 100%, 0 calc(100% - var(--paper-cut)));
}
.lab-body, .legal-body { --paper-top: 20px; }
.section-heading {
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 20px var(--paper);
}
.studio-content, .detail-body, .lab-body, .legal-body, .contact-grid { padding-bottom: 24px; }
.card-caption { background: var(--ink); padding-bottom: 12px; }
.cyber-frame .card-caption :is(h3, h4), .cyber-frame .card-caption p, .lab-frame :is(h3, h4) { color: #fff; }
.lab-frame :is(h3, h4) { background: var(--ink); padding-bottom: 12px; }
.external-film { background: var(--paper); color: var(--ink); }
.film-note { color: var(--muted); }

/* A small animated GIF occupies the reserved image area until the image settles. */
:is(.card-image, .lab-image, .detail-cover, .project-gallery figure, .studio-photo) { position: relative; }
.media-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.media-loader::before { content: ''; width: 48px; height: 48px; border-radius: 50%; background: #fff url('image-loading.gif') center / 32px 32px no-repeat; box-shadow: 0 0 0 1px #0000000d; }
@media (prefers-reduced-motion: reduce) {
  .media-loader::before { width: 30px; height: 30px; background: #fff; border: 3px solid #d9d9d9; border-top-color: var(--accent); box-shadow: none; }
}

@media (max-width: 1000px) {
  .main-nav { gap: 22px; }

  .intro-row { gap: 36px; }
  .detail-body, .studio-content { gap: 40px; }
  .awards>div { gap: 24px; }
  .award-logo { flex-basis: calc((100% - 48px) / 3); height: 190px; }
}
@media (max-width: 700px) {
  .contrast-panel .page-intro, .contrast-panel .detail-header { padding: 30px 0 36px; }
  .hero-subtitle { margin-top: 24px; }
  .reality-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
  .reality-button { padding: 12px; }
  .cyber-frame>a { padding: 4px 4px 12px; }
  .legal-body { padding-top: 32px; }
  :root { --title: 1.25rem; --space: 22px; }
  .site-header { height: auto; min-height: 88px; padding: 20px 0; flex-wrap: wrap; gap: 0; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-wordmark { font-size: var(--body); }
  .main-nav { flex-basis: 100%; flex-wrap: wrap; gap: 24px; padding-top: 20px; }
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .hero { padding: 24px 0 36px; }
  .hero-kicker { gap: 16px; align-items: flex-start; }
  .hero-kicker .eyebrow { font-size: .75rem; }
  .hero-kicker>.eyebrow:last-child { white-space: nowrap; }
  .circuit-background { opacity: .78; --circuit-main-width: 5; --circuit-bed-width: 10; }
  .circuit-panel { opacity: .65; }
  .hero-main { padding: 34px 0 10px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.25rem); }
  .work-section { padding-top: 40px; }
  .section-title, .section-heading h3, .home-topics h3, .studio-section-title { font-size: var(--section); }
.section-heading { align-items: flex-start; gap: 16px; padding-bottom: 22px; }
  .section-heading h3, .home-topics h3 { font-size: var(--title); }
  .section-heading .text-link { gap: 12px; white-space: nowrap; }
  .project-grid, .home-projects, .lab-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-image { aspect-ratio: 1.4; }
  .card-caption { padding: 9px 6px 0; }
  .feature-section, .site-footer { margin-top: 56px; }
  .home-approach { margin-top: 32px; }
  .home-approach h3 { font-size: 1.5rem; white-space: normal; }
  .client-section { margin-top: 32px; }
  .home-topics+.lab-section { margin-top: 16px; }
  .home-topics { padding-block: 20px 28px; }
  .section-band { padding: 28px 0; }
  .page-intro, .detail-header { padding-top: 28px; }
  .page-intro { padding-bottom: 36px; }
  .page-intro>.eyebrow { margin-bottom: 22px; }
  .page-intro::before, .detail-header::before, .legal-page>header::before { margin-bottom: 22px; }
  .intro-row { grid-template-columns: 1fr; gap: 24px; }
  .intro-copy { max-width: none; justify-self: start; padding: 0; }
  .detail-header { padding-bottom: 28px; }
  .back-link { margin-bottom: 24px; }
  .detail-body, .studio-content { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .project-meta { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 24px; }
  .project-meta dl+dl { margin-top: 0; }
  .project-tags { flex-basis: 100%; margin-top: 0; }
  .project-videos, .project-gallery, .studio-section-photo { margin-top: 32px; }
  .external-film { min-height: 300px; padding: 28px 20px; }
  .project-gallery { grid-template-columns: 1fr; gap: 20px; }
  .other-projects { margin-top: 40px; }
  .other-projects-heading { padding-block: 24px; }
  .other-project-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .studio-content { padding-top: 0; margin-top: 32px; }
  .awards { margin-top: 40px; }
  .awards>div { gap: 20px; }
  .award-logo { flex-basis: calc((100% - 20px) / 2); height: 150px; }
  .contact-grid { padding-top: 24px; }
  .contact-grid-with-locations { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-locations { padding: 18px; }
  .footer-cta { padding-block: 36px; }
  .footer-cta-title { font-size: var(--section); }
  .footer-bottom-content { gap: 20px; }
  .footer-bottom-content>div { flex-basis: 100%; justify-content: space-between; }
}
@media (max-width: 370px) {
  :root { --space: 18px; }
  .section-title, .section-heading h3, .home-topics h3, .studio-section-title { font-size: var(--section); }
.section-heading { flex-wrap: wrap; }
  .hero h1 { font-size: 11.8vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.client-track), *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { border: 0; }
  .circuit-surface { display: none; }
  .site-header, .site-footer, .project-videos, .back-link, .back-to-top { display: none; }
  .hero-shell, .contrast-panel, .section-band { background: #fff; color: #000; }
  .client-track { animation: none !important; transform: none; width: 100%; }
  .client-group { flex-wrap: wrap; width: 100%; }
  .client-group[aria-hidden] { display: none !important; }
  .client-group img { filter: brightness(0); }
  .hero-shell::before, .hero-shell::after, .contrast-panel::before, .contrast-panel::after { display: none; }
  .hero-highlight { color: #000; }
  .wrap { width: 100%; }
  h1 { font-size: 32pt; }
  .detail-body { display: block; }
  .project-meta { margin-bottom: 28px; background: #fff; color: #000; border: 1px solid #000; }
  a { text-decoration: underline; }
  img { break-inside: avoid; }
}

/* Invert only while pressed; hovering never changes media or frame colours. */
.cyber-frame>a:active { background: repeating-linear-gradient(0deg, transparent 0 31px, #00000008 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #00000008 31px 32px), #fff; color: #0a0a0a; }
.cyber-frame>a:active .card-caption,
.cyber-frame>a:active :is(h3, h4, .subtitle) { background: #fff; color: #0a0a0a; }
.cyber-frame>a:active::after { background: repeating-linear-gradient(90deg, #0a0a0a 0 2px, transparent 2px 6px); }
.cycling-word>[data-cycle-alternate] { display: inline-grid; }
.cycling-word>[data-cycle-alternate]::after { content: attr(data-cycle-alternate); grid-area: 1 / 1; height: 0; visibility: hidden; }



/* Shared full-width heading bands, with equal space before their thumbnails. */
.featured-section { margin-top: 24px; background: transparent; }
.featured-section>.home-projects { padding-top: 32px; }
.footer-cta-content { display: flex; flex-direction: column; align-items: flex-start; }
.footer-cta-button { align-self: flex-end; margin-top: 28px; background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-cta:is(:hover, :focus-visible) .footer-cta-button { background: #fff; border-color: #fff; color: var(--ink); }
.footer-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (min-width: 701px) {
  .studio-half { width: min(calc((100% - var(--space)*2 - 32px)/2), calc((var(--max) - 32px)/2)); }
  .studio-services { margin-left: max(var(--space), calc((100% - var(--max))/2)); margin-right: auto; }
  .studio-outputs { margin-right: max(var(--space), calc((100% - var(--max))/2)); margin-left: auto; }
}

/* Keep clipping on the artwork, not the outer surface, so shadows can escape. */
.cyber-frame { clip-path: none; background: transparent; filter: drop-shadow(0 6px 5px #00000038) drop-shadow(0 22px 18px #00000048); }
.cyber-frame::before { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.lab-frame::before { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.photo-frame { --frame-outline: polygon(0 0, calc(100% - var(--photo-cut)) 0, 100% var(--photo-cut), 100% 100%, var(--photo-cut) 100%, 0 calc(100% - var(--photo-cut))); clip-path: none; overflow: visible; background: transparent; filter: drop-shadow(0 6px 5px #00000038) drop-shadow(0 22px 18px #00000048); }
.photo-frame>img, .photo-frame::before, .photo-frame::after { clip-path: var(--frame-outline); }
.project-gallery .photo-frame { background: transparent; }
.film-frame { box-shadow: 0 6px 10px #00000038, 0 24px 36px #00000048; }
.contact-form-frame { isolation: isolate; clip-path: none; background: transparent; filter: drop-shadow(0 6px 5px #00000038) drop-shadow(0 22px 18px #00000048); }
.contact-form-frame::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: polygon(0 0, calc(100% - var(--contact-cut)) 0, 100% var(--contact-cut), 100% 100%, var(--contact-cut) 100%, 0 calc(100% - var(--contact-cut))); }
.home-approach h3 { width: fit-content; max-width: 100%; padding: .2em .3em; background: var(--ink); color: #fff; }
.home-approach h3 .approach-accent { color: var(--accent); }
.footer-cta { padding-bottom: 76px; }
.footer-cta-button { position: absolute; right: 16px; bottom: 16px; margin: 0; padding: 8px 12px; min-height: 40px; font-size: .75rem; }

/* Raised paper panels use their clipped backing as the shadow silhouette. */
.studio-content, .detail-body>.project-description, .lab-body, .legal-body, .awards, .home-approach { filter: drop-shadow(0 6px 5px #00000030) drop-shadow(0 22px 18px #00000040); }
.home-approach { overflow: visible; }
.approach-field, .approach-instruments { --accent: #555; }
.footer-cta-button { right: auto; left: 16px; min-height: 52px; padding: 13px 18px; border: 1px solid #727272; border-left: 3px solid var(--accent); background: #161616; color: #fff; font: 700 var(--small)/1.5 var(--sans); letter-spacing: .025em; text-transform: uppercase; }
.footer-cta:is(:hover, :focus-visible) .footer-cta-button { border-left-color: var(--accent); }
.footer-cta { padding-bottom: 92px; }

.footer-cta-button { left: max(var(--space), calc((100% - var(--max))/2)); }

/* Studio editorial pairs and reusable photographic slideshows. */
.studio-photo-slot { margin-top: 40px; }
.studio-slideshow { margin: 0; }
.studio-slide img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: var(--frame-outline); }
.studio-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; margin-top: 64px; align-items: center; }
.studio-pair>.studio-content, .studio-pair>.studio-photo-slot { width: 100%; margin: 0; min-width: 0; }
.studio-pair-reverse>.studio-photo-slot { grid-column: 1; grid-row: 1; }
.studio-pair-reverse>.studio-content { grid-column: 2; grid-row: 1; }
.studio-trivia .prose { max-width: none; width: 100%; }
.history-back { right: max(82px, calc(env(safe-area-inset-right) + 64px)); }
.cyber-frame, .photo-frame, .contact-form-frame, .studio-content, .detail-body>.project-description, .lab-body, .legal-body, .awards, .home-approach { filter: drop-shadow(0 10px 8px #0005) drop-shadow(0 28px 20px #0006); }
.film-frame, .section-band, .other-projects-heading { box-shadow: 0 10px 12px #0004, 0 26px 34px #0005; position: relative; z-index: 1; }
@media (max-width: 700px) {
  .studio-pair { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .studio-pair-reverse>.studio-content, .studio-pair-reverse>.studio-photo-slot { grid-column: auto; grid-row: auto; }
}

.footer-bottom-content { justify-content: flex-start; gap: 12px; }
.footer-legal { font: 800 var(--body)/1 var(--sans); white-space: nowrap; color: var(--ink); }

/* One cut-corner surface contains each editorial pair. */
.studio-panel { position: relative; isolation: isolate; padding: clamp(22px, 3vw, 40px); gap: clamp(24px, 3vw, 40px); filter: drop-shadow(0 10px 8px #0005) drop-shadow(0 28px 20px #0006); }
.studio-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); border-top: 3px solid var(--accent); }
.studio-panel>.studio-content, .studio-panel .studio-slideshow { filter: none; padding: 0; }
.studio-panel>.studio-content::before, .studio-panel .studio-slideshow::before, .studio-panel .studio-slideshow::after { content: none; }
.studio-panel .studio-slide img { clip-path: none; }
.studio-trivia-panel .studio-slide img { aspect-ratio: 2 / 1; object-fit: contain; }

/* Broad low-contrast shapes keep the homepage copy legible during motion. */
.approach-field { mask-image: none; }
.approach-panels { fill: #ececec; stroke: none; }
/* Images extend to the outside edges of each shared Studio panel. */
.studio-panel { padding: 0; gap: 0; align-items: stretch; }
.studio-panel>.studio-content { padding: clamp(24px, 3vw, 44px); align-self: center; }
.studio-panel>.studio-photo-slot { position: relative; min-height: 340px; margin-top: 3px; width: 100%; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 25px, 100% 100%, 0 100%); }
.studio-panel.studio-pair-reverse>.studio-photo-slot { clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.studio-panel .studio-slideshow, .studio-panel .studio-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-panel .studio-slide img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 700px) {
 .studio-panel>.studio-photo-slot, .studio-panel.studio-pair-reverse>.studio-photo-slot { min-height: 270px; margin-top: 0; clip-path: none; }
 .studio-panel:not(.studio-trivia-panel)>.studio-photo-slot { clip-path: polygon(0 0,100% 0,100% 100%,28px 100%,0 calc(100% - 28px)); }
 .studio-trivia-panel>.studio-photo-slot { margin-top: 3px; clip-path: polygon(0 0,calc(100% - 28px) 0,100% 25px,100% 100%,0 100%); }
}

.awards .awards-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.awards-grid .award-logo { width: 100%; height: 180px; }
.award-slot-empty { border: 1px dashed #d4d4d4; background: #f7f7f7; }
.awards-subtitle { margin-top: 16px; font-size: var(--lead); }
@media (max-width: 700px) { .awards .awards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } .awards-grid .award-logo { height: 140px; } }
.awards-grid .award-logo img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.award-card { margin: 0; min-width: 0; }
.awards-grid .award-logo { padding: 16px; border-radius: 12px; background: #fff; }
.awards-grid .award-logo img { filter: none; }
.awards-grid .award-logo-dark img { filter: invert(1); }
.awards-grid .award-logo-fwa img { transform: scale(.65); }

@media (max-width: 700px) {
 .studio-trivia-panel>.studio-photo-slot { margin-top: 0; clip-path: polygon(0 0,100% 0,100% 100%,28px 100%,0 calc(100% - 28px)); }
}

.contact-legal { margin-top: 32px; }
.contact-legal p { font-size: var(--small); line-height: 1.65; max-width: 48ch; margin-top: 12px; }

/* Language choice shares the copyright and terms row. */
.language-switch { font: 800 var(--body)/1 var(--sans); white-space: nowrap; color: var(--ink); text-decoration: none; }
.language-switch:focus-visible { outline-offset: 4px; }
html[lang="pl"] .hero h1 { font-size: clamp(30px, 7vw, 112px); }

.client-group img.client-color { filter: none; }

.service-intro h1 { max-width: 22ch; }
.service-intro .service-description { max-width: 70ch; margin: 24px 0; }

.service-tag-cloud { align-items: center; }
.service-tag-cloud .tag-cloud-heading { margin: 0; padding: 8px 14px; border: 1px solid #fff; background: #fff; color: var(--accent); font: 800 var(--small)/1.5 var(--sans); letter-spacing: .035em; white-space: nowrap; }
