/* =========================================================
   Amazing Book Publishers
   Custom stylesheet. Theme colors are printed as CSS
   variables in includes/head.php from config.php.
   ========================================================= */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-offset: 118px;
  --wrap: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px rgba(20, 17, 15, 0.06);
  --shadow: 0 20px 50px rgba(20, 17, 15, 0.12);
  --shadow-lg: 0 30px 80px rgba(20, 17, 15, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.03rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Marquees / absolute offsets must not create a horizontal page scrollbar. */
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}
.theme-color{
  color: #FF8A1F;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--cream);
  color: var(--ink);
}

.skip-link:focus {
  top: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.center {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--accent);
}

.lede {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.lede--light {
  color: rgba(255, 251, 245, 0.84);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 251, 245, 0.22);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.08);
  color: var(--cream);
  font-size: 0.86rem;
  backdrop-filter: blur(6px);
}

.pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- Buttons and links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--solid {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 138, 31, 0.32);
}

.btn--solid:hover {
  background: var(--accent-strong);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 251, 245, 0.4);
  color: var(--cream);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn--ghost:hover svg {
  transform: none;
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--accent-strong);
}

.btn--line {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.call-link small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.call-link__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 138, 31, 0.14);
  color: var(--accent-strong);
}

.call-link__icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: transform 0.35s var(--ease);
}

.topbar {
  background: rgba(20, 17, 15, 0.35);
  color: var(--cream);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 251, 245, 0.08);
}

.topbar__inner,
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__inner {
  min-height: 40px;
}

.topbar__note {
  margin: 0;
  opacity: 0.85;
}

.topbar__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.topbar a {
  text-decoration: none;
}

.topbar a:hover {
  color: var(--accent);
}

.navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar__inner {
  position: relative;
  min-height: 78px;
}

.brand {
  flex: 0 0 auto;
  width: 188px;
}

.brand__logo {
  display: block;
  width: 188px;
  height: auto;
}

.brand__logo--dark,
.is-scrolled .brand__logo--light,
.site-header.is-open .brand__logo--light {
  display: none;
}

.is-scrolled .brand__logo--dark,
.site-header.is-open .brand__logo--dark {
  display: block;
}

.is-scrolled .topbar,
.is-scrolled .navbar,
.site-header.is-open .topbar,
.site-header.is-open .navbar {
  background: var(--cream);
  color: var(--ink);
}

.is-scrolled .navbar,
.site-header.is-open .navbar {
  box-shadow: 0 10px 30px rgba(20, 17, 15, 0.08);
}

.is-scrolled .topbar {
  border-bottom-color: var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 44px;
  padding: 0 0.8rem;
  color: var(--cream);
  font-weight: 650;
  text-decoration: none;
}

.nav-caret {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.25s var(--ease);
}

.has-sub:hover .nav-caret,
.has-sub:focus-within .nav-caret,
.has-sub.is-open .nav-caret {
  transform: rotate(180deg);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.is-scrolled .site-nav__link,
.site-header.is-open .site-nav__link {
  color: var(--ink);
}

.sub-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sub-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ---------- Services mega menu ---------- */

/* The panel spans the full navbar width, so the Services item must not be its anchor. */
.site-nav__item.has-sub {
  position: static;
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
}

/* Invisible bridge across the gap under the link, so the panel stays open while the pointer moves down. */
.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 22px;
}

.has-sub:hover .mega,
.has-sub:focus-within .mega,
.site-nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.has-sub.is-dismissed .mega {
  opacity: 0;
  visibility: hidden;
}

.mega__inner {
  display: grid;
  grid-template-columns: 1fr 290px;
}

.mega__groups {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.2rem;
  padding: 2rem 2.2rem 1.6rem;
}

.mega__head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.mega__head h2 {
  margin: 0 0 0.3rem;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mega__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mega__list {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.mega__col--wide .mega__list {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.2rem;
}

.mega__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 -0.55rem;
  padding: 0.42rem 0.55rem;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega__link:hover,
.mega__link:focus-visible,
.mega__link[aria-current="page"] {
  background: var(--paper-deep);
  color: var(--accent-strong);
}

.mega__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.14);
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

.mega__link:hover .mega__num,
.mega__link[aria-current="page"] .mega__num {
  background: var(--accent);
  color: var(--ink);
  transform: scale(1.06);
}

.mega__promo {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 2rem 1.8rem;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
}

.mega__promo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mega__promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.25) 0%, rgba(20, 17, 15, 0.92) 70%);
}

