@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --wall: #eee8dc;
  --surface: #f8f3e9;
  --ink: #282821;
  --soft: #625a4e;
  --line: #c8bca9;
  --accent: #9c3c23;
  --button-ink: #fff6e6;
  --light: #fff9ec;
  --shadow: #392c2440;
  --transport: #eee9df;
  --display: Georgia, 'Times New Roman', serif;
  --sans: Vazirmatn, Arial, sans-serif;
  --mono: 'Courier New', monospace;
  --gutter: clamp(1.1rem, 4.5vw, 4.5rem);
  font: 1rem/1.7 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

:root[data-room="darkroom"] {
  color-scheme: dark;
  --paper: #1e1116;
  --wall: #26161e;
  --surface: #2b191e;
  --ink: #ffebd7;
  --soft: #e2b9aa;
  --line: #71493e;
  --accent: #ff9468;
  --button-ink: #29131a;
  --light: #532622;
  --shadow: #0c060cc0;
  --transport: #190e15;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure { margin: 0; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.24; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.72rem, 4.5vw, 3.05rem); text-wrap: balance; }
h3 { font-size: clamp(1.1rem, 2vw, 1.38rem); }
:lang(en) :is(h1, h2) { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
html { scroll-padding-block-start: var(--rail-height, 3rem); }
:target { scroll-margin-block-start: .85rem; }

.folio-shell {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.folio-skip {
  position: fixed;
  z-index: 5;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  padding: .55rem .9rem;
  background: var(--surface);
  translate: 0 -200%;
}

.folio-skip:focus { translate: 0; }

.folio-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reading-header {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 5.2rem;
}

.reading-header::after {
  content: "";
  position: absolute;
  inset: auto var(--gutter) 0;
  height: 5px;
  border-inline: 1px solid var(--accent);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.reading-header a, .folio-actions a, .folio-switchboard a, .folio-footer a { text-decoration: none; }

.folio-brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: start;
  gap: .55rem;
  min-height: 44px;
  font-size: clamp(.92rem, 1.7vw, 1.2rem);
  font-weight: 760;
  min-width: 0;
  overflow-wrap: anywhere;
}

.folio-brand img { flex: none; }
.folio-nav, .folio-tools { display: flex; align-items: center; }
.folio-nav { gap: clamp(.75rem, 2.6vw, 2.4rem); }
.folio-nav a { display: inline-grid; place-items: center; min-height: 44px; font-size: .9rem; font-weight: 640; white-space: nowrap; }
.folio-nav a[aria-current] { color: var(--accent); }
.folio-tools { justify-self: end; gap: .55rem; }

.folio-language, .folio-lamp {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: .38rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: .79rem;
  font-weight: 730;
}

.folio-lamp { cursor: pointer; border-radius: 50%; }
.folio-lamp[aria-pressed="true"] { border-color: var(--accent); }
.folio-lamp span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 22%, var(--accent) 26% 45%, transparent 49%);
  box-shadow: inset 0 0 0 2px var(--surface);
}

[data-room='darkroom'] .folio-lamp span { box-shadow: 0 0 10px #ff663d62, inset 0 0 0 2px var(--surface); }
.folio-language:hover, .folio-lamp:hover { border-color: var(--accent); }
.folio-nav a:hover, .folio-brand:hover, .folio-footer a:hover { color: var(--accent); }

.folio-wall {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 55% 18%, var(--light), transparent 72%),
    linear-gradient(108deg, var(--wall), var(--paper) 70%, var(--wall));
  box-shadow: inset 0 -14px 25px -24px var(--shadow);
}

.folio-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/art/grain.png');
  opacity: .42;
  pointer-events: none;
}

[data-room='darkroom'] .folio-wall::before { opacity: .7; mix-blend-mode: screen; }

.folio-hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  column-gap: clamp(2rem, 6.5vw, 7rem);
  min-height: clamp(31rem, 45vw, 42rem);
  padding-block: clamp(3.3rem, 5vw, 6rem);
}

.folio-intro { min-width: 0; }
.folio-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 730;
}

.folio-kicker::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 7px;
  border-inline-start: 1px solid currentColor;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 5px) center / 21px 3px no-repeat;
}

.folio-hero h1 {
  margin-block-start: .8rem;
  font-size: clamp(2.45rem, 5.5vw, 5.55rem);
  letter-spacing: -.055em;
  text-wrap: balance;
}
[dir='rtl'] .folio-hero h1 { text-align: right; letter-spacing: -.055em; }
[lang='en'] .folio-hero h1 { text-align: left; }

