:root {
  /* Light cream ground, blue + soft sage accents */
  --bg: #fbf7f0;
  --bg-2: #fffdf9;
  --bg-3: #efe8dc;
  --ink: #212b3f;
  --ink-muted: rgba(33, 43, 63, 0.7);
  --ink-faint: rgba(33, 43, 63, 0.44);
  --line: rgba(33, 43, 63, 0.12);
  --accent: #1c4694;
  --accent-soft: #263d69;
  --accent-dim: rgba(28, 70, 148, 0.12);
  --accent-ink: #fffdf9;
  --sage: #8fa38a;
  --sage-soft: #a8b89f;
  --sage-dim: rgba(143, 163, 138, 0.16);
  --sky: #b0ccff;
  --ice: #dae7ff;
  --ghost: rgba(33, 43, 63, 0.035);
  --header-bg: rgba(251, 247, 240, 0.86);
  --header-bg-strong: rgba(255, 253, 249, 0.95);
  --nav-overlay: rgba(255, 253, 249, 0.98);
  --shadow: rgba(33, 43, 63, 0.12);
  --media-deep: #b0ccff;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-anchor: none;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  padding-top: var(--header-h);
  overflow-x: hidden;
  background:
    radial-gradient(90% 55% at 12% -8%, rgba(28, 70, 148, 0.07), transparent 55%),
    radial-gradient(65% 40% at 88% 8%, rgba(143, 163, 138, 0.14), transparent 50%),
    radial-gradient(70% 45% at 100% 12%, rgba(176, 204, 255, 0.14), transparent 52%),
    linear-gradient(180deg, #fffdf9 0%, #fbf7f0 50%, #f3ebe0 100%);
  background-attachment: fixed;
}

body.nav-open {
  overflow: hidden;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

a {
  color: inherit;
}

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

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  color: var(--sage);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg-strong);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

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

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: var(--accent-soft);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  border-color: rgba(242, 238, 230, 0.28);
}

.btn.compact {
  padding: 0.65rem 0.95rem;
}

.btn-nav {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--accent-soft);
  color: var(--accent-ink) !important;
}

/* Hero */
.hero {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) 0 5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--accent), transparent);
  opacity: 0.45;
}

.hero h1 {
  max-width: 22ch;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.35rem);
  max-width: 16ch;
  margin-bottom: 2.25rem;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.lede,
.section-lede {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  font-style: normal;
  max-width: 48ch;
  margin: 0;
}

.hero-lede {
  max-width: 48ch;
}

.hero-lede p {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: normal;
  margin: 0;
}

.hero-lede p + p {
  margin-top: 0.9rem;
}

.hero-aside {
  margin: 0.85rem 0 0;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: normal;
  color: var(--ink-faint);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: end;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.path-map {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
}

.path-map li {
  list-style: none;
}

.path-map li::marker {
  content: none;
}

.path-map li {
  padding: 0.85rem 0 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  position: relative;
}

.path-map li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 1.25rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* Sections */
.section {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

main > .section:last-child {
  border-bottom: 0;
}

.page-contact .contact-section {
  padding-top: clamp(3rem, 8vh, 5.5rem);
  min-height: calc(100dvh - var(--header-h) - 7rem);
}

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

.section-lede {
  margin-top: 0.85rem;
}

/* Services */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: rgba(255, 253, 249, 0.92);
  padding: 1.5rem 1.4rem 1.6rem;
  min-height: 14.5rem;
  transition: background 0.25s ease;
}

.service-card:hover {
  background: var(--bg-2);
}

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

.service-badge {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.service-card p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.repeat-cta {
  display: flex;
  margin-top: 2.5rem;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  overflow-anchor: none;
}

.work-card,
.ghost-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.work-card:hover {
  border-color: rgba(28, 70, 148, 0.45);
  transform: translateY(-2px);
}

.work-media,
.ghost-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, transparent 0%, rgba(33, 43, 63, 0.08) 100%),
    linear-gradient(135deg, var(--bg-3), var(--sage-dim), var(--ice));
  position: relative;
  overflow: hidden;
}

.work-media img,
.work-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-media video {
  background: var(--bg-3);
  overflow-anchor: none;
}

