/* ==========================================================================
   Tony Cirami — editorial edition
   Paper, ink, and one colour borrowed from the brick wall in Fig. 1.
   ========================================================================== */

@font-face {
  font-family: 'Rock Salt';
  src: url('../fonts/RockSalt-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --paper: #F2ECE2;
  --paper-deep: #E8DFD1;
  --ink: #1C1A17;
  --ink-soft: #4A453D;
  --muted: #6B6356;
  --rule: #CFC4B2;
  --brick: #A9472A;
  --brick-light: #E2865E;
  --night: #191714;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --hand: 'Rock Salt', 'Comic Sans MS', cursive;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain — SVG noise, not a gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--brick); color: var(--paper); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brick); }

:focus-visible { outline: 2px dashed var(--brick); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 8px 14px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .8rem;
}
.skip-link:focus { top: 12px; color: var(--paper); }

main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }

.masthead nav { margin-left: auto; }
.masthead__nav { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.masthead__nav a { text-decoration: none; position: relative; }
.masthead__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.masthead__nav a:hover::after { transform: scaleX(1); }
.masthead__nav .is-quiet { color: var(--muted); }

/* --------------------------------------------------------------------------
   Cover
   -------------------------------------------------------------------------- */
.cover {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 6vw, 90px);
}

.cover__name {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  font-size: clamp(4.5rem, 15vw, 13.5rem);
  line-height: .82;
  letter-spacing: -.045em;
  position: relative; z-index: 2;
  pointer-events: none;
}
.cover__first { display: block; }
.cover__last {
  display: block;
  padding-left: 17%;
  font-style: italic;
  font-weight: 400;
}

.cover__lede {
  grid-column: 1 / span 6;
  grid-row: 2;
  margin-top: clamp(24px, 3vw, 40px);
  align-self: start;
}

.lede-serif {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.cover__intro {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  margin: 0 0 28px;
  max-width: 54ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.scribble { position: relative; white-space: nowrap; }
.scribble__loop {
  position: absolute;
  left: -12%; top: -26%;
  width: 124%; height: 150%;
  overflow: visible;
  pointer-events: none;
}
.scribble__loop path {
  fill: none;
  stroke: var(--brick);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s .9s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translate(3px, 3px); }

.cover__photo {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
  margin: clamp(110px, 10vw, 150px) 0 0;
  position: relative;
}

.print {
  background: #FBF8F2;
  padding: 12px 12px 14px;
  border: 1px solid var(--rule);
  transform: rotate(1.6deg);
  transition: transform .6s var(--ease);
}
.print:hover { transform: rotate(.4deg) translateY(-4px); }
.print img { filter: saturate(.85) contrast(1.03); }

.cover__photo figcaption,
.offclock__photo figcaption {
  margin-top: 18px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--brick);
}

.note {
  font-family: var(--hand);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--brick);
  margin: 0;
  position: absolute;
}
/* Arrow tip is pinned to the lamp (~31% across, ~6% down the print); note hangs off the arrow's tail */
.note--cover { left: calc(31% + 46px); top: calc(6% - 112px); transform: rotate(-4deg); white-space: nowrap; }

.note-arrow { position: absolute; width: 68px; overflow: visible; }
.note-arrow path { fill: none; stroke: var(--brick); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note-arrow--cover { left: calc(31% - 11px); top: calc(6% - 44px); }

/* --------------------------------------------------------------------------
   Figures — deliberately uneven
   -------------------------------------------------------------------------- */
.figures { padding-bottom: clamp(60px, 10vw, 140px); }

.figures__list {
  display: grid;
  grid-template-columns: 1.3fr 1fr .9fr 1.6fr;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.figure {
  padding: 18px 20px 0 0;
  border-right: 1px solid var(--rule);
  margin-right: 20px;
}
.figure:last-child { border-right: 0; margin-right: 0; }
.figure--b { padding-top: 54px; }
.figure--d { padding-top: 30px; }

.figure dt { color: var(--muted); margin-bottom: 8px; }
.figure dd {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.03em;
}
.figure--b dd { font-style: italic; }
.figure dd small {
  display: block;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brick);
  margin-top: 10px;
}
.figure dd.figure__eras {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  font-style: italic;
  font-weight: 350;
}
.figure__eras i { font-style: normal; color: var(--brick); }

/* --------------------------------------------------------------------------
   Section kickers
   -------------------------------------------------------------------------- */
.kicker {
  display: flex; align-items: baseline; gap: 18px;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.kicker__num { color: var(--brick); }
.kicker__title {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.kicker__title em { font-weight: 300; color: var(--muted); }

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  padding-bottom: clamp(70px, 10vw, 150px);
}
.profile .kicker { grid-column: 1 / -1; }

.profile__body {
  grid-column: 4 / span 6;
  columns: 2 300px;
  column-gap: 40px;
  color: var(--ink-soft);
}
.profile__body p { margin: 0 0 1em; text-wrap: pretty; }

.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-weight: 500;
  font-style: italic;
  font-size: 5.4em;
  line-height: .78;
  margin: .06em .1em 0 -.04em;
  color: var(--brick);
}

.pullquote {
  grid-column: 2 / span 7;
  margin: clamp(40px, 6vw, 80px) 0 0;
  position: relative;
}
.pullquote p { position: relative; }
.pullquote p::before {
  content: '“';
  position: absolute;
  right: 100%;
  top: .34em;
  margin-right: .04em;
  font-size: 3.1em;
  line-height: 0;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  color: var(--brick);
}
.pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.pullquote em { color: var(--brick); }
.pullquote__close {
  font-size: 3.1em;
  line-height: 0;
  vertical-align: -.42em;
  margin-left: .04em;
  color: var(--brick);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
}

.profile__stack {
  grid-column: 10 / span 3;
  grid-row: 2 / span 2;
  align-self: start;
  margin-top: 6px;
  transform: rotate(-1.2deg);
  border: 1px solid var(--ink);
  padding: 16px 18px 18px;
  background: var(--paper);
}
.profile__stack h3 { margin: 0 0 12px; font-weight: 500; }
.profile__stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.profile__stack li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.profile__stack li:not(:last-child)::after { content: ' ·'; color: var(--brick); font-style: normal; }

/* --------------------------------------------------------------------------
   Practice — an index, not a card grid
   -------------------------------------------------------------------------- */
.practice { padding-bottom: clamp(70px, 10vw, 150px); }

.practice__list { list-style: none; margin: 0; padding: 0; }

.practice__item {
  display: grid;
  grid-template-columns: 70px minmax(0, 5fr) minmax(0, 4fr);
  column-gap: 24px;
  align-items: baseline;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding-left .45s var(--ease);
}
.practice__item:nth-child(even) { grid-template-columns: 70px minmax(0, 4fr) minmax(0, 5fr); }
.practice__item:hover { padding-left: 14px; }

.practice__num { color: var(--brick); }

.practice__item h3 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 1;
  font-weight: 350;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  transition: font-style .2s;
}
.practice__item:hover h3 { font-style: italic; color: var(--brick); }

.practice__item p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* --------------------------------------------------------------------------
   Career — the one dark spread
   -------------------------------------------------------------------------- */
main > section.career {
  max-width: none;
  background: var(--night);
  color: var(--paper);
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(70px, 10vw, 140px);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  border-radius: 0 0 0 clamp(40px, 8vw, 120px);
  position: relative;
}
.kicker--light { border-top-color: var(--paper); }
.career__deck {
  max-width: 44ch;
  margin: calc(clamp(32px, 5vw, 72px) * -0.5) 0 clamp(32px, 5vw, 64px) auto;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: #CFC6B8;
  text-wrap: pretty;
}
.kicker--light .kicker__title em { color: #A69C8C; }
.career .kicker__num { color: var(--brick-light); }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: row; }

.timeline__row {
  display: grid;
  grid-template-columns: minmax(150px, 2.2fr) minmax(0, 3fr) minmax(0, 4fr);
  column-gap: clamp(20px, 3vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid #3A352E;
  position: relative;
}
.timeline__row:first-child { border-top: 1px solid #3A352E; }

.timeline__years {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: .9;
  letter-spacing: -.03em;
  display: flex; flex-direction: column;
}
.timeline__years span + span {
  font-style: italic;
  color: #8D8476;
  padding-left: .7em;
  font-size: .62em;
  margin-top: 4px;
}
.timeline__years .timeline__now { color: var(--brick-light); }

.timeline__role h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-weight: 450;
  font-size: 1.35rem;
  line-height: 1.2;
}
.timeline__role p { margin: 0; color: #A69C8C; }
.timeline__aside {
  display: block;
  margin-top: 6px;
  text-transform: none;
  font-style: italic;
  color: var(--brick-light);
  letter-spacing: 0;
}

.timeline__desc { margin: 0; color: #CFC6B8; max-width: 52ch; }

.timeline__row:nth-child(3) .timeline__years { padding-left: 6%; }
.timeline__row:nth-child(5) .timeline__years { padding-left: 3%; }

.note--career {
  position: static;
  grid-column: 3;
  margin-top: 14px;
  color: var(--brick-light);
  transform: rotate(-3deg);
  transform-origin: left;
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */
.credentials {
  padding-top: clamp(70px, 10vw, 140px);
  padding-bottom: clamp(50px, 8vw, 110px);
}
.credentials__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.5fr;
  gap: 0 32px;
}
.credentials__list li { padding-top: 14px; border-top: 1px solid var(--rule); }
.credentials__list li:nth-child(2) { margin-top: 40px; }
.credentials__list li:nth-child(3) { margin-top: 16px; }
.credentials__list span { color: var(--brick); }
.credentials__list h3 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-weight: 450;
  font-size: 1.3rem;
  line-height: 1.22;
}
.credentials__list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Off the clock
   -------------------------------------------------------------------------- */
.offclock {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  align-items: end;
  padding-bottom: clamp(80px, 12vw, 170px);
}
.offclock__photo {
  grid-column: 2 / span 4;
  margin: 0;
  position: relative;
}
.offclock__photo .print { transform: rotate(-2.4deg); }
.offclock__photo .print:hover { transform: rotate(-1deg) translateY(-4px); }

.print--taped { position: relative; }
.print--taped::before,
.print--taped::after {
  content: '';
  position: absolute;
  width: 92px; height: 26px;
  background: rgba(226, 214, 186, .72);
  mix-blend-mode: multiply;
}
.print--taped::before { top: -11px; left: 18px; transform: rotate(-8deg); }
.print--taped::after { top: -9px; right: 14px; transform: rotate(6deg); }

.note--family { right: -40%; bottom: 22%; transform: rotate(-7deg); font-size: 1.05rem; }

.offclock__text {
  grid-column: 8 / span 4;
  padding-bottom: 40px;
}
.offclock__title {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 1;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
}
.offclock__text p:last-child { color: var(--ink-soft); max-width: 36ch; margin: 0; }

/* --------------------------------------------------------------------------
   Contact — a letter
   -------------------------------------------------------------------------- */
.contact {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(70px, 10vw, 130px);
}
.contact__title {
  margin: 0 0 clamp(30px, 5vw, 64px);
  padding-top: clamp(30px, 4vw, 56px);
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  font-weight: 300;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: .85;
  letter-spacing: -.045em;
}
.contact__title em { color: var(--brick); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 40px clamp(30px, 6vw, 100px);
}

.contact__direct p { margin: 0 0 10px; }
.contact__direct .mono { color: var(--muted); margin-bottom: 16px; }
.contact__email {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
}

.letter {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  font-weight: 350;
}
.letter__line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin: 0 0 18px;
}
.letter__line label { white-space: nowrap; }
.letter input,
.letter textarea {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-style: italic;
  color: var(--brick);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 2px 2px 4px;
  transition: border-color .2s;
}
.letter textarea {
  flex-basis: 100%;
  resize: vertical;
  line-height: 1.5;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.5em - 1px), var(--rule) calc(1.5em - 1px), var(--rule) 1.5em);
  background-attachment: local;
  background-position: 0 2px;
  border-bottom-color: var(--ink);
}
.letter input::placeholder,
.letter textarea::placeholder { color: #857A6B; }
.letter input:focus,
.letter textarea:focus { border-bottom: 2px solid var(--ink); }
.letter [aria-invalid="true"] { border-bottom: 2px dashed var(--brick); }

.letter--fallback { margin: 0; }

.letter__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.letter__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 30px; }

