:root {
  --bg: #141313;
  --bg-strong: #0d0c0c;
  --panel: #1c1b1b;
  --panel-strong: #242323;
  --panel-soft: #2f2d2d;
  --text: #e5e2e1;
  --text-muted: #c4c0bf;
  --text-soft: #96908f;
  --line: rgba(229, 226, 225, 0.14);
  --accent: #d8b871;
  --accent-strong: #f0d28d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --container: 1200px;
  --header-height: 112px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 184, 113, 0.08), transparent 28%),
    linear-gradient(180deg, #171515 0%, #111010 100%);
}

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

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

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  border-bottom: 1px solid transparent;
  background: rgba(15, 14, 14, 0.72);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-compact {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex-shrink: 0;
}

.brand-logo,
.footer-logo {
  width: 240px;
  max-width: 100%;
  transition: width 0.25s ease, transform 0.25s ease;
}

.site-header.is-compact .brand-logo {
  width: 178px;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav {
  margin-left: auto;
}

.site-nav a,
.footer-links a,
.hero-meta p,
.section-kicker,
.eyebrow,
.returns-label,
.structure-label,
.hero-caption,
.metric-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a,
.footer-links a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-links a:hover,
.portfolio-table a:hover {
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--text);
  color: #141313;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(216, 184, 113, 0.55);
  color: var(--accent-strong);
  background: transparent;
}

.button-secondary:hover {
  background: rgba(216, 184, 113, 0.08);
}

.nav-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 72px;
  overflow: hidden;
}

.hero-slider,
.hero-overlay,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.16) 0%, rgba(12, 12, 12, 0.68) 76%, rgba(17, 16, 16, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.44) 0%, rgba(10, 10, 10, 0.1) 55%, rgba(10, 10, 10, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
}

.eyebrow-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--accent-strong);
}

.eyebrow.muted {
  color: var(--text-soft);
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.9;
  margin-top: -18px;
}

.hero h1 span {
  color: var(--accent-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 30px 0 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(229, 226, 225, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-caption {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  color: var(--text-soft);
}

.hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
}

body.is-ready .hero-content > * {
  animation: heroReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.is-ready .hero-content > :nth-child(1) {
  animation-delay: 0.08s;
}

body.is-ready .hero-content > :nth-child(2) {
  animation-delay: 0.18s;
}

body.is-ready .hero-content > :nth-child(3) {
  animation-delay: 0.28s;
}

body.is-ready .hero-content > :nth-child(4) {
  animation-delay: 0.38s;
}

body.is-ready .hero-content > :nth-child(5) {
  animation-delay: 0.48s;
}

body.is-ready .hero-content > :nth-child(6) {
  animation-delay: 0.58s;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-dot {
  width: 34px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent-strong);
}

.section {
  padding: 110px 0;
  scroll-margin-top: 110px;
}

.anchor-target {
  scroll-margin-top: 120px;
}

.section-dark {
  background: linear-gradient(180deg, rgba(18, 17, 17, 0.95), rgba(11, 11, 11, 0.98));
}

#philosophy {
  position: relative;
  overflow: hidden;
  --philosophy-bg-y: 50%;
  background:
    url("../img/hero-slider/greenfields_bg.jpg") center var(--philosophy-bg-y) / cover no-repeat;
  will-change: background-position;
}

#philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.16) 0%, rgba(12, 12, 12, 0.68) 76%, rgba(17, 16, 16, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.44) 0%, rgba(10, 10, 10, 0.1) 55%, rgba(10, 10, 10, 0.58) 100%);
}

#philosophy > .container {
  position: relative;
  z-index: 1;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 40px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.section-kicker {
  color: var(--accent-strong);
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.section-intro,
.lead {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.7;
}

.section-body {
  display: grid;
  gap: 20px;
}

.section-body .lead {
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

.returns-layout {
  display: grid;
  gap: 30px;
}

.service-card,
.focus-card,
.metric-card,
.returns-card,
.disclaimer-box {
  background: rgba(33, 31, 31, 0.9);
  border: 1px solid var(--line);
}

.service-card,
.returns-card,
.disclaimer-box {
  padding: 28px;
}

.service-card h4,
.returns-card h3 {
  font-size: 1.4rem;
  margin: 12px 0 14px;
}

.structure-services,
.focus-grid,
.metrics-grid,
.returns-grid,
.founders-grid {
  display: grid;
  gap: 22px;
}

.structure-services,
.focus-grid,
.metrics-grid,
.returns-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-grid,
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 24px;
  background: rgba(16, 15, 15, 0.6);
  border: 1px solid var(--line);
}

.metric-value,
.horizon-value {
  display: block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  color: var(--text);
}

.founders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.founder-card {
  text-align: center;
}

.founder-photo-frame {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(216, 184, 113, 0.24), rgba(255, 255, 255, 0.03));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.founder-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.founder-card h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.focus-card {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--accent);
}

.focus-index {
  font-family: "JetBrains Mono", monospace;
  color: rgba(216, 184, 113, 0.38);
  letter-spacing: 0.14em;
}

.focus-card h3 {
  font-size: 1.6rem;
  line-height: 1.15;
}

.metrics-grid {
  margin-bottom: 28px;
}

.metric-card {
  display: grid;
  gap: 10px;
}

.metric-label {
  color: var(--text-soft);
}

.portfolio-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(17, 16, 16, 0.9);
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.portfolio-table th,
.portfolio-table td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.portfolio-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  background: rgba(39, 37, 37, 0.95);
  text-transform: uppercase;
}

.portfolio-table td {
  color: var(--text-muted);
}

.portfolio-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-table a {
  color: var(--text);
}

.muted-link {
  color: var(--text-soft);
}

.returns-label {
  color: var(--accent-strong);
}

