/* Display font is now Playfair Display (Google Fonts) — loaded via <link> in HTML.
   The legacy Canopee / Domaine condensed faces had a malformed G and O. */

:root {
  --paper: #d6ccbd;
  --paper-light: #eadfce;
  --paper-warm: #c7b8a4;
  --ink: #1a1916;
  --ink-soft: #3e3933;
  --muted: #72695f;
  --rule: rgba(26, 25, 22, 0.42);
  --rule-strong: rgba(26, 25, 22, 0.76);
  --red: #a33128;
  --red-hot: #d15a35;
  --blue: #253f54;
  --green: #46513c;
  --paper-shadow: 0 28px 70px rgba(26, 25, 22, 0.22);
  --display: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --menu-control-size: 2.55rem;
  --menu-control-top: 0.7rem;
  --menu-control-right: max(0.85rem, calc((100vw - min(100vw, 112rem)) / 2 + 0.85rem));
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(163, 49, 40, 0.16), transparent 20rem),
    radial-gradient(circle at 92% 12%, rgba(37, 63, 84, 0.18), transparent 22rem),
    linear-gradient(135deg, var(--paper-light), var(--paper) 46%, var(--paper-warm));
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 210px 210px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(163, 49, 40, 0.22), transparent 23rem),
    var(--ink);
  transition: opacity 650ms ease, visibility 650ms ease;
}

.intro.done {
  opacity: 0;
  visibility: hidden;
}

.intro-paper {
  position: relative;
  width: min(45rem, 78vw);
  aspect-ratio: 1.74;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--ink);
  /* Charred corners + ember bloom on the paper itself, layered above the kraft tint */
  background:
    radial-gradient(circle at 96% 4%, rgba(255, 200, 110, 0.72) 0%, rgba(209, 90, 53, 0.55) 8%, rgba(26, 25, 22, 0.55) 18%, rgba(26, 25, 22, 0.0) 32%),
    radial-gradient(circle at 4% 96%, rgba(255, 188, 88, 0.55) 0%, rgba(163, 49, 40, 0.5) 9%, rgba(26, 25, 22, 0.45) 18%, rgba(26, 25, 22, 0.0) 30%),
    radial-gradient(circle at 4% 4%, rgba(26, 25, 22, 0.40) 0%, rgba(26, 25, 22, 0.12) 9%, transparent 18%),
    radial-gradient(circle at 96% 96%, rgba(26, 25, 22, 0.40) 0%, rgba(26, 25, 22, 0.12) 9%, transparent 18%),
    linear-gradient(180deg, rgba(255, 248, 226, 0.45), rgba(214, 204, 189, 0)),
    var(--paper);
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.58),
    0 0 4rem rgba(209, 90, 53, 0.18);
  transform: translateY(-64vh) rotate(7deg) scale(0.62);
  animation: paperEntry 1180ms var(--ease) forwards;
}

/* Top + bottom torn ember edges */
.intro-paper::before,
.intro-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.1rem;
  background:
    radial-gradient(1.2rem 0.7rem at 3% 0, transparent 54%, rgba(26, 25, 22, 0.75) 56%, transparent 70%),
    radial-gradient(1.8rem 0.85rem at 16% 0, transparent 54%, rgba(163, 49, 40, 0.82) 56%, transparent 72%),
    radial-gradient(1.5rem 0.75rem at 30% 0, transparent 54%, rgba(26, 25, 22, 0.72) 56%, transparent 72%),
    radial-gradient(2rem 0.9rem at 49% 0, transparent 54%, rgba(209, 90, 53, 0.78) 56%, transparent 74%),
    radial-gradient(1.35rem 0.7rem at 70% 0, transparent 54%, rgba(26, 25, 22, 0.72) 56%, transparent 72%),
    radial-gradient(1.8rem 0.8rem at 91% 0, transparent 54%, rgba(163, 49, 40, 0.75) 56%, transparent 72%);
  opacity: 0.85;
  animation: burnFlicker 760ms steps(2, end) 6;
}

.intro-paper::before {
  top: -0.2rem;
}

.intro-paper::after {
  bottom: -0.2rem;
  transform: rotate(180deg);
}

.intro-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
}

.intro-bar,
.intro-line {
  height: 2px;
  background: var(--ink);
}

@keyframes paperEntry {
  52% {
    transform: translateY(0) rotate(-3deg) scale(0.9);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes burnFlicker {
  50% {
    opacity: 0.55;
    filter: blur(0.2px) drop-shadow(0 0 14px rgba(209, 90, 53, 0.62));
  }
}

.site-shell {
  width: min(100%, 112rem);
  max-width: 100vw;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  border-left: 1px solid var(--rule-strong);
  border-right: 1px solid var(--rule-strong);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.075) 1px, transparent 1px) 0 0 / calc(100% / 16) 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    var(--paper);
}

.topline,
.masthead,
.section-tabs,
.hero,
.hero-subline,
.work-strip,
.page-lede,
.work-board,
.case-study-page,
.about-page,
.contact-page,
.footer,
.folio-strip,
.section-banner {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  min-width: 0;
}

.topline {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* clock to the left so it doesn't collide with the fixed menu button */
  padding-right: calc(var(--menu-control-size) + 1.4rem);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

#clock {
  position: relative;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--rule);
  background: rgba(255, 251, 235, 0.55);
  letter-spacing: 0.06em;
}

#clock::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--red, #a33128);
  box-shadow: 0 0 6px rgba(209, 90, 53, 0.65);
  animation: clockBlink 1.6s steps(2, end) infinite;
  vertical-align: 0.05em;
}

@keyframes clockBlink {
  50% { opacity: 0.35; }
}

.masthead {
  min-height: 8rem;
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) 13rem;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule-strong);
  min-width: 0;
}

