/* ---------- ABOUT ----------
   The front page: who this is before any of the pictures. A card that says it
   in one look, the paragraph, then the working life the way a CV is read —
   every block of it in the kit's glass, on the same ground as everything
   else. js/views/about.js wakes it up; the build writes it. */
#view-about {
  padding-inline: var(--gutter);
}
.about__wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) 0 calc(env(safe-area-inset-bottom, 0px) + 40px);
  display: grid;
  gap: clamp(64px, 9vw, 112px);
}

/* A block of the page in the kit's glass. The light follows the hand over it,
   the way it would move through a lens. */
.panel {
  position: relative;
  border-radius: var(--r-panel);
  background: var(--kit-shine), var(--glass-chrome);
  box-shadow: var(--kit-rims), var(--kit-drop);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  isolation: isolate;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), var(--glass-spec), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-spring);
}
@media (hover: hover) and (pointer: fine) {
  .panel:hover::after { opacity: 0.7; }
}
/* After dark the glass gets a grain of its own. Frosted and saturated, a
   ground that close to black shows its few shades as steps — facets across
   the card — and the page's grain, being under the glass, is blurred away
   with everything else. A fine noise on top breaks the steps up. */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
:root[data-theme="dark"] .panel::before { opacity: 0.035; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .panel::before { opacity: 0.035; }
}
@media (hover: none), (max-width: 760px) {
  .panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--kit-shine), var(--chrome-solid);
  }
}

/* ---- the card ---------------------------------------------------------------
   Who he is in a few words and how to reach him, and his photo beside it. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  padding-top: 72px;
}
/* The name in the site's own letter: Outfit at its own weight, plain ink, the
   size the card has always had. Room is left under it for the g. */
.hero__h1 {
  margin: 0;
  padding-bottom: 0.06em;
  font-size: var(--hero-size);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-wrap: initial;
  transition: opacity 0.25s var(--ease-out);
}
/* The same em proportions as the opening's, so the name that flies in lands
   on itself. */
.hero__hi {
  display: block;
  margin-bottom: 0.22em;
  font-size: 0.36em;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--text-muted);
}
.hero__name, .hero__name > span { display: block; }
.hero__name { width: max-content; max-width: 100%; }   /* the words' width: what the opening flies to */
.hero__roles {
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--text-muted);
}
.hero__roles > span { display: block; }
.hero__roles b { font-weight: 500; color: var(--text-strong); }
.hero__roles a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.hero__roles a:hover { color: var(--text-strong); text-decoration-color: currentColor; }
.hero__roles a:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 3px var(--focus-ring); }
/* Where he is and what time it is there, in the card's top right corner: in
   the kit's glass, said rather than pressed. The card keeps room above its
   contents for it, so it never sits on the photo. */
