/* =========================================================
   Shy Engelberg — Direction A: The Broadside
   Tokens & layout per IMPLEMENTATION_SPEC.md
   ========================================================= */

:root {
  --ink:      #1a1714;
  --paper:    #f3ece0;
  --card:     #f8f3ea;
  --plate:    #fffdf8;
  --line:     #cdbfa8;
  --line-ink: #1a1714;
  --muted:    #6e665b;
  --red:      #b03029;
  --red-soft: #e0867d;

  --ink-on-dark:   #efe7d9;
  --muted-on-dark: #d8cdbd;

  --maxw: 1180px;
  --frame: 1280px;
  --gutter: 64px;
  --header-h: 168px;

  --display: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --text:    'Libre Caslon Text', Georgia, 'Times New Roman', serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(90,81,69,.16) .7px, transparent .7px);
  background-size: 9px 9px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; }

/* shared inner frame so every section lines up to the same column */
.site-header > .masthead,
main > section,
.site-footer {
  max-width: var(--frame);
  margin-inline: auto;
}

/* ---------- rules / hairlines ---------- */
.rule { width: 100%; }
.rule--2 { height: 2px; background: var(--line-ink); }
.rule--1 { height: 1px; background: var(--line-ink); }
.mt3 { margin-top: 3px; }

/* ---------- kickers ---------- */
.kicker {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.kicker--red  { color: var(--red); letter-spacing: .34em; }
.kicker--soft { color: var(--red-soft); letter-spacing: .34em; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,236,224,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.masthead { padding: 22px var(--gutter) 14px; }
.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 0 10px;
}
.masthead__name {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 12px 0 13px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.primary-nav a { text-decoration: none; }
.primary-nav a:hover { color: var(--red); }
.primary-nav .dot { color: var(--red); }

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 40px var(--gutter) 64px;
  text-align: center;
}
.hero .kicker { margin-bottom: 22px; }
.hero__h1 {
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 92px);
  line-height: .96;
  letter-spacing: -.01em;
  margin: 0 auto 28px;
  max-width: 980px;
}
.domain-strip {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 34px;
  max-width: 920px;
  padding: 0;
}
.domain-strip li {
  border: 1px solid var(--line-ink);
  padding: 12px 22px;
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--card);
}

.hero-plate { width: 420px; max-width: 100%; margin: 0 auto 28px; }
.hero-plate__frame {
  border: 2px solid var(--line-ink);
  background: var(--card);
  padding: 14px;
}
.hero-plate__inner {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--plate);
  overflow: hidden;
}
.hero-plate__img,
.hero-plate__still {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-plate__still { display: none; }   /* shown only for reduced-motion */
.hero-plate__tag {
  position: absolute;
  left: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(26,23,20,.82);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 9px;
}
.hero-plate__tag .play { color: var(--red-soft); }
.hero-plate__cap {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.hero__sub {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
  color: #3a352e;
  max-width: 680px;
  margin: 0 auto 30px;
}

/* ---------- buttons ---------- */
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-block;
  border: 1px solid var(--line-ink);
  padding: 15px 26px;
  font-family: var(--text);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #2c2823; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--card); }
.btn--lg { padding: 17px 34px; font-size: 15px; }

.no-photo {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  font-style: italic;
}

/* =========================================================
   DARK BANDS (proof + when-to-call)
   ========================================================= */
.band-dark {
  background: var(--ink);
  color: var(--ink-on-dark);
}

/* ---------- proof ---------- */
.proof {
  padding: 56px var(--gutter) 60px;
  text-align: center;
}
.proof__h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  margin: 0 auto 30px;
  max-width: 840px;
}
.proof__body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-on-dark);
  max-width: 880px;
  margin: 0 auto 38px;
  column-count: 2;
  column-gap: 48px;
  text-align: left;
}
.proof__divider {
  height: 1px;
  background: rgba(239,231,217,.22);
  max-width: 760px;
  margin: 0 auto 32px;
}
.proof__label {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(239,231,217,.55);
  margin: 0 0 22px;
}

/* ---------- logo marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  opacity: .66;
  animation: logoMarquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-tile {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px; height: 60px;   /* matches the 2.6:1 logo canvas; padding is baked into the art */
  background: #fff;
}
.logo-tile img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(1);          /* no-op on the monochrome set; keeps any future colored logo unified */
  transition: opacity .2s ease;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 64px var(--gutter) 30px; }
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 8px;
}
.services__h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 52px);
  margin: 0;
}
.services__intro {
  font-size: 17px;
  line-height: 1.5;
  color: #4b453d;
  max-width: 380px;
  margin: 0;
}

