@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fbfbfa;
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #2b2c2e;
  --muted: #626568;
  --quiet: #8b8e91;
  --line: #e3e2df;
  --line-strong: #cfcfca;
  --surface: #f5f4f1;
  --selection: #d8d5cd;
  --measure: 760px;
  --wide: 1120px;
  --outer-margin: clamp(28px, 5vw, 72px);
  --section-gap: clamp(32px, 5vw, 60px);
  --small-caps: 0.075em;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "cv01", "cv05", "cv08", "ss03";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: radial-gradient(circle at 50% 0%, rgba(17, 17, 17, 0.025), transparent 360px), var(--page);
  color: var(--ink);
}

::selection {
  background: var(--selection);
}

.document-controls {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 18px auto 0;
  padding: 5px;
  background: rgba(251, 251, 250, 0.86);
  border: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
}

.control-cluster {
  display: flex;
  gap: 4px;
}

.control-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
}

.control-button:hover,
.control-button:focus-visible {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.045);
  outline: none;
}

.control-button.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.print-control {
  border-left: 1px solid rgba(17, 17, 17, 0.1);
}

.identity-system {
  width: min(var(--wide), calc(100vw - (var(--outer-margin) * 2)));
  margin: clamp(34px, 5vw, 70px) auto clamp(80px, 9vw, 140px);
}

.identity-document {
  display: none;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 40px 90px rgba(17, 17, 17, 0.035);
  padding: clamp(58px, 8vw, 112px) clamp(42px, 8vw, 118px);
}

.identity-document.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 870px;
  margin: 0 auto clamp(58px, 8vw, 92px);
  text-align: center;
}

.system-kicker,
.section-marker {
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--small-caps);
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 12px;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.executive-title,
.contact-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.contact-line {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.012em;
}

.executive-title span,
.contact-line span,
.expertise-line span {
  color: var(--quiet);
}

