/* ==========================================================================
   Reece Made It — styles
   Mobile-first. Breakpoints: 600px (large phone), 900px (tablet), 1100px (desktop).
   ========================================================================== */

:root {
  --bg: #1c1d1b;
  --bg-raise: #252624;
  --ink: #0e0f0e;
  --fg: #ece8df;
  --fg-dim: #aaa69e;
  --line: rgba(236, 232, 223, 0.14);
  --line-strong: rgba(236, 232, 223, 0.3);
  --card: #d9d5cc;
  --card-ink: #131412;
  --glass: rgba(14, 15, 14, 0.86);
  --rec: #ff4b33;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --hud-top: 10px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }
body.is-menu .dock,
body.is-menu .mbar { visibility: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--fg); color: var(--bg); }

.i { width: 12px; height: 12px; flex: none; }
.i--md { width: 18px; height: 18px; }
.dim { color: var(--fg-dim); }

.skip {
  position: fixed; z-index: 100; left: var(--gutter); top: -100px;
  padding: 12px 16px; background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.label,
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3rem, 13vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.6rem, 10vw, 7.5rem); }

.statement {
  font-size: clamp(1.5rem, 5.2vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-indent: 2.2em;
  max-width: 24em;
}
.statement--sm { font-size: clamp(1.25rem, 3vw, 1.75rem); text-indent: 0; }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--sm { min-height: 44px; padding: 0 12px; }
.btn--lg { min-height: 56px; padding: 0 22px; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  background: var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.18);
  animation: rec 1.6s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: 0.25; } }

/* ==========================================================================
   HUD — floating pill, dock, mobile bar
   ========================================================================== */

