/* Sharjah Brand Knew — the look.
   Colors are the logo's: brown ink, olive flourish, orange caps, cream paper.
   Type: Cormorant Garamond for the voice, Jost for the small caps and controls.
   Work is shown matted, the way a framing client would expect.
   Scales from a phone to his 2560 screen; night mode follows the system. */

:root {
  --brown: #3c2415;
  --olive: #9da719;
  --orange: #f15a22;
  --orange-ink: #b33d0c;      /* orange for small text in daylight, reads at AA */
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #2b1a10;
  --mute: #7a685b;
  --line: rgba(60, 36, 21, .14);
  --mat: #fff;
  --shadow: 0 1px 2px rgba(60, 36, 21, .18), 0 10px 30px rgba(60, 36, 21, .08);
  --bg: var(--cream);
  --card: var(--paper);
  --text: var(--ink);
  --gutter: clamp(16px, 4vw, 72px);
  --maxw: 1680px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --r: 3px;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* the hero shuffle slides a photo out past the content edge; clip only at the window */
body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-size: clamp(18px, 1.05vw + 10px, 26px); line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* the small caps line that opens every section */
.kicker {
  font-family: var(--sans); font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  font-size: clamp(11px, .55vw + 6px, 15px); color: var(--orange-ink); margin-bottom: .9em;
}

/* header: a bar that stays, with the sections one tap away on any screen */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(10px, 1.1vw, 18px) var(--gutter); max-width: var(--maxw); margin: 0 auto;
}
.top-logo { display: block; line-height: 0; }
.top-logo img { width: clamp(104px, 8vw, 160px); height: auto; transition: width .25s; }
.top.scrolled .top-logo img { width: clamp(92px, 6.2vw, 124px); }
.top-nav, .top-tools { display: flex; gap: clamp(14px, 2vw, 36px); align-items: center; font-family: var(--sans); font-size: clamp(13px, .7vw + 6px, 17px); letter-spacing: .06em; text-transform: uppercase; }
.top-tools { gap: 12px; }
.top-nav a { text-decoration: none; opacity: .82; padding: .3em 0; border-bottom: 1.5px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current="true"] { opacity: 1; color: var(--orange-ink); }
.top-nav a[aria-current="true"] { border-bottom-color: currentColor; }
.top-nav .nav-contact { display: none; }
.nav-cta { border: 1.5px solid currentColor; border-radius: 999px; padding: .45em 1.1em; text-decoration: none; }
.nav-cta:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: inherit; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.top.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.top.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 840px) {
  .nav-toggle { display: flex; }
  .top-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 22px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(60, 36, 21, .12);
    font-size: 17px;
  }
  .top.open .top-nav { display: flex; }
  .top-nav a { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 0; opacity: 1; }
  .top-nav a[aria-current="true"] { border-bottom: 0; }
  .top-nav .nav-contact { display: block; color: var(--orange-ink); }
  .top-nav a:first-child { border-top: 0; }
}
@media (max-width: 420px) { .top-tools .nav-cta { display: none; } }
html { scroll-padding-top: 104px; }
@media (max-width: 840px) { html { scroll-padding-top: 88px; } }

/* the logo in the dark: on its own paper, never recolored */

/* hero: the words on the left, three prints on the right */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(32px, 5vw, 110px) var(--gutter) clamp(48px, 6vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 80px); align-items: center;
}
.hero-copy { display: grid; gap: 1.2em; }
.hero h1 { font-size: clamp(42px, 4.6vw, 112px); font-weight: 500; letter-spacing: -.01em; max-width: 14ch; }
.hero .lede, .hero .hero-actions { max-width: 46ch; }
.lede { font-size: clamp(19px, 1.25vw + 8px, 30px); line-height: 1.45; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: .4em; }
.hero-prints { position: relative; min-height: clamp(320px, 34vw, 640px); }
/* the stack shuffles like a pile of photos in your hand: the front one slides out clear of the pile,
   drops to the bottom while it is out, then slides back in underneath the others (app.js) */
