:root {
  color-scheme: light;
  --ink: #101820;
  --ink-2: #26343d;
  --muted: #63707a;
  --line: #d7ddd8;
  --paper: #f7f5ef;
  --paper-strong: #fffdf8;
  --deep: #071115;
  --brass: #b68a45;
  --brass-dark: #8f682f;
  --sea: #2d6f73;
  --sage: #687d63;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 32px, var(--max));
  margin: 16px auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 17, 21, 0.42);
  color: #fffaf1;
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  border-color: rgba(16, 24, 32, 0.12);
  box-shadow: 0 12px 36px rgba(16, 24, 32, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 720;
  white-space: nowrap;
}

.brand-crest {
  width: 2.35rem;
  height: 3.15rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.94rem;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: currentColor;
  opacity: 0.86;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
  color: #fffaf1;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 8, 10, 0.86), rgba(3, 8, 10, 0.38) 54%, rgba(3, 8, 10, 0.18)),
    linear-gradient(0deg, rgba(3, 8, 10, 0.82), rgba(3, 8, 10, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 10.5rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dfc18a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  font-weight: 760;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
  font-size: clamp(4.25rem, 6rem, 6rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 3rem, 3rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.hero-lede {
  max-width: 760px;
  color: rgba(255, 250, 241, 0.88);
  font-size: 1.32rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 720;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: var(--brass);
  color: #11160f;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d4a95d;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 4rem 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metrics div {
  min-height: 104px;
  padding: 1rem;
  background: rgba(7, 17, 21, 0.44);
}

.hero-metrics dt {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
  font-weight: 780;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.95rem;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.3rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.initiative-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--paper-strong);
  overflow: hidden;
}

.initiative-card.featured-card {
  background: #eef3ee;
}

.initiative-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 1.15rem;
  background: #f3f0e8;
  border: 1px solid rgba(16, 24, 32, 0.1);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
}

.initiative-icon img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.featured-card .initiative-icon {
  background: rgba(255, 253, 248, 0.68);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-topline a,
.portfolio-url {
  color: var(--sea);
  font-weight: 720;
  text-decoration: none;
}

.card-topline a:hover,
.card-topline a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.portfolio-url {
  color: rgba(45, 111, 115, 0.58);
}

.coming-ribbon {
  position: absolute;
  top: 0.78rem;
  right: -2.85rem;
  z-index: 2;
  width: 9rem;
  padding: 0.28rem 0;
  transform: rotate(38deg);
  background: var(--brass);
  color: #101820;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.16);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.initiative-index {
  color: var(--brass-dark);
  font-weight: 760;
}

.initiative-card p {
  color: var(--ink-2);
}

.initiative-card ul {
  display: grid;
  gap: 0.7rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.initiative-card li {
  position: relative;
  padding-left: 1.05rem;
}

.initiative-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--brass);
}

.card-actions {
  margin-top: 1.1rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
}

.text-action::after {
  content: "→";
  color: var(--brass-dark);
}

.text-action:hover,
.text-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.initiative-detail-section {
  padding-top: 1rem;
}

.initiative-detail-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.12);
  box-shadow: var(--shadow);
}

.initiative-detail {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(280px, 0.82fr) minmax(260px, 0.66fr);
  gap: 2.2rem;
  align-items: start;
  min-height: 260px;
  padding: 1.55rem;
  scroll-margin-top: 7.5rem;
  background: var(--paper-strong);
}

.initiative-detail:nth-child(even) {
  background: #eef3ee;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-identity img {
  width: 3.8rem;
  height: 3.8rem;
  object-fit: contain;
  border: 1px solid rgba(16, 24, 32, 0.1);
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.08);
}

.detail-identity span {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--brass-dark);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.detail-identity h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.detail-copy {
  color: var(--muted);
}

.detail-lede {
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.48;
}

.detail-copy p:last-child {
  margin-bottom: 0;
}

.detail-points {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  color: var(--ink-2);
  list-style: none;
}

.detail-points li {
  position: relative;
  padding-left: 1.05rem;
}

.detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--brass);
}

.detail-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-disabled {
  background: #d9ded7;
  color: rgba(16, 24, 32, 0.58);
  cursor: default;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  transform: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 0.82fr);
  gap: 4rem;
  align-items: start;
}

.company-copy {
  display: grid;
  gap: 1rem;
  color: var(--muted);
}

.large-copy {
  color: var(--ink);
  font-size: 1.38rem;
  line-height: 1.42;
}

.principle-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.2rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.12);
}

.principle-list article {
  min-height: 220px;
  padding: 1.2rem;
  background: #ecefe8;
}

.principle-list span {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--brass-dark);
  font-weight: 760;
}

.principle-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.name-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(230px, 0.42fr) minmax(320px, 0.72fr);
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.name-figure {
  margin: 0;
  align-self: stretch;
  min-height: 360px;
  overflow: hidden;
  background: #ebe7dd;
}

.name-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 42%;
}

.name-copy {
  color: var(--ink-2);
  font-size: 1.12rem;
}

.name-copy p:last-child {
  margin-bottom: 0;
}

.investor-section {
  padding-top: 6rem;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.12);
}

.thesis-grid article {
  min-height: 250px;
  padding: 1.35rem;
  background: var(--ink);
  color: #fffaf1;
}

.thesis-grid h3 {
  color: #fffaf1;
}

.thesis-grid p {
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.72);
}

.dialog-section {
  position: relative;
  width: min(100% - 32px, var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 1rem;
  padding: 3rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.88)),
    var(--ink);
  color: #fffaf1;
}

.dialog-section::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(1rem, 4vw, 3.8rem);
  width: min(24rem, 42vw);
  aspect-ratio: 563 / 753;
  transform: translateY(-50%);
  background: url("assets/tyche-crest-premium.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.dialog-section > * {
  position: relative;
  z-index: 1;
}

.dialog-section h2 {
  margin-bottom: 0.75rem;
}

.dialog-section p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.74);
}

.dialog-section .contact-address {
  margin-top: 1rem;
  color: #dfc18a;
  font-weight: 760;
}

.dialog-section .button {
  flex: 0 0 auto;
  min-width: 178px;
  white-space: nowrap;
}

.site-footer {
  width: min(100% - 32px, var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.legal-main {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 9.5rem 0 5rem;
}

.legal-hero {
  padding: 3rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 5rem, 5rem);
}

.legal-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.legal-content {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.12);
  box-shadow: var(--shadow);
}

.legal-block {
  padding: 1.7rem;
  background: var(--paper-strong);
}

.legal-block:nth-child(even) {
  background: #eef3ee;
}

.legal-block h2 {
  margin-bottom: 0.85rem;
  font-size: 1.28rem;
}

.legal-block p {
  max-width: 72ch;
  color: var(--ink-2);
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--sea);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

@media (max-width: 1020px) {
  .portfolio-grid,
  .principle-list,
  .thesis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .split-section,
  .name-section,
  .initiative-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-actions {
    grid-column: 1;
  }

  .name-figure {
    min-height: 420px;
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 10px;
    padding: 0.75rem;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.15rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-top: 11.5rem;
    padding-bottom: 2rem;
  }

  h1 {
    font-size: 4.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-metrics,
  .portfolio-grid,
  .principle-list,
  .thesis-grid {
    grid-template-columns: 1fr;
  }

  .initiative-card {
    min-height: 340px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .dialog-section {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.4rem;
  }

  .dialog-section .button {
    width: 100%;
  }

  .name-figure {
    min-height: 340px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    padding-top: 9rem;
  }

  .legal-hero h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .brand span:last-child {
    max-width: 10rem;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
