/* ==========================================================================
   anindyamishra.com
   Direction: the audit trail as layout. Every claim beside its record.
   Type:  Archivo Variable (display, interface, the record)
          Source Serif 4 Variable (prose, answers)
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif';
  src: url('../fonts/sourceserif-var.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url('../fonts/sourceserif-var-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* --- tokens --------------------------------------------------------------- */

:root {
  --paper: #e9e8e3;
  --paper-2: #dcdbd5;
  --paper-3: #cfcec7;
  --ink: #000000;
  --ink-soft: #3a3c3e;
  --field: #16191d;
  --field-2: #1f242a;
  --field-3: #2b3139;
  --on-field: #e9e8e3;
  --on-field-soft: #a9aeb4;
  --seal: #a4261c;
  --seal-on-field: #e0695c;

  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif', Georgia, 'Times New Roman', serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
  --maxw: 82.5rem; /* 1320px */

  --band: clamp(5.5rem, 11vw, 11rem); /* space between sections */

  --t-display: clamp(3.25rem, 10.2vw, 9rem);
  --t-head: clamp(2rem, 4.6vw, 3.6rem);
  --t-sub: clamp(1.4rem, 2.5vw, 2.1rem);
  --t-state: clamp(1.25rem, 2vw, 1.9rem);
  --t-body: clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
  --t-meta: 0.9375rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: `hidden` would make body a scroll container and break
     every position:sticky inside it. */
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 650;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1.15em;
}
p:last-child {
  margin-bottom: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 3px;
  border-radius: 1px;
}
.field :focus-visible,
footer :focus-visible {
  outline-color: var(--seal-on-field);
}
::selection {
  background: var(--seal);
  color: var(--paper);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--seal);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 1rem;
}

/* --- frame ---------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.field {
  background: var(--field);
  color: var(--on-field);
}
.paper-2 {
  background: var(--paper-2);
}
section {
  padding-block: var(--band);
}
.sec-head {
  font-size: var(--t-head);
  letter-spacing: -0.028em;
  line-height: 1;
  font-stretch: 108%;
  margin-bottom: 0.5em;
}
.sec-intro {
  font-size: var(--t-state);
  line-height: 1.38;
  max-width: 42ch;
  font-weight: 380;
}
.lede {
  max-width: var(--measure);
}

/* Heading and its statement sit side by side, so the top band of a section
   uses the whole width instead of leaving the right half empty. */
.sec-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-top .sec-head {
  margin-bottom: 0;
}
@media (max-width: 60rem) {
  .sec-top {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* --- navigation ----------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--field);
  color: var(--on-field);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  font-family: var(--sans);
  font-size: var(--t-meta);
}
.nav__name {
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.9rem);
  align-items: center;
  flex-wrap: wrap;
}
.nav__links a {
  text-decoration: none;
  color: var(--on-field-soft);
  transition: color 0.18s var(--ease);
}
.nav__links a:hover {
  color: var(--on-field);
}
.nav__cta {
  color: var(--on-field) !important;
  border-bottom: 2px solid var(--seal-on-field);
  padding-bottom: 2px;
}
@media (max-width: 52rem) {
  .nav__links .nav-hide {
    display: none;
  }
}
/* Shed links rather than let the bar wrap to two rows. */
@media (max-width: 34rem) {
  .nav__links .nav-hide-sm {
    display: none;
  }
  .nav__inner {
    padding-block: 0.9rem;
  }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  background: var(--field);
  color: var(--on-field);
  padding-block: clamp(3rem, 7vw, 6rem) 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}
.hero__name {
  font-size: var(--t-display);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.038em;
  line-height: 0.86;
  margin-bottom: 0.3em;
}
.hero__name span {
  display: block;
}
.hero__line {
  font-family: var(--serif);
  font-size: var(--t-sub);
  line-height: 1.34;
  font-weight: 380;
  max-width: 38ch;
  margin-bottom: 1.75rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.35rem 2rem;
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  font-family: var(--sans);
}
.hero__fact b {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.hero__fact span {
  font-size: var(--t-meta);
  color: var(--on-field-soft);
  line-height: 1.4;
  display: block;
  max-width: 18ch;
}
.hero__portrait {
  position: relative;
  align-self: stretch;
  min-height: clamp(18rem, 38vw, 31rem);
}
.hero__portrait img {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  filter: contrast(1.04);
}
.hero__caption {
  position: absolute;
  left: 0;
  bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--on-field);
  background: rgba(10, 12, 14, 0.72);
  padding: 0.35rem 0.6rem;
}

