.olive-only, .button.olive-only, .olive-brand, .olive-summary, .olive-footer-links { display: none; }

:root[data-palette="olive"] {
  --reference-cream: #eae3d1;
  --reference-olive: #606859;
  --reference-charcoal: #35342f;
  --reference-paper: #f2eee7;
  --light: var(--reference-cream);
  --panel: var(--reference-cream);
  --card: var(--reference-paper);
  --ink: var(--reference-charcoal);
  --muted: var(--reference-charcoal);
  --line: var(--reference-olive);
  --accent: var(--reference-olive);
  --accent-hover: var(--reference-charcoal);
  --accent-dark: var(--reference-olive);
  --night-text: var(--reference-paper);
  --night-muted: var(--reference-paper);
  --badge-light: var(--reference-paper);
  --badge-dark: var(--reference-charcoal);
}

[data-palette="olive"] .olive-only { display: inline; }
[data-palette="olive"] .button.olive-only { display: inline-flex; }
[data-palette="olive"] .olive-hide,
[data-palette="olive"] .site-header .brand,
[data-palette="olive"] .header-button,
[data-palette="olive"] .hero .eyebrow,
[data-palette="olive"] .hero-visual,
[data-palette="olive"] .hero .text-link { display: none; }

[data-palette="olive"] .site-header {
  background: var(--reference-cream);
  color: var(--reference-charcoal);
  border: 0;
}
[data-palette="olive"] .site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-block: clamp(18px, 3vw, 38px) 10px;
  gap: 25px;
}
[data-palette="olive"] .olive-brand {
  position: relative;
  display: block;
  width: clamp(110px, 10.5vw, 141px);
  margin-bottom: 11px;
}
.olive-brand .brand-badge {
  --badge-face: var(--badge-dark);
  --badge-ink: var(--badge-light);
  width: 100%;
}
.olive-brand .brand-role {
  position: absolute;
  inset-inline-end: -28px;
  bottom: -10px;
  color: var(--reference-charcoal);
  font-size: 10px;
  line-height: 1.55;
  font-weight: 700;
  white-space: nowrap;
}
[data-palette="olive"] .site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(13px, 3vw, 42px);
  row-gap: 1px;
  color: var(--reference-charcoal);
  font-size: clamp(12px, 1.2vw, 16px);
}
[data-palette="olive"] .site-header nav a:hover,
[data-palette="olive"] .site-header nav a:focus-visible { color: var(--reference-olive); }
[data-palette="olive"]:not(:has(main > section:target:not(#intro))) .site-header nav a[href="#top"],
[data-palette="olive"]:has(#services:target) .site-header nav a[href="#services"],
[data-palette="olive"]:has(#approach:target) .site-header nav a[href="#approach"],
[data-palette="olive"]:has(#space:target) .site-header nav a[href="#space"],
[data-palette="olive"]:has(#contact:target) .site-header nav a[href="#contact"] {
  text-decoration: underline;
  text-underline-offset: 7px;
}

[data-palette="olive"] .hero {
  background: var(--reference-cream);
  color: var(--reference-charcoal);
}
[data-palette="olive"] .hero-inner {
  max-width: 915px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 4.7vw, 65px);
  padding-block: clamp(43px, 8vw, 110px) clamp(55px, 8vw, 105px);
}
[data-palette="olive"] .hero-portrait {
  display: block;
  aspect-ratio: .758;
  border: 0;
  border-radius: 50% 50% 0 0 / 36% 36% 0 0;
}
[data-palette="olive"] .hero-portrait img { object-position: center 44%; }
[data-palette="olive"] .hero-copy { padding: 0; }
[data-palette="olive"] .hero h1 {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.3vw, 33px);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
}
[data-palette="olive"] .hero-description {
  max-width: 28em;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.85;
  color: var(--reference-charcoal);
}
[data-palette="olive"] .hero-actions { margin-top: 31px; }
[data-palette="olive"] .button {
  min-height: 53px;
  padding-inline: clamp(21px, 3vw, 36px);
  border: 1px solid currentColor;
  border-radius: 99px;
  background: transparent;
  color: var(--reference-olive);
  font-size: 13px;
}
[data-palette="olive"] .button:hover {
  border-color: var(--reference-olive);
  background: var(--reference-olive);
  color: var(--reference-paper);
}
[data-palette="olive"] .button .arrow-diagonal { display: none; }

[data-palette="olive"] .olive-summary {
  --hero-curve-depth: clamp(34px, 7vw, 85px);
  display: block;
  position: relative;
  margin-block-start: calc(-1 * var(--hero-curve-depth));
  background: linear-gradient(transparent var(--hero-curve-depth), var(--reference-olive) var(--hero-curve-depth));
  color: var(--reference-paper);
  text-align: center;
}
.olive-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--hero-curve-depth) + 1px);
  background: var(--reference-olive);
  mask-image: radial-gradient(ellipse 62% 99% at 50% 0, transparent 98.8%, #000 100%);
  pointer-events: none;
}
.olive-summary-inner {
  position: relative;
  padding-block: clamp(113px, 14vw, 185px) clamp(53px, 9vw, 118px);
}
.olive-summary-inner::before, .olive-summary-inner::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  width: clamp(44px, 6vw, 77px);
  transform: translateX(-50%);
  pointer-events: none;
}
[dir="rtl"] .olive-summary-inner::before,
[dir="rtl"] .olive-summary-inner::after { transform: translateX(50%); }
.olive-summary-inner::before {
  inset-block-start: clamp(47px, 8vw, 103px);
  height: clamp(20px, 2.8vw, 34px);
  border-radius: 0 0 100px 100px;
  background: var(--reference-cream);
  rotate: -13deg;
}
.olive-summary-inner::after {
  inset-block-start: clamp(68px, 11vw, 137px);
  height: clamp(11px, 1.5vw, 17px);
  background: var(--reference-clay);
}
.olive-summary h2 { margin-bottom: 17px; font-weight: 400; }
.olive-summary p {
  width: min(100%, 765px);
  margin-inline: auto;
  font-size: clamp(17px, 2.3vw, 28px);
  line-height: 1.95;
}
[data-palette="olive"] .olive-summary .button { margin-top: 32px; color: var(--reference-paper); }
[data-palette="olive"] .olive-summary .button:hover {
  border-color: var(--reference-paper);
  background: var(--reference-paper);
  color: var(--reference-charcoal);
}

:root[data-palette="olive"]:not([data-page]) main > section[id]:not(#intro):not(:target),
:root[data-palette="olive"]:not([data-page]):has(main > section:target:not(#intro)) :is(#intro, .olive-summary) { display: none; }
:root[data-palette="olive"]:not([data-page]) main > section[id]:target:not(#intro) {
  background: var(--reference-cream);
  border-top: 0;
  color: var(--reference-charcoal);
  min-height: 36vh;
}
[data-palette="olive"] #contact p { color: var(--reference-charcoal); }

[data-palette="olive"] .site-footer {
  border: 0;
  background: var(--reference-charcoal);
  color: var(--reference-paper);
}
[data-palette="olive"] .footer-inner { min-height: 150px; padding-block: 26px; }
[data-palette="olive"] .olive-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--reference-paper);
}
[data-palette="olive"] .site-footer a:hover { color: var(--reference-paper); text-decoration: underline; }

@media (max-width: 660px) {
  [data-palette="olive"] .site-header-inner { gap: 13px; padding-bottom: 4px; }
  .olive-brand .brand-role { inset-inline-end: -35px; bottom: -12px; }
  [data-palette="olive"] .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
    padding-block: 24px 42px;
  }
  [data-palette="olive"] .hero-portrait {
    grid-row: 1;
    width: min(100%, 265px);
    justify-self: center;
  }
  [data-palette="olive"] .hero-copy { text-align: center; }
  [data-palette="olive"] .hero h1 { margin-bottom: 10px; font-size: 23px; }
  [data-palette="olive"] .hero-description { margin-inline: auto; }
  [data-palette="olive"] .hero-actions { justify-content: center; margin-top: 19px; }
  [data-palette="olive"] .footer-inner { gap: 9px; }
}