.hero__where {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 0 13px;
}
.hero__where svg { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
.hero__clock { font-size: var(--fs-small); font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hero__clock:empty { display: none; }
/* How to reach him: each place he can be found as its own mark in the
   kit's round glass. */
.hero__reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.hero__link { text-decoration: none; }
.hero__link svg { width: 18px; height: 18px; }

/* The photo: no frame, the picture to its own edge with a hairline and a
   shadow, the way the pictures sit everywhere else on the site. */
.hero__look {
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
}
/* The portrait sits in a thin mat of the kit's own glass: a frame, but made
   of the same stuff as every other piece of chrome, so it reads as the card
   holding the picture rather than as a border drawn round it. */
.hero__photo {
  --mat: 7px;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: var(--mat);
  border-radius: 28px;
  background: var(--kit-shine), var(--glass-float);
  box-shadow: var(--kit-rims), 0 2px 6px var(--hairline-soft), 0 34px 64px -30px var(--glass-shadow);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: var(--mat);
  border-radius: calc(28px - var(--mat));
  box-shadow: inset 0 0 0 1px var(--img-line);
  pointer-events: none;
}
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(28px - var(--mat)); }

/* ---- a section ------------------------------------------------------------ */
.about__sec { scroll-margin-top: 90px; }
.about__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.5vw, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.about__head h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.about__meta {
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.about__card { padding: clamp(24px, 3.5vw, 40px); }
.about__card p {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-wrap: pretty;
}
.about__card p + p { margin-top: 0.8em; }

/* ---- the working life, a row each -------------------------------------------- */
.rows {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.row { position: relative; border-radius: 20px; transition: background-color 0.3s var(--ease-out); }
.row + .row::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--hairline);
}
.row:hover { background-color: var(--glass-strong); }
.row:hover + .row::before, .row:has(+ .row:hover)::before { opacity: 0; }
.row__head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  /* Every row keeps the arrow's room on the right, arrow or not, so the
     dates stand in one column down the list. */
  padding: 16px 44px 16px 16px;
  border: 0;
  border-radius: 20px;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
}
.row.is-expandable .row__head { cursor: pointer; }
.row__head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring); }
.tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: var(--r-tile);
  box-shadow: 0 6px 14px -8px var(--glass-shadow);
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The edge is drawn over the mark, not under it. A white tile behind the
   picture showed through its rounded corners as a pale fringe round every
   dark logo; a ring on top holds a white logo's edge on a white page and
   all but vanishes on a dark one. */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--tile-edge);
  pointer-events: none;
}
/* No mark for this one yet: its initials, in the glass. */
.tile--letters {
  background: var(--kit-shine), var(--glass-strong);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.tile--sm { width: 32px; height: 32px; border-radius: 10px; }
.tile--sm.tile--letters { font-size: var(--fs-small); }
.row__what { display: grid; gap: 2px; min-width: 0; }
.row__org { font-size: var(--fs-body); line-height: 22px; font-weight: 500; color: var(--text-strong); }
.row__role { font-size: var(--fs-ui); line-height: 20px; color: var(--text-body); }   /* as a role in a group reads */
.row__when {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Still going: said in the same tone as every other date. */
.now { color: inherit; font-weight: inherit; }
.row__chev {
  position: absolute;
  right: 16px;
  top: 34px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-spring);
}
.row.is-open .row__chev { transform: rotate(180deg); }
/* A place with more than one role: the roles under its name, newest first,
   each with its own years. No line down the side: the indent says they
   belong to it. */
.row__roles {
  position: relative;
  list-style: none;
  margin: -6px 0 0;
  padding: 0 44px 14px 84px;
  display: grid;
  gap: 8px;
}
.row__roles > li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.row__step { font-size: var(--fs-ui); line-height: 20px; color: var(--text-body); }
.row__step-when {
  flex: none;
  font-size: var(--fs-small);
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row.is-group .row__body { padding-top: 4px; }

/* What it was, opening under the row. */
.row__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-spring);
}
.row.is-open .row__more { grid-template-rows: 1fr; }
.row__body {
  min-height: 0;
  overflow: hidden;
  padding: 0 16px 0 84px;
}
.row.is-open .row__body { padding-bottom: 18px; }
.row__body p {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-ui);
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}
/* "View project" and its kind: words in the page's ink with an arrow that
   moves when you reach for it. */
.row__go, .award__go, .work__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
}
.row__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.row__go svg, .award__go svg, .work__go svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-spring); }
.row__go:hover svg, .award__go:hover svg, .work__go:hover svg { transform: translateX(2px); }
.row__go:focus-visible, .award__go:focus-visible, .work__go:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); border-radius: 6px; }