.folio-lead { max-width: 61ch; color: var(--soft); font-size: clamp(1rem, 1.55vw, 1.21rem); line-height: 1.83; }
.folio-intro > .folio-lead { margin-block-start: 1.1rem; }
.folio-intro > .folio-lead strong { color: var(--ink); }

.folio-role {
  display: grid;
  gap: .14rem;
  margin-block-start: 1.45rem;
  padding: .55rem .85rem;
  border-inline-start: 2px solid var(--accent);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.folio-role strong { font-size: .8rem; color: var(--accent); }
.folio-role span { font-size: .93rem; }
.folio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.15rem; margin-block-start: 1.45rem; }
.entry, .folio-secondary { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; max-width: 100%; font-size: .87rem; font-weight: 720; }

.entry { padding: .5rem .86rem; background: var(--accent); color: var(--button-ink); border: 1px solid var(--accent); }
.entry:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.folio-secondary { color: var(--ink); text-decoration: none; }
.folio-secondary:hover { color: var(--accent); text-decoration: underline; }
.folio-arrow { display: inline-block; flex: none; color: var(--accent); }
.entry .folio-arrow { color: inherit; }

.folio-picture {
  --fixture-offset: .8rem;
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.folio-picture::before {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: calc(100% + var(--fixture-offset));
  width: clamp(3.3rem, 8vw, 7.75rem);
  height: clamp(8px, 1.03vw, 15px);
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(#9a9389 1px, #58534d 2px, #46413d 65%, #332f2b 85%, #8c8478);
  box-shadow: 2px 4px 5px #3a322f50;
}

[data-room='darkroom'] .folio-picture::before {
  background: linear-gradient(#67413a 1px, #302425 2px, #20191b 68%, #170f12 80%, #ffad78 86%, #a2442b);
  box-shadow: 0 5px 12px #fa673a80, 1px 4px 6px #11090ba0;
}

[data-room='darkroom'] .folio-picture::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: calc(-5 * var(--fixture-offset)) 55%;
  inset-inline: max(-6%, calc(-.85 * var(--gutter)));
  background: radial-gradient(ellipse closest-side at 50% 48%, #fb73466b, #f7643435 45%, transparent);
  pointer-events: none;
}

.folio-mount {
  --mat-width: clamp(.5rem, 1.25vw, 1.1rem);
  position: relative;
  isolation: isolate;
  padding: var(--mat-width);
  border: 1px solid #a59a85;
  border-block-end-width: 3px;
  background: linear-gradient(130deg, #fdfbf3, #e8e2d5);
  box-shadow: 2px 3px 2px #483b2726, 5px 9px 8px #4e402c26, 12px 19px 24px #4c3f2b24;
}

[data-room='darkroom'] .folio-mount {
  border-color: #a75f46;
  border-block-end-color: #674033;
  background: linear-gradient(145deg, #69362d, #261620 70%);
  box-shadow: 0 0 0 2px #1c0d14, 0 0 15px #f66e4629, 9px 15px 18px #0c0509a3;
}

.folio-mount::after {
  content: "";
  position: absolute;
  inset: var(--mat-width);
  background: linear-gradient(105deg, transparent 25%, #fff8dc20 48%, #fff8dc08 58%, transparent 72%);
  box-shadow: inset 0 0 0 1px #362b2530, inset 0 2px 3px #28211932;
  pointer-events: none;
}

[data-room='darkroom'] .folio-mount::after {
  background: linear-gradient(103deg, transparent 24%, #ec5e3610 40%, #ffad6e1d 51%, #ef683a08 66%, transparent 77%);
  box-shadow: inset 0 0 0 1px #1b0d1660, inset 0 2px 4px #1b0d1650;
}

.cover { width: 100%; height: auto; }
.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1.14;
  object-fit: cover;
  object-position: center 69%;
  filter: grayscale(1) contrast(1.1);
}

.folio-location {
  position: absolute;
  left: clamp(1rem, 2vw, 1.7rem);
  bottom: clamp(1rem, 2vw, 1.7rem);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .55rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-block-end-color: var(--accent);
  font: 700 .76rem/1 var(--mono);
  letter-spacing: .08em;
}
.folio-location svg { color: var(--accent); }
.folio-alternate { color: var(--soft); margin-block-start: .5rem; font-size: .93rem; }
.folio-profession { margin-block-start: .9rem; font-weight: 760; }

.folio-project-rail {
  border-block-start: 1px solid var(--line);
  background: var(--transport);
}

.folio-project-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.45rem, 2vw, 2rem);
  padding-block: .4rem;
}

.folio-adjacent {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: clamp(.3rem, 1vw, .75rem);
  max-width: 100%;
  min-height: 44px;
  padding-block: .3rem;
  text-decoration: none;
}

.folio-adjacent:last-child { flex-direction: row-reverse; justify-self: end; text-align: end; }
.folio-adjacent > span:not(.folio-arrow) { min-width: 0; }
.folio-adjacent :is(small, strong) { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.folio-adjacent small { color: var(--soft); font-size: .7rem; }
.folio-adjacent strong { font-size: .88rem; font-weight: 700; }
.folio-adjacent:hover strong { color: var(--accent); text-decoration: underline; }
[dir='rtl'] .folio-adjacent .folio-arrow { scale: -1 1; }

.folio-project-position { position: relative; display: grid; justify-items: center; }
.folio-project-ordinal { color: var(--accent); font: 700 .72rem/1.2 var(--mono); white-space: nowrap; }
.folio-project-stops { display: flex; }
.folio-project-stops a { display: grid; place-items: center; width: 24px; height: 30px; }
.folio-project-stops a::before {
  content: "";
  width: 1px;
  height: 10px;
  border-radius: 1px;
  background: var(--soft);
  opacity: .64;
}

.folio-project-stops a:is(:hover,:focus-visible,[aria-current])::before {
  width: 2px;
  height: 17px;
  background: var(--accent);
  opacity: 1;
}

.folio-project-position:has(.folio-project-stops a:is(:hover,:focus-visible)) .folio-project-ordinal { opacity: 0; }
.folio-project-stops a:hover span,
.folio-project-stops:not(:has(a:hover)) a:focus-visible span {
  inset: 0 0 auto;
  clip-path: none;
  width: auto;
  height: auto;
  text-align: center;
  text-overflow: ellipsis;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.folio-section-rail {
  position: sticky;
  z-index: 2;
  top: 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.folio-switchboard { display: flex; flex-wrap: wrap; gap: 0 clamp(.6rem, 2.6vw, 2.2rem); }
.folio-switchboard a {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding-inline: .18rem;
  font-size: .87rem;
  font-weight: 720;
  border-block-end: 2px solid transparent;
}
.folio-switchboard a:is(:hover,[aria-current]) { color: var(--accent); border-block-end-color: var(--accent); }

.folio-section {
  --section-space: clamp(2.7rem, 6vw, 6rem);
  padding-block: var(--section-space);
  border-block-end: 1px solid var(--line);
}
.folio-section:target {
  scroll-margin-block-start: calc(.85rem - var(--section-space));
}
.folio-section:last-child { border-block-end: 0; }
.folio-section > h2 { margin-block-end: 1.35rem; }
.folio-overview {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 5vw, 5rem);
  align-items: start;
  margin-block-end: clamp(1.45rem, 3.3vw, 3rem);
}

.folio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.folio-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.folio-card {
  position: relative;
  padding: clamp(1rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  background: var(--surface);
}
.folio-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: clamp(1rem, 3vw, 1.9rem);
  width: 2.1rem;
  height: 2px;
  background: var(--accent);
}
.folio-card p, .folio-flow p { color: var(--soft); }
.folio-card > p, .folio-flow li > p { margin-block-start: .5rem; }
.folio-points { display: grid; gap: .95rem; padding-inline-start: 1.15rem; margin: 1.15rem 0 0; }
.folio-points li::marker { color: var(--accent); font-weight: 730; }
.folio-points li > p { margin-block-start: .13rem; }
.folio-assistant { display: grid; gap: 1rem; }
.folio-assistant blockquote { margin: 0; padding: .8rem 1rem; border-inline-start: 2px solid var(--accent); background: var(--paper); }
.folio-flow {
  container-type: inline-size;
  margin-block-end: 1.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.9rem);
}

.folio-flow ol {
  --flow-gap: clamp(1rem, 2vw, 2rem);
  display: grid;
  grid-template-columns: repeat(var(--flow-steps), minmax(0, 1fr));
  gap: var(--flow-gap);
  list-style: none;
  padding: 0;
  margin-block: 1.25rem 0;
}

.folio-flow li { position: relative; }
.folio-flow li strong { display: block; overflow-wrap: anywhere; }
.folio-flow-number {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  margin-block-end: .8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font: 700 .75rem/1 var(--mono);
}

.folio-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: 1rem;
  inset-inline: 2rem calc(-1 * var(--flow-gap));
  border-block-start: 1px solid var(--line);
  pointer-events: none;
}

@container (max-width: 35rem) {
  .folio-flow ol { grid-template-columns: minmax(0, 1fr); }
  .folio-flow li { min-height: 2rem; padding-inline-start: 2.8rem; }
  .folio-flow-number { position: absolute; inset-block-start: 0; inset-inline-start: 0; }
  .folio-flow li:not(:last-child)::after {
    inset-block: 2rem calc(-1 * var(--flow-gap));
    inset-inline: 1rem auto;
    border-block-start: 0;
    border-inline-start: 1px solid var(--line);
  }
}
.folio-tools-list { margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .36rem; justify-content: flex-start; list-style: none; }
[dir='rtl'] .folio-tools-list { justify-content: flex-end; }
.folio-tools-list li { padding: .18rem .48rem; background: var(--paper); border: 1px solid var(--line); font-size: .79rem; }
.folio-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 0; }
.folio-team > div { border-block-start: 1px solid var(--line); padding-block-start: .75rem; }
.folio-team dt { font-weight: 730; }
.folio-team dd { margin: 0; color: var(--soft); }

.folio-views { --print-padding: clamp(.55rem, 1.7vw, 1.2rem); }
.folio-screen-set { display: grid; gap: 1rem; }
.folio-screen { min-width: 0; padding: var(--print-padding); background: var(--surface); border: 1px solid var(--line); }
.folio-screen-image {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  max-block-size: min(55svh, 38rem);
  overflow: hidden;
  background: color-mix(in srgb, var(--print-tone) 13%, var(--wall));
  border: 1px solid var(--line);
}
.folio-screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.folio-screen-error { padding: .75rem; color: var(--soft); text-align: center; }
.folio-screen figcaption { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-block-start: .8rem; }
.folio-screen figcaption p, .folio-note { color: var(--soft); font-size: .9rem; }
.folio-contact-sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); border: 1px solid var(--line); border-top: 0; }
.folio-contact-sheet button {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 52px;
  padding: .48rem;
  border: 0;
  border-inline-end: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: start;
  font-size: .79rem;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
.folio-contact-sheet button span { overflow-wrap: anywhere; }
.folio-contact-sheet button:last-child { border-inline-end: 0; }
.folio-contact-sheet button img { width: 2.4rem; height: 1.65rem; flex: none; object-fit: cover; border: 1px solid var(--line); }
.folio-contact-sheet img[data-unavailable] { visibility: hidden; }
.folio-contact-sheet button:hover { background: var(--surface); }
.folio-contact-sheet button[aria-pressed='true'] { color: var(--accent); background: var(--surface); font-weight: 750; box-shadow: inset 0 -2px var(--accent); }
.folio-contact-sheet button:active { background: color-mix(in srgb, var(--surface) 90%, var(--accent)); }
.folio-contact-sheet button:focus-visible { z-index: 1; outline-offset: -3px; }

@media (min-width: 1000px) {
  .folio-views[data-enhanced] {
    display: grid;
    grid-template-columns: minmax(0, 2.16fr) minmax(14rem, 1fr);
    gap: clamp(.75rem, 2vw, 1.6rem);
    align-items: start;
  }
  .folio-contact-sheet { grid-template-columns: 1fr; border-block-start: 1px solid var(--line); }
  .folio-contact-sheet button { border-inline-end: 0; border-block-end: 1px solid var(--line); min-height: 60px; }
  .folio-contact-sheet button:last-child { border-block-end: 0; }
  .folio-contact-sheet button img { width: 3.25rem; height: 2.18rem; }
}

.project-list, .folio-link-list, .folio-recognition { list-style: none; padding: 0; margin: 0; }
.project-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.55rem); }
.folio-project { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.folio-project-art { display: block; padding: .35rem; overflow: clip; background: color-mix(in srgb, var(--print-tone) 17%, var(--wall)); }
.folio-project img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.folio-project-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: .75rem; overflow-wrap: anywhere; }
.folio-project-name { display: flex; gap: .3rem; justify-content: space-between; align-items: start; line-height: 1.35; overflow-wrap: anywhere; }
.folio-project:hover { border-color: var(--accent); }
.folio-project:hover .folio-project-name { color: var(--accent); }

