/* ==========================================================
   MONARCH LEGACY HOLDINGS
   Uber / Anduril discipline: white + black, no accent color.
   Mobile-first.
   ========================================================== */

:root {
  --white: #ffffff;
  --off: #f5f5f4;
  --line: #e5e5e3;
  --line-strong: #cfcfcc;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6b6b;
  --muted-2: #9a9a97;

  --display: "Inter Tight", "Söhne", "Neue Haas Grotesk", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --max: 1440px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}
*::selection {
  background: var(--ink);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ==========================================================
   HEADER — fixed, thin, white/black
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wordmark span {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav a:hover {
  border-bottom-color: var(--ink);
}

@media (max-width: 560px) {
  .wordmark span {
    font-size: 13.5px;
  }
  .site-nav {
    gap: 1rem;
  }
  .site-nav a {
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  animation: heroZoom 22s ease-out forwards;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.15) 25%,
      rgba(0, 0, 0, 0.35) 65%,
      rgba(0, 0, 0, 0.85) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: auto auto 0;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow span:nth-child(2) {
  opacity: 0.45;
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.75rem, 9.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--white);
  max-width: 14ch;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 46ch;
  font-weight: 400;
}

.hero-baseline {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-baseline > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.baseline-k {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.baseline-v {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--white);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .hero-baseline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem var(--gutter);
  }
}

/* ==========================================================
   SECTION scaffolding
   ========================================================== */
.section-head {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-num {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.section-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}

/* ==========================================================
   HOLDINGS
   ========================================================== */
.holdings {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--white);
}
.holding-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--off);
  border: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding-top: 0.25rem;
}
.card-index {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.card-copy {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .holding-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .holding-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .card-media {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================
   HOUSE (dark full-bleed)
   ========================================================== */
.house {
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0;
}
.house .section-num {
  color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.house .section-h2 {
  color: var(--white);
}
.house-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}
.house-grid > div {
  min-width: 0;
}
.house-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}
.house-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--white);
}
.house-copy {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  max-width: 36ch;
}
@media (max-width: 900px) {
  .house-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 520px) {
  .house-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   MANIFESTO
   ========================================================== */
.manifesto {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.manifesto p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.manifesto span {
  color: var(--muted-2);
}

/* ==========================================================
   OFFICE
   ========================================================== */
.office {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}
.office-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.office-grid > div {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.office-k {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.office-v {
  font-family: var(--display);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}
.office-v a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.office-v a:hover {
  opacity: 0.6;
}
.office-note {
  max-width: var(--max);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 var(--gutter);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .office-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .office-grid {
    grid-template-columns: 1fr;
  }
  .office-grid > div {
    padding: 1.25rem 0;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--white);
}
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-mark svg {
  width: 22px;
  height: 22px;
}
.footer-mark span {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  max-width: 62ch;
  text-align: right;
}
@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-legal {
    text-align: left;
  }
}

/* ==========================================================
   FOCUS
   ========================================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ==========================================================
   HERO entrance
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow,
  .hero-title,
  .hero-sub,
  .hero-baseline > div {
    animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .eyebrow { animation-delay: 100ms; }
  .hero-title { animation-delay: 180ms; }
  .hero-sub { animation-delay: 300ms; }
  .hero-baseline > div:nth-child(1) { animation-delay: 400ms; }
  .hero-baseline > div:nth-child(2) { animation-delay: 460ms; }
  .hero-baseline > div:nth-child(3) { animation-delay: 520ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}