.mega__eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mega__promo h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}

.mega__promo p {
  margin: 0 0 0.4rem;
  color: rgba(255, 251, 245, 0.82);
  font-size: 0.88rem;
  line-height: 1.5;
}

.mega__promo .btn {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
}

.mega__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.mega__phone:hover {
  color: var(--accent);
}

.mega__phone svg,
.mega__all svg {
  width: 17px;
  height: 17px;
}

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding: 0.9rem 2.2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.88rem;
}

.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mega__all svg {
  transition: transform 0.25s var(--ease);
}

.mega__all:hover {
  color: var(--accent-strong);
}

.mega__all:hover svg {
  transform: translateX(4px);
}

.nav-cta {
  min-height: 46px;
  padding: 0.55rem 1.2rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  color: var(--ink);
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__lines::before {
  top: -7px;
}

.nav-toggle__lines::after {
  top: 7px;
}

.site-header.is-open .nav-toggle__lines {
  background: transparent;
}

.site-header.is-open .nav-toggle__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-offset) + 3.5rem) 0 7.5rem;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, 0.96) 0%, rgba(20, 17, 15, 0.82) 45%, rgba(20, 17, 15, 0.55) 100%),
    radial-gradient(circle at 85% 15%, rgba(255, 138, 31, 0.25), transparent 35%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  max-width: 19ch;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero .lede {
  max-width: 36rem;
}

.hero__checks {
  margin-top: 1.8rem;
  max-width: min(100%, 520px);
}

.hero__checks img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.hero__copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.32s; }

.hero__form {
  animation: rise 1s 0.2s var(--ease) both;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-offset) + 3rem) 0 6.5rem;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, 0.95) 0%, rgba(20, 17, 15, 0.8) 55%, rgba(20, 17, 15, 0.6) 100%);
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lede {
  max-width: 42rem;
}

.page-hero__inner > * {
  animation: rise 0.8s var(--ease) both;
}

