/* ==========================================================
   TwoTallyMedia Co. — shared styles
   Monochrome palette. Edit the variables below to re-theme.
   ========================================================== */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-600: #52525b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 100%;
  --gutter: clamp(24px, 4.5vw, 96px);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  /* 16px up to ~1070px wide, then grows with the screen so type fills large displays */
  font-size: clamp(16px, 0.75vw + 8px, 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 110px 0;
}

.section--gray {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray-600);
  max-width: 40rem;
}

.section-head {
  max-width: 45rem;
  margin-bottom: 56px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--black);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: #262626;
}

.btn--light {
  background: transparent;
  color: var(--black);
}

.btn--light:hover {
  background: var(--black);
  color: var(--white);
}

.btn--invert {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.logo img {
  height: 30px;
  width: auto;
}

/* matches the logo lockup: bold "twotally", light "media" */
.logo-word {
  font-weight: 400;
}

.logo-word b {
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-links .btn {
  padding: 10px 20px;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  padding: 130px 0 110px;
}

.hero h1 {
  max-width: 56.25rem;
}

.page-hero {
  padding: 110px 0 70px;
  border-bottom: 1px solid var(--gray-200);
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--black);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.card p {
  color: var(--gray-600);
}

.card-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 40px;
  display: block;
}

.text-link {
  font-weight: 600;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
}

.step {
  padding: 32px 32px 0 0;
}

.step + .step {
  padding-left: 32px;
  border-left: 1px solid var(--gray-200);
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 20px;
}

.step p {
  color: var(--gray-600);
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.stat strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--gray-600);
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  padding: 80px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0;
  max-width: 38.75rem;
}

.cta p {
  color: var(--gray-400);
  margin: 14px 0 0;
}

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

.service-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-block:last-child {
  border-bottom: 0;
}

.service-block .eyebrow {
  margin-bottom: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 14px;
}

.checklist li:first-child {
  border-top: 1px solid var(--gray-200);
}

.checklist li::before {
  content: "→";
  font-weight: 600;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-600);
}

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

.work-card {
  display: block;
}

.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 18px;
  overflow: hidden;
  transition: transform 0.3s;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card:hover .work-thumb {
  transform: scale(0.98);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.work-meta h3 {
  margin: 0 0 4px;
}

.work-meta p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin: 0;
}

.work-result {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Team ---------- */

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 24px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

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

.contact-email {
  display: inline-block;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--black);
  margin: 10px 0 40px;
  word-break: break-word;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 48px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 22px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--black);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

  .step,
  .step + .step {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 0;
  }

  .cta {
    padding: 56px 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .page-hero {
    padding: 70px 0 50px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px var(--gutter) 24px;
    display: none;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .nav-links .btn {
    display: inline-flex;
    margin-top: 12px;
    padding: 12px 24px;
  }
}

/* ---------- Client carousel (work.html) ---------- */

.clients-carousel {
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  background: var(--gray-100);
}

/* ---------- Home hero with curved image row (index.html) ---------- */

.home-hero {
  position: relative;
  height: calc(100svh - 73px);
  min-height: 640px;
  overflow: hidden;
}

.home-hero-band {
  position: absolute;
  inset: 0;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 48px;
  pointer-events: none;
}

.home-hero-content a {
  pointer-events: auto;
}

.home-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  max-width: 56.25rem;
  margin: 0 auto;
}

.home-hero .lead {
  margin: 0 auto;
  max-width: 35rem;
}

.home-hero .btn-row {
  justify-content: center;
  margin-top: 24px;
}

/* Plain-CSS versions of the few Tailwind classes the TiltedGridHero component uses */
.tgh {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.tgh .absolute { position: absolute; }
.tgh .inset-0 { inset: 0; }
.tgh .top-0 { top: 0; }
.tgh .pointer-events-none { pointer-events: none; }
.tgh .overflow-hidden { overflow: hidden; }
.tgh .transition-opacity { transition: opacity 0.5s; }
.tgh .bg-muted { background: var(--gray-100); }
.tgh .rounded-l-lg { border-radius: 10px 0 0 10px; }
.tgh .rounded-r-lg { border-radius: 0 10px 10px 0; }
.tgh .max-w-none { max-width: none; }
.tgh .object-cover { object-fit: cover; }

@media (max-width: 760px) {
  .home-hero {
    min-height: 600px;
  }
  .home-hero-content {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}
