/* About page only. Shared rules live in css/style.css. */
/* hero: h1 left, paragraph right, no photo (the gallery below carries the imagery) */
.hero-split.about-hero{padding-bottom:56px}
.hero-split.about-hero .wrap{align-items:end}
.hero-split.about-hero p{margin-top:0;max-width:44ch}

/* team gallery: 6-column asymmetric grid, three rows */
.gallery{display:grid;grid-template-columns:repeat(6,1fr);gap:24px;padding-bottom:var(--sec)}
.gallery li{min-width:0;display:flex}
.gallery figure{flex:1;min-width:0;display:flex;flex-direction:column}
.gallery img{width:100%;height:auto;flex:1;min-height:0;object-fit:cover}
.gallery .wide{grid-column:span 4}
.gallery .wide img{aspect-ratio:3/2}
.gallery .tall{grid-column:span 2;grid-row:span 2}
.gallery .tall img{aspect-ratio:2/3}
.gallery .small{grid-column:span 2}
.gallery .small img{aspect-ratio:3/2}
.gallery .full{grid-column:1/-1}
.gallery .full img{aspect-ratio:21/9}
.gallery figcaption{display:flex;justify-content:space-between;gap:16px;padding-top:12px;font-family:var(--mono);font-size:12px;letter-spacing:.02em;color:var(--dim)}

/* what we do / what you get: two ruled columns */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:64px}
.two-col>div{border-top:1px solid var(--rule);padding-top:24px}
.two-col h2{font-size:28px;letter-spacing:-.025em}
.two-col .bullets{margin-top:20px}
.two-col .bullets li{margin-top:14px;max-width:52ch}

/* values: manifesto beside a heading */
.values-grid{display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:start}
.values-grid h2{font-size:var(--h-section);max-width:12ch}

/* the Geekstab edge: 7 entries, 4 left + 3 right, column flow so no empty cell */
.edge-head{display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:end}
.edge-head h2{font-size:var(--h-section);max-width:16ch}
.edge-head p{color:var(--dim);font-size:17px;max-width:44ch}
.edge{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,auto);grid-auto-flow:column;gap:0 64px;margin-top:56px}
.edge li{border-top:1px solid var(--rule);padding:24px 0 32px}
.edge h3{font-size:var(--h-item);letter-spacing:-.02em;line-height:1.15}
.edge .hl{display:block;font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-top:8px}
.edge p{color:var(--dim);margin-top:14px;font-size:16px;max-width:46ch}

/* offices: 2x2 blocks with a city photo each */
.office-intro{color:var(--dim);font-size:19px;max-width:56ch;margin-top:16px}
.office-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;margin-top:64px}
.office{border-top:1px solid var(--rule);padding-top:24px}
.office img{width:100%;aspect-ratio:3/2;object-fit:cover}
.office .tag-hq{margin:24px 0 8px}
.office h3{font-size:32px;letter-spacing:-.025em;line-height:1.05;margin-top:24px}
.office .tag-hq+h3{margin-top:0}
.office .role{display:block;color:var(--dim);margin-top:8px;font-size:15px}
.office p{margin-top:16px;max-width:52ch}
.office address{font-style:normal;font-family:var(--mono);font-size:12px;letter-spacing:.02em;color:var(--dim);margin-top:20px;line-height:1.7;max-width:36ch}

@media (max-width:1024px){
  .hero-split.about-hero .wrap{align-items:start}
  .values-grid,.edge-head{grid-template-columns:1fr;gap:24px}
  .two-col,.office-grid{gap:40px}
  .edge{gap:0 40px}
}
@media (max-width:767px){
  .gallery{gap:16px}
  .gallery .wide,.gallery .tall,.gallery .small{grid-column:1/-1;grid-row:auto}
  .gallery .tall img{aspect-ratio:3/2}
  .two-col,.office-grid{grid-template-columns:1fr}
  .edge{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row;margin-top:32px}
  .two-col h2{font-size:24px}
  .office h3{font-size:28px}
}