.page-hero__inner > *:nth-child(3) { animation-delay: 0.08s; }
.page-hero__inner > *:nth-child(4) { animation-delay: 0.16s; }
.page-hero__inner > *:nth-child(5) { animation-delay: 0.24s; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  list-style: none;
  color: rgba(255, 251, 245, 0.7);
  font-size: 0.88rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.5;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs [aria-current] {
  color: var(--accent);
}

/* ---------- Lead form ---------- */

.lead-form {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.lead-form__title {
  margin-bottom: 0.3rem;
  font-size: 1.6rem;
}

.lead-form__note {
  color: var(--muted);
  font-size: 0.94rem;
}

.lead-form__grid,
.inquiry__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span,
.field label {
  font-size: 0.84rem;
  font-weight: 650;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.18);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.lead-form__legal,
.form-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.lead-form__legal a,
.form-note a {
  color: var(--accent-strong);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.form-alert {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  background: rgba(155, 44, 44, 0.08);
  color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Stats ---------- */

.stats {
  position: relative;
  z-index: 3;
  padding: 3rem 0;
}

.stats--overlap {
  margin-top: -4.25rem;
  padding: 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  position: relative;
  padding: 1.7rem 1.2rem;
  text-align: center;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--line);
}

.stat__value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__value em {
  color: var(--accent);
  font-style: normal;
}

.stat__label {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 6rem 0;
}

.section--tint {
  background: var(--paper);
}

.section--dark {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 138, 31, 0.18), transparent 32%),
    var(--ink);
  color: var(--cream);
}

.section-head {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.section-head--row h2 {
  margin: 0;
}

.section-head--row .lede {
  max-width: 30rem;
  margin: 0;
}

/* ---------- Split: content and image side by side ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__content > p {
  color: var(--muted);
}

.split__content h2 {
  margin-bottom: 1.2rem;
}

.media-frame {
  position: relative;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  z-index: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease);
}

.media-frame--left::before {
  inset: 1.4rem 1.4rem -1.4rem -1.4rem;
}

.media-frame:hover::before {
  transform: translate(-6px, -6px);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.media-badge {
  position: absolute;
  z-index: 2;
  left: -1.5rem;
  bottom: 2rem;
  display: grid;
  max-width: 220px;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.media-frame--left .media-badge {
  left: auto;
  right: -1.5rem;
}

.media-badge strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
}

.media-badge span {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.media-badge--top {
  top: 2rem;
  bottom: auto;
}

.media-stack {
  position: relative;
  padding: 0 0 4rem 3rem;
}

.media-stack__main {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.media-stack__small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-stack .media-badge {
  left: auto;
  right: -1rem;
}

.ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.2rem;
  margin: 1.4rem 0 0.4rem;
  list-style: none;
}

.ticks--stack {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}

.ticks--stack li {
  font-weight: 400;
  color: var(--muted);
}

.ticks--stack strong {
  color: var(--ink);
}

.ticks svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  stroke-width: 3;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.8rem;
}

.mini-stats div {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--paper);
}

.mini-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pull-quote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}

.pull-quote--large {
  font-size: 1.4rem;
}

.byline {
  color: var(--muted);
}

/* ---------- Service cards ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.svc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.svc-card:hover .svc-card__media img {
  transform: scale(1.07);
}

.svc-card__icon {
  position: absolute;
  left: 1.2rem;
  bottom: -26px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 4px solid var(--white);
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.4s var(--ease);
}

.svc-card:hover .svc-card__icon {
  transform: rotate(-8deg);
}

.svc-card__icon svg {
  width: 26px;
  height: 26px;
}

.svc-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.3rem 1.5rem 1.5rem;
  background: var(--white);
}

.svc-card__group {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svc-card h3 {
  margin: 0.4rem 0 0.5rem;
}

.svc-card__text {
  flex: 1;
  margin-bottom: 1rem;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.filters button {
  min-height: 42px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filters button:hover {
  border-color: var(--ink);
}

.filters button.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Background CTA band ---------- */

.cta-band {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
  isolation: isolate;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 17, 15, 0.94) 10%, rgba(20, 17, 15, 0.7) 60%, rgba(194, 65, 12, 0.55) 100%);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2.5rem;
  align-items: center;
}

.cta-band h2 {
  max-width: 24ch;
}

.cta-band p {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 251, 245, 0.84);
}

.cta-band .actions {
  margin: 0;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  gap: 1.3rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  transition: background 0.3s ease;
}

.feature:hover {
  background: var(--paper);
}

.feature h3 {
  margin-bottom: 0.25rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 138, 31, 0.14);
  color: var(--accent-strong);
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}

.value {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.value h3 {
  margin: 0.8rem 0 0.3rem;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Formats ---------- */

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.format {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--cream);
  text-decoration: none;
  isolation: isolate;
}

.format img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.format::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 17, 15, 0.92) 100%);
}

.format:hover img {
  transform: scale(1.08);
}

.format__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.3rem;
  padding: 1.5rem;
}

.format__tag {
  justify-self: start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format strong {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.format__body > span:last-child {
  max-height: 0;
  overflow: hidden;
  font-size: 0.92rem;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s ease;
}

.format:hover .format__body > span:last-child,
.format:focus-visible .format__body > span:last-child {
  max-height: 120px;
  opacity: 0.9;
}

/* ---------- Platforms marquee ---------- */

.platforms {
  position: relative;
  z-index: 2;
  margin: 0.75rem 0 0;
  padding: 1.6rem 0;
  background: transparent;
}

.platforms-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.platforms-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: platforms-scroll 40s linear infinite;
}

.platforms-marquee__group {
  display: flex;
  align-items: center;
  gap: 3.4rem;
  padding-right: 3.4rem;
}

.platforms-item {
  flex: none;
  display: grid;
  place-items: center;
  height: 64px;
}

.platforms-item img {
  width: auto;
  max-width: 200px;
  height: 48px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

@keyframes platforms-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Portfolio marquee ---------- */

.portfolio {
  padding: 6rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 138, 31, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(194, 65, 12, 0.16), transparent 50%),
    var(--ink);
  color: var(--cream);
}

.portfolio .eyebrow {
  color: var(--accent);
}

.portfolio h2 {
  color: var(--cream);
}

.portfolio .lede {
  color: rgba(255, 251, 245, 0.72);
}

.portfolio-marquee {
  position: relative;
  margin-top: 2.8rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.portfolio-marquee__track {
  display: flex;
  width: max-content;
  animation: portfolio-scroll 48s linear infinite;
}

.portfolio-marquee:hover .portfolio-marquee__track {
  animation-play-state: paused;
}

.portfolio-marquee__group {
  display: flex;
  gap: 1.4rem;
  padding-right: 1.4rem;
}

.portfolio-card {
  flex: none;
  width: 196px;
  margin: 0;
}

.portfolio-card__cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #2a221c;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.portfolio-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.portfolio-card:hover .portfolio-card__cover img {
  transform: scale(1.06);
}

.portfolio-card__meta {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
  padding: 0 0.15rem;
}

.portfolio-card__meta strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.portfolio-card__meta span {
  color: rgba(255, 251, 245, 0.62);
  font-size: 0.84rem;
}

@keyframes portfolio-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 251, 245, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 251, 245, 0.04);
  transition: background 0.3s ease, transform 0.4s var(--ease), border-color 0.3s ease;
}

