/* Repute Ads LLC
   One stylesheet for all three pages.
   Layers (z-index): header 20, lightbox dialog (top layer, native). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #efefec;
  --paper-2: #e3e3df;
  --card: #f9f9f7;
  --ink: #141413;
  --muted: #55554f;
  --line: #c6c6c0;
  --hi: #ffdc2b;
  --hi-ink: #141413;
  --error: #a3200f;
  --shadow: 0 22px 44px -22px rgb(20 20 19 / 0.45);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --gap: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131312;
    --paper-2: #1d1d1b;
    --card: #1a1a18;
    --ink: #ededea;
    --muted: #a6a69f;
    --line: #363632;
    --error: #ff8f7d;
    --shadow: 0 22px 44px -22px rgb(0 0 0 / 0.8);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.025em; }

p { margin: 0; }

:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

.hl {
  background: linear-gradient(transparent 14%, var(--hi) 14%, var(--hi) 90%, transparent 90%);
  color: var(--hi-ink);
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; z-index: 30; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  font: 600 1rem/1 var(--body);
  white-space: nowrap;
  text-decoration: none;
  color: var(--hi-ink);
  background: var(--hi);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn--line { background: transparent; color: var(--ink); }
.btn--ink { background: #141413; color: #efefec; border-color: #141413; }
.btn--ink:hover { box-shadow: 4px 4px 0 rgb(20 20 19 / 0.35); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }

.logo {
  font: 800 1.35rem/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.logo span { background: var(--hi); color: var(--hi-ink); padding: 0.14em 0.3em 0.18em; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); }
.nav a:not(.btn) { font-weight: 500; text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { padding: 0.65rem 1rem; }

@media (max-width: 640px) {
  .nav .btn { display: none; }
  .site-head .wrap { height: 60px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }

.fan { position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 600px; justify-self: center; }
.fan img {
  position: absolute; left: 50%; top: 50%;
  width: 57%; height: auto;
  border: 7px solid var(--card);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(var(--rot)) translate(var(--tx), var(--ty));
}
.fan img:nth-child(1) { --rot: -10deg; --tx: -58%; --ty: 4%; }
.fan img:nth-child(2) { --rot: 9deg; --tx: 58%; --ty: 6%; }
.fan img:nth-child(3) { --rot: -2deg; --tx: 0%; --ty: -3%; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .fan { max-width: 420px; margin-top: 0.5rem; }
}

/* ---------- Work wall (home) ---------- */

.wall { padding-block: 0 clamp(3.5rem, 7vw, 6rem); }
.wall__head { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.wall__rows { display: grid; gap: var(--gap); overflow: hidden; }
.wall__row { overflow-x: auto; scrollbar-width: none; }
.wall__row::-webkit-scrollbar { display: none; }
.wall__track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--gap); }
.wall__track .shot img { height: clamp(210px, 24vw, 330px); width: auto; }
.wall__foot { margin-top: 1.6rem; }

.shot {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  flex: 0 0 auto; position: relative; overflow: hidden;
}
.shot img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); background: var(--paper-2); }
.shot:hover img { transform: scale(1.03); }

.note { font-size: 0.95rem; color: var(--muted); max-width: 70ch; }

/* ---------- Pricing ---------- */

