/*
  About page ("Off the Clock") — a deliberately separate visual system
  from the rest of the site, on purpose: warm serif/mono editorial look,
  no employer names or career narrative, not driven by css/tokens.css.
  Carried over from a Claude Design handoff — see
  reference/about-page.md. Edit text in js/about-data.js and photos in
  images/about/, not here.
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #EFE6D9;
  color: #B7461D;
  font-family: "Newsreader", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.annotated { position: relative; display: inline-block; }
.annotated svg { position: absolute; left: -4%; top: -14%; width: 108%; height: 128%; overflow: visible; pointer-events: none; }
.annotated svg path { fill: none; stroke: #E06A2E; stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1) .3s; }
.annotated.in svg path { stroke-dashoffset: 0; }

/* Every photo slot gets its file (top layer) over its gradient (bottom
   layer) — if the file isn't there yet, the browser just skips painting
   the missing image and the gradient shows through untouched. See
   about.js for how the two layers get set. */
.fb { width: 100%; height: 100%; background-size: cover; background-position: center; }

.obar { display: flex; align-items: center; gap: 26px; padding: 20px 28px; }
.obar .bgm-slot { margin-left: auto; }
.ohome { display: inline-flex; align-items: center; gap: 8px; font-family: "Azeret Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #B7461D; text-decoration: none; transition: opacity 180ms ease; }
.ohome:hover { opacity: .7; }

.owrap { max-width: 1160px; margin: 0 auto; padding: 20px 28px 90px; }

/* hero — big name, photo on the left matched in height to the stacked content on the right */
.cwordmark {
  font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(52px, 10.5vw, 160px);
  line-height: .86; letter-spacing: -.01em; text-transform: uppercase; color: #E06A2E;
  margin: 18px 0 30px;
}
.cherorow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: stretch; margin-bottom: 60px; }
/* height: 100% (matching the sibling column via grid stretch) only makes
   sense in the desktop side-by-side layout — scoped to min-width so it
   never coexists with the mobile aspect-ratio rules below. Having both
   a height and an aspect-ratio active on the same element at once (one
   from this rule, one from a mobile override) was the cause of the hero
   photo collapsing to zero height on at least one real iPhone even
   though `height: auto` should have won the cascade — some WebKit
   versions resolve that combination inconsistently. .cthumb/.lcover use
   a single unconditional aspect-ratio with no competing height and don't
   have this problem, so .cphoto now follows the same pattern at mobile
   widths — see the sizing note in the media queries below. */
