/* ============================================================
   SYNOVELY — shared stylesheet
   Font note: Britannic Bold and Franklin Gothic Heavy from the
   brand guide are commercial desktop fonts. Until a webfont
   license is confirmed, this file uses free, open-license
   stand-ins that carry a similar personality:
     - Fraunces      -> in place of Britannic Bold (display serif)
     - Archivo/Black -> in place of Franklin Gothic Heavy (utility)
     - Space Mono     -> for the typewriter tagline treatment
   Swap the @import below and the --font-* variables once the
   real fonts are licensed for web embedding.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,900;1,9..144,600&family=Archivo:wght@400;500;600;700&family=Archivo+Black&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* brand colors, straight from the guide */
  --structure: #1F4E79;
  --sync: #278F65;
  --novelty: #C45910;
  --white: #FFFFFF;
  --cool-gray: #F6F6F7;
  --ink: #0F0F12;

  /* soft tints for card fills / hover states, derived from the above */
  --structure-tint: #1F4E7914;
  --sync-tint: #278F6514;
  --novelty-tint: #C4591014;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-utility: 'Archivo Black', 'Archivo', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --max-width: 1200px;
  --grid-fade-strong: 0.5;
  --grid-fade-quiet: 0.15;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cool-gray);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ----------------------------------------------------------
   Two-tier grid background
   "A faint two-tier grid sits behind the site everywhere...
   Fade it further, or drop it entirely, behind any section
   with dense body copy so it never competes with reading."
   ---------------------------------------------------------- */
.grid-bg {
  position: relative;
  background-color: var(--cool-gray);
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15,15,18,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,15,18,0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(15,15,18,0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,15,18,0.14) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  opacity: var(--grid-fade-strong);
}
.grid-bg--quiet::before { opacity: var(--grid-fade-quiet); }
.grid-bg--none::before { display: none; }

/* ----------------------------------------------------------
   Nav
   ---------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,246,247,0.97);
  border-bottom: 1px solid rgba(15,15,18,0.08);
}
/* Note: intentionally no backdrop-filter here. It creates a new
   containing block for fixed-position descendants (like the
   mobile nav panel below), which traps them inside this header's
   own small box instead of the full viewport. A near-opaque
   background reads almost the same without that side effect. */
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 4px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--novelty);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--novelty); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--novelty);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,89,16,0.3); background: #A94C0D; }
.btn-primary:focus-visible { outline: 3px solid var(--structure); outline-offset: 2px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(15,15,18,0.25);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(15,15,18,0.04); }
.btn-secondary:focus-visible { outline: 3px solid var(--structure); outline-offset: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ----------------------------------------------------------
   Eyebrow / section labels
   ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--structure);
  margin: 0 0 16px;
}
.eyebrow.on-novelty { color: var(--novelty); }
.eyebrow.on-sync { color: var(--sync); }

.section-heading {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-heading h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-heading p { font-size: 18px; color: #4a4a4d; margin: 0; }

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  padding-top: 72px;
  padding-bottom: 48px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
}
.hero-copy .hero-sub {
  font-size: 19px;
  color: #4a4a4d;
  max-width: 44ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stage {
  position: relative;
  height: 440px;
  touch-action: none;
  isolation: isolate; /* gives the blended letters their own stacking context, so
                          mix-blend-mode composites consistently across browsers
                          instead of reaching down to the page background */
}
.hero-stage-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7a7a7d;
  text-align: center;
  pointer-events: none;
}
.ribbon {
  position: absolute;
  cursor: grab;
  user-select: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 20px rgba(15,15,18,0.12));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.ribbon:active { cursor: grabbing; transition: none; }
.ribbon img { width: 100%; height: auto; display: block; pointer-events: none; }

.ribbon--s { width: 113px; top: 34%; left: 0%; }
.ribbon--n { width: 111px; top: 28%; left: 16%; }
.ribbon--v { width: 123px; top: 36%; left: 31%; }
.ribbon--l { width: 91px;  top: 41%; left: 47%; }
.ribbon--y { width: 123px; top: 32%; left: 60%; }

@media (prefers-reduced-motion: no-preference) {
  .ribbon.idle--structure { animation: bob-a 7s ease-in-out infinite; }
  .ribbon.idle--sync { animation: bob-b 8s ease-in-out infinite; }
  .ribbon.idle--novelty { animation: bob-c 6.5s ease-in-out infinite; }
}
@keyframes bob-a { 0%,100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(6px,-10px) rotate(-11deg); } }
@keyframes bob-b { 0%,100% { transform: translate(0,0) rotate(10deg); } 50% { transform: translate(-8px,8px) rotate(7deg); } }
@keyframes bob-c { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(5px,9px) rotate(-1deg); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { height: 320px; margin-top: 8px; }
  .ribbon--s { width: 20vw; max-width: 88px; }
  .ribbon--n { width: 20vw; max-width: 86px; }
  .ribbon--v { width: 22vw; max-width: 96px; }
  .ribbon--l { width: 16vw; max-width: 70px; }
  .ribbon--y { width: 22vw; max-width: 96px; }
}

