/* Lucen Media. Mobile first. Fonts load from Google Fonts in each page's <head>. */

:root {
  --ink: #0d141a;
  --ink-2: #172029;
  --paper: #efeae7;
  --soft: #e4ddd9;
  --card: #f8f5f3;
  --white: #ffffff;
  --muted: #5b6670;
  --muted-on-ink: #a3adb6;
  --text-on-ink: #c9d1d8;
  --line: rgba(13, 20, 26, 0.12);
  --line-on-ink: rgba(255, 255, 255, 0.14);
  --accent: #73a8d3;
  --accent-hi: #8dbade;
  --warn: #ff8f7a;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: 20px;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 13vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-ink :focus-visible { outline-color: var(--accent); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.on-ink .eyebrow { color: var(--muted-on-ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.0313rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--line-on-ink); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 234, 231, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { height: 30px; width: auto; }
.logo--light img { filter: invert(1); }
.nav__links { display: none; gap: 28px; margin-left: auto; margin-right: 12px; }
.nav__links a {
  font-size: 0.9688rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 68px;
}
.hero--ink { background: var(--ink); color: var(--white); }
.hero--ink::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(115, 168, 211, 0.26), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 13ch; }
.hero--page { padding-bottom: 28px; }
.hero--page h1 { max-width: 15ch; }
.hero__sub {
  max-width: 35rem;
  margin-top: 22px;
  font-size: 1.1875rem;
  color: var(--muted);
}
.hero--ink .hero__sub { color: var(--text-on-ink); }
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

/* Logos */
.logos {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.logos .eyebrow { margin-bottom: 18px; }
.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}
.logos__row li {
  font-size: clamp(1.3rem, 4.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  opacity: 0.78;
}
.logos__row img { height: 30px; width: auto; }

/* Sections */
.section { padding: 68px 0; }
.section--ink { background: var(--ink); color: var(--white); }
.section--soft { background: var(--soft); }
.section--flush { padding-top: 0; }
.section h2 { margin-bottom: 34px; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.section--ink .lead { color: var(--text-on-ink); }

/* Clips */
.clips {
  display: grid;
  gap: 28px 20px;
  grid-template-columns: 1fr;
}
.clip__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
div.clip__frame { cursor: default; }
.clip__frame img,
.clip__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.clip__frame img {
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}
.clip__frame:hover img { transform: scale(1.03); opacity: 0.9; }
.clip__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.15s ease;
}
.clip__frame:hover .clip__play { transform: scale(1.06); }
.clip__play svg { width: 18px; height: 18px; margin-left: 3px; }
.clip__cap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.clip__cap .x { color: var(--muted); font-weight: 400; }
.clip__cap .creator { color: var(--muted); font-weight: 500; }

/* Case studies (hidden until data/case-studies.js has entries) */
.cases { display: grid; gap: 20px; }
.case {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.case h3 { margin-bottom: 8px; }
.case p { color: var(--muted); }
.case__stats { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 20px; }
.case__stats dt { font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.case__stats dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
.case a { display: inline-block; margin-top: 16px; }

/* Home: two audience cards */
.duo { display: grid; gap: 14px; grid-template-columns: 1fr; }
.duo__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 24px 28px;
  border-radius: 22px;
}
.duo__card h3 { font-size: clamp(2.4rem, 8vw, 3.5rem); line-height: 1; }
.duo__card p { font-size: 1.1875rem; max-width: 24rem; }
.duo__card .btn { margin-top: 14px; }
.duo__card--ink { background: var(--ink); color: var(--white); }
.duo__card--ink p { color: var(--text-on-ink); }
.duo__card--accent { background: var(--accent); color: var(--ink); }

/* Cards on ink (brand benefits, ways to work) */
.grid4, .grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.card h3 { font-size: 2.125rem; line-height: 1.02; margin-bottom: 12px; color: var(--accent); }
.card p { color: var(--text-on-ink); }

/* Why it works */
.why { display: grid; gap: 0; grid-template-columns: 1fr; }
.why__item { padding: 24px 0; border-top: 1px solid var(--line); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item h3 { margin-bottom: 8px; }
.why__item p { color: var(--muted); max-width: 34rem; }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; }
.steps li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--paper);
}
.steps__n {
  flex: none;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.9;
  min-width: 0.6em;
}
.steps p { font-size: 1.125rem; line-height: 1.35; }

