/* ============================================================================
   ABOUT / FORMATION / TODAY — §01–§03
   Three quiet spreads. Everything is framed by 1px hairlines; nothing here is
   a card with a background, a radius or a shadow. Type carries the hierarchy.
   Tokens come from editorial.css.
   ========================================================================= */

/* the shared .sec-head grid takes a label + one body cell; the body holds the
   h2 and its deck, so both sit in column two                           */
.sec-head-body {
  min-width: 0;
}

.sec-head-body .sec-lead {
  margin-top: 22px;
}

/* ---------- §01 about ---------------------------------------------------- */
/* the single accent use on the page: a 56px rule under the headline */
.about-kicker {
  display: block;
  width: 56px;
  height: 1px;
  margin-top: clamp(20px, 3vw, 34px);
  background: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.about-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 34px 0;
  border-top: 1px solid var(--line);
}

.about-n {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}

.about-title {
  margin: 18px 0 0;
  font-size: var(--t-l);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.about-body {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* vertical hairlines between cells, per breakpoint, never on the outer edge */
@media (min-width: 1100px) {
  .about-card {
    padding-left: 26px;
    border-left: 1px solid var(--line);
  }

  .about-card:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 780.02px) and (max-width: 1099.98px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-card {
    padding-left: 26px;
    border-left: 1px solid var(--line);
  }

  .about-card:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-card {
    padding: 24px 0 28px;
  }

  .about-body {
    max-width: 46ch;
  }
}

/* ---------- §02 formation ------------------------------------------------ */
.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: start;
}

.cv-col {
  min-width: 0;
}

.cv-col-label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

.cv-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-row {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr);
  gap: clamp(14px, 2.2vw, 30px);
  align-items: baseline;
  padding: 16px 0 17px;
  border-top: 1px solid var(--line);
}

.cv-timeline .cv-row:last-child {
  border-bottom: 1px solid var(--line);
}

.cv-year {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cv-what {
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}

.cv-langs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-lang {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(60px, 44%);
  gap: 18px;
  align-items: center;
  padding: 15px 0 14px;
  border-top: 1px solid var(--line);
}

.cv-langs .cv-lang:last-child {
  border-bottom: 1px solid var(--line);
}

.lang-name {
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the measure: a 1px bar, width set per language with an inline --v */
.lang-bar {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line);
}

.lang-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 100%);
  height: 1px;
  background: var(--line-strong);
}

.cv-note {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- §03 today ---------------------------------------------------- */
.stack-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 110px);
  align-items: start;
}

.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-row {
  display: grid;
  grid-template-columns: 2.6ch minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: baseline;
  padding: 14px 0 15px;
  border-top: 1px solid var(--line);
}

.stack-list .stack-row:last-child {
  border-bottom: 1px solid var(--line);
}

.stack-i {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  color: var(--faint);
  transition: color 0.25s var(--ease);
}

.stack-name {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.stack-row:hover .stack-name,
.stack-row:focus-within .stack-name {
  color: var(--ink);
}

.stack-row:hover .stack-i {
  color: var(--muted);
}

.stack-note {
  margin-top: clamp(26px, 4vw, 44px);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- mobile: everything becomes one column ------------------------ */
@media (max-width: 780px) {
  .cv-grid,
  .stack-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(30px, 7vw, 44px);
  }

  .cv-row {
    grid-template-columns: 5ch minmax(0, 1fr);
    gap: 14px;
  }

  .cv-lang {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 38%);
  }

  .stack-note,
  .cv-note {
    letter-spacing: 0.16em;
  }
}
