/**
 * Single page: intro, work, about, reading, writing.
 */

main {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--content-pad-x) 1rem;
}

/* --- Intro --- */
.intro {
  padding: 2rem 0 calc(var(--section-gap) / 2);
  border-bottom: 1px solid var(--border);
}

.intro__headline {
  margin: 0 0 0.85rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.intro__headline em {
  font-style: italic;
  font-weight: 700;
}

.intro__bio {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

main header.intro.is-intro-ready .intro__headline,
main header.intro.is-intro-ready .intro__bio {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro__headline,
  .intro__bio {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.intro__bio a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.15s ease,
    text-decoration-style 0.15s ease;
}

.intro__bio a:hover {
  color: var(--accent);
  text-decoration-style: solid;
}

.intro__icons {
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 520px;
}

.intro__icon-link {
  display: flex;
  color: var(--text-muted);
  text-decoration: none;
}

.intro__icon-link svg {
  width: 20px;
  height: 20px;
}

.intro__icon-link:hover {
  color: var(--accent);
}

.intro__currently {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 13px;
}

.currently__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.currently__value {
  color: var(--accent);
  font-weight: 500;
}

/* --- Work band --- */
.work-band {
  padding: calc(var(--section-gap) / 2) 0 0;
}

.work-band__head {
  margin-bottom: 0.1rem;
}

.work-band__label {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.work-row {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.work-row:last-child {
  border-bottom: none;
}

.work-row__link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.work-row__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-muted) 80%, var(--border));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 8%, transparent);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.work-row__link:hover .work-row__thumb {
  transform: scale(1.04);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 14%, transparent);
}

.work-row__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.work-row__thumb:hover::before {
  opacity: 0.06;
}

.work-row__thumb img,
.work-row__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-row__thumb--welcomemn {
  background: linear-gradient(
    135deg,
    var(--work-welcomemn-a) 0%,
    var(--work-welcomemn-b) 70%
  );
  position: relative;
}

.work-row__thumb--welcomemn:has(video)::after {
  display: none;
}

/* Orange frame with the video bleeding off the bottom-right edge */
.work-row__thumb--welcomemn:has(video) {
  background: #FF6B35;
  overflow: hidden;
}

.work-row__thumb--welcomemn .work-thumb-video {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 105%;
  height: 105%;
  object-fit: cover;
  object-position: 0% 50%;
  border-radius: 8px;
}

.work-row__thumb--welcomemn::after {
  content: "MN";
  position: absolute;
  z-index: 2;
  right: 10%;
  bottom: 12%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.04em;
}

.work-row__thumb--pluscloset {
  background: linear-gradient(
    155deg,
    var(--work-plus-a) 0%,
    var(--work-plus-b) 65%
  );
  position: relative;
}

.work-row__thumb--pluscloset:has(img)::after {
  display: none;
}

.work-row__thumb--pluscloset::after {
  content: "+";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
}

.work-row__thumb--soon {
  background: repeating-linear-gradient(
    -11deg,
    var(--bg-muted),
    var(--bg-muted) 10px,
    var(--border) 10px,
    var(--border) 20px
  );
  background-size: auto;
  background-repeat: repeat;
  opacity: 0.85;
}

.work-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.work-row__meta {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-row__title {
  margin: 0 0 0.35rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.work-row__line {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.work-row__stat {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 12px;
}

.work-row__go {
  display: none;
}

/* --- Making --- */
.making-band {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--border);
}

.making-band__label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.making-band__sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 2rem;
}

.making-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2.5rem;
}

.making-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  cursor: none;
}

a.making-item:hover .making-item__title {
  color: var(--accent);
}

.making-item__title {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: var(--text);
  transition: color 0.15s ease;
}

.making-item__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .making-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .making-grid {
    grid-template-columns: 1fr;
  }
}

/* --- About --- */
.about-block {
  margin-top: 0;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--border);
}

.about-block__label {
  margin: 0 0 1rem;
  padding-left: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-block__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.about-block__photo-col {
  padding-top: 1.8rem;
  margin: 0;
}

.about-block__photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 97%;
  display: block;
  border: 1px solid var(--border);
}

.about-block__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-block__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.about-block__nickname {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.about-block__nickname + p {
  margin-top: 0.35rem;
}

.about-block__body p {
  margin: 0 0 1rem;
}

.about-block__body p:last-child {
  margin-bottom: 0;
}

.about-block__body a {
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.15s ease,
    text-decoration-style 0.15s ease;
}

.about-block__body a:hover {
  color: var(--accent);
  text-decoration-style: solid;
}

/* --- Reading (flat book cards) --- */
.reading-block {
  margin-top: 0;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--border);
}

