/* ===========================================================
   Boxer Media Services Corp
   One stylesheet, no preprocessor.
   =========================================================== */

/* ============================================================
   BOXER MEDIA — main.css
   Direction A1 · oxblood
   ============================================================ */

:root {
  --ink:      #14161a;
  --paper:    #fbfaf7;
  --surface:  #f3f0ea;
  --cream:    #f2ece0;   /* warmer than surface, so it still reads cream on navy */
  --muted:    #5a6472;
  --oxblood:  #7c2029;
  --oxblood-lift: #9a2c36;
  --rule:     #e0dcd3;

  /* Dark sections: header, hero, reviews band */
  --navy:      #0b1c30;
  --navy-2:    #102743;
  --brass:     #c79a4a;
  --dim:       #9aa7b8;
  --rule-dark: rgba(251, 250, 247, .14);

  --display: "Archivo", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --utility: "IBM Plex Mono", monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 44px);
  --band: clamp(56px, 9vw, 108px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--band) 0; }
.band-surface { background: var(--surface); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow-rule {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
}
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  max-width: 22em;
}
.section-lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 36em;
  margin: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 28, 48, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-dark);
}
.header-row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo slot — drop the real logo file in here */
.logo-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo-img { height: 34px; width: auto; display: block; }
@media (max-width: 420px) { .logo-img { height: 29px; } }

.nav { margin-left: auto; display: none; gap: 26px; align-items: center; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Direct-child scoping only. A bare "nav ul" would also match the dropdown list. */
.nav > ul > li { position: relative; }

.nav-link {
  display: inline-block;
  text-decoration: none;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  cursor: pointer;
  transition: border-color .18s ease;
}
.nav-link:hover { border-bottom-color: var(--brass); }
.nav-link[aria-expanded="true"] { border-bottom-color: var(--brass); }

/* The gap between the trigger and the panel has to stay hoverable or
   :hover dies crossing it. Padding extends the hit box, negative margin
   cancels the layout shift. Same fix as the Stern nav. */
.has-dropdown { padding-bottom: 16px; margin-bottom: -16px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 236px;
  background: var(--navy);
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a {
  display: block;
  text-decoration: none;
  font-size: 14.5px;
  color: var(--paper);
  padding: 10px 18px;
  border-left: 2px solid transparent;
  transition: background .16s ease, border-color .16s ease;
}
.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(251, 250, 247, .06);
  border-left-color: var(--brass);
}

.nav-cta {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--brass);
  padding: 10px 18px;
  border-radius: 2px;
  transition: background .18s ease, color .18s ease;
}
.nav-cta:hover { background: var(--paper); }

/* Mobile: services nested inline, no dropdown mechanics at all */
.mobile-sub { list-style: none; margin: 0 0 4px; padding: 0 0 6px 16px; }
.mobile-sub a {
  font-size: 15px;
  font-weight: 400;
  color: var(--dim);
  padding: 9px 0;
  border-bottom: 0;
}
.mobile-sub-label {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 16px 0 2px;
}

.header-tel {
  font-family: var(--utility);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  display: none;
}

.menu-toggle {
  margin-left: auto;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .2s ease;
}
.menu-toggle::before { top: 15px; }
.menu-toggle::after  { top: 22px; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after  { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rule-dark);
  background: var(--navy);
  padding: 10px var(--gutter) 22px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  color: var(--paper);
  border-bottom: 1px solid var(--rule-dark);
}
.mobile-nav .mobile-tel {
  font-family: var(--utility);
  color: var(--brass);
  border-bottom: 0;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-tel { display: inline-block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(46px, 7vw, 88px) 0 clamp(44px, 7vw, 76px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--paper);
}

/* Same pattern as the Stern page banner: true grid, stretch, no ambiguity. */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  min-width: 0;
  background: rgba(251, 250, 247, .05);
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  position: absolute;
  inset: 0;
}
@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-image { min-height: 220px; }
}

.hero-statement {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(33px, 5.4vw, 55px);
  line-height: 1.01;
  letter-spacing: -.036em;
  margin: 0 0 22px;
}
.hero-statement em { font-style: normal; color: var(--brass); }
.hero-sub {
  font-size: 17.5px;
  color: var(--dim);
  margin: 0 0 30px;
}

/* Dark-hero overrides for the shared components */
.hero .eyebrow { color: var(--dim); }
.hero .eyebrow-rule { border-bottom-color: var(--rule-dark); }
.hero .shot-placeholder { color: var(--dim); line-height: 1.9; }
.hero .btn { background: var(--brass); color: var(--navy); }
.hero .btn:hover { background: var(--paper); color: var(--navy); }
.hero .link-tel { color: var(--paper); border-bottom-color: var(--brass); }
.hero .creds { color: var(--dim); border-top-color: var(--rule-dark); }

