/* Motion Ads Portfolio — service pages, "Ink & Paper" design system v3 */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=IBM+Plex+Mono:wght@500;600;700&family=Inter:wght@400..900&display=swap");

:root {
  --paper: #f6f1e6;
  --paper-2: #efe6d3;
  --ink: #1c1712;
  --ink-soft: #4a4038;
  --ink-muted: #7c7266;
  --line: rgba(28, 23, 18, 0.14);
  --line-strong: rgba(28, 23, 18, 0.3);
  --paper-on-dark: #f6f1e6;
  --muted-on-dark: rgba(246, 241, 230, 0.66);
  --rust: #c1502e;
  --rust-deep: #9c3d21;
  --r: 3px;
  --shadow-lift: 8px 8px 0 var(--ink);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rust); color: var(--paper); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

.seo-header,
.seo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 230, 0.94);
}
.seo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.seo-header nav { display: flex; gap: 20px; }
.seo-header nav a {
  position: relative;
  padding-bottom: 3px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.seo-header nav a:hover { color: var(--rust); }
.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
}
.seo-brand span {
  position: relative;
  width: 26px;
  aspect-ratio: 1;
  border-radius: var(--r);
  background: var(--rust);
}
.seo-brand span::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--paper);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px clamp(20px, 5vw, 74px) 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--rust); }

.seo-label {
  margin: 0 0 14px;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { max-width: 920px; margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--ink-muted); line-height: 1.7; }

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 74px) clamp(72px, 9vw, 132px);
}
.service-lead { max-width: 760px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.service-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.seo-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.seo-button:hover { transform: translate(-2px, -2px); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.seo-button.primary {
  border-color: var(--rust);
  background: var(--rust);
  color: var(--paper);
}
.seo-button.primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

.service-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
}
.service-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #050403; }
.service-media figcaption { padding: 22px; border-top: 1px solid var(--line); }
.service-media figcaption span {
  display: block;
  margin-bottom: 6px;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.service-media figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.service-media figcaption p { margin: 8px 0 0; font-size: 0.95rem; }

.answer-band,
.service-section,
.service-cta,
.hub-hero,
.hub-grid { padding-right: clamp(20px, 5vw, 74px); padding-left: clamp(20px, 5vw, 74px); }

.answer-band {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-on-dark);
}
.answer-band .seo-label { color: var(--rust); }
.answer-band h2 { max-width: 860px; }
.answer-band > p:last-child { max-width: 980px; margin-bottom: 0; color: var(--muted-on-dark); font-size: clamp(1.1rem, 1.8vw, 1.55rem); font-family: var(--font-display); font-style: italic; }

.service-section { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); border-bottom: 1px solid var(--line); }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); gap: 48px; align-items: start; }

.fit-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fit-list li {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}
.fit-list li::before { content: "+"; margin-right: 12px; color: var(--rust); font-family: var(--font-mono); }

.section-intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.4fr); gap: 30px; align-items: end; margin-bottom: 44px; }
.section-intro .seo-label { grid-column: 1 / -1; margin-bottom: -18px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p:last-child { margin-bottom: 0; }

.deliverable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: deliv; }
.deliverable-grid article {
  position: relative;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  counter-increment: deliv;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}
.deliverable-grid article:hover { transform: translate(-5px, -5px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.deliverable-grid article::before {
  content: counter(deliv, decimal-leading-zero);
  position: absolute;
  top: 4px;
  right: 10px;
  color: rgba(28, 23, 18, 0.07);
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
}
.deliverable-grid span {
  position: relative;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.workflow-list > li > span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.deliverable-grid h3 { position: relative; margin-top: 38px; color: var(--ink); }

.workflow-section { background: var(--paper-2); }
.workflow-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.workflow-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
}
.workflow-list h3 { margin-bottom: 8px; color: var(--ink); }
.workflow-list p { max-width: 780px; margin-bottom: 0; }

.faq-list { max-width: 1080px; margin-left: auto; display: grid; gap: 10px; counter-reset: sfaq; }
.faq-list details {
  counter-increment: sfaq;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  transition: border-color 180ms ease;
}
.faq-list details:hover { border-color: var(--line-strong); }
.faq-list details[open] { border-color: var(--ink); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 60px 22px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: counter(sfaq, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink) 0 0) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 1.5px 11px no-repeat;
  transform: translateY(-50%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}
.faq-list details[open] summary::after {
  background: linear-gradient(var(--rust) 0 0) center / 11px 1.5px no-repeat;
  border-color: var(--rust);
  transform: translateY(-50%) rotate(180deg);
}
.faq-list details p { max-width: 850px; padding: 0 22px 24px 58px; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}
.related-card:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.related-card span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.related-card strong {
  display: block;
  margin: 42px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.service-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: clamp(24px, 4vw, 56px);
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-radius: calc(var(--r) * 2);
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(193, 80, 46, 0.18), transparent 60%),
    var(--ink);
  color: var(--paper-on-dark);
}
.service-cta .seo-label { color: var(--rust); }
.service-cta h2 { max-width: 1000px; margin-bottom: 18px; }
.service-cta p { max-width: 720px; margin-bottom: 0; color: var(--muted-on-dark); }
.service-cta .seo-button:not(.primary) {
  border-color: rgba(246, 241, 230, 0.4);
  color: var(--paper-on-dark);
}
.service-cta .seo-button:not(.primary):hover {
  border-color: var(--paper-on-dark);
  box-shadow: 4px 4px 0 rgba(246, 241, 230, 0.3);
}

.seo-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.seo-footer p { margin: 0; color: var(--ink-muted); font-size: 0.8rem; }

.hub-hero {
  min-height: 58vh;
  padding-top: clamp(100px, 13vw, 190px);
  padding-bottom: 80px;
}
.hub-hero h1 { max-width: 1050px; }
.hub-hero > p:last-child { max-width: 780px; font-size: 1.1rem; }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(80px, 10vw, 150px); }
.service-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}
.service-card:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.4) sepia(0.06) contrast(1.02);
  transition: filter 480ms ease, transform 480ms ease;
}
.service-card:hover img { filter: grayscale(0) sepia(0); transform: scale(1.03); }
.service-card span, .service-card h2, .service-card p { display: block; margin-right: 22px; margin-left: 22px; }
.service-card span {
  margin-top: 20px;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.service-card h2 { margin-top: 10px; margin-bottom: 12px; color: var(--ink); font-size: 1.4rem; }
.service-card p { margin-bottom: 24px; font-size: 0.95rem; }

@media (max-width: 980px) {
  .service-hero { grid-template-columns: 1fr; }
  .deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .seo-header nav a:first-child { display: none; }
  .service-hero { min-height: auto; padding-top: 56px; }
  h1 { font-size: clamp(2.3rem, 12vw, 3.8rem); }
  .split-section, .section-intro { grid-template-columns: 1fr; }
  .section-intro .seo-label { margin-bottom: 0; }
  .deliverable-grid, .related-grid, .hub-grid { grid-template-columns: 1fr; }
  .workflow-list li { grid-template-columns: 42px 1fr; padding: 24px 18px; }
  .service-cta { margin: 16px 12px; align-items: flex-start; flex-direction: column; }
  .seo-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