.folio-recognition, .folio-link-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .7rem; }
.folio-recognition { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-end: .7rem; }
.folio-recognition a, .folio-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 48px;
  height: 100%;
  padding: .65rem .8rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.folio-recognition a:hover, .folio-link-list a:hover { border-color: var(--accent); }
.folio-recognition img { width: 3.3rem; height: 2.7rem; object-fit: contain; flex: none; }
.folio-recognition strong, .folio-recognition .folio-note { display: block; }
.folio-recognition a > span:nth-child(2) { flex: 1; }

.folio-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.folio-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 730; }

.reading-error { max-width: 51rem; margin: auto; padding: 0 clamp(1rem, 4vw, 2rem) 4rem; box-sizing: content-box; }
.reading-error header { padding-block: 1rem; border-block-end: 1px solid var(--line); }
.reading-error header a { display: inline-flex; align-items: center; gap: .6rem; }
.reading-error main { padding-block-start: clamp(2rem, 7vw, 4rem); }
.reading-error h1 { font-size: clamp(1.8rem, 6vw, 3.7rem); }
.reading-error p { margin-block: 1em; }
.reading-error a { color: var(--accent); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .folio-project img, .folio-arrow { transition: transform 180ms ease-out; }
  .folio-project:hover img { transform: scale(1.025); }
  a:hover > .folio-arrow { transform: translate(2px, -2px); }
  .folio-adjacent:hover > .folio-arrow { transform: translateX(-2px); }
  .folio-adjacent:last-child:hover > .folio-arrow { transform: translateX(2px); }
  .folio-project-stops a::before { transition: height 150ms ease-out; }
}