.pricing { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1.5px solid var(--ink); scroll-margin-top: 60px; }
.pricing__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.rates { list-style: none; margin: 0; padding: 0; border-bottom: 1.5px solid var(--ink); }
.rate {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 0.8fr) auto;
  align-items: center; gap: 1.5rem;
  padding: 1.7rem clamp(0.75rem, 2vw, 1.75rem);
  border-top: 1.5px solid var(--ink);
}
.rate__name p { color: var(--muted); margin-top: 0.35rem; font-size: 0.98rem; }
.rate__what { font: 700 clamp(1.3rem, 2.7vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.03em; }
.rate__price { display: flex; align-items: baseline; gap: 0.6rem; font-variant-numeric: tabular-nums; }
.rate__price strong { font: 800 clamp(2rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -0.04em; }
.rate__price s { color: var(--muted); font-size: 1.15rem; text-decoration-thickness: 1.5px; }
.rate .btn { justify-self: end; min-width: 11.5rem; }

.rate--free { background: var(--hi); color: var(--hi-ink); }
.rate--free .rate__name p { color: var(--hi-ink); }
.rate--free .btn { border-color: #141413; }

@media (max-width: 900px) {
  .rate { grid-template-columns: 1fr auto; row-gap: 0.9rem; }
  .rate__name { grid-column: 1 / -1; }
  .rate .btn { grid-column: 1 / -1; justify-self: stretch; }
}

/* Custom calculator */

.calc {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1.5px solid var(--ink);
  background: var(--card);
}
.calc__controls { padding: clamp(1.5rem, 3.5vw, 3rem); display: grid; gap: 2rem; align-content: start; }
.calc__intro { display: grid; gap: 0.6rem; }
.calc__intro p { color: var(--muted); }

.field-range { display: grid; gap: 0.9rem; }
.field-range label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-weight: 600; }
.field-range output { font: 800 2.4rem/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.field-range small { color: var(--muted); font-size: 0.92rem; display: flex; justify-content: space-between; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; margin: 0; background: transparent; cursor: grab;
  --p: 0%;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line) var(--p));
}
input[type="range"]::-moz-range-track { height: 6px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -12px;
  background: var(--hi); border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 0;
  background: var(--hi); border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.calc__slip {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-left: 1.5px dashed var(--ink);
  display: grid; gap: 1.2rem; align-content: start;
  background: var(--paper);
}
.calc__slip h4 { font: 600 0.95rem/1 var(--body); margin: 0; color: var(--muted); }
.slip { margin: 0; display: grid; gap: 0.7rem; font-variant-numeric: tabular-nums; }
.slip div { display: flex; justify-content: space-between; gap: 1rem; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; font-weight: 600; }
.slip .slip__total { border-top: 1.5px dashed var(--ink); padding-top: 1rem; margin-top: 0.3rem; align-items: baseline; }
.slip .slip__total dt { color: var(--ink); font-weight: 600; }
.slip .slip__total dd { font: 800 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--display); letter-spacing: -0.045em; }
.calc__tip { font-size: 0.95rem; padding: 0.8rem 1rem; background: var(--hi); color: var(--hi-ink); }
.calc__slip .btn { width: 100%; }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc__slip { border-left: 0; border-top: 1.5px dashed var(--ink); }
}

/* ---------- Process ---------- */

