/* Instant Studio — shared marketing components.
   Loaded by the homepage (after the Webflow stylesheet) and by every static
   page (after pages.css), so a tile, a tagged media card, a mock or a proof
   block is defined once. The homepage does not load chrome.css, so the tokens
   are repeated here: keep this block identical to the :root in css/chrome.css. */

:root {
  --accent-primary: #ff6038;
  --accent-primary-dark: #e04c27;
  --accent-secondary: #d1b3ff;
  --accent-secondary-hover: #c09dfa;
  --bg-page: #fafafa;
  --bg-cream: #fff3ed;
  --ink: #101010;
  --ink-soft: #383838;
  --ink-muted: #606060;
  --line: #ededed;
  --on-lavender: #3d0f11;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Hubot Sans Condensed", "Hubot Sans", Arial, sans-serif;
  --font-mono: "DM Mono", monospace;
  --radius: 12px;
}

/* ---------- tagged media: the homepage's production label tab ---------- */

.tagged {
  position: relative;
  display: block;
  padding-top: 18px;
  text-decoration: none;
}

.tagged__label {
  position: absolute;
  top: 0;
  left: 12px;
  z-index: 0;
  padding: 5px 12px 19px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--accent-primary);
  border-radius: 8px 8px 0 0;
}

.tagged__card {
  position: relative;
  z-index: 1;
  display: block;
}

/* The homepage collage frame: orange border, white padding, soft shadow. */
.frame {
  padding: 5px;
  background: #fff;
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.08);
}

.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 7px;
}

.frame--4x3 img {
  aspect-ratio: 4 / 3;
}

.frame--square img {
  aspect-ratio: 1;
}

/* The homepage's black hero badge. */
.badge {
  position: absolute;
  right: -8px;
  bottom: -16px;
  z-index: 2;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
}

/* A media card: cream field, hairline, 16px corners. */
.media-card,
.tile__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.media-card--16x10 {
  aspect-ratio: 16 / 10;
}

.media-card--square {
  aspect-ratio: 1;
}

.media-card > img,
.media-card > video,
.tile__media > img,
.tile__media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 32px);
  margin: 8px 0 16px;
}

.tiles--3up {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 32px;
  margin: 0;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.tile__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tile__tags-title {
  margin-right: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* The homepage's neutral tag. */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tile h2,
.tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.tile h2 a,
.tile h3 a {
  color: inherit;
  text-decoration: none;
}

.tile h2 a:hover,
.tile h3 a:hover {
  color: var(--accent-primary);
}

.tile p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.tile__more {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
}

.tile__more::after {
  content: " \2192";
}

.tile__more:hover {
  text-decoration: underline;
}

.tile__more {
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
}

.tile__more:hover {
  text-decoration: underline;
}

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

/* ---------- composed media: the mocks' dotted cream field ---------- */

.mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7%;
  background-color: var(--bg-cream);
  background-image: radial-gradient(#e7d8ce 1px, transparent 1px);
  background-size: 14px 14px;
}

.mock__window {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 16, 16, 0.1);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  background: var(--accent-primary);
}

.mock__bar i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

.mock__window video,
.mock__window img {
  display: block;
  width: 100%;
  height: auto;
}

.mock--record {
  gap: 5%;
}

.mock__banner {
  display: block;
  width: 42%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 16, 16, 0.12);
  transform: rotate(-3deg);
}

.record {
  display: grid;
  gap: 8px;
  width: 47%;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 16, 16, 0.1);
}

.record__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.record__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.record__k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* Fan of square banners: the variants from one brief. */
.mock--fan {
  gap: 0;
  padding: 9% 8%;
}

.mock--fan img {
  display: block;
  width: 38%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 16, 16, 0.14);
}

.mock--fan img:nth-child(1) { transform: rotate(-7deg) translateX(14%); }
.mock--fan img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-4%); }
.mock--fan img:nth-child(3) { transform: rotate(7deg) translateX(-14%); }

/* Three vertical clips side by side: a short-form feed. */
.mock--feed {
  gap: 4%;
  padding: 6% 8%;
}

.mock--feed img {
  display: block;
  width: 27%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 16, 16, 0.14);
}

.mock--feed img:nth-child(1),
.mock--feed img:nth-child(3) { transform: translateY(5%); }
.mock--feed img:nth-child(2) { transform: translateY(-5%); }

/* ---------- proof: numbers as hairline columns ---------- */

.proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
}

.proof__item {
  display: block;
  padding: 28px 0;
  color: var(--ink-muted);
  text-decoration: none;
}

.proof__item:hover {
  color: var(--ink);
}

/* Numerals in DM Sans: the Hubot Sans subset draws every zero slashed. */
.proof__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.proof__num small {
  font-size: 0.5em;
  font-weight: 500;
}

.proof__item p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
}

.proof__client {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.proof__client::after {
  content: " \2192";
}

.proof--hero .proof__grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.proof--hero .proof__num {
  font-size: clamp(36px, 3.4vw, 48px);
}

.proof--hero .proof__item p {
  font-size: 14px;
}

/* ---------- links under a tile grid (homepage trailer) ---------- */

.tiles-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.tiles-foot__link {
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
}

.tiles-foot__link:hover {
  text-decoration: underline;
}