/* ---- awards ----------------------------------------------------------------- */
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.award {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  padding: 22px;
  transition: transform 0.45s var(--ease-spring);
}
.award:hover { transform: translateY(-4px); }
.award__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.award__year { font-size: var(--fs-small); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.award h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.award p { margin: 0; font-size: var(--fs-ui); line-height: 1.4; color: var(--text-muted); }
.award__go { margin-top: auto; }

/* ---- the work, each with a picture of its own ---------------------------------- */
.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.work {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  padding: 12px;
  transition: transform 0.5s var(--ease-spring);
}
.work--wide { grid-column: span 7; }
.work:hover { transform: translateY(-4px); }
.work__shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r-panel) - 12px);
  background: var(--surface-mat);
  box-shadow: inset 0 0 0 1px var(--img-line);
}
.work__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-spring);
}
.work:hover .work__shot img { transform: scale(1.03); }
.work__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 10px 8px;
}
.work__top { display: flex; align-items: center; gap: 12px; }
.work__top h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.work__years { font-size: var(--fs-small); color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.work__role { margin: 0; font-size: var(--fs-ui); font-weight: 500; color: var(--text-body); }
.work__say {
  margin: 0;
  font-size: var(--fs-ui);
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.work__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 8px; }

/* ---- where else to find him ----------------------------------------------------- */
.links {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out), transform 0.35s var(--ease-spring);
}
.link:hover { background-color: var(--glass-strong); transform: translateX(3px); }
.link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring); }
.link__name { display: inline-flex; align-items: center; gap: 12px; }
.link__name svg { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.link:hover .link__name svg { color: var(--text-strong); }
.link__handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link__handle svg { width: 13px; height: 13px; flex: none; }

.about__foot {
  margin-top: -40px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---- the hint that there is more ------------------------------------------------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  translate: -50% 0;
  z-index: 1900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 18px;
  border: 0;
  font-family: var(--font);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: opacity 0.35s var(--ease-out), translate 0.45s var(--ease-spring), color 0.25s;
}
.scroll-hint[hidden] { display: none; }
.scroll-hint:hover { color: var(--text-strong); }
.scroll-hint svg { width: 14px; height: 21px; color: var(--text-strong); }
.scroll-hint__wheel { animation: wheel 2.1s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(6px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
body.is-scrolled .scroll-hint,
body.is-nudged .scroll-hint,               /* the way into the storyline has the floor */
.is-opening .scroll-hint { opacity: 0; translate: -50% 40px; pointer-events: none; }
/* On a phone the card already runs past the bottom of the screen: the page
   says there is more by itself, and the hint would only sit on the picture. */
@media (max-width: 760px) {
  .scroll-hint { display: none; }
}

/* ---- arriving as you reach it ---------------------------------------------------- */
.js #view-about .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}
.js #view-about .reveal.is-in { opacity: 1; transform: none; }
/* No frosting on glass while it is still rising (about.js settles it): the
   backdrop of a moving panel is worked out where it was, not where it is. */
.js #view-about .reveal:not(.is-settled) .panel,
.js #view-about .reveal:not(.is-settled).panel {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.js #view-about .reveal [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring),
              background-color 0.3s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 120ms), calc(var(--i, 0) * 70ms + 120ms), 0s;
}
.js #view-about .reveal.is-in [data-stagger] > * { opacity: 1; transform: none; }
/* Once a card has arrived it moves for the hand at once, not after its turn. */
.js #view-about .reveal.is-in .award,
.js #view-about .reveal.is-in .work { transition-delay: 0s; }

/* ---- narrower ------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__look { width: min(100%, 340px); }
}
@media (max-width: 760px) {
  .works .work, .works .work--wide { grid-column: span 12; }
  .links { grid-template-columns: 1fr; }
  .about__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 520px) {
  .about__wrap { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
  /* The years go right under the name, beside the mark — not on a row of
     their own under it, which left them a mark's height away from the
     place they belong to — and in line with the roles below. */
  .row__head { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 13px 40px 13px 14px; }
  .row__head .tile { grid-row: 1 / span 2; align-self: center; }
  .row__what { grid-row: 1; align-self: end; }
  .row__when { grid-column: 2; grid-row: 2; align-self: start; text-align: left; white-space: normal; }
  .tile { width: 44px; height: 44px; border-radius: 12px; }
  .row__chev { top: 24px; right: 14px; }
  .row__body { padding-left: 14px; }
  .row__roles { padding: 0 14px 14px 72px; }
  .row__roles > li { flex-direction: column; gap: 0; }

  .award { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__wheel { animation: none; }

  .js #view-about .reveal, .js #view-about .reveal [data-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* The About paragraph comes in two lengths: the long one on a wide screen, the
   short one on a phone. */
.about__short { display: none; }
.about__card .about__short { margin-top: 0; }   /* it follows the hidden long one, but it is the only paragraph showing */
@media (max-width: 600px) {
  .about__long { display: none; }
  .about__short { display: block; }
}
