/* Cornerstone Tax & Bookkeeping — marketing site */

:root {
  --navy: #0F2A4F;
  --navy-deep: #0A2240;
  --navy-soft: #173A64;
  --gold: #B8913A;
  --gold-bright: #C9A44A;
  --gold-soft: #E8D7A8;
  --stone: #8A8F96;
  --ink: #1A2332;
  --muted: #4E555E;
  --offwhite: #F6F4F0;
  --cream: #FBFAF7;
  --white: #FFFFFF;
  --line: #E3DFD6;
  --line-strong: #D0CBBF;
  --shadow: 0 12px 40px rgba(15, 42, 79, 0.08);
  --shadow-soft: 0 4px 18px rgba(15, 42, 79, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --header-h: 4.75rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--gold);
}

section[id], #top {
  scroll-margin-top: 5.5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-bright);
  color: var(--navy-deep);
  border-color: var(--gold-bright);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-soft);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.btn-header {
  padding: 0.6rem 1.05rem;
  font-size: 0.875rem;
}

/* Layout helpers
   ========================================================================== */

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

.section {
  padding: 5.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 0.85rem;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.45rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

p { margin: 0 0 1rem; }

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  background: var(--navy-deep);
  color: #F4F1EA;
}

.hero-scenes,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-scenes {
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 26, 47, 0.90) 0%, rgba(10, 26, 47, 0.78) 42%, rgba(10, 26, 47, 0.58) 100%),
    linear-gradient(180deg, rgba(10, 26, 47, 0.28) 0%, rgba(10, 26, 47, 0.12) 45%, rgba(10, 26, 47, 0.40) 100%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.25s ease;
  overflow: hidden;
}

.hero-scene.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-scene img,
.hero-scene video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scene video {
  z-index: 1;
  background: transparent;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: #FFFFFF;
}

.hero .lead {
  color: #E6E1D6;
}

.hero .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.8);
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
  background: #FFFFFF;
  color: var(--navy);
  border-color: #FFFFFF;
}

.hero-copy .eyebrow {
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin-bottom: 0.7rem;
}

.hero-tagline {
  margin: 0 0 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-copy .lead {
  max-width: 36rem;
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #D8D3C8;
  font-size: 0.9375rem;
  margin: 0;
}

.hero-note svg {
  flex: 0 0 auto;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-star {
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

.hero-caption {
  position: absolute;
  bottom: 0.5rem;
  right: 8%;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}

/* About you
   ========================================================================== */

.about-you {
  background: var(--offwhite);
  padding: 6.75rem 0;
  text-align: center;
}

.about-you-inner {
  max-width: 40.5rem;
  margin: 0 auto;
}

.about-you-star {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto 1.5rem;
}

.about-you h2 {
  margin: 0 0 0.65rem;
}

.about-you p.about-you-tagline {
  margin: 0 0 1.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.about-you p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--muted);
}

.about-you p.about-you-signoff {
  margin: 1.55rem 0 0;
  font-size: clamp(1.08rem, 1.9vw, 1.25rem);
  font-weight: 600;
  font-style: normal;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.55;
}

/* Services
   ========================================================================== */

.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.service-card {
  grid-column: span 2;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.55rem;
  box-shadow: var(--shadow-soft);
}

.service-card:nth-child(4) { grid-column: 2 / 4; }
.service-card:nth-child(5) { grid-column: 4 / 6; }

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.05rem;
}

.service-card .icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: 0.45rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.pillar-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem 1.55rem;
  box-shadow: var(--shadow-soft);
}

.pillar-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.05rem;
}

.pillar-card .icon svg {
  width: 22px;
  height: 22px;
}

.pillar-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.pillar-card > p {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.pillar-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.975rem;
}

.pillar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.pillar-card.featured-service {
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Industries
   ========================================================================== */

.industries {
  background: var(--offwhite);
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

@media (min-width: 641px) {
  .industry-grid .industry-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.675rem);
    width: 100%;
    justify-self: center;
  }
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.85rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.industry-card:hover,
.industry-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  outline: none;
}

.industry-card.featured {
  padding: 2.15rem 2rem 2rem;
  border-top: 3px solid var(--gold);
}

.industry-card header {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin-bottom: 0.85rem;
}

.industry-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.industry-icon svg {
  width: 24px;
  height: 24px;
}

.industry-card header h3 {
  margin: 0 0 0.15rem;
  font-size: 1.35rem;
}

.industry-card .who {
  margin: 0;
  font-size: 0.875rem;
  color: var(--stone);
}