/* ---------- Load sequence. One orchestrated moment, nothing else animates in. ---------- */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-content > * {
  animation: hero-rise .72s cubic-bezier(.22, .61, .36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: .06s; }
.hero-content > *:nth-child(2) { animation-delay: .16s; }
.hero-content > *:nth-child(3) { animation-delay: .28s; }
.hero-content > *:nth-child(4) { animation-delay: .38s; }
.hero-image {
  animation: hero-settle 1.05s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: .1s;
}
.creds { animation: hero-rise .72s cubic-bezier(.22, .61, .36, 1) .5s both; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-block;
  font-family: var(--body);
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 2px;
  transition: background .18s ease;
}
.btn:hover { background: var(--oxblood); }
.link-tel {
  font-family: var(--utility);
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 2px;
}
.creds {
  margin: 42px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work-head { margin-bottom: 42px; }

/* ---------- Work cards: auto-scrolling rail, static content ---------- */
.marquee--work .marquee-track {
  animation-duration: 108s;
  align-items: stretch;
}
.work-card {
  flex: 0 0 clamp(278px, 82vw, 392px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule);
  border-radius: 3px;
  padding: 20px 20px 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.work-card:hover,
.work-card:focus-visible {
  border-top-color: var(--oxblood);
  box-shadow: 0 12px 28px rgba(20, 22, 26, .09);
}
/* No URL supplied yet: still shows the work, just isn't clickable. */
.work-card.is-unlinked { cursor: default; }
.work-card.is-unlinked:hover { border-top-color: var(--rule); box-shadow: none; }
.work-shot {
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Production: <img src="img/work-bluestarcigars.jpg" alt="Blue Star Cigars website" loading="lazy" /> */
.shot-placeholder {
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  padding: 0 14px;
}
.work-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin: 0;
  flex: 1 1 auto;
}
.work-cue {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  transition: color .25s ease;
}
.work-card:hover .work-cue,
.work-card:focus-visible .work-cue { color: var(--oxblood); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 44px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
@media (min-width: 940px) {
  .svc-layout { grid-template-columns: 0.86fr 1.14fr; }
}

/* --- the feature panel --- */
.svc-feature {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--paper);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  min-height: 300px;
}
.svc-eyebrow {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 6px;
}
.svc-num {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: .1em;
  margin: 0 0 14px;
}
.svc-feature .svc-num { color: var(--dim); }
.svc-feature-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.svc-feature-copy {
  font-size: 15.5px;
  color: var(--dim);
  margin: 0;
  max-width: 26em;
}

/* --- the four cells --- */
.svc-cells {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 640px) { .svc-cells { grid-template-columns: 1fr 1fr; } }

.svc-cell {
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  transition: background .2s ease;
}
.svc-cell:hover, .svc-cell:focus-visible { background: var(--surface); }
.svc-cell .svc-num { color: var(--oxblood); }
.svc-cell-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.018em;
  margin: 0 0 10px;
}
.svc-cell-copy {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* --- shared arrow, pinned to the bottom of whatever box it is in --- */
.svc-arrow {
  margin-top: auto;
  padding-top: 26px;
  align-self: flex-end;
  font-size: 19px;
  line-height: 1;
  transition: transform .22s ease;
}
.svc-feature .svc-arrow { color: var(--brass); }
.svc-cell .svc-arrow { color: var(--oxblood); }
.svc-feature:hover .svc-arrow,
.svc-cell:hover .svc-arrow,
.svc-feature:focus-visible .svc-arrow,
.svc-cell:focus-visible .svc-arrow { transform: translateX(5px); }

/* ---------- Outcome band ---------- */
.outcome-lead {
  margin: 44px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: -.01em;
}
.outcome-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 22px;
}
@media (min-width: 760px) { .outcome-list { grid-template-columns: repeat(3, 1fr); } }
.outcome-item { border-top: 2px solid var(--oxblood); padding-top: 14px; }
.outcome-item h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  margin: 0 0 7px;
  letter-spacing: -.01em;
}
.outcome-item p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Navy band ---------- */
.band-navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--paper);
}
.band-navy .eyebrow { color: var(--dim); }
.band-navy .section-lede { color: var(--dim); }

/* ============================================================
   REVIEWS — auto-scrolling marquee (Stern pattern)
   The track holds the cards twice. The second set is aria-hidden
   and exists only so the loop has no visible seam.
   ============================================================ */
.marquee {
  margin-top: 40px;
  overflow: hidden;
  width: 100%;
  /* Fully opaque across the middle 75% of the screen, with a 12.5% falloff
     on each side. Wide enough that the dissolve is visible rather than a
     hard clip at the edge. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12.5%, #000 87.5%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12.5%, #000 87.5%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: 20px;
  animation: marquee-scroll 120s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  /* half the track, plus half the gap that sits between the two sets */
  to   { transform: translateX(calc(-50% - 10px)); }
}