.brand-logo {
  width: 5.6rem;
  height: 5.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 420ms var(--ease), background 420ms ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  transform: rotate(-2deg) scale(1.03);
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.brand-logo img {
  width: 4.65rem;
  height: 4.65rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.journal-name,
.masthead-contact {
  text-decoration: none;
}

.journal-name {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
}

.masthead-contact {
  justify-self: center;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.menu-button {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 0.85rem) !important;
  right: max(0.85rem, calc((100vw - min(100vw, 112rem)) / 2 + 0.85rem)) !important;
  z-index: 5000;
  width: var(--menu-control-size);
  height: var(--menu-control-size);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  border: 1px solid rgba(26, 25, 22, 0.32);
  padding: 0.42rem;
  background: rgba(245, 240, 226, 0.55);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
  box-shadow: 0 0.25rem 0.65rem rgba(26, 25, 22, 0.08);
  cursor: pointer;
  transform: translate3d(0, 0, 0);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 520ms var(--ease), opacity 320ms ease, background 320ms ease;
}

.menu-button:hover span:nth-child(1),
.menu-button:focus-visible span:nth-child(1) {
  transform: none;
  background: var(--red);
}

.menu-button:hover span:nth-child(2),
.menu-button:focus-visible span:nth-child(2) {
  transform: none;
}

.menu-button:hover span:nth-child(3),
.menu-button:focus-visible span:nth-child(3) {
  transform: none;
  background: var(--red);
}

.section-tabs {
  position: sticky;
  top: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(214, 204, 189, 0.9);
  backdrop-filter: blur(10px);
}

.section-tabs a {
  min-height: 2.8rem;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  border-right: 1px solid var(--rule);
  font-family: var(--display);
  text-decoration: none;
  text-transform: uppercase;
}

.section-tabs a:last-child {
  border-right: 0;
}

.section-tabs a span {
  position: relative;
  display: inline-block;
  min-width: 0;
  transition: color 260ms ease;
}

.section-tabs a span::after,
.hover-cut > span::after {
  content: none;
  display: none;
}

.section-tabs a:hover span,
.section-tabs a:focus-visible span,
.section-tabs a.active span,
.hover-cut:hover > span,
.hover-cut:focus-visible > span {
  transform: none;
}

.section-tabs a:hover span::after,
.section-tabs a:focus-visible span::after,
.section-tabs a.active span::after,
.hover-cut:hover > span::after,
.hover-cut:focus-visible > span::after {
  transform: none;
}

.section-tabs strong {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.hover-cut {
  text-decoration: none;
}

.hover-cut > span {
  position: relative;
  display: inline-block;
  transition: color 260ms ease, opacity 260ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 2rem;
  min-height: 17rem;
  border-bottom: 1px solid var(--rule-strong);
  min-width: 0;
}

.hero-word {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.hero-word h1 {
  margin: 0;
  width: 100%;
  font-family: var(--display);
  font-size: clamp(5rem, 12.2vw, 13rem);
  line-height: 0.74;
  text-transform: uppercase;
}

.hero-note {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 1.25rem;
  padding-left: 2rem;
  border-left: 1px solid var(--rule-strong);
}

.hero-note p {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  font-size: 1.14rem;
  line-height: 1.42;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  overflow: visible;
}

.hero-note p span {
  float: left;
  padding-right: 0.45rem;
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.78;
}

.stamp-image {
  width: 10.2rem;
  max-width: 100%;
  object-fit: contain;
  filter: sepia(0.2) contrast(1.04);
  mix-blend-mode: multiply;
}

.stamp-small {
  justify-self: end;
  transform: rotate(-7deg);
}

.hero-subline {
  min-height: 4.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-transform: uppercase;
}

.hero-subline span + span::before {
  content: "/";
  margin-right: 2rem;
  color: var(--red);
}

.work-strip {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 1.4rem;
  min-width: 0;
  max-width: 100%;
  border-bottom: 1px solid var(--rule-strong);
  padding-top: 1.55rem;
  padding-bottom: 1.55rem;
}

.strip-intro {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--rule);
}

.strip-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
}

.strip-intro p,
.work-board-intro {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

.drag-arrows {
  display: flex;
  gap: 0.55rem;
}

.drag-arrows button {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  transition: transform 300ms var(--ease), background 300ms ease;
}

.drag-arrows button:hover,
.drag-arrows button:focus-visible {
  transform: translateY(-0.15rem);
  background: rgba(163, 49, 40, 0.08);
  outline: none;
}

.project-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 18rem;
  align-items: stretch;
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 0.75rem;
  cursor: grab;
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.project-rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.project-card {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--rule);
  background: rgba(234, 223, 206, 0.42);
  transition: transform 420ms var(--ease), background 360ms ease, box-shadow 360ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-0.4rem) rotate(-0.45deg);
  background: rgba(239, 231, 217, 0.9);
  box-shadow: var(--paper-shadow);
}

.project-card .project-main {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.75rem;
  padding: 0.82rem 0.82rem 0.4rem;
  text-decoration: none;
}

.card-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  margin: 0 0.82rem 0.82rem;
  border: 1px solid var(--rule);
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 320ms var(--ease), background 320ms ease;
}

.card-visit:hover,
.card-visit:focus-visible {
  transform: translateY(-0.12rem);
  background: var(--red);
  outline: none;
}

.project-card header,
.project-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.project-card header img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.project-card h3 {
  min-height: 4.5rem;
  margin: 0;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.84;
  text-transform: uppercase;
}

.project-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--rule);
  padding: 0.72rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    #e8ddcb;
  box-sizing: border-box;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: multiply;
  transition: transform 700ms var(--ease);
}

.project-card:hover .project-image img,
.project-card:focus-within .project-image img {
  transform: scale(1.045) rotate(-0.5deg);
}

.project-card footer p {
  margin: 0;
  max-width: 11.5rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.02;
}

.project-card footer span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--ink);
  color: var(--red);
  font-family: var(--display);
}

.page-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-strong);
}

.black-title {
  display: grid;
  align-items: end;
  min-height: 16rem;
  padding: 1.25rem 1.35rem 0.9rem;
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, 0.18);
}

.black-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 12rem);
  line-height: 0.72;
  text-transform: uppercase;
}

.lede-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
}

.lede-copy p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.36;
  text-align: justify;
  hyphens: auto;
}

.text-link {
  width: max-content;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link::after {
  content: " →";
  color: var(--red);
}

.work-board {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.35rem;
  min-width: 0;
  max-width: 100%;
  border-bottom: 1px solid var(--rule-strong);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.work-board-intro {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding-right: 1rem;
  border-right: 1px solid var(--rule);
}

.work-board-intro p,
.work-board-intro strong {
  margin: 0;
  font-weight: 400;
}

.work-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  min-width: 0;
  max-width: 100%;
}

.work-detail-card {
  border: 1px solid var(--rule);
  background: rgba(234, 223, 206, 0.38);
  transition: transform 420ms var(--ease), box-shadow 420ms ease, background 420ms ease;
}

.work-detail-card:hover,
.work-detail-card:focus-within {
  transform: translateY(-0.35rem) rotate(-0.25deg);
  background: rgba(239, 231, 217, 0.9);
  box-shadow: var(--paper-shadow);
}

.work-detail-main {
  display: grid;
  grid-template-columns: minmax(16rem, 1.08fr) minmax(13rem, 0.92fr);
  gap: 0;
  min-height: 0;
  text-decoration: none;
  align-items: center;
}

.work-detail-main > * {
  min-width: 0;
}

.detail-poster {
  display: grid;
  place-items: center;
  align-self: center;
  width: 100%;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  padding: 0.9rem;
  background: #e7dcc9;
  text-decoration: none;
  aspect-ratio: 1;
  min-height: 0;
  box-sizing: border-box;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: multiply;
  transition: transform 760ms var(--ease);
}

.work-detail-card:hover .detail-poster img,
.work-detail-card:focus-within .detail-poster img {
  transform: scale(1.04) rotate(-0.4deg);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.72rem;
  padding: 1.2rem 1.25rem;
  min-width: 0;
  overflow: hidden;
}

.detail-label,
.section-kicker {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.detail-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.75rem, 5vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.detail-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.38;
  text-align: justify;
  hyphens: auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.tag-row span {
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.detail-actions a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.38rem 0.72rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 300ms var(--ease), background 300ms ease, color 300ms ease;
}

.detail-actions a:first-child {
  color: var(--paper);
  background: var(--ink);
}

.detail-actions a:hover,
.detail-actions a:focus-visible {
  transform: translateY(-0.14rem);
  color: var(--paper);
  background: var(--red);
  outline: none;
}

.research-board {
  border-top: 1px solid var(--rule-strong);
}

.case-study-page {
  --case-accent: var(--red);
  padding-top: 1.5rem;
  padding-bottom: 0;
}

.case-study {
  border-bottom: 1px solid var(--rule-strong);
}

.case-hero {
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem 0 1.75rem;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 1rem;
}

.case-hero.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.case-kicker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.case-kicker span {
  min-width: 0;
}

.case-kicker span:nth-child(2) {
  color: var(--case-accent);
  text-align: center;
}

.case-kicker span:last-child {
  text-align: right;
}

.case-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.case-title-grid p {
  margin: 0 0 0.35rem;
  color: var(--case-accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.case-title-grid h1 {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.85rem, 6.4vw, 7.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
}

.case-title-grid h2 {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.4vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.case-subtitle,
.case-title-grid .deck {
  max-width: 46rem;
  margin: 0.75rem 0 0 !important;
  color: var(--ink-soft) !important;
  font-family: var(--body) !important;
  font-size: clamp(1.08rem, 1.55vw, 1.55rem) !important;
  line-height: 1.24 !important;
  text-transform: none !important;
}

.case-title-grid aside {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: rgba(234, 223, 206, 0.42);
}

.case-title-grid aside > span {
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.case-hero-image,
.case-image-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  padding: 0.9rem;
  background: rgba(234, 223, 206, 0.5);
  box-sizing: border-box;
}

.case-hero-image::after,
.case-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(90deg, rgba(26, 25, 22, 0.08) 1px, transparent 1px) 0 0 / 7px 7px;
  mix-blend-mode: multiply;
}

.case-hero-image {
  box-shadow: var(--paper-shadow);
  max-width: 100%;
  max-height: 55vh;
  margin: 1.25rem auto 0;
  overflow: hidden;
}

.case-hero-image img {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  object-position: center center;
  display: block;
  mix-blend-mode: multiply;
  filter: sepia(0.1) contrast(1.03) saturate(0.92);
}

.case-image-card img {
  mix-blend-mode: multiply;
  filter: sepia(0.1) contrast(1.03) saturate(0.92);
}

.case-hero-image figcaption,
.case-image-card figcaption {
  position: relative;
  z-index: 2;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  background: rgba(234, 223, 206, 0.86);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.case-stack,
.impact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.case-stack span,
.impact-strip span {
  border: 1px solid var(--rule);
  padding: 0.42rem 0.6rem;
  background: rgba(234, 223, 206, 0.42);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.case-section {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.35rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule-strong);
  min-height: 0;
}

.case-section-label {
  padding-right: 1rem;
  border-right: 1px solid var(--rule);
  color: var(--case-accent);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.case-lead-copy {
  column-count: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--rule);
}

.case-deep-dive-copy {
  column-count: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--rule);
}

.case-deep-dive-copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.42;
  text-align: justify;
  hyphens: auto;
}

.case-deep-dive-copy p + p {
  text-indent: 1.5em;
}

.case-lead-copy p + p {
  text-indent: 1.5em;
}

.case-lead-copy p,
.case-closing p {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.34;
}

.dropcap::first-letter {
  float: left;
  margin: 0.08rem 0.5rem 0 0;
  padding: 0.15rem 0.42rem 0.2rem;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 0.78;
}

.blueprint-grid,
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.blueprint-grid article,
.anatomy-grid article,
.challenge-list article {
  border: 1px solid var(--rule);
  padding: 1rem;
  background: rgba(234, 223, 206, 0.38);
}

.blueprint-grid h3,
.anatomy-grid h3,
.challenge-list h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.blueprint-grid ul,
.blueprint-grid ol {
  margin: 0;
  padding-left: 1.1rem;
}

.blueprint-grid li {
  margin: 0.35rem 0;
  line-height: 1.22;
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.9rem;
}

.case-image-card {
  min-height: 0;
  overflow: hidden;
}

.case-image-card img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.case-image-card.wide {
  display: grid;
  align-content: center;
}

.evidence-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.case-visual-spread.is-reversed .evidence-spread {
  grid-template-columns: minmax(16rem, 0.65fr) minmax(0, 1.35fr);
}

.case-visual-spread.is-reversed .case-image-card {
  order: 2;
}

.case-visual-spread.is-reversed .evidence-notes {
  order: 1;
}

.evidence-spread .case-image-card img {
  max-height: none;
  object-position: center;
}

.evidence-notes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--case-accent);
  padding: 1.15rem;
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.05) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(234, 223, 206, 0.42);
}