.print { position: absolute; margin: 0; background: #fff; padding: 3.5% 3.5% 11%; box-shadow: 0 2px 4px rgba(60,36,21,.2), 0 16px 40px rgba(60,36,21,.16); width: var(--pw, 50%);
  transition-property: left, top, transform, translate; transition-duration: .9s; transition-timing-function: cubic-bezier(.45,.05,.2,1); }
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print.s0 { left: calc(50% - var(--pw, 50%) / 2 + 0%); top: calc(50% - var(--pw, 50%) * .45 + 0%); transform: rotate(1.5deg); z-index: 5; }
.print.s1 { left: calc(50% - var(--pw, 50%) / 2 + -3%); top: calc(50% - var(--pw, 50%) * .45 + -4%); transform: rotate(-2.5deg); z-index: 4; }
.print.s2 { left: calc(50% - var(--pw, 50%) / 2 + 3%); top: calc(50% - var(--pw, 50%) * .45 + -5%); transform: rotate(3deg); z-index: 3; }
.print.s3 { left: calc(50% - var(--pw, 50%) / 2 + -4%); top: calc(50% - var(--pw, 50%) * .45 + -1%); transform: rotate(-3.5deg); z-index: 2; }
.print.s4 { left: calc(50% - var(--pw, 50%) / 2 + 4%); top: calc(50% - var(--pw, 50%) * .45 + -2%); transform: rotate(3.5deg); z-index: 1; }
.print.out { transform: rotate(3deg); z-index: 9; transition-duration: .75s; transition-timing-function: cubic-bezier(.25,.6,.3,1); }
/* the hand spreads: the pile slides left while the front photo pulls right */
.hero-prints.spread .print:not(.out) { translate: calc(var(--spread, 0px) * -1) 0; }
.print.under { z-index: 0; transition-duration: .85s; transition-timing-function: cubic-bezier(.55,0,.3,1); }
@media (prefers-reduced-motion: reduce) { .print { transition: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-prints { min-height: 0; height: clamp(280px, 70vw, 420px); margin-top: 8px; }
}

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  font-size: clamp(13px, .65vw + 6px, 16px); background: var(--brown); color: #fff; text-decoration: none;
  padding: .95em 1.6em; border-radius: 999px; border: 1.5px solid var(--brown); cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn.ghost:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* brands strip: the dot lives in a clipped left margin, so a wrapped line never starts with one */
.brands { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 5vw, 90px); }
.brand-list { display: flex; flex-wrap: wrap; gap: .4em 0; margin-left: -1.6em; overflow: hidden; font-family: var(--sans); font-weight: 400; font-size: clamp(14px, .75vw + 6px, 19px); letter-spacing: .04em; color: var(--mute); }
.brand-list li { position: relative; padding-left: 1.6em; }
.brand-list li::before { content: "·"; position: absolute; left: .55em; color: var(--olive); }

/* sections */
section { max-width: var(--maxw); margin: 0 auto; padding: clamp(44px, 5vw, 100px) var(--gutter); }
.sec-head { max-width: 62ch; margin-bottom: clamp(26px, 3vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 3.4vw, 76px); margin-bottom: .35em; }
.sec-lede { font-size: clamp(18px, 1.05vw + 8px, 27px); line-height: 1.45; color: var(--text); opacity: .86; }
@media (min-width: 1800px) {
  .sec-head { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 6vw; align-items: end; }
  .sec-head .kicker { grid-column: 1 / -1; }
  .sec-head h2 { margin-bottom: 0; }
}