/* Quotes */
.quotes { display: grid; gap: 16px; grid-template-columns: 1fr; }
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.quote blockquote p {
  font-size: clamp(1.25rem, 4.2vw, 1.5rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { color: var(--muted); font-size: 0.9688rem; }
.quote figcaption span { color: var(--ink); }
.quotes--creators { margin-top: 44px; }

/* Creators page */
.points { display: grid; gap: 0; }
.points li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.1875rem, 4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.points li:last-child { border-bottom: 1px solid var(--line); }
.roster { margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 1rem;
}
.statement {
  font-size: clamp(1.1875rem, 4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 44rem;
}

/* Embedded Google Form */
.formhead { margin-bottom: 28px; }
.formhead h2 { margin-bottom: 16px; }
.gform {
  margin-inline: calc(var(--gutter) * -1);
  background: var(--card);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.gform iframe {
  display: block;
  width: 100%;
  border: 0;
  /* height is set per form from data/site.js */
  height: 3600px;
}
.gform__fallback { padding: 20px var(--gutter); }

/* Pop-up */
.modal {
  width: min(100% - 24px, 460px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  overflow: auto;
}
.modal::backdrop { background: rgba(13, 20, 26, 0.62); }
.modal[open] { animation: modal-in 0.2s ease; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.modal__form { display: grid; gap: 18px; padding: 26px 22px 22px; }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); background: var(--soft); }

.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 0.9375rem; }
.field legend { margin-bottom: 8px; }
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--ink); }
.field .invalid { border-color: var(--warn) !important; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.pills.invalid .pill span { border-color: var(--warn); }
.pills--type { padding-right: 34px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { font-size: 0.9688rem; color: var(--muted); }
.form__msg:empty { display: none; }
.modal__notice {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 1rem;
}

/* Sticky "finish" bar */
.finish {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--line-on-ink);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  animation: finish-in 0.3s ease;
}
@keyframes finish-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.finish__in { display: flex; align-items: center; gap: 12px; }
.finish__text { flex: 1; font-size: 0.9375rem; line-height: 1.3; }
.finish__close {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-on-ink);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.finish__close:hover { color: var(--white); }
body.has-finish { padding-bottom: 72px; }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--muted-on-ink);
  padding: 48px 0 56px;
  font-size: 0.9688rem;
}
.footer__in { display: grid; gap: 28px; }
.footer .logo { color: var(--white); margin-bottom: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Subtle reveal on scroll. main.js only arms elements that start below the fold. */
.reveal--armed {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal--armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal--armed { opacity: 1; transform: none; transition: none; }
  .btn, .clip__frame img, .clip__play { transition: none; }
  .modal[open], .finish { animation: none; }
}

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero { padding: 84px 0 92px; }
  .hero--page { padding-bottom: 40px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .clips { grid-template-columns: repeat(2, 1fr); }
  .grid4, .grid2, .duo { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .duo__card { padding: 40px 36px 36px; }
  .modal__form { padding: 32px 30px 28px; }
  .footer__in { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 720px) {
  .gform {
    margin-inline: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__in { min-height: 72px; }
  .section { padding: 108px 0; }
  .section--flush { padding-top: 0; }
  .section h2 { margin-bottom: 50px; }
  .hero { padding: 112px 0 124px; }
  .hero--page { padding: 96px 0 24px; }
  .hero__sub { font-size: 1.3125rem; margin-top: 28px; }
  .logos { padding: 44px 0; }
  .logos__row { justify-content: space-between; }
  .clips { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .grid4 { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 30px 26px 36px; }
  .grid4 .card { min-height: 230px; }
  .grid2 .card { padding: 40px 36px 44px; }
  .grid2 .card h3 { font-size: 2.75rem; }
  .grid2 .card p { font-size: 1.125rem; max-width: 30rem; }
  .duo__card { padding: 52px 48px 48px; min-height: 340px; }
  .duo__card .btn { margin-top: auto; }
  .why { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
  .why__item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .why__item { padding: 30px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; align-items: flex-start; gap: 40px; padding: 26px 24px 30px; }
  .steps__n { font-size: 5rem; }
  .quote { padding: 44px 40px; }
  .points li { padding: 26px 0; }
  .formhead { margin-bottom: 40px; }
}