.service {
  display: flex;
  gap: 50px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.service--reverse { flex-direction: row-reverse; }
.service__plate {
  flex: 1;
  border: 2px solid var(--line-ink);
  padding: 10px;
  background: var(--card);
}
.service__img-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--plate);
}
.service__img-frame img { width: 100%; height: 100%; object-fit: cover; }
.service__copy { flex: 1; }
.service__num {
  font-family: var(--display);
  font-size: 30px;
  color: var(--red);
  margin: 0 0 6px;
}
.service__title {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.08;
  margin: 0 0 16px;
}
.service__text {
  font-size: 18px;
  line-height: 1.6;
  color: #3a352e;
  margin: 0 0 18px;
}
.service__outcome {
  font-size: 16px;
  line-height: 1.5;
  color: #211f1c;
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin: 0;
}
.service__outcome span { font-weight: 700; }

/* =========================================================
   HOW IT ALL CONNECTS
   ========================================================= */
.connects {
  padding: 30px var(--gutter) 64px;
  display: flex;
  gap: 52px;
  align-items: center;
}
.connects__copy { flex: .9; }
.connects__h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 46px);
  line-height: 1.04;
  margin: 0 0 20px;
}
.connects__body { font-size: 18px; line-height: 1.6; color: #3a352e; margin: 0; }
.connects__plate {
  flex: 1.1;
  border: 2px solid var(--line-ink);
  background: var(--card);
  padding: 14px;
}
.connects__map {
  position: relative;
  height: 420px;
  border: 1px solid var(--line);
  background: var(--plate);
  overflow: hidden;
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg__red { stroke-dasharray: 6 6; animation: routeDash 6s linear infinite; }
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--card);
  border: 1px solid var(--line-ink);
  padding: 4px 8px;
  white-space: nowrap;
}

/* =========================================================
   WHEN TO CALL ME
   ========================================================= */
.callme { padding: 56px var(--gutter); }
.callme__h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 44px);
  margin: 0 0 14px;
}
.callme__intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-on-dark);
  max-width: 820px;
  margin: 0 0 30px;
}
.callme__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  border-top: 1px solid rgba(239,231,217,.22);
}
.callme__list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(239,231,217,.16);
}
.callme__n {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--red-soft);
  min-width: 46px;
}
.callme__list li span:last-child { font-size: 17px; line-height: 1.45; }

/* =========================================================
   FINAL CTA + FOOTER
   ========================================================= */
.final {
  padding: 72px var(--gutter) 40px;
  text-align: center;
}
.final__h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 860px;
}
.final__body {
  font-size: 19px;
  line-height: 1.55;
  color: #4b453d;
  max-width: 720px;
  margin: 0 auto 32px;
}

.final__alt {
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 0;
}
.final__alt a { color: var(--ink); text-underline-offset: 3px; }
.final__alt a:hover { color: var(--red); }

.site-footer { padding: 0 var(--gutter) 40px; }
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__links { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__sep { color: var(--red); }
.site-footer__row a { text-decoration: none; }
.site-footer__row a:hover { color: var(--red); }

/* =========================================================
   404
   ========================================================= */
.notfound { padding: 64px var(--gutter) 80px; text-align: center; }
.notfound__h1 {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 72px);
  line-height: .98;
  margin: 0 auto 24px;
  max-width: 880px;
}
.notfound__sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: #3a352e;
  max-width: 620px;
  margin: 0 auto 36px;
}
.notfound__plate { width: 540px; max-width: 100%; margin: 0 auto 36px; }
.notfound__frame { border: 2px solid var(--line-ink); background: var(--card); padding: 12px; }
.notfound__img { aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); background: var(--plate); }
.notfound__img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes heroFade   { 0%,40% { opacity: 0 } 52%,88% { opacity: 1 } 100% { opacity: 0 } }
@keyframes routeDash  { to { stroke-dashoffset: -120 } }
@keyframes logoMarquee{ from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .service, .service--reverse { flex-direction: column; gap: 28px; }
  .connects { flex-direction: column; gap: 36px; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 850px) {
  :root { --gutter: 28px; --header-h: 150px; }

  .masthead__bar { justify-content: space-between; padding-right: 4px; }
  .masthead__name { font-size: clamp(20px, 6vw, 32px); }
  .nav-toggle { display: block; position: static; transform: none; right: auto; flex: 0 0 auto; }
  .primary-nav {
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding: 0;
  }
  .primary-nav.is-open { max-height: 320px; padding: 12px 0; }
  .primary-nav .dot { display: none; }
  .primary-nav a { padding: 12px 0; }

  .proof__body { column-count: 1; }
  .callme__list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero { padding-top: 32px; }
  .domain-strip li { padding: 10px 16px; }
}

/* =========================================================
   ACCESSIBILITY — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-plate video { display: none; }       /* freeze the morph */
  .hero-plate__still { display: block; }      /* show a single still instead */
  .map-svg__red { animation: none; stroke-dasharray: none; }
  .marquee__track { animation: none; overflow-x: auto; }
  .marquee { overflow-x: auto; }
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
