/* Home page (index.html) */

/* Hero: fills the first screen (minus the header) so the headline and map own the first impression */
.hero { --bleed: clamp(0px, (100vw - var(--max)) / 2 + var(--gutter) - 24px, 160px);
        background: var(--white); min-height: clamp(640px, calc(100svh - 88px), 960px); padding: 32px 0 72px;
        display: flex; align-items: center; overflow: hidden; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 100px); line-height: .93; font-weight: 800; font-stretch: 82%; letter-spacing: -.02em; color: var(--violet-900); margin: 0 0 32px; }
.hero .sub { font-size: clamp(19px, 1.9vw, 26px); font-weight: 300; color: var(--text); margin: 0 0 44px; }
/* the map grows into the empty margin on the right on wide screens */
.map { position: relative; width: calc(100% + var(--bleed)); margin-right: calc(-1 * var(--bleed)); justify-self: end; }
.map img { width: 100%; }

/* Sovereignty band */
.band { background: var(--green); color: var(--white); padding: 128px 0; overflow: hidden; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.flag { width: 46px; height: 32px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 3px; display: grid; place-items: center; margin-bottom: 28px; }
.band h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; font-weight: 600; letter-spacing: -.01em; margin: 0 0 24px; }
.band p { font-size: 18px; line-height: 1.55; max-width: 470px; margin: 0; color: #d6e8e3; }
.band .stars { justify-self: center; width: min(420px, 100%); aspect-ratio: 1; color: rgba(0,0,0,.24); }

/* One line to switch */
section.code { padding: 128px 0 64px; }
.code .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: center; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 380px; margin: 0; }
.more-link { display: inline-block; margin-top: 28px; font-size: 16px; font-weight: 500; color: var(--violet-500); text-underline-offset: 4px; }
.more-link:hover { color: var(--violet-900); }
.band .more-link { color: var(--white); }
.band .more-link:hover { color: #d6e8e3; }
.codebox { position: relative; background: var(--white); border: 1px solid #cfc4de; border-radius: 10px; overflow: hidden; }
.codebox .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 18px; border-bottom: 1px solid #ece5f4; font: 12px "Roboto Mono", monospace; color: var(--muted); }
.copy { background: none; border: 0; cursor: pointer; padding: 4px; color: var(--muted); display: flex; align-items: center; gap: 6px; font: 12px Roboto, sans-serif; }
.copy:hover { color: var(--violet-500); }
.codebox pre { margin: 0; padding: 16px 0; font: 13.5px/1.7 "Roboto Mono", ui-monospace, monospace; color: #1d1a22; counter-reset: ln; overflow-x: auto; }
.codebox .ln { display: block; padding-right: 18px; }
.codebox .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 26px; margin-right: 16px; text-align: right; color: #aaa2b6; }
.codebox .hl { background: #f1ebf9; }
.codebox .hl::before { color: var(--violet-500); }
.tk-k { color: #c2363c; } .tk-f { color: #5e4188; } .tk-p { color: #4b5fcc; } .tk-s { color: #8a4b0f; }

/* Efficiency */
.efficiency { padding: 64px 0 128px; }
.efficiency .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.efficiency h2 { color: var(--violet-900); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.01em; font-weight: 700; margin: 0 0 18px; }
.efficiency .bracketed p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--violet-500); border-radius: 10px; padding: 22px 22px 24px; position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.card .num { position: absolute; top: 8px; right: 14px; font-family: var(--display); font-stretch: 88%; font-size: 60px; font-weight: 400; color: rgba(255,255,255,.16); line-height: 1; }
.card h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; color: var(--white); }
.card p { font-size: 15px; line-height: 1.45; margin: 0; color: #e7def4; }

/* Detail columns */
.features { padding: 120px 0 0; }
.features .wrap { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; column-gap: 40px; row-gap: 0; }
/* each column spans three shared rows so headings and items line up across columns */
.col { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; --c: var(--violet-500); }
.features h2 { color: var(--violet-900); font-size: 28px; font-weight: 700; margin: 0; padding-bottom: 14px; border-bottom: 2px solid var(--c); }
.feat { padding: 22px 0 4px; }
.feat h3 { display: flex; align-items: center; gap: 10px; color: var(--violet-900); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.feat svg { width: 24px; height: 24px; flex: none; color: var(--c); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* Founders */
.founders { padding: 0 0 120px; }
.founders .inner { border-top: 1.5px solid var(--violet-500); border-bottom: 1.5px solid var(--violet-500); padding: 48px 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 40px; align-items: start; }
/* photo sits in the first column, text starts where the second detail column starts */
.founders .inner > div { grid-column: 2 / -1; }
.founders img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founders h2 { color: var(--violet-900); font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.01em; margin: 0 0 26px; line-height: 1.05; }
.person + .person { margin-top: 30px; }
.person h3 { color: var(--violet-900); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.person p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 10px; max-width: 62ch; }
.person .links { display: flex; gap: 22px; font-size: 14px; color: var(--violet-500); margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1080px) { .features .wrap { grid-template-columns: 1fr 1fr; row-gap: 56px; } }
@media (max-width: 960px) {
  .hero .wrap, .band .wrap, .code .wrap, .efficiency .wrap { grid-template-columns: 1fr; }
  .hero .wrap > *, .code .wrap > *, .efficiency .wrap > * { min-width: 0; }
  .hero { min-height: 0; padding: 48px 0 72px; }
  .map { width: 100%; margin: 0; justify-self: center; max-width: 480px; }
  .band, section.code { padding: 88px 0; }
  .band .stars { width: 240px; }
  .efficiency { padding-bottom: 88px; }
  .founders .inner { grid-template-columns: 1fr; gap: 36px; }
  .founders .inner > div { grid-column: auto; }
  .founders img { max-width: 320px; }
}
@media (max-width: 600px) {
  .cards, .features .wrap { grid-template-columns: 1fr; }
  .features .wrap { row-gap: 48px; }
  .card { min-height: 0; padding-top: 70px; }
}