/* ----------------------------------------------------------
   Pain points
   ---------------------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(15,15,18,0.1);
  border-radius: 14px;
  padding: 20px 20px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.pain-card:hover { transform: translateY(-3px); border-color: rgba(15,15,18,0.25); }
.pain-card:focus-visible { outline: 3px solid var(--structure); outline-offset: 2px; }
.pain-card .pain-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
}
.pain-card[data-service="ai"] .pain-tag { background: var(--structure-tint); color: var(--structure); }
.pain-card[data-service="optimization"] .pain-tag { background: var(--sync-tint); color: var(--sync); }
.pain-card[data-service="ads"] .pain-tag { background: var(--novelty-tint); color: var(--novelty); }

.pain-card.is-selected { background: var(--ink); border-color: var(--ink); }
.pain-card.is-selected p { color: var(--white); }
.pain-card.is-selected .pain-tag { background: rgba(255,255,255,0.16); color: var(--white); }
.pain-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 16px; right: 16px;
  color: var(--white);
  font-size: 14px;
}

.pain-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1.5px solid rgba(15,15,18,0.1);
  border-radius: 14px;
  padding: 20px 24px;
}
.pain-summary[hidden] { display: none; }
.pain-summary p { margin: 0; font-size: 15px; }
.pain-summary #selected-list { font-weight: 700; }

/* ----------------------------------------------------------
   Services
   ---------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  border-top: 5px solid transparent;
}
.service-card.structure { border-top-color: var(--structure); }
.service-card.sync { border-top-color: var(--sync); }
.service-card.novelty { border-top-color: var(--novelty); }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: #4a4a4d; font-size: 15.5px; }
.service-card ul { margin: 16px 0 0; padding-left: 18px; color: #4a4a4d; font-size: 15px; }
.service-card li { margin-bottom: 6px; }

/* ----------------------------------------------------------
   Work / tiers
   ---------------------------------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1.5px solid rgba(15,15,18,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier-card .eyebrow { margin-bottom: 8px; }
.tier-card h3 { font-size: 24px; margin-bottom: 4px; }
.tier-card .tier-price { font-family: var(--font-mono); font-size: 14px; color: #4a4a4d; margin-bottom: 16px; }
.tier-card p { color: #4a4a4d; font-size: 15px; }
.tier-placeholder {
  border: 1.5px dashed rgba(15,15,18,0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #7a7a7d;
  font-size: 14px;
  margin-top: 16px;
}

/* ----------------------------------------------------------
   Work page tier media (video embeds, flower widget, scroll preview)
   ---------------------------------------------------------- */
.tier-media { margin: 18px 0 6px; }

.tier-media--video { border-radius: 12px; overflow: hidden; background: #000; }
.tier-media--video video { display: block; width: 100%; height: auto; }
.tier-media--portrait { max-width: 180px; margin-left: auto; margin-right: auto; }
.tier-media--wide { width: 100%; }

.tier-media--split { display: flex; gap: 12px; align-items: stretch; }
.tier-media-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7a7a7d;
  text-align: center;
  margin: 0;
}

.flower-widget {
  flex: 0 0 38%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cool-gray);
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}
.flower-widget:active { cursor: grabbing; }
.flower-widget svg { width: 82%; height: 82%; }
/* Idle + drag spin is driven by the Web Animations API in main.js
   (initFlowerSpinner), not CSS, so the idle rotation can resume
   from wherever a drag or coast left off instead of snapping back
   to a fixed keyframe start. */