@media (max-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__portrait {
    min-height: 0;
    order: -1;
    aspect-ratio: 4 / 3;
  }
  .hero__portrait img {
    position: static;
    height: 100%;
    object-position: 50% 18%;
  }
  .hero__facts {
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.btn--primary {
  background: var(--seal);
  color: var(--paper);
}
.btn--primary:hover {
  background: #8d1f16;
}
.btn--ghost {
  background: transparent;
  color: var(--on-field);
  box-shadow: inset 0 0 0 2px var(--field-3);
}
.btn--ghost:hover {
  background: var(--field-2);
}
.btn:active {
  transform: translateY(1px);
}

/* --- current roles -------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
/* The short column travels with the long one, so neither half of the screen
   is ever left empty while you read. */
.split__aside {
  position: sticky;
  top: 6rem;
}
@media (max-width: 60rem) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .split__aside {
    position: static;
  }
}

.roles {
  display: grid;
  gap: 0;
}
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.15rem 0;
  background: transparent;
  transition: background-color 0.18s var(--ease), padding-inline 0.18s var(--ease);
}
.role + .role {
  box-shadow: inset 0 1px 0 var(--paper-3);
}
.role:hover {
  background: var(--paper-2);
  padding-inline: 0.75rem;
}
.field .role:hover {
  background: var(--field-2);
}
.role__org {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.role__org a {
  text-decoration: none;
  background-image: linear-gradient(var(--seal), var(--seal));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s var(--ease);
}
.role__org a:hover {
  background-size: 100% 2px;
}
.role__what {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.5;
  grid-column: 1 / -1;
  max-width: 56ch;
  margin-top: 0.15rem;
}
.role__since {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- the placed rest: the light ------------------------------------------- */

.rest {
  margin: 0;
  position: relative;
}
.rest img {
  width: 100%;
  height: clamp(10rem, 26vw, 20rem);
  object-fit: cover;
  object-position: 50% 30%;
}
.rest figcaption {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding: 0.6rem var(--gutter) 0;
  max-width: var(--maxw);
  margin-inline: auto;
}

/* --- the journey ---------------------------------------------------------- */

.journey {
  display: grid;
  gap: 0;
}
.chapter {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 17rem);
  gap: 0 clamp(1.25rem, 3.2vw, 3rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
/* Each chapter's claim, beside the record that proves it. */
.chapter__proof {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding-top: 0.5rem;
}
.chapter__proof li {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.42;
  color: var(--ink-soft);
}
.chapter__proof b {
  display: block;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.008em;
}
.chapter__proof a {
  color: var(--seal);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(164, 38, 28, 0.3);
}
.chapter__proof a:hover {
  box-shadow: inset 0 -1px 0 var(--seal);
}
@media (max-width: 68rem) {
  .chapter {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
  .chapter__proof {
    grid-column: 2;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 0;
  }
}
.chapter + .chapter {
  box-shadow: inset 0 1px 0 var(--paper-3);
}
.chapter__years {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.5;
  padding-top: 0.45rem;
  color: var(--ink-soft);
}
.chapter__body {
  max-width: var(--measure);
}
.chapter__body h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  font-stretch: 106%;
}
@media (max-width: 44rem) {
  .chapter {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .chapter__years {
    padding-top: 0;
  }
  .chapter__proof {
    grid-column: 1;
    grid-auto-flow: row;
    gap: 0.8rem;
  }
}

/* --- ventures ------------------------------------------------------------- */

.ventures {
  display: grid;
  gap: 0;
}
.venture {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  align-items: start;
}
.venture__facts {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.45rem;
}
.venture__facts li {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--on-field-soft);
}
.venture__facts li:first-child {
  color: var(--on-field);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.venture + .venture {
  box-shadow: inset 0 1px 0 var(--field-3);
}
.venture__name {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  font-stretch: 114%;
  letter-spacing: -0.032em;
  line-height: 0.95;
}
.venture__name a {
  text-decoration: none;
  background-image: linear-gradient(var(--seal-on-field), var(--seal-on-field));
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.venture__name a:hover {
  background-size: 100% 3px;
}
.venture__role {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--on-field-soft);
  margin-top: 0.65rem;
  font-variant-numeric: tabular-nums;
}
.venture__body p {
  color: #d2d6da;
}
.venture__lines {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.venture__lines li {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: #d2d6da;
  padding-left: 1.1rem;
  position: relative;
}
.venture__lines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--seal-on-field);
}
.venture__lines b {
  color: var(--on-field);
  font-weight: 620;
}
@media (max-width: 60rem) {
  .venture {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* --- research ------------------------------------------------------------- */

.papers {
  display: grid;
  gap: 0;
}
.paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 2rem;
  align-items: baseline;
  padding-block: 1.4rem;
  transition: background-color 0.18s var(--ease), padding-inline 0.18s var(--ease);
}
.paper + .paper {
  box-shadow: inset 0 1px 0 var(--paper-3);
}
.paper:hover {
  background: var(--paper-2);
  padding-inline: 0.75rem;
}
.paper__title {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
}
.paper__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--seal), var(--seal));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s var(--ease);
}
.paper__title a:hover {
  background-size: 100% 2px;
}
.paper__where {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-soft);
  line-height: 1.5;
}
.paper__id {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--seal);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- the record (the interactive index) ----------------------------------- */

