:root {
  --ink: #0b0f13;
  --ink-2: #11171d;
  --bone: #ece7dd;
  --muted: #8b949c;
  --green: #19c39c;
  --gold: #e0b45c;
  --display: "Fraunces", Georgia, serif;
  --body: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --pad: clamp(1.25rem, 5vw, 6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: var(--green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

em { font-style: normal; }

/* Top bar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--pad);
  mix-blend-mode: difference; /* logo/nav invert over any background */
}

.topbar .logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bone);
  text-decoration: none;
}

.topbar .logo span { color: var(--green); }

.topbar .nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.topbar .nav a {
  color: var(--bone);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar .nav a:hover { color: var(--green); }

.topbar .contact-button {
  border: 1px solid var(--bone);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
}

/* Hero section */

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 100svh;
  padding: var(--pad);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  line-height: 3rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(720px, 100%);
}

.hero-intro {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-name {
  font-weight: 900;
}

.hero-name .firstname,
.hero-name .lastname {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 14vw, 12rem);
  line-height: 0.8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero .lastname {
  color: transparent;
  -webkit-text-stroke: 1.3px var(--bone);
}

/* "Get the ball rolling" — rolling ball */

.lastname-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3.5rem);
  position: relative;
}

.ball-spot {
  position: relative;
  flex: none;
  width: clamp(3.4rem, 11vw, 9.5rem);
  aspect-ratio: 1;
}

.ball-wrap {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.ball-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(25, 195, 156, 0.18));
}

/* Typed tagline */

.hero-tagline {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--green);
  min-height: 1.7em;
}

.tagline-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.15em;
  vertical-align: text-bottom;
  background: var(--green);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  max-width: 25rem;
  margin-top: 1.6rem;
  color: var(--bone);
  font-size: 1rem;
  line-height: 1.8;
}

.hero .scroll-down {
  position: absolute;
  bottom: 2rem;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone);
  opacity: 0.9;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  position: relative;
  overflow: hidden;
  background: rgba(236, 231, 221, 0.2);
}

.scroll-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(236,231,221,0.95) 0%, rgba(236,231,221,0.45) 55%, rgba(236,231,221,0) 100%);
  animation: scrollLine 1.6s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.72rem;
  line-height: 1;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
    opacity: 0.25;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0.25;
  }
}

.heroblob1 {
    position: absolute;
    top: 10%;
    left: 60%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--green) 0%, transparent 80%);
    filter: blur(200px);
    z-index: 0;
    animation: drift 20s infinite alternate;
}

.heroblob2 {
    position: absolute;
    top: 80%;
    left: -10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
    filter: blur(150px);
    z-index: 0;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(30px, -25px, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-20px, 20px, 0) scale(0.92);
    opacity: 0.7;
  }
}

/* Teaser sections — mini-heros for the other pages */

.teaser {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vh, 8rem) var(--pad);
  overflow: hidden;
  isolation: isolate;
}

.teaser-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.ghost-word {
  position: absolute;
  top: 6%;
  left: -2%;
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(7rem, 26vw, 24rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 231, 221, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.section-tag {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.teaser-desc {
  max-width: 26rem;
  line-height: 1.8;
  color: rgba(236, 231, 221, 0.85);
  margin-bottom: 2.2rem;
}

/* Link with a dot that rolls along its track on hover */

.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: color 0.3s ease;
}

.link-track {
  position: relative;
  width: 3.5rem;
  height: 1px;
  background: rgba(236, 231, 221, 0.3);
}

.link-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  transition: transform 0.45s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.teaser-link:hover { color: var(--green); }
.teaser-link:hover .link-track::before { transform: translateX(2.95rem) rotate(360deg); }

/* About — portrait in a "photo ball" with an orbiting dot */

.photo-ball-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 23rem);
}

.photo-ball {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(236, 231, 221, 0.25);
}

.photo-ball img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(0) contrast(1);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.photo-ball:hover img {
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
}

