/* ───────── Base ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.9em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
}

em {
  font-style: italic;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

[tabindex='-1']:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: var(--pill);
  text-decoration: none;
  font-size: var(--t-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ───────── Shared typography ───────── */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--on-dark {
  color: var(--on-dark-dim);
}

.section-title {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-title em,
.philosophy__title em,
.hero__headline em {
  color: var(--navy);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-intro {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-intro--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
}

.section-intro__body {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--t-md);
  font-weight: 300;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .section-intro--split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ───────── Buttons & links ───────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--navy);
  --btn-fg: var(--ivory);
  --btn-bd: var(--navy);
  box-shadow: 0 10px 24px -14px rgba(52, 67, 106, 0.7);
}

.btn--primary:hover {
  --btn-bg: #29365a;
}

.btn--ghost:hover {
  --btn-bg: rgba(36, 35, 33, 0.04);
  --btn-bd: var(--ink);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.74rem;
}

.btn:disabled {
  opacity: 0.6;
  transform: none;
}

.link-btn {
  font: inherit;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 4px 0;
}

.link-btn:hover {
  text-decoration-thickness: 2px;
}

/* ───────── Logo (mask, takes currentColor) ───────── */
.logo {
  display: inline-block;
  aspect-ratio: 900 / 338;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
}

/* ───────── Ambient orbs (shared) ───────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.85;
  will-change: transform;
}

.orb--cream {
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  right: -10vw;
  top: -12%;
  background: radial-gradient(circle at 35% 30%, #fffdf9 0%, rgba(236, 226, 210, 0.9) 38%, rgba(205, 186, 157, 0) 70%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.orb--olive {
  width: 30vw;
  max-width: 380px;
  aspect-ratio: 1;
  left: -8vw;
  bottom: 4%;
  background: radial-gradient(circle at 40% 35%, rgba(227, 231, 220, 0.95), rgba(168, 179, 158, 0.35) 55%, rgba(168, 179, 158, 0) 72%);
  animation: drift-b 30s var(--ease) infinite alternate;
}

.orb--mist {
  width: 22vw;
  max-width: 280px;
  aspect-ratio: 1;
  left: 38%;
  top: 8%;
  background: radial-gradient(circle at 45% 40%, rgba(223, 226, 232, 0.95), rgba(52, 67, 106, 0.1) 60%, rgba(52, 67, 106, 0) 72%);
  animation: drift-c 22s var(--ease) infinite alternate;
  opacity: 0.6;
}

.orb--sand {
  width: 18vw;
  max-width: 220px;
  aspect-ratio: 1;
  right: 22%;
  bottom: -6%;
  background: radial-gradient(circle at 40% 40%, rgba(236, 226, 210, 0.95), rgba(205, 186, 157, 0.4) 55%, rgba(205, 186, 157, 0) 72%);
  animation: drift-a 34s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
  to {
    transform: translate3d(-3vw, 4vh, 0) scale(1.05);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-2vw, 5vh, 0) scale(0.94);
  }
}

@keyframes rise {
  from {
    opacity: 0.001;
    transform: translateY(14px);
  }
}

@keyframes fade {
  from {
    opacity: 0.001;
  }
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