.disclaimer-box {
  max-width: 920px;
}

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

.work-step-card {
  min-height: 250px;
  padding: 28px;
  background: #060606;
  border-left: 4px solid var(--accent);
  display: grid;
  align-content: start;
  gap: 16px;
}

.work-step-card span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.work-step-card h3 {
  font-size: 1.7rem;
  line-height: 1.04;
}

.work-step-card p {
  font-size: 1.05rem;
}

.structure-panel {
  padding: 38px clamp(24px, 3vw, 44px);
  border: 1px solid rgba(229, 226, 225, 0.18);
  background: rgba(24, 22, 22, 0.92);
}

.structure-panel-label {
  text-align: center;
  color: var(--accent-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.structure-panel-divider {
  height: 1px;
  margin: 18px 0 40px;
  background: var(--line);
}

.structure-diagram-card {
  padding: 34px 20px;
  background: #f4f1ef;
  color: #111010;
  text-align: center;
}

.structure-diagram-card h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.structure-diagram-card p {
  margin-top: 12px;
  color: rgba(17, 16, 16, 0.78);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.structure-diagram-card-accent {
  border-left: 16px solid var(--accent);
}

.structure-arrow {
  position: relative;
  width: 2px;
  height: 72px;
  margin: 26px auto;
  background: rgba(216, 184, 113, 0.75);
}

.structure-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(216, 184, 113, 0.95);
  border-bottom: 2px solid rgba(216, 184, 113, 0.95);
  transform: translateX(-50%) rotate(45deg);
}

.structure-services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.structure-ownership {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 16, 16, 0.14);
}

.structure-ownership-item {
  display: grid;
  gap: 6px;
  text-align: center;
}

.structure-ownership-item strong {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.4rem;
  color: #111010;
}

.structure-ownership-item span {
  color: rgba(17, 16, 16, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card {
  padding: 24px 18px;
  text-align: center;
  background: rgba(48, 45, 45, 0.48);
}

.service-card h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.returns-combined {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: start;
}

.returns-grid {
  grid-template-columns: 1fr;
}

.returns-heading h2 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.94;
}

.returns-heading .section-intro {
  max-width: 700px;
}

.structure-panel-returns {
  min-height: 100%;
  padding-top: 78px;
}

.structure-panel-returns .structure-services {
  margin-top: 34px;
}

.structure-panel-returns .service-card {
  min-height: 76px;
  display: grid;
  place-items: center;
}

.horizon-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 72px;
  align-items: center;
}

.horizon-copy h2 {
  max-width: 560px;
  margin: 10px 0 28px;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.horizon-copy .section-intro {
  max-width: 620px;
}

.horizon-points {
  display: grid;
  gap: 28px;
  margin-top: 44px;
}

.horizon-point {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.horizon-icon {
  position: relative;
  width: 34px;
  height: 34px;
  margin-top: 4px;
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
}

.horizon-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--accent-strong);
  border-bottom: 3px solid var(--accent-strong);
  transform: rotate(-45deg);
}

.horizon-point h3 {
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
}

.horizon-point p {
  color: var(--text-muted);
  font-size: 1rem;
}

.horizon-visual img {
  width: 100%;
  aspect-ratio: 1.1 / 0.86;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid var(--line);
  background: #0e0d0d;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-copy {
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.footer-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.footer-copy a {
  color: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 960px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 1px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 14px;
    padding: 20px 20px 18px;
    border-top: 1px solid var(--line);
    background: rgba(14, 13, 13, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .section-grid,
  .structure-services,
  .focus-grid,
  .metrics-grid,
  .returns-grid,
  .founders-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    display: grid;
  }

  .returns-combined,
  .horizon-showcase {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 92px;
  }

  .brand-logo,
  .footer-logo {
    width: 190px;
  }

  .site-header.is-compact .brand-logo {
    width: 148px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 50px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
    margin-top: 0;
  }

  .section {
    padding: 82px 0;
  }

  .section-grid,
  .structure-services,
  .focus-grid,
  .metrics-grid,
  .returns-grid,
  .founders-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-links {
    display: grid;
    gap: 18px;
    justify-items: start;
  }

  .footer-copy {
    line-height: 1.75;
    letter-spacing: 0.08em;
  }

  .portfolio-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .portfolio-table {
    min-width: 0;
  }

  .portfolio-table thead {
    display: none;
  }

  .portfolio-table,
  .portfolio-table tbody,
  .portfolio-table tr,
  .portfolio-table td {
    display: block;
    width: 100%;
  }

  .portfolio-table tr {
    margin-bottom: 18px;
    padding: 18px 18px 8px;
    border: 1px solid var(--line);
    background: rgba(17, 16, 16, 0.9);
  }

  .portfolio-table td {
    padding: 0 0 14px;
    border-bottom: 0;
  }

  .portfolio-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
  }

  .portfolio-table td:last-child {
    padding-bottom: 4px;
  }

  .portfolio-table tbody tr:hover {
    background: rgba(17, 16, 16, 0.9);
  }

  .structure-panel {
    padding: 28px 20px;
  }

  .structure-ownership {
    grid-template-columns: 1fr;
  }

  .horizon-copy h2 {
    margin-bottom: 22px;
  }

  .horizon-visual img {
    aspect-ratio: 1 / 1;
  }

  #philosophy::before {
    background:
      linear-gradient(180deg, rgba(12, 12, 12, 0.16) 0%, rgba(12, 12, 12, 0.68) 76%, rgba(17, 16, 16, 0.9) 100%),
      linear-gradient(90deg, rgba(10, 10, 10, 0.44) 0%, rgba(10, 10, 10, 0.1) 55%, rgba(10, 10, 10, 0.58) 100%);
  }

  #philosophy {
    background-position: center center;
  }
}
