:root {
  --parchment: #f3ebe0;
  --parchment-deep: #ebe2d4;
  --paper-fold: #e0d4c4;
  --ink: #1a1814;
  --ink-soft: #3a342c;
  --muted: #6b6258;
  --beige: #d4c4b0;
  --terracotta: #b56a4a;
  --terracotta-deep: #8f4f36;
  --indigo: #3d4a6b;
  --indigo-soft: #5a6788;
  --surface: rgba(255, 252, 246, 0.72);
  --rule: rgba(26, 24, 20, 0.14);
  --shadow: rgba(58, 52, 44, 0.12);
  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::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(61, 74, 107, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(181, 106, 74, 0.1), transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(58, 52, 44, 0.015) 2px,
      rgba(58, 52, 44, 0.015) 3px
    ),
    linear-gradient(165deg, var(--parchment) 0%, var(--parchment-deep) 48%, #e8dccb 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.35rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 50%, var(--terracotta) 0 38%, transparent 40%),
    var(--parchment);
  box-shadow: inset 0 0 0 5px var(--parchment);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--terracotta);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--parchment) !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin-top: 0.35rem;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

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

/* Buttons — paper panel slide */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease;
  background: transparent;
  color: var(--ink);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(0);
}

.btn:hover,
.btn:focus-visible {
  color: var(--parchment);
}

.btn-primary {
  background: var(--terracotta);
  border-color: var(--terracotta-deep);
  color: #fff8f2;
}

.btn-primary::before {
  background: var(--terracotta-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff8f2;
}

.btn-secondary {
  background: var(--surface);
}

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

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

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

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

.section-head p {
  font-size: 1.05rem;
}

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

.paper-panel {
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.9), rgba(232, 220, 203, 0.55)),
    var(--parchment-deep);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 40px -28px var(--shadow);
  padding: 1.5rem;
  position: relative;
}

.paper-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    transparent,
    transparent 6px,
    rgba(26, 24, 20, 0.012) 6px,
    rgba(26, 24, 20, 0.012) 7px
  );
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Home hero — full-bleed visual plane */
.hero-home {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: #f7f1e8;
  overflow: hidden;
}

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: eclipse-drift 18s ease-in-out infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(26, 24, 20, 0.78) 0%, rgba(26, 24, 20, 0.35) 45%, rgba(61, 74, 107, 0.25) 100%),
    radial-gradient(circle at 78% 22%, rgba(181, 106, 74, 0.35), transparent 35%);
}

.hero-home-copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  max-width: 36rem;
}

.hero-home-copy .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #f7f1e8;
  animation: rise-in 0.9s ease both;
}

.hero-home-copy h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: #ebe2d4;
  margin: 0 0 0.85rem;
  animation: rise-in 0.9s ease 0.12s both;
}

.hero-home-copy p {
  color: rgba(247, 241, 232, 0.88);
  max-width: 30rem;
  animation: rise-in 0.9s ease 0.22s both;
}

.hero-home .btn-row {
  animation: rise-in 0.9s ease 0.32s both;
}

.hero-home .btn-primary {
  background: var(--terracotta);
  border-color: #f3ebe0;
}

.hero-home .btn-secondary {
  background: transparent;
  border-color: #f3ebe0;
  color: #f3ebe0;
}

.hero-home .btn-secondary:hover,
.hero-home .btn-secondary:focus-visible {
  color: var(--ink);
}

.hero-home .btn-secondary::before {
  background: #f3ebe0;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes eclipse-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, 1%); }
}

@keyframes fold-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fold-in 0.8s ease both;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.page-hero-grid.has-media {
  grid-template-columns: 1.2fr 0.8fr;
}

.page-hero-media {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(0.9);
}

/* Offer / service lists */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.offer-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -30px var(--shadow);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.offer-card h3 {
  color: var(--ink);
}

.offer-card p {
  flex: 1;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-plain li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.list-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--terracotta);
  border-radius: 1px;
}

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

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--indigo);
  line-height: 1;
  padding-top: 0.15rem;
}

/* Quotes */
.quote-list {
  display: grid;
  gap: 1.25rem;
}

.quote {
  padding: 1.5rem;
  border-left: 3px solid var(--terracotta);
  background: var(--surface);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
}

.quote footer {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.post-card:hover {
  border-color: var(--indigo-soft);
}

.post-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.post-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

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

/* Forms */
.form-panel {
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 246, 0.9);
  font: inherit;
  color: var(--ink);
}

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

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

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

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--terracotta);
}

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

.form-status.is-success {
  display: block;
  border-color: var(--indigo);
  background: rgba(61, 74, 107, 0.08);
}

.form-status.is-error {
  display: block;
  border-color: var(--terracotta);
  background: rgba(181, 106, 74, 0.1);
}

.contact-aside {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.contact-aside p {
  margin-bottom: 0.55rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

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

.rate-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.factor-note {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Legal */
.legal {
  max-width: 46rem;
  padding-bottom: 4rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--rule);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(212, 196, 176, 0.35);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  background: rgba(26, 24, 20, 0.94);
  color: #e8dccb;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #e8dccb;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 1.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f3ebe0;
  margin-bottom: 0.5rem;
}

.footer-tag,
.site-footer p {
  color: #cfc3b1;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.55rem !important;
}

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

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 196, 176, 0.2);
  font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(243, 235, 224, 0.97);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -12px 40px -24px var(--shadow);
  padding: 1rem 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

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

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

/* Detail */
.detail-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--rule);
  margin: 1.5rem 0 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.side-box {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.side-box dl {
  margin: 0;
}

.side-box dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.85rem;
}

.side-box dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
}

.case-block {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

/* Field studies custom page */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--beige);
  margin-left: 0.5rem;
}

.timeline-item {
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--terracotta);
  border: 2px solid var(--parchment);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 900px) {
  .offer-grid,
  .post-grid,
  .split,
  .detail-grid,
  .page-hero-grid.has-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(243, 235, 224, 0.98);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

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

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

  .side-box {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