.btn-send {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 999px 999px 999px 4px;
  padding: 16px 28px;
  cursor: pointer;
  transition: background .25s, transform .35s var(--ease);
}
.btn-send:hover { background: var(--brick); transform: rotate(-2deg); }
.btn-send span { display: inline-block; transition: transform .3s var(--ease); }
.btn-send:hover span { transform: translateX(4px); }
.btn-send:disabled { opacity: .6; cursor: progress; }

.form-status { margin: 0; text-transform: none; font-size: .85rem; }
.form-status--success { color: #3E6B3A; }
.form-status--error { color: var(--brick); }

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */
.colophon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 36px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px;
  color: var(--muted);
}
.colophon::before { content: ''; flex-basis: 100%; border-top: 1px solid var(--rule); margin-bottom: 12px; }
.colophon p { margin: 0; text-transform: none; }
.colophon__sig { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark__box {
  background: var(--brick);
  color: var(--paper);
  padding: .3em .2em .3em .5em;   /* extra left pad balances the trailing letter-space */
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .profile__body { grid-column: 1 / span 8; }
  .profile__stack { grid-column: 9 / span 4; }
  .pullquote { grid-column: 1 / span 9; padding-left: 40px; }
  .note--family { right: -55%; }
}

@media (max-width: 760px) {
  .masthead { flex-wrap: wrap; gap: 6px 16px; padding-block: 10px; }
  .masthead nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .masthead__nav { gap: 18px; padding-bottom: 4px; }

  .cover, .profile, .offclock { grid-template-columns: 1fr; }
  .cover__name, .cover__lede, .cover__photo,
  .profile__body, .pullquote, .profile__stack,
  .offclock__photo, .offclock__text { grid-column: 1; grid-row: auto; }

  .cover__last { padding-left: 12%; }
  .cover__photo { margin: 56px 6% 0 10%; }
  .note--cover { left: auto; right: 0; top: -50px; font-size: .8rem; }
  .note-arrow--cover { display: none; }

  .figures__list { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .figure { border-right: 0; margin-right: 0; padding-top: 18px !important; }
  .figure--d { grid-column: 1 / -1; }

  .profile__body { columns: 1; }
  .pullquote { padding-left: 34px; }
  .profile__stack { margin-top: 40px; }

  .practice__item,
  .practice__item:nth-child(even) { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .practice__item p { grid-column: 2; }

  .timeline__row { grid-template-columns: 1fr; row-gap: 12px; }
  .timeline__row:nth-child(n) .timeline__years { padding-left: 0; flex-direction: row; align-items: baseline; gap: 10px; }
  .timeline__years span + span { padding-left: 0; }
  .note--career { grid-column: 1; }
  .career__deck { margin-left: 0; }

  .credentials__list { grid-template-columns: 1fr; row-gap: 26px; }
  .credentials__list li:nth-child(n) { margin-top: 0; }

  .offclock__photo { margin: 0 14% 0 4%; }
  .note--family { right: -18%; bottom: -36px; }
  .offclock__text { padding: 70px 0 0; }

  .contact__grid { grid-template-columns: 1fr; }
}
.nowrap { white-space: nowrap; }
