/* ==========================================================================
   mako — commissions
   Ported from the Claude Design handoff (Mako Commissions v2).
   Token values, spacing and type scale are authoritative from the handoff.
   ========================================================================== */

:root {
  --red: #E02B51;
  --yellow: #FDEA87;
  --magenta: #A0108F;
  --plum: #6B0F7C;
  --flame: #F74047;
  --ink: #0B0B0B;
  --paper: #F2F0EE;
  --hero-red: #9A0000;
  --grey-1: #B9B4B0;
  --grey-2: #D6D2CE;
  --grey-3: #7A7570;
  --card: #151515;

  --hairline: rgba(242, 240, 238, 0.22);
  --rule-ink: rgba(11, 11, 11, 0.2);
  --label-ink: rgba(11, 11, 11, 0.6);

  --exp: 'Archivo Expanded', Archivo, system-ui, sans-serif;
  --sans: Archivo, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --pad-block: clamp(56px, 9vh, 120px);
  --pad-inline: clamp(14px, 3.5vw, 56px);
  --head-gap: clamp(24px, 4vh, 46px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* not `hidden` — hidden creates a scroll container that breaks scroll-driven reveals */
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--yellow); }
img { display: block; }
::selection { background: var(--yellow); color: var(--ink); }
input, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

@keyframes makoTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes makoBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* --------------------------------------------------------------- shared -- */

.section {
  padding: var(--pad-block) var(--pad-inline);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: var(--head-gap);
}

.h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(12px, 3vw, 40px);
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  transform: translateY(-110%);
  will-change: transform;
}

.nav__mark {
  font-family: var(--exp);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-x: auto;
}

.nav__link { color: var(--grey-1); white-space: nowrap; }
.nav__link:hover { color: var(--yellow); }

.nav__cta {
  padding: 9px 16px;
  background: var(--yellow);
  color: var(--ink);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--paper); color: var(--ink); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hero-red);
  border-bottom: 3px solid var(--ink);
}

.hero__status {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px clamp(12px, 3vw, 40px);
  background: var(--ink);
  color: var(--yellow);
}

.hero__status > span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__status-live { display: flex; align-items: center; gap: 8px; }

.hero__blink {
  width: 9px;
  height: 9px;
  background: var(--yellow);
  animation: makoBlink 1.8s steps(1, end) infinite;
}

.hero__grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: stretch;
}

.hero__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.4vh, 40px) clamp(14px, 3vw, 44px);
}

/* The container query below is what scales the name and the tile labels.
   Width is capped off the viewport height so the whole block — name, rail and
   all three tile rows — fits inside 100svh with the scroll cue still visible.
   (The handoff's own formula sized the tile panel only and left the name
   unaccounted for, which pushed the last tile row below the fold.) */
.hero__block {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 18px);
  width: min(100%, 620px, calc((100svh - 60px) / 1.72));
}

.hero__name {
  margin: 0;
  font-family: var(--exp);
  font-weight: 900;
  font-size: 27cqw;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero__panel {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 0.9vw, 12px);
  width: 100%;
}

.rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 22px);
  flex: 0 0 auto;
  padding-right: clamp(2px, 0.4vw, 6px);
}

.rail__icon {
  display: block;
  width: clamp(20px, 2.2vw, 26px);
  height: clamp(20px, 2.2vw, 26px);
  background: var(--paper);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
  transition: background .18s ease, transform .18s ease;
}
.rail__icon:hover,
.rail__icon:focus-visible { background: var(--yellow); transform: translateX(2px); }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(5px, 0.7vw, 10px);
  flex: 1 1 auto;
  min-width: 0;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--hairline);
  display: flex;
  align-items: flex-end;
  padding: clamp(8px, 1.4vw, 14px);
  transition: border-color .45s ease;
}

.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08) brightness(0.86);
  transition: filter .45s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.tile__wash {
  position: absolute;
  inset: 0;
  background: var(--red);
  mix-blend-mode: multiply;
  opacity: 0.48;
  transition: opacity .45s ease;
}

/* hover/focus: the art snaps to full colour */
.tile:hover, .tile:focus-visible { border-color: var(--yellow); }
.tile:hover .tile__img,
.tile:focus-visible .tile__img { filter: none; transform: scale(1.06); }
.tile:hover .tile__wash,
.tile:focus-visible .tile__wash { opacity: 0; }

.tile__label {
  position: relative;
  font-family: var(--exp);
  font-weight: 900;
  font-size: clamp(11px, 4cqw, 20px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(11, 11, 11, 0.55);
}

.tile__ext { font-size: 0.7em; vertical-align: super; }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero__cue i { font-style: normal; font-size: 13px; }

.hero__art {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__art img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: 50% 100%;
}

/* --------------------------------------------------------------- ticker -- */

.ticker {
  overflow: hidden;
  background: var(--flame);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 11px 0;
}

.ticker__row {
  display: flex;
  width: max-content;
  gap: 44px;
  font-family: var(--exp);
  font-weight: 900;
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: makoTicker 30s linear infinite;
  will-change: transform;
}

/* ---------------------------------------------------------------- offer -- */

/* 3px gap over a red ground — the red reads as gridlines between the cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: var(--red);
  padding: 3px;
}

.offer-card {
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--ink);
}

.offer-card--plum { background: var(--plum); color: var(--paper); }
.offer-card--plum p { color: rgba(242, 240, 238, 0.8); }

.offer-card h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.offer-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-1);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2.4vw, 38px);
  margin-top: clamp(36px, 6vh, 76px);
}

.step__n {
  margin: 0 0 8px;
  font-family: var(--exp);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}

.step__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-2);
}

/* -------------------------------------------------------------- pricing -- */

.pricing {
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.price-card {
  padding: clamp(20px, 2.6vw, 32px);
  border: 3px solid var(--ink);
}

.price-card--dark { background: var(--ink); color: var(--paper); }

.price-card h3 {
  margin: 0 0 18px;
  font-family: var(--exp);
  font-weight: 900;
  font-size: 17px;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-ink);
}

.price-card--dark .price-row { border-top-color: rgba(242, 240, 238, 0.2); }

.price-row__label { font-size: 16px; }

.price-row__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1;
}

