/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "EB Garamond", serif;
  background-color: #d4d4d4;
  color: #000;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
/* Satoshi Font Faces */
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Light.eot");
  src:
    url("assets/fonts/satoshi/Satoshi-Light.eot?#iefix")
      format("embedded-opentype"),
    url("assets/fonts/satoshi/Satoshi-Light.woff2") format("woff2"),
    url("assets/fonts/satoshi/Satoshi-Light.woff") format("woff"),
    url("assets/fonts/satoshi/Satoshi-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Regular.eot");
  src:
    url("assets/fonts/satoshi/Satoshi-Regular.eot?#iefix")
      format("embedded-opentype"),
    url("assets/fonts/satoshi/Satoshi-Regular.woff2") format("woff2"),
    url("assets/fonts/satoshi/Satoshi-Regular.woff") format("woff"),
    url("assets/fonts/satoshi/Satoshi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Medium.eot");
  src:
    url("assets/fonts/satoshi/Satoshi-Medium.eot?#iefix")
      format("embedded-opentype"),
    url("assets/fonts/satoshi/Satoshi-Medium.woff2") format("woff2"),
    url("assets/fonts/satoshi/Satoshi-Medium.woff") format("woff"),
    url("assets/fonts/satoshi/Satoshi-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Bold.eot");
  src:
    url("assets/fonts/satoshi/Satoshi-Bold.eot?#iefix")
      format("embedded-opentype"),
    url("assets/fonts/satoshi/Satoshi-Bold.woff2") format("woff2"),
    url("assets/fonts/satoshi/Satoshi-Bold.woff") format("woff"),
    url("assets/fonts/satoshi/Satoshi-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Black.eot");
  src:
    url("assets/fonts/satoshi/Satoshi-Black.eot?#iefix")
      format("embedded-opentype"),
    url("assets/fonts/satoshi/Satoshi-Black.woff2") format("woff2"),
    url("assets/fonts/satoshi/Satoshi-Black.woff") format("woff"),
    url("assets/fonts/satoshi/Satoshi-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background-color: transparent;
}

.logo {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 14px;
}

.logo-the {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-style: italic;
}

.logo-main {
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  letter-spacing: -0.42px;
  font-feature-settings: "ss03" on;
}

.nav-link {
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  transition: opacity 0.3s ease;
  font-feature-settings: "ss03" on;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  padding: 72px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  max-width: 650px;
  width: 100%;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.logo-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}

.logo-main-small {
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  letter-spacing: -0.42px;
  font-feature-settings: "ss03" on;
}

.logo-is {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-style: italic;
}

.hero-title {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  text-align: center;
}

.cta-button {
  background-color: rgba(33, 30, 20, 0.04);
  border: 0.5px solid rgba(33, 30, 20, 0.05);
  border-radius: 41px;
  padding: 18px 32px;
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: -0.42px;
  color: #211e14;
  cursor: pointer;
  transition: all 0.3s ease;
  font-feature-settings: "ss03" on;
}

.cta-button:hover {
  background-color: rgba(33, 30, 20, 0.08);
  transform: translateY(-2px);
}

.hero-image-placeholder {
  width: 100%;
  height: 60vh;
  background-color: #d9d9d9;
}

/* Legacy Section */
.legacy {
  padding: 128px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.legacy-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 650px;
  text-align: center;
  width: 100%;
}

.section-header {
  text-align: center;
}

.section-label {
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: -0.42px;
  font-feature-settings: "ss03" on;
}

.legacy-content {
  max-width: 650px;
  text-align: center;
}

.legacy-text {
  font-family: "EB Garamond", serif;
  font-size: 28px;
  line-height: 1.25;
}

