/* 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;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; border-top: 4px solid var(--accent); 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: relative; background: var(--paper); }
.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, #f00 0 13%, transparent 13% 15%, #f00 15% 15.5%, transparent 15.5% 61%, #4a4a4a 61% 76%, transparent 76% 78%, #f00 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-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; }
.card-image>img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.project-card a:hover .card-image>img { transform: scale(1.018); }
.card-caption { display: flex; justify-content: space-between; gap: 20px; padding: 10px 7px 0; }
.card-caption h3, .lab-grid h2, .lab-grid h3 { 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); }
.home-projects .card-image { aspect-ratio: 2.05; }
.feature-section { margin-top: 88px; background: var(--paper); color: var(--ink); }
.lab-section { background: transparent; }
.client-section+.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-heading { padding-bottom: 0; }
.section-band .section-heading .eyebrow { margin-bottom: 12px; }
.lab-section>.lab-grid { padding-top: 32px; }
.client-section { overflow: hidden; }
.client-marquee { overflow: hidden; padding: 32px 0; }
.client-track { display: flex; width: max-content; animation: client-drift 180s linear infinite; }
.client-group { display: flex; flex: 0 0 auto; align-items: center; gap: 52px; padding: 0 26px; }
.client-group>li { width: 264px; height: 176px; display: grid; place-items: center; }
.client-group img { width: 240px; max-width: 100%; max-height: 160px; object-fit: contain; filter: brightness(0); }
@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 a:hover .lab-image { border-color: var(--accent); }
.lab-grid h2, .lab-grid h3 { margin-top: 20px; }
.lab-feature { grid-template-columns: minmax(0, 1fr); }
.lab-feature .lab-image { aspect-ratio: 2.05; }

/* 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, #f00 0 68%, transparent 68% 74%, #0a0a0a 74% 95%, transparent 95% 97%, #f00 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(--line); font: 700 var(--small)/1.5 var(--sans); }
a[rel="tag"] { text-transform: uppercase; }
.tag-cloud a:hover, .tag-cloud a:focus-visible { border-color: var(--accent); }
.tag-cloud a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.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%; }
.film-actions { display: flex; justify-content: flex-end; padding: 8px 4px 0; }
.film-actions a { color: #fff; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.film-actions a:hover { text-decoration-color: #fff; }
/* 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; }
.other-project-thumbnail:hover .card-image>img, .other-project-thumbnail:focus-visible .card-image>img { transform: scale(1.018); }
.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: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; align-items: center; justify-items: center; margin-top: 36px; }
.awards img { width: 100%; max-width: 210px; height: 145px; object-fit: contain; filter: brightness(0); }

/* Contact and legal surfaces use the same type and spacing tokens. */
.contact-grid { border-top: 2px solid var(--ink); padding-top: 48px; }
.contact-form label { display: block; margin-bottom: 24px; }
.contact-form input:not([type=hidden]), .contact-form textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid #808080; border-radius: 0; padding: 12px 0; background: transparent; font-family: var(--reading); font-size: var(--body); margin-top: 6px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.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; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { padding: 24px; margin-bottom: 24px; border: 1px solid var(--ink); }
.form-feedback h2 { 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 { 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-content>a { 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 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; }
/* 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, #f00 0 68%, transparent 68% 74%, #fff 74% 95%, transparent 95% 97%, #f00 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 h3, .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:hover, .cyber-frame:focus-within { background: linear-gradient(135deg, #666, var(--accent)); }
.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 #f00; background: linear-gradient(135deg, #f00 0 14px, transparent 14px) top left / 28px 28px no-repeat, linear-gradient(-135deg, #f00 0 14px, transparent 14px) top right / 28px 28px no-repeat, linear-gradient(45deg, #f00 0 14px, transparent 14px) bottom left / 28px 28px no-repeat, linear-gradient(-45deg, #f00 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, #f00 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 h2, .lab-frame h3 { position: relative; margin: 0; padding: 12px 10px 2px 18px; color: #fff; }
.lab-frame h2::before, .lab-frame h3::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; }
.lab-frame>a:hover .lab-image img, .lab-frame>a:focus-visible .lab-image img { transform: scale(1.018); }
.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, .contact-grid, .awards, .work-section>.lead {
  position: relative; isolation: isolate; color: var(--ink);
}
:is(.studio-content, .detail-body>.project-description, .lab-body, .legal-body, .contact-grid, .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, .contact-grid { --paper-top: 20px; }
.tag-cloud, .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 h3, .cyber-frame .card-caption p, .lab-frame h2, .lab-frame h3 { color: #fff; }
.lab-frame h2, .lab-frame h3 { 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, .contact-grid { gap: 40px; }
  .awards>div { gap: 24px; }
}
@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-heading { align-items: flex-start; gap: 16px; padding-bottom: 22px; }
  .section-heading h2 { 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; }
  .home-projects .card-image, .lab-feature .lab-image, .card-image { aspect-ratio: 1.4; }
  .card-caption { padding: 9px 6px 0; }
  .feature-section, .site-footer { margin-top: 56px; }
  .client-section+.lab-section { margin-top: 16px; }
  .section-band { padding: 28px 0; }
  .client-group { gap: 32px; padding-inline: 16px; }
  .client-group>li { width: 208px; height: 148px; }
  .client-group img { width: 196px; max-height: 132px; }
  .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 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .awards img { height: 115px; }
  .contact-grid { padding-top: 32px; }
  .footer-cta { padding-block: 36px; }
  .footer-cta-content>a { 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-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 { 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; }
}