.step:hover {
  border-color: rgba(255, 138, 31, 0.6);
  background: rgba(255, 251, 245, 0.08);
  transform: translateY(-6px);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.step p {
  margin: 0;
  color: rgba(255, 251, 245, 0.75);
  font-size: 0.95rem;
}

/* ---------- Includes and chips ---------- */

.include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.include {
  position: relative;
  padding: 1.8rem 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.include::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.include:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.include:hover::after {
  transform: scaleX(1);
}

.include__num {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.include p {
  margin: 0;
  color: var(--muted);
}

.chips-title {
  margin-top: 1.6rem;
  font-size: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

.chips svg {
  width: 16px;
  height: 16px;
  color: var(--accent-strong);
  stroke-width: 2.6;
}

/* ---------- Reviews ---------- */

.reviews {
  padding: 6rem 0;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2rem 1.7rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.review::before {
  content: "\201C";
  position: absolute;
  right: 1.4rem;
  top: 0.4rem;
  color: rgba(255, 138, 31, 0.25);
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
}

.review:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.review__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.review__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review blockquote {
  flex: 1;
  margin: 0;
}

.review h3 {
  font-size: 1.3rem;
}

.review p {
  color: var(--muted);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.review__avatar--photo {
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--paper-deep);
}

.review__name {
  display: block;
  font-weight: 700;
}

.review__role {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.faq-aside__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 1.5rem 0 1rem;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.faq.is-open {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.faq__heading {
  margin: 0;
  font-family: var(--sans);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
}

.faq__trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.25rem 3.5rem 1.25rem 1.4rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}

.faq__trigger::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent-strong);
  font-size: 1.3rem;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
}

.faq.is-open .faq__trigger::after {
  content: "−";
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-50%) rotate(180deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel[hidden] {
  display: none;
}

.faq__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__panel p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
}

/* ---------- 404 / missing ---------- */

.missing {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  padding: calc(var(--header-offset) + 4rem) 0 5rem;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.missing__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.missing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(20, 17, 15, 0.92) 0%, rgba(20, 17, 15, 0.72) 48%, rgba(20, 17, 15, 0.45) 100%),
    linear-gradient(to top, rgba(20, 17, 15, 0.55), transparent 42%);
}

.missing__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
}

.missing__code {
  position: absolute;
  top: -1.2rem;
  left: -0.15em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  animation: missing-fade 0.9s ease both;
}

.missing__copy {
  position: relative;
  z-index: 1;
}

.missing__copy h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.missing__copy .actions {
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.missing__copy .actions > * {
  animation: rise 0.7s ease both;
}

.missing__copy .actions > *:nth-child(1) { animation-delay: 0.12s; }
.missing__copy .actions > *:nth-child(2) { animation-delay: 0.2s; }
.missing__copy .actions > *:nth-child(3) { animation-delay: 0.28s; }

@keyframes missing-fade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.missing-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.missing-link {
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.missing-link:hover {
  border-color: rgba(255, 138, 31, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20, 17, 15, 0.08);
}

.missing-link__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.12);
  color: var(--accent-strong);
}

.missing-link__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.missing-link strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.missing-link span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .missing-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .missing {
    min-height: auto;
    padding: calc(var(--header-offset) + 2.5rem) 0 3.5rem;
  }

  .missing__code {
    top: -0.4rem;
    font-size: clamp(5.5rem, 28vw, 8rem);
  }

  .missing__copy h1 {
    max-width: none;
  }

  .missing-links {
    grid-template-columns: 1fr;
  }
}

/* ---------- Thank you ---------- */

.page-thanks {
  min-height: 100vh;
}

.page-thanks .skip-link {
  display: none;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks {
  position: relative;
  width: 100%;
  padding: 3rem 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 138, 31, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(20, 17, 15, 0.06), transparent 35%),
    var(--paper);
}

.thanks__inner {
  display: grid;
  place-items: center;
}

.thanks__brand {
  display: inline-flex;
  margin: 0 auto 1.4rem;
}

.thanks__brand img {
  width: min(220px, 70vw);
  height: auto;
}

.thanks__card {
  width: min(100%, 720px);
  padding: 2.6rem 2.4rem;
  border: 1px solid var(--line);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(255, 138, 31, 0.16);
  color: var(--accent-strong);
}

.thanks__icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.6;
}

