/* Trademark Media Co. — black & white site
   Colours and type follow the "TM OG Copy" Wix design. */

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #5c5c5c;
  --accent: #e9c46a;            /* only used for small icons, like the Wix copy */
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
.h-xl { font-size: clamp(32px, 9.4vw, 112px); font-weight: 400; }
.h-lg { font-size: clamp(34px, 5.6vw, 72px); }
.h-md { font-size: clamp(24px, 3vw, 36px); }
.h-sm { font-size: clamp(18px, 2vw, 22px); }
.thin { font-family: var(--body); font-weight: 400; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
section { padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em;
}
.logo span { display: block; }
.nav { display: flex; gap: clamp(20px, 3.4vw, 48px); }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--text); }
.socials { display: flex; gap: 14px; align-items: center; }
.socials a { color: var(--accent); display: inline-flex; }
.socials svg { width: 18px; height: 18px; }
.menu-btn {
  display: none; background: none; border: 0; color: var(--text);
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--text); border-radius: 2px;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Media placeholders (swap for R2 videos later) ---------- */
.media {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, #242424 0%, #141414 60%, #0e0e0e 100%);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.media::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media.has-media::after { content: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; align-items: center; padding: 120px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero .hero-bg {
  position: absolute; inset: 0; z-index: 0; border: 0; aspect-ratio: auto;
}
.hero .hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,11,.35) 0%, rgba(11,11,11,.75) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-weight: 400; margin-bottom: 36px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split p { margin: 0 0 20px; color: var(--muted); }
.about-foot { display: flex; align-items: center; gap: 24px; margin-top: 72px; }
.about-foot .divider { flex: 1; }

/* ---------- What we create ---------- */
.creates { display: grid; gap: clamp(56px, 8vw, 96px); margin-top: 72px; }
.create { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.create .kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.create h3 { margin-bottom: 12px; }
.create p { color: var(--muted); margin: 0; max-width: 40ch; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 88px); margin-top: 56px; align-items: start; }
.founder .media { aspect-ratio: 4 / 5; }
.founder p { font-size: clamp(17px, 1.6vw, 20px); color: #cfcfcf; margin: 0 0 32px; }

/* ---------- Page intro ---------- */
.page-intro { padding: clamp(80px, 11vw, 150px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-intro p { color: var(--muted); max-width: 60ch; margin: 24px 0 0; font-size: 18px; }

/* ---------- Projects ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat { background: var(--bg); padding: clamp(28px, 4vw, 48px); }
.cat .num { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.cat h3 { margin: 14px 0 12px; }
.cat p { color: var(--muted); margin: 0; font-size: 16px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 56px; }
.project h3 { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin: 14px 0 0; display: flex; gap: 12px; }
.project h3 .n { color: var(--dim); }

/* ---------- Services / pricing ---------- */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.rate { background: var(--bg); padding: 32px; }
.rate .price { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 10px 0 14px; }
.rate p { color: var(--muted); margin: 0; font-size: 15px; }
.plans-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.plans-head p { color: var(--muted); max-width: 52ch; margin: 16px 0 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); padding: 32px 28px; background: var(--bg-2); }
.plan.featured { border-color: var(--text); }
.plan .badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--text); color: var(--bg);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px;
}
.plan h3 { font-family: var(--display); font-size: 21px; line-height: 1.15; text-transform: uppercase; margin: 0; letter-spacing: -0.01em; min-height: 2.3em; }
@media (max-width: 960px) { .plan h3 { min-height: 0; } }
.plan .was { color: var(--dim); text-decoration: line-through; font-size: 15px; margin-top: 18px; }
.plan .now { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.plan .now small { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15px; color: #d6d6d6; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--muted); }
.plan .btn { width: 100%; }
.provisions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.provisions ul { padding-left: 18px; color: var(--muted); margin: 16px 0 0; }
.provisions li { margin-bottom: 8px; }
.provisions p { color: var(--muted); margin: 16px 0 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); background: var(--bg-2); }
.review .stars { letter-spacing: 4px; color: var(--text); }
.review blockquote { margin: 18px 0 28px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }
.review .who { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.review .what { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid #3a3a3a; border-radius: 0;
  padding: 10px 0; font: inherit; font-size: 16px;   /* 16px stops iOS zoom */
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.6em; color: var(--muted); }
.details dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.details dd { margin: 6px 0 0; font-size: 18px; }
.details a:hover { text-decoration: underline; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--display); font-size: 20px; text-transform: uppercase; margin: 48px 0 12px; }
.prose p, .prose li { color: #cfcfcf; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: end; }
.footer-top h2 { max-width: 14ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(24px, 4vw, 64px); }
.footer-cols h4 { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.footer-cols p { margin: 0; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer-bottom .follow { display: flex; align-items: center; gap: 14px; letter-spacing: 0.1em; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Scroll reveal (grey → white, like the Wix copy) ---------- */
.reveal { opacity: 0.18; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .plans, .rates { grid-template-columns: 1fr; }
  .plans { gap: 28px; }
  .provisions, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav a { font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header .socials { display: none; }
  .split, .create, .founder, .cat-grid, .project-grid, .reviews { grid-template-columns: 1fr; }
  .create .media { order: -1; }
  .footer-cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* Real media */
.project .media video { object-fit: contain; background: #000; }
.media img { transition: transform .8s ease; }
.create:hover .media img { transform: scale(1.03); }
.hero .hero-bg video { position: absolute; inset: 0; }

/* Vertical reels (9:16) */
.reel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.media.tall { aspect-ratio: 9 / 16; }
.project .media.tall video { object-fit: cover; }
.reel-grid .project h3 { font-size: 13px; }
@media (max-width: 960px) { .reel-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }
