/* Fonts — self-hosted latin + latin-ext subsets (Poppins, Instrument Serif, JetBrains Mono) */
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/instrument-serif-400-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/instrument-serif-400-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Theme tokens — light by default, dark when <html data-theme="dark"> */
:root {
  --navy: #12172B;
  --cream: #F6F4F0;
  --orange: #FF4F2E;
  --orange-hover: #FF6646;

  --hero-bg: #F6F4F0;
  --adtech-bg: #FFFFFF;
  --studio-bg: #F6F4F0;
  --footer-bg: #EDEAE3;
  --header-bg: rgba(246, 244, 240, 0.92);
  --header-line: rgba(18, 23, 43, 0.08);

  --text: #12172B;
  --text-muted: #3C4358;
  --text-subtle: #4A5165;
  --accent: #E8431F;
  --line: rgba(18, 23, 43, 0.15);

  /* Inverse surface: hero card, pills, contact hover */
  --inv-bg: #12172B;
  --inv-hover: #1C2340;
  --inv-text: #F6F4F0;
  --inv-accent: #FF4F2E;

  --stripe-a: #ECE8E0;
  --stripe-b: #E5E1D8;
  --placeholder-text: #6B7185;
  --placeholder-line: rgba(18, 23, 43, 0.08);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --hero-bg: #12172B;
  --adtech-bg: #181E38;
  --studio-bg: #12172B;
  --footer-bg: #0D1122;
  --header-bg: rgba(18, 23, 43, 0.92);
  --header-line: rgba(246, 244, 240, 0.08);

  --text: #F6F4F0;
  --text-muted: #C9CCD8;
  --text-subtle: #B7BBCB;
  --accent: #FF4F2E;
  --line: rgba(246, 244, 240, 0.12);

  --inv-bg: #F6F4F0;
  --inv-hover: #FFFFFF;
  --inv-text: #12172B;
  --inv-accent: #E8431F;

  --stripe-a: #1A2038;
  --stripe-b: #161B31;
  --placeholder-text: #8C91A6;
  --placeholder-line: rgba(246, 244, 240, 0.08);

  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--hero-bg);
  color: var(--text);
  font-family: Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section { scroll-margin-top: 76px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.accent { color: var(--accent); }

/* One logo file per theme */
.logo-white { display: none; }
[data-theme="dark"] .logo-navy { display: none; }
[data-theme="dark"] .logo-white { display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-line);
}
.site-header .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .logo img { height: 29px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 14px;
  font-weight: 500;
}
.nav-tools { display: flex; align-items: center; gap: 8px; }
.btn-contact {
  background: var(--orange);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.btn-contact:hover { background: var(--inv-bg); color: var(--inv-text); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 720px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 8px; }
  .nav-anchor { display: none; }
  .btn-contact { padding: 10px 16px; }
}

/* Hero */
.hero { background: var(--hero-bg); }
.hero-intro {
  padding-top: clamp(72px, 11vw, 150px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.kicker {
  margin: 0 0 36px;
  font-size: 12px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--text-subtle);
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}
.lead {
  margin: clamp(40px, 5vw, 64px) 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-cards {
  padding-bottom: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border-radius: 20px;
}
.card-inv { background: var(--inv-bg); color: var(--inv-text); }
.card-inv:hover { background: var(--inv-hover); color: var(--inv-text); }
.card-inv .mono { color: var(--inv-accent); }
.card-orange { background: var(--orange); color: var(--navy); }
.card-orange:hover { background: var(--orange-hover); color: var(--navy); }
.card-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.card-cta { font-size: 15px; font-weight: 600; }

/* AdTech & Studio sections */
.section {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.adtech { background: var(--adtech-bg); }
.studio { background: var(--studio-bg); }
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.studio .section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--accent);
}
.section-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-aside { display: flex; flex-direction: column; gap: 20px; }
.section-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 48ch;
  text-wrap: pretty;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--inv-bg);
  color: var(--inv-text);
}
.key-art {
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--placeholder-line);
  margin-bottom: clamp(40px, 5vw, 64px);
  color: var(--placeholder-text);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line);
}
.feature {
  padding: 40px 32px 48px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature .mono { color: var(--accent); }
.feature h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 38ch;
  text-wrap: pretty;
}

/* Contact — brand orange in both themes */
.contact { background: var(--orange); color: var(--navy); }
.contact .wrap { display: flex; flex-direction: column; gap: 40px; }
.contact h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  max-width: 820px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--navy);
  color: var(--cream);
  padding: 24px 28px;
  border-radius: 16px;
}
.contact-card:hover { background: #1C2340; color: var(--cream); }
.contact-label { font-size: 13px; color: #B7BBCB; }
.contact-email { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--text-subtle); }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.site-footer img { height: 25px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }

/* Legal pages */
.legal { background: var(--hero-bg); }
.legal-body { max-width: 72ch; }
.legal-updated { margin: 16px 0 clamp(40px, 5vw, 64px); font-size: 14px; color: var(--text-subtle); }
.legal-body h2 {
  margin: 48px 0 16px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-facts {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 12px 24px;
  margin: 0 0 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.legal-facts dt { color: var(--text-subtle); }
.legal-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .legal-facts { grid-template-columns: 1fr; gap: 2px; }
  .legal-facts dd { margin-bottom: 12px; }
}