.record__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 520;
  letter-spacing: -0.008em;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  box-shadow: inset 0 0 0 2px var(--paper-3);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}
.filter:hover {
  background: var(--paper-3);
  color: var(--ink);
}
.filter[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.filter__n {
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
  margin-left: 0.35rem;
}
.record__count {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.record {
  display: grid;
  gap: 0;
}
.entry {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 16rem) 6.5rem;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
  box-shadow: inset 0 1px 0 var(--paper-3);
  transition: background-color 0.16s var(--ease), opacity 0.2s var(--ease),
    padding-inline 0.16s var(--ease);
}
.entry:hover {
  background: var(--paper);
  padding-inline: 0.75rem;
}
.entry[hidden] {
  display: none;
}
.entry__year {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.entry__what {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 540;
  letter-spacing: -0.012em;
  line-height: 1.35;
}
.entry__who {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.entry__proof {
  font-family: var(--sans);
  font-size: var(--t-meta);
  text-align: right;
  white-space: nowrap;
}
.entry__proof a {
  color: var(--seal);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(164, 38, 28, 0.25);
  transition: box-shadow 0.2s var(--ease);
}
.entry__proof a:hover {
  box-shadow: inset 0 -2px 0 var(--seal);
}
.entry__proof span {
  color: var(--ink-soft);
  opacity: 0.65;
}
@media (max-width: 62rem) {
  .entry {
    grid-template-columns: 4rem minmax(0, 1fr);
  }
  .entry__who {
    grid-column: 2;
  }
  .entry__proof {
    grid-column: 2;
    text-align: left;
  }
}

.record__empty {
  font-family: var(--sans);
  font-size: 1.0625rem;
  padding: 2.5rem 0;
  color: var(--ink-soft);
}

/* --- answers -------------------------------------------------------------- */

.answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 5vw, 5rem);
}
.answer h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}
.answer p {
  max-width: 48ch;
  color: var(--ink-soft);
}

/* --- contact and footer --------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 60rem) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
.contact__head {
  font-size: var(--t-head);
  letter-spacing: -0.028em;
  line-height: 1;
  font-stretch: 108%;
  margin-bottom: 0.6em;
}
.contact__mail {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0 -2px 0 var(--field-3);
  transition: box-shadow 0.22s var(--ease);
  word-break: break-word;
}
.contact__mail:hover {
  box-shadow: inset 0 -2px 0 var(--seal-on-field);
}
.contact__portrait {
  margin-top: clamp(2rem, 4vw, 3rem);
  width: clamp(12rem, 24vw, 20rem);
  filter: contrast(1.04);
}
.elsewhere {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0;
}
.elsewhere a {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 540;
  letter-spacing: -0.012em;
  text-decoration: none;
  padding: 0.95rem 0;
  box-shadow: inset 0 1px 0 var(--field-3);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
  display: block;
}
.elsewhere a span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--on-field-soft);
  margin-top: 0.2rem;
}
.elsewhere a:hover {
  color: var(--seal-on-field);
  padding-left: 0.5rem;
}

.colophon {
  background: var(--field);
  color: var(--on-field);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.colophon__name {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 15.5vw, 15rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.04em;
  line-height: 0.84;
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--field-3);
  user-select: none;
}
.colophon__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--on-field-soft);
}
.colophon__meta a {
  color: var(--on-field-soft);
}

/* --- motion ---------------------------------------------------------------
   One orchestrated sequence on load; everything else answers a person's
   action. The portrait drifts on scroll. No scattered section fade-ups.
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes widen {
  from {
    opacity: 0;
    transform: translateY(2rem);
    font-stretch: 80%;
  }
  to {
    opacity: 1;
    transform: none;
    font-stretch: 118%;
  }
}
@keyframes unveil {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

html.js .hero__name span {
  animation: widen 1.05s var(--ease) both;
}
html.js .hero__name span:nth-child(2) {
  animation-delay: 0.1s;
}
html.js .hero__line {
  animation: rise 0.8s var(--ease) 0.34s both;
}
html.js .hero__actions {
  animation: rise 0.8s var(--ease) 0.44s both;
}
html.js .hero__fact {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(0.54s + var(--i, 0) * 0.08s);
}
html.js .hero__portrait img {
  animation: unveil 1.15s var(--ease) 0.12s both;
}
html.js .rest img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}
html.js .rest.seen img {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js .rest img,
  html.js .hero__portrait img {
    clip-path: none;
  }
}

/* --- print ---------------------------------------------------------------- */

@media print {
  .nav,
  .filters,
  .hero__actions,
  .colophon__name {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .field,
  .hero,
  .colophon {
    background: #fff !important;
    color: #000 !important;
  }
  .entry[hidden] {
    display: grid !important;
  }
}