.evidence-notes h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.evidence-notes ul {
  margin: 0;
  padding-left: 1rem;
}

.evidence-notes li {
  margin: 0.45rem 0;
  font-size: 0.98rem;
  line-height: 1.28;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

.mini-flow span {
  border: 1px solid var(--rule);
  padding: 0.32rem 0.45rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1;
  text-transform: uppercase;
}

.diagram-board {
  display: grid;
  grid-template-columns: minmax(15rem, 0.62fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 25%, rgba(163, 49, 40, 0.08), transparent 16rem),
    linear-gradient(90deg, rgba(26, 25, 22, 0.06) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(234, 223, 206, 0.52);
}

.diagram-core {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  border: 2px solid var(--ink);
  padding: 1rem;
  background: rgba(239, 231, 217, 0.8);
}

.diagram-core span {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.85;
  text-transform: uppercase;
}

.diagram-core strong {
  color: var(--case-accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
}

.diagram-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.diagram-node {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-height: 5rem;
  border: 1px solid var(--rule);
  padding: 0.75rem;
  background: rgba(255, 248, 226, 0.24);
}

.diagram-node span {
  color: var(--case-accent);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.diagram-node strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-image-grid .case-image-card.wide {
  grid-column: span 2;
}

.case-section > .case-image-card.wide {
  grid-column: auto;
  width: 100%;
}

.anatomy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.anatomy-grid article > span {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--case-accent);
  font-family: var(--display);
  font-size: 2rem;
}

.anatomy-grid p,
.challenge-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.3;
}

.challenge-list {
  display: grid;
  gap: 0.8rem;
}

.challenge-list article {
  display: grid;
  grid-template-columns: minmax(11rem, 0.4fr) repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.challenge-list h3 {
  margin-bottom: 0;
}

.challenge-list strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.impact-strip span {
  flex: 1 1 12rem;
  min-height: 4rem;
  display: grid;
  align-items: center;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.05;
}

.case-closing > div {
  max-width: 55rem;
}

.case-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.3rem 0 1.6rem;
  font-family: var(--display);
  text-align: center;
  text-transform: uppercase;
}

.case-next a {
  min-height: 3.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  padding: 0.65rem;
  text-decoration: none;
}

.case-missing {
  padding: 3rem 0;
}

.case-missing h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.8;
  text-transform: uppercase;
}

.about-page,
.contact-page {
  padding-top: 0;
  padding-bottom: 0;
}

.about-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.75fr) minmax(0, 1fr) 10rem;
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.newspaper-cutting {
  margin: 0;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: rgba(234, 223, 206, 0.5);
  transform: rotate(-1.2deg);
  box-shadow: var(--paper-shadow);
}

.newspaper-cutting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.about-headline {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.about-headline h1,
.contact-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.8rem, 9.5vw, 10.5rem);
  line-height: 0.74;
  text-transform: uppercase;
}

.about-headline p,
.contact-hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.25rem;
  line-height: 1.28;
}

.about-stamp {
  align-self: center;
  justify-self: center;
  transform: rotate(8deg);
}

.builder-grid {
  display: grid;
  grid-template-columns: 4rem minmax(18rem, 1fr) minmax(20rem, 1.15fr) minmax(13rem, 0.68fr);
  border-bottom: 1px solid var(--rule-strong);
}

.side-label {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--rule);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.about-copy,
.notes-panel,
.scratch-panel {
  padding: 2rem;
  border-right: 1px solid var(--rule);
}

.scratch-panel {
  border-right: 0;
}

.section-kicker {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}

.about-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.about-copy p {
  font-size: 1.08rem;
  line-height: 1.42;
  text-align: justify;
  hyphens: auto;
}

.note-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.note-row span {
  font-family: var(--display);
  font-size: 1.7rem;
}

.note-row h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.note-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.25;
}

.scratch-panel ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
  font-family: cursive;
  font-size: 1.42rem;
  line-height: 1.65;
}

.scratch-panel li {
  padding: 0.1rem 0;
  border-bottom: 1px solid rgba(163, 49, 40, 0.3);
  transform: rotate(-1deg);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.contact-stamp {
  justify-self: center;
  width: 11rem;
  transform: rotate(-8deg);
}

.contact-columns {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(13rem, 0.62fr) minmax(19rem, 0.9fr);
  border-bottom: 1px solid var(--rule-strong);
}

.contact-column {
  min-height: 28rem;
  padding: 2rem;
  border-right: 1px solid var(--rule);
}

.contact-column:last-child {
  border-right: 0;
}

.contact-column p {
  margin: 1.25rem 0 0;
  max-width: 31rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.42;
  text-align: justify;
  hyphens: auto;
}

.email-link {
  display: inline-block;
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
  line-height: 0.9;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-socials,
.menu-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-socials {
  display: grid;
  gap: 0.9rem;
}

.footer-socials a,
.menu-socials a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  background: rgba(234, 223, 206, 0.54);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.25;
  outline: none;
  transition: border-color 280ms ease, background 280ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  background: rgba(239, 231, 217, 0.92);
}

.contact-form button {
  min-height: 3rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 320ms var(--ease), background 320ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-0.16rem);
  background: var(--red);
  outline: none;
}

.footer {
  padding-top: 0;
  padding-bottom: 0;
}

.marquee {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  max-width: none;
  animation: marqueeLoop 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 1rem 0.82rem 0;
}

