:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #686868;
  --line: rgba(17, 17, 17, 0.12);
  --radius: 22px;
  --max: 1280px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; }

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(244, 242, 238, 0.80);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}

.topbar.scrolled {
  border-color: var(--line);
  background: rgba(244, 242, 238, 0.93);
}

.brand-mini {
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: 24px;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 24px 64px;
}

.hero-inner {
  width: min(100%, 980px);
  text-align: center;
}

.logo-wrap {
  width: min(72vw, 620px);
  margin: 0 auto 34px;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  animation: logoIn 800ms cubic-bezier(.2,.8,.2,1) 120ms forwards;
}

.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-kicker,
.hero-intro,
.scroll-cue {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 650ms ease forwards;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
  animation-delay: 500ms;
}

.hero-intro {
  max-width: 670px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 26px);
  animation-delay: 650ms;
}

.scroll-cue {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-size: 14px;
  animation-delay: 800ms;
}

.pillars,
.contact {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.04em;
}

.section-heading p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition:
    transform .32s cubic-bezier(.2,.8,.2,1),
    box-shadow .32s ease,
    border-color .32s ease;
}

.card:hover,
.card:focus-visible,
.card.is-open {
  transform: translateY(-5px);
  border-color: rgba(17, 17, 17, .28);
  box-shadow: 0 22px 65px rgba(17,17,17,.08);
}

.card-top {
  min-height: 176px;
  display: flex;
  flex-direction: column;
}

.card-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.card h3 {
  margin: auto 0 12px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.045em;
}

.card-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card-detail {
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition:
    max-height .42s cubic-bezier(.2,.8,.2,1),
    opacity .28s ease,
    transform .32s ease,
    padding-top .35s ease;
}

.card:hover .card-detail,
.card:focus-within .card-detail,
.card.is-open .card-detail {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 26px;
}

.card-detail p {
  margin: 0 0 22px;
  max-width: 560px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  text-decoration: none;
}

.card-link span {
  transition: transform .2s ease;
}

.card-link:hover span {
  transform: translateX(4px);
}

.quiet-band {
  padding: 58px 20px;
  border-block: 1px solid var(--line);
}

.quiet-band > div {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.quiet-band p:last-child {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}

.primary-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@keyframes logoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) {
  .topnav { gap: 14px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 250px; }
  .card h3 { font-size: clamp(40px, 12vw, 62px); }
  .card-detail { max-height: 0; }
  .card:hover .card-detail { max-height: 0; opacity: 0; padding-top: 0; }
  .card.is-open .card-detail,
  .card:focus-within .card-detail {
    max-height: 320px;
    opacity: 1;
    padding-top: 24px;
  }
  .contact { align-items: start; flex-direction: column; }
  footer { flex-direction: column; }
}

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