/* Quorum Digital — marketing site
   Studio palette: ink, stone, and gold. Client demos (Harrow & Pike) use their own look. */

:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --stone: #f5f3ef;
  --stone-dark: #ebe7df;
  --white: #ffffff;
  --navy: #10182b;
  --navy-soft: #1c2742;
  --accent: #b08a45;
  --accent-soft: #d4b87a;
  --accent-deep: #8f7342;
  /* Gold used as text. Darker than --accent so it stays AA on stone and white. */
  --gold-text: #7a5a24;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Sticky header grows with the stacked logo; keep anchors fully below it. */
  scroll-padding-top: 10.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  border-radius: var(--radius);
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.85rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--slate);
}

.lead {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 38rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.logo {
  --logo-h: 3.15rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-img {
  display: block;
  height: var(--logo-h);
  width: auto;
  border-radius: 0;
  flex-shrink: 0;
}

/* One line on the QUORUM baseline. The whole tagline is one warm brown, including the W’s. */
.logo-tag {
  margin: 0 0 calc(var(--logo-h) * 0.107);
  font-size: calc(var(--logo-h) * 0.195);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #7a5a24;
  white-space: nowrap;
}

.logo:hover .logo-tag,
.logo:focus-visible .logo-tag {
  color: #8f7342;
}

.www-w,
.logo-tag-the {
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}

@media (min-width: 400px) {
  .logo {
    --logo-h: 4.15rem;
  }
}

@media (min-width: 720px) {
  .logo {
    --logo-h: 6.25rem;
    gap: 0.65rem;
  }
}

@media (min-width: 860px) {
  .logo {
    --logo-h: 6.35rem;
  }
}

@media (min-width: 1080px) {
  .logo {
    --logo-h: 8.5rem;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--stone);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--stone);
  color: var(--ink);
}

.site-nav a.nav-cta {
  margin-top: 0.35rem;
  background: #10182b;
  color: #ffffff;
  border: 2px solid #10182b;
  text-align: center;
  font-weight: 600;
}

.site-nav a.nav-cta:hover {
  background: #1c2742;
  border-color: #1c2742;
  color: #ffffff;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.45rem 0.7rem;
  }

  .site-nav a[aria-current="page"] {
    background: transparent;
    color: var(--accent-deep);
  }

  .site-nav a.nav-cta {
    margin-top: 0;
    margin-left: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  font-family: inherit;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary,
.btn-accent {
  background: #10182b;
  color: #ffffff;
  border-color: #10182b;
}

.btn-primary:hover,
.btn-accent:hover {
  background: #1c2742;
  color: #ffffff;
  border-color: #1c2742;
  box-shadow: 0 6px 18px rgba(16, 24, 43, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #10182b;
  border-color: #10182b;
}

.btn-secondary:hover {
  border-color: #10182b;
  color: #ffffff;
  background: #10182b;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.section-dark .btn-primary,
.section-dark .btn-accent {
  background: #10182b;
  color: #ffffff;
  border-color: #b08a45;
}

.section-dark .btn-primary:hover,
.section-dark .btn-accent:hover {
  background: #1c2742;
  color: #ffffff;
  border-color: #b08a45;
}

.section-dark .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.section-dark .btn-secondary:hover {
  background: #ffffff;
  color: #10182b;
  border-color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  padding-inline: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.btn-ghost:hover {
  color: var(--accent-deep);
  background: transparent;
  transform: none;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 1.15rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(184, 151, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(26, 39, 68, 0.07), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, var(--stone) 100%);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 55%, var(--accent-soft) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  position: relative;
}

@media (max-width: 480px) {
  .hero {
    padding: 0.7rem 0 1.35rem;
  }

  .hero h1 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
  }

  .hero-copy .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero .btn-row {
    margin-top: 0.85rem;
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 1.35rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 0.4rem;
}

.hero h1 {
  margin-bottom: 0.85rem;
  max-width: 16em;
}

.hero-copy .lead {
  max-width: 40rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.hero-copy .lead:last-of-type {
  margin-bottom: 0;
}

.hero-aside {
  display: grid;
  gap: 1.25rem;
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--stone-dark);
  aspect-ratio: 4 / 3;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.65s ease, filter 0.55s ease;
}

.hero-visual:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.05);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 151, 90, 0.72);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(184, 151, 90, 0.4),
    0 0 24px rgba(184, 151, 90, 0.2);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-card-intro .hero-offer-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.hero-card-intro .hero-offer-name {
  min-width: 0;
}

.hero-card-intro .hero-offer-line .price-band {
  margin: 0;
  flex-shrink: 0;
  line-height: 1;
}

.hero-card-intro .hero-card-more {
  margin: 1rem 0 0;
}

.price-band {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 3px var(--accent);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-dark {
  background: var(--ink);
  color: var(--stone);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p,
.section-dark .lead {
  color: rgba(245, 243, 239, 0.78);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head p {
  margin-bottom: 0;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(184, 151, 90, 0.72);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(184, 151, 90, 0.4),
    0 0 24px rgba(184, 151, 90, 0.2);
}

.benefit-card .card-icon {
  background: linear-gradient(145deg, rgba(184, 151, 90, 0.22), rgba(26, 39, 68, 0.08));
}

.section-alt .card {
  background: var(--stone);
  box-shadow: none;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(184, 151, 90, 0.18);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 100%;
  text-wrap: balance;
  color: var(--ink-soft);
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.audience-list li:hover {
  border-color: rgba(184, 151, 90, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.section-alt .audience-list li {
  background: var(--stone);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.4rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.step:hover,
.step:focus-within {
  transform: translateY(-5px);
  border-color: rgba(184, 151, 90, 0.72);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(184, 151, 90, 0.4),
    0 0 24px rgba(184, 151, 90, 0.2);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

/* Portfolio teaser */
.portfolio-card {
  display: grid;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.portfolio-card:hover {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

@media (min-width: 760px) {
  .portfolio-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.portfolio-visual {
  min-height: 220px;
  background:
    linear-gradient(160deg, var(--navy) 0%, var(--ink) 70%),
    var(--navy);
  color: var(--stone);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.portfolio-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184, 151, 90, 0.25), transparent 45%);
}

.portfolio-visual-photo {
  padding: 0;
  min-height: 240px;
  justify-content: flex-end;
}

.portfolio-visual-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.88) brightness(0.72);
  transition: transform 0.7s ease, filter 0.5s ease;
}

.portfolio-card:hover .portfolio-visual-photo > img,
.portfolio-card:focus-within .portfolio-visual-photo > img {
  transform: scale(1.07);
  filter: saturate(0.98) brightness(0.62);
}

.portfolio-visual-photo::before {
  background:
    linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.78) 100%),
    radial-gradient(circle at 80% 20%, rgba(184, 151, 90, 0.2), transparent 45%);
  z-index: 1;
}

.portfolio-visual-overlay {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}

.portfolio-visual > * {
  position: relative;
}

.portfolio-visual .sample-name {
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--white);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.portfolio-visual .sample-meta {
  color: rgba(245, 243, 239, 0.75);
  font-size: 0.92rem;
  margin: 0;
}

.portfolio-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.portfolio-body h3 {
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: rgba(184, 151, 90, 0.15);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Offer page */
.offer-hero {
  padding: 1.35rem 0 1.15rem;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--slate);
}

.offer-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.include-grid .card h3 {
  margin-bottom: 0.5rem;
}

.out-of-scope {
  background: var(--stone-dark);
  border-left: 3px solid var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.25rem;
  margin-top: 1.5rem;
}

.out-of-scope h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.out-of-scope p {
  margin: 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 0.9rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1rem;
  padding-top: 0;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.aside-card {
  background: var(--ink);
  color: var(--stone);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.aside-card h3 {
  color: var(--white);
}

.aside-card p {
  color: rgba(245, 243, 239, 0.78);
}

.aside-card p:last-child {
  margin-bottom: 0;
}

/* Contact form */
.form-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .form-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--stone);
  border-radius: var(--radius-sm);
}

/* FormSubmit honeypot. display:none is set inline, matching FormSubmit’s documented pattern. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.form-time-note {
  margin-top: 0.25rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.field {
  margin-bottom: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 151, 90, 0.45);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-error {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #9f2d2d;
}

.field.is-invalid .field-error,
.field:has(:user-invalid) .field-error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select,
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-color: #9f2d2d;
  background: #fff7f6;
  box-shadow: 0 0 0 3px rgba(159, 45, 45, 0.12);
}

.privacy-note {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--slate);
}

.form-send-note {
  margin-bottom: 0.85rem;
}

.form-success {
  margin: 0;
  padding: 0.35rem 0 0.15rem;
}

.form-success h2 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.form-card form.is-sent .field,
.form-card form.is-sent .privacy-note,
.form-card form.is-sent .form-note,
.form-card form.is-sent .btn {
  display: none;
}

textarea.field-compact {
  min-height: 5.5rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hint-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--slate);
}

.hint-list li {
  margin-bottom: 0.4rem;
}

/* Page header (inner pages) */
.page-hero {
  padding: 1.35rem 0 1.25rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(184, 151, 90, 0.1), transparent 50%),
    var(--stone);
}

.page-hero .lead {
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  padding: 3rem 0;
  text-align: center;
}

.cta-band .lead {
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(245, 243, 239, 0.7);
  padding: 2rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer strong {
  color: var(--white);
  font-weight: 650;
}

.site-footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-mark {
  color: var(--accent-soft);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  flex-basis: 100%;
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  line-height: 1;
}

.footer-social-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

/* Founder portrait sits in the empty space at the top right of the About hero */
.page-hero-with-portrait {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.founder-photo {
  width: 6.75rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  justify-self: end;
  align-self: start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 799px) {
  .page-hero:has(.page-hero-with-portrait) {
    padding-top: 0.55rem;
    padding-bottom: 0.85rem;
  }
}

@media (min-width: 800px) {
  .page-hero-with-portrait {
    gap: 1.5rem 2.5rem;
  }

  .founder-photo {
    width: 11.5rem;
    align-self: center;
  }
}

.founder-role {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
}

/* Optional photo strip (offer / work) */
.image-strip {
  padding: 0 0 0.25rem;
  background: var(--stone);
}

.image-strip .container {
  padding-bottom: 0;
}

.image-strip .frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.image-strip img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 0.6s ease, filter 0.45s ease;
}

.image-strip:hover img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.05);
}

/* Form required / optional */
.req {
  color: var(--accent-deep);
  font-weight: 700;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Footer slogan */
.footer-slogan {
  color: var(--accent-soft);
  font-style: italic;
  font-size: 0.9rem;
}

.footer-inner {
  gap: 0.75rem 1.5rem;
}

@media (min-width: 700px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .footer-inner > :nth-child(2) {
    text-align: center;
  }

  .footer-inner > :nth-child(3) {
    text-align: right;
  }

  .footer-social {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* Utility */
.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Dual-track pricing & intro offer */
.limited-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: rgba(184, 151, 90, 0.28);
  border: 1px solid rgba(184, 151, 90, 0.55);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin: 0 0 0.85rem;
}

.hero-card-intro .limited-badge {
  margin-bottom: 0.75rem;
}

.scope-tight {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.5rem 0 1.15rem;
}

.pricing-tracks .track-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-tracks .track-card .btn,
.pricing-tracks .track-card .btn-row {
  margin-top: auto;
}

.pricing-tracks .track-card .btn {
  align-self: flex-start;
}

.pricing-tracks .track-card .btn-row .btn {
  margin-top: 0;
}

.track-intro {
  border-color: rgba(184, 151, 90, 0.45);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(184, 151, 90, 0.15);
}

.track-intro .price-band {
  color: var(--accent-deep);
}


/* Refined page hero accent */
.page-hero {
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 55%, transparent 100%);
}

/* Optional soft reveal (respects reduced motion) */
.reveal {
  animation: fade-up 0.55s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Benefits: four cards, two by two from tablet width. One column on a phone. */
.benefits-grid {
  margin-top: 0.25rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* How we work: six steps. Two columns on tablet, three on a wide screen. */
@media (min-width: 700px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-visual {
  transition: box-shadow 0.35s ease;
}

.hero-aside:hover .hero-visual {
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
}

/* Offer, benefit, and pricing cards — lift and a soft gold edge */
.card:hover,
.card:focus-within,
.section-alt .card:hover,
.section-alt .card:focus-within,
.step:hover,
.step:focus-within,
.hero-card:hover {
  transform: translateY(-5px);
  border-color: #c6a15a;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(184, 151, 90, 0.95),
    0 0 0 4px rgba(184, 151, 90, 0.2),
    0 0 28px rgba(184, 151, 90, 0.48);
}

.section-dark .card:hover,
.section-dark .card:focus-within {
  border-color: rgba(212, 184, 122, 0.7);
  box-shadow:
    0 0 0 1px rgba(212, 184, 122, 0.4),
    0 0 22px rgba(212, 184, 122, 0.22);
}

/* Light work gallery */
.work-gallery {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 800px) {
  .work-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.9);
  transform: scale(1);
  transition: transform 0.6s ease, filter 0.45s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, 0.78) 100%);
  transition: background 0.35s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.04);
}

.gallery-tile:hover .gallery-overlay,
.gallery-tile:focus-visible .gallery-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.gallery-tile:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.gallery-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.gallery-title {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.25;
}

/* CSS-only cross-fade. 6s cycle, three frames, about 2s each, hover pauses. */
.fade-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #1a2744;
}

.fade-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: crossfade 6s infinite;
}

.fade-slide:nth-child(1) { animation-delay: -0.3s; }
.fade-slide:nth-child(2) { animation-delay: 1.7s; }
.fade-slide:nth-child(3) { animation-delay: 3.7s; }

.fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.9) contrast(1.03);
}

.fade-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.5rem 1.15rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.carousel-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.fade-carousel:hover .fade-slide,
.fade-carousel:focus-within .fade-slide {
  animation-play-state: paused;
}

@keyframes crossfade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  33.33% { opacity: 1; }
  38.33% { opacity: 0; }
  100% { opacity: 0; }
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.skip-link:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

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

  .btn:hover,
  .btn:active,
  .card:hover,
  .card:focus-within,
  .step:hover,
  .step:focus-within,
  .portfolio-card:hover,
  .hero-card:hover,
  .audience-list li:hover,
  .hero-visual:hover img,
  .portfolio-card:hover .portfolio-visual-photo > img,
  .portfolio-card:focus-within .portfolio-visual-photo > img,
  .gallery-tile:hover img,
  .gallery-tile:focus-visible img,
  .image-strip:hover img {
    transform: none;
  }

  .reveal {
    animation: none;
  }

  .fade-slide {
    animation: none !important;
    opacity: 0 !important;
  }

  .fade-slide:first-child {
    opacity: 1 !important;
  }
}

/* Work page: tools used in delivery, and client-site cards */
.delivery-note {
  margin: 1.5rem 0 0;
  max-width: 40rem;
}

.tool-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 860px) {
  .tool-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool-row li {
  margin: 0;
  padding: 0.75rem 0.8rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-alt .tool-row li {
  background: var(--stone);
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 0;
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

.tool-icon {
  display: block;
  width: 22px;
  height: 22px;
  max-width: 22px;
  flex: 0 0 22px;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.tool-row p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.page-hero .fade-carousel {
  margin-top: 1.75rem;
}

.step h3:has(.step-icon) {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.step-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  color: var(--accent-deep);
}

.client-sites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.client-card {
  display: grid;
  padding: 0;
  overflow: hidden;
}

.client-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
  margin: 0;
  border-radius: 0;
}

.client-body {
  padding: 1.35rem 1.4rem 1.45rem;
}

.client-card .btn {
  margin-top: 0.25rem;
}

@media (min-width: 760px) {
  .client-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .client-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* Client login — header control and auth pages */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--gold-text);
}

.header-login:hover {
  background: var(--stone-dark);
  color: var(--gold-text);
}

.header-login:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-login[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold-text);
}

.site-nav a.nav-login {
  color: var(--gold-text);
  font-weight: 650;
}

.site-nav a.nav-login:hover,
.site-nav a.nav-login[aria-current="page"] {
  color: var(--gold-text);
  background: var(--stone);
}

@media (max-width: 859px) {
  .header-inner {
    align-items: center;
    gap: 0.4rem 0.55rem;
    padding: 0.35rem 0;
  }

  .logo {
    --logo-h: 2.15rem;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
  }

  .logo-tag {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    font-size: 0.74rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .header-login {
    padding-inline: 0.35rem;
    font-size: 0.88rem;
  }

  .site-header:has(.site-nav.open) .header-login {
    display: none;
  }
}

/* Just as the desktop nav appears, the full-size lockup collides with Home. */
@media (min-width: 860px) and (max-width: 1079px) {
  .logo {
    --logo-h: 5.6rem;
  }
}

@media (min-width: 860px) {
  .header-tools {
    display: contents;
  }

  .header-login {
    display: none;
  }

  .site-nav a.nav-login[aria-current="page"] {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--gold-text);
  }
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Author display rules (for example .btn) must not override the hidden attribute. */
[hidden] {
  display: none !important;
}

.auth-page .btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.auth-page .eyebrow,
.auth-page .req {
  color: var(--gold-text);
}

.auth-layout {
  width: min(100% - 2rem, 960px);
}

.auth-page .form-card {
  padding: 1.6rem 1.45rem 1.45rem;
}

.form-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #fff7f6;
  border: 1px solid rgba(159, 45, 45, 0.35);
  color: #9f2d2d;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-alert:empty {
  display: none;
}

.form-alert:focus {
  outline: 2px solid #9f2d2d;
  outline-offset: 2px;
}

.auth-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  background: var(--stone);
  border-radius: var(--radius-sm);
  color: var(--slate);
}

.auth-note a {
  font-weight: 650;
  color: var(--gold-text);
}

.auth-note a:hover {
  color: var(--ink);
}

.auth-switch {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--slate);
}

.auth-switch a {
  font-weight: 650;
  color: var(--gold-text);
}

.auth-switch a:hover {
  color: var(--ink);
}

.password-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.password-row input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 0.9rem;
}

.password-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.turnstile-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.turnstile-slot {
  margin: 0.15rem 0 0.9rem;
  min-height: 65px;
}

.turnstile-slot #turnstile-widget {
  min-height: 65px;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
}

.auth-aside h2,
.form-card h2 {
  font-size: 1.2rem;
}

.auth-aside .btn-row {
  margin-top: 0.35rem;
}

.auth-aside .gold-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.account-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.85rem 1rem;
  margin: 0 0 1.25rem;
}

.account-dl dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.account-dl dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .account-dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .account-dl dd {
    margin-bottom: 0.85rem;
  }
}