.thanks__card .eyebrow {
  justify-content: center;
}

.thanks__card h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.thanks__card .lede {
  margin-inline: auto;
}

.thanks__next {
  display: grid;
  gap: 0.85rem;
  margin: 1.8rem auto 0;
  max-width: 34rem;
  list-style: none;
  text-align: left;
}

.thanks__next li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.thanks__next svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent-strong);
}

.thanks__card .actions {
  justify-content: center;
  margin-top: 2rem;
}

.thanks__note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.thanks__note a {
  color: var(--accent-strong);
  font-weight: 700;
}

@media (max-width: 640px) {
  .thanks {
    padding: 2rem 0;
  }

  .thanks__card {
    padding: 1.8rem 1.3rem;
  }

  .thanks__card .actions {
    flex-direction: column;
  }

  .thanks__card .actions .btn {
    width: 100%;
  }
}

/* ---------- Contact ---------- */

.contact-cta {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 31, 0.12), transparent 35%),
    var(--paper);
}

.contact-points {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
  list-style: none;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.08rem;
  font-weight: 650;
}

.contact-points a {
  text-decoration: none;
}

.contact-points a:hover {
  color: var(--accent-strong);
}

.contact-points__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
}

.contact-points__icon svg {
  width: 22px;
  height: 22px;
}

.contact-cards {
  position: relative;
  z-index: 3;
  margin-top: -4rem;
}

.contact-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.4s var(--ease);
  overflow-wrap: anywhere;
}

a.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.6rem;
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 1.08rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.inquiry {
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-aside {
  display: grid;
  gap: 2.2rem;
}

.contact-aside__card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--cream);
}

.next-steps {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.4rem;
  padding-left: 1.2rem;
  color: rgba(255, 251, 245, 0.8);
}

.next-steps strong {
  color: var(--cream);
}

.next-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Legal ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
}

.legal-toc__title {
  font-weight: 700;
}

.legal-toc ol {
  display: grid;
  gap: 0.3rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-toc a {
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent-strong);
}

.legal-toc__help {
  display: grid;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.legal-toc__help a {
  color: var(--accent-strong);
}

.legal {
  max-width: 760px;
}

.legal__updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal article {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.legal h2 {
  font-size: 1.6rem;
}

.legal h2 span {
  color: var(--accent);
}

.legal p {
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 0 0 1.5rem;
  background: var(--ink);
  color: rgba(255, 251, 245, 0.78);
}

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 251, 245, 0.1);
}

.footer__cta h2 {
  margin-bottom: 0.3rem;
  color: var(--cream);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.footer__cta p {
  margin: 0;
}

.footer__cta .actions {
  margin: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer__brand img {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 1.2rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin: 0.45rem 0;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-wrap: anywhere;
}

.footer__contact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer__base {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 251, 245, 0.1);
  font-size: 0.88rem;
}

.footer__disclaimer {
  opacity: 0.75;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 251, 245, 0.08);
}

