/* Layout: the print portfolio's grid on screen — white pages, a narrow title column beside the work,
   charcoal bands to open each client section, tiny tracked labels as the only ornament. */
:root {
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #858585;
  --hair: #E3E3E3;
  --tile: #F3F3F3;
  --bronze: #8C7355;
  --band: #1B1B1B;
  --band-ink: #F2F1EF;
  --band-muted: #7A766F;
  --band-hair: #3A3835;
  --font: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111111; --ink: #ECECEC; --muted: #8C8C8C; --hair: #2A2A2A; --tile: #1A1A1A;
    --bronze: #BC9D77; --band: #1D1D1D; --band-ink: #F2F1EF; --band-muted: #85817A; --band-hair: #34322F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111111; --ink: #ECECEC; --muted: #8C8C8C; --hair: #2A2A2A; --tile: #1A1A1A;
  --bronze: #BC9D77; --band: #1D1D1D; --band-ink: #F2F1EF; --band-muted: #85817A; --band-hair: #34322F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.label { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding-bottom: 58px; }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(44px, 6.2vw, 88px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero .role { font-size: 15px; }
.hero .lede { margin: 0; color: var(--muted); max-width: 34ch; }
.rule { width: 40px; height: 1px; background: var(--ink); }

.show { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stage { position: relative; aspect-ratio: 16 / 9.6; max-width: 100%; background: var(--tile); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform 6s ease-out; }
.slide.on img { transform: scale(1); }
.cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; }
.cap .code { color: var(--bronze); font-size: 12px; }
.cap a { text-decoration: none; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ctrls { display: flex; align-items: center; gap: 14px; }
.ctrls button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.ctrls button:hover { color: var(--ink); }
.ctrls svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.bar { height: 2px; background: var(--hair); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.bar.done i { transform: scaleX(1); }
.bar.run i { animation: fill var(--dur) linear forwards; }
.show.paused .bar.run i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slide, .slide img { transition: none; } .slide img { transform: none; } }


.dl { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 6px; padding: 13px 18px; border: 1px solid var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.dl:hover { background: var(--ink); color: var(--paper); }
.dl svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.dl small { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.dl:hover small { color: inherit; }
.dl-msg { font-size: 12px; color: var(--muted); min-height: 1.2em; margin: -10px 0 0; }

/* work */
.intro { border-top: 1px solid var(--hair); }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding-block: 40px; }
.intro p { margin: 0; color: var(--muted); max-width: 52ch; }
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(36px, 5vw, 64px); align-items: end; }
.band .big { font-weight: 300; font-size: clamp(72px, 11vw, 150px); line-height: .8; letter-spacing: -.05em; color: var(--band-hair); }
.band h2 { margin: 0; font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.02em; line-height: 1; }
.band .label { color: var(--band-muted); }
.band-head { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.band ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-hair); }
.band li a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 8px 0; text-decoration: none; font-size: 13px; color: var(--band-ink); border-bottom: 1px solid var(--band-hair); }
.band li a span:first-child, .band li a span:last-child { color: var(--band-muted); }
.band li a:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }

/* 5-up project grid; the last columns of the page stay empty as breathing room on the right */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 22px; padding-block: 56px 96px; padding-right: clamp(0px, 9vw, 150px); }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-right: 6vw; } }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; padding-right: 0; } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .ph { aspect-ratio: 4 / 3; max-width: 100%; background: var(--tile); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.03); }
.card .meta { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "c y" "t t"; gap: 6px 10px; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 10px; }
.card .meta .c { grid-area: c; } .card .meta .y { grid-area: y; } .card .meta .t { grid-area: t; min-width: 0; }
.card .meta .c { color: var(--bronze); font-size: 12px; }
.card .meta .t { font-size: 13.5px; line-height: 1.4; }
.card .meta .y { color: var(--muted); font-size: 12px; }

