/* About (/about/): hero with portrait, the jig + three stages, the two ways to work, cases,
   background timeline, the after-hours shader and the contact card (shared styles in sections.css). */

/* ---------- hero ---------- */
.ab-hero__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.ab-hero__copy { display: block; }
.ab-hero h1 { margin: 22px 0 24px; font-size: clamp(38px, 5.4vw, 70px); }
.ab-hero h1 .serif { white-space: normal; }
.ab-hero .lede { max-width: 36em; }
.ab-hero__copy .reveal:nth-child(2) { --d: 80ms; }
.ab-hero__copy .reveal:nth-child(3) { --d: 160ms; }
.ab-hero__copy .reveal:nth-child(4) { --d: 240ms; }
.portrait.reveal { --d: 300ms; }
@media (max-width: 900px) { .ab-hero__in { grid-template-columns: minmax(0, 1fr); } .portrait { max-width: 420px; } }

/* Portrait: a photo inside a blueprint frame with corner ticks and a dimension line. With no photo yet,
   the monogram behind it shows instead (the img removes itself if it fails to load). */
.portrait { position: relative; margin: 0; padding: 0 0 0 30px; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 198, 41, 0.12), transparent 55%),
    linear-gradient(var(--grid-strong) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--night-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 clamp(110px, 14vw, 170px)/1 var(--serif); color: var(--accent); opacity: 0.9; letter-spacing: -0.04em; }
.portrait__tick { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); }
.portrait__tick--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.portrait__tick--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.portrait__tick--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.portrait__tick--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
/* Vertical dimension line down the left edge, like a drawing. */
.portrait__fig { position: relative; }
.portrait__fig::before { content: ''; position: absolute; left: -20px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.portrait__fig::after { content: ''; position: absolute; left: -24px; top: 0; bottom: 0; width: 9px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.portrait__dim { position: absolute; z-index: 1; left: -20px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); padding: 0 8px; background: var(--night); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.portrait figcaption { display: grid; gap: 4px; margin-top: 18px; }
.portrait figcaption b { font-size: 19px; }
.portrait figcaption > span { font-size: 14px; color: var(--muted); }
.portrait__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--ink-2); }
.portrait__tags li { padding: 5px 9px; border: 1px dashed var(--line-strong); border-radius: 999px; }

/* ---------- the jig: three stages joined by a line that fills on scroll ---------- */
.stages { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stages::before, .stages::after { content: ''; position: absolute; left: 50px; right: calc((100% - 40px) / 3 - 50px); top: 49px; height: 2px; border-radius: 2px; }
.stages::before { background: var(--line); }
.stages::after { background: linear-gradient(90deg, var(--orange), var(--accent), var(--ok)); transform: scaleX(var(--prog, 0)); transform-origin: left; }
.stage { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(11, 29, 53, 0.55); }
.stage__ico { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--night); font-size: 22px; color: var(--muted); transition: color 0.4s, border-color 0.4s, background-color 0.4s; }
.stage.lit .stage__ico { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.stage:last-child.lit .stage__ico { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.stage__n { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stage h3 { font-size: 21px; }
.stage p { color: var(--ink-2); font-size: 15.5px; }
.stage__eg { margin-top: auto; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--muted) !important; }
.stage__eg--ok { border-style: solid; border-color: rgba(62, 224, 143, 0.35); color: var(--ok) !important; background: rgba(62, 224, 143, 0.06); }
/* Stacked on a phone, a line would run through the text, so only the icons light up. */
@media (max-width: 860px) {
  .stages { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stages::before, .stages::after { display: none; }
}

/* ---------- two ways to work ---------- */
.two__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.two__card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.5vw, 40px); border-radius: 22px; border: 1px solid var(--line-strong); background: var(--night-2); }
.two__card:first-child { background: linear-gradient(160deg, rgba(255, 198, 41, 0.08), transparent 45%), var(--night-2); }
.two__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--night); border: 1px solid var(--line-strong); font-size: 22px; color: var(--accent); }
.two__who { margin-top: 6px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.two__card h3 { font-size: clamp(24px, 2.6vw, 30px); }
.two__card > p:not(.two__who) { color: var(--ink-2); }
.two__list { display: grid; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; }
.two__list li { display: flex; align-items: center; gap: 10px; }
.two__list .ico { color: var(--ok); stroke-width: 2.25; }
.two__list a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.two__btn { align-self: flex-start; margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .two__list a:hover { text-decoration-color: var(--accent); } }
@media (max-width: 800px) { .two__grid { grid-template-columns: minmax(0, 1fr); } }

.both { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; border: 1px dashed var(--line-strong); }
.both__story { margin-top: 12px; color: var(--ink-2); }
.both__flow { display: grid; gap: 22px; justify-self: center; width: min(100%, 280px); margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.both__flow li { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--night-2); color: var(--ink-2); }
.both__flow li .ico { font-size: 16px; color: var(--accent); }
.both__flow li:not(:last-child)::after { content: '↓'; position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); font-size: 12px; line-height: 1; color: var(--muted); }
.both__next { border-color: rgba(62, 224, 143, 0.4) !important; color: var(--ok) !important; }
.both__next .ico { color: var(--ok) !important; }
@media (max-width: 760px) { .both { grid-template-columns: minmax(0, 1fr); } .both__flow { justify-self: start; } }

