:root {
  --ink: #162022;
  --ink-soft: #3a4a4c;
  --paper: #f3f1ec;
  --paper-deep: #e6e2d8;
  --surface: #faf9f6;
  --teal: #1b3a3a;
  --teal-mid: #2f5c5a;
  --brass: #c9a66b;
  --brass-deep: #9a7840;
  --line: rgba(22, 32, 34, 0.12);
  --danger: #8b3a2f;
  --ok: #2a5f4a;
  --shadow: 0 18px 40px rgba(22, 32, 34, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 92, 90, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 166, 107, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--teal);
  color: var(--surface);
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--surface);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--teal);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--teal) 0%, var(--teal-mid) 100%);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 2px solid var(--brass);
  border-radius: 2px;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--teal);
  position: relative;
}

.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;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  background: var(--teal);
  color: var(--surface) !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--surface);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroken 18s var(--ease) infinite alternate;
}

@keyframes heroken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(22, 32, 34, 0.82) 0%, rgba(27, 58, 58, 0.55) 48%, rgba(22, 32, 34, 0.35) 100%),
    linear-gradient(0deg, rgba(22, 32, 34, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brass);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero h1 {
  color: var(--surface);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(250, 249, 246, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

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

.btn-primary:hover {
  background: #d4b57a;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 249, 246, 0.45);
  color: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--surface);
  color: var(--surface);
}

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

.btn-outline:hover {
  background: var(--teal);
  color: var(--surface);
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

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

.section-head p {
  color: var(--ink-soft);
}

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

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  min-height: 22rem;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

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

.offer-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.offer-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.offer-item img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.offer-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

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

.offer-body h3 a {
  text-decoration: none;
  color: inherit;
}

.offer-body h3 a:hover {
  color: var(--teal-mid);
}

.offer-body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
  border-bottom: 1px solid var(--brass);
}

.text-link:hover {
  color: var(--brass-deep);
}

.evidence-band {
  background: var(--teal);
  color: rgba(250, 249, 246, 0.92);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.evidence-band::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(201, 166, 107, 0.25);
  border-radius: 50%;
  right: -8rem;
  top: -10rem;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.evidence-band h2 {
  color: var(--surface);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.quote {
  background: rgba(250, 249, 246, 0.06);
  border-left: 3px solid var(--brass);
  padding: 1.5rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--surface);
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(250, 249, 246, 0.7);
}

.cta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(27, 58, 58, 0.05), transparent);
}

.page-hero .wrap {
  max-width: 44rem;
}

.page-hero.with-image {
  max-width: none;
  padding: 0;
  border: 0;
  position: relative;
  min-height: 22rem;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.page-hero.with-image .page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero.with-image .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero.with-image .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 32, 34, 0.78), rgba(22, 32, 34, 0.35));
}

.page-hero.with-image .wrap {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2.5rem;
  max-width: var(--max);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.page-hero.with-image h1,
.page-hero.with-image p,
.page-hero.with-image .eyebrow {
  color: var(--surface);
}

.page-hero.with-image .eyebrow {
  color: var(--brass);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul li + li,
.prose ol li + li {
  margin-top: 0.4rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 550;
  background: rgba(27, 58, 58, 0.04);
  color: var(--teal);
}

.price-note {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.review-list {
  display: grid;
  gap: 1.25rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
}

.review blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.review footer {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 2rem;
}

.case-study img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 16rem;
}

.case-body {
  padding: 1.75rem;
}

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

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
}

.blog-card:hover {
  transform: translateY(-3px);
}

.blog-card img {
  height: 11rem;
  width: 100%;
  object-fit: cover;
}

.blog-card .body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.2rem;
}

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

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

.contact-card {
  background: var(--teal);
  color: var(--surface);
  padding: 2rem;
}

.contact-card h2 {
  color: var(--surface);
}

.contact-card a {
  color: var(--brass);
}

.contact-card address {
  font-style: normal;
  margin-bottom: 1rem;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--teal-mid);
  outline-offset: 1px;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.field-error.show {
  display: block;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(42, 95, 74, 0.12);
  color: var(--ok);
  border: 1px solid rgba(42, 95, 74, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(139, 58, 47, 0.1);
  color: var(--danger);
  border: 1px solid rgba(139, 58, 47, 0.25);
}

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

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.35rem 1.35rem 1.35rem 4.25rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brass-deep);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-card {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 10rem;
}

.team-card .info {
  padding: 1.2rem 1.2rem 1.2rem 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 1.25rem 0;
}

.cookie-table th,
.cookie-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: rgba(27, 58, 58, 0.05);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(250, 249, 246, 0.78);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--surface);
  margin-bottom: 0.6rem;
}

.footer-heading {
  font-weight: 650;
  color: var(--brass);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: rgba(250, 249, 246, 0.78);
  text-decoration: none;
}

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

.site-footer address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 36rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
  animation: rise 0.45s var(--ease);
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  padding: 0.65rem 1rem;
}

.inline-error {
  background: rgba(139, 58, 47, 0.1);
  color: var(--danger);
  border: 1px solid rgba(139, 58, 47, 0.25);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border-radius: var(--radius);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.process-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .split,
  .split-reverse,
  .offer-grid,
  .blog-grid,
  .quote-grid,
  .contact-layout,
  .case-study,
  .team-grid,
  .footer-grid,
  .cta-panel,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    text-align: center;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card img {
    min-height: 14rem;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 4rem;
  }

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