#flower-petals { transform-origin: 120px 120px; will-change: transform; }

.scroll-preview {
  flex: 1;
  min-height: 160px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,15,18,0.12);
  background: var(--white);
}
.browser-chrome {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  background: #ececec;
}
.browser-chrome span { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
/* Static window: the GIF itself carries the scroll animation
   frame-by-frame, so this is just a fixed viewport onto it, no
   CSS panning on top. */
.shot-wrap { position: absolute; inset: 20px 0 0 0; overflow: hidden; }
.shot-wrap img,
.shot-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 520px) {
  .tier-media--split { flex-direction: column; }
  .flower-widget { flex: none; width: 150px; margin: 0 auto; }
}

/* ----------------------------------------------------------
   Quote (used on About) — static for now. The DD.NYC-style
   scroll color-fill effect is one of the two deferred
   interactive features; this class is ready for that JS to
   hook into later (fade rgba(15,15,18,0.18) -> var(--ink)).
   ---------------------------------------------------------- */
.quote-block {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 880px;
}

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1.5px solid rgba(15,15,18,0.1);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #4a4a4d;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(15,15,18,0.16);
  background: var(--cool-gray);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--structure);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(15,15,18,0.16);
  cursor: pointer;
  background: var(--white);
}
.interest-chip input { margin: 0; }
.interest-chip.is-checked {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
}
.form-status[data-state="success"] { color: var(--sync); }
.form-status[data-state="error"] { color: var(--novelty); }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(15,15,18,0.1);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-logo img { height: 56px; width: auto; margin-bottom: 12px; }
.footer-logo p { color: #6b6b6e; font-size: 14px; max-width: 32ch; margin: 0; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #7a7a7d;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--novelty); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8a8a8d;
  padding-top: 24px;
  border-top: 1px solid rgba(15,15,18,0.08);
}

/* ----------------------------------------------------------
   Page header (for interior pages)
   ---------------------------------------------------------- */
.page-header { padding: 64px 0 0; }
.page-header .eyebrow { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 720px; }
.page-header .lede { font-size: 18px; color: #4a4a4d; max-width: 56ch; }

/* ----------------------------------------------------------
   Responsive nav
   ---------------------------------------------------------- */
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--cool-gray);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 22px;
    font-size: 19px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-actions { display: none; }
  .nav-links .btn-primary { margin-top: 8px; }
}

/* ----------------------------------------------------------
   "For you" page — unlisted, personalized video share.
   Not linked from any nav; reached only by direct URL.
   ---------------------------------------------------------- */
.foryou-hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
  text-align: center;
}
.foryou-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.foryou-blob--a { width: 340px; height: 340px; background: var(--structure); top: -60px; left: 8%; }
.foryou-blob--b { width: 300px; height: 300px; background: var(--sync); bottom: -40px; right: 10%; }
.foryou-blob--c { width: 220px; height: 220px; background: var(--novelty); top: 40%; left: 50%; transform: translateX(-50%); }

.foryou-hero .wrap { position: relative; z-index: 1; }
.foryou-hero .eyebrow { justify-content: center; display: flex; }
.foryou-hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 620px;
  margin: 0 auto 14px;
}
.foryou-hero .foryou-sub {
  font-size: 18px;
  color: #4a4a4d;
  max-width: 46ch;
  margin: 0 auto 44px;
}

.foryou-frame-group {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.foryou-frame-wrap {
  position: relative;
  display: inline-block;
}
.foryou-frame-caption {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7a7d;
}
.foryou-frame {
  position: relative;
  width: 300px;
  max-width: 80vw;
  height: 0;
  padding-bottom: 177.78%; /* 16/9 inverted -> locks in a 9:16 portrait box on every browser */
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(15,15,18,0.22), 0 0 0 6px var(--white), 0 0 0 8px rgba(15,15,18,0.08);
}
.foryou-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foryou-frame--wide {
  width: 640px;
  max-width: 90vw;
  padding-bottom: 56.25%; /* 9/16 -> locks in a 16:9 landscape box instead */
}

.foryou-cta { margin-top: 44px; }
.foryou-cta p { color: #6b6b6e; font-size: 14px; margin-bottom: 14px; }
