:root {
  --bg: #f7f7f2;
  --bg-soft: #efefe8;
  --ink: #1a1a1a;
  --muted: #6e6e6a;
  --line: #d8d8d2;
  --panel: #ffffff;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(247, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
}

.menu-btn,
.top-link,
.nav a,
.eyebrow,
.item-label,
.credentials,
.foot-links a,
.legal,
.when {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.menu-btn {
  justify-self: start;
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.mark {
  justify-self: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-link {
  justify-self: end;
  color: var(--muted);
}

.top-link:hover,
.nav a:hover,
.menu-btn:hover {
  color: var(--ink);
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav.is-open {
  display: flex;
}

.nav a {
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: min(92vh, 980px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
  filter: grayscale(0.35) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 247, 242, 0.18) 0%, rgba(247, 247, 242, 0.08) 35%, rgba(247, 247, 242, 0.92) 100%),
    linear-gradient(90deg, rgba(247, 247, 242, 0.55), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 8vh, 5rem) clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 6vh, 4rem);
  max-width: 48rem;
}

.brand {
  margin: 0 0 0.85rem;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-transform: none;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.lede {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.text-cta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
  transition: opacity 0.2s ease;
}

.text-cta:hover {
  opacity: 0.55;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.32s; }

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

@keyframes ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.section {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1rem, 3vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.about-body {
  max-width: 38rem;
  color: var(--muted);
}

.about-body p {
  margin: 0 0 1.1rem;
}

.about-body a {
  border-bottom: 1px solid currentColor;
}

.credentials {
  margin-top: 1.5rem !important;
  color: var(--ink);
}

.timeline {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.role {
  font-weight: 500;
}

.org,
.when {
  color: var(--muted);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.section-head a {
  border-bottom: 1px solid currentColor;
}

.catalog {
  display: grid;
  gap: 1.25rem;
}

.item {
  display: grid;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.item:hover {
  transform: translateY(-3px);
  border-color: #bdbdb7;
}

.item-visual {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2);
  transition: transform 0.7s ease, filter 0.4s ease;
}

.item:hover .item-visual {
  transform: scale(1.04);
  filter: grayscale(0);
}

.v-home {
  background-image:
    linear-gradient(135deg, rgba(26, 26, 26, 0.18), rgba(247, 247, 242, 0.2)),
    url("https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1200&q=80");
}

.v-insights {
  background-image:
    linear-gradient(135deg, rgba(26, 26, 26, 0.15), rgba(247, 247, 242, 0.25)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1200&q=80");
}

.v-sticky {
  background-image:
    linear-gradient(135deg, rgba(26, 26, 26, 0.2), rgba(247, 247, 242, 0.15)),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1200&q=80");
}

.item-copy {
  padding: 1.15rem 1.2rem 1.35rem;
}

.item-label {
  color: var(--muted);
}

.item h3 {
  margin: 0.45rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.posts a {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}

.posts a:hover {
  opacity: 0.55;
}

.post-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
}

.post-meta {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-brand {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.foot p {
  margin: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.legal {
  margin-top: 0.5rem;
}

@media (min-width: 820px) {
  .menu-btn {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    justify-self: start;
    gap: 1.35rem;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .mark {
    justify-self: center;
  }

  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }

  .catalog {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .foot {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

@media (max-width: 640px) {
  .timeline-row {
    grid-template-columns: 1fr auto;
  }

  .org {
    grid-column: 1 / -1;
    order: 3;
  }

  .posts a {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-media img,
  .item-visual {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