.pill {
  position: fixed;
  z-index: 60;
  top: var(--hud-top);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
  max-width: 560px;
  height: 52px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-radius: var(--radius);
}
.pill__logo { display: grid; place-items: center; height: 100%; }
.pill__logo svg { width: 18px; height: 22px; }
.pill__caption {
  overflow: hidden;
  height: 1.4em;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.pill__caption > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill__menu { display: grid; place-items: center; width: 52px; height: 52px; }

.burger { position: relative; width: 20px; height: 10px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child { top: 8.5px; }
[aria-expanded="true"] .burger span:first-child { top: 4.25px; transform: rotate(45deg); }
[aria-expanded="true"] .burger span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Desktop dock */
.dock { display: none; }

@media (min-width: 1100px) {
  .pill { width: clamp(320px, 38vw, 560px); }

  .dock {
    position: fixed;
    z-index: 60;
    top: var(--hud-top);
    right: var(--gutter);
    width: 224px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

.dock__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 6px;
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.dock__cta img { width: 40px; height: 40px; border-radius: 3px; object-fit: cover; }
.dock__cta:hover { background: var(--fg); }

.dock__card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
.dock__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dock__body { padding: 0 8px 8px; }
.dock__reel {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
}
.dock__reel video { width: 100%; height: 100%; object-fit: cover; }
.dock__watch {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px; background: var(--glass); border-radius: 3px;
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.dock__email { padding: 2px 4px 10px; font-size: 0.9375rem; word-break: break-all; }
.dock__row { display: flex; gap: 4px; }
.dock__row .btn { flex: 1; }

/* Mobile / tablet contact bar */
.mbar {
  position: fixed;
  z-index: 55;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 4px;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.4s var(--ease);
}
.mbar.is-shown { transform: none; }
.mbar__cta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px 0 8px;
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.mbar__cta img { width: 40px; height: 40px; border-radius: 3px; object-fit: cover; }
.mbar__cta .i { margin-left: auto; }
.mbar__copy {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
@media (min-width: 1100px) { .mbar { display: none; } }

/* ==========================================================================
   Menu
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 96px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menu-in 0.45s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.5rem, 11vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
  transition: padding-left 0.3s var(--ease), color 0.2s;
}
.menu__nav a .mono { color: var(--fg-dim); letter-spacing: 0.06em; transform: translateY(-0.4em); }
.menu__nav a:hover { padding-left: 12px; }
.menu__foot { display: grid; gap: 12px; }
.menu__email { font-size: clamp(1.25rem, 4vw, 2rem); text-decoration: none; word-break: break-all; }
.menu__row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 84px var(--gutter) 24px;
  overflow: hidden;
}
.hero__dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 96%);
}

.hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; }
.hero__pause { min-height: 44px; color: var(--fg-dim); }
.hero__pause:hover { color: var(--fg); }

.hero__title {
  margin: auto 0 0;
  padding-top: 32px;
  font-size: clamp(3.1rem, 15.5vw, 7rem);
}
.line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.line > span { display: inline-block; }

.hero__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px 16px;
  margin-top: 28px;
}
.hero__lead {
  grid-column: 1 / -1;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.4;
}
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

.reel-card {
  position: relative;
  width: clamp(104px, 27vw, 150px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
  text-align: left;
}
.reel-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.reel-card:hover video { transform: scale(1.04); }
.reel-card__top,
.reel-card__bottom {
  position: absolute; left: 6px; right: 6px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px;
  background: var(--glass);
  border-radius: 3px;
  font-size: 0.6875rem;
}
.reel-card__top { top: 6px; right: auto; }
.reel-card__bottom { bottom: 6px; justify-content: space-between; }
.reel-card__now { display: none; }

@media (min-width: 600px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .reel-card__now { display: inline; }
  .reel-card__top, .reel-card__bottom { font-size: 0.75rem; }
}

@media (min-width: 900px) {
  .hero {
    --card-h: min(46vh, 46svh, 420px);
    --card-w: calc(var(--card-h) * 9 / 16);
    padding-top: 96px;
    padding-bottom: 32px;
  }
  .hero__top { justify-content: flex-start; }
  .hero__title {
    font-size: clamp(4.5rem, 7.6vw, 10rem);
    padding-right: calc(var(--card-w) + 24px);
  }
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 32px;
    margin-top: 40px;
    padding-right: calc(var(--card-w) + 32px);
  }
  .hero__lead { grid-column: auto; }
  .reel-card {
    position: absolute;
    right: var(--gutter);
    bottom: 32px;
    width: var(--card-w);
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.intro {
  display: grid;
  gap: 40px;
  padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(40px, 6vw, 72px);
}
.intro__label { justify-self: end; }

/* ---------- Work ---------- */

.work { padding-bottom: clamp(64px, 10vw, 140px); }
.work__head {
  display: grid;
  gap: 24px;
  padding: 0 var(--gutter) 28px;
}
.filters {
  display: flex;
  gap: 6px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter sup { font-size: 0.625rem; color: var(--fg-dim); }
.filter:hover { border-color: var(--fg); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter[aria-pressed="true"] sup { color: inherit; opacity: 0.6; }

.row {
  display: grid;
  gap: 16px;
  padding: 20px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}
.row[hidden] { display: none; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row.is-entering { animation: row-in 0.5s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(12px); } }

.row__info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.row__brand {
  margin: 0 auto 0 0;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.row__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.row__count { color: var(--fg-dim); white-space: nowrap; }

.row__reel {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.row__reel::-webkit-scrollbar { display: none; }
.row__reel > li { flex: none; scroll-snap-align: start; }
.row__reel.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.row__reel.is-dragging .card { pointer-events: none; }

.card {
  position: relative;
  flex: none;
  width: clamp(148px, 42vw, 210px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
  scroll-snap-align: start;
  text-align: left;
}
.card img,
.card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s;
}
.card img { -webkit-user-drag: none; user-select: none; }
.card video { opacity: 0; }
.card.is-previewing video { opacity: 1; }
.card:hover img,
.card:hover video { transform: scale(1.04); }
.card__time,
.card__kind {
  position: absolute;
  left: 6px;
  padding: 4px 6px;
  background: var(--glass);
  border-radius: 3px;
}
.card__time { bottom: 6px; }
.card__kind { top: 6px; }
.card__play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(236, 232, 223, 0.92);
  color: var(--card-ink);
  transition: transform 0.3s var(--ease);
}
.card__play .i { width: 14px; height: 14px; margin-left: 2px; }
.card:hover .card__play { transform: scale(1.1); }

.work__sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 40px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.work__sub[hidden] { display: none; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 8px;
  padding: 0 var(--gutter);
}
.tile { display: grid; align-content: start; gap: 6px; }
.tile[hidden] { display: none; }
.tile.is-entering { animation: row-in 0.5s var(--ease) both; }
.tile .card { width: 100%; margin-bottom: 6px; }
.tile__brand { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.tile__meta { color: var(--fg-dim); }

@media (min-width: 600px) {
  .work__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 10px; }
}
@media (min-width: 1100px) {
  .work__grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 32px 12px; }
}

.work__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 40px var(--gutter) 0;
}
.work__noscript { padding: 24px var(--gutter); }

@media (min-width: 900px) {
  .work__head { grid-template-columns: auto 1fr; align-items: end; }
  .filters { justify-content: flex-end; flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }

  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 24px;
    padding-block: 24px;
  }
  .row__info {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
    align-items: start;
    gap: 16px;
  }
  .row__brand { margin: 0; }
  .row__reel {
    margin: 0 calc(-1 * var(--gutter)) 0 0;
    padding: 0 var(--gutter) 0 0;
    scroll-padding-inline: 0;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .row__reel.is-short { -webkit-mask-image: none; mask-image: none; }
  .card { width: clamp(140px, 12vw, 200px); }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  gap: 32px;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(236, 232, 223, 0.09) 1px, transparent 1.4px) 0 0 / 9px 9px,
    var(--bg);
}
.services__jump { display: flex; flex-wrap: wrap; gap: 8px; }
.services__statement { text-indent: 0; max-width: 26em; font-size: clamp(1.375rem, 4vw, 2.5rem); }

.tldr {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}
.tldr p { color: var(--fg-dim); }
.tldr__chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  min-height: 56px;
  padding: 6px 18px 6px 6px;
  background: var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.tldr__chip img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; }
.tldr__chip span { overflow-wrap: anywhere; }
.tldr__chip:hover { background: var(--fg); color: var(--bg); }
.tldr__chip--lg { font-size: clamp(0.875rem, 2.4vw, 1.125rem); }

.services__grid { display: grid; gap: 12px; }
.svc {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 20px 28px;
  background: rgba(14, 15, 14, 0.72);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}
.svc h3 { margin: 0; font-size: clamp(1.375rem, 3.2vw, 1.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.svc p:last-child { color: var(--fg-dim); }

.craft { display: grid; gap: 14px; }
.craft ul { display: flex; flex-wrap: wrap; gap: 6px; }
.craft li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .services { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
  .services > .display { grid-column: 1 / -1; }
  .services__jump { grid-column: 1 / -1; }
  .services__statement { grid-column: 1 / 8; }
  .tldr { grid-column: 1 / 7; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 24px; }
  .services__grid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .craft { grid-column: 1 / -1; grid-template-columns: 180px 1fr; align-items: start; }
}

/* ---------- Brands marquee ---------- */

.brands { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands__head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter) 24px; }
.brands__head h2 { margin: 0; }
.brands__toggle { min-height: 44px; color: var(--fg-dim); }
.brands__toggle:hover { color: var(--fg); }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: flex;
  align-items: center;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.marquee__track li::after {
  content: "";
  width: 0.22em;
  height: 0.22em;
  margin: 0 0.6em;
  background: var(--fg-dim);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */

.words { display: grid; gap: 40px; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.words__feature { display: grid; gap: 16px; }
.words__feature p {
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 18em;
}
.words__grid {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.words__grid::-webkit-scrollbar { display: none; }
.quote {
  flex: none;
  width: min(82vw, 360px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 20px;
  background: var(--bg-raise);
  border-radius: var(--radius);
  scroll-snap-align: start;
}
.quote p { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }
.quote figcaption { color: var(--fg-dim); }

@media (min-width: 900px) {
  .words__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .quote { width: auto; min-height: 230px; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 40px;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.about__media { position: relative; padding-right: 22%; padding-bottom: 14%; }
.about__img { border-radius: 4px; object-fit: cover; width: 100%; height: auto; }
.about__img--main { aspect-ratio: 4 / 5; }
.about__img--small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
  border: 6px solid var(--bg);
  border-radius: 8px;
}
.about__copy { display: grid; align-content: start; gap: 24px; }
.about__quote {
  font-size: clamp(1.375rem, 3.6vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.about__text { display: grid; gap: 14px; max-width: 38em; color: var(--fg-dim); font-size: 1.0625rem; }
.about__actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: 48px;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.contact__intro { display: grid; align-content: start; gap: 24px; }
.contact__sub { max-width: 30em; font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--fg-dim); }
.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.brief {
  display: grid;
  gap: 24px;
  padding: 24px 18px;
  background: var(--bg-raise);
  border-radius: var(--radius);
}
.brief__group { display: grid; gap: 10px; }
.brief__group legend { padding: 0; margin-bottom: 10px; font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.opt span:hover { border-color: var(--fg); }
.opt input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }

.brief__fields { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #8d8a83; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.field input[aria-invalid="true"] { border-color: var(--rec); }
.field__err { color: #ff8a78; font-size: 0.875rem; }

.brief__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.brief__actions .btn { flex: 1 1 auto; }
.brief__note { color: var(--fg-dim); font-size: 0.875rem; }
.brief__status:empty { display: none; }
.brief__status { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 4px; }

@media (min-width: 600px) {
  .brief { padding: 32px 28px; }
  .brief__fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .brief__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1100px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .contact__intro { position: sticky; top: 96px; }
  /* "SOMETHING." is ~6.4em wide; fit it to the left column. */
  .contact .display { font-size: min(calc((100vw - 2 * var(--gutter) - 64px) * 5 / 11 / 6.7), 8rem); }
}

/* ---------- Footer ---------- */

.foot {
  padding: 40px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.foot__big {
  /* "REECE MADE IT." is ~7.6em wide; fill the content width. */
  font-size: calc((100vw - 2 * var(--gutter)) / 7.9);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.foot__bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  text-decoration: none;
}
.foot__bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__bar > span { display: inline-block; line-height: 32px; }
@media (min-width: 1100px) {
  .foot { padding-bottom: 32px; }
  .foot__bar { justify-content: space-between; }
}

/* ==========================================================================
   Player dialog
   ========================================================================== */

.player {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 72px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: hidden;
}
.player[open] { display: grid; place-items: center; animation: fade-in 0.3s var(--ease); }
.player::backdrop {
  background: rgba(10, 11, 10, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@keyframes fade-in { from { opacity: 0; } }

.player__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}
/* Sized from the viewport so the 9:16 frame and its info always fit on screen. */
.player__frame {
  position: relative;
  flex: none;
  height: calc(100vh - 260px);
  height: calc(100svh - 260px - env(safe-area-inset-bottom));
  aspect-ratio: 9 / 16;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}
.player__frame video,
.player__frame img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__frame video[hidden],
.player__frame img[hidden] { display: none; }

.player__end {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  background: rgba(14, 15, 14, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.player__end[hidden] { display: none; }
.player__end-title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.player__end-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.player__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "count nav"
    "title nav"
    "cats  nav"
    "cta   cta";
  align-items: center;
  gap: 4px 16px;
  width: 100%;
  max-width: 520px;
}
.player__meta [data-player-count] { grid-area: count; }
.player__title { grid-area: title; margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.player__meta [data-player-cats] { grid-area: cats; }
.player__nav { grid-area: nav; display: flex; gap: 6px; }
.player__cta { grid-area: cta; margin-top: 10px; }
.player__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.player__btn:hover { background: var(--fg); color: var(--bg); }
.player__close {
  position: fixed;
  top: 12px;
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
}

@media (min-width: 900px) {
  .player { padding: 40px var(--gutter); }
  .player__wrap { flex-direction: row; align-items: flex-end; gap: 32px; }
  .player__frame {
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
    max-width: calc(100vw - 2 * var(--gutter) - 292px);
  }
  .player__meta {
    width: 260px;
    grid-template-columns: 1fr;
    grid-template-areas: "count" "title" "cats" "nav" "cta";
    gap: 8px;
    padding-bottom: 8px;
  }
  .player__title { font-size: 2.25rem; }
  .player__nav { margin-top: 16px; }
  .player__close { top: 20px; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 72px;
  transform: translate(-50%, -12px);
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Motion (only when JS runs and the visitor hasn't asked for reduced motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span {
    transform: translateY(105%);
    animation: rise 1s var(--ease) forwards;
    animation-delay: calc(0.15s + var(--i) * 0.09s);
  }
  @keyframes rise { to { transform: none; } }

  .js .hero__top,
  .js .hero__foot { opacity: 0; animation: fade-up 0.9s var(--ease) 0.55s forwards; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec { animation: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; row-gap: 8px; padding: 0 var(--gutter); }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .brands__toggle { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