/* work cards: a mat, a print, a label */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 34px); }
@media (min-width: 1000px) { #work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { #fav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { #fav-grid { grid-template-columns: repeat(4, 1fr); } }
.work-card {
  position: relative; background: var(--mat); border: 1px solid var(--line); border-radius: var(--r); padding: 10px;
  box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; align-content: start; transition: transform .2s, box-shadow .2s;
}
.work-card:hover, .work-card:focus-within { transform: translateY(-3px); }
.work-card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.work-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work-card .pic img.contain { object-fit: contain; }
.work-card:hover .pic img { transform: scale(1.03); }
.work-card .meta { padding: 16px 10px 12px; display: grid; gap: .3em; align-content: start; grid-template-columns: minmax(0, 1fr); }
.work-card h3 { font-size: clamp(24px, 1.5vw + 8px, 38px); }
.work-card .stretch { all: unset; cursor: pointer; }
.work-card .stretch::after { content: ""; position: absolute; inset: 0; }
.work-card .stretch:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.work-card .what { font-family: var(--sans); font-size: clamp(13px, .7vw + 6px, 19px); letter-spacing: .03em; color: var(--mute); }
.work-card .place { font-family: var(--sans); font-size: clamp(11px, .5vw + 6px, 14px); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.work-grid-fav .work-card .pic { aspect-ratio: 16 / 10; }
.fav-head { margin: clamp(40px, 5vw, 90px) 0 clamp(18px, 2vw, 36px); max-width: 62ch; }
.fav-head .sec-lede { font-size: clamp(17px, .9vw + 7px, 24px); }

/* installations strip: full bleed, arrows, no grey track */
.strip-wrap { position: relative; margin-inline: calc(50% - 50vw); padding-inline: var(--gutter); }
.spaces-strip { display: flex; gap: clamp(12px, 1.5vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--olive) transparent; }
.spaces-strip img { flex: 0 0 auto; height: clamp(220px, 28vw, 520px); width: auto; border-radius: var(--r); scroll-snap-align: start; box-shadow: var(--shadow); }
.strip-btn { position: absolute; top: 50%; transform: translateY(-60%); width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--mat); color: var(--text); font-size: 22px; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.strip-btn[data-dir="prev"] { left: calc(var(--gutter) - 26px); }
.strip-btn[data-dir="next"] { right: calc(var(--gutter) - 26px); }
.strip-btn:hover { background: var(--olive); color: #17100b; border-color: var(--olive); }
@media (max-width: 720px) { .strip-btn { display: none; } }

/* new work grid: FictionVision leads, the rest fill the rows */
.new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 34px); }
@media (min-width: 700px) and (max-width: 1099px) { .new-grid { grid-template-columns: repeat(2, 1fr); } .new-card:first-child { grid-column: span 2; } }
@media (min-width: 1100px) and (max-width: 1499px) { .new-grid { grid-template-columns: repeat(3, 1fr); } .new-card:first-child { grid-column: span 3; } }
@media (min-width: 1500px) { .new-grid { grid-template-columns: repeat(4, 1fr); } .new-card:first-child { grid-column: span 2; grid-row: span 2; } }
.new-card { text-decoration: none; background: var(--mat); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; transition: transform .2s; }
.new-card[href]:hover, .new-card[href]:focus-visible { transform: translateY(-3px); }
.new-card .screen { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); position: relative; }
/* Amanda's panda sits where her hero mark sits in the shot (48,253 of 1200x750) and blinks */
.panda-live { position: absolute; left: 4%; top: 15%; width: 24%; aspect-ratio: 494.61 / 415.94; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.95)) drop-shadow(0 0 12px rgba(255,255,255,.45)); }
.panda-live .ear { transform-origin: 50% 100%; } .panda-live .stem { transform-origin: 50% 0%; }
.panda-live .panda:not(.still) .ear-l { opacity: 0; transform: translateY(-18%) rotate(-14deg); }
.panda-live .panda:not(.still) .ear-r { opacity: 0; transform: translateY(-18%) rotate(14deg); }
.panda-live .panda:not(.still) .eye { opacity: 0; transform: scale(.4); }
.panda-live .panda:not(.still) .nose { opacity: 0; transform: scale(.2); }
.panda-live .panda:not(.still) .stem { transform: scaleY(0); }
.panda-live .panda.in .ear-l { animation: pandaEarIn .7s cubic-bezier(.2,1.5,.4,1) .15s both; }
.panda-live .panda.in .ear-r { animation: pandaEarIn .7s cubic-bezier(.2,1.5,.4,1) .25s both; }
.panda-live .panda.in .eye-l { animation: pandaPopIn .5s cubic-bezier(.2,1.6,.4,1) .55s both; }
.panda-live .panda.in .eye-r { animation: pandaPopIn .5s cubic-bezier(.2,1.6,.4,1) .65s both; }
.panda-live .panda.in .nose { animation: pandaPopIn .55s cubic-bezier(.2,1.8,.4,1) .9s both; }
.panda-live .panda.in .stem { animation: pandaStemIn .45s ease-out 1.15s both; }
.panda-live .panda.in.still .ear-l, .panda-live .panda.in.still .ear-r, .panda-live .panda.in.still .eye, .panda-live .panda.in.still .nose, .panda-live .panda.in.still .stem { animation: none; opacity: 1; }
.panda-live .panda.beat .nose { animation: pandaBeat .6s cubic-bezier(.2,1.6,.4,1) both !important; }
@keyframes pandaEarIn { from { opacity: 0; transform: translateY(-18%) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes pandaPopIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes pandaStemIn { from { transform: scaleY(0); } to { transform: none; } }
@keyframes pandaBeat { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.95); } 100% { transform: scale(1); } }
.panda-live .panda { display: block; width: 100%; height: auto; overflow: visible; --gx: 0; --gy: 0; }
.panda-live .panda g { transform-box: fill-box; transform-origin: center; }
.panda-live .head { transform-origin: 50% 60%; transform: rotate(calc(var(--gx) * 5deg)) translate(calc(var(--gx) * 2%), calc(var(--gy) * 2%)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.panda-live .eye { transform: translate(calc(var(--gx) * 3px), calc(var(--gy) * 3px)); transition: transform .3s; transform-origin: 50% 55%; }
.panda-live .glint { transform: translate(calc(var(--gx) * 9px), calc(var(--gy) * 7px)); transition: transform .25s; }
.panda-live .panda.blink .eye { animation: pandaBlink .34s cubic-bezier(.4,0,.2,1) both !important; }
@keyframes pandaBlink { 0% { transform: scaleY(1); } 32% { transform: scaleY(.06); } 42% { transform: scaleY(.06); } 100% { transform: scaleY(1); } }
.new-card:first-child .screen { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.new-card:first-child .screen img { object-position: left top; }
.new-card .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.new-card .screen.empty { display: grid; place-items: center; color: var(--cream); font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; background: var(--brown); }
.new-card .meta { padding: 14px 10px 10px; display: flex; flex-direction: column; gap: .25em; min-width: 0; }
.new-card h3 { font-size: clamp(22px, 1.3vw + 8px, 34px); }
.new-card:first-child h3 { font-size: clamp(26px, 1.8vw + 8px, 44px); }
.new-card .what { font-size: clamp(16px, .8vw + 7px, 21px); line-height: 1.4; opacity: .86; }
.new-card .url { font-family: var(--sans); font-size: clamp(12px, .55vw + 6px, 15px); letter-spacing: .06em; color: var(--orange-ink); margin-top: auto; padding-top: .6em; overflow-wrap: anywhere; }

/* services */
.service-list { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(18px, 2.4vw, 44px) clamp(24px, 4vw, 80px); }
.service-list li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.service-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-weight: 300; font-size: clamp(22px, 1.4vw + 8px, 36px); color: var(--olive); line-height: 1; padding-top: .18em; }
.service-list h3 { font-size: clamp(24px, 1.5vw + 8px, 40px); margin-bottom: .25em; }
.service-list p { font-size: clamp(17px, .9vw + 7px, 23px); line-height: 1.45; opacity: .88; }

/* people, the Polaroids from the deck */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 3vw, 60px); }
.person { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(16px, 2vw, 34px); align-items: start; }
.person .polaroid { background: #fff; padding: 8px 8px 34px; box-shadow: 0 2px 4px rgba(60,36,21,.2), 0 16px 40px rgba(60,36,21,.16); transform: rotate(-2.2deg); }
.person:nth-child(2) .polaroid { transform: rotate(1.8deg); }
.person .polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person h3 { font-size: clamp(28px, 1.8vw + 8px, 46px); }
.person .role { font-family: var(--sans); font-size: clamp(11px, .55vw + 6px, 15px); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin: .3em 0 .7em; }
.person p.bio { font-size: clamp(17px, .9vw + 7px, 23px); line-height: 1.45; opacity: .9; }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .person .polaroid { max-width: 220px; } }

