.reference-wired {
  color-scheme: light;
  --ink: var(--color-ink);
  --light: var(--color-paper);
  --surface: var(--color-surface);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --page-gutter: clamp(21px, 5.4vw, 86px);
  color: var(--ink);
  background: var(--color-paper);
}
.reference-wired .frame { width: min(100%, 1480px); }
.reference-wired .site-header { background: var(--ink); color: var(--light); border: 0; }
.reference-wired .header-inner { min-height: var(--header-height); }
.reference-wired .brand { gap: 10px; }
.reference-wired .brand img:first-child { width: 43px; }
.reference-wired .brand img:last-child { width: 86px; }
.reference-wired .site-header nav { gap: clamp(15px, 3.2vw, 48px); }
.reference-wired .site-header nav a { color: inherit; font-size: var(--text-control); }

.brand-landing .site-header { --focus-ring: var(--color-focus); --nav-divider: var(--line); background: var(--light); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand-landing .brand img { filter: invert(1); }
.brand-landing .site-header nav { border-color: var(--line); }
.brand-landing #menu-toggle, .brand-landing .header-studio { color: var(--ink); }
.brand-landing .header-studio:hover { background: var(--surface); }
.brand-visual { width: 100%; margin-inline: auto; }
.brand-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: minmax(min-content, 1fr) auto / minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: #171310;
}
.brand-scene.has-video { padding-bottom: 56px; }
.brand-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #100d0a4d, transparent 29%), linear-gradient(90deg, #100d0ad9, #100d0ab3 27%, #100d0a99 38%, transparent 57%);
  pointer-events: none;
}
.brand-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-overlay { position: relative; z-index: 1; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.9vw, 42px); padding-block: 56px 66px; color: #fff; pointer-events: none; }
.brand-scene.has-caption .brand-overlay { padding-bottom: 24px; }
.brand-copy, .brand-signature { grid-row: 1; text-shadow: 0 1px 8px #0009; pointer-events: auto; }
.brand-signature { grid-column: 2; justify-self: center; }
:is(.brand-signature, .footer-brand) { display: grid; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
:is(.brand-signature, .footer-brand) img { width: clamp(83px, 7.8vw, 110px); height: auto; }
:is(.brand-signature, .footer-brand) p { font-size: var(--text-control); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.brand-copy { grid-column: 1; align-self: end; width: min(100%, 350px); font-size: var(--text-base); line-height: 1.7; }
.brand-copy h1 { margin-bottom: 8px; font: inherit; font-weight: 700; }
.brand-definition { display: grid; gap: 8px; }
.brand-copy h1, .brand-definition p { white-space: pre-line; overflow-wrap: anywhere; }
.brand-caption {
  z-index: 1;
  grid-area: 2 / 1;
  display: grid;
  justify-items: end;
  padding-bottom: 15px;
  color: #fff;
  font-size: var(--text-caption);
  line-height: 1.5;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.brand-caption span { max-width: 54ch; padding: 3px 8px; background: #100b08d9; }
.brand-landing #works { scroll-margin-top: 0; }

.reference-wired .section { padding-block: clamp(45px, 5vw, 74px); }
.reference-wired .section :is(h1, h2) { color: var(--ink); font-size: clamp(32px, 3.65vw, 55px); font-weight: 600; line-height: 1.18; }
.wired-works-bar { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding-block: var(--space-lg); margin-bottom: var(--space-xl); }
.reference-wired .filters { gap: var(--space-xs); }
.reference-wired .filters button { color: var(--ink); }
.reference-wired .filters button:hover { background: var(--surface); }
.reference-wired .filters button[aria-pressed="true"] { color: var(--light); background: var(--ink); border-color: var(--ink); }
.reference-wired .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(17px, 2.2vw, 32px); }
.reference-wired .work-grid[data-filtered="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reference-wired .work-item .still { height: auto; aspect-ratio: 16 / 9; background-size: 200% 200%; border: 0; }
.wired-story { display: grid; gap: var(--space-sm); padding-block: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--line); }
.wired-story-type { color: var(--muted); font-size: var(--text-caption); font-weight: 600; }
.wired-story strong { font-size: clamp(23px, 2.2vw, 34px); line-height: 1.2; }
.wired-story-lead { color: var(--muted); font-size: var(--text-reading); line-height: 1.62; }
.case-link:is(:hover, :focus-visible) .wired-story strong { text-decoration: underline; text-underline-offset: 5px; }
.reference-wired .services { background: var(--surface); border-color: var(--line); }
.reference-wired .service-list dd, .reference-wired .team-roles p, .reference-wired .contact-inner p { color: #454545; }
.reference-wired .team-specimen, .reference-wired .member-specimen h3, .reference-wired .member-specimen blockquote { color: var(--ink); }
.reference-wired .portrait-placeholder { background: var(--surface); border-color: var(--line); }
.reference-wired .contact { border-top: 1px solid var(--line); background: var(--surface); }
.reference-wired .contact-inner .contact-company { color: var(--ink); }
.reference-wired .site-footer { background: var(--ink); border-color: #333; }
.reference-wired .footer-inner { color: #dedede; }

.reference-wired .wired-article { width: min(100%, 1210px); padding-block: clamp(30px, 4.5vw, 66px); }
.case-context { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: clamp(23px, 4vw, 39px); }
.case-back { display: inline-flex; align-items: center; min-height: var(--control-height); font-size: var(--text-base); }
.case-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.wired-article header { padding-bottom: clamp(20px, 3vw, 32px); }
.wired-article h1 { font-weight: 600; font-size: clamp(34px, 5vw, 69px); line-height: 1.18; margin-block: var(--space-xs) var(--space-md); overflow-wrap: anywhere; }
.wired-article-intro { color: var(--muted); font-size: 17px; line-height: 1.6; }
.wired-article figure figcaption { color: var(--muted); font-size: var(--text-caption); margin-top: var(--space-sm); }
.wired-article-notes { width: min(100%, 630px); margin: 19px auto 0; }
.wired-article-notes section { border-top: 1px solid var(--line); padding-block: 14px 7px; }
.wired-article-notes h2 { font-size: 22px; font-weight: 600; }
.wired-article-notes p { margin-top: var(--space-xs); color: var(--muted); font-size: var(--text-reading); line-height: 1.66; }
.reference-wired .studio-heading h2 { color: var(--ink); }
.reference-wired .studio-nav { background: #f5f5f3; border-color: var(--line); }
.reference-wired .studio-nav button { color: #353535; border-radius: 0; }
.reference-wired .studio-nav button[aria-pressed="true"] { background: #171717; border-color: #171717; color: #fff; }
.reference-wired .project-body, .reference-wired .studio-row { color: #343434; }

@media (max-width: 720px) {
  .reference-wired .site-header nav { border-color: #333; }
  .brand-landing .site-header nav { border-color: var(--line); }
  .brand-scene::after { background: linear-gradient(180deg, #100d0a12, #100d0ab8 26%, #100d0a80 57%, transparent 98%), radial-gradient(ellipse at left 79%, #100d0abf, transparent 78%); }
  .brand-media[src^="/assets/hearth.webp?"] { object-position: 48% center; }
  .brand-overlay { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(min-content, 1fr) auto; gap: 26px; padding-block: 88px 52px; }
  .brand-scene.has-caption .brand-overlay { padding-bottom: 14px; }
  .brand-signature { grid-area: 1 / 1; }
  .brand-copy { grid-area: 2 / 1; width: min(100%, 215px); font-size: var(--text-control); }
  .reference-wired .work-grid, .reference-wired .work-grid[data-filtered="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .reference-wired .work-grid, .reference-wired .work-grid[data-filtered="true"] { grid-template-columns: 1fr; }
}

.reference-wired .header-studio { text-decoration: none; }
.reference-wired:not(.public-demo) .still { background-image: none; }
.story-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.public-empty-image { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #141414; color: #ededed; }
.empty-public { padding-block: 12px; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member { border-top: 1px solid #202020; padding-top: 13px; overflow-wrap: anywhere; }
.member-avatar { display: grid; place-items: center; width: 88px; height: 88px; object-fit: cover; margin-bottom: var(--space-md); background: var(--color-surface); color: var(--color-muted); font-size: 27px; }
.member h3 { font-size: 24px; font-weight: 600; line-height: 1.35; margin-block: var(--space-xs) var(--space-sm); }
.member p { line-height: 1.65; }
.member-bio { white-space: pre-wrap; margin-top: var(--space-sm); }
.member-works { list-style: none; margin: var(--space-md) 0 0; padding: 0; border-top: 1px solid var(--line); }
.member-works li { padding-top: var(--space-sm); }
.member-works a { font-weight: 600; }
.member-works p { color: var(--color-muted); font-size: var(--text-base); }
.member-works p, .member-work-intro { white-space: pre-wrap; overflow-wrap: anywhere; }
.member a, .contact a { display: inline-block; margin-top: 5px; text-decoration: underline; text-underline-offset: 3px; }
.contact-qr { width: 105px; margin-top: 8px; }
.wired-article .still { aspect-ratio: 16 / 9; }
.wired-article video { width: 100%; max-height: 74vh; display: block; background: #101010; }
.article-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.article-stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wired-article header p, .wired-article-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-studio { display: none; }
@media (max-width: 720px) { .mobile-studio { display: inline-flex; } }
@media (max-width: 620px) { .member-grid { grid-template-columns: 1fr; } }