.reading-block__label {
  margin: 0 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reading-block__sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.5rem;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1rem 0;
  align-items: stretch;
}

.reading-grid .book-wrapper {
  flex: 1;
}

.book-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.book-wrapper:hover {
  transform: scale(1.03);
}

.book-front {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 68%;
  display: inline-block;
}

.book-front img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  box-shadow: none;
}

.book-wrapper:first-child .book-front {
  overflow: hidden;
}

.book-wrapper:first-child .book-front img {
  object-fit: cover;
  object-position: 50% 25%;
  width: 100%;
  height: 100%;
}

.book-thought {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 3;
}

.book-wrapper:hover .book-thought {
  opacity: 1;
}

.book-thought p {
  color: white;
  font-style: italic;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.book-title {
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.book-author {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  text-align: center;
}

.ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }

  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}

/* --- Writing --- */
.writing-teaser {
  margin-top: 0;
  padding-top: var(--section-gap);
  border-top: 1px solid var(--border);
}

.writing-teaser__label {
  margin: 0 0 0.65rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.writing-page {
  border-top: none;
  padding-top: 4rem;
}

.writing-page .writing-teaser__sub {
  margin-bottom: 3rem;
}

.writing-page .writing-list__item {
  margin-bottom: 2.25rem;
}

.writing-teaser__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.35rem;
}

.writing-teaser__head .writing-teaser__label {
  margin: 0;
}

.writing-teaser:not(.writing-page) .writing-teaser__head {
  margin-bottom: 0.35rem;
}

.writing-teaser__head-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.writing-teaser__head-link:hover {
  color: var(--accent);
}

.writing-teaser__head-link:hover .writing-arrow {
  transform: translateX(4px);
}

.writing-teaser__sub {
  margin: 0 0 1.5rem;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 55%, transparent);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.subscribe-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.writing-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.writing-list__link:hover .writing-arrow {
  transform: translateX(4px);
}

.writing-list__sub {
  margin: 0.4rem 0 0;
  padding-left: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.writing-list__item {
  margin: 0 0 0.55rem;
  padding-bottom: 0.4rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.writing-list__item:last-child {
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
}

.writing-list__item:hover {
  background: rgba(92, 122, 95, 0.05);
}

.writing-list__link {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.writing-list__link:hover {
  color: var(--accent);
}

.writing-list__link:hover .writing-list__date {
  color: var(--accent);
}

.writing-list__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--accent);
}

.writing-list__title {
  flex-shrink: 1;
  min-width: 0;
}

.writing-list__leader {
  flex: 1 1 auto;
  min-width: 0.75rem;
  height: 0;
  align-self: flex-end;
  margin-bottom: 0.28em;
  border-bottom: 1px dotted var(--text-muted);
  opacity: 0.65;
}

.writing-list__date {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.writing-teaser__icon-wrap {
  margin: 0.85rem 0 0;
}

.writing-teaser__icon-link {
  display: inline-flex;
  color: var(--text-muted);
  text-decoration: none;
}

.writing-teaser__icon-link:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  main {
    padding: 0 20px 1rem;
  }

  .intro__headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-row__thumb {
    order: 1;
    width: 100%;
  }

  .work-row__body {
    order: 2;
    width: 100%;
  }

  .about-block__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: flex-start;
  }

  .about-block__photo {
    width: 100%;
    max-height: 280px;
  }

  .writing-list__link {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.2rem 0.45rem;
  }

  .writing-list__dot {
    grid-column: 1;
    grid-row: 1;
  }

  .writing-list__title {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .writing-list__leader {
    display: none;
  }

  .writing-list__date {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.8125rem;
    line-height: 1.3;
  }
}

/* --- Case study: WelcomeMN --- */
body.case-study main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.cs-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad-x);
}

.cs-back {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--content-pad-x) 0;
}

.cs-back a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cs-back a:hover {
  color: var(--accent);
}

.cs-hero {
  padding-top: 1.5rem;
}

.cs-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cs-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.cs-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 560px;
}

.cs-live-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-hero-card {
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

.cs-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-placeholder-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin: 4rem 0 1rem;
  display: block;
}

.cs-body p {
  margin: 0 0 1.25rem;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.cs-finding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0;
}

.cs-finding-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 0;
}