/* contact */
.contact { padding-bottom: clamp(60px, 8vw, 140px); }
.cmail { font-size: clamp(18px, 1vw + 8px, 26px); margin: .6em 0 1.6em; }
.cmail a { color: var(--orange-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 880px; }
@media (min-width: 900px) { .form { grid-template-columns: repeat(3, 1fr); max-width: 1100px; } }
.form label { display: grid; gap: 6px; font-family: var(--sans); font-size: clamp(12px, .6vw + 6px, 15px); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.form .wide, .form .form-row { grid-column: 1 / -1; }
.form label, .form input, .form textarea { min-width: 0; }
.form input, .form textarea { font: inherit; font-family: var(--serif); font-size: clamp(18px, 1vw + 8px, 24px); letter-spacing: 0; text-transform: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .55em .8em; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: clamp(16px, .8vw + 7px, 21px); color: var(--mute); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* footer */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 5vw, 90px); display: grid; gap: .5em; font-family: var(--sans); font-size: clamp(13px, .65vw + 6px, 16px); letter-spacing: .06em; color: var(--mute); }
.foot::before { content: ""; border-top: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 56px); }
.foot-logo { width: clamp(150px, 12vw, 200px); margin-bottom: 10px; }
.foot-small { font-size: .85em; }
.foot-top { margin-top: 1.2em; }
.foot-top a { text-decoration: none; color: var(--orange-ink); letter-spacing: .12em; text-transform: uppercase; font-size: .85em; }