.process { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1.5px solid var(--ink); }
.process .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process__lead { display: grid; gap: 1.5rem; }
.process__lead img { width: min(100%, 360px); border: 7px solid var(--card); box-shadow: var(--shadow); transform: rotate(-3deg); margin-top: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { padding-block: 1.6rem; border-top: 1.5px solid var(--line); display: grid; gap: 0.5rem; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps p { color: var(--muted); max-width: 52ch; }

@media (max-width: 860px) {
  .process .wrap { grid-template-columns: 1fr; }
  .process__lead img { display: none; }
}

/* ---------- Closing band + footer ---------- */

.band { background: var(--hi); color: var(--hi-ink); border-block: 1.5px solid var(--ink); }
.band .wrap { padding-block: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band h2 { max-width: 16ch; }

.site-foot { padding-block: 3rem 2.5rem; font-size: 0.98rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2rem; }
.site-foot address { font-style: normal; color: var(--muted); margin-top: 0.9rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-foot h2 { font: 600 0.95rem/1.3 var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 0.9rem; }
.site-foot .legal { grid-column: 1 / -1; color: var(--muted); border-top: 1.5px solid var(--line); padding-top: 1.4rem; font-size: 0.9rem; }

@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-head .wrap { display: grid; gap: 1.4rem; }
.eyebrow { font: 600 0.82rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.brand-index { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; list-style: none; margin: 0.6rem 0 0; padding: 0; }
.brand-index a {
  display: inline-block; padding: 0.45rem 0.8rem; text-decoration: none; font-weight: 500;
  border: 1.5px solid var(--ink); transition: background 0.15s, color 0.15s;
}
.brand-index a:hover { background: var(--ink); color: var(--paper); }

.brand { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1.5px solid var(--ink); scroll-margin-top: 68px; }
.brand__head { display: grid; gap: 0.6rem; }
.brand__meta { font-weight: 600; }
.brand__meta span { display: block; font-weight: 400; color: var(--muted); }
.brand__note { color: var(--muted); max-width: 46ch; }

.strip { display: flex; gap: var(--gap); }
.strip .shot { flex: var(--r) 1 0%; min-width: 0; }
.strip .shot img { width: 100%; height: auto; }

.brand--row .wrap { display: grid; gap: 2rem; }

.brand--mosaic .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.brand--mosaic .brand__head { position: sticky; top: 100px; }
.mosaic { display: grid; grid-template-columns: 0.622fr 1fr; gap: var(--gap); }
.mosaic__rows { display: grid; gap: var(--gap); align-content: start; }
.shot--tall img { width: 100%; height: 100%; object-fit: cover; }
.brand--flip .wrap { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.brand--flip .brand__head { order: 2; }
.brand--flip .mosaic { grid-template-columns: 1fr 0.622fr; }
.brand--flip .shot--tall { order: 2; }

@media (max-width: 860px) {
  .brand--mosaic .wrap { grid-template-columns: 1fr; }
  .brand--mosaic .brand__head { position: static; order: 0; }
  .brand .strip,
  .brand .mosaic {
    display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .brand .mosaic__rows,
  .brand .mosaic .strip { display: contents; }
  .brand .shot { flex: 0 0 auto; scroll-snap-align: center; order: 0; }
  .brand .shot img { height: 320px; width: auto; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0; padding: 0; background: transparent; color: #efefec;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
}
.lightbox::backdrop { background: rgb(12 12 11 / 0.93); }
.lightbox__inner { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: clamp(0.75rem, 2vw, 1.5rem); gap: 0.9rem; }
.lightbox__stage { min-height: 0; display: grid; place-items: center; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox__cap { display: grid; gap: 0.15rem; }
.lightbox__cap strong { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.02em; }
.lightbox__cap span { color: #b5b5ae; font-size: 0.95rem; }
.lightbox__ctrl { display: flex; gap: 0.5rem; }
.lightbox__ctrl button {
  font: 600 0.95rem/1 var(--body); padding: 0.7rem 0.95rem; cursor: pointer;
  background: transparent; color: #efefec; border: 1.5px solid #efefec;
}
.lightbox__ctrl button:hover { background: var(--hi); color: var(--hi-ink); border-color: var(--hi); }

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

.contact { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__info { display: grid; gap: 1.6rem; }
.contact__direct { display: grid; gap: 1.4rem; margin-top: 1rem; padding-top: 1.6rem; border-top: 1.5px solid var(--ink); }
.contact__direct h2 { font: 600 0.95rem/1.3 var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 0.35rem; }
.contact__direct a.mail { font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact__direct address { font-style: normal; }
.contact__info img { width: min(100%, 300px); border: 7px solid var(--card); box-shadow: var(--shadow); transform: rotate(2.5deg); margin-top: 0.5rem; }

.form { display: grid; gap: 1.4rem; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1.5px solid var(--ink); background: var(--card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-weight: 600; }
.field .hint { font-size: 0.92rem; color: var(--muted); }
.field .error { font-size: 0.92rem; color: var(--error); font-weight: 600; min-height: 0; }
.field .error:empty { display: none; }

.form input[type="text"],
.form input[type="email"],
.form input[type="url"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%; font: 400 1.0625rem/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0;
  padding: 0.8rem 0.9rem;
}
.form textarea { min-height: 9.5rem; resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.form ::placeholder { color: var(--muted); opacity: 1; }
.form__custom { display: grid; gap: 1rem; padding: 1.1rem; border: 1.5px dashed var(--ink); }
.form__custom[hidden] { display: none; }
.form__estimate { font-weight: 600; font-variant-numeric: tabular-nums; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { padding: 0.9rem 1rem; background: var(--hi); color: var(--hi-ink); font-weight: 500; }
.form__status[hidden] { display: none; }

@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: 1fr; }
  .contact__info img { display: none; }
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .fan img { animation: deal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .fan img:nth-child(1) { animation-delay: 0.25s; }
  .fan img:nth-child(2) { animation-delay: 0.35s; }
  .fan img:nth-child(3) { animation-delay: 0.1s; }
  @keyframes deal {
    from { opacity: 0; transform: translate(-50%, -44%) rotate(0deg) translate(0, 0); }
  }

  .wall.is-live .wall__row { overflow: hidden; }
  .wall.is-live .wall__track { animation: drift var(--dur, 120s) linear infinite; padding-inline: 0; }
  .wall.is-live .wall__row:nth-child(2) .wall__track { animation-direction: reverse; }
  .wall.is-live:hover .wall__track,
  .wall.is-live:focus-within .wall__track { animation-play-state: paused; }
  @keyframes drift { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot img { transition: none; }
}