.industry-card > p {
  color: var(--muted);
  margin-bottom: 1.05rem;
}

.industry-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.975rem;
}

.industry-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.industry-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.industry-cta span {
  color: var(--gold);
  margin-left: 0.15em;
}

.industry-card:hover .industry-cta,
.industry-card:focus-visible .industry-cta {
  color: var(--gold);
}

.also-serving {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.also-serving span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.also-serving::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.industry-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.industry-card.secondary {
  background: var(--cream);
}

/* Why
   ========================================================================== */

.why {
  background: var(--navy);
  color: #E8E4DC;
}

.why h2,
.why .eyebrow {
  /* eyebrow already gold */
}

.why h2 {
  color: var(--white);
}

.why .lead {
  color: #C9C4BA;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 215, 168, 0.18);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.45rem;
}

.why-item .num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}

.why-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  margin: 0;
  color: #C9C4BA;
  font-size: 0.95rem;
}

/* Process
   ========================================================================== */

.process {
  background: var(--offwhite);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step {
  text-align: left;
  padding: 0.25rem 0.5rem 0 0;
}

.step-num {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.step-num strong {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.step-num span {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  align-self: center;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

/* Contact
   ========================================================================== */

.contact {
  background: var(--offwhite);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-copy .lead {
  margin-bottom: 1.75rem;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  margin: 0 0 1rem;
  padding-left: 0;
}

.contact-details .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-details .value {
  color: var(--navy);
  font-weight: 600;
}

.placeholder {
  display: inline-block;
  background: #EEE8DA;
  color: var(--navy);
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.01em;
}

.form-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 2rem 1.85rem 1.85rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 145, 58, 0.22);
  background: var(--white);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230F2A4F' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.contact-form .btn,
.form-success .btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.45rem;
}

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

.field-group {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.field-group legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  padding: 0;
}

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

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.85rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  cursor: pointer;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.contact-form textarea {
  min-height: 6.5rem;
}

.form-success {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 2rem 1.85rem 1.85rem;
  box-shadow: var(--shadow);
}

.form-success[hidden],
.contact-form[hidden] {
  display: none;
}

.form-success h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1.45rem;
}

.form-success p {
  margin: 0 0 1.15rem;
}

.form-success .form-note {
  margin-top: 1rem;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: #C9C4BA;
  padding: 3rem 0 1.75rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 215, 168, 0.16);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.footer-brand svg {
  width: 42px;
  height: auto;
  flex: 0 0 auto;
}

.footer-name {
  display: block;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--white);
}

.footer-tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 0.15rem;
}

.footer-offer {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9C4BA;
  margin-top: 0.4rem;
}

.footer-domain {
  color: #C9C4BA;
  text-decoration: none;
}

.footer-domain:hover {
  color: var(--gold-bright);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.footer-nav a {
  color: #C9C4BA;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.35rem;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.photo-credits {
  flex-basis: 100%;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #8E8A82;
  max-width: 52rem;
}

.photo-credits a {
  color: #B7B1A6;
}


/* Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.625rem);
    width: 100%;
    justify-self: center;
  }

  .hero-grid,
  .contact-grid,
  .why-grid,
  .industry-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    min-height: 240px;
    order: -1;
  }

  .hero-star {
    width: min(100%, 220px);
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn-header {
    margin-top: 0.9rem;
    width: 100%;
    border-bottom: 0;
  }

  .logo img {
    height: 44px;
  }

  .header-inner {
    padding: 0.55rem 1.15rem;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.75rem 0;
  }

  .about-you {
    padding: 5rem 0;
  }

  .wrap,
  .header-inner {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

@media (max-width: 640px) {
  .industry-grid,
  .why-grid,
  .process-grid,
  .form-row,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-visual {
    min-height: 180px;
  }

  .hero-star {
    width: 160px;
  }

  .hero-caption {
    display: none;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .industry-card,
  .industry-card.featured {
    padding: 1.5rem 1.25rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-scene {
    transition: none;
  }

  .hero-scene img,
  .hero-scene video {
    animation: none;
    transform: none;
  }

  .hero-scene video {
    display: none;
  }

  .industry-card {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Industry cards as links
   ========================================================================== */

a.industry-card {
  color: inherit;
  text-decoration: none;
}

/* Nav dropdown
   ========================================================================== */

.nav-item.has-sub {
  position: relative;
}

.nav-sub-toggle {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.nav-sub-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-sub-toggle:hover,
.nav-sub-toggle:focus-visible {
  color: var(--gold);
}

.nav-item.has-sub.is-open > .nav-sub-toggle,
.nav-item.has-sub:focus-within > .nav-sub-toggle {
  color: var(--gold);
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: min(22rem, calc(100vw - 1.5rem));
  /* Transparent padding is a hover bridge — no gap between trigger and panel */
  padding: 0.7rem 0 0.35rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  z-index: 500;
}

.nav-sub::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  z-index: -1;
  pointer-events: none;
}

.nav-sub a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
}