.quote-card {
  flex: 0 0 clamp(266px, 76vw, 374px);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(20, 22, 26, .08);
  border-top: 3px solid var(--oxblood);
  border-radius: 3px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.quote-text {
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1 1 auto;
}
.quote-attr {
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.is-placeholder { opacity: .85; }
.is-placeholder .quote-text { font-style: italic; color: var(--muted); }

/* No motion: fall back to a plain swipeable rail */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .quote-card { scroll-snap-align: start; }
}

/* ============================================================
   WRITING
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 780px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  text-decoration: none;
  display: block;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  transition: border-color .2s ease;
}
.post-card:hover,
.post-card:focus-visible { border-top-color: var(--oxblood); }
.post-date {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.post-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.28;
  letter-spacing: -.012em;
  margin: 0;
}
.writing-more {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--utility);
  font-size: 13px;
}
.writing-more a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 2px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.032em;
  margin: 0 0 20px;
  max-width: 18em;
}
.contact-sub { font-size: 17.5px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.contact-form {
  margin: 34px 0 0;
  max-width: 700px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field .req { color: var(--oxblood); }
.field input,
.field textarea {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 13px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--oxblood);
  box-shadow: 0 0 0 3px rgba(124, 32, 41, .1);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.form-status {
  font-size: 14.5px;
  margin: 0;
  color: var(--muted);
}
.form-status[data-state="error"] { color: var(--oxblood); }
.form-status[data-state="ok"] { color: var(--ink); font-weight: 600; }
/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-lines {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-family: var(--utility);
  font-size: 14px;
}
.contact-lines a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--oxblood); padding-bottom: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--rule-dark);
  padding: 44px 0 56px;
  font-size: 14px;
  color: var(--dim);
}
.footer-logo { height: 40px; width: auto; display: block; margin: 0 0 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { text-decoration: none; color: var(--paper); }
.footer-links a:hover { color: var(--brass); }
.footer-legal {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: .05em;
}
.footer-legal a { text-decoration: none; }

/* ===========================================================
   Added during the 11ty split
   =========================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 0 0 3px 0;
}
.skip-link:focus {
  left: 0;
}

.footer-blurb { margin: 0 0 10px; }
.footer-contact {
  margin: 0;
  font-family: var(--utility);
  font-size: 13px;
}
.footer-contact a { color: var(--paper); text-decoration: none; }
.footer-contact a:hover { color: var(--brass); }

/* Work screenshots: real images now, so the placeholder styling is gone
   and the img fills the 16:10 box. */
.work-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

[aria-current="page"] { border-bottom-color: var(--brass); }
.dropdown a[aria-current="page"] { border-left-color: var(--brass); }

/* ===========================================================
   Cookie consent

   A card anchored bottom-left, not a full-width bar. Never
   covers more than a corner, and on mobile it sits above the
   safe area with a margin so it reads as an object rather
   than a stripe across the screen.
   =========================================================== */
.consent {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 480px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--paper);
  border: 1px solid var(--rule-dark);
  border-top: 3px solid var(--brass);
  border-radius: 4px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .42);
  animation: consent-in .34s cubic-bezier(.22, .61, .36, 1) both;
}
@media (min-width: 560px) {
  .consent { left: 24px; right: auto; bottom: 24px; }
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}

.consent-inner { padding: 22px 22px 20px; }

.consent-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.018em;
  margin: 0 0 8px;
  color: var(--paper);
}
.consent-copy {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dim);
}
.consent-copy a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
}
.consent-copy a:hover { color: var(--brass); }

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
}
.consent-accept {
  background: var(--brass);
  color: var(--navy);
  padding: 12px 24px;
  font-size: 14.5px;
}
.consent-accept:hover { background: var(--paper); color: var(--navy); }
.consent-decline {
  background: none;
  border: 1px solid var(--rule-dark);
  color: var(--paper);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.consent-decline:hover { border-color: var(--brass); color: var(--brass); }

/* Button that has to look like a link (cookie settings) */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .link-button {
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: .05em;
}

/* The card only covers a corner, so the footer needs far less clearance
   than a full-width bar would have demanded. */
.site-footer { padding-bottom: 56px; }

/* ===========================================================
   Legal pages
   =========================================================== */
.legal .section-title { max-width: 20em; }
.legal-updated {
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.legal-body { max-width: 68ch; }
.legal-body .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 32px;
}
.legal-body h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 2.6vw, 23px);
  letter-spacing: -.02em;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.legal-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -.012em;
  margin: 26px 0 8px;
}
.legal-body p { margin: 0 0 16px; color: var(--muted); }
.legal-body p strong { color: var(--ink); }
.legal-body ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.legal-body li { margin-bottom: 9px; }
.legal-body li strong { color: var(--ink); }
.legal-body a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--oxblood); padding-bottom: 1px; }
.legal-body code {
  font-family: var(--utility);
  font-size: .88em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 2px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--muted);
}
.legal-table th {
  font-family: var(--utility);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom-color: var(--ink);
}
@media (max-width: 620px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .legal-table td { border: 0; padding: 3px 0; }
  .legal-table td:first-child { color: var(--ink); font-weight: 600; }
}

.legal-contact {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 2px solid var(--oxblood);
  font-size: 15.5px;
  color: var(--muted);
  max-width: 68ch;
}
.legal-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--oxblood); }

/* ===========================================================
   Reviews page
   =========================================================== */
.review-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: end;
}
@media (min-width: 900px) {
  .review-cta { grid-template-columns: 1.5fr auto; gap: 50px; }
}
.review-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
/* Elfsight renders into this; give it room and stop it inheriting oddly */
.elfsight-app-47216d33-ee89-4212-b59f-738140add6c9 { min-height: 320px; }
