:root {
  --ivory: #fbf6ee;
  --ivory-deep: #f3ead9;
  --champagne: #e8c98a;
  --gold: #d4a85a;
  --coral: #e8a07a;
  --blush: #f2c4b0;
  --pearl: #fff9f2;
  --sea: #d7e6ef;
  --sea-deep: #5a7a8c;
  --ink: #2c3340;
  --ink-soft: #5a6270;
  --sun: #ffe6b8;
  --ripple: rgba(232, 201, 138, 0.45);
  --radius: 0.35rem;
  --font-display: "Syne", "Avenir Next Condensed", sans-serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --shadow-soft: 0 18px 40px rgba(90, 122, 140, 0.12);
  --header-h: 4.25rem;
  --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);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--sun) 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--sea) 0%, transparent 50%),
    linear-gradient(180deg, var(--ivory) 0%, var(--pearl) 40%, var(--ivory-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--sea-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--pearl) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--champagne) 45%, transparent);
}

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

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

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0%, var(--champagne) 42%, var(--coral) 100%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 55%, transparent);
  animation: pearl-breathe 4.5s var(--ease) infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

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

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--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; }

/* Buttons — pearl ripples */
.btn {
  --btn-bg: var(--champagne);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(145deg, #fff6e8 0%, var(--btn-bg) 48%, var(--coral) 100%);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 24px var(--ripple);
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, #fff 70%, var(--gold));
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--ripple);
}

.btn:hover::before {
  animation: pearl-ripple 1.1s var(--ease) infinite;
}

.btn:hover::after {
  animation: pearl-ripple 1.1s var(--ease) 0.25s infinite;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--sea-deep) 30%, transparent);
  color: var(--ink);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--sea) 35%, transparent);
  box-shadow: none;
}

.btn-ghost::before,
.btn-ghost::after {
  display: none;
}

.btn-pearl {
  --btn-bg: var(--gold);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 246, 238, 0.25) 0%, rgba(251, 246, 238, 0.55) 42%, rgba(243, 234, 217, 0.92) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 230, 184, 0.45), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
  animation: rise-in 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

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

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

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

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

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

/* Service previews — not heavy cards */
.offer-list {
  display: grid;
  gap: 2rem;
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--champagne) 40%, transparent);
}

.offer-row:nth-child(even) {
  direction: rtl;
}

.offer-row:nth-child(even) > * {
  direction: ltr;
}

.offer-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.02);
  box-shadow: var(--shadow-soft);
}

.offer-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

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

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--sea-deep);
  margin-bottom: 1rem;
}

/* Evidence / quotes */
.evidence {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sea) 55%, transparent), color-mix(in srgb, var(--blush) 35%, transparent));
  border-radius: 1.25rem;
  padding: 2.25rem;
}

.evidence blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.evidence cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.page-hero-visual {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}

.page-hero-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Service detail */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: start;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.outcome-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-soft);
}

.outcome-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
}

.aside-panel {
  padding: 1.5rem;
  background: color-mix(in srgb, var(--pearl) 80%, var(--sea));
  border: 1px solid color-mix(in srgb, var(--champagne) 50%, transparent);
  border-radius: 1rem;
}

.aside-panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.aside-panel dl {
  margin: 0 0 1.25rem;
}

.aside-panel dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sea-deep);
}

.aside-panel dd {
  margin: 0.2rem 0 0.85rem;
  font-weight: 600;
}

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

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

.post-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}

.post-item h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
  line-height: 1.2;
}

.post-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--sea-deep);
  margin-bottom: 0.4rem;
}

.article-body {
  max-width: 42rem;
}

.article-cover {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Insights lab custom page */
.lab-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: lab;
}

.lab-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid color-mix(in srgb, var(--champagne) 40%, transparent);
}

.lab-step::before {
  counter-increment: lab;
  content: counter(lab, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.lab-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lab-step p {
  margin: 0;
  color: var(--ink-soft);
}

.team-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}

.team-person h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.team-person .role {
  margin: 0 0 0.45rem;
  color: var(--sea-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.team-person p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
}

.contact-form,
.form-panel {
  display: grid;
  gap: 1rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--sea-deep) 25%, transparent);
  background: color-mix(in srgb, var(--pearl) 90%, white);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 65%, transparent);
  outline-offset: 1px;
}

.field-error {
  color: #9b3d2e;
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
  min-height: 1.1em;
}

.form-status {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: #2f6b4f;
}

.form-status[data-state="error"] {
  color: #9b3d2e;
}

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

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

.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

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

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.05em;
  margin: 0 0 0.5rem;
}

.error-page p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--sea) 35%, transparent));
  border-top: 1px solid color-mix(in srgb, var(--champagne) 40%, transparent);
}

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

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.footer-tag,
.footer-address {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--champagne) 35%, transparent);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: 1rem 0;
  background: color-mix(in srgb, var(--pearl) 92%, var(--champagne));
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 -12px 40px rgba(44, 51, 64, 0.08);
  animation: rise-in 0.45s var(--ease);
}

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

.cookie-banner p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

/* Animations */
@keyframes pearl-ripple {
  0% {
    opacity: 0.7;
    width: 0.4rem;
    height: 0.4rem;
  }
  100% {
    opacity: 0;
    width: 4.5rem;
    height: 4.5rem;
  }
}

@keyframes pearl-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 55%, transparent); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blush) 40%, transparent); }
}

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

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

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .offer-row,
  .offer-row:nth-child(even),
  .detail-layout,
  .form-layout,
  .footer-grid,
  .post-grid,
  .team-row {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 50;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--header-h);
    background: var(--pearl);
    border-bottom: 1px solid color-mix(in srgb, var(--champagne) 45%, transparent);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero {
    min-height: 85vh;
  }
}

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