:root {
  color-scheme: light;
  --bg: #f5f7f2;
  --panel: #ffffff;
  --ink: #18201a;
  --muted: #5c675e;
  --line: #d8ded5;
  --accent: #1d6f53;
  --accent-hover: #165640;
  --focus: #b68a2b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.resume-panel {
  width: min(100%, 560px);
  padding: clamp(28px, 7vw, 56px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(24, 32, 26, 0.08);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  margin: 18px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.primary-action {
  background: var(--accent);
  color: #ffffff;
}

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

.secondary-action {
  border: 1px solid var(--line);
  background: #f9faf7;
  color: var(--ink);
}

.secondary-action:hover {
  border-color: #b6c2b8;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.fine-print a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.fine-print {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.fine-print a {
  text-underline-offset: 3px;
}

@media (max-width: 460px) {
  .page {
    place-items: stretch;
  }

  .resume-panel {
    align-self: center;
  }

  .actions {
    flex-direction: column;
  }
}

.concepts-page {
  background:
    linear-gradient(180deg, #f7f9f3 0%, #eef4f1 48%, #f7f7f2 100%);
}

.concepts {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 36px 18px 52px;
}

.concepts-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.concepts-header h1 {
  max-width: 760px;
}

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

.concept-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 32, 26, 0.07);
  overflow: hidden;
}

.concept-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.concept-copy {
  display: grid;
  gap: 8px;
}

.concept-copy p {
  margin: 0;
  color: #5b665f;
  line-height: 1.45;
}

.concept-number {
  color: #1d6f53;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arc-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 28px 0;
}

.arc-timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, #245f73, #1d6f53, #9a5b31);
}

.arc-node {
  position: relative;
  z-index: 1;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fbfcf8;
  text-align: center;
}

.arc-node span,
.stack-layer span,
.bridge-side span {
  color: #5b665f;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arc-node strong,
.stack-layer strong,
.bridge-side strong {
  color: #18201a;
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  line-height: 1.2;
}

.node-market {
  border-top: 5px solid #245f73;
}

.node-product {
  border-top: 5px solid #1d6f53;
}

.node-capital {
  border-top: 5px solid #8b5d2a;
}

.node-bank {
  border-top: 5px solid #5c548d;
}

.node-ai {
  border-top: 5px solid #a63d40;
}

.proof-strip,
.bridge-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-strip span,
.bridge-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8ded5;
  border-radius: 999px;
  background: #f7faf6;
  color: #324038;
  font-size: 0.82rem;
  font-weight: 700;
}

.stack-diagram {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  align-items: center;
  min-height: 280px;
}

.stack-diagram::before {
  content: "";
  position: absolute;
  left: 42%;
  right: 96px;
  top: 50%;
  height: 2px;
  background: #9a5b31;
}

.stack-layer {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 14px;
  border-left: 6px solid #1d6f53;
  border-radius: 8px;
  background: #f7faf6;
}

.layer-finance {
  border-color: #245f73;
}

.layer-systems {
  border-color: #1d6f53;
}

.layer-leadership {
  border-color: #8b5d2a;
}

.layer-customer {
  border-color: #a63d40;
}

.stack-result {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  place-items: center;
  min-height: 168px;
  border-radius: 8px;
  background: #18201a;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.portfolio-map {
  position: relative;
  min-height: 300px;
  border-left: 2px solid #24352b;
  border-bottom: 2px solid #24352b;
  background:
    linear-gradient(90deg, rgba(36, 95, 115, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 95, 115, 0.08) 1px, transparent 1px);
  background-size: 25% 25%;
}

.axis-y,
.axis-x {
  position: absolute;
  color: #5b665f;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.axis-y {
  left: 10px;
  top: 10px;
}

.axis-x {
  right: 10px;
  bottom: 10px;
}

.map-dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 150px;
  padding: 0 10px;
  border: 1px solid #cbd6ce;
  border-radius: 999px;
  background: #ffffff;
  color: #18201a;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(24, 32, 26, 0.08);
}

.map-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #1d6f53;
}

.dot-carbon {
  left: 18%;
  bottom: 28%;
}

.dot-giftly {
  left: 34%;
  bottom: 42%;
}

.dot-colchis {
  left: 48%;
  bottom: 58%;
}

.dot-frb-a {
  left: 58%;
  bottom: 70%;
}

.dot-frb-m {
  right: 9%;
  bottom: 78%;
}

.dot-next {
  right: 5%;
  top: 8%;
  background: #18201a;
  color: #ffffff;
}

.flywheel {
  position: relative;
  min-height: 320px;
}

.flywheel::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 2px solid #d8ded5;
  border-radius: 50%;
}

.fly-center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #18201a;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.fly-step {
  position: absolute;
  display: grid;
  place-items: center;
  width: 122px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fbfcf8;
  color: #26352d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
}

.step-one {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-top: 5px solid #245f73;
}

.step-two {
  right: 0;
  top: 30%;
  border-top: 5px solid #1d6f53;
}

.step-three {
  right: 13%;
  bottom: 0;
  border-top: 5px solid #8b5d2a;
}

.step-four {
  left: 13%;
  bottom: 0;
  border-top: 5px solid #5c548d;
}

.step-five {
  left: 0;
  top: 30%;
  border-top: 5px solid #a63d40;
}

.bridge-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 250px;
}

.bridge-side,
.bridge-span {
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 16px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #f7faf6;
  text-align: center;
}

.bridge-side {
  gap: 7px;
}

.bridge-span {
  position: relative;
  background: #18201a;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.18;
}

.bridge-span::before,
.bridge-span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #9a5b31;
}

.bridge-span::before {
  right: 100%;
}

.bridge-span::after {
  left: 100%;
}

@media (max-width: 920px) {
  .concepts-header {
    align-items: start;
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  .concept-card {
    min-height: auto;
  }

  .arc-timeline,
  .stack-diagram,
  .bridge-diagram {
    grid-template-columns: 1fr;
  }

  .arc-timeline::before,
  .stack-diagram::before,
  .bridge-span::before,
  .bridge-span::after {
    display: none;
  }

  .stack-result {
    grid-column: auto;
    grid-row: auto;
    min-height: 84px;
  }

  .portfolio-map {
    min-height: 430px;
  }

  .dot-carbon {
    left: 9%;
    bottom: 19%;
  }

  .dot-giftly {
    left: 19%;
    bottom: 32%;
  }

  .dot-colchis {
    left: 30%;
    bottom: 48%;
  }

  .dot-frb-a {
    left: 24%;
    bottom: 64%;
  }

  .dot-frb-m {
    right: 10%;
    bottom: 76%;
  }

  .dot-next {
    right: 8%;
    top: 8%;
  }

  .flywheel {
    display: grid;
    gap: 10px;
    min-height: auto;
  }

  .flywheel::before {
    display: none;
  }

  .fly-center,
  .fly-step {
    position: static;
    width: auto;
    min-height: 54px;
    transform: none;
    border-radius: 8px;
  }

  .fly-center {
    height: auto;
  }
}
