/* ========================================================================
   Sections — months strip, ownership, how-I-work, engineering
   ======================================================================== */

/* ── Section frame ────────────────────────────────────────────────────── */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}
.section.tint  { background: var(--mist); }
.section.dark  { background: var(--oxford); color: #fff; }
.section.dark .section-eyebrow { color: var(--steel); }
.section.dark .section-title { color: #fff; }
.section.dark .section-sub { color: rgba(255,255,255,0.74); }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(28px, 3vw, 48px);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 16px;
}
.section-eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--azure);
}
.section-eyebrow .num {
  font-weight: 700;
  color: var(--azure);
  font-feature-settings: "tnum";
  margin-right: 2px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--oxford);
  text-wrap: balance;
  max-width: 22ch;
}
.section-sub {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
  text-wrap: pretty;
}

/* Header with audience pill */
.aud-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.aud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--sky);
  color: var(--azure-press);
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.aud.dev { background: rgba(255,255,255,0.10); color: #fff; }
.aud .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--azure);
}
.aud.dev .dot { background: var(--steel); }

/* ── Months strip ─────────────────────────────────────────────────────── */
.strip-hint {
  max-width: var(--maxw);
  margin: 0 auto 16px;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.strip-hint .axis::before,
.strip-hint .axis::after {
  content: "";
  display: inline-block;
  width: 20px; height: 1px;
  vertical-align: middle;
  background: var(--ink-300);
  margin: 0 8px;
}

.strip-wrap {
  position: relative;
}
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 32px;
  scrollbar-color: var(--steel) transparent;
  scrollbar-width: thin;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: var(--ink-100); }
.strip::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }

.month {
  flex: 0 0 clamp(300px, 24vw, 360px);
  height: clamp(520px, 64vh, 620px);
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.month:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--baby);
}
.month.recent {
  border-color: var(--azure);
  box-shadow: 0 0 0 1px var(--azure), var(--shadow-md);
}

.m-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--ink-100);
  flex: 0 0 auto;
}
.m-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.m-month {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--oxford);
  line-height: 1;
}
.m-month .year {
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  margin-left: 6px;
  letter-spacing: 0;
}
.m-recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--azure);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m-commits {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.m-commits b {
  font-weight: 700;
  color: var(--azure);
  font-feature-settings: "tnum";
  margin-right: 4px;
}

.m-outcome {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--oxford);
  margin: 0;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

.m-eng {
  padding: 14px 24px;
  background: var(--mist);
  border-bottom: 1px solid var(--ink-100);
  flex: 0 0 auto;
}
.m-eng .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.m-eng .v {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-700);
}

.m-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-color: var(--steel) transparent;
  scrollbar-width: thin;
}
.m-body::-webkit-scrollbar { width: 4px; }
.m-body::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 2px; }

.m-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.m-body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-700);
  position: relative;
  padding-left: 16px;
}
.m-body li:last-child { border-bottom: 0; }
.m-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 6px; height: 1px;
  background: var(--azure);
}

.m-collab {
  padding: 12px 24px;
  background: var(--sky);
  border-top: 1px solid var(--baby);
  font-size: 12px;
  font-weight: 500;
  color: var(--azure-press);
  line-height: 1.4;
  flex: 0 0 auto;
}

/* Strip nav buttons */
.strip-nav {
  position: absolute;
  top: -56px;
  right: var(--gutter);
  display: flex;
  gap: 8px;
}
.strip-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-600);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
  box-shadow: var(--shadow-xs);
}
.strip-btn:hover { border-color: var(--azure); color: var(--azure); }
.strip-btn:active { transform: scale(0.94); }
.strip-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.strip-btn svg { width: 16px; height: 16px; }

/* ── Ownership list (2-col grid of bullets) ───────────────────────────── */
.ownership {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  border-top: 1px solid var(--ink-200);
}
@media (max-width: 720px) {
  .ownership { grid-template-columns: 1fr; gap: 0; }
}
.own-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-200);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-700);
  text-wrap: pretty;
}
.own-item .num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--azure);
  padding-top: 2px;
  min-width: 24px;
  font-feature-settings: "tnum";
}
.own-item b { color: var(--oxford); font-weight: 600; }

/* ── How I work ───────────────────────────────────────────────────────── */
.work-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.work-card:hover { border-color: var(--baby); box-shadow: var(--shadow-sm); }
.work-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--oxford);
  line-height: 1.25;
  text-wrap: balance;
}
.work-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  text-wrap: pretty;
}

/* ── Engineering depth section ────────────────────────────────────────── */
.eng-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.eng-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 32px;
}
.eng-card h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.eng-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.eng-card li {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  padding-left: 22px;
  position: relative;
  text-wrap: pretty;
}
.eng-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 1px;
  background: var(--azure);
}
.eng-card code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--steel);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Outro ────────────────────────────────────────────────────────────── */
.outro {
  background: var(--oxford);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 6vw, 64px);
}
.outro-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 720px) { .outro-grid { grid-template-columns: 1fr; } }
.outro h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  text-wrap: balance;
}
.outro p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin: 0 0 6px;
}
.outro-meta {
  display: grid;
  gap: 14px;
}
.outro-meta .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.outro-meta .row .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.outro-meta .row .v { color: #fff; font-weight: 500; }
.outro-footer {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ── Reveal animations ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