@media (max-width: 980px) {
  .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .folio-hero { column-gap: 2rem; }
}

@media (max-width: 900px), (pointer: coarse) {
  .folio-project-stops { display: none; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .reading-project .folio-intro { container-type: inline-size; }
  .reading-project .folio-hero h1 { font-size: min(clamp(2.45rem, 5.5vw, 5.55rem), 21cqi); }
}

@media (max-width: 800px) {
  .reading-header { grid-template-columns: 1fr auto; gap: .12rem .55rem; padding-block-start: .45rem; }
  .folio-nav { grid-row: 2; grid-column: 1; flex-wrap: wrap; gap: 0 .75rem; }
  .folio-nav a { white-space: normal; text-align: center; }
  .folio-brand { grid-column: 1 / -1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .folio-tools { grid-column: 2; grid-row: 2; }
  .folio-brand img { width: 24px; height: 24px; }
  .folio-tools { gap: .4rem; }
}

@media (max-width: 720px) {
  .folio-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-block: 1.65rem 1.8rem; container-type: inline-size; }
  .folio-intro { display: contents; }
  .folio-hero h1 { margin-block-start: .45rem; font-size: min(clamp(2.1rem, 8.3vw, 3.45rem), 21cqi); }
  .folio-hero .folio-kicker { order: -5; }
  .folio-hero h1 { order: -4; }
  .folio-alternate, .folio-profession { order: -3; }
  .folio-picture { order: -2; margin-block-start: 2.25rem; }
  .folio-picture { --fixture-offset: .65rem; }
  .folio-overview, .folio-chapters { grid-template-columns: minmax(0, 1fr); }
  .folio-contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folio-contact-sheet button { border-bottom: 1px solid var(--line); }
  .folio-contact-sheet button:nth-child(2n) { border-inline-end: 0; }
  .folio-hero .folio-role, .folio-actions { margin-block-start: 1rem; }
  .folio-hero > .folio-lead { margin-block-start: 1rem; }
}

@media (max-width: 630px) {
  .project-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(10rem, 44%)), 1fr)); }
  .folio-recognition { grid-template-columns: minmax(0, 1fr); }
  .folio-switchboard { justify-content: space-between; gap: 0 .4rem; }
  .folio-switchboard a { font-size: .78rem; }
  .folio-project-copy { padding: .6rem; }
}

@media (max-width: 350px) {
  .project-list { grid-template-columns: minmax(0, 1fr); }
  .folio-nav a { font-size: .85rem; }
  .folio-adjacent strong { font-size: .8rem; }
}