.price-row__value--red { color: var(--red); }
.price-row__value--yellow { color: var(--yellow); }

.price-card__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-1);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 3vh, 30px);
}

.chip {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip--red { background: var(--red); color: var(--ink); }

/* ------------------------------------------------------------ separator -- */

.separator {
  position: relative;
  height: min(58svh, 620px);
  overflow: hidden;
  background: var(--hero-red);
  border-bottom: 3px solid var(--ink);
}

.separator img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.separator__caption {
  position: absolute;
  left: var(--pad-inline);
  bottom: 16px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- gallery -- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}

.gallery-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(242, 240, 238, 0.12);
}

.gallery-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.gallery-figure:hover img { transform: scale(1.04); }

.pending-label {
  margin: clamp(32px, 5vh, 60px) 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.pending {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px dashed rgba(242, 240, 238, 0.28);
  background-image: repeating-linear-gradient(135deg, rgba(242, 240, 238, 0.05) 0 8px, rgba(0, 0, 0, 0) 8px 18px);
}

.pending__name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey-2);
}

.pending__hint { font-family: var(--mono); font-size: 11px; color: var(--grey-3); }

/* ---------------------------------------------------------------- rules -- */

.rules {
  background: var(--magenta);
  color: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.rules__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.rules__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.rules__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.rules__n { font-family: var(--exp); font-weight: 900; font-size: 17px; }
.rules__list p { margin: 0; font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- quote -- */

.quote { background: var(--yellow); color: var(--ink); }

.quote__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

.quote__controls {
  display: grid;
  gap: clamp(20px, 3vh, 34px);
  min-width: 0;
}

.field__label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label-ink);
}

/* a fixed grid, deliberately — the tier buttons must not wrap ragged */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}

.tier-btn {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}

.tier-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
}

.seconds { display: flex; align-items: center; gap: 14px; }

.seconds input {
  flex: 1;
  accent-color: var(--ink);
  min-width: 0;
}

.seconds__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1;
  min-width: 4ch;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stepper button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.stepper button:hover { background: var(--ink); color: var(--yellow); }

.stepper__count {
  font-family: var(--exp);
  font-weight: 900;
  font-size: 22px;
  min-width: 2.4ch;
  text-align: center;
}

.stepper__note { font-size: 14px; color: rgba(11, 11, 11, 0.65); margin-left: 6px; }

.options { display: grid; gap: 6px; }

.opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .18s ease;
}

.opt-btn[aria-pressed="true"] { background: rgba(11, 11, 11, 0.1); }

.opt-btn__main { display: flex; align-items: center; gap: 12px; text-align: left; }

.opt-btn__box {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid var(--ink);
  background: transparent;
  transition: background .18s ease;
}

.opt-btn[aria-pressed="true"] .opt-btn__box { background: var(--red); }

.opt-btn__label { font-size: 16px; }
.opt-btn__delta { font-family: var(--mono); font-weight: 700; font-size: 14px; }

.summary {
  position: sticky;
  top: 84px;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  min-width: 0;
}

.summary__label {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.summary__total {
  margin: 0;
  font-family: var(--exp);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--yellow);
}

.summary__sub { margin: 8px 0 20px; font-size: 14px; color: var(--grey-1); }

.summary__rows {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 240, 238, 0.2);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}

.summary__row span:first-child { color: var(--grey-1); }
.summary__row span:last-child { font-family: var(--mono); font-weight: 700; white-space: nowrap; }

.summary__cta {
  display: block;
  margin-top: 22px;
  padding: 15px 18px;
  text-align: center;
  background: var(--red);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .18s ease;
}
.summary__cta:hover { background: var(--yellow); color: var(--ink); }

.summary__foot { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--grey-3); }

/* -------------------------------------------------------------- contact -- */

.contact {
  position: relative;
  padding: var(--pad-block) var(--pad-inline) clamp(30px, 5vh, 56px);
  border-top: 3px solid var(--ink);
  overflow: hidden;
}

.contact__wash {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(42vw, 480px);
  opacity: 0.2;
  pointer-events: none;
  filter: grayscale(1) contrast(1.2);
}
.contact__wash img { width: 100%; height: auto; }

.contact__inner { position: relative; }

.contact__h2 {
  margin: 0;
  font-family: var(--exp);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 96px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.contact__head { margin-bottom: clamp(20px, 3vh, 36px); }

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 36px);
  align-items: baseline;
}

.contact__mail {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(19px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  color: var(--paper);
  border-bottom: 3px solid var(--red);
  padding-bottom: 3px;
}
.contact__mail:hover { color: var(--yellow); border-color: var(--yellow); }

.contact__discord { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--grey-1); }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: clamp(26px, 4vh, 48px);
}

.contact__chip {
  padding: 13px 20px;
  border: 2px solid rgba(242, 240, 238, 0.3);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.contact__chip:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 7vh, 88px);
  padding-top: 18px;
  border-top: 1px solid rgba(242, 240, 238, 0.18);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-3);
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .quote__layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 46svh; order: -1; }
}

@media (max-width: 600px) {
  .offer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
}
