:root {
  --plum: #663156;
  --plum-deep: #4e2442;
  --pink: #f6d6e4;
  --gold: #f0c88c;
  --ink: #2a1724;
  --muted: #6e5a67;
  --paper: #ffffff;
  --head: "Antonio", "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 48px); background: var(--plum); color: var(--pink); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.nav nav a { font: 600 16px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.nav a:hover { color: var(--gold); }

/* the three-line stripe from the deck */
.stripes { display: grid; gap: 4px; }
.stripes i { display: block; }
.stripes i:nth-child(1) { height: 6px; background: var(--pink); }
.stripes i:nth-child(2) { height: 10px; background: var(--plum); }
.stripes i:nth-child(3) { height: 2px; background: var(--gold); }

/* hero */
.hero { background: var(--plum); color: var(--pink); }
.hero-in { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 10vw, 128px) clamp(16px, 4vw, 48px) clamp(48px, 8vw, 96px); }
.hero-mark { width: clamp(96px, 12vw, 160px); margin-bottom: 28px; }
.hero h1 { margin: 0; font: 700 clamp(64px, 13vw, 184px)/.92 var(--head); text-transform: uppercase; letter-spacing: .01em; }
.hero h1 span { color: var(--gold); }
.lede { max-width: 34ch; margin: 28px 0 32px; font-size: clamp(18px, 2vw, 22px); color: #f9e6ef; }
.btn { display: inline-block; padding: 14px 22px; border: 2px solid var(--gold); color: var(--gold); font: 600 17px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold); color: var(--plum-deep); }

/* work grid: big tiles, small gaps */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
.card { display: block; position: relative; text-decoration: none; color: #fff; }
.tile { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.tile-logo { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; object-fit: contain; transition: transform .5s ease; }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .tile img { transform: scale(1.04); }
.card-meta { position: absolute; inset: auto 0 0 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(40, 14, 32, .78)); opacity: 0; transition: opacity .25s; }
.card:hover .card-meta, .card:focus-visible .card-meta { opacity: 1; }
.card h3 { margin: 0; font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--head); text-transform: uppercase; }
.card .tag { font-size: 15px; color: #f9e6ef; }

/* project page */
.proj-hero { max-width: 1600px; margin: 0 auto; padding: 10px 10px 0; }
.proj-hero .tile { aspect-ratio: 16 / 8; }
.proj-hero .tile-logo { top: 11%; left: 15%; width: 70%; height: 78%; }
.proj-head { max-width: 1600px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 40px) 16px; }
.proj-head .tag { display: block; font: 600 15px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.proj-head h1 { margin: 10px 0 24px; font: 700 clamp(48px, 7vw, 104px)/.95 var(--head); text-transform: uppercase; color: var(--plum); }
.scope { padding: clamp(20px, 3vw, 36px); background: var(--plum); color: #fff; }
.scope strong { font: 700 16px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.scope p { max-width: 80ch; margin: 10px 0 0; font-size: clamp(17px, 1.5vw, 20px); }
.boards { max-width: 1600px; margin: 0 auto; padding: 24px 10px 40px; display: grid; gap: clamp(28px, 4vw, 56px); }
.board { margin: 0; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.board figcaption { padding: 10px clamp(6px, 2vw, 30px) 0; font-size: 15px; color: var(--muted); }
.pager { max-width: 1600px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: block; padding: 20px 0; border-top: 2px solid var(--plum); text-decoration: none; font: 700 clamp(20px, 2.4vw, 28px)/1.1 var(--head); text-transform: uppercase; color: var(--plum); }
.pager a span { display: block; margin-bottom: 6px; font: 500 14px/1 var(--body); text-transform: none; color: var(--muted); }
.pager .r { text-align: right; }
.pager a:hover { color: var(--plum-deep); text-decoration: underline; }

/* footer */
.foot-in { max-width: 1320px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.fine { font-size: 12px; }

/* lightbox */
#lb { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(30, 12, 26, .94); }
#lb[open] { display: grid; place-items: center; }
#lb img { max-width: 96vw; max-height: 92vh; width: auto; }
.lb-x { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .card-meta { position: static; opacity: 1; padding: 10px 4px 14px; background: none; color: var(--plum); }
  .card .tag { color: var(--muted); }
  .proj-hero .tile { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