.footer__copy {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.footer__legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer__legal a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ---------- Floating buttons ---------- */

.to-top {
  position: fixed;
  z-index: 40;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

/* ---------- Scroll reveal ---------- */

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255, 138, 31, 0.08); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .mega__inner {
    grid-template-columns: 1fr;
  }

  .mega__promo {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .steps,
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .nav-toggle,
  .sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar__note {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: block;
    width: min(420px, 100%);
    margin: 0;
    padding: calc(var(--header-offset) + 1rem) 1.4rem 2rem;
    overflow-y: auto;
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }

  .site-header.is-open .site-nav {
    transform: none;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__item {
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link {
    flex: 1;
    min-height: 52px;
    color: var(--ink);
  }

  .site-nav__link::after {
    display: none;
  }

  .mega,
  .has-sub:hover .mega,
  .has-sub:focus-within .mega,
  .site-nav__item.is-open .mega {
    position: static;
    display: none;
    width: 100%;
    padding: 0 0 1rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__item.is-open .mega {
    display: block;
  }

  .mega::before,
  .mega__promo,
  .mega__head p {
    display: none;
  }

  .mega__inner,
  .mega__groups,
  .mega__col--wide .mega__list {
    grid-template-columns: 1fr;
  }

  .mega__groups {
    gap: 1.2rem;
    padding: 0.2rem 0 0;
  }

  .mega__head {
    margin-bottom: 0.4rem;
    padding-bottom: 0;
    border: 0;
  }

  .mega__link {
    margin: 0;
    padding: 0.4rem 0.5rem;
  }

  .mega__num {
    width: 26px;
    height: 26px;
  }

  /* Mobile uses the separate sub-toggle; hide the desktop caret to avoid two arrows. */
  .nav-caret {
    display: none;
  }

  .mega__foot {
    padding: 1rem 0 0;
    border: 0;
    background: transparent;
  }

  .nav-cta {
    width: 100%;
    margin-top: 1.4rem;
  }

  .hero__grid,
  .split,
  .contact-layout,
  .faq-layout,
  .legal-layout,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 7rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .split {
    gap: 3.5rem;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    max-width: 620px;
  }

  .stats__grid,
  .contact-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .svc-grid,
  .include-grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-aside,
  .legal-toc {
    position: static;
  }

  .footer__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .section,
  .reviews,
  .cta-band,
  .portfolio {
    padding: 4rem 0;
  }

  .portfolio-card {
    width: 156px;
  }

  .portfolio-marquee__track {
    animation-duration: 36s;
  }

  .hero {
    padding-top: calc(var(--header-offset) + 2rem);
    padding-bottom: 6.5rem;
  }

  .page-hero {
    padding-top: calc(var(--header-offset) + 2rem);
    padding-bottom: 6rem;
  }

  .lead-form,
  .inquiry {
    padding: 1.4rem;
  }

  .lead-form__grid,
  .inquiry__grid,
  .svc-grid,
  .include-grid,
  .reviews__grid,
  .steps,
  .format-grid,
  .ticks,
  .value-grid,
  .mini-stats,
  .contact-cards__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .contact-cards__grid {
    gap: 0.8rem;
  }

  .contact-card {
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0;
    align-items: center;
    padding: 1rem 1.2rem;
  }

  .contact-card__icon {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    margin-bottom: 0;
  }

  .stat {
    padding: 1.3rem 0.8rem;
  }

  .media-frame::before {
    inset: 0.8rem -0.6rem -0.8rem 0.8rem;
  }

  .media-frame--left::before {
    inset: 0.8rem 0.8rem -0.8rem -0.6rem;
  }

  .media-badge,
  .media-frame--left .media-badge {
    left: 0.8rem;
    right: auto;
    bottom: -1.5rem;
  }

  .media-stack {
    padding: 0 0 3rem 1.5rem;
  }

  .media-stack .media-badge {
    top: 1rem;
    right: 0.5rem;
    left: auto;
    bottom: auto;
  }

  .format {
    min-height: 300px;
  }

  .format__body > span:last-child {
    max-height: 120px;
    opacity: 0.9;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .portfolio-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }

  .portfolio-marquee__track {
    width: auto;
  }

  .portfolio-marquee__group[aria-hidden="true"],
  .platforms-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .portfolio-marquee__group,
  .platforms-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  .platforms-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }

  .platforms-marquee__track {
    width: auto;
  }

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cta-band {
    background-attachment: scroll;
  }
}