/* dopamine patches: die-cut on a cream square, one tap and it opens in place */
.patch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: clamp(10px, 1.6vw, 28px); }
@media (max-width: 600px) { .patch-grid { grid-template-columns: repeat(2, 1fr); } .patch { padding: 6px; } .patch .pmeta { padding: 10px 6px 6px; } }
@media (min-width: 1500px) { .patch-grid { grid-template-columns: repeat(7, 1fr); } }
.patch { display: flex; flex-direction: column; gap: 0; text-align: left; background: var(--mat); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); color: inherit; text-decoration: none; cursor: pointer; font: inherit; min-width: 0; transition: transform .2s; }
.patch:hover, .patch:focus-visible { transform: translateY(-3px) rotate(-1deg); }
.patch .thumb { aspect-ratio: 1; background: var(--card); display: grid; place-items: center; padding: 10%; }
.patch .thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(60, 36, 21, .28)); transition: transform .25s; }
.patch:hover .thumb img { transform: scale(1.04); }
.patch .pmeta { padding: 12px 8px 8px; display: flex; flex-direction: column; gap: .2em; min-width: 0; flex: 1; }
.patch h3 { font-size: clamp(19px, 1vw + 8px, 26px); line-height: 1.1; }
.patch .pline { font-size: clamp(14px, .65vw + 6px, 17px); line-height: 1.4; opacity: .82; }
.patch .go { font-family: var(--sans); font-size: clamp(11px, .5vw + 5px, 13px); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-top: auto; padding-top: .7em; }