.marquee span,
.marquee strong,
.marquee a,
.marquee i {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
}

.marquee strong,
.marquee a {
  padding: 0.15rem 0.55rem;
  color: var(--paper);
  background: var(--ink);
  transition: background 260ms ease, color 260ms ease;
}

.marquee a:hover,
.marquee a:focus-visible {
  background: var(--red);
  outline: none;
}

.marquee i {
  color: var(--red);
  font-size: 1.15rem;
}

@keyframes marqueeLoop {
  to {
    transform: translateX(-50%);
  }
}

.footer-row {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  text-transform: uppercase;
}

.menu-curtain {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 6%, rgba(209, 90, 53, 0.14), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(214, 204, 189, 0.06), transparent 20rem),
    var(--ink);
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 720ms var(--ease), visibility 520ms;
}

.menu-curtain.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.menu-panel {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.menu-panel > a {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(4.2rem, 8vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: color 260ms ease, transform 420ms var(--ease);
}

.menu-curtain.active .menu-panel > a {
  animation: menuLinkIn 680ms var(--ease) forwards;
}

.menu-curtain.active .menu-panel > a:nth-child(1) {
  animation-delay: 70ms;
}

.menu-curtain.active .menu-panel > a:nth-child(2) {
  animation-delay: 130ms;
}

.menu-curtain.active .menu-panel > a:nth-child(3) {
  animation-delay: 190ms;
}

.menu-curtain.active .menu-panel > a:nth-child(4) {
  animation-delay: 250ms;
}

.menu-panel > a > span::after {
  content: none;
  display: none;
}

.menu-panel > a:hover > span,
.menu-panel > a:focus-visible > span {
  transform: none;
}

.menu-panel > a:hover > span::after,
.menu-panel > a:focus-visible > span::after {
  transform: scaleX(0) rotate(-1.4deg);
}

.menu-panel > a.is-current > span::after,
.menu-panel > a.is-current:hover > span::after,
.menu-panel > a.is-current:focus-visible > span::after {
  transform: none;
}

.menu-panel > a.is-current {
  color: var(--paper-light);
}

.menu-panel > a:not(.is-current):hover,
.menu-panel > a:not(.is-current):focus-visible {
  color: rgba(234, 223, 206, 0.72);
  outline: none;
}

@keyframes menuLinkIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-close {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 0.85rem) !important;
  right: max(1rem, calc((100vw - min(100vw, 112rem)) / 2 + 2.5rem)) !important;
  z-index: 5100;
  width: var(--menu-control-size);
  height: var(--menu-control-size);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  left: 0.48rem;
  right: 0.48rem;
  top: 50%;
  height: 2px;
  background: var(--paper);
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

.menu-socials {
  justify-content: center;
  margin-top: 2rem;
}

.menu-socials a {
  color: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .masthead {
    grid-template-columns: 5.8rem minmax(0, 1fr);
  }

  .masthead-contact {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-note {
    grid-template-columns: 1fr auto;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 1.5rem 0;
  }

  .work-page-grid {
    grid-template-columns: 1fr;
  }

  .evidence-spread,
  .case-visual-spread.is-reversed .evidence-spread,
  .diagram-board {
    grid-template-columns: 1fr;
  }

  .case-visual-spread.is-reversed .case-image-card,
  .case-visual-spread.is-reversed .evidence-notes {
    order: initial;
  }

  .anatomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-list article {
    grid-template-columns: 1fr 1fr;
  }

  .builder-grid {
    grid-template-columns: 3.5rem 1fr 1fr;
  }

  .scratch-panel {
    grid-column: 2 / 4;
    border-top: 1px solid var(--rule);
  }

  .notes-panel {
    border-right: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --menu-control-size: 2.4rem;
    --menu-control-top: 0.55rem;
    --menu-control-right: 0.75rem;
  }

  .topline,
  .masthead,
  .section-tabs,
  .hero,
  .hero-subline,
  .work-strip,
  .page-lede,
  .work-board,
  .case-study-page,
  .about-page,
  .contact-page,
  .footer,
  .folio-strip,
  .section-banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .masthead {
    min-height: 6.2rem;
    grid-template-columns: 4.45rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .brand-logo {
    width: 4.15rem;
    height: 4.15rem;
  }

  .brand-logo img {
    width: 3.35rem;
    height: 3.35rem;
  }

  .journal-name {
    justify-self: start;
    font-size: clamp(2.25rem, 9vw, 3.2rem);
    text-align: left;
  }

  .section-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-tabs a {
    gap: 0.55rem;
  }

  .hero-word h1 {
    padding: 1.6rem 0 0.7rem;
  }

  .hero-note {
    grid-template-columns: 1fr;
  }

  .stamp-small {
    justify-self: start;
    width: 9rem;
  }

  .hero-subline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-subline span + span::before {
    margin-right: 0.8rem;
  }

  .work-strip,
  .work-board,
  .case-section,
  .page-lede,
  .about-cover,
  .contact-hero,
  .contact-columns {
    grid-template-columns: 1fr;
  }

  .strip-intro,
  .work-board-intro {
    grid-template-columns: 1fr auto auto;
    align-items: end;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 1rem;
  }

  .project-rail {
    grid-auto-columns: 78vw;
  }

  .lede-copy,
  .about-headline {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-right: 0;
  }

  .work-detail-card:nth-child(3n + 2),
  .work-detail-card:nth-child(3n + 2):hover,
  .work-detail-card:nth-child(3n + 2):focus-within {
    transform: none;
  }

  .work-detail-main {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .case-kicker,
  .case-title-grid,
  .blueprint-grid,
  .anatomy-grid,
  .case-image-grid,
  .diagram-nodes,
  .challenge-list article,
  .case-next {
    grid-template-columns: 1fr;
  }

  .case-kicker span,
  .case-kicker span:nth-child(2),
  .case-kicker span:last-child {
    text-align: left;
  }

  .case-title-grid h1 {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .case-title-grid aside {
    width: min(100%, 20rem);
  }

  .case-hero-image,
  .case-image-card,
  .case-image-card.wide {
    grid-column: auto;
    min-height: 0;
  }

  .case-section-label {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 0.75rem;
  }

  .case-lead-copy {
    column-count: 1;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .side-label {
    display: none;
  }

  .about-copy,
  .notes-panel,
  .scratch-panel {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 1.35rem 0;
  }

  .contact-column {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 1.35rem 0;
  }

  .contact-stamp,
  .about-stamp {
    justify-self: start;
    width: 8.8rem;
  }
}

@media (max-width: 520px) {
  :root {
    --menu-control-size: 2.3rem;
    --menu-control-top: 0.45rem;
    --menu-control-right: 0.65rem;
  }

  .topline {
    min-height: 2.35rem;
  }

  .masthead {
    grid-template-columns: 3.65rem minmax(0, 1fr) 2.85rem;
    gap: 0.65rem;
  }

  .brand-logo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .brand-logo img {
    width: 2.85rem;
    height: 2.85rem;
  }

  .journal-name {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .menu-button {
    width: var(--menu-control-size);
    height: var(--menu-control-size);
  }

  .section-tabs a {
    min-height: 2.55rem;
    gap: 0.35rem;
    font-size: 0.88rem;
  }

  .section-tabs strong {
    font-size: 0.68rem;
  }

  .project-card h3 {
    font-size: 2.35rem;
  }

  .hero-word h1 {
    font-size: clamp(3.15rem, 15vw, 3.85rem);
    line-height: 0.82;
    white-space: normal;
  }

  .hero-note p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-note p span {
    font-size: 3.8rem;
  }

  .stamp-small {
    width: 7.9rem;
  }

  .black-title {
    min-height: 11rem;
  }

  .detail-poster {
    min-height: 17rem;
  }

  .menu-panel > a {
    font-size: 4.1rem;
  }

  .footer-row {
    min-height: 3.4rem;
  }
}

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

  .intro {
    display: none;
  }
}

/* ========================================
   NEWSPAPER / MAGAZINE EDITORIAL SYSTEM
   ======================================== */

/* --- Editorial Meta --- */
.kicker {
  margin: 0 0 0.4rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kicker::before {
  content: "\25A0  ";
  color: var(--case-accent, var(--red));
}

.byline {
  margin: 0.55rem 0 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.byline strong {
  color: var(--ink);
  font-weight: 700;
}

.dateline {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.dateline::before {
  content: "\2014  ";
}

/* --- Folio / Running Header --- */
.folio-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.folio-strip .folio-section {
  font-weight: 700;
}

.folio-strip .folio-page {
  color: var(--muted);
}

/* --- Section Banner --- */
.section-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.section-banner::before,
.section-banner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
}

/* --- Deck / Subhead --- */
.deck {
  margin: 0.6rem 0 0;
  max-width: 48rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: var(--ink-soft);
}

/* --- Pull Quote --- */
.pull-quote {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-top: 3px solid var(--case-accent, var(--red));
  border-bottom: 1px solid var(--rule);
  background: rgba(234, 223, 206, 0.55);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  overflow-wrap: break-word;
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.1em;
  left: 0.35rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--case-accent, var(--red));
  opacity: 0.35;
  font-family: Georgia, serif;
}

.pull-quote p {
  margin: 0;
  text-indent: 1.2em;
}

.pull-quote .attribution {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  text-indent: 0;
}

/* --- Sidebar / Marginalia --- */
.sidebar-box {
  padding: 1rem;
  border: 1px solid var(--rule);
  background: rgba(234, 223, 206, 0.45);
}

.sidebar-box h4 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.sidebar-box p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: justify;
  hyphens: auto;
}

/* --- Newspaper Caption --- */
.editorial-caption {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.editorial-caption .caption-number {
  color: var(--red);
  font-weight: 700;
  margin-right: 0.35rem;
}

/* --- Article Rules & Spacing --- */
.article-rule {
  width: 100%;
  height: 1px;
  background: var(--rule-strong);
  margin: 1.25rem 0;
}

.article-rule-thick {
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 1rem 0;
}

.article-rule-double {
  width: 100%;
  height: 3px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 1rem 0;
}

/* --- Column Layout Utilities --- */
.columns-2 {
  column-count: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--rule);
}

.columns-3 {
  column-count: 3;
  column-gap: 2rem;
  column-rule: 1px solid var(--rule);
}

.columns-2 p + p,
.columns-3 p + p {
  text-indent: 1.5em;
}

/* --- Drop Cap Enhanced --- */
.drop-cap-large::first-letter {
  float: left;
  margin: 0.05rem 0.55rem 0 0;
  padding: 0.15rem 0.5rem 0.25rem;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--display);
  font-size: 4.8rem;
  line-height: 0.75;
}

/* --- Continued / Jump Line --- */
.jump-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

.jump-line::before,
.jump-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* --- Ornament / Decorative Divider --- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--rule-strong);
}

/* --- Volume / Issue Marker --- */
.volume-mark {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* --- Work Page: Newspaper Front Page Feel --- */
.work-detail-card {
  position: relative;
}

.work-detail-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--rule);
  pointer-events: none;
  opacity: 0.5;
}

/* --- Case Study Page: Magazine Feature Feel --- */
.case-study-page .case-hero {
  position: relative;
}

.case-hero-image figcaption {
  border-top: 2px solid var(--ink);
  padding: 0.55rem 0.8rem;
}

/* --- Blueprint Grid: Newspaper Box Feel --- */
.blueprint-grid article,
.anatomy-grid article {
  position: relative;
}

.blueprint-grid article::before,
.anatomy-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--case-accent, var(--red));
}

/* --- Impact Strip: Newspaper Banner Feel --- */
.impact-strip span {
  position: relative;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* --- Notes Panel: Newspaper Listicle Feel --- */
.note-row {
  position: relative;
}

.note-row::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 2.8rem;
  width: 3px;
  height: calc(100% - 0.7rem);
  background: var(--rule);
}

/* --- Closing Column: Signed Editorial Feel --- */
.case-closing > div p:last-child {
  margin-bottom: 0;
}

.case-closing .sign-off {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  text-align: right;
}

.case-closing .sign-off a {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(234, 223, 206, 0.62);
  transition: background 260ms ease, color 260ms ease, transform 260ms var(--ease);
}

.case-closing .sign-off a:hover,
.case-closing .sign-off a:focus-visible {
  color: var(--paper);
  background: var(--case-accent);
  transform: translateY(-0.12rem);
  outline: none;
}

.case-closing .sign-off svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* --- Folio inside padded containers stays flush --- */
.case-study-page .folio-strip,
.about-page .folio-strip,
.contact-page .folio-strip {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* --- Responsive Column Collapse --- */
@media (max-width: 860px) {
  .columns-2,
  .columns-3,
  .case-lead-copy,
  .case-deep-dive-copy {
    column-count: 1;
    column-rule: none;
  }

  .case-deep-dive-copy p + p,
  .case-lead-copy p + p {
    text-indent: 0;
  }

  .pull-quote {
    font-size: 1.15rem;
    padding: 1rem;
  }

  .section-banner {
    font-size: 1.3rem;
  }

  .folio-strip {
    font-size: 0.6rem;
  }

  .case-study-page .folio-strip,
  .about-page .folio-strip,
  .contact-page .folio-strip {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

/* ============================================================
   UI/UX OVERHAUL — interactive polish, menu morph, paper burn
   ============================================================ */

@property --burn {
  syntax: '<length-percentage>';
  initial-value: 0%;
  inherits: true;
}

/* ---- Hide legacy separate close button (replaced by morphing menu-button) ---- */
.menu-close {
  display: none !important;
}

/* ---- Menu button morphs hamburger <-> X ---- */
.menu-button {
  z-index: 5200 !important;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 320ms var(--ease),
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

/* ---- Menu button burn-in (envelope ignites on click) ---- */
.menu-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 188, 88, 0.95) 0%, rgba(209, 90, 53, 0.85) 30%, rgba(163, 49, 40, 0.65) 55%, rgba(26, 25, 22, 0.0) 75%);
  mix-blend-mode: screen;
  filter: blur(0.6px);
  z-index: 1;
  transition: opacity 220ms ease;
}

.menu-button.igniting::after {
  animation: menuButtonIgnite 620ms cubic-bezier(0.4, 0.05, 0.6, 1) forwards;
}

@keyframes menuButtonIgnite {
  0%   { opacity: 0; transform: scale(0.6); }
  35%  { opacity: 1; transform: scale(1.05); }
  70%  { opacity: 0.55; transform: scale(1.45); }
  100% { opacity: 0; transform: scale(1.85); }
}

/* Faint ember edge while igniting */
.menu-button.igniting {
  border-color: rgba(209, 90, 53, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 188, 88, 0.4) inset,
    0 0.4rem 1.4rem rgba(209, 90, 53, 0.35);
}

.menu-button::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 360ms ease, transform 460ms var(--ease), opacity 360ms ease;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: rotate(-1.5deg);
  background: rgba(245, 240, 226, 0.85);
  outline: none;
}

.menu-button:hover::before,
.menu-button:focus-visible::before {
  border-color: var(--rule-strong);
  opacity: 1;
  transform: scale(1.02);
}

/* keep span hover overrides idle (we no longer want the static color shift) */
.menu-button:hover span:nth-child(1),
.menu-button:focus-visible span:nth-child(1),
.menu-button:hover span:nth-child(3),
.menu-button:focus-visible span:nth-child(3) {
  background: var(--ink);
}

.menu-button span {
  position: relative;
  transform-origin: 50% 50%;
  transition:
    transform 320ms cubic-bezier(0.7, 0, 0.2, 1),
    opacity 200ms ease 0ms,
    background 220ms ease,
    width 320ms var(--ease);
}

/* Open state: morph to X */
body.menu-open .menu-button {
  background: rgba(26, 25, 22, 0.0);
  border-color: rgba(234, 223, 206, 0.55);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

body.menu-open .menu-button span {
  background: var(--paper);
}

body.menu-open .menu-button span:nth-child(1) {
  /* span gap is 0.32rem + span height 2px (≈ 0.125rem) ≈ 0.445rem between center lines */
  transform: translateY(0.445rem) rotate(45deg);
}

body.menu-open .menu-button span:nth-child(2) {
  transform: scaleX(0.05);
  opacity: 0;
  transition:
    transform 160ms cubic-bezier(0.7, 0, 0.2, 1),
    opacity 120ms ease;
}

body.menu-open .menu-button span:nth-child(3) {
  transform: translateY(-0.445rem) rotate(-45deg);
}

body.menu-open .menu-button:hover span:nth-child(1),
body.menu-open .menu-button:focus-visible span:nth-child(1) {
  background: var(--paper-light);
}

body.menu-open .menu-button:hover span:nth-child(3),
body.menu-open .menu-button:focus-visible span:nth-child(3) {
  background: var(--paper-light);
}

body.menu-open .menu-button:hover {
  transform: rotate(8deg);
}

/* ---- Menu curtain — keep its own bg subtle while burn does the reveal ---- */
.menu-curtain {
  --burn: 0%;
  transition: opacity 420ms ease, transform 720ms var(--ease), visibility 420ms;
}

.menu-curtain.active {
  /* allow burn animation to be primary opener */
  transition: opacity 220ms ease, transform 720ms var(--ease), visibility 220ms;
}

/* ---- Paper-burn reveal layer ---- */
.menu-burn {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease 480ms;
}

.menu-curtain.active .menu-burn {
  opacity: 1;
  transition: opacity 200ms ease 0ms;
}

.menu-curtain.closing .menu-burn {
  opacity: 0;
  transition: opacity 360ms ease 60ms;
}

.menu-burn-paper {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.06) 0, rgba(26, 25, 22, 0.06) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 14% 8%, rgba(163, 49, 40, 0.08), transparent 24rem),
    radial-gradient(circle at 88% 88%, rgba(37, 63, 84, 0.07), transparent 22rem),
    linear-gradient(180deg, rgba(255, 248, 226, 0.55), rgba(214, 204, 189, 0)),
    var(--paper);
  /* GPU-friendly reveal: paper layer is burnt away by shrinking a clip-path circle.
     Default (closed) state covers the whole viewport; .active shrinks to nothing,
     revealing the dark .menu-curtain underneath. Replaces the prior mask-image
     animation which repainted the entire viewport every frame. */
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 520ms cubic-bezier(0.42, 0.08, 0.55, 1.0);
  opacity: 1;
}

