:root {
  --black: #050505;
  --surface: #0e0e0f;
  --surface-light: #151517;
  --red: #e21b2d;
  --white: #f5f5f5;
  --muted: #a0a0a6;
  --line: #29292d;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.site-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  background: var(--black);
}

.site-header {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .95;
}

.site-header > p:last-child {
  max-width: 600px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.section-block {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.section-block > h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -.02em;
}

.section-intro,
.counter-section > p {
  margin: .65rem 0 2rem;
  color: var(--muted);
}

.photo-list {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
}

.photo-entry {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.photo-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .25rem .15rem .85rem;
  color: var(--white);
  font-size: .82rem;
}

.photo-heading strong { font-weight: 700; }
.photo-heading span { color: var(--muted); }

.photo-entry img,
.photo-entry img.fit-contain {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 82svh;
  margin: 0 auto;
  border-radius: 4px;
  background: #000000;
  object-fit: contain;
}

.photo-entry figcaption {
  margin: .75rem .15rem .15rem;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.counter-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface-light);
}

.count-wrap > span {
  display: block;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.count-wrap strong {
  display: block;
  color: var(--red);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
}

.counter-stage button {
  min-width: 240px;
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  padding: .9rem 1.4rem;
  background: var(--red);
  color: #ffffff;
  cursor: pointer;
  font: 800 .9rem Inter, Arial, Helvetica, sans-serif;
}

.counter-stage button:hover { background: #bd1020; }
.counter-stage button:active,
.counter-stage button.is-clicked { transform: translateY(1px); }
.counter-stage button:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.counter-stage button:disabled { cursor: wait; opacity: .7; }
.counter-stage button > span:first-child { margin-right: .45rem; }

.preview-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .75rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  color: #77777d;
  font-size: .7rem;
}

@media (max-width: 640px) {
  .site-header { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  .photo-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .counter-stage { grid-template-columns: 1fr; }
  .counter-stage button { width: 100%; min-width: 0; }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
