:root {
  --chalk: #f7f4ef;
  --apricot: #f3e6d4;
  --terracotta: #c45c3e;
  --olive: #6b7a4d;
  --coral: #d9897a;
  --espresso: #2a1f1a;
  --espresso-muted: #5c4a40;
  --paper: #fffaf4;
  --hairline: rgba(42, 31, 26, 0.14);
  --shadow: 0 12px 32px rgba(42, 31, 26, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --container: min(1180px, calc(100% - 3rem));
  --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(--espresso);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(217, 137, 122, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(107, 122, 77, 0.12), transparent 40%),
    linear-gradient(180deg, var(--chalk) 0%, var(--apricot) 55%, var(--chalk) 100%);
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--espresso-muted);
  max-width: 42rem;
}

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

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

.btn--primary {
  background: var(--terracotta);
  color: var(--espresso);
}

.btn--primary:hover {
  background: transparent;
  border-color: var(--terracotta);
  color: var(--espresso);
  text-decoration: underline;
}

.btn--olive {
  background: var(--olive);
  color: var(--chalk);
}

.btn--olive:hover {
  background: transparent;
  border-color: var(--olive);
  color: var(--espresso);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--espresso);
}

.btn--ghost:hover {
  border-color: var(--espresso);
  text-decoration: underline;
}

.btn--compact {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
body:not(.has-hero) .site-header {
  background: rgba(247, 244, 239, 0.96);
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 20px rgba(42, 31, 26, 0.05);
}

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

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

.site-header__mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: var(--terracotta);
  color: var(--chalk);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.site-header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hairline);
  border-radius: 0.6rem;
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-header__toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--espresso);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.site-header__nav a {
  color: var(--espresso-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--espresso);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .site-header__toggle { display: inline-flex; }
  .site-header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Hero home */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 31, 26, 0.72) 0%, rgba(42, 31, 26, 0.35) 48%, rgba(42, 31, 26, 0.15) 100%),
    linear-gradient(0deg, rgba(42, 31, 26, 0.55), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  color: var(--chalk);
  max-width: 36rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.8rem;
  color: var(--chalk);
}

.hero__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apricot);
  margin-bottom: 0.75rem;
}

.hero__text {
  font-size: 1.15rem;
  color: rgba(247, 244, 239, 0.9);
  margin-bottom: 0;
}

.hero .btn--primary {
  color: var(--espresso);
}

.hero .btn--ghost {
  border-color: rgba(247, 244, 239, 0.45);
  color: var(--chalk);
}

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--hairline);
}

.section--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.section__intro {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__intro h2 {
  margin-bottom: 0.5rem;
}

@media (max-width: 860px) {
  .section--split {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(165deg, var(--paper), var(--apricot));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(42, 31, 26, 0.12);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card__body h3 {
  margin-bottom: 0.4rem;
}

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

.card__body h3 a:hover {
  text-decoration: underline;
}

.card__meta {
  font-size: 0.88rem;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Magazine feature */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.feature__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 28rem;
  border: 1px solid var(--hairline);
}

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

.feature__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
  background: linear-gradient(transparent, rgba(42, 31, 26, 0.78));
  color: var(--chalk);
}

.feature__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__main { min-height: 20rem; }
}

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

.quote {
  padding: 1.5rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote p {
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

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

.quote__service {
  display: block;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

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

.team-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-card__body {
  padding: 1.15rem 1.25rem 1.4rem;
}

@media (max-width: 800px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Pricing */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.price-table th {
  background: var(--apricot);
  font-family: var(--font-display);
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-note {
  margin-top: 1.5rem;
  color: var(--espresso-muted);
  max-width: 42rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

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

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

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--espresso);
}

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

.form input.is-invalid,
.form textarea.is-invalid,
.form select.is-invalid {
  border-color: var(--terracotta);
}

.field-error {
  color: #9a3a28;
  font-size: 0.88rem;
}

.form-message {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.form-message.is-success {
  background: rgba(107, 122, 77, 0.15);
  color: #3d4a2a;
}

.form-message.is-error {
  background: rgba(196, 92, 62, 0.15);
  color: #7a2f1f;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.4rem;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Page headers */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-hero--media {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(42, 31, 26, 0.7));
}

.page-hero--media .container {
  position: relative;
  z-index: 1;
  color: var(--chalk);
  padding-bottom: 2.5rem;
}

.page-hero--media .eyebrow,
.page-hero--media .lead {
  color: rgba(247, 244, 239, 0.85);
}

/* Prose / legal */
.prose {
  max-width: 44rem;
}

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

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

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

.prose li {
  margin-bottom: 0.4rem;
}

.legal-page,
.post-page,
.service-detail {
  padding-bottom: 4rem;
}

.legal-page__header,
.post-page__hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 2rem;
}

.post-page__cover {
  margin: 0 0 2.5rem;
}

.post-page__cover img {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
  border-radius: var(--radius);
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.post-page__meta {
  color: var(--espresso-muted);
}

.post-page__cta {
  margin-top: 2.5rem;
}

.service-detail__hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.service-detail__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.service-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.service-detail__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--olive);
  font-weight: 600;
}

.service-detail__body {
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .service-detail__grid { grid-template-columns: 1fr; }
}

/* Briefings timeline */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline__step {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--espresso);
  color: rgba(247, 244, 239, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(247, 244, 239, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--apricot);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--chalk);
  margin-bottom: 0.4rem;
}

.site-footer__tagline {
  color: rgba(247, 244, 239, 0.65);
  margin-bottom: 1.5rem;
}

.site-footer__heading {
  font-family: var(--font-display);
  color: var(--chalk);
  margin-bottom: 0.85rem;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col li {
  margin-bottom: 0.45rem;
}

.newsletter label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--chalk);
}

.newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1 1 12rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 239, 0.2);
  background: rgba(247, 244, 239, 0.08);
  color: var(--chalk);
  font: inherit;
}

.newsletter input::placeholder {
  color: rgba(247, 244, 239, 0.5);
}

.site-footer__bottom {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
}

.site-footer__social {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: 0.88rem;
  color: rgba(247, 244, 239, 0.55);
  margin: 0;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
}

.cookie-banner__inner {
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(42, 31, 26, 0.18);
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.cookie-banner__text p:last-child {
  margin: 0;
  color: var(--espresso-muted);
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.island-error {
  background: #9a3a28;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
}

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

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--terracotta);
  line-height: 1;
  margin: 0;
}

/* Cookies table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--hairline);
  padding: 0.7rem 0.8rem;
  text-align: left;
  background: var(--paper);
}

.cookies-table th {
  background: var(--apricot);
}

.asymmetric {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.asymmetric--flip {
  grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 800px) {
  .asymmetric,
  .asymmetric--flip {
    grid-template-columns: 1fr;
  }
}

.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.stat-inline {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--terracotta);
  font-size: 1.1rem;
  font-weight: 600;
}