.orbit {
  position: absolute;
  inset: -1.5rem;
  border: 1px dashed rgba(236, 231, 221, 0.25);
  border-radius: 50%;
  pointer-events: none;
  animation: orbitSpin 26s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.photo-caption {
  margin-top: 2.6rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Projects - a dealt deck of app cards */

.teaser-grid.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.app-deck {
  position: relative;
  height: clamp(24rem, 38vw, 29rem);
}

.app-card {
  position: absolute;
  width: clamp(11.5rem, 14vw, 13rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.1rem 1.3rem;
  background: var(--ink-2);
  border: 1px solid rgba(236, 231, 221, 0.14);
  border-radius: 16px;
  text-decoration: none;
  color: var(--bone);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.45s ease;
  will-change: transform;
}

.app-card:nth-child(1) { --tilt: -8deg; left: 0;   top: 12%; z-index: 1; }
.app-card:nth-child(2) { --tilt: 3deg;  left: 35%; top: 2%;  z-index: 2; }
.app-card:nth-child(3) { --tilt: 8deg;  left: 70%; top: 16%; z-index: 1; }

.app-card:hover {
  transform: rotate(0deg) translateY(-14px) scale(1.04);
  z-index: 5;
  border-color: rgba(25, 195, 156, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(25, 195, 156, 0.08);
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.app-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.app-status.is-live { color: var(--green); }
.app-status.is-mac  { color: var(--gold); }

.app-logo {
  height: 7rem;
  display: grid;
  place-items: center;
}

.app-logo img {
  width: 6.2rem;
  height: 6.2rem;
  object-fit: contain;
}

.logo-crop {
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 22%;
  overflow: hidden;
}

.logo-crop img {
  width: 100%;
  height: 100%;
  transform: scale(1.52);
}

.app-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
}

.app-blurb {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(236, 231, 221, 0.7);
}

.app-stack {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* Contact — the closing line, ball lands as the full stop */

.contact-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 75%;
  background: radial-gradient(ellipse at 50% 100%, rgba(25, 195, 156, 0.13), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.contact-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.9rem, 7.5vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

/* three lines, three treatments — same language as the hero name */
.contact-line > span { display: block; }

.contact-line .cl-1 {
  font-size: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  left: -1.5em;
}

.contact-line .cl-2 {
  font-size: 0.62em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--bone);
  position: relative;
  left: 0.9em;
  margin: 0.1em 0;
}

.contact-line .cl-3 {
  font-size: 1.15em;
  position: relative;
  transform: rotate(-2deg);
}

.contact-line em {
  font-style: italic;
  color: var(--green);
}

/* the ball IS the "o" in rolling */
.contact-ball-spot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.03em;
  vertical-align: 0.01em;
  will-change: transform;
}

.contact-ball {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px rgba(25, 195, 156, 0.25));
}

.contact-hero .teaser-desc {
  margin-bottom: 2.4rem;
}

.contact-cta {
  padding: 0.85rem 2.6rem;
  border: 1px solid var(--bone);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-cta:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  transform: translateY(-3px);
}

.social-lead {
  margin: 2.6rem 0 1.3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--bone);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-ball {
  position: relative;
  width: 3.4rem;
  aspect-ratio: 1;
  border: 1.5px solid rgba(236, 231, 221, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease;
}

.social-ball svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* each social is a mini hero-ball: green dot orbits on hover */
.social-ball::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 6%, var(--green) 0 3px, transparent 4.5px);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.social:hover { color: var(--green); transform: translateY(-4px); }
.social:hover .social-ball { border-color: rgba(25, 195, 156, 0.6); }
.social:hover .social-ball::after { transform: rotate(360deg); }

.social-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.social:hover .social-name { color: var(--green); }

@media (max-width: 900px) {
  .hero {
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .photo-ball-wrap {
    width: min(75vw, 19rem);
  }

  .ghost-word {
    top: 2%;
  }

}

/* Deck becomes a swipeable row when the fan runs out of room */
@media (max-width: 1100px) {
  .projects-hero .teaser-grid.reverse { grid-template-columns: 1fr; }
  .projects-hero .teaser-copy { order: -1; }

  .app-deck {
    display: flex;
    height: auto;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .app-card {
    position: static;
    flex: none;
    width: min(72vw, 17rem);
    --tilt: 0deg;
    scroll-snap-align: center;
  }
}

/* ================= About page ================= */

.about-hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--pad) + 3rem) var(--pad) var(--pad);
  overflow: hidden;
  isolation: isolate;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.about-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  line-height: 1.02;
  margin: 0.6rem 0 1.2rem;
}

.outline-word {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--bone);
}

.about-role {
  font-size: 1.05rem;
  color: rgba(236, 231, 221, 0.85);
  margin-bottom: 1.8rem;
}

.passion-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
}