/* ---------- cases ---------- */
.cases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.case__tag { align-self: flex-start; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 22px; }
.case dl { display: grid; gap: 12px; margin: 0; }
.case dl > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.case dt { padding-top: 3px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.case dl > div:first-child dt { color: var(--orange); }
.case dl > div:nth-child(2) dt { color: var(--accent); }
.case__tool dt { color: var(--ok) !important; }
.case__tool dd { color: var(--ink); font-weight: 500; }
.case__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.case__link .ico { color: var(--accent); transition: transform 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .case { transition: border-color 0.3s, transform 0.3s var(--ease-out); }
  .case:hover { border-color: var(--line-strong); }
  .case__link:hover .ico { transform: translateX(3px); }
}
@media (max-width: 960px) { .cases__grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }

/* ---------- background timeline ---------- */
.path__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.path__head { position: sticky; top: 110px; margin-bottom: 0; }
.line { position: relative; display: grid; gap: 30px; margin: 0; padding: 0 0 0 36px; list-style: none; }
.line::before, .line::after { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.line::before { background: var(--line); }
.line::after { background: var(--accent); transform: scaleY(var(--prog, 0)); transform-origin: top; }
.line__item { position: relative; }
.line__item::before { content: ''; position: absolute; left: -36px; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--night); transition: border-color 0.3s, background-color 0.3s; z-index: 1; }
.line__item.lit::before { border-color: var(--accent); background: var(--accent); }
.line__item--now.lit::before { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 6px rgba(62, 224, 143, 0.12); }
.line__when { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.line__item h3 { margin: 6px 0 6px; font-size: 20px; }
.line__item p { color: var(--ink-2); font-size: 15.5px; max-width: 34em; }
@media (max-width: 900px) { .path__in { grid-template-columns: minmax(0, 1fr); } .path__head { position: static; } }

/* ---------- after hours: the shader screen ---------- */
.maker__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.maker h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin: 16px 0 18px; }
.maker__copy > p:not(.kicker) { color: var(--ink-2); font-size: 18px; }
.maker__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-2); }
.maker__chips li { padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; }
.screen { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.screen__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--night-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.screen__live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(62, 224, 143, 0.15); }
.screen.paused .screen__live { background: var(--muted); box-shadow: none; }
.screen__btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: 500 12.5px/1 var(--font); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .screen__btn:hover { color: var(--ink); border-color: var(--muted); } }
.screen__view { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle, #000 8%, #3a1a5c 30%, #0b4d5c 55%, #5c3a0b 80%); }
.screen__view canvas { display: block; width: 100%; height: 100%; }
.screen__none { position: absolute; inset: auto 16px 16px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.6); font-size: 13px; color: var(--ink); }
.screen figcaption { padding: 10px 14px; background: var(--night-2); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .maker__in { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .stage__ico, .line__item::before { transition: none; }
}