@media (min-width: 821px) {
  .cphoto { height: 100%; }
}
.cphoto { border-radius: 2px; overflow: hidden; position: relative; box-shadow: 0 20px 44px rgba(90, 40, 10, .22); }
.cright { display: flex; flex-direction: column; gap: 20px; }
.cbelief { font-family: "Azeret Mono", monospace; font-size: 12.5px; letter-spacing: .03em; line-height: 1.7; color: #8a3d16; max-width: 38ch; }
.cthumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cthumb { border-radius: 2px; overflow: hidden; aspect-ratio: 1 / 1; }
.cmission { font-family: "Azeret Mono", monospace; font-size: 13px; letter-spacing: .02em; line-height: 1.75; color: #8a3d16; max-width: 44ch; margin-top: auto; }

/* about me */
.aboutme { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px; background: #B7461D; border: 2px solid #B7461D; margin-bottom: 60px; }
.aboutme .bio { background: #EFE6D9; padding: 30px 32px; }
.aboutme .bio .kicker { font-family: "Azeret Mono", monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #B7461D; margin-bottom: 12px; }
.aboutme .bio p { font-size: 16.5px; line-height: 1.8; max-width: 56ch; color: #5c2a10; }
.aboutme .facts { background: #E06A2E; padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; }
.aboutme .facts .fact { border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 14px; }
.aboutme .facts .fact:last-child { border-bottom: 0; padding-bottom: 0; }
.aboutme .facts .fact__label { display: block; font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 5px; }
.aboutme .facts .fact__value { display: block; font-family: "Fraunces", serif; font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -.01em; }

/* issue cards — flat gradient square, no shared border grid */
.obhead { font-family: "Azeret Mono", monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #B7461D; border-top: 1px solid rgba(183, 70, 29, .3); padding-top: 24px; margin-bottom: 26px; }
.lissues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.lissue { position: relative; transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
.lissue:hover { transform: translateY(-6px); }
.lcover { aspect-ratio: 1 / 1; border-radius: 2px; position: relative; overflow: hidden; margin-bottom: 10px; box-shadow: 0 10px 24px rgba(90, 40, 10, .18); transition: box-shadow 220ms cubic-bezier(.2,.7,.2,1); }
.lissue:hover .lcover { box-shadow: 0 18px 34px rgba(90, 40, 10, .28); }
/* Hover-video cards (see js/about.js) — the video IS the card's visual
   (its `poster` attribute shows the still frame at rest), filling the
   tile the same `cover` way a plain photo card's .fb layer does — no
   separate photo underneath, no inset/contain shrinking. Paused/played
   by wireHoverVideo() in about.js, not by anything here. */
.lvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Pointer cursor only where a tap actually opens the lightbox (see
   IS_TOUCH_DEVICE in about.js) — on hover-capable devices a click does
   nothing, so the default cursor is correct there. */
@media (hover: none), (pointer: coarse) {
  .lissue.has-video .lcover { cursor: pointer; }
}
.lmeta { font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #B7461D; opacity: .8; margin-bottom: 4px; }
.ltitle { font-family: "Fraunces", serif; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: #5c2a10; }

/* Q&A — each pair is its own flex row (not one shared grid across every
   pair) so a sticky question's containing block is unambiguously just
   its own row; see the comment on renderQa() in js/about.js for why. */
.interview { margin-bottom: 60px; }
.qa-pair { display: flex; align-items: flex-start; gap: 34px; margin-bottom: 34px; }
.qcol { flex: 0 0 220px; position: sticky; top: 24px; }
.acol { flex: 1; min-width: 0; }
.q { font-family: "Azeret Mono", monospace; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #B7461D; margin-bottom: 20px; line-height: 1.6; }
.a { font-size: 17px; line-height: 1.85; margin-bottom: 38px; max-width: 60ch; color: #5c2a10; }

/* tag cloud */
.ltagcloud { padding: 36px 0; border-top: 2px solid #B7461D; text-align: center; margin-bottom: 20px; }
.lbl { font-family: "Azeret Mono", monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #B7461D; opacity: .7; margin-bottom: 18px; }
.ltags { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; }
.ltags span { font-family: "Fraunces", serif; font-style: italic; font-size: 15px; color: #8a3d16; }
.ltags span:hover { color: #B7461D; }

footer { padding: 24px 0 70px; border-top: 1px solid rgba(183, 70, 29, .3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer span, footer a { font-family: "Azeret Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #B7461D; opacity: .7; text-decoration: none; }

/* Contact popup — the footer's "Let's Connect" trigger opens a small
   popup listing LinkedIn, Instagram and Email (see .contact-menu in
   about.html). Same component/behaviour as the Home page footer (see
   js/contact-popup.js, js/social-render.js), restyled to this page's
   warm serif/mono palette instead of Home's ink/cobalt system. */
.contact-menu { position: relative; }
.contact-trigger {
  font-family: "Azeret Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #B7461D; background: none; border: 0; border-bottom: 1px solid rgba(183, 70, 29, .4);
  padding: 0 0 2px; opacity: .7; cursor: pointer; transition: opacity 180ms ease, color 180ms ease;
}
.contact-trigger:hover,
.contact-trigger[aria-expanded="true"] { opacity: 1; color: #E06A2E; border-color: #E06A2E; }
.contact-trigger:focus-visible { outline: 1px solid #B7461D; outline-offset: 3px; }

.contact-popup {
  position: absolute; bottom: calc(100% + 12px); right: 0; z-index: 90;
  width: max-content; min-width: 220px;
  display: flex; flex-direction: column;
  background: #EFE6D9; border: 1px solid #B7461D;
  box-shadow: 0 20px 44px rgba(90, 40, 10, .22);
  padding-top: 4px; padding-bottom: 4px;
}
.contact-popup[hidden] { display: none; }
.contact-popup__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  color: #8a3d16; opacity: 1; text-transform: none;
  border-bottom: 1px solid rgba(183, 70, 29, .18);
}
.contact-popup__row:last-child { border-bottom: 0; }
.contact-popup__row:hover { background: rgba(224, 106, 46, .1); color: #E06A2E; }
.contact-popup__icon {
  flex: none; width: 16px; height: 16px;
  background-color: currentColor;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.contact-popup__icon--linkedin  { -webkit-mask-image: url("../images/icons/social/linkedin.svg");  mask-image: url("../images/icons/social/linkedin.svg"); }
.contact-popup__icon--instagram { -webkit-mask-image: url("../images/icons/social/instagram.svg"); mask-image: url("../images/icons/social/instagram.svg"); }
.contact-popup__icon--email     { -webkit-mask-image: url("../images/icons/social/email.svg");     mask-image: url("../images/icons/social/email.svg"); }
.contact-popup__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-popup__label { font-family: "Azeret Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #B7461D; }
.contact-popup__hint {
  font-family: "Azeret Mono", monospace; font-size: 9.5px; opacity: .75;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Click-to-play lightbox for hover-video hobby cards (mirrors the
   .fold-focus overlay pattern used by css/gallery.css). */
.about-lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(20, 8, 2, .88); backdrop-filter: blur(3px);
  cursor: zoom-out;
}
.about-lightbox.is-open { display: flex; }
.about-lightbox__close {
  position: absolute; top: 18px; right: 20px; z-index: 1;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(239, 230, 217, .14); color: #EFE6D9;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background 150ms ease;
}
.about-lightbox__close:hover { background: rgba(239, 230, 217, .26); }
.about-lightbox video {
  max-width: min(90vw, 720px); max-height: 86vh;
  border-radius: 3px; cursor: default;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .85);
}

@media (max-width: 820px) {
  .cherorow { grid-template-columns: 1fr; }
  .cphoto { aspect-ratio: 4 / 5; }
  .aboutme, .lissues { grid-template-columns: 1fr 1fr; }
  .qa-pair { flex-direction: column; gap: 8px; }
  .qcol { position: static; flex: none; }
}
@media (max-width: 520px) {
  /* .cthumbs and .lissues deliberately stay 2 columns here (inherited from
     the 820px rule above) rather than collapsing to 1 — a 2x2/2-col grid
     reads better than a long single-column stack on a phone. */
  .aboutme { grid-template-columns: 1fr; }
  .cphoto { aspect-ratio: 1 / 1; }
}
