/* Proxy Vertex Grid — contemporary precision theme */
:root {
  --paper: #f3eee6;
  --paper-deep: #e8e0d4;
  --surface: #fffcf7;
  --ink: #1e1a16;
  --ink-muted: #5c564e;
  --accent: #a33b24;
  --accent-hover: #862f1c;
  --forest: #2f4a3e;
  --rule: #d4cbbf;
  --shadow: 0 12px 40px rgba(30, 26, 22, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Commissioner", system-ui, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --max: 72rem;
  --measure: 40rem;
}

*,
*::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: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
}

.skip-link:focus {
  top: var(--space-3);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 var(--space-3);
}

.main {
  overflow-x: clip;
}

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

.wrap--narrow {
  width: min(100% - 2rem, 46rem);
}

.section {
  padding: var(--space-6) 0;
}

.section--tight {
  padding: var(--space-5) 0;
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.section__lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

.header__brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

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

.header__place {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.header__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
}

.header__toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
  margin-top: 2px;
}

.header__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.header__link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.header__link:hover,
.header__link--current {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (max-width: 900px) {
  .header__toggle {
    display: inline-flex;
    align-items: center;
    position: relative;
  }

  .header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-3) var(--space-4);
    display: none;
  }

  .header__nav--open {
    display: block;
  }

  .header__list {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff8f4;
}

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

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hero variations */
.hero-editorial {
  padding: var(--space-6) 0 var(--space-5);
}

.hero-editorial__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: end;
}

.hero-editorial__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.hero-editorial__title {
  margin-bottom: var(--space-4);
}

.hero-editorial__text {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.hero-editorial__figure {
  margin: 0;
  position: relative;
}

.hero-editorial__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-editorial__caption {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--ink-muted);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-3);
}

.hero-band {
  padding: var(--space-6) 0 0;
}

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

.hero-band__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-band__body {
  width: min(100% - 2rem, var(--max));
  margin: calc(var(--space-5) * -1) auto 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--space-5);
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2 + 1rem));
}

.page-hero {
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-5);
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: var(--space-5);
}

.page-hero__image {
  margin: 0;
}

.page-hero__image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #b7a095;
  transform: translateY(-2px);
}

.card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card__title {
  font-size: 1.2rem;
  margin: 0;
}

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

.card__title a:hover {
  color: var(--accent);
}

.card__text {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin: 0;
  flex: 1;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--forest);
  letter-spacing: 0.04em;
}

.card__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  margin-top: var(--space-2);
}

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.panel--accent {
  border-top: 3px solid var(--accent);
}

.panel--forest {
  background: var(--forest);
  color: #f3eee6;
  border-color: var(--forest);
}

.panel--forest a {
  color: #f7d7c8;
}

.panel--forest h2,
.panel--forest h3 {
  color: #fffcf7;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.stat-list__item {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
}

.stat-list__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.stat-list__text {
  color: var(--ink-muted);
  margin: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}

.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.checklist {
  margin: 0;
  padding-left: 1.15rem;
}

.checklist li {
  margin-bottom: var(--space-2);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: var(--space-5);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: var(--space-2);
}

.legal h2 {
  margin-top: var(--space-5);
  font-size: 1.45rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: var(--space-4) 0;
}

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

.legal th {
  background: var(--paper-deep);
  font-weight: 600;
}

/* Quote / reviews */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.quote {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quote__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
}

.quote__meta {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.quote__name {
  color: var(--ink);
  font-weight: 600;
  display: block;
}

.story {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
}

.story__title {
  margin-bottom: var(--space-1);
}

.story__service {
  font-size: 0.85rem;
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.team-card__photo {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}

.team-card__role {
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

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

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

.rate-table th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.rate-table__price {
  white-space: nowrap;
  font-weight: 600;
  color: var(--accent);
}

.rate-note {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-3);
}

.form__field {
  display: grid;
  gap: 0.4rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  width: 100%;
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 59, 36, 0.15);
}

.form__error {
  color: var(--accent);
  font-size: 0.88rem;
  margin: 0;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin: 0;
}

.form__status--success {
  background: #e4efe8;
  color: var(--forest);
}

.form__status--error {
  background: #f8e8e3;
  color: var(--accent-hover);
}

[aria-invalid="true"] {
  border-color: var(--accent) !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
}

.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-5);
  border-radius: var(--radius);
}

.contact-card a {
  color: #f0c2b0;
}

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

/* Blog article */
.article-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: var(--space-4) 0 var(--space-5);
}

.article-meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

/* Method timeline */
.timeline {
  border-left: 2px solid var(--rule);
  margin-left: 0.6rem;
  padding-left: var(--space-4);
  display: grid;
  gap: var(--space-5);
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4) - 0.45rem);
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

/* Footer */
.footer {
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-4);
  background: var(--ink);
  color: #d8d0c4;
}

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

.footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fffcf7;
  margin-bottom: var(--space-2);
}

.footer__tag {
  color: #b8aea0;
}

.footer__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9c9286;
  margin-bottom: var(--space-2);
}

.footer__address,
.footer__phone,
.footer__email {
  margin-bottom: var(--space-2);
}

.footer a {
  color: #f0c2b0;
  text-decoration: none;
}

.footer a:hover {
  color: #fffcf7;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  align-content: start;
}

.footer__fine {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-5) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid #3a342e;
  font-size: 0.85rem;
  color: #9c9286;
}

/* Cookie banner */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: var(--space-3);
}

.cookie__inner {
  width: min(100%, 52rem);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.cookie__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.cookie__actions {
  display: flex;
  gap: var(--space-2);
}

/* CTA strip */
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  background: var(--paper-deep);
  border-radius: var(--radius);
}

.cta-strip p {
  margin: 0;
  max-width: 32rem;
}

.flag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(163, 59, 36, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

/* 404 */
.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-7) var(--space-3);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}

/* Media queries */
@media (max-width: 900px) {
  .hero-editorial__grid,
  .page-hero--split,
  .split,
  .contact-grid,
  .footer__inner,
  .card-grid,
  .card-grid--2,
  .quote-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-band__body {
    margin-left: 1rem;
    margin-right: 1rem;
    width: auto;
  }

  .hero-editorial__figure img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 600px) {
  .section {
    padding: var(--space-5) 0;
  }

  .cta-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .rate-table,
  .rate-table tbody,
  .rate-table tr,
  .rate-table th,
  .rate-table td {
    display: block;
    width: 100%;
  }

  .rate-table tr {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--rule);
  }

  .rate-table th {
    padding-bottom: 0.25rem;
  }
}