/* the patch lightbox */
.patch-box { position: fixed; inset: 0; border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #000; color: var(--cream); display: none; flex-direction: column; }
.patch-box[open] { display: flex; }
.patch-box::backdrop { background: rgba(0, 0, 0, .9); }
.patch-bar { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; background: var(--brown); color: var(--cream); font-family: var(--sans); font-size: 14px; letter-spacing: .06em; min-height: 52px; }
.patch-box-title { flex: 1; font-family: var(--serif); font-size: 20px; letter-spacing: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.patch-box-open { color: var(--cream); text-decoration: none; text-transform: uppercase; font-size: 12px; opacity: .85; white-space: nowrap; }
.patch-box-open:hover { opacity: 1; color: #fff; }
.patch-box-close { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
#patch-frame { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 520px) { .patch-box-open { display: none; } }

/* a line from us, between the services and the people */
.pull { margin: clamp(36px, 4vw, 70px) auto 0; max-width: 34ch; text-align: center; }
.pull p { font-size: clamp(26px, 2.2vw + 8px, 54px); line-height: 1.2; font-weight: 500; }
.pull p::before { content: '\201C'; color: var(--olive); } .pull p::after { content: '\201D'; color: var(--olive); }

/* the case dialog */
.case { position: fixed; inset: 0; border: 0; padding: 0; background: var(--bg); color: var(--text); width: min(100vw, 1400px); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; }
.case::backdrop { background: rgba(20, 12, 6, .72); }
.case[open] { display: block; }
.case-inner { padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(60px, 6vw, 100px); display: grid; gap: clamp(16px, 2vw, 30px); overflow-y: auto; height: 100%; }
.case-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--brown); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.case h2 { font-size: clamp(34px, 3.2vw, 72px); }
.case .what { font-family: var(--sans); font-size: clamp(13px, .65vw + 6px, 17px); letter-spacing: .06em; color: var(--mute); padding-right: 64px; }
.case .line { font-size: clamp(19px, 1.1vw + 8px, 28px); line-height: 1.45; max-width: 60ch; }
.case .since { font-family: var(--sans); font-size: clamp(12px, .55vw + 6px, 15px); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.case .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(12px, 1.5vw, 24px); margin-top: .6em; }
.case .gallery img { width: 100%; border-radius: var(--r); background: var(--mat); padding: 8px; box-shadow: var(--shadow); }
.case .gallery img.wide { grid-column: 1 / -1; }
.case .live { font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; font-size: clamp(13px, .65vw + 6px, 16px); color: var(--orange-ink); }
.case-next { margin-top: 1em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .work-card, .new-card, .work-card .pic img { transition: none; } }

/* the street: the patches as lots on Dopamine Row (lots.js). Cream paper, brown ink, orange for the lot you point at. */
.lots-switch { display: inline-flex; gap: 0; margin: 0 0 clamp(12px, 1.4vw, 22px); border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lots-switch button { font-family: var(--sans); font-size: clamp(11px, .5vw + 7px, 14px); letter-spacing: .14em; text-transform: uppercase; border: 0; background: none; padding: .6em 1.2em; border-radius: 999px; cursor: pointer; color: var(--mute); }
.lots-switch button[aria-pressed="true"] { background: var(--brown); color: var(--cream); }
.lots { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); box-shadow: var(--shadow); overflow: hidden; }
.lots-stage { width: 100%; aspect-ratio: 16 / 8; min-height: 380px; max-height: 82vh; cursor: grab; }
.lots-stage:active { cursor: grabbing; }
.lots-stage canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .lots-stage { aspect-ratio: 5 / 6; min-height: 0; } }
.lots-hint { position: absolute; left: 16px; bottom: 14px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--mute); background: color-mix(in srgb, var(--cream) 85%, transparent); padding: .35em .8em; border-radius: 999px; pointer-events: none; transition: opacity .6s; max-width: calc(100% - 120px); }
.lots-hint.gone { opacity: 0; }
@media (hover: none) { .lots-hint { font-size: 12px; } }
.lots-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.lots-zoom button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--brown); font-family: var(--sans); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.lots-zoom button:hover { border-color: var(--orange); color: var(--orange-ink); }
.lots-card { position: absolute; top: 14px; right: 14px; width: min(340px, calc(100% - 28px)); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: .35em; }
.lots-card[hidden] { display: none; }
.lots-card .lc-k { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-ink); padding-right: 28px; }
.lots-card .lc-h { font-size: clamp(24px, 1.2vw + 14px, 32px); }
.lots-card .lc-p { font-size: clamp(16px, .4vw + 12px, 19px); color: var(--mute); line-height: 1.35; }
.lots-card .lc-go { margin-top: .6em; align-self: flex-start; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--brown); color: var(--cream); padding: .75em 1.2em; border-radius: 999px; }
.lots-card .lc-go:hover { background: var(--orange); color: #fff; }
.lots-card[data-kind="open"] .lc-go, .lots-card[data-kind="next"] .lc-go { background: none; color: var(--brown); border: 1px solid var(--brown); }
.lots-card .lc-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; border-radius: 999px; }
.lots-card .lc-x:hover { color: var(--orange-ink); }
@media (hover: hover) { .lots-card .lc-x { display: none; } }
@media (max-width: 700px) { .lots-card { top: auto; bottom: 64px; left: 12px; right: 12px; width: auto; } }
.patch-grid[hidden], .lots[hidden] { display: none; }
.lots-hint .h-touch { display: none; }
@media (hover: none) { .lots-hint .h-mouse { display: none; } .lots-hint .h-touch { display: inline; } }

/* a piece we made to show, not one a client is running (2026-11-16) */
.concept-tag{display:inline-block;align-self:flex-start;margin:0 0 8px;padding:3px 10px;border:1px solid currentColor;border-radius:999px;font:500 11px/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--orange-ink)}
/* the live Barry card: the site itself at desktop width, scaled to the card */
.new-card .screen .live-frame{position:absolute;left:0;top:0;width:1440px;height:900px;border:0;transform-origin:0 0;pointer-events:none;opacity:0;transition:opacity .6s}
.new-card .screen.is-live .live-frame{opacity:1}
.new-card .screen .live-badge{position:absolute;right:10px;top:10px;padding:3px 9px 3px 20px;border-radius:999px;background:rgba(20,14,10,.72);color:#fff;font:500 11px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase}
.new-card .screen .live-badge::before{content:'';position:absolute;left:8px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:#e5483b;animation:livepulse 1.6s infinite}
@keyframes livepulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.new-card .screen .live-badge::before{animation:none}}
