:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #5e6572;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --line: #ded9d0;
  --accent: #0f766e;
  --accent-dark: #0a4f49;
  --warm: #d97706;
  --shadow: 0 24px 70px rgba(28, 24, 20, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 244, 239, 0.9);
  border-bottom: 1px solid rgba(222, 217, 208, 0.8);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

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

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.language-toggle {
  min-width: 46px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(60px, 9vw, 118px) clamp(20px, 5vw, 64px) 56px;
}

.hero-copy {
  max-width: 760px;
}

.home-hero {
  min-height: calc(100vh - 146px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel,
.portfolio-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: clamp(28px, 5vw, 52px);
}

.panel-label {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.profile-panel p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser-bar span:first-child {
  background: var(--warm);
}

.browser-bar span:nth-child(2) {
  background: var(--accent);
}

.visual-layout {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
}

.visual-panel {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.12), transparent 60%),
    #fbfaf7;
}

.main-panel {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.main-panel strong {
  font-size: 30px;
}

.main-panel span {
  margin-top: 8px;
  color: var(--muted);
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.visual-strip {
  height: 18px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent),
    var(--accent) 18px,
    var(--line) 18px,
    var(--line) 36px
  );
}

.investment-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 46%),
    var(--paper);
}

.investment-card {
  display: grid;
  gap: 0;
  padding: 0;
}

.portfolio-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
}

.portfolio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.portfolio-heading span {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-heading strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.pie-chart {
  aspect-ratio: 1;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 36%, transparent 37%),
    conic-gradient(
      #0f766e 0 40%,
      #d97706 40% 65%,
      #2563eb 65% 85%,
      #111318 85% 100%
    );
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.12);
}

.allocation-list {
  display: grid;
  gap: 14px;
}

.allocation-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.allocation-item:last-child {
  border-bottom: 0;
}

.allocation-item span:not(.dot) {
  color: var(--muted);
  font-weight: 700;
}

.allocation-item strong {
  font-size: 18px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.stocks {
  background: #0f766e;
}

.dot.crypto {
  background: #d97706;
}

.dot.etf {
  background: #2563eb;
}

.dot.cash {
  background: #111318;
}

.metric-row {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-row strong {
  max-width: 260px;
  text-align: right;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
}

.section,
.split-section,
.contact-section,
.investment-note {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.investment-note {
  max-width: 980px;
}

.investment-note p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.service-card,
.project-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.card-number,
.project-list span {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card p,
.project-list p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
}

.project-list {
  display: grid;
  gap: 18px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--accent-dark);
  color: var(--surface);
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .button.primary {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--accent-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 76px;
    display: none;
    width: min(260px, calc(100vw - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.is-active::after {
    width: 32px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .page-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .page-hero {
    min-height: auto;
  }

  .portfolio-panel {
    grid-template-columns: 1fr;
  }

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

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .language-toggle,
  .nav-toggle {
    width: 42px;
    min-width: 42px;
  }

  .hero,
  .page-hero,
  .section,
  .split-section,
  .contact-section,
  .investment-note {
    padding-inline: 16px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .visual-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-row strong {
    text-align: left;
  }

  .portfolio-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 16px;
  }
}
