/* ==========================================================================
   Brand Your Build — Sign Shop Ltd.
   ========================================================================== */

:root {
  /* Colour */
  --paper: #F4F3EF;
  --paper-2: #EAE8E2;
  --ink: #0B0B0B;
  --ink-2: #55544F;          /* 6.9:1 on paper */
  --ink-3: #A3A29C;          /* on ink: 7.6:1 */
  --yellow: #FFE500;         /* sampled from logo plate */
  --line: rgba(11, 11, 11, .14);
  --line-light: rgba(255, 255, 255, .16);

  /* Type */
  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;

  /* Space & motion */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 16vh, 200px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  /* Layers */
  --z-top: 50;
  --z-lb: 100;
  --z-loader: 200;
  --z-cursor: 300;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.end :focus-visible, .lb :focus-visible { outline-color: var(--yellow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: calc(var(--z-loader) + 1);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.eyebrow--light { color: var(--ink-3); }

.section-title {
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(30px, 4vw, 56px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader { display: none; }
html.js.is-loading { overflow: hidden; }
html.js.is-loading .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--yellow); color: var(--ink);
}
.loader__mark { display: flex; align-items: center; gap: .18em; font-size: clamp(40px, 9vw, 120px); line-height: 1; }
.loader__line { display: block; overflow: hidden; padding: .08em .04em; }
.loader__word { display: block; font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.loader__word--script { font-family: var(--f-script); font-weight: 400; font-size: .72em; transform: rotate(-6deg); }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); height: 2px; background: rgba(11,11,11,.15); }
.loader__bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

@media (max-width: 600px) {
  .loader__mark { flex-direction: column; gap: 0; font-size: 18vw; }
}

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { display: block; }
.cursor__ring, .cursor__dot {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; transition: opacity .3s; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center;
  mix-blend-mode: difference;
}
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid #fff;
  transition: transform .6s var(--ease-out), background-color .4s var(--ease-out), border-color .4s;
}
.cursor__label {
  position: relative; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease-out);
}
.cursor.is-link .cursor__ring::before { transform: scale(1.6); }
.cursor.is-view .cursor__ring { mix-blend-mode: normal; }
.cursor.is-view .cursor__ring::before { transform: scale(2.4); background: var(--yellow); border-color: var(--yellow); }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(.8); }
.cursor.is-view.is-down .cursor__ring::before { transform: scale(2.1); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-top);
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  pointer-events: none;
}
.topbar a { pointer-events: auto; }
.topbar__link { position: relative; padding: 12px 0; }
.topbar__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
@media (hover: hover) { .topbar__link:hover::after { transform: scaleX(1); transform-origin: left; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px var(--gutter) 120px;
}
html.js .hero__inner { visibility: hidden; }
.hero__inner { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; will-change: transform; }

.hero__logo {
  display: flex; align-items: center; justify-content: center; gap: .1em;
  font-size: clamp(52px, 10.2vw, 188px); line-height: .86;
}
.hero__word {
  display: inline-flex; overflow: hidden; padding: .06em 0 .02em;
  font-weight: 900; font-stretch: 112%; letter-spacing: -.025em;
}
.hero__word .char { display: inline-block; will-change: transform; }
.hero__script { position: relative; display: inline-block; font-size: .68em; margin: 0 .04em; transform: translateY(-.2em) rotate(-7deg); }
.hero__script-text { display: block; font-family: var(--f-script); line-height: 1; padding: 0 .12em .1em; }
.hero__swash {
  position: absolute; left: -2%; right: -6%; bottom: -.12em; width: 108%; height: .34em; overflow: visible; z-index: -1;
}
.hero__swash path { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; }

.hero__sub {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  width: min(100%, 880px); margin-top: clamp(18px, 3vw, 36px);
}
.hero__rule { flex: 1; height: 3px; background: var(--ink); transform-origin: center; }
.hero__shop {
  font-weight: 800; font-stretch: 115%; font-size: clamp(15px, 2.1vw, 32px);
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.hero__tag {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2);
}
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; display: block; width: 48px; height: 1px; background: var(--line); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: scrollcue 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollcue { 0% { transform: translateX(-101%); } 50% { transform: translateX(0); } 100% { transform: translateX(101%); } }

@media (max-width: 760px) {
  .hero__logo { flex-direction: column; font-size: 20.5vw; gap: 0; }
  .topbar { font-size: 11px; letter-spacing: .14em; padding-top: 12px; gap: 12px; }
  .topbar > * { white-space: nowrap; }
  .hero__script { font-size: .62em; margin: -.12em 0 -.08em; transform: rotate(-7deg); }
  .hero__sub { width: 100%; }
  .hero__shop { font-size: 4.2vw; }
  .hero__tag { font-size: 12px; letter-spacing: .18em; max-width: 28ch; line-height: 1.8; }
  .hero__foot > span:first-child { display: none; }
  .hero__foot { justify-content: center; }
}
/* Smallest phones (≤360px): tighten the top bar so both items stay on one line.
   Must come after the ≤760px block above, which would otherwise override it. */
@media (max-width: 360px) {
  .topbar { letter-spacing: .05em; font-size: 10px; }
}

/* ==========================================================================
   Feature (expanding image)
   ========================================================================== */
.feature { position: relative; }
.feature__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.feature__media { position: absolute; inset: 0; overflow: hidden; background: var(--paper-2); will-change: clip-path; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; will-change: transform; }
@media (max-aspect-ratio: 1/1) { .feature__media img { object-position: 0% 50%; } }
.feature__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
}
.feature__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 8vh, 96px);
  color: #fff; text-align: center;
  font-weight: 800; font-stretch: 108%; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(34px, 6.2vw, 108px); line-height: .95;
}
.feature__caption .script { color: var(--yellow); font-size: 1.15em; display: inline-block; transform: rotate(-5deg) translateY(.05em); }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement { padding: var(--section) var(--gutter); max-width: 1440px; margin: 0 auto; }
.statement__text {
  margin-top: 32px;
  font-weight: 500; font-stretch: 100%;
  font-size: clamp(28px, 4.1vw, 64px); line-height: 1.12; letter-spacing: -.025em;
  max-width: 22ch;
}
.statement__text .word { display: inline-block; }

