@font-face {
  font-family: Poppins;
  src: url('assets/poppins-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('assets/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('assets/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Rightman;
  src: url('assets/rightman-signature.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --accent: #d0d629;
  --motion-fast: 240ms;
  --motion-settle: 420ms;
  --motion-enter: 700ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  background: #080908;
  color: #efefea;
  font:
    400 14px/20px Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  isolation: isolate;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
figure,
dl,
dd {
  margin: 0;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: #d0d629;
  color: #080908;
}
:focus-visible {
  outline: 2px solid #d0d629;
  outline-offset: 6px;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: -80px;
  left: 20px;
  background: #d0d629;
  color: #080908;
  padding: 10px 18px;
  border-radius: 30px;
}
.skip-link:focus {
  top: 16px;
}
.frame {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 48px;
  position: relative;
}
.about-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 36% at 78% 85%, #d0d62906, transparent),
    linear-gradient(#080908, #0c0d0b);
}
.about-ambient i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d0d62980;
  box-shadow: 0 0 12px 4px #d0d62915;
  left: 63%;
  top: 25%;
}
.about-ambient i:nth-child(2) {
  left: 8%;
  top: 69%;
  opacity: 0.45;
}
.about-ambient i:nth-child(3) {
  left: 88%;
  top: 57%;
  opacity: 0.5;
}
.about-top {
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bfc0b5;
  transition: color var(--motion-fast);
}
.back-link:hover {
  color: var(--accent);
}
.about-top > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #929589;
}
.about-top i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  padding: 76px 0 112px;
}
.section-index {
  font:
    500 11px/18px Arial,
    sans-serif;
  letter-spacing: 0.13em;
  color: #93968a;
  margin-bottom: 28px;
}
.title-pair {
  position: relative;
  margin-bottom: 38px;
}
.title-pair h1,
.title-pair h2 {
  font:
    700 clamp(42px, 4.6vw, 66px)/1.05 Poppins,
    Satoshi,
    sans-serif;
  letter-spacing: -0.045em;
  color: #f6f6f4;
}
.script {
  font:
    400 58px/1.1 Rightman,
    cursive;
  color: var(--accent);
  letter-spacing: 0;
}
.title-pair > .script {
  margin-top: 6px;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.bio {
  max-width: 560px;
  color: #c8c9c0;
}
.bio p + p {
  margin-top: 20px;
}
.bio a,
.work-notes a,
.accent {
  color: var(--accent);
}
.bio a:hover,
.work-notes a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.work-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #ffffff16;
  font-size: 15px;
  line-height: 1.5;
}
.work-notes dt {
  color: #8b8f80;
  font:
    400 11px/16px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.next-section {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  color: #a6a99b;
  font-size: 12px;
  margin-top: 38px;
}
.next-section:hover {
  color: var(--accent);
}
.next-section .ui-icon {
  width: 16px;
  height: 16px;
}
.portrait {
  position: relative;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.portrait-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 24px;
  background: #171914;
  box-shadow: 0 28px 80px #0005;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 64%;
  filter: saturate(0.7);
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 4px;
  color: #969b8a;
  font-size: 12px;
}
.caption-mark {
  color: var(--accent);
  font-size: 20px;
}
.about-section {
  padding: 100px 0;
  border-top: 1px solid #ffffff16;
}
.journey {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 7vw, 112px);
}
.section-heading .title-pair h2 {
  font-size: clamp(34px, 3.5vw, 50px);
}
.section-heading .script {
  font-size: 50px;
}
.journey-content {
  color: #c8c9c0;
  padding-top: 48px;
}
.journey-content > p + p {
  margin-top: 24px;
}
.journey-thread {
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  list-style: none;
}
.journey-thread li {
  position: relative;
  padding-top: 25px;
  font-size: 13px;
  line-height: 1.5;
}
.journey-thread li:before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #d0d62945;
}
.journey-thread li:last-child:before {
  display: none;
}
.thread-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #080908;
  border: 1px solid #d0d629;
  z-index: 1;
}
.journey-thread li:last-child .thread-dot {
  background: #d0d629;
  box-shadow: 0 0 12px #d0d62935;
}
.journey-thread small {
  display: inline-block;
  color: #7e8474;
  font-size: 11px;
  margin-top: 6px;
}
.outside-header {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.outside-copy {
  color: #c8c9c0;
  max-width: 530px;
}
.photo-gallery {
  display: grid;
  grid-template-columns: 1.12fr 0.9fr 0.9fr;
  gap: 28px;
  align-items: start;
  margin-top: 38px;
  padding-bottom: 100px;
}
.photo-story.riding {
  margin-top: 100px;
}
.photo-story.basketball {
  margin-top: 34px;
}
.photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #151812;
  aspect-ratio: 3/4;
  transition:
    transform var(--motion-settle) var(--motion-ease),
    box-shadow var(--motion-settle) var(--motion-ease);
}
.photo-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
  transition: filter var(--motion-settle);
}
.riding .photo-open {
  aspect-ratio: 3/4.3;
}
.basketball .photo-open {
  aspect-ratio: 3/4.1;
}
.photo-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--accent);
  background: #08090899;
  backdrop-filter: blur(12px);
  font-size: 20px;
}
.photo-story figcaption {
  margin-top: 14px;
}
.photo-story figcaption .script {
  display: block;
  font-size: 36px;
  transform: rotate(-3deg);
  margin-left: 2px;
}
.photo-label {
  display: block;
  margin-top: 12px;
  font:
    400 9px/16px Arial,
    sans-serif;
  letter-spacing: 0.13em;
  color: #797f70;
}
@media (hover: hover) {
  .photo-open:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px #0005;
  }
  .photo-open:hover img {
    filter: saturate(1);
  }
}
.about-footer {
  border-top: 1px solid #ffffff16;
  padding: 72px 0 150px;
}
.footer-invitation > a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #f6f6f4;
  font:
    700 clamp(36px, 5vw, 70px)/1.12 Poppins,
    sans-serif;
  letter-spacing: -0.045em;
  transition: color var(--motion-fast);
}
.footer-invitation > a:hover {
  color: var(--accent);
}
.footer-invitation .ui-icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}
.footer-invitation .script {
  font-size: 44px;
  margin-top: 4px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
  font-size: 12px;
  color: #858a7c;
}
.footer-meta > div {
  display: flex;
  gap: 24px;
}
.footer-meta a:hover {
  color: var(--accent);
}
/* The homepage dock tokens and optics continue on the scrollable page. */
.bottom-dock .glass-surface {
  background: linear-gradient(125deg, #ffffff05, transparent 45%, #d0d62904), #15151580;
  box-shadow:
    inset 0 1px 0 #ffffff20,
    inset 0 -1px 0 #ffffff0c,
    0 8px 32px #0003;
}
.bottom-dock {
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.photo-dialog {
  position: fixed;
  max-width: min(94vw, 1100px);
  max-height: 92dvh;
  width: max-content;
  padding: 12px;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  background: #10120e;
  overflow: auto;
  color: #c2c6b8;
}
.photo-dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(12px);
}
.photo-dialog img {
  max-height: 78dvh;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}
.photo-dialog p {
  font-size: 12px;
  line-height: 18px;
  margin: 10px 4px 0;
  max-width: 720px;
}
.photo-close {
  position: fixed;
  right: 24px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  background: #10120ee6;
  color: var(--accent);
  z-index: 10;
}
.reveal-ready .reveal {
  transition:
    opacity var(--motion-enter) var(--motion-ease),
    translate var(--motion-enter) var(--motion-ease);
}
.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 18px;
}
/* Typography follows Home: Poppins headings, Rightman accents and Arial copy. */
.title-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.title-pair h1,
.title-pair h2,
.section-heading .title-pair h2 {
  font:
    700 42px/44px Poppins,
    Arial,
    sans-serif;
  letter-spacing: 0;
}
.title-pair > .script,
.section-heading .script {
  font-size: 54px;
  line-height: 1.1;
  margin: 0;
  transform: rotate(-4deg);
}
.work-notes {
  grid-template-columns: 1fr;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
  margin-top: 32px;
}
.work-notes dt {
  margin-bottom: 8px;
}
.journey,
.outside-header {
  align-items: center;
}
.journey-content {
  padding-top: 0;
}
.journey-content > p + p {
  margin-top: 20px;
}
.section-heading .title-pair {
  margin-bottom: 0;
}
.photo-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 40px;
  padding-bottom: 32px;
}
.photo-story.riding,
.photo-story.basketball {
  margin-top: 0;
}
.photo-open,
.riding .photo-open,
.basketball .photo-open {
  aspect-ratio: 3/4;
}
.photo-story figcaption {
  font:
    400 14px/20px Arial,
    sans-serif;
  color: #c8c9c0;
  margin: 12px 0 0;
  white-space: nowrap;
}
.outside {
  padding-bottom: 140px;
}
@media (max-width: 1020px) {
  .about-hero {
    gap: 48px;
  }
  .journey,
  .outside-header {
    gap: 48px;
  }
  .photo-gallery {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .frame {
    padding-inline: 24px;
  }
  .about-top {
    padding-top: 24px;
  }
  .about-top > span {
    font-size: 9px;
    gap: 8px;
  }
  .back-link {
    font-size: 12px;
  }
  body {
    font-size: 13px;
    line-height: 18px;
  }
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 64px;
  }
  .intro-copy {
    max-width: 600px;
  }
  .title-pair h1,
  .title-pair h2,
  .section-heading .title-pair h2 {
    font-size: 32px;
    line-height: 35px;
  }
  .title-pair > .script,
  .section-heading .script {
    font-size: 46px;
  }
  .title-pair {
    gap: 4px;
    margin-bottom: 24px;
  }
  .portrait {
    justify-self: center;
    max-width: 440px;
  }
  .portrait-image {
    aspect-ratio: 4/5;
  }
  .journey,
  .outside-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-section {
    padding: 64px 0;
  }
  .photo-gallery {
    gap: 16px;
    margin-top: 32px;
    padding-bottom: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .photo-open {
    border-radius: 12px;
  }
  .photo-expand {
    width: 24px;
    height: 24px;
    right: 8px;
    bottom: 8px;
    font-size: 16px;
  }
  .photo-story figcaption {
    font-size: 12px;
    line-height: 18px;
    white-space: normal;
  }
  .outside {
    padding-bottom: 132px;
  }
  .photo-close {
    top: 12px;
    right: 12px;
  }
}
@media (max-width: 480px) {
  .photo-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .photo-story {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .photo-story figcaption {
    white-space: nowrap;
  }
  .photo-open {
    border-radius: 18px;
  }
  .photo-expand {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .photo-story figcaption {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .frame {
    padding-inline: 20px;
  }
  .about-top > span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-ready .reveal {
    transition: none;
    opacity: 1 !important;
    translate: none !important;
  }
  .photo-open,
  .photo-open img {
    transition: none;
  }
  .photo-open:hover {
    transform: none;
  }
}

/* Compact title pairs and the same round glass treatment as the sound control. */
.title-pair {
  gap: 0;
}
.title-pair > .script,
.section-heading .script {
  margin-bottom: -14px;
}
.about-top {
  justify-content: flex-start;
}
.back-link,
.photo-controls button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  color: var(--accent);
  background: linear-gradient(125deg, #ffffff05, transparent 45%, #d0d62904), #15151580;
  box-shadow:
    inset 0 1px 0 #ffffff20,
    inset 0 -1px 0 #ffffff0c,
    0 8px 32px #0003;
  backdrop-filter: blur(18px);
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    transform var(--motion-fast);
}
.back-link:hover,
.photo-controls button:hover {
  background-color: #25251b;
  border-color: #d0d62960;
}
.back-link .ui-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.outside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.outside-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}
.outside-copy {
  max-width: 560px;
}
.photo-gallery {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 24px 12px 0;
  overflow: visible;
}
.polaroid-stack {
  position: relative;
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  isolation: isolate;
}
.photo-story {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 3px;
  background: #eeeee6;
  box-shadow: 0 14px 34px #0006;
  transform-origin: 50% 70%;
  transition: transform var(--motion-page, 600ms) var(--motion-ease);
  will-change: transform;
}
.photo-story[data-depth='0'] {
  z-index: 3;
  transform: rotate(-3deg);
  opacity: 1;
}
.photo-story[data-depth='1'] {
  z-index: 2;
  transform: translate(10px, -5px) rotate(5deg);
  opacity: 1;
}
.photo-story[data-depth='2'] {
  z-index: 1;
  transform: translate(-8px, -8px) rotate(-8deg);
  opacity: 1;
}
.photo-image {
  width: 100%;
  height: calc(100% - 48px);
  overflow: hidden;
  background: #d2d3ca;
}
.photo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.riding .photo-image img {
  object-position: center 45%;
}
.photo-story figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0;
  font:
    400 14px/20px Arial,
    sans-serif;
  white-space: nowrap;
  color: #33372f;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.photo-controls button {
  width: 40px;
  height: 40px;
}
.photo-controls .ui-icon {
  width: 20px;
  height: 20px;
}
.photo-status {
  min-width: 38px;
  text-align: center;
  font:
    400 12px/18px Arial,
    sans-serif;
  color: #a8ac9c;
}
@media (max-width: 760px) {
  .title-pair {
    gap: 0;
  }
  .title-pair > .script,
  .section-heading .script {
    margin-bottom: -10px;
  }
  .back-link {
    width: 44px;
    height: 44px;
  }
  .outside {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .photo-gallery {
    width: 100%;
    max-width: 390px;
    justify-self: center;
    padding-inline: 18px;
  }
  .polaroid-stack {
    max-width: 300px;
  }
  .photo-story {
    flex: none;
  }
  .photo-controls {
    margin-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-story {
    transition: none;
  }
  .back-link,
  .photo-controls button {
    transition: none;
  }
}

/* All desktop rows share one column grid; photo controls overlay the stack. */
.about-hero,
.journey,
.outside {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  column-gap: clamp(48px, 7vw, 112px);
}
.photo-gallery {
  position: relative;
}
.photo-controls {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(340px, calc(100% - 24px));
  margin: 0;
  transform: translate(-50%, -50%);
  justify-content: space-between;
  gap: 0;
  pointer-events: none;
}
.photo-controls button {
  pointer-events: auto;
  background-color: #10120ed9;
  box-shadow:
    inset 0 1px 0 #ffffff20,
    0 4px 18px #0005;
}
@media (max-width: 1020px) {
  .about-hero,
  .journey,
  .outside {
    column-gap: 48px;
  }
}
@media (max-width: 760px) {
  .about-hero,
  .journey,
  .outside {
    grid-template-columns: minmax(0, 1fr);
  }
  .photo-controls {
    width: min(300px, calc(100% - 36px));
    margin: 0;
  }
}

/* Shared dock glass and dimensions for every round page control. */
.back-link,
.photo-controls button {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: linear-gradient(125deg, #ffffff05, transparent 45%, #d0d62904), #15151580;
  box-shadow:
    inset 0 1px 0 #ffffff20,
    inset 0 -1px 0 #ffffff0c,
    0 8px 32px #0003;
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
}
.back-link:hover,
.photo-controls button:hover {
  background-color: #d0d62912;
}
.back-link > .ui-icon,
.photo-controls button > .ui-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
}
.photo-controls {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    visibility var(--motion-fast);
}
.photo-gallery:hover .photo-controls,
.photo-gallery:focus-within .photo-controls {
  opacity: 1;
  visibility: visible;
}
.polaroid-stack {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.polaroid-stack:active {
  cursor: grabbing;
}
@media (max-width: 760px) {
  .back-link {
    width: 52px;
    height: 52px;
  }
}
@media (max-width: 600px) {
  .back-link,
  .photo-controls button {
    width: 44px;
    height: 44px;
  }
}
@media (hover: none) {
  .photo-controls {
    display: none;
  }
  .polaroid-stack {
    cursor: pointer;
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-controls {
    transition: none;
  }
}

/* At the end of the page, centre the last row above the fixed dock. */
@media (min-width: 761px) {
  .outside {
    min-height: 100svh;
    padding-top: 100px;
    padding-bottom: 200px;
  }
}
@media (max-width: 760px) {
  .outside {
    padding-bottom: max(200px, calc(100svh * 0.24));
  }
}

/* Balance the final visible content against the available space above the dock. */
.outside {
  min-height: 0;
  padding-bottom: max(
    calc(var(--about-dock-reserve, 100px) + 32px),
    calc(
      (
          var(--about-viewport-height, 100svh) - var(--after-work-content-height, 477px) +
            var(--about-dock-reserve, 100px)
        ) /
        2
    )
  );
}

@media (max-width: 760px) {
  .outside {
    row-gap: 24px;
  }
  .polaroid-stack {
    width: min(100%, 300px);
  }
  .photo-controls {
    width: min(300px, calc(100% - 36px));
  }
}

/* Keep the closing title to two deliberate, balanced lines. */
.outside-header {
  container-type: inline-size;
}
.section-heading .title-pair #outside-title {
  font-size: min(42px, 8.6cqw);
  line-height: 1.08;
}
#outside-title > span {
  display: block;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .outside-header,
  .outside-copy {
    width: 100%;
    max-width: none;
  }
  .section-heading .title-pair #outside-title {
    font-size: min(32px, 8.6cqw);
  }
  .outside {
    row-gap: 48px;
  }
  .portrait {
    max-width: none;
  }
  .portrait-image {
    aspect-ratio: auto;
    height: clamp(240px, 42svh, 360px);
  }
  .portrait img {
    object-position: 50% 40%;
  }
}

/* Journey paragraphs match the width of the other sections' text columns. */
.journey {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  row-gap: 24px;
}
@media (max-width: 760px) {
  .journey {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep the enlarged photo stack stable when a phone's browser bar moves. */
@media (max-width: 760px) {
  .polaroid-stack {
    width: min(100%, 300px);
  }
  .photo-controls {
    width: min(300px, calc(100% - 36px));
  }
}
/* Round page controls share the updated 52px dock control size on phones too. */
@media (max-width: 600px) {
  .back-link,
  .photo-controls button {
    width: 52px;
    height: 52px;
  }
}

/* JS measures the visible row and balances it within the area above the dock. */
.outside {
  padding-bottom: calc(var(--about-dock-reserve, 100px) + 48px);
}

/* Keep the adaptive closing space within an intentional range per layout. */
.outside {
  --closing-gap-min: 40;
  --closing-gap-max: 80;
}
@media (min-width: 601px) {
  .outside {
    --closing-gap-min: 48;
    --closing-gap-max: 104;
  }
}
@media (min-width: 761px) {
  .outside {
    --closing-gap-min: 56;
    --closing-gap-max: 120;
  }
}
@media (min-width: 1025px) {
  .outside {
    --closing-gap-min: 64;
    --closing-gap-max: 144;
  }
}
@media (min-width: 1441px) {
  .outside {
    --closing-gap-min: 80;
    --closing-gap-max: 144;
  }
}

/* The photo stack is direct manipulation, not a filled hover button. */
.polaroid-stack::after {
  display: none !important;
}

/* One square crop at every breakpoint, centred on the face and laptop. */
.portrait .portrait-image {
  aspect-ratio: 1/1;
  height: auto;
}
.portrait img {
  object-position: 50% 60%;
}

/* Body highlights carry enough weight to read as deliberate emphasis. */
#main :is(p, dd) .accent {
  font-weight: 700;
}
