/* ══════════════════════════════════════════════════════════════
   Opus divisions: design layer
   Loaded after site.css and tailwind.css. site.css swaps the colours
   per <html data-brand>; this file swaps everything else the Opus
   brand system assigns to a division: display typeface, corner
   radius, button shape, the accent's text role, the cube pattern and
   the homepage section order. Source: Opus brand system v1.0
   (D:\Docs\opus-brands, site/<division>.html).
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Division tokens ─────────────────────────────────────── */
html[data-brand="structure"] {
  --f-display: 'Bitter', Georgia, serif;
  --fw-display: 700;
  --fs-display: normal;
  --ls-display: -.02em;
  --lh-hero: .98;
  --tt-display: none;
  --r-control: 2px;
  --r-card: 2px;
  --r-icon: 2px;
  --r-field: 2px;
  --tt-button: none;
  --ls-button: .01em;
  --accent-ink: #c2412f;                 /* coral deepened until it reads as text on cream */
  --accent-on-primary: color-mix(in srgb, var(--c-accent) 75%, #fff);  /* coral on teal is 2.7:1; this is 3.6:1 */
  --f-label: 'Inter', system-ui, sans-serif;
}
html[data-brand="tech"] {
  --f-display: 'Sora', system-ui, sans-serif;
  --fw-display: 700;
  --fs-display: normal;
  --ls-display: -.035em;
  --lh-hero: .96;
  --tt-display: none;
  --r-control: 8px;
  --r-card: 10px;
  --r-icon: 8px;
  --r-field: 8px;
  --tt-button: none;
  --ls-button: 0;
  --accent-ink: var(--c-primary);
  --accent-on-primary: color-mix(in srgb, var(--c-accent) 55%, #fff);
  --f-label: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
html[data-brand="studio"] {
  --f-display: 'Instrument Serif', Georgia, serif;
  --fw-display: 400;
  --fs-display: italic;
  --ls-display: -.02em;
  --lh-hero: .92;
  --tt-display: none;
  --r-control: 0;
  --r-card: 0;
  --r-icon: 0;
  --r-field: 0;
  --tt-button: none;
  --ls-button: .01em;
  --accent-ink: var(--c-primary);
  --accent-on-primary: var(--c-accent);
  --f-label: 'Inter', system-ui, sans-serif;
}
html[data-brand="print"] {
  --f-display: 'Urbanist', system-ui, sans-serif;
  --fw-display: 800;
  --fs-display: normal;
  --ls-display: -.015em;
  --lh-hero: .9;
  --tt-display: uppercase;
  --r-control: 4px;
  --r-card: 4px;
  --r-icon: 4px;
  --r-field: 4px;
  --tt-button: uppercase;
  --ls-button: .07em;
  --accent-ink: var(--c-primary);
  --accent-on-primary: var(--c-paper);
  --f-label: 'Inter', system-ui, sans-serif;
}

/* ── 2. Typography ──────────────────────────────────────────── */
html[data-brand] .font-display {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-style: var(--fs-display);
  letter-spacing: var(--ls-display);
}
html[data-brand] :is(h1, h2).font-display,
html[data-brand] h1 .font-display,
html[data-brand] #main h1 {
  text-transform: var(--tt-display);
}
html[data-brand] #main h1 { line-height: var(--lh-hero); font-family: var(--f-display); font-weight: var(--fw-display); font-style: var(--fs-display); letter-spacing: var(--ls-display); }

/* Studio's serif has a small x-height: set its display a step larger so
   it carries the same weight on the page as the other divisions. */
html[data-brand="studio"] #main h1 .hero-line { font-size: clamp(4rem, 11.5vw, 8.75rem); }
html[data-brand="studio"] .font-display.text-\[clamp\(2rem\2c 4vw\2c 3rem\)\],
html[data-brand="studio"] h2.font-display { font-size: clamp(2.4rem, 4.8vw, 3.75rem); line-height: 1.02; }
/* Print sets its hero in capitals; bring the size down so long words fit. */
html[data-brand="print"] #main h1 .hero-line { font-size: clamp(3rem, 8.6vw, 6.75rem); }

/* Section eyebrows: Tech labels read like code; everyone else keeps Inter. */
html[data-brand] [class*="tracking-[.2em]"] { font-family: var(--f-label); }
html[data-brand="tech"] [class*="tracking-[.2em]"] { letter-spacing: .08em; }

/* ── 3. Shape ───────────────────────────────────────────────── */
/* Buttons, chips and pills: anything round that also carries padding. */
html[data-brand] :is(a, button, span, label)[class*="px-"].rounded-full,
html[data-brand] .filter-btn,
html[data-brand] .skip-link {
  border-radius: var(--r-control);
}
html[data-brand] :is(a, button)[class*="px-"].rounded-full,
html[data-brand] .submit-btn {
  text-transform: var(--tt-button);
  letter-spacing: var(--ls-button);
}
html[data-brand] .rounded-2xl,
html[data-brand] .rounded-3xl { border-radius: var(--r-card); }
html[data-brand] .rounded-xl  { border-radius: var(--r-icon); }
html[data-brand] .field       { border-radius: var(--r-field); }
html[data-brand] .live-card:focus-visible,
html[data-brand] .site-card:focus-visible,
html[data-brand] .work-card:focus-visible,
html[data-brand] .project-card:focus-visible { border-radius: var(--r-card); }

/* The brand system has one illustration style, the cube field. The old
   outlined circles go everywhere. */
html[data-brand] section .pointer-events-none > div.rounded-full,
html[data-brand] section > div.rounded-full.pointer-events-none { display: none; }

/* Studio: hairlines instead of filled card edges. */
html[data-brand="studio"] .service-card,
html[data-brand="studio"] .live-card { box-shadow: inset 0 0 0 1px rgba(26,26,26,.08); }
/* Print: the emphasis rule, a 3px bar in the primary along the top. */
html[data-brand="print"] .service-card,
html[data-brand="print"] .live-card { box-shadow: inset 0 3px 0 var(--c-primary); }

/* ── 4. Colour roles that change per division ───────────────── */
/* The accent as small text on cream or white: only strong enough for
   Structure's coral (deepened). Everyone else sets it in the primary.
   <body> is itself .bg-cream, so "on a light surface" is written as
   "not inside a dark or accent surface". */
html[data-brand] .text-coral:not(:is(.bg-teal, .bg-dark, .bg-coral, [class*="bg-teal/"], [class*="bg-dark/"], #main, footer, nav, #ecosystem-bar) *) {
  color: var(--accent-ink);
}
html[data-brand] .hover\:text-coral:not(:is(.bg-teal, .bg-dark, .bg-coral, #main, footer, nav) *):hover { color: var(--accent-ink); }
html[data-brand] .hover\:border-coral:not(:is(.bg-teal, .bg-dark, .bg-coral, #main, footer, nav) *):hover { border-color: var(--accent-ink); }
html[data-brand] [class*="bg-coral/10"].text-coral:not(:is(.bg-teal, .bg-dark, #main) *) {
  background: color-mix(in srgb, var(--c-primary) 10%, transparent);
  color: var(--c-primary);
}

/* Ink Red on ink or press red is under 4:1; lift it for small type. */
html:is([data-brand="print"], [data-brand="structure"]) :is(.bg-dark, footer, nav) .text-coral,
html[data-brand="print"] .bg-teal .text-coral {
  color: color-mix(in srgb, var(--c-accent) 62%, #fff);
}

/* Accent type sitting on a primary block (stat cards, the hero). */
html[data-brand] .bg-teal .text-coral { color: var(--accent-on-primary); }

/* Small badges on an accent fill: no translucent white plate, which
   costs contrast; a hairline outline instead. */
html[data-brand] .bg-coral span[class*="bg-white/"] {
  background: transparent !important;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* Secondary white text on the hero. Structure's deep teal carries 65%
   white; the lighter division primaries need 85% to stay above 4.5:1. */
html:not([data-brand="structure"]) #main [class*="text-white/65"] { color: rgba(255,255,255,.86); }
html:not([data-brand="structure"]) #main .marquee-inner { color: rgba(255,255,255,.86); }

/* The accent word in the hero, on the primary. */
html[data-brand] #main h1 .text-coral { color: var(--accent-on-primary); }
/* Print's ink red disappears on press red, so the word is printed as a
   block of ink red with paper type: a highlighter, not a colour. */
html[data-brand="print"] #main h1 .hero-line.text-coral {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-paper);
  padding: 0 .12em;
  font-style: normal;
}
html[data-brand="tech"] #main h1 .italic,
html[data-brand="print"] #main h1 .italic { font-style: normal; }

/* Type on accent fills. Signal Blue and Mint are too light for white
   text, so their fills carry dark type instead. */
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) .bg-coral.text-white,
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) .bg-coral .text-white,
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) .hover\:bg-coral:hover { color: var(--c-on-accent); }
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) .bg-coral [class*="text-white/"] {
  color: var(--c-on-accent);
}
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) .bg-coral [class*="border-white/"] {
  border-color: color-mix(in srgb, var(--c-on-accent) 40%, transparent);
}
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) .bg-coral .bg-white.text-coral { color: var(--c-primary); }
html:is([data-brand="structure"], [data-brand="tech"], [data-brand="studio"]) #cursor { background: var(--c-accent); }

/* ── 5. Cube field ──────────────────────────────────────────── */
/* Built by site.js into every page hero. Fills are variables, so the
   pattern recolours itself when the division changes. */
.hero-iso {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .2;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 88%);
          mask-image: linear-gradient(100deg, transparent 38%, #000 88%);
}
.hero-iso svg { width: 100%; height: 100%; display: block; }
.iso-a1 { fill: color-mix(in srgb, var(--c-accent) 62%, var(--c-paper)); }
.iso-a2 { fill: var(--c-accent); }
.iso-a3 { fill: color-mix(in srgb, var(--c-primary) 62%, var(--c-ink)); }
.iso-b1 { fill: var(--c-paper); }
.iso-b2 { fill: color-mix(in srgb, var(--c-primary) 82%, var(--c-paper)); }
.iso-b3 { fill: var(--c-ink); }
html[data-brand="studio"] .hero-iso { opacity: .14; }
html[data-brand="tech"]   .hero-iso { opacity: .16; }
/* The old big O watermark competes with the field: retire it. */
html[data-brand] #main svg.opacity-\[\.03\] { display: none; }

/* Tech: a blueprint grid behind the hero. */
html[data-brand="tech"] #main::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
/* Print: crop marks in the four corners of the hero. */
html[data-brand="print"] #main::before {
  content: ''; position: absolute; inset: 72px 24px 24px; z-index: 0; pointer-events: none;
  --m: rgba(245,242,235,.45);
  background:
    linear-gradient(var(--m), var(--m)) left 0 top 0 / 28px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 top 0 / 1px 28px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 top 0 / 28px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 top 0 / 1px 28px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 bottom 0 / 28px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 bottom 0 / 1px 28px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 bottom 0 / 28px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 bottom 0 / 1px 28px no-repeat;
}

/* ── 6. Homepage architecture ───────────────────────────────── */
/* The sections after the hero sit in .eco-flow and each division puts
   its own proof first: Tech the live sites, Studio what it makes,
   Print what it prints. Structure keeps the authored order. */
.eco-flow { display: flex; flex-direction: column; }
html:not([data-brand="structure"]) .eco-flow > * { order: 20; }

html[data-brand="tech"] #live-sites    { order: 1; }
html[data-brand="tech"] #services      { order: 2; }
html[data-brand="tech"] #tech-process  { order: 3; }
html[data-brand="tech"] #about         { order: 4; }
html[data-brand="tech"] #stats         { order: 5; }
html[data-brand="tech"] #cta           { order: 6; }

html[data-brand="studio"] #studio-disciplines { order: 1; }
html[data-brand="studio"] #about              { order: 2; }
html[data-brand="studio"] #cta                { order: 3; }

html[data-brand="print"] #print-catalogue { order: 1; }
html[data-brand="print"] #print-process   { order: 2; }
html[data-brand="print"] #about           { order: 3; }
html[data-brand="print"] #cta             { order: 4; }

/* Studio and Print replace the generic services grid with their own
   section; the group stats are Structure and Tech numbers. */
html:is([data-brand="studio"], [data-brand="print"]) #services,
html:is([data-brand="studio"], [data-brand="print"]) #stats { display: none !important; }

/* ── 7. Division sections ───────────────────────────────────── */
/* Tech: process */
.dv-steps { display: grid; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 768px)  { .dv-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dv-steps { grid-template-columns: repeat(4, 1fr); } }
.dv-step { background: var(--c-ink); padding: 2rem 1.75rem 2.25rem; }
.dv-step__n { font: 600 .75rem/1 var(--f-label); letter-spacing: .08em; color: var(--accent-on-primary); display: block; margin-bottom: 2.25rem; }
.dv-step h3 { margin-bottom: .6rem; }

/* Studio: disciplines list */
.dv-list { border-top: 1px solid rgba(26,26,26,.12); }
.dv-row { display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid rgba(26,26,26,.12); }
@media (min-width: 900px) { .dv-row { grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr); } }
.dv-row__n { font: 500 .8rem/1 var(--f-label); color: rgba(26,26,26,.64); font-variant-numeric: tabular-nums; }
.dv-row__name { font: italic 400 clamp(2rem, 4.6vw, 3.6rem)/1 'Instrument Serif', Georgia, serif; letter-spacing: -.02em; color: var(--c-ink); }
.dv-row__line { color: rgba(26,26,26,.68); font-size: .95rem; line-height: 1.55; grid-column: 2; }
@media (min-width: 900px) { .dv-row__line { grid-column: 3; } }
.dv-row::after { content: none; }
.dv-row:hover .dv-row__name { color: var(--c-primary); }

/* Print: catalogue and process */
.dv-cat { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .dv-cat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dv-cat { grid-template-columns: repeat(4, 1fr); } }
.dv-item { position: relative; background: var(--c-paper); padding: 2rem 1.5rem 1.6rem; border-radius: var(--r-card); }
.dv-item::before {
  content: ''; position: absolute; inset: 10px; pointer-events: none; --m: rgba(26,26,26,.35);
  background:
    linear-gradient(var(--m), var(--m)) left 0 top 0 / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 top 0 / 1px 12px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 top 0 / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 top 0 / 1px 12px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 bottom 0 / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 bottom 0 / 1px 12px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 bottom 0 / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 bottom 0 / 1px 12px no-repeat;
}
.dv-item__k { font: 700 .7rem/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); display: block; margin-bottom: 1.5rem; }
.dv-item h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; letter-spacing: .01em; margin-bottom: .55rem; color: var(--c-ink); }
.dv-item p { font-size: .9rem; line-height: 1.55; color: rgba(26,26,26,.68); }
.dv-cmyk { display: flex; height: 10px; width: 120px; border: 1px solid rgba(255,255,255,.35); }
.dv-cmyk i { flex: 1; }
.dv-flow { display: grid; gap: 1.25rem; counter-reset: dvs; }
@media (min-width: 768px)  { .dv-flow { grid-template-columns: repeat(5, 1fr); } }
.dv-flow li { list-style: none; border-top: 3px solid var(--c-accent); padding-top: 1.1rem; }
.dv-flow li::before { counter-increment: dvs; content: counter(dvs, decimal-leading-zero); display: block; font: 800 2.4rem/1 'Urbanist', sans-serif; color: var(--c-paper); margin-bottom: .9rem; }
.dv-flow b { display: block; font: 800 1.05rem/1.2 'Urbanist', sans-serif; text-transform: uppercase; letter-spacing: .02em; color: var(--c-paper); margin-bottom: .4rem; }
.dv-flow span { font-size: .875rem; line-height: 1.55; color: rgba(245,242,235,.72); }

