:root {
  color-scheme: light;
  --ink: #121212;
  --paper: #fff;
  --muted: #545454;
  --line: #d6d6d6;
  --surface: #f3f3f3;
  --gutter: clamp(1rem, 3.15vw, 4rem);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.45 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 5; padding: 0.75rem; background: var(--paper); }
.skip:not(:focus) { transform: translateY(-150%); }
.wrap { max-width: 110rem; margin-inline: auto; padding-inline: var(--gutter); }

.site-header:not(.project-header) {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand { font-size: 0.875rem; font-weight: 800; letter-spacing: -0.045em; text-decoration: none; }
.pill {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.pill:hover { background: #444; }

.hero { padding-top: clamp(2.75rem, 6.7vw, 7rem); }
.eyebrow { margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.023em; text-transform: uppercase; }
.hero h1 {
  margin: 0.13em 0 0;
  font-family: var(--sans);
  font-size: clamp(2.65rem, 12.4vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}
.standfirst {
  width: min(100%, 29rem);
  margin: clamp(1.35rem, 3vw, 2.75rem) 0 clamp(1.5rem, 3.7vw, 3.75rem) auto;
  font: 400 clamp(1.1rem, 2.1vw, 1.8rem)/1.22 var(--sans);
  letter-spacing: -0.035em;
}
figure { margin: 0; min-width: 0; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.process { padding-top: clamp(4rem, 9vw, 9rem); padding-bottom: clamp(3.75rem, 8vw, 8rem); }
.section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.4rem 0 1.55rem;
  border-top: 1px solid var(--ink);
}
.section-intro h2, .stage h3 {
  margin: 0;
  font: 600 clamp(2.2rem, 5.5vw, 5.25rem)/1.02 var(--sans);
  letter-spacing: -0.065em;
}
.section-intro p { max-width: 29rem; margin: 0; }
.stage-controls { margin-bottom: 1.1rem; }
.stage-tabs { display: inline-flex; gap: 0.15rem; padding: 0.25rem; background: var(--surface); border-radius: 999px; }
.stage-tabs button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0.45rem clamp(0.65rem, 2vw, 1.25rem);
  font-size: 0.875rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.stage-tabs button[aria-selected="true"] { color: var(--paper); background: var(--ink); }
.stage-tabs button[aria-selected="false"]:hover { background: #e2e2e2; }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
}
.stage:not([role]) + .stage { margin-top: 3rem; }
.stage[role] { animation: enter 320ms ease-out both; }
.art-board {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 11rem;
  aspect-ratio: 4 / 3;
  padding: clamp(0.85rem, 2.75vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}
.art-board img { display: block; width: 100%; height: auto; }
.art-board--design img { width: min(100%, 36rem); }
.art-board--photo { padding: 0; overflow: hidden; background: var(--surface); }
.art-board--reference {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}
.art-board button {
  position: absolute;
  inset: 0.55rem 0.55rem auto auto;
  padding: 0.4rem 0.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.8125rem;
}
.art-board button:hover { background: var(--surface); }
.stage-copy { padding-block: clamp(0.5rem, 1.8vw, 1.75rem); }
.stage-copy h3 { margin-top: 0.6rem; font-size: clamp(2.1rem, 4vw, 4rem); }
.stage-copy p:not(.eyebrow) { margin-top: 1rem; max-width: 35ch; }
.palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0;
  margin: 1.75rem 0 0;
  list-style: none;
  font-size: 0.875rem;
}
.palette span {
  display: block;
  height: 2.25rem;
  margin-bottom: 0.3rem;
  border: 1px solid #0002;
  border-radius: 4px;
  background: var(--swatch);
}
.details { margin: 1.25rem 0 0; }
.details dt { border-top: 1px solid var(--line); margin-top: 0.65rem; padding-top: 0.65rem; font-weight: 700; }
.details dd { margin: 0.15rem 0 0; color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-size: 0.875rem;
}

.lightbox {
  max-width: min(94vw, 85rem);
  max-height: 92dvh;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.75rem;
}
.lightbox::backdrop { background: #000b; }
.lightbox form { display: flex; justify-content: end; margin-bottom: 0.55rem; }
.lightbox img { display: block; max-width: 100%; max-height: 76dvh; object-fit: contain; margin: auto; }

@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 48rem) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .stage-copy { padding-bottom: 0; }
  .stage-copy p:not(.eyebrow) { max-width: 48ch; }
  .palette { max-width: 25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