.nav-sub a:first-of-type {
  border-radius: 8px 8px 0 0;
}

.nav-sub a:last-of-type {
  border-radius: 0 0 8px 8px;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  background: rgba(15, 42, 79, 0.05);
  color: var(--gold);
}

@media (min-width: 801px) {
  .nav-item.has-sub.is-open .nav-sub {
    display: block;
  }
}

/* Partner band
   ========================================================================== */

.partner-band {
  background: var(--navy);
  color: #fff;
  padding: 3.25rem 0;
}

.partner-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.partner-band .eyebrow {
  color: var(--gold);
}

.partner-band h2 {
  color: #fff;
  margin: 0.2rem 0 0.75rem;
}

.partner-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 40rem;
}

.partner-band .btn-gold {
  white-space: nowrap;
}

/* Inner page heroes and layouts
   ========================================================================== */

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 34rem;
  padding: 7.5rem 0 5.5rem;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img,
.page-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-media video {
  z-index: 1;
}

.page-hero .hero-overlay {
  z-index: -1;
}

.page-hero .eyebrow {
  color: var(--gold);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.9rem;
  max-width: 22ch;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  margin-bottom: 1.4rem;
}

.page-hero .hero-note {
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.page-section {
  padding: 3.75rem 0;
  background: var(--cream);
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.page-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
}

.page-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
}

.page-panel p {
  margin: 0 0 0.85rem;
}

.page-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-panel li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.page-panel li:first-child {
  border-top: 0;
}

.page-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.page-cta {
  background-color: #EFEBE3;
  background-image:
    radial-gradient(rgba(15, 42, 79, 0.035) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  padding: 3.25rem 0 4rem;
  text-align: center;
}

.page-cta h2 {
  margin-bottom: 0.6rem;
}

.page-cta .lead {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
}

.footer-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.75rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  color: #C9C4BA;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--gold-bright);
}


.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 0.25rem;
  font-weight: 600;
}

@media (max-width: 800px) {
  .nav-item.has-sub {
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .nav-sub-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.8rem 0;
    text-align: left;
  }

  .nav-sub {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    max-width: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 0.85rem;
    border-radius: 0;
    z-index: auto;
  }

  .nav-sub::before,
  .nav-sub::after {
    content: none;
    display: none;
  }

  .nav-item.has-sub.is-open .nav-sub {
    display: block;
  }

  .nav-sub a,
  .nav-sub a:first-of-type,
  .nav-sub a:last-of-type {
    border-radius: 0;
    min-height: 44px;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .nav-sub a:last-child {
    border-bottom: 0;
  }

  .partner-band-inner,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 28rem;
    padding: 6.25rem 0 3.5rem;
  }
  .work-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-media video {
    display: none;
  }
}

/* About page and Meet Marlin teaser
   ========================================================================== */

.about-hero {
  /* padding comes from .page-hero so the background photograph can fill the band */
}

.about-hero h1 {
  max-width: none;
}