.cs-finding-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cs-finding-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
}

.cs-finding-card p {
  font-size: 14px;
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.cs-finding-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
}

.cs-finding-quote p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.cs-finding-quote__attr {
  font-size: 13px;
  color: var(--text-muted);
}

.cs-live-link-wrap {
  margin: 2rem 0;
}

.cs-finding-implication {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.cs-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.cs-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

/* Cap UI screenshots (1024px native) so they aren't upscaled/blurred */
.cs-artifact-thumb--ui {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cs-pair-figure {
  margin: 0;
}

.cs-image-pair .cs-artifact-thumb img {
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.cs-pair-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cs-decision {
  margin: 2.5rem 0;
}

.cs-decision h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

/* Decision with a phone screenshot beside the text */
.cs-decision--media {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: center;
}

.cs-decision--media.cs-decision--reverse {
  grid-template-columns: 200px 1fr;
}

.cs-decision__text p {
  margin-bottom: 0;
}

/* Phone-frame screenshots (402x874 native) */
.cs-artifact-thumb.cs-phone {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 20px;
}

.cs-artifact-thumb.cs-phone img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 20px;
}

.cs-phone-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.cs-final-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.cs-body .cs-next {
  margin: 5rem 0 2rem;
  font-size: 1rem;
}

.cs-next a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.cs-next a:hover,
.cs-next a:focus-visible {
  color: var(--text);
}

.cs-stat {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.cs-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.cs-stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.cs-quote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.cs-problem-statement {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.cs-problem-statement__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cs-problem-statement p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.cs-callout {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.cs-callout p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.cs-quote cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .cs-finding-grid,
  .cs-image-pair,
  .cs-final-grid {
    grid-template-columns: 1fr;
  }

  .cs-decision--media,
  .cs-decision--media.cs-decision--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-decision--reverse .cs-decision__text {
    order: -1;
  }
}

/* --- Photo strip --- */
.photo-strip-section {
  padding-top: var(--section-gap);
  border-top: 1px solid var(--border);
}

.photo-strip__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.photo-strip__sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.5rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.photo-strip__item {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.photo-strip__item img,
img.photo-strip__item {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
}

@media (max-width: 600px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bio-accent {
  color: var(--accent);
}

.bio-and {
  color: var(--text-2);
}

/* Currently row alignment */
.intro__currently--row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.work-row__tags {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.6rem;
}
.making-tag-liz {
  color: var(--accent);
  font-size: 0.78rem;
}
.making-tag-sep {
  color: var(--accent);
  font-size: 0.78rem;
  margin: 0 0.1rem;
}

/* Book glass card */
.book-glass {
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

[data-scheme="light"] .book-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  border: none;
}

[data-scheme="dark"] .book-glass {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: none;
}

/* Dark mode: true black */
[data-scheme="dark"] body {
  background: #000;
}

.cs-hero-placeholder,
.cs-image-placeholder,
.cs-finding-card,
.cs-hero-card img,
.cs-body img:not(.cs-lightbox__img),
video {
  position: relative;
  z-index: 2;
}

.cs-artifact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
  align-items: center;
}

.cs-artifact-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--bg-muted);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cs-artifact-thumb img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.cs-artifact-thumb--wide {
  margin-top: 1.5rem;
}

.cs-artifact-thumb--wide img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: var(--bg-muted);
}

.cs-body p.cs-image-caption {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}

.cs-artifact-thumb__hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.cs-artifact-thumb:hover,
.cs-artifact-thumb:focus-visible {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.cs-artifact-thumb:hover img,
.cs-artifact-thumb:focus-visible img {
  transform: scale(1.03);
}

.cs-artifact-thumb:hover .cs-artifact-thumb__hint,
.cs-artifact-thumb:focus-visible .cs-artifact-thumb__hint {
  opacity: 1;
  transform: translateY(0);
}

.cs-artifact-copy__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.cs-artifact-copy__body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.cs-lightbox[hidden] {
  display: none;
}

.cs-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.cs-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}

.cs-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.cs-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cs-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 700px) {
  .cs-artifact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (hover: none) {
  .cs-artifact-thumb__hint {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-artifact-thumb,
  .cs-artifact-thumb img,
  .cs-artifact-thumb__hint {
    transition: none;
  }
}

/* Light mode: grain texture */
[data-scheme="light"] .grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("../images/grain.png");
  background-repeat: repeat;
  background-size: 400px 400px;
  mix-blend-mode: multiply;
}