.menu-curtain.active .menu-burn-paper {
  clip-path: circle(0% at 50% 50%);
}
.menu-curtain.closing .menu-burn-paper {
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 360ms cubic-bezier(0.45, 0, 0.55, 1);
}

/* Torn ember edges (top + bottom) — reuses intro burnFlicker */
.menu-burn-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.1rem;
  background:
    radial-gradient(1.2rem 0.7rem at 4% 0, transparent 54%, rgba(26, 25, 22, 0.78) 56%, transparent 70%),
    radial-gradient(1.8rem 0.85rem at 17% 0, transparent 54%, rgba(163, 49, 40, 0.85) 56%, transparent 72%),
    radial-gradient(1.5rem 0.75rem at 31% 0, transparent 54%, rgba(26, 25, 22, 0.7) 56%, transparent 72%),
    radial-gradient(2rem 0.9rem at 50% 0, transparent 54%, rgba(209, 90, 53, 0.82) 56%, transparent 74%),
    radial-gradient(1.35rem 0.7rem at 70% 0, transparent 54%, rgba(26, 25, 22, 0.7) 56%, transparent 72%),
    radial-gradient(1.8rem 0.8rem at 86% 0, transparent 54%, rgba(163, 49, 40, 0.78) 56%, transparent 72%),
    radial-gradient(1.55rem 0.75rem at 96% 0, transparent 54%, rgba(26, 25, 22, 0.78) 56%, transparent 72%);
  opacity: 0.85;
  animation: burnFlicker 720ms steps(2, end) 4;
  pointer-events: none;
}

.menu-burn-edge--top { top: -0.2rem; }
.menu-burn-edge--bottom { bottom: -0.2rem; transform: rotate(180deg); }

/* Subtle paper grain inside the burn layer */
.menu-burn-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Ember ring — replaced expensive --burn-tracked radial-gradient with a cheap
   single-shot pulse so it doesn't paint the entire viewport every frame. */
.menu-burn-ember {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 188, 88, 0.0) 0%,
    rgba(255, 188, 88, 0.0) 38%,
    rgba(255, 188, 88, 0.48) 50%,
    rgba(209, 90, 53, 0.30) 62%,
    rgba(209, 90, 53, 0.0) 78%);
  opacity: 0;
  transform: scale(0.05);
  will-change: transform, opacity;
}

.menu-curtain.active .menu-burn-ember {
  animation: emberSweep 520ms cubic-bezier(0.42, 0.08, 0.55, 1.0) forwards;
}

@keyframes emberSweep {
  0%   { opacity: 0; transform: scale(0.05); }
  35%  { opacity: 1; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ---- Menu link hover (editorial: left ember rule + numeral, no strikethrough) ---- */
.menu-panel > a {
  position: relative;
  padding: 0.1rem 0.4rem 0.1rem 3.2rem;
  letter-spacing: -0.01em;
  transition: color 160ms ease, transform 220ms var(--ease);
  will-change: transform;
}

.menu-panel > a > span {
  position: relative;
  display: inline-block;
}

/* The numeral rendered in the gutter */
.menu-panel > a::before {
  content: attr(data-num);
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%) translateX(-0.2rem);
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(234, 223, 206, 0.45);
  opacity: 0;
  transition: opacity 180ms ease, transform 220ms var(--ease), color 180ms ease;
  pointer-events: none;
  will-change: transform, opacity;
}

/* The ember rule that sweeps in from the left edge of the link */
.menu-panel > a::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 50%;
  width: 1.2rem;
  height: 0.12em;
  transform: translateY(-50%) scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 188, 88, 0.95), rgba(209, 90, 53, 0.85));
  filter: drop-shadow(0 0 6px rgba(209, 90, 53, 0.55));
  transition: transform 220ms var(--ease), opacity 180ms ease;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.menu-panel > a:hover,
.menu-panel > a:focus-visible {
  transform: translate3d(0.5rem, 0, 0);
  color: var(--paper-light);
}

.menu-panel > a:hover::before,
.menu-panel > a:focus-visible::before {
  opacity: 1;
  color: rgba(255, 188, 88, 0.95);
  transform: translateY(-50%) translateX(0);
}

.menu-panel > a:hover::after,
.menu-panel > a:focus-visible::after {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

/* Current page numeral always visible to anchor the user */
.menu-panel > a.is-current::before {
  opacity: 1;
  color: rgba(255, 188, 88, 0.85);
  transform: translateY(-50%) translateX(0);
}

.menu-curtain .menu-socials a {
  position: relative;
  transition: color 280ms ease, transform 320ms var(--ease);
}

.menu-curtain .menu-socials a:hover,
.menu-curtain .menu-socials a:focus-visible {
  color: var(--red-hot);
  transform: translateY(-2px);
}

/* ---- Hover-cut underline draw-in (fixes disabled rule and adds animation) ---- */
.hover-cut {
  position: relative;
}
.hover-cut > span::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 480ms var(--ease);
}
.hover-cut:hover > span::after,
.hover-cut:focus-visible > span::after {
  transform: scaleX(1);
}
.hover-cut > span {
  display: inline-block;
  transition: transform 360ms var(--ease);
}
.hover-cut:hover > span,
.hover-cut:focus-visible > span {
  transform: translateY(-1px);
}

/* The menu links already provide their own underline, so cancel the generic one inside */
.menu-panel > a > span::after {
  display: none !important;
}

/* ---- Hero letter stagger ---- */
.hero-word h1 {
  perspective: 800px;
}

.hero-letter-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(2deg);
  animation: heroLetterIn 720ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--letter-delay, 0ms);
  will-change: transform, opacity;
}

@keyframes heroLetterIn {
  0% { opacity: 0; transform: translateY(0.6em) rotate(2deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---- Project card image zoom + tilt ---- */
.project-card {
  transform-style: preserve-3d;
  perspective: 900px;
}
.project-card .project-image img {
  transition: transform 700ms var(--ease), filter 600ms ease;
}
.project-card:hover .project-image img,
.project-card:focus-within .project-image img {
  transform: scale(1.06) rotate(-0.5deg);
  filter: contrast(1.04) saturate(1.05);
}
.project-card:hover header img,
.project-card:focus-within header img {
  transform: rotate(-6deg) scale(1.05);
  transition: transform 520ms var(--ease);
}
.project-card:hover footer span,
.project-card:focus-within footer span {
  transform: rotate(8deg);
  transition: transform 480ms var(--ease);
}

.card-visit {
  position: relative;
  overflow: hidden;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.card-visit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 720ms var(--ease);
  pointer-events: none;
}
.card-visit:hover::before,
.card-visit:focus-visible::before {
  transform: translateX(110%);
}

/* ---- Drag arrows micro-bounce ---- */
.drag-arrows button {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 220ms var(--ease), background 260ms ease, color 260ms ease, border-color 260ms ease;
}
.drag-arrows button:active {
  transform: scale(0.92) translate(var(--mx, 0), var(--my, 0));
}
.drag-arrows button:hover {
  background: rgba(163, 49, 40, 0.12);
  color: var(--ink);
  border-color: var(--rule-strong);
}

/* ---- Stamp gentle bob ---- */
@media (prefers-reduced-motion: no-preference) {
  .stamp-image {
    animation: stampBob 7.2s ease-in-out infinite;
  }
  @keyframes stampBob {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    50%      { transform: rotate(-5deg) translateY(-3px); }
  }
  .about-stamp,
  .contact-stamp {
    animation-name: stampBobUp;
  }
  @keyframes stampBobUp {
    0%, 100% { transform: rotate(0) translateY(0); }
    50%      { transform: rotate(2deg) translateY(-3px); }
  }
}

/* ---- Brand logo: gentle pulse halo ---- */
.brand-logo {
  position: relative;
  overflow: visible;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed transparent;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92) rotate(-2deg);
  transition: opacity 360ms ease, transform 540ms var(--ease), border-color 360ms ease;
}
.brand-logo:hover::after,
.brand-logo:focus-visible::after {
  opacity: 1;
  border-color: var(--rule-strong);
  transform: scale(1.04) rotate(2deg);
}

/* ---- Section banner subtle marquee shimmer ---- */
.section-banner {
  position: relative;
  overflow: hidden;
}
.section-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -25%;
  width: 25%;
  background: linear-gradient(120deg, transparent, rgba(255, 248, 226, 0.4), transparent);
  transform: skewX(-18deg);
  animation: shimmerSweep 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmerSweep {
  0%, 70% { transform: translateX(0) skewX(-18deg); }
  100% { transform: translateX(540%) skewX(-18deg); }
}

/* ---- Folio / topline gentle entrance after intro ---- */
@media (prefers-reduced-motion: no-preference) {
  body.loaded .topline,
  body.loaded .masthead,
  body.loaded .folio-strip,
  body.loaded .section-banner,
  body.loaded .hero,
  body.loaded .hero-subline,
  body.loaded .work-strip,
  body.loaded .page-lede {
    animation: shellRise 720ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  body.loaded .masthead { animation-delay: 60ms; }
  body.loaded .folio-strip { animation-delay: 120ms; }
  body.loaded .section-banner { animation-delay: 160ms; }
  body.loaded .hero { animation-delay: 220ms; }
  body.loaded .hero-subline { animation-delay: 320ms; }
  body.loaded .work-strip { animation-delay: 380ms; }
  body.loaded .page-lede { animation-delay: 200ms; }
}
@keyframes shellRise {
  from { opacity: 0; transform: translateY(0.9rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll progress bar (ember themed) ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 4900;
  background: linear-gradient(90deg, var(--red), var(--red-hot), #f0a86a);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(209, 90, 53, 0.55);
  will-change: transform;
}

/* ---- Removed: custom ink cursor (per design feedback) ---- */
.ink-cursor, .ink-cursor--dot, .ink-cursor--ring { display: none !important; }

/* ---- Form elements: subtle paper-line focus ---- */
.contact-form input,
.contact-form textarea {
  transition: border-color 320ms ease, background 320ms ease, transform 320ms var(--ease), box-shadow 320ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(234, 223, 206, 0.5);
  box-shadow: 0 0 0 2px rgba(163, 49, 40, 0.18), 0 6px 14px rgba(26, 25, 22, 0.08);
  transform: translateY(-1px);
}
.contact-form button[type="submit"] {
  position: relative;
  overflow: hidden;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 220ms var(--ease), background 320ms ease, color 320ms ease, box-shadow 320ms ease;
}
.contact-form button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(234, 223, 206, 0.28) 50%, transparent 72%);
  transform: translateX(-110%);
  transition: transform 760ms var(--ease);
  pointer-events: none;
}
.contact-form button[type="submit"]:hover::before,
.contact-form button[type="submit"]:focus-visible::before {
  transform: translateX(110%);
}
.contact-form button[type="submit"]:active {
  transform: scale(0.97) translate(var(--mx, 0), var(--my, 0));
}

/* ---- Marquee gentle vignette ---- */
.marquee {
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}

/* ---- Reveal: respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-letter {
    opacity: 1 !important;
    transform: none !important;
  }
  .menu-burn { display: none !important; }
}

/* ---- Mobile tweaks for menu morph + burn ---- */
@media (max-width: 860px) {
  body.menu-open .menu-button span:nth-child(1) {
    transform: translateY(0.35rem) rotate(45deg);
  }
  body.menu-open .menu-button span:nth-child(3) {
    transform: translateY(-0.35rem) rotate(-45deg);
  }
  .menu-panel > a {
    padding: 0.05rem 0.2rem 0.05rem 2.6rem; /* keep gutter for numeral + ember rule on mobile */
  }
  .menu-panel > a::before {
    left: 0.2rem;
    font-size: 0.7rem;
  }
  .menu-panel > a::after {
    left: 1.25rem;
    width: 0.9rem;
  }
}

/* ---- Z-index sanity: keep overlays above grain ---- */
.menu-curtain { z-index: 4500; }
.menu-button  { z-index: 5200; }
.scroll-progress { z-index: 4400; }

/* =========================================================
   Polish pass 2 — tag hover, magazine flourishes, contact burn
   ========================================================= */

/* Editorial tags ignite gently on hover */
.tag-row span {
  position: relative;
  cursor: default;
  transition: transform 320ms var(--ease), color 260ms ease, background 260ms ease, border-color 260ms ease, letter-spacing 320ms var(--ease);
}
.tag-row span::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 280ms ease, transform 320ms var(--ease);
  transform: scale(0.96);
}
.tag-row span:hover,
.tag-row span:focus-visible {
  transform: translateY(-1px);
  letter-spacing: 0.06em;
  background: rgba(255, 188, 88, 0.18);
  border-color: var(--red);
  color: var(--red, #a33128);
}
.tag-row span:hover::after {
  border-color: rgba(209, 90, 53, 0.55);
  transform: scale(1);
}

/* Detail card poster: subtle vignette + zoom on hover */
.work-detail-card .detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
}
.work-detail-card .detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(26, 25, 22, 0) 60%, rgba(26, 25, 22, 0.18) 100%);
  opacity: 0;
  transition: opacity 360ms ease;
}
.work-detail-card:hover .detail-poster::after,
.work-detail-card:focus-within .detail-poster::after {
  opacity: 1;
}

/* Card visit ember underline already exists; add slight magnetic lift */
.card-visit {
  transition: transform 320ms var(--ease), background 320ms ease, color 320ms ease, box-shadow 320ms ease;
}
.card-visit:hover,
.card-visit:focus-visible {
  transform: translateY(-2px) translate(var(--mx, 0), var(--my, 0));
  box-shadow: 0 0.5rem 1.4rem rgba(26, 25, 22, 0.22);
}

/* Project card poster: parallax tilt on hover */
.project-card .project-image {
  overflow: hidden;
  position: relative;
}
.project-card .project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 188, 88, 0.0), rgba(209, 90, 53, 0.12));
  opacity: 0;
  transition: opacity 360ms ease;
  pointer-events: none;
  z-index: 1;
}
.project-card:hover .project-image::before,
.project-card:focus-within .project-image::before {
  opacity: 1;
}