/* about */
.about { border-top: 1px solid var(--hair); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(56px, 8vw, 112px); }
.about .stmt { margin: 22px 0 0; font-weight: 300; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.3; letter-spacing: -.02em; max-width: 26ch; text-wrap: balance; }
.about .note { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); width: min(100%, 360px); color: var(--muted); font-size: 13px; }
dl.info { margin: 0; border-top: 1px solid var(--hair); }
dl.info div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
dl.info dt { padding-top: 3px; }
dl.info dd { margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
dl.info a { text-decoration: none; border-bottom: 1px solid var(--hair); }
dl.info a:hover { border-bottom-color: var(--ink); }

/* contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(56px, 8vw, 104px) 40px; }
.contact h2 { margin: 14px 0 0; font-weight: 300; font-size: clamp(44px, 6vw, 80px); letter-spacing: -.035em; line-height: 1; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--band-hair); padding-top: 18px; align-self: end; }
.links a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.links a span:last-child { font-size: 14px; overflow-wrap: anywhere; }
.links a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px 32px; }
.foot .label { color: var(--band-muted); }

/* project view */
.proj .wrap { padding-block: clamp(28px, 5vw, 56px) 64px; }
.back { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.back:hover { color: var(--ink); }
.phead { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); margin-top: 36px; align-items: end; }
.phead .c { color: var(--bronze); font-size: 13px; }
.phead h1 { margin: 10px 0 0; font-weight: 300; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.pmeta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--hair); padding-top: 14px; }
.pmeta div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pmeta span:last-child { font-size: 14px; }
.gallery { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.grow { display: flex; gap: 12px; }
.grow button { display: block; background: var(--tile); flex: none; cursor: zoom-in; }
.grow img { width: 100%; height: 100%; object-fit: cover; }
.pnav { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--hair); padding-top: 18px; }
.pnav a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pnav a:last-child { text-align: right; }
.pnav a span:last-child { font-size: 16px; font-weight: 300; }
.pnav a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

/* brand book page: larger 2-up covers, each card links out to Behance */
.bb .wrap { padding-block: clamp(28px, 5vw, 56px) clamp(64px, 8vw, 112px); }
.bb-lede { margin: 0; color: var(--muted); max-width: 46ch; border-top: 1px solid var(--hair); padding-top: 14px; }
.bb-grid { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 56px; }
.bb-row { display: flex; gap: 24px; }
.bb-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: var(--ar) 1 0; }
.bb-row:has(> :only-child) .bb-card { flex: 0 1 calc(50% - 12px); }
.bb-card .ph { aspect-ratio: var(--ar); max-width: 100%; background: var(--tile); overflow: hidden; }
.bb-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bb-card:hover img { transform: scale(1.025); }
.bb-card .meta { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 12px; }
.bb-card .c { color: var(--bronze); font-size: 12px; }
.bb-card .t { font-size: 16px; font-weight: 300; line-height: 1.35; min-width: 0; }
.bb-card .t em { font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze);
  border: 1px solid currentColor; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.bb-card .go { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.bb-card .go svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.bb-card:hover .go { color: var(--ink); }
.bb-card:hover .t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 96%, transparent);
  display: grid; grid-template-rows: auto 1fr; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 18px) var(--gutter); }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 12px 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--hair); }
.lb-nav svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb-close { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: 10px 0; }

@media (max-width: 860px) {
  .hero .wrap, .intro .wrap, .band .wrap, .about .wrap, .contact .wrap, .phead { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 0; order: 2; }
  .show { order: 1; }
  .band .big { font-size: 88px; }
  .links { grid-template-columns: minmax(0, 1fr); }
  .bb-grid { gap: 40px; }
  .bb-row { flex-direction: column; gap: 40px; }
}
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .brand, .nav a { white-space: nowrap; letter-spacing: .12em; }
  .nav a:first-child { display: none; }
  .bb-card .meta { grid-template-columns: 1fr auto; } .bb-card .c { display: none; }
  .pmeta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.info div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cap { grid-template-columns: auto 1fr; }
  .cap .ctrls { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 380px) { .nav a[href="#about"] { display: none; } }