.passion-chips li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border: 1px solid rgba(236, 231, 221, 0.25);
  border-radius: 999px;
  color: var(--muted);
}

.about-hero .scroll-down {
  position: absolute;
  bottom: 2rem;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone);
  opacity: 0.9;
  z-index: 1;
}

/* The rolling timeline — ball travels the spine, morphing per chapter */

.timeline {
  position: relative;
  padding: 5rem var(--pad) 7rem;
}

.spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
}

.spine-line,
.spine-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.5px;
  width: 1px;
  background: rgba(236, 231, 221, 0.14);
}

.spine-progress {
  background: var(--green);
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: 0 0 12px rgba(25, 195, 156, 0.5);
}

.traveler {
  position: sticky;
  top: calc(50vh - 2.2rem);
  width: 4.4rem;
  height: 4.4rem;
  margin-left: -2.2rem;
  z-index: 5;
}

.tv-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  filter: drop-shadow(0 0 16px rgba(11, 15, 19, 0.9)) drop-shadow(0 0 10px rgba(25, 195, 156, 0.15));
}

.tv-icon.is-active {
  opacity: 1;
  visibility: visible;
}

/* props (racket, impact flash) live outside the morph state machine */
.tv-prop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

/* The swerving path — drawn as SVG, ball rides it via MotionPath */
.spine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.spine-svg .path-base {
  stroke: rgba(236, 231, 221, 0.14);
  stroke-width: 1;
}

.spine-svg .path-progress {
  stroke: var(--green);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(25, 195, 156, 0.5));
}

@media (min-width: 901px) {
  /* curve mode: hide the straight line, traveler is positioned by GSAP */
  .spine-line,
  .spine-progress { display: none; }

  .traveler {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .spine-svg { display: none; }
}

.chapter {
  position: relative;
  width: calc(50% - 5rem);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

.chapter:nth-of-type(odd) { margin-right: auto; }
.chapter:nth-of-type(even) { margin-left: auto; }

.chapter-tag {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.chapter-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.chapter-body {
  line-height: 1.8;
  color: rgba(236, 231, 221, 0.85);
  margin-bottom: 1.6rem;
}

.chapter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.chapter-list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}

.chapter-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--green);
}

.chapter-photos {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.chapter-photos figure {
  flex: 1;
  min-width: 0;
}

.chapter-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(236, 231, 221, 0.15);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.chapter-photos figure:nth-child(1) { transform: rotate(-2deg); }
.chapter-photos figure:nth-child(2) { transform: rotate(2deg) translateY(0.8rem); }

.chapter-photos img:hover {
  filter: grayscale(0);
  transform: scale(1.03);
}

.chapter-photos figcaption {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .spine { left: 1.4rem; }

  .traveler {
    width: 3rem;
    height: 3rem;
    top: calc(50vh - 1.5rem);
    margin-left: -1.5rem;
  }

  .chapter,
  .chapter:nth-of-type(odd),
  .chapter:nth-of-type(even) {
    width: auto;
    margin: 0 0 0 3.4rem;
    min-height: 70vh;
  }

  .chapter-photos { flex-direction: column; }
  .chapter-photos figure:nth-child(2) { transform: rotate(2deg); }
}