/* Proof strip: label/value facts (ready for project counts & years once confirmed) */
.proof {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px 48px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.proof li { display: flex; flex-direction: column; gap: 8px; }
.proof__k { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.proof__v { font-weight: 700; font-stretch: 108%; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.01em; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; gap: 20px; } }

/* ==========================================================================
   After dark — lights-on moment
   Static state (no JS / reduced motion) is the finished, lit scene.
   ========================================================================== */
.night { background: var(--ink); color: #fff; }
.night__pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(72px, 11vh, 128px) var(--gutter) clamp(24px, 5vh, 56px);
}
.night__copy {
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px;
}
.night__title {
  margin-top: 20px;
  font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(34px, 5.4vw, 92px); line-height: .92;
}
.night__title .script { color: var(--yellow); font-size: .82em; display: inline-block; transform: rotate(-6deg) translateY(-.04em); }
.night__sub { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

.night__frame {
  position: relative; align-self: center; justify-self: center;
  width: min(100%, 1440px, calc((100svh - 320px) * 1.3855));
  aspect-ratio: 1125 / 812; overflow: hidden; border-radius: 4px; background: #000;
}
.night__stage { position: absolute; inset: 0; transform-origin: 0% 42%; }
.night__stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* The letters (and their bloom) are isolated from the lit photo with a tight clip */
.night__letters, .night__glow img { clip-path: inset(34% 71% 50% 2.5%); }
.night__glow { position: absolute; inset: 0; filter: blur(14px) brightness(1.6); mix-blend-mode: screen; opacity: .55; pointer-events: none; }

@media (max-width: 760px) {
  .night__pin { padding-top: 88px; }
  /* Taller frame on phones; the photo keeps its true proportions (so the letter clip stays aligned)
     and is anchored left, where the letters are. */
  .night__frame { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 260px); }
  .night__stage { right: auto; width: auto; height: 100%; aspect-ratio: 1125 / 812; }
}

/* ==========================================================================
   Mid-page contact band
   ========================================================================== */
.band { padding: 0 var(--gutter) var(--section); }
.band__inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px);
  background: var(--yellow); color: var(--ink); border-radius: 4px;
}
.band__title {
  font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1; max-width: 18ch; text-wrap: balance;
}
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band__cta, .band__phone {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: background-color .35s, color .35s;
}
.band__cta { background: var(--ink); color: #fff; will-change: transform; }
.band__phone { box-shadow: inset 0 0 0 1.5px var(--ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .band__cta:hover { background: #fff; color: var(--ink); }
  .band__phone:hover { background: var(--ink); color: #fff; }
}
.band :focus-visible { outline-color: var(--ink); }

/* ==========================================================================
   Work
   ========================================================================== */
.work { padding: 0 var(--gutter) var(--section); }
.work__head {
  max-width: 1440px; margin: 0 auto clamp(40px, 7vw, 96px);
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.work__count { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: .1em; }

.work__list { display: grid; gap: clamp(72px, 14vw, 200px); }
.work__item { width: min(100%, 1440px); margin: 0 auto; }
/* Portrait & square photos keep their shape in a narrower frame, set off-centre for rhythm */
.work__item--narrow { width: min(100%, var(--w, 820px)); margin-left: max(0px, calc((100% - 1440px) / 2)); }
.work__item--end { margin-left: auto; margin-right: max(0px, calc((100% - 1440px) / 2)); }

.work__open { display: block; width: 100%; text-align: left; border-radius: 4px; }
.work__frame {
  display: block; position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: var(--ar, 16 / 10); background: var(--paper-2);
  transform-origin: center;
  /* One composited layer per photo; clip-path clips moving children reliably across browsers */
  clip-path: inset(0 round 4px); isolation: isolate;
}
.work__zoom { display: block; position: absolute; inset: 0; overflow: hidden; transition: transform 1.4s var(--ease-out); }
.work__zoom img {
  position: absolute; left: 0; top: -7%; width: 100%; height: 114%; max-width: none;
  object-fit: cover; object-position: var(--pos, 50% 50%);
}
@media (hover: hover) and (pointer: fine) {
  .work__open:hover .work__zoom { transform: scale(1.05); }
}
.work__open:active .work__frame { filter: brightness(.94); }

.work__meta {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 16px;
  padding-top: 20px;
}
.work__no { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.work__title { font-weight: 800; font-stretch: 108%; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.01em; text-transform: uppercase; }
.work__scope { font-size: 14px; color: var(--ink-2); }

@media (max-width: 760px) {
  .work__meta { grid-template-columns: 40px 1fr; row-gap: 4px; }
  .work__scope { grid-column: 2; }
}

/* ==========================================================================
   Capabilities
   ========================================================================== */
.caps { padding: 0 var(--gutter) var(--section); }
.caps__head {
  max-width: 1440px; margin: 0 auto clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
}
.caps__intro { color: var(--ink-2); max-width: 44ch; justify-self: end; font-size: clamp(16px, 1.2vw, 19px); }
.caps__list { max-width: 1440px; margin: 0 auto; border-top: 1px solid var(--line); }
.cap {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px 1.1fr 1fr; align-items: center; gap: 16px;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.cap::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--yellow);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out);
}
@media (hover: hover) {
  .cap:hover::before { transform: scaleY(1); transform-origin: top; }
  .cap:hover .cap__desc, .cap:hover .cap__no { color: var(--ink); }
  .cap:hover .cap__name { transform: translateX(12px); }
}
.cap__no { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .4s; }
.cap__name {
  font-weight: 800; font-stretch: 108%; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(22px, 2.8vw, 44px); line-height: 1; transition: transform .7s var(--ease-out);
}
.cap__desc { color: var(--ink-2); transition: color .4s; }

@media (max-width: 760px) {
  .caps__head { grid-template-columns: 1fr; }
  .caps__intro { justify-self: start; }
  .cap { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .cap__desc { grid-column: 2; }
}

/* ==========================================================================
   End / Footer
   ========================================================================== */
.end { background: var(--ink); color: #fff; padding: var(--section) var(--gutter) 40px; overflow: hidden; }
.end__inner { max-width: 1440px; margin: 0 auto; }
.end__title {
  margin-top: 32px;
  font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(48px, 10vw, 180px); line-height: .9;
}
.end__line { display: inline-block; }
.end__title .script { color: var(--yellow); font-size: .8em; display: inline-block; transform: rotate(-7deg) translateY(-.06em); margin-right: .08em; }

.end__actions { margin-top: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 16px; }
.end__cta {
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 64px; padding: 0 30px 0 32px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: -.01em;
  transition: background-color .4s;
  will-change: transform;
}
.end__cta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .6s var(--ease-out); }
.end__cta--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); font-variant-numeric: tabular-nums; }
.end__cta--ghost svg { width: 20px; height: 20px; stroke-width: 1.6; stroke-linejoin: round; }
@media (hover: hover) {
  .end__cta:hover svg { transform: translateX(6px); }
  .end__cta:hover { background: #fff; }
  .end__cta--ghost:hover { background: var(--yellow); color: var(--ink); box-shadow: none; }
  .end__cta--ghost:hover svg { transform: none; }
}

.end__bottom {
  max-width: 1440px; margin: clamp(96px, 14vw, 180px) auto 0;
  padding-top: 32px; border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  font-size: 13px; color: var(--ink-3);
}
.end__legal { text-align: center; }
.end__social { justify-self: end; padding: 12px 0; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: #fff; transition: color .3s; }
@media (hover: hover) { .end__social:hover { color: var(--yellow); } }

/* Coded logo plate */
.plate {
  justify-self: start;
  display: inline-flex; flex-direction: column; align-items: center; gap: .35em;
  padding: .7em 1.1em .65em; border: .16em solid var(--ink); border-radius: .7em;
  background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1px var(--yellow);
  font-size: 13px;
}
.plate__main { display: flex; align-items: center; gap: .15em; font-size: 2em; line-height: 1; }
.plate__main b { font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.plate__main i { font-family: var(--f-script); font-style: normal; font-size: .82em; transform: rotate(-8deg) translateY(-.12em); }
.plate__sub { display: flex; align-items: center; gap: .6em; width: 100%; font-weight: 800; font-stretch: 112%; letter-spacing: .14em; font-size: .78em; white-space: nowrap; }
.plate__sub span { flex: 1; height: 2px; background: currentColor; }

@media (max-width: 760px) {
  .end__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .plate, .end__social { justify-self: center; }
  .end__cta { padding: 0 22px; gap: 12px; }
}

/* ==========================================================================
   Project brief (slide-in panel; full-screen sheet on phones)
   ========================================================================== */
.brief { position: fixed; inset: 0; z-index: 150; }
.brief[hidden] { display: none; }
.brief__backdrop { position: absolute; inset: 0; background: rgba(11,11,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.brief__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 100%);
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 0 clamp(20px, 4vw, 56px) calc(40px + env(safe-area-inset-bottom, 0px));
  box-shadow: -30px 0 80px rgba(0,0,0,.25);
}
.brief__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 16px; background: var(--paper);
}
.brief__close {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background-color .3s, border-color .3s;
}
.brief__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .brief__close:hover { background: var(--yellow); border-color: var(--yellow); } }

.brief__intro { padding: 8px 0 8px; }
.brief__title {
  font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(40px, 6vw, 72px); line-height: .92;
}
.brief__title .script { font-size: .8em; display: inline-block; transform: rotate(-6deg) translateY(-.04em); position: relative; z-index: 0; }
.brief__title .script::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: .08em; height: .16em; z-index: -1;
  background: var(--yellow); border-radius: 99px; transform: rotate(-2deg);
}
.brief__lede { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }

.brief__form { display: grid; gap: 8px; }
.brief__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief__group {
  margin: 0; padding: 28px 0 8px; border: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
}
.brief__group:first-of-type { margin-top: 24px; }
.brief__group legend {
  float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin-bottom: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.req { color: #9A6B00; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(11,11,11,.18); border-radius: 4px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8C8B86; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field__err { font-size: 13px; color: #B42318; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(11,11,11,.22); background: #fff; font-size: 14px; font-weight: 600;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:checked + span::before { content: "✓"; margin-right: 8px; color: var(--yellow); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--yellow); border-color: var(--ink); }
@media (hover: hover) { .chip:hover span { border-color: var(--ink); } }

.brief__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 24px; }
.brief__submit, .brief__ghost {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: background-color .3s, color .3s;
}
.brief__submit { background: var(--ink); color: #fff; }
.brief__submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--ease-out); }
.brief__submit[disabled] { opacity: .5; cursor: progress; }
.brief__ghost { box-shadow: inset 0 0 0 1px rgba(11,11,11,.3); }
@media (hover: hover) {
  .brief__submit:hover { background: var(--yellow); color: var(--ink); }
  .brief__submit:hover svg { transform: translateX(5px); }
  .brief__ghost:hover { background: var(--ink); color: #fff; }
}
.brief__alt { font-size: 14px; color: var(--ink-2); }
.brief__alt a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.brief__status { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.brief__status.is-error { color: #B42318; }

.brief__done { padding-top: 8px; outline: none; }
.brief__summary {
  margin-top: 24px; padding: 20px; border-radius: 4px; background: #fff; border: 1px solid var(--line);
  font: 14px/1.6 var(--f-sans); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40vh; overflow: auto;
}

@media (max-width: 760px) {
  .brief__panel { width: 100%; box-shadow: none; }
  .brief__group { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: var(--z-lb); color: #fff; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: var(--ink); }
.lb__media { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; touch-action: pan-y; }
.lb__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.lb__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 48%);
}
.lb__top {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.lb__count { font-size: 13px; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lb__close, .lb__arrow {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); background: rgba(11,11,11,.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .35s, border-color .35s, color .35s;
}
.lb__close svg, .lb__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) {
  .lb__close:hover, .lb__arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
}
.lb__info {
  position: absolute; left: var(--gutter); right: calc(var(--gutter) + 140px); bottom: clamp(24px, 6vh, 64px);
}
.lb__title {
  font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.025em;
  font-size: clamp(40px, 7vw, 120px); line-height: .9;
}
.lb__photos { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.lb__photos[hidden] { display: none; }
.lb__photos i { width: 18px; height: 2px; background: rgba(255,255,255,.35); transition: background-color .4s, width .4s var(--ease-out); }
.lb__photos i.is-on { width: 32px; background: var(--yellow); }
.lb__photos span { margin-left: 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.lb__facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 48px; }
.lb__more { display: none; }
.lb__note { margin-top: 14px; font-size: 13px; font-style: italic; color: rgba(255,255,255,.75); }
.lb__facts dt { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.lb__facts dd { margin-top: 6px; font-size: 16px; }
.lb__nav { position: absolute; right: var(--gutter); bottom: clamp(24px, 6vh, 64px); display: flex; gap: 12px; }

@media (max-width: 760px) {
  .lb__info { right: var(--gutter); bottom: 104px; }
  .lb__title { font-size: clamp(30px, 9vw, 44px); }
  .lb__photos { margin-bottom: 12px; }
  .lb__more {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 18px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.4); background: rgba(11,11,11,.3);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .lb:not(.is-details) .lb__facts, .lb:not(.is-details) .lb__note { display: none; }
  .lb.is-details .lb__shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.2) 100%); }
  .lb__facts { gap: 12px 28px; }
  .lb__nav { left: var(--gutter); right: auto; bottom: 28px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
