/* About page only (loaded through page meta "css": "about"). Shared components live in styles.css. */

/* ---------- 01 who we are ---------- */
.about-who__grid { align-items: center; }
.about-who__text > .lead { margin-top: clamp(1.1rem, 2vw, 1.5rem); }
.about-who__list { list-style: none; margin-top: clamp(1.75rem, 3vw, 2.4rem); max-width: 44rem; border-top: 1px solid var(--line); }
.about-who__list li { position: relative; padding: 1.05rem 0 1.05rem 1.75rem; border-bottom: 1px solid var(--line); color: var(--mute); font-size: .98rem; }
.about-who__list li::before {
  content: ""; position: absolute; left: 2px; top: calc(1.05rem + .5em);
  width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg);
}
.about-who__list strong {
  margin-right: .4rem;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bone);
}

/* ---------- 02 founder ---------- */
.about-founder__grid { display: grid; gap: clamp(2.25rem, 5vw, 5rem); align-items: start; }
@media (min-width: 960px) { .about-founder__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.about-founder__who {
  margin-bottom: 1rem;
  font-family: var(--font-dot); font-weight: 800; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.about-founder__text .lead { margin-top: clamp(1.1rem, 2vw, 1.5rem); }
.about-founder__line {
  margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 24em;
  padding: .3rem 0 .3rem clamp(1.1rem, 2vw, 1.6rem); border-left: 2px solid var(--accent);
  font-size: clamp(1.25rem, 1vw + .95rem, 1.7rem); font-weight: 500; line-height: 1.35; color: var(--bone);
}

/* founder path: a rail with diamond nodes */
.about-path-card .term__body { gap: 1.6rem; }
.about-path { list-style: none; display: grid; }
.about-path__step { position: relative; display: grid; gap: .3rem; padding: 0 0 1.5rem 2.1rem; }
.about-path__step:last-child { padding-bottom: 0; }
.about-path__step::before {
  content: ""; position: absolute; left: 1px; top: .32rem;
  width: 11px; height: 11px; border: 1.5px solid var(--accent); background: var(--panel); transform: rotate(45deg);
}
.about-path__step::after {
  content: ""; position: absolute; left: 6px; top: 1.3rem; bottom: 0; width: 1px;
  background: linear-gradient(var(--accent-line), var(--line));
}
.about-path__step:last-child::after { display: none; }
.about-path__step.is-now::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18), 0 0 16px rgba(245, 165, 36, .7); }
.about-path__when { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.about-path__what { font-family: var(--font-mono); font-size: .92rem; line-height: 1.5; color: var(--bone); }
.about-path__worked { display: grid; gap: .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- 03 principles: six rules in a hairline grid ---------- */
.about-rules__lead { max-width: 30em; }
.about-rules { list-style: none; display: grid; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); overflow: hidden; }
.about-rule {
  display: flex; flex-direction: column; gap: .85rem;
  padding: clamp(1.5rem, 2.4vw, 2.2rem); border-top: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.about-rule:first-child { border-top: 0; }
.about-rule:hover { background-color: rgba(245, 165, 36, .035); }
.about-rule:hover .step__num { -webkit-text-stroke-color: var(--accent); }
.about-rule__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.about-rule__top .step__num { margin-bottom: .2rem; }
.about-rule__tag {
  padding-top: .45rem; text-align: right;
  font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
@media (max-width: 699.98px) {
  .about-rule { gap: .7rem; }
  .about-rule .step__num { font-size: 2.3rem; }
}
@media (min-width: 700px) {
  .about-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-rule { border-left: 1px solid var(--line); }
  .about-rule:nth-child(2n + 1) { border-left: 0; }
  .about-rule:nth-child(2) { border-top: 0; }
}
@media (min-width: 1100px) {
  .about-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-rule:nth-child(2n + 1) { border-left: 1px solid var(--line); }
  .about-rule:nth-child(3n + 1) { border-left: 0; }
  .about-rule:nth-child(3) { border-top: 0; }
}

/* ---------- 04 what we build: an index of the four product pages ---------- */
.about-build__lead { max-width: 30em; }
.about-index { list-style: none; border-top: 1px solid var(--line-strong); }
.about-index__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(.9rem, 2vw, 1.5rem); row-gap: .75rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) 0; border-bottom: 1px solid var(--line);
}
.about-index__row::before { /* amber wash on hover */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.about-index__row:hover::before { opacity: 1; }
.about-index__num { grid-column: 1; grid-row: 1; padding-top: .3rem; font-family: var(--font-dot); font-weight: 800; font-size: .9rem; line-height: 1; letter-spacing: .14em; color: var(--accent); }
.about-index__head { grid-column: 2; grid-row: 1; display: grid; gap: .45rem; min-width: 0; }
.about-index__tag { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.about-index__name { font-family: var(--font-display); font-size: clamp(1.3rem, 1.5vw + .85rem, 2.15rem); line-height: 1.15; }
.about-index__link { color: var(--bone); text-decoration: none; transition: color .25s; }
.about-index__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.about-index__link:focus-visible { outline: none; }
.about-index__row:has(.about-index__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.about-index__row:hover .about-index__link { color: var(--accent); }
.about-index__text { grid-column: 2 / -1; max-width: 38em; color: var(--mute); font-size: .98rem; }
.about-index__go { grid-column: 3; grid-row: 1; align-self: center; width: 1.5rem; height: 1.5rem; color: var(--accent); transition: transform .3s var(--ease); }
.about-index__row:hover .about-index__go { transform: translateX(6px); }
@media (min-width: 960px) {
  .about-index__row { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr) 3rem; align-items: center; }
  .about-index__text { grid-column: 3; grid-row: 1; }
  .about-index__go { grid-column: 4; justify-self: end; }
}

/* ---------- 05 where we are: office and servers, linked ---------- */
.about-where__grid { align-items: center; }
.about-where__text .lead { margin-top: clamp(1.1rem, 2vw, 1.5rem); }
.about-where__spec { margin-top: clamp(1.75rem, 3vw, 2.4rem); }
.about-where__link { margin-top: 1.5rem; }
.about-route .term__body { padding: clamp(1.5rem, 3.2vw, 2.6rem); }
.about-route__list { --route-gap: clamp(3.5rem, 7vw, 5rem); list-style: none; display: grid; }
.about-route__node { position: relative; display: grid; gap: .35rem; padding-left: 2.5rem; }
.about-route__node::before {
  content: ""; position: absolute; left: 2px; top: .3rem;
  width: 13px; height: 13px; border: 1.5px solid var(--accent); background: var(--accent); transform: rotate(45deg);
  box-shadow: 0 0 0 5px rgba(245, 165, 36, .16), 0 0 18px rgba(245, 165, 36, .65);
}
.about-route__node + .about-route__node { margin-top: var(--route-gap); }
.about-route__node:first-child::after { /* dotted link down to the next node */
  content: ""; position: absolute; left: 8px; top: 1.75rem; bottom: calc(-1 * var(--route-gap));
  border-left: 2px dotted var(--accent-line);
}
.about-route__packet { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .about-route__packet {
    display: block; position: absolute; left: 6px; top: calc(.3rem - var(--route-gap));
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 10px rgba(245, 165, 36, .9);
  }
  /* two runs (5 s) from the office down to the servers once the card is on screen, then it rests at the office */
  .about-route:not(.is-pending) .about-route__packet { animation: about-packet 2.5s var(--ease) 2; }
}
@keyframes about-packet {
  0% { transform: translateY(0); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(calc(var(--route-gap) - .9rem)); opacity: 0; }
}
.about-route__key { font-family: var(--font-mono); font-weight: 600; font-size: .74rem; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.about-route__val { font-family: var(--font-display); font-size: clamp(1.35rem, 1.6vw + .9rem, 2.1rem); line-height: 1.15; color: var(--bone); }
.about-route__sub { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--mute); }

/* ---------- 06 FAQ ---------- */
.about-faq__lead { margin-top: 1.4rem; }
.about-faq__ask { margin-top: 1.25rem; }