.about-hero .lead {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.about-bio {
  background: var(--cream);
  padding: 5rem 0;
}

.about-bio-grid {
  display: grid;
  grid-template-columns: minmax(240px, 18rem) 1fr;
  gap: 3.25rem 4rem;
  align-items: center;
}

.about-photo-placeholder {
  margin: 0;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-photo-frame {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.about-photo-star {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 0 1.15rem;
}

.about-photo-label {
  margin: 0 0 0.3rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.about-photo-hint {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.about-copy h2 {
  margin-bottom: 1.15rem;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 0 1.1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy p.about-copy-signoff {
  margin: 1.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}

/* Meet the Team highlighted statement */
.about-highlight {
  background: var(--navy);
  color: #fff;
  padding: 3.25rem 0;
}
.about-highlight-inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.about-highlight p {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  font-weight: 500;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.01em;
}
.about-highlight p::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
}

.about-quote {
  background: var(--navy);
  color: #F4F1EA;
  padding: 5.5rem 0;
  text-align: center;
}

.about-quote-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.about-quote-star {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto 1.6rem;
}

.about-quote blockquote {
  margin: 0 0 1.35rem;
}

.about-quote blockquote p {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.about-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.meet-marlin {
  background: var(--offwhite);
  padding: 4rem 0;
}

.meet-marlin-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.meet-marlin-photo {
  width: 7.25rem;
  height: 7.25rem;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}

.meet-marlin .eyebrow {
  margin-bottom: 0.5rem;
}

.meet-marlin h2 {
  margin: 0 0 0.7rem;
}

.meet-marlin p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.meet-marlin .btn {
  white-space: nowrap;
}

@media (max-width: 1120px) and (min-width: 801px) {
  .site-nav {
    gap: 1.15rem;
  }
}

@media (max-width: 800px) {
  .about-bio-grid,
  .meet-marlin-inner {
    grid-template-columns: 1fr;
  }

  .meet-marlin-inner picture {
    justify-self: start;
  }

  .about-photo-frame {
    max-width: 20rem;
    margin: 0 auto;
  }

  .about-bio,
  .about-quote {
    padding: 3.75rem 0;
  }

  .meet-marlin {
    padding: 3.25rem 0;
  }

  .meet-marlin .btn {
    justify-self: start;
  }
}


/* Industry list and tinted bands
   ========================================================================== */

.band-stone {
  background-color: var(--offwhite);
  background-image:
    radial-gradient(rgba(15, 42, 79, 0.04) 0.7px, transparent 0.7px),
    linear-gradient(180deg, #F7F4EE 0%, #EFEBE3 100%);
  background-size: 3px 3px, 100% 100%;
}

.band-cream {
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(15, 42, 79, 0.03) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

.band-navy {
  background: var(--navy);
  color: #fff;
}

.band-navy h2,
.band-navy p,
.band-navy li {
  color: #fff;
}

.band-navy .lead {
  color: rgba(255, 255, 255, 0.88);
}

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

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

a.industry-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.industry-link:hover,
a.industry-link:focus-visible {
  background: #fff;
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

a.industry-link h3 {
  margin: 0 0 0.2rem;
  font-size: 1.12rem;
  color: var(--navy);
}

a.industry-link .who {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

a.industry-link .industry-arrow {
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease;
  justify-self: end;
}

a.industry-link:hover .industry-arrow,
a.industry-link:focus-visible .industry-arrow {
  transform: translateX(5px);
}

.who-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.who-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
}

.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.services,
.process {
  background-image:
    radial-gradient(rgba(15, 42, 79, 0.03) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

.process {
  background-color: var(--offwhite);
}

@media (max-width: 800px) {
  .industry-list,
  .who-list,
  .page-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.industry-link,
  a.industry-link .industry-arrow {
    transition: none;
  }

  a.industry-link:hover,
  a.industry-link:focus-visible {
    transform: none;
  }

  .page-hero-media video,
  .hero-scene video {
    display: none;
  }
}


.hero-pos-right {
  object-position: 80% 50%;
}

.help-detail .section-head {
  margin-bottom: 1.75rem;
}

.work-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.work-step {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.work-step .step-label {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.work-step p {
  margin: 0;
  color: var(--ink);
}

/* Rockwall Partners — logo and Meet Anthony
   ========================================================================== */

.partner-hero-logo {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 12px;
  margin: 0 0 1.35rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 10px 28px rgba(0, 0, 0, 0.28);
  background: var(--navy);
}

.partner-meet {
  padding: 5rem 0;
  background: var(--cream);
}

.partner-meet-grid {
  display: grid;
  grid-template-columns: minmax(220px, 18rem) 1fr;
  gap: 3.25rem 4rem;
  align-items: center;
}

.partner-meet-photo {
  margin: 0;
}

.partner-meet-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.partner-meet-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  margin: 0 0 1.15rem;
  box-shadow: var(--shadow-soft);
}

.partner-meet-copy h2 {
  margin-bottom: 0.45rem;
}

.partner-meet-title {
  margin: 0 0 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.partner-meet-copy > p:not(.partner-meet-title) {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.partner-offer {
  max-width: 46rem;
}

.partner-offer h2 {
  margin: 2rem 0 0.85rem;
  font-size: 1.45rem;
}

.partner-build-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.partner-build-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.partner-build-list li:first-child {
  border-top: 0;
}

.partner-build-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.partner-results {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
}

@media (max-width: 800px) {
  .partner-meet-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .partner-meet-photo {
    max-width: 22rem;
    margin: 0 auto;
  }

  .partner-meet {
    padding: 3.75rem 0;
  }

  .partner-hero-logo {
    width: 4.75rem;
    height: 4.75rem;
  }
}