/* Variant copy inside inline contexts must not break onto its own line. */
html[data-brand="structure"] [data-eco-only="structure"].dv-inline,
html[data-brand="tech"]      [data-eco-only="tech"].dv-inline,
html[data-brand="studio"]    [data-eco-only="studio"].dv-inline,
html[data-brand="print"]     [data-eco-only="print"].dv-inline { display: inline !important; }

@media (prefers-reduced-motion: reduce) {
  .dv-row:hover .dv-row__name { color: inherit; }
}

/* ── 8. Fixes found by the contrast audit ───────────────────── */
/* A white button on an accent fill: site.css's on-accent rule also
   caught its hover:text-white class and turned Print's label white on
   white. The label is the division primary, always. */
html[data-brand] .bg-coral .bg-white.text-coral { color: var(--c-primary); }
html[data-brand] .bg-coral .bg-white.text-coral:hover { color: #fff; }

/* The lit tab in the ecosystem bar is small text on the dark surface;
   the raw accent is under 4.5:1 for Structure and Print. */
html[data-brand] .eco-tab.active:not(.eco-tab--card) { color: color-mix(in srgb, var(--c-accent) 70%, #fff); }

/* The "Scroll" hint sits on top of the hero buttons when the window is
   shorter than the hero content. Drop it there; the page still scrolls. */
@media (max-height: 940px) {
  html[data-brand] #scroll-hint { display: none; }
}

/* Same 65% white problem on the inner pages' primary bands. */
html:not([data-brand="structure"]) .bg-teal [class*="text-white/65"] { color: rgba(255,255,255,.86); }
/* Accent chips on ink: the tinted plate lowers contrast, so lift the type. */
html[data-brand] .bg-dark [class*="bg-coral/"].text-coral { color: color-mix(in srgb, var(--c-accent) 68%, #fff); }

/* Contact form submit: an accent fill set with white type in the page
   (1.5:1 on Mint). Division type, division corners, on-accent label. */
html[data-brand] .submit-btn {
  color: var(--c-on-accent);
  border-radius: var(--r-control);
  font-family: var(--f-display);
  font-style: normal;
}
html[data-brand] .submit-btn:hover { color: #fff; }

/* ── 9. Projects (works.html grid + project-*.html pages) ───── */
/* One card per project. Each division shows its own face of the card,
   and a project with nothing for a division is not shown in it. */
.pj { position: relative; display: flex; flex-direction: column; }
.pj-face { display: none; }
html[data-brand="structure"] .pj-face[data-face="structure"],
html[data-brand="tech"]      .pj-face[data-face="tech"],
html[data-brand="studio"]    .pj-face[data-face="studio"],
html[data-brand="print"]     .pj-face[data-face="print"] { display: block; }
html[data-brand="tech"] span.pj-face[data-face="tech"] { display: flex; }
html[data-brand="tech"]   .pj:not(.has-web):not(.has-app),
html[data-brand="studio"] .pj:not(.has-studio),
html[data-brand="print"]  .pj:not(.has-print) { display: none !important; }

/* The whole card opens the project page; the live-site link sits above it. */
.pj-link { color: inherit; }
.pj-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pj-link:focus-visible { outline: none; }
.pj:has(.pj-link:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.pj-out { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--c-primary); }
.pj-out:hover { text-decoration: underline; text-underline-offset: 3px; }

.pj-facets { flex-wrap: wrap; gap: .4rem; }
html[data-brand="structure"] .pj-facets { display: flex; }
.pj-facets span { font-size: .75rem; font-weight: 600; padding: .35rem .7rem; border-radius: var(--r-control); background: rgba(26,26,26,.05); color: rgba(26,26,26,.72); }
.pj-foot { font-size: .8rem; color: rgba(26,26,26,.68); }
html[data-brand] .pj-foot { display: none; }
html[data-brand="tech"] .pj-foot[data-face="tech"],
html[data-brand="studio"] .pj-foot[data-face="studio"],
html[data-brand="print"] .pj-foot[data-face="print"] { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }

/* No screenshot yet: name set in type on the primary, flat. */
.pj-type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; padding: 1.4rem; background: var(--c-primary); color: #fff; }
.pj-type span { font-family: var(--f-display); font-weight: var(--fw-display); font-style: var(--fs-display); font-size: 1.6rem; line-height: 1.05; }
.pj-type small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }

/* Tech: the app sits in a phone over the corner of the website. */
.pj-phone { position: absolute; right: 5%; top: 8%; height: 84%; width: auto; aspect-ratio: 9 / 19.5; border: 4px solid var(--c-ink); border-radius: 14px; overflow: hidden; background: var(--c-ink); box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); z-index: 1; }
.pj-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Studio: a three-up mosaic, first item large. */
.pj-mosaic { position: relative; aspect-ratio: 16 / 10; display: grid; gap: 3px; background: var(--c-ink); grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pj-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pj-mosaic--2 { grid-template-rows: 1fr; }
.pj-mosaic--3 > :first-child { grid-row: span 2; }
.pj-tile { position: relative; overflow: hidden; background: color-mix(in srgb, var(--c-primary) 70%, var(--c-ink)); }
.pj-tile img { width: 100%; height: 100%; object-fit: cover; }
.pj-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,242,235,.92); color: var(--c-ink); }
.pj-more { position: absolute; right: 10px; bottom: 10px; padding: .25rem .55rem; font-size: .75rem; font-weight: 700; background: rgba(26,26,26,.75); color: #fff; border-radius: var(--r-control); }

/* Print: pieces laid on a table, each labelled with what it is. */
.pj-table { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; gap: 5%; padding: 7% 6% 10%; background: color-mix(in srgb, var(--c-paper) 86%, var(--c-ink)); }
.pj-piece { position: relative; flex: 1 1 0; min-width: 0; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.pj-piece img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 14px 24px -14px rgba(0,0,0,.5); }
.pj-piece figcaption { position: absolute; left: 50%; bottom: -1.6rem; translate: -50% 0; white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(26,26,26,.7); }

.pj-empty { text-align: center; padding: 5rem 1rem 2rem; }
html[data-brand] .pj-empty { display: none; }
html[data-brand="tech"] .pj-empty[data-face="tech"],
html[data-brand="studio"] .pj-empty[data-face="studio"],
html[data-brand="print"] .pj-empty[data-face="print"] { display: block; }

/* Project page */
.pd-switch { display: flex; flex-wrap: wrap; gap: .6rem; }
.pd-switch .eco-tab.eco-tab--card { border-radius: var(--r-control); }
.pd-switch .eco-tab.eco-tab--card:not(.active) { color: #fff; background: rgba(255,255,255,.12); }
.pd-switch--light { justify-content: center; }
.pd-switch--light .eco-tab.eco-tab--card,
.pd-switch--light .eco-tab.eco-tab--card:not(.active) { background: var(--c-primary); color: #fff; }
.pd-browser { box-shadow: 0 30px 60px -30px rgba(var(--c-primary-rgb), .35); }
.pd-phones { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pd-phone { margin: 0; width: clamp(150px, 18vw, 230px); aspect-ratio: 9 / 19.5; border: 6px solid var(--c-ink); border-radius: 26px; overflow: hidden; background: var(--c-ink); box-shadow: 0 24px 40px -20px rgba(0,0,0,.45); }
.pd-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pd-gallery { columns: 3 260px; column-gap: 1rem; }
.pd-media { break-inside: avoid; margin: 0 0 1rem; }
.pd-media img, .pd-media video { width: 100%; display: block; border-radius: var(--r-card); background: #000; }
.pd-media figcaption { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: .5rem; }
.pd-print { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pd-piece { margin: 0; }
.pd-piece img { width: 100%; height: auto; display: block; }
.pd-piece figcaption { font-size: .85rem; color: rgba(26,26,26,.68); margin-top: .75rem; }
/* Nothing to filter when a division has no projects yet. */
html[data-brand="tech"]   #projects:has(.pj-empty[data-face="tech"]) #filter-bar,
html[data-brand="studio"] #projects:has(.pj-empty[data-face="studio"]) #filter-bar,
html[data-brand="print"]  #projects:has(.pj-empty[data-face="print"]) #filter-bar { display: none; }

/* Phone frames take the shape of the screenshot inside them, so a
   screenshot is never cropped, whatever phone it was taken on. */
.pj-phone { width: auto; aspect-ratio: auto; display: flex; }
.pj-phone img { height: 100%; width: auto; object-fit: contain; aspect-ratio: auto 9 / 19.5; }
.pd-phone { aspect-ratio: auto; height: auto; }
.pd-phone img { height: auto; display: block; object-fit: contain; aspect-ratio: auto 9 / 19.5; }