/* Stack chips on case study */
.case-stack span {
  transition: transform 280ms var(--ease), background 240ms ease, color 240ms ease, border-color 240ms ease, letter-spacing 320ms var(--ease);
}
.case-stack span:hover {
  transform: translateY(-2px) rotate(-1deg);
  letter-spacing: 0.06em;
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* Pull quote: static ember accent rule (one-shot — no infinite animation) */
.pull-quote {
  position: relative;
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 188, 88, 0.85), rgba(209, 90, 53, 0.85), rgba(163, 49, 40, 0.85));
  filter: drop-shadow(0 0 6px rgba(209, 90, 53, 0.45));
  border-radius: 2px;
  opacity: 0.75;
}

/* By-the-numbers magazine callout */
.case-by-the-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 2.5rem 0 0;
  grid-column: 1 / -1; /* span both columns of the parent .case-section grid */
}
.case-by-the-numbers article {
  padding: 1.6rem 1.2rem 1.4rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.case-by-the-numbers article:last-child {
  border-right: 0;
}
.case-by-the-numbers strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 0.95;
  color: var(--red);
  letter-spacing: -0.02em;
}
.case-by-the-numbers span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* End card / closing kicker */
.case-end-card {
  margin-top: 2.5rem;
  padding: 2rem 1.6rem;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0, rgba(26, 25, 22, 0.04) 1px, transparent 1px, transparent 6px),
    rgba(255, 251, 235, 0.55);
  position: relative;
  overflow: hidden;
}
.case-end-card::before {
  content: "—30—";
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--red);
  text-align: center;
  margin-bottom: 0.9rem;
}
.case-end-card h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
}
.case-end-card .end-card-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.case-end-card .end-card-cta a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 280ms var(--ease), background 280ms ease, color 280ms ease;
}
.case-end-card .end-card-cta a:first-child {
  background: var(--ink);
  color: var(--paper);
}
.case-end-card .end-card-cta a:hover,
.case-end-card .end-card-cta a:focus-visible {
  transform: translateY(-2px);
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* ---- Contact form submit: paper-burn ignite on click ---- */
.contact-form button[type="submit"] {
  isolation: isolate;
}
.contact-form button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 188, 88, 0.95) 0%, rgba(209, 90, 53, 0.85) 30%, rgba(163, 49, 40, 0.6) 55%, rgba(26, 25, 22, 0) 75%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 220ms ease;
  z-index: 2;
}
.contact-form button[type="submit"]:active::after,
.contact-form button[type="submit"].is-burning::after {
  animation: contactButtonIgnite 720ms cubic-bezier(0.4, 0.05, 0.6, 1) forwards;
}
@keyframes contactButtonIgnite {
  0%   { opacity: 0; transform: scale(0.5); }
  35%  { opacity: 1; transform: scale(1.04); }
  70%  { opacity: 0.6; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2.0); }
}

/* =========================================================
   Polish pass 3 — calmer hover, snappier nav, work polish
   ========================================================= */

/* Compact floating menu button — restrained shadow so it reads as glassy, not heavy */
.menu-button:hover,
.menu-button:focus-visible,
.menu-button.igniting {
  box-shadow:
    0 0.35rem 0.85rem rgba(26, 25, 22, 0.14),
    0 0 0.9rem rgba(209, 90, 53, 0.28);
}

/* Work-detail-card: noticeable hover (kicker glow, title shift, ember underline) */
.work-detail-card .detail-poster {
  transition: background 360ms ease;
}
.work-detail-card:hover .detail-poster,
.work-detail-card:focus-within .detail-poster {
  background: #efe3cf;
}
.work-detail-card .detail-label {
  position: relative;
  display: inline-block;
  transition: color 200ms ease, letter-spacing 220ms var(--ease);
}
.work-detail-card .detail-label::after {
  content: "";
  display: block;
  margin-top: 0.18rem;
  height: 1px;
  width: 1.2rem;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 280ms var(--ease);
}
.work-detail-card:hover .detail-label::after,
.work-detail-card:focus-within .detail-label::after {
  transform: scaleX(2.2);
}
.work-detail-card .detail-copy h2 {
  transition: color 220ms ease, transform 320ms var(--ease);
}
.work-detail-card:hover .detail-copy h2,
.work-detail-card:focus-within .detail-copy h2 {
  color: var(--red);
  transform: translateX(0.15rem);
}

/* Tag pills: bolder hover (ember underline + slight scale) */
.tag-row span {
  cursor: default;
  user-select: none;
  transition: transform 220ms var(--ease), color 200ms ease, background 220ms ease, border-color 220ms ease;
}
.tag-row span:hover,
.tag-row span:focus-visible {
  transform: translateY(-2px) scale(1.04);
  color: var(--red);
  background: rgba(255, 188, 88, 0.22);
  border-color: var(--red);
  box-shadow: 0 0.4rem 0.8rem rgba(209, 90, 53, 0.18);
}

/* About page: avatar stamp gently sways on hover */
.contact-stamp,
.stamp-image {
  transition: transform 520ms var(--ease), filter 520ms ease;
}
.contact-stamp:hover,
.stamp-image:hover {
  transform: rotate(-4deg) scale(1.04);
  filter: drop-shadow(0 0.6rem 1.2rem rgba(26, 25, 22, 0.22));
}

/* Contact email link: stronger hover hint */
.email-link span {
  transition: color 220ms ease, letter-spacing 320ms var(--ease);
}
.email-link:hover span,
.email-link:focus-visible span {
  color: var(--red);
  letter-spacing: 0;
}

/* Page-level helper: gentle hero kicker fade so it reads as breaking news */
.page-lede .section-kicker {
  position: relative;
  display: inline-block;
}
.page-lede .section-kicker::before {
  content: "■";
  margin-right: 0.45rem;
  color: var(--red);
  font-size: 0.6em;
  vertical-align: 0.12em;
  animation: kickerBlink 2.2s ease-in-out infinite;
}
@keyframes kickerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- Founder Vision section ---- */
.case-vision .case-vision-copy {
  display: grid;
  gap: 1.2rem;
}
.case-vision .case-vision-copy p {
  font-size: 1.05rem;
  line-height: 1.55;
}
.case-vision .case-vision-copy p.long-term {
  font-style: italic;
  color: rgba(26, 25, 22, 0.78);
  border-left: 3px solid var(--red);
  padding: 0.4rem 0 0.4rem 0.9rem;
  margin: 0;
}
.case-differentiators {
  margin-top: 0.6rem;
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.045) 0, rgba(26, 25, 22, 0.045) 1px, transparent 1px, transparent 7px),
    rgba(255, 251, 235, 0.55);
  position: relative;
}
.case-differentiators::before {
  content: "Differentiators";
  position: absolute;
  top: -0.5rem;
  left: 0.8rem;
  padding: 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--paper-light);
  color: var(--red);
}
.case-differentiators h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}
.case-differentiators ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.case-differentiators li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.96rem;
  line-height: 1.45;
}
.case-differentiators li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--red);
}

/* ---- Lessons Learned grid ---- */
.case-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 0.4rem;
}
.case-lesson {
  padding: 1.1rem 1.2rem 1.2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 251, 235, 0.42);
  position: relative;
  transition: background 280ms ease, transform 320ms var(--ease);
}
.case-lesson:hover {
  background: rgba(255, 188, 88, 0.12);
  transform: translateY(-2px);
}
.case-lesson .lesson-cat {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.case-lesson .lesson-cat::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(209, 90, 53, 0.6);
}
.case-lesson p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}