.work-card.has-video,
.work-card.has-demo {
  cursor: pointer;
}

.work-card.has-video:focus-visible,
.work-card.has-demo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-expand {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(33, 43, 63, 0.78);
  color: var(--accent-ink);
  pointer-events: none;
}

.work-kind-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 12.75px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  pointer-events: none;
}

.work-media::after,
.ghost-media::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 12%;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, var(--sage), transparent);
  opacity: 0.75;
  z-index: 1;
}

.work-card.has-video .work-media::after,
.work-card.has-demo .work-media::after {
  display: none;
}

.work-preview-app {
  position: absolute;
  inset: 12% 10% 22%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px var(--shadow);
}

.work-preview-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.work-preview-line,
.work-preview-line.short {
  height: 0.45rem;
  border-radius: 99px;
  background: rgba(33, 43, 63, 0.1);
  margin: 0 0 0.4rem;
}

.work-preview-line.short {
  width: 62%;
}

.work-preview-reply {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  color: var(--accent);
}

.work-body,
.ghost-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.work-cat,
.ghost-cat {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.work-body h3,
.ghost-title {
  font-size: 1.2rem;
}

.work-client {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.work-summary,
.ghost-summary {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.work-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(143, 163, 138, 0.35);
  color: var(--sage);
  background: var(--sage-dim);
}

.ghost-card {
  border-style: dashed;
  background: var(--ghost);
}

.ghost-title,
.ghost-summary,
.ghost-cat {
  background: rgba(33, 43, 63, 0.08);
  color: transparent;
  border-radius: 2px;
}

.ghost-cat {
  width: 5.5rem;
  height: 0.7rem;
}

.ghost-title {
  width: 80%;
  height: 1.15rem;
  margin-top: 0.35rem;
}

.ghost-summary {
  width: 100%;
  height: 2.4rem;
  margin-top: 0.5rem;
}

.work-empty-note {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-list li {
  list-style: none;
  padding: 0 1.25rem 0 0;
}

.process-list li::marker {
  content: none;
}

.process-list h3 {
  font-size: 1.25rem;
}

.process-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* Contact */
.contact-layout {
  max-width: 52rem;
}

.contact-booking {
  width: 100%;
}

.contact-fallback {
  margin: 1.15rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.contact-fallback a {
  color: var(--accent);
}

.booking-widget {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 18px 40px -28px var(--shadow);
  overflow: hidden;
}

.booking-widget-head {
  padding: 1.2rem 1.3rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.booking-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.booking-lede {
  margin: 0;
  color: var(--ink-muted);
  max-width: 46ch;
}

.booking-widget-body {
  padding: 1.15rem 1.3rem 1.3rem;
}

.booking-service {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.booking-service span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.booking-service select {
  appearance: none;
  width: 100%;
  max-width: 28rem;
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%21212b3f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 2.4rem 0.8rem 0.9rem;
  border-radius: 0.4rem;
}

.booking-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  gap: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.booking-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.booking-cal-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.booking-nav {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.booking-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.booking-dow,
.booking-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.booking-dow {
  margin-bottom: 0.35rem;
}

.booking-dow span {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.booking-cell {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
}

.booking-cell.is-empty {
  pointer-events: none;
}

.booking-cell.is-disabled {
  color: var(--ink-faint);
  cursor: default;
}

.booking-cell.is-selected {
  background: var(--accent);
  color: var(--accent-ink);
}

.booking-cell:not(.is-disabled):not(.is-selected):hover {
  background: var(--accent-dim);
}

.booking-slots-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.booking-slots-empty {
  margin: 0;
  color: var(--ink-muted);
}

.booking-slot-list {
  display: grid;
  gap: 0.45rem;
  max-height: 19rem;
  overflow: auto;
}

.booking-slot {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

.booking-slot.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

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

.booking-optional {
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}

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

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

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.4rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field select {
  padding-right: 2.4rem;
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%21212b3f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  cursor: pointer;
}

.field select:invalid {
  color: var(--ink-muted);
}

.field select:valid {
  color: var(--ink);
}

.field select option {
  color: var(--ink);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(28, 70, 148, 0.55);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.form-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pricing-card {
  background: rgba(255, 253, 249, 0.92);
  padding: 1.5rem 1.4rem 1.65rem;
}

.pricing-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin: 0 0 0.35rem;
}

.pricing-kicker-row .pricing-step {
  margin: 0;
}

.pricing-step {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.start-here {
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
}

.pricing-card h3 {
  margin: 0 0 0.35rem;
}

.pricing-amount {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.pricing-amount strong {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
}

.pricing-lede {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.pricing-block {
  margin-bottom: 0.85rem;
}

.pricing-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.pricing-block ul,
.pricing-extra-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.pricing-custom-quote ul {
  font-size: 0.96rem;
}

.pricing-block li + li,
.pricing-extra-list li + li {
  margin-top: 0.25rem;
}

.pricing-best,
.pricing-note {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.pricing-extra {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.pricing-extra h3,
.pricing-notes h3 {
  margin-bottom: 0.65rem;
}

.pricing-extra > p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  max-width: 52ch;
}

.pricing-extra-list {
  columns: 2;
  column-gap: 2rem;
  max-width: 42rem;
}

.pricing-notes {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.pricing-notes-list {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.pricing-notes-list dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.pricing-notes-list dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.4rem;
  background: var(--accent-dim);
  border: 1px solid rgba(28, 70, 148, 0.14);
  border-radius: 0.5rem;
}

.pricing-cta p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 38ch;
}

/* Footer */
.site-footer {
  padding: 2rem 0 144px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.15rem;
}

.footer-inner nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-inner nav a:hover {
  color: var(--ink);
}

.footer-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* Video lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 43, 63, 0.62);
  backdrop-filter: blur(6px);
}

.video-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 24px 60px var(--shadow);
  overflow: hidden;
  animation: rise 0.35s var(--ease) both;
}

.video-lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.video-lightbox-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.video-lightbox-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  max-width: none;
}

.video-lightbox-close {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.video-lightbox-close:hover {
  border-color: rgba(33, 43, 63, 0.28);
}

.video-lightbox-stage {
  background: #12161f;
  display: grid;
  place-items: center;
}

.video-lightbox-stage video {
  width: 100%;
  max-height: min(72vh, 620px);
  display: block;
  background: #12161f;
}

.video-lightbox-note {
  margin: 0;
  padding: 0.75rem 1.15rem 1rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .chat-widget {
  visibility: hidden;
}

/* Email assistant */
.email-assistant-dialog {
  width: min(720px, 100%);
  max-height: min(92dvh, 820px);
  overflow: auto;
}

.email-assistant {
  padding: 1.15rem 1.15rem 1.35rem;
  display: grid;
  gap: 0.95rem;
}

.email-assistant-lede {
  margin: 0;
  color: var(--ink-muted);
}

.demo-banner {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: rgba(28, 70, 148, 0.08);
  border: 1px solid rgba(28, 70, 148, 0.16);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.demo-remaining {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
}

.demo-lock {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.demo-lock[hidden] {
  display: none;
}

.demo-lock p {
  margin: 0;
  color: var(--ink-muted);
}

.demo-lock .btn {
  justify-self: start;
}

#email-customer-message,
#intake-request,
#email-suggested-response,
#intake-brief {
  background: var(--bg);
}

.email-assistant-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

.email-assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Sticky book button stacked above the chat launcher on desktop. */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: min(22.5rem, calc(100vw - 48px));
  overflow-anchor: none;
}

.dock-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  max-width: 100%;
}

.dock-book,
.dock-row .chat-toggle {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 13.5px;
  line-height: 1.1;
}

.dock-book {
  width: max-content;
}

.dock-row .chat-toggle {
  width: 100%;
  animation: none;
}

@media (min-width: 641px) {
  .dock-row:has(.chat-toggle[aria-expanded="true"]) .dock-book {
    display: none;
  }
}

.chat-toggle {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 28px var(--shadow);
  animation: chat-pulse 3.6s ease-in-out infinite;
}

.chat-toggle:hover,
.chat-toggle:focus-visible,
.chat-toggle[aria-expanded="true"] {
  animation: none;
}

@keyframes chat-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 28px var(--shadow), 0 0 0 0 rgba(28, 70, 148, 0.22);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 30px var(--shadow), 0 0 0 10px rgba(28, 70, 148, 0);
  }
}

.chat-panel {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(32rem, 70vh);
  box-shadow: 0 18px 40px var(--shadow);
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.chat-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.chat-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.chat-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
}

.chat-log {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  min-height: 12rem;
  flex: 1;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--accent-dim);
  border: 1px solid rgba(28, 70, 148, 0.2);
}

.chat-bubble.pending {
  color: var(--ink-faint);
  font-style: italic;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
}

.chat-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}

.chat-chip:hover,
.chat-chip:focus-visible {
  border-color: rgba(28, 70, 148, 0.45);
  background: var(--accent-dim);
}

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

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0.35rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  outline: none;
}

.chat-form input:focus {
  border-color: rgba(28, 70, 148, 0.5);
}

.chat-note {
  margin: 0;
  padding: 0 1rem 0.85rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: none;
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner {
    gap: 0.85rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .btn-nav {
    font-size: 0.74rem;
    padding: 0.36rem 0.55rem;
  }
}

/* Mobile */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .header-inner,
  .hero,
  .section,
  .footer-inner {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .hero h1 {
    max-width: none;
    text-wrap: pretty;
  }

  .section {
    padding: 3.25rem 0;
  }

  .page-contact .contact-section {
    min-height: 0;
    padding-bottom: 4.5rem;
  }

  .hero-split,
  .contact-layout,
  .process-list,
  .service-grid,
  .work-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    gap: 0;
    border: 0;
    background: transparent;
  }

  .pricing-card {
    border-bottom: 1px solid var(--line);
    padding: 1.35rem 0 1.5rem;
  }

  .pricing-extra-list {
    columns: 1;
  }

  .hero-split {
    gap: 2rem;
  }

  .lede,
  .section-lede,
  .hero-lede,
  .hero-aside,
  .process-list p {
    max-width: none;
  }

  .service-grid {
    gap: 0;
    border: 0;
    background: transparent;
  }

  .service-card {
    border-bottom: 1px solid var(--line);
    min-height: 0;
    padding: 1.25rem 0 1.35rem;
  }

  .process-list::before {
    display: none;
  }

  .process-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

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

  body.nav-open .site-header {
    border-bottom-color: var(--line);
    background: var(--header-bg-strong);
  }

  .wordmark {
    position: relative;
    z-index: 70;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 70;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    bottom: auto;
    z-index: 79;
    background: var(--nav-overlay);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 0.65rem 1.5rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    min-height: 2.4rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .btn-nav {
    font-family: var(--font-body);
    font-size: 0.88rem;
    margin-top: 0.45rem;
    width: auto;
    justify-content: center;
  }

  .contact-form,
  .booking-form,
  .booking-split {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  .site-footer {
    padding: 2rem 0 calc(144px + env(safe-area-inset-bottom, 0px));
  }

  .chat-widget {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    width: min(22.5rem, calc(100vw - 48px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  }

  .chat-panel {
    max-height: min(28rem, calc(100dvh - 8.5rem));
  }

  .video-lightbox {
    padding: 0.65rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    align-items: end;
  }

  .video-lightbox-head {
    flex-wrap: wrap;
  }

  .video-lightbox-stage video {
    max-height: min(52dvh, 420px);
  }

  .email-assistant-row {
    grid-template-columns: 1fr;
  }

  .email-assistant-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .work-grid {
    gap: 0.85rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .field input,
  .field select,
  .field textarea,
  .chat-form input {
    font-size: 16px;
  }

  .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .chat-widget {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    align-items: stretch;
  }

  .dock-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .dock-row:has(.chat-toggle[aria-expanded="true"]) .dock-book {
    display: inline-flex;
  }

  .chat-panel {
    width: 100%;
  }

  .dock-row .dock-book,
  .dock-row .chat-toggle {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    line-height: 1.1;
    white-space: nowrap;
    animation: none;
  }

  .repeat-cta .btn {
    width: 100%;
  }

  .dock-book {
    letter-spacing: -0.01em;
  }

  .chat-form {
    flex-wrap: wrap;
  }

  .chat-form .btn {
    flex: 1 1 auto;
  }

  .path-map li {
    font-size: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
