/* /about-us — page-specific styles. Mirrors the design handoff
 * inline CSS from imaginando-3-0/project/Imaginando About.html with
 * tokens hoisted to var(--…) and structural classes scoped under
 * `.about-head` so they don't collide with the homepage's own
 * `.timeline` block (a small two-line list — see public/style.css).
 *
 * Sections:
 *   .about-head      — page header: lede grid + 4-cell .hero-stats
 *   .letter          — founder letter: sticky portrait aside + body
 *   .about-timeline  — vertical timeline (markers on the left rail)
 *   .values / .vcard — 3-card grid of principles
 *   .cta-block       — accent-filled closing CTA card
 */

/* ---------- Page-head: lede grid + stats ---------- */

/* Bigger H1 cap than the global `.page-head h1` (clamp 56 / 8.4vw / 140px) —
 * matches the handoff `.hero h1` spec exactly so the four-line wrap
 * "A company / shaped by curiosity, / built one tool at a / time." reads
 * at the design scale without over-shooting on wide viewports. */
.about-head h1 {
  font-size: clamp(56px, 8.4vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.about-head .hero-lede {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 48px;
  align-items: end;
}
@media (max-width: 900px) {
  .about-head .hero-lede {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.about-head .hero-lede .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 48ch;
  margin: 0;
  text-wrap: pretty;
}
/* Override the global `.hero-meta { display: flex; flex-wrap: wrap }` rule
 * in style.css — that one is for the homepage / ubridge chip rows. On the
 * about page we want a right-aligned stack of plain mono lines, one per
 * row, anchored to the bottom-right of the grid cell. */
.about-head .hero-meta {
  display: block;
  margin: 0;
  text-align: right;
  line-height: 1.8;
  color: var(--fg-dim);
}
.about-head .hero-meta > div {
  display: block;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .about-head .hero-meta { text-align: left; }
}

.about-head .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  margin-top: 48px;
  background: var(--bg-2);
  overflow: hidden;
}
@media (max-width: 760px) {
  .about-head .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.about-head .hero-stats .cell {
  padding: 24px;
  border-right: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-head .hero-stats .cell:last-child { border-right: 0; }
@media (max-width: 760px) {
  .about-head .hero-stats .cell:nth-child(2) { border-right: 0; }
  .about-head .hero-stats .cell:nth-child(-n+2) {
    border-bottom: 0.5px solid var(--line);
  }
}
.about-head .hero-stats .cell .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.about-head .hero-stats .cell .num em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.about-head .hero-stats .cell .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Founder letter ---------- */

.letter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1000px) {
  .letter { grid-template-columns: 1fr; gap: 40px; }
}
.letter-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1000px) {
  .letter-side { position: static; }
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  position: relative;
  /* Subtle backdrop so the image edges blend on portrait blank space.
   * The actual photo covers via `object-fit:cover`. */
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 255, 58, 0.18), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #1a1a20, #0a0a0c);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait .ph-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 8px;
  border-radius: 6px;
  border: 0.5px solid var(--line);
  white-space: nowrap;
}

.signature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.signature .who {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.signature .role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.letter-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.letter-body .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 18px;
}
.letter-body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 32px;
  text-wrap: balance;
}
.letter-body h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.letter-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0 0 22px;
  text-wrap: pretty;
  max-width: 60ch;
}
/* Drop-cap on the first paragraph after the h2 — accent serif glyph
 * floated left. `_md` flow renders paragraphs in source order, so
 * `:first-of-type` lands on the first intro paragraph. */
.letter-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 84px;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--accent);
}
.letter-body p strong {
  color: var(--fg);
  font-weight: 500;
}
.letter-body .pull {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
  max-width: 36ch;
}
.letter-body .pull em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ---------- Timeline ----------
 * Scoped under `.timeline-wrap` to avoid colliding with the homepage's
 * `.timeline` class (a small two-line list, see public/style.css). */
.timeline-wrap { position: relative; }
.timeline-wrap .timeline-track {
  position: relative;
  border-left: 0.5px solid var(--line);
  margin-left: 24px;
  padding-left: 48px;
}
@media (max-width: 720px) {
  .timeline-wrap .timeline-track {
    padding-left: 32px;
    margin-left: 16px;
  }
}
.timeline-wrap .ti {
  position: relative;
  padding: 0 0 56px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .timeline-wrap .ti { grid-template-columns: 1fr; gap: 18px; }
}
.timeline-wrap .ti:last-child { padding-bottom: 0; }
.timeline-wrap .ti .text { min-width: 0; }
.timeline-wrap .ti::before {
  content: "";
  position: absolute;
  left: -56px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 0.5px solid var(--line-strong);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-wrap .ti.lit::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent);
}
@media (max-width: 720px) {
  .timeline-wrap .ti::before { left: -40px; }
}
.timeline-wrap .ti .head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.timeline-wrap .ti .y {
  font-family: var(--display);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.timeline-wrap .ti .y em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.timeline-wrap .ti .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 4px 8px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.timeline-wrap .ti.lit .tag {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.timeline-wrap .ti h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.2;
  text-wrap: balance;
}
.timeline-wrap .ti p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}
.timeline-wrap .ti .visual {
  margin-top: 4px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--line);
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #161620, #0e0e14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline-wrap .ti .visual.accent {
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, color-mix(in oklab, var(--accent) 80%, #000), color-mix(in oklab, var(--accent) 60%, #000));
  color: rgba(0, 0, 0, 0.55);
}
.timeline-wrap .ti .visual.has-image {
  padding: 0;
  background: #000;
  color: transparent;
}
.timeline-wrap .ti .visual.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* `.values` / `.vcard` live in `public/style.css` (hoisted in the
 * harpa-laser commit when it became the second page to use them).
 * about-us was the first user; harpa-laser's Lessons section is the
 * second. */

/* `.cta-block` lives in `public/style.css` (hoisted in the projects
 * commit when it became the second page to use it). about-us was the
 * first user; projects is the second. */