.legacy-image-placeholder {
  width: 100%;
  max-width: 1000px;
  height: 420px;
  background-color: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.legacy-map {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.legacy-map path {
  fill: none;
  stroke: gray;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Operating Principles Section */
.principles {
  padding: 180px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.principles-cards {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 1296px;
  padding: 0 32px;
}

.principle-card {
  flex: 1;
  height: 500px;
  background-color: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  outline: none;
}

.principle-card:hover {
  background-color: #c5c5c5;
  transform: translateY(-3px);
}

.principle-card:focus {
  background-color: #c5c5c5;
}

.principle-card:focus-visible {
  outline: 2px solid rgba(33, 30, 20, 0.4);
  outline-offset: 4px;
}

.principle-card:focus:not(:focus-visible) {
  outline: none;
}

.principle-default,
.principle-hover {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 32px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.principle-hover {
  opacity: 0;
  transform: translateY(10px);
}

.principle-card:hover .principle-hover,
.principle-card:focus .principle-hover {
  opacity: 1;
  transform: translateY(0);
}

.principle-card:hover .principle-default,
.principle-card:focus .principle-default {
  opacity: 0;
  transform: translateY(-10px);
}

.principle-text {
  font-family: "EB Garamond", serif;
  font-size: 28px;
  line-height: 1.25;
}

.principle-quote {
  font-family: "EB Garamond", serif;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
  color: #000;
}

.principle-hover-text {
  font-family: "EB Garamond", serif;
  font-size: 32px;
  line-height: 1.25;
  text-align: center;
  max-width: 90%;
}

.principles-description {
  max-width: 650px;
  padding: 0 32px;
  text-align: center;
}

.principles-description p {
  font-family: "EB Garamond", serif;
  font-size: 16px;
  line-height: 1.25;
}

/* Investment Notes Section */
.investment {
  padding: 180px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.investment-cards {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 1296px;
  padding: 0 32px;
}

.investment-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.investment-image-placeholder {
  width: 100%;
  height: 500px;
  background-color: #d9d9d9;
}

.investment-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.investment-title {
  font-family: "EB Garamond", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.investment-category {
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.19);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-feature-settings: "ss03" on;
}

/* Footer */
.footer {
  background-color: rgba(140, 140, 140, 0.07);
  padding: 72px 32px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  max-width: 650px;
}

.footer-title {
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 650px;
}

.footer-address {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 10px;
  font-style: normal;
  letter-spacing: -0.1px;
  line-height: 1.2;
  opacity: 0.5;
  color: #211e14;
  font-feature-settings: "ss03" on;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .principles-cards,
  .investment-cards {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero {
    padding: 40px 20px 0;
  }

  .hero-content {
    gap: 32px;
  }

  .hero-tagline {
    gap: 16px;
  }

  .cta-button {
    padding: 14px 24px;
  }

  .legacy {
    padding: 80px 20px 0;
  }

  .legacy-image-placeholder {
    height: auto;
    padding: 24px;
  }

  .legacy-map {
    max-height: 280px;
  }

  .legacy-text {
    font-size: 22px;
  }

  .principles {
    padding: 100px 0 0;
  }

  .principles-cards {
    flex-direction: column;
    padding: 0 20px;
    gap: 12px;
  }

  .principle-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d9d9d9;
  }

  .principle-default,
  .principle-hover {
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .principle-hover-text {
    font-size: 18px;
    line-height: 1.3;
  }

  .principle-quote {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .principle-text {
    font-size: 22px;
  }

  .investment {
    padding: 100px 0;
    overflow: hidden;
  }

  .investment-cards {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 0;
  }

  .investment-cards::-webkit-scrollbar {
    display: none;
  }

  .investment-card {
    flex: 0 0 calc(75% + 20px);
    scroll-snap-align: start;
    padding-left: 20px;
  }

  .investment-card:last-child {
    padding-right: 20px;
    flex: 0 0 calc(75% + 40px);
  }

  .investment-image-placeholder {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .footer-title {
    font-size: 28px;
  }

  .footer {
    padding: 50px 20px;
  }

  .footer-content {
    gap: 60px;
  }
}

@media (max-width: 480px) {
  .investment-card {
    flex: 0 0 calc(85% + 20px);
  }

  .investment-card:last-child {
    flex: 0 0 calc(85% + 40px);
  }
  .hero-title {
    font-size: 34px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-tagline {
    gap: 12px;
  }

  .cta-button {
    padding: 12px 20px;
    font-size: 13px;
  }

  .legacy-text {
    font-size: 18px;
  }

  .principle-card {
    aspect-ratio: 1 / 1;
  }

  .principle-default,
  .principle-hover {
    width: 100%;
    height: 100%;
  }

  .principle-text {
    font-size: 20px;
  }

  .principle-hover-text {
    font-size: 16px;
  }

  .principle-quote {
    font-size: 16px;
  }

  .investment-title {
    font-size: 20px;
  }

  .legacy-map {
    max-height: 220px;
  }

  .legacy-map path {
    stroke-width: 2.4;
  }

  .footer-title {
    font-size: 22px;
  }
}