.operating-thesis {
  max-width: 720px;
  margin: clamp(34px, 5vw, 58px) auto 0;
  color: var(--ink);
  font-size: clamp(21px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.identity-section {
  display: grid;
  grid-template-columns: minmax(46px, 84px) minmax(0, var(--measure));
  column-gap: clamp(22px, 4vw, 54px);
  justify-content: center;
  padding-top: var(--section-gap);
  border-top: 1px solid var(--line);
}

.identity-section + .identity-section {
  margin-top: 0;
}

.section-marker {
  padding-top: 4px;
  color: var(--quiet);
}

.section-content {
  min-width: 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: var(--small-caps);
  text-transform: uppercase;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

p,
li,
dd {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.55vw, 17px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.018em;
}

p {
  margin: 0 0 16px;
}

.lead-copy {
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.027em;
}

.expertise-line {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 350;
  line-height: 1.42;
  letter-spacing: -0.045em;
}

.role-block {
  padding-top: 30px;
}

.role-block:first-of-type {
  padding-top: 0;
}

.role-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.role-meta span:first-child {
  color: var(--ink-soft);
}

.descriptor {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.48;
  letter-spacing: -0.015em;
}

ul,
dl {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.role-block li,
.achievement-list li,
.plain-list li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 7px;
}

.role-block li::before,
.achievement-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.73em;
  width: 4px;
  height: 4px;
  background: var(--ink);
}

.compact-role {
  padding-top: 24px;
}

.achievement-list li {
  margin-bottom: 12px;
  color: var(--ink);
}

.tool-stack {
  display: grid;
  gap: 20px;
}

.tool-stack div {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tool-stack div:first-child {
  padding-top: 0;
  border-top: 0;
}

dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.7fr);
  gap: clamp(32px, 5vw, 64px);
}

.languages-line {
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 820px) {
  .document-controls {
    top: 10px;
  }

  .identity-system {
    width: min(100vw - 28px, 720px);
    margin-top: 28px;
  }

  .identity-document {
    padding: 46px 26px;
  }

  .identity-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-marker {
    padding-top: 0;
  }

  .role-meta,
  .tool-stack div,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .role-meta {
    display: grid;
    gap: 5px;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0.56in 0.62in 0.58in;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    width: 100%;
    min-height: auto;
    background: #ffffff !important;
    color: #111111 !important;
  }

  body {
    margin: 0;
  }

  .document-controls {
    display: none !important;
  }

  .identity-system {
    width: 100%;
    margin: 0;
  }

  .identity-document,
  .identity-document.is-active {
    display: none !important;
    border: 0;
    padding: 0;
    background: #ffffff;
  }

  html[data-language="en"] #document-en,
  html[data-language="es"] #document-es {
    display: block !important;
  }

  .hero {
    max-width: none;
    margin: 0 0 0.24in;
    text-align: center;
  }

  .system-kicker {
    display: none;
  }

  .hero h1 {
    margin: 0 0 0.055in;
    font-size: 23pt;
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .executive-title {
    font-size: 10.2pt;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .contact-line {
    margin-top: 0.035in;
    font-size: 7.9pt;
    line-height: 1.2;
  }

  .operating-thesis {
    margin-top: 0.18in;
    font-size: 13pt;
    line-height: 1.18;
    letter-spacing: -0.035em;
  }

  .identity-section {
    display: block;
    padding-top: 0.16in;
    border-top: 0.5pt solid #d9d9d6;
    page-break-inside: auto;
  }

  .identity-section + .identity-section {
    margin-top: 0;
  }

  .section-marker {
    display: none;
  }

  h2 {
    margin: 0 0 0.065in;
    font-size: 7.7pt;
    line-height: 1;
    letter-spacing: 0.07em;
    page-break-after: avoid;
  }

  h3 {
    font-size: 9.6pt;
    line-height: 1.1;
    letter-spacing: -0.026em;
    page-break-after: avoid;
  }

  p,
  li,
  dd {
    font-size: 8.35pt;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #222222 !important;
  }

  p {
    margin-bottom: 0.055in;
  }

  .lead-copy {
    font-size: 8.75pt;
    line-height: 1.32;
    color: #111111 !important;
  }

  .expertise-line {
    font-size: 8.55pt;
    line-height: 1.26;
    letter-spacing: -0.012em;
  }

  .role-block {
    padding-top: 0.102in;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .role-block:first-of-type {
    padding-top: 0;
  }

  .role-meta {
    display: flex;
    margin: 0.03in 0 0.05in;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 7.7pt;
    line-height: 1.1;
  }

  .descriptor {
    margin-bottom: 0.052in;
    font-size: 7.7pt;
    line-height: 1.22;
  }

  .role-block li,
  .achievement-list li,
  .plain-list li {
    padding-left: 0.13in;
    margin-bottom: 0.032in;
  }

  .role-block li::before,
  .achievement-list li::before,
  .plain-list li::before {
    top: 0.52em;
    width: 2.2pt;
    height: 2.2pt;
  }

  .achievement-list li {
    margin-bottom: 0.04in;
  }

  .tool-stack {
    gap: 0.045in;
  }

  .tool-stack div {
    display: block;
    padding-top: 0.045in;
    border-top: 0;
  }

  .tool-stack div:first-child {
    padding-top: 0;
  }

  dt {
    display: inline;
    font-size: 7.8pt;
    line-height: 1.2;
  }

  dt::after {
    content: ": ";
  }

  dd {
    display: inline;
    font-size: 7.8pt;
    line-height: 1.2;
  }

  dd::after {
    content: "";
    display: block;
    height: 0.028in;
  }

  .final-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.9fr;
    gap: 0.32in;
  }

  .languages-line {
    font-size: 7.9pt;
    line-height: 1.25;
  }

  #document-en .entrepreneurship-section,
  #document-es .entrepreneurship-section {
    break-before: auto;
    page-break-before: auto;
  }
}
