/* 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));
  --content-gutter: clamp(1.6rem, 3.4vw, 3rem);
}

*,
*::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;
}

p,
li,
h1,
h2,
h3,
h4,
a,
span {
  hyphens: none;
  word-break: normal;
}

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 52% 48%, rgba(234, 223, 206, 0.06), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(105, 36, 28, 0.38), transparent 30rem),
    var(--ink);
  transition: opacity 650ms ease, visibility 650ms ease;
}

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

.intro-paper {
  position: relative;
  width: min(50rem, 76vw);
  aspect-ratio: 1.74;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.45rem, 3.2vw, 2.5rem);
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(circle at 97% 8%, rgba(255, 199, 112, 0.62) 0 3%, rgba(160, 72, 51, 0.38) 8%, rgba(30, 24, 19, 0.28) 18%, transparent 35%),
    radial-gradient(circle at 7% 94%, rgba(245, 166, 93, 0.52) 0 4%, rgba(145, 55, 42, 0.35) 11%, rgba(30, 24, 19, 0.24) 23%, transparent 38%),
    radial-gradient(ellipse at 10% 8%, rgba(24, 20, 17, 0.28), transparent 18%),
    radial-gradient(ellipse at 88% 88%, rgba(24, 20, 17, 0.22), transparent 22%),
    repeating-linear-gradient(2deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 8px),
    linear-gradient(95deg, rgba(255, 248, 226, 0.34), rgba(214, 204, 189, 0.16) 45%, rgba(80, 74, 66, 0.18) 70%, rgba(255, 236, 192, 0.22)),
    var(--paper);
  clip-path: polygon(1.2% 3.4%, 10% 1.1%, 20% 2.1%, 31% 0.8%, 43% 1.8%, 55% 0.7%, 67% 1.9%, 80% 0.8%, 98.3% 2.4%, 99.2% 17%, 98.1% 32%, 99.4% 47%, 98.2% 64%, 99% 80%, 96.7% 98.5%, 82% 97.5%, 69% 99%, 53% 97.9%, 39% 99%, 24% 97.6%, 4.8% 99%, 1.1% 84%, 2.1% 68%, 0.7% 50%, 2.2% 31%);
  box-shadow:
    0 46px 100px rgba(0, 0, 0, 0.62),
    0 0 3.2rem rgba(116, 43, 32, 0.2),
    inset 0 0 3.2rem rgba(31, 21, 16, 0.22),
    inset 0 0 0 1px rgba(255, 248, 226, 0.22);
  transform: translateY(-64vh) rotate(8deg) scale(0.62);
  animation: paperEntry 1180ms var(--ease) forwards;
  transform-style: preserve-3d;
}

.intro-paper::before,
.intro-paper::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro-paper::before {
  inset: -1px;
  background:
    linear-gradient(110deg, transparent 0 58%, rgba(255, 255, 255, 0.18) 60%, transparent 63%),
    radial-gradient(1.9rem 1rem at 8% 0, rgba(17, 13, 10, 0.48) 0 48%, rgba(132, 47, 35, 0.28) 55%, transparent 74%),
    radial-gradient(2.8rem 1.1rem at 23% 0, rgba(18, 13, 10, 0.35) 0 45%, rgba(145, 55, 42, 0.22) 57%, transparent 75%),
    radial-gradient(2.4rem 1rem at 46% 0, rgba(18, 13, 10, 0.36) 0 47%, rgba(145, 55, 42, 0.22) 58%, transparent 75%),
    radial-gradient(2.7rem 1.1rem at 72% 0, rgba(18, 13, 10, 0.34) 0 46%, rgba(145, 55, 42, 0.2) 58%, transparent 75%),
    radial-gradient(1.9rem 1rem at 93% 0, rgba(17, 13, 10, 0.5) 0 48%, rgba(132, 47, 35, 0.3) 56%, transparent 75%),
    radial-gradient(2.1rem 1rem at 12% 100%, rgba(18, 13, 10, 0.46) 0 48%, rgba(132, 47, 35, 0.24) 56%, transparent 75%),
    radial-gradient(2.8rem 1.1rem at 38% 100%, rgba(18, 13, 10, 0.36) 0 46%, rgba(145, 55, 42, 0.2) 57%, transparent 75%),
    radial-gradient(2.5rem 1rem at 67% 100%, rgba(18, 13, 10, 0.34) 0 45%, rgba(145, 55, 42, 0.2) 58%, transparent 76%),
    radial-gradient(2rem 1rem at 91% 100%, rgba(18, 13, 10, 0.48) 0 48%, rgba(132, 47, 35, 0.25) 56%, transparent 75%),
    linear-gradient(90deg, rgba(16, 12, 9, 0.28), transparent 9%, transparent 91%, rgba(16, 12, 9, 0.3)),
    linear-gradient(180deg, rgba(16, 12, 9, 0.26), transparent 15%, transparent 85%, rgba(16, 12, 9, 0.26));
  mix-blend-mode: multiply;
  opacity: 0.78;
  z-index: 2;
}

.intro-paper::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 0 50%, rgba(26, 25, 22, 0.2), transparent 20%),
    radial-gradient(ellipse at 100% 48%, rgba(26, 25, 22, 0.2), transparent 20%),
    radial-gradient(circle at 14% 0, transparent 0 0.55rem, rgba(26, 25, 22, 0.22) 0.6rem, transparent 0.72rem),
    radial-gradient(circle at 28% 0, transparent 0 0.55rem, rgba(26, 25, 22, 0.2) 0.6rem, transparent 0.72rem),
    radial-gradient(circle at 43% 0, transparent 0 0.55rem, rgba(26, 25, 22, 0.22) 0.6rem, transparent 0.72rem),
    radial-gradient(circle at 58% 100%, transparent 0 0.55rem, rgba(26, 25, 22, 0.2) 0.6rem, transparent 0.72rem),
    radial-gradient(circle at 73% 100%, transparent 0 0.55rem, rgba(26, 25, 22, 0.22) 0.6rem, transparent 0.72rem),
    radial-gradient(circle at 88% 100%, transparent 0 0.55rem, rgba(26, 25, 22, 0.2) 0.6rem, transparent 0.72rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.045) 0, rgba(26, 25, 22, 0.045) 1px, transparent 1px, transparent 9px),
    radial-gradient(circle at 94% 11%, rgba(255, 205, 120, 0.22), transparent 8rem),
    radial-gradient(circle at 9% 92%, rgba(255, 169, 87, 0.18), transparent 7rem);
  mix-blend-mode: multiply;
  opacity: 0.58;
  z-index: 1;
}

.intro-title {
  position: relative;
  z-index: 3;
  font-family: var(--display);
  font-size: clamp(2.15rem, 7vw, 4.9rem);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 248, 226, 0.28),
    0 0.06em 0.12em rgba(26, 25, 22, 0.12);
}

.intro-bar,
.intro-line {
  position: relative;
  z-index: 3;
  height: 2px;
  background: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 248, 226, 0.26),
    0 0 10px rgba(255, 188, 88, 0.22);
}

@keyframes paperEntry {
  52% {
    transform: translateY(0) rotate(-3deg) scale(0.9);
  }
  100% {
    transform: translateY(0) rotate(-2.4deg) 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 {
  position: relative;
  width: min(calc(100% - 2rem), 112rem);
  max-width: calc(100vw - 2rem);
  margin: 1rem auto;
  min-height: 100vh;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  outline: 0.42rem solid rgba(26, 25, 22, 0.08);
  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,
.page-headline,
.work-strip,
.page-lede,
.work-board,
.case-study-page,
.about-page,
.contact-page,
.footer,
.folio-strip,
  .section-banner {
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
  min-width: 0;
}

.topline {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 5rem;
  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;
  white-space: nowrap;
}

#clock::before {
  content: none;
  display: none;
}

.topline-meta {
  min-width: 0;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.masthead {
  min-height: 8rem;
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) 10.5rem 4.75rem;
  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(2.65rem, 5.35vw, 4.45rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.masthead-contact {
  grid-column: 3;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 0 0.85rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.menu-button {
  position: absolute;
  top: 1.35rem;
  right: 0.82rem;
  z-index: 5000;
  width: 2.65rem;
  height: 2.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.36rem;
  border: 1px solid var(--rule-strong);
  padding: 0.5rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 188, 88, 0.16), transparent 1rem),
    rgba(234, 223, 206, 0.78);
  box-shadow:
    0 0.25rem 0.65rem rgba(26, 25, 22, 0.1),
    inset 0 0 0 1px rgba(255, 248, 226, 0.22);
  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(4.4rem, 10.7vw, 11.35rem);
  line-height: 0.86;
  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:
    radial-gradient(circle at 90% 8%, rgba(255, 248, 226, 0.34), transparent 5rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.035) 0 1px, transparent 1px 7px),
    rgba(234, 223, 206, 0.5);
  clip-path: polygon(0.6% 1.2%, 99.2% 0.4%, 98.8% 99.2%, 1.1% 98.8%);
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.18),
    0 0.75rem 1.4rem rgba(26, 25, 22, 0.08),
    inset 0 0 0 1px rgba(255, 248, 226, 0.18);
  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(4rem, 9.5vw, 10rem);
  line-height: 0.84;
  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:
    radial-gradient(circle at 92% 6%, rgba(255, 248, 226, 0.3), transparent 7rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.03) 0 1px, transparent 1px 8px),
    rgba(234, 223, 206, 0.44);
  clip-path: polygon(0.35% 0.8%, 99.5% 0.25%, 99.1% 99.2%, 0.75% 98.9%);
  box-shadow:
    0 0.16rem 0 rgba(26, 25, 22, 0.16),
    0 0.9rem 1.8rem rgba(26, 25, 22, 0.08),
    inset 0 0 0 1px rgba(255, 248, 226, 0.16);
  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:
    0 0.2rem 0 rgba(26, 25, 22, 0.18),
    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.2rem, 4.15vw, 4.4rem);
  line-height: 1;
  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.45rem, 5.5vw, 6.4rem);
  line-height: 1.04;
  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(2rem, 4.5vw, 4.85rem);
  line-height: 1;
  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(3.8rem, 8.1vw, 8.75rem);
  line-height: 0.86;
  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;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  min-height: 1.25rem;
  margin: -0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.contact-form-status[data-state="success"] {
  color: var(--green);
}

.contact-form-status[data-state="error"] {
  color: var(--red);
}

.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;
  top: var(--menu-close-y, calc(env(safe-area-inset-top, 0px) + 1.15rem));
  left: var(--menu-close-x, auto);
  right: auto;
  z-index: 5300;
  width: var(--menu-close-w, clamp(3.1rem, 4.4vw, 4rem));
  height: var(--menu-close-h, clamp(3.1rem, 4.4vw, 4rem));
  place-items: center;
  border: 1px solid rgba(234, 223, 206, 0.68);
  border-radius: 0.16rem;
  padding: 0;
  background:
    linear-gradient(145deg, rgba(234, 223, 206, 0.18), rgba(26, 25, 22, 0.16)),
    repeating-linear-gradient(180deg, rgba(234, 223, 206, 0.09) 0 1px, transparent 1px 6px);
  box-shadow:
    0 0.16rem 0 rgba(234, 223, 206, 0.14),
    0 0.8rem 1.6rem rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 248, 226, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-3deg) scale(0.92);
  transition:
    opacity 320ms ease,
    transform 420ms var(--ease),
    border-color 320ms ease,
    background 320ms ease;
}

.menu-close span {
  position: absolute;
  left: 27%;
  right: 27%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: var(--paper);
  transform-origin: center;
}

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

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

.menu-curtain.active .menu-close {
  opacity: 1;
  pointer-events: auto;
  transform: rotate(0deg) scale(1);
  transition-delay: 90ms;
}

.menu-close:hover,
.menu-close:focus-visible {
  border-color: rgba(255, 188, 88, 0.75);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 188, 88, 0.22), transparent 1rem),
    linear-gradient(145deg, rgba(234, 223, 206, 0.17), rgba(26, 25, 22, 0.18));
  outline: none;
  transform: rotate(2deg) scale(1.02);
}

.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) 9.25rem 3.6rem;
  }

  .masthead-contact {
    display: grid;
    font-size: 0.95rem;
  }

  .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,
  .page-headline,
  .work-strip,
  .page-lede,
  .work-board,
  .case-study-page,
  .about-page,
  .contact-page,
  .footer,
  .folio-strip,
  .section-banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topline {
    gap: 0.45rem;
    padding-right: 3.75rem;
    font-size: 0.64rem;
  }

  #clock {
    padding: 0.16rem 0.38rem;
  }

  .topline-meta {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

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

  .masthead-contact {
    display: none;
  }

  .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(1.9rem, 7.8vw, 2.7rem);
    line-height: 0.95;
    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(2.45rem, 11.5vw, 4.9rem);
  }

  .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);
    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.45rem, 6.3vw, 1.85rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .menu-button {
    top: 0.45rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    gap: 0.28rem;
    padding: 0.43rem;
  }

  .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(2.75rem, 12.4vw, 3.45rem);
    line-height: 0.92;
    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 clamp(0.4rem, 1.4vw, 1rem);
  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;
  justify-content: 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.2rem, 2.1vw, 2rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.section-banner::before,
.section-banner::after {
  content: "";
  flex: 0 1 9rem;
  min-width: 1.5rem;
  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 {
  position: relative;
  width: 100%;
  height: 3px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 1rem 0;
  overflow: hidden;
}

.article-rule-double::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: 14rem;
  background: linear-gradient(90deg, transparent, rgba(163, 49, 40, 0.42), transparent);
  transform: translateX(-115%);
  animation: rulePress 5.8s ease-in-out infinite;
}

@keyframes rulePress {
  0%, 68% { transform: translateX(-115%); opacity: 0; }
  78% { opacity: 1; }
  100% { transform: translateX(740%); opacity: 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;
}

/* The overlay owns the close control, so it is never hidden behind the curtain. */
.menu-close {
  display: grid !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 {
  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);
  clip-path: none;
  opacity: 1;
  transition: clip-path 520ms cubic-bezier(0.42, 0.08, 0.55, 1.0);
}

.menu-curtain.active .menu-burn-paper {
  clip-path: none;
}
.menu-curtain.closing .menu-burn-paper {
  clip-path: none;
  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;
  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;
}
.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;
}
.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; }
}

/* ---- Product direction 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;
}
.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;
}

/* =========================================================
   Polish pass 6 — paper-bound menu, safer type, richer motion
   ========================================================= */

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.09), transparent 5rem, transparent calc(100% - 5rem), rgba(26, 25, 22, 0.08)),
    radial-gradient(circle at 92% 0.8rem, rgba(255, 188, 88, 0.12), transparent 5rem);
  mix-blend-mode: multiply;
  opacity: 0.52;
  z-index: 0;
}

.site-shell > * {
  position: relative;
  z-index: 1;
}

.site-shell > .menu-button {
  position: absolute;
  top: 1.35rem;
  right: 0.82rem;
  z-index: 5200;
}

.menu-button {
  contain: layout paint;
}

body:not(.loaded) .menu-button {
  opacity: 0;
  pointer-events: none;
}

.menu-button::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(26, 25, 22, 0.18), transparent 0.7rem),
    linear-gradient(135deg, rgba(255, 248, 226, 0.32), transparent 58%);
}

.menu-button span {
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(26, 25, 22, 0.04);
}

.folio-strip span {
  transition: color 260ms ease, transform 320ms var(--ease);
}

.folio-strip:hover .folio-section,
.folio-strip:focus-within .folio-section {
  color: var(--red);
  transform: translateX(0.2rem);
}

.hero-subline span {
  position: relative;
  transition: color 260ms ease, transform 320ms var(--ease);
}

.hero-subline span:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.work-strip {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 188, 88, 0.08), transparent 15rem),
    linear-gradient(180deg, rgba(255, 251, 235, 0.14), transparent 48%);
}

.project-card::before,
.work-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(26, 25, 22, 0.16);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.08), transparent 10%, transparent 90%, rgba(26, 25, 22, 0.06)),
    linear-gradient(180deg, rgba(26, 25, 22, 0.08), transparent 12%, transparent 88%, rgba(26, 25, 22, 0.08));
  opacity: 0.35;
  transform: translate(0, 0);
  transition: opacity 320ms ease, transform 420ms var(--ease), border-color 320ms ease;
  z-index: 3;
}

.project-card,
.work-detail-card {
  position: relative;
}

.project-card:hover::before,
.project-card:focus-within::before,
.work-detail-card:hover::before,
.work-detail-card:focus-within::before {
  opacity: 0.62;
  transform: translate(0.14rem, 0.14rem);
  border-color: rgba(26, 25, 22, 0.36);
}

.project-card h3,
.detail-copy h2,
.black-title h1,
.about-headline h1,
.contact-hero h1 {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
  body.loaded .hero-subline span {
    animation: sublinePrint 620ms var(--ease) both;
  }

  body.loaded .hero-subline span:nth-child(2) {
    animation-delay: 90ms;
  }

  body.loaded .hero-subline span:nth-child(3) {
    animation-delay: 180ms;
  }

  @keyframes sublinePrint {
    from { opacity: 0; transform: translateY(0.45rem); filter: blur(1px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
}

@media (max-width: 860px) {
  .menu-button {
    top: 1rem;
    right: 0.65rem;
  }

  .project-card::before,
  .work-detail-card::before {
    display: none;
  }
}

/* =========================================================
   Polish pass 7 — masthead menu cell, work title fit, motion
   ========================================================= */

.masthead > .menu-button {
  grid-column: 4;
  position: relative;
  top: auto;
  right: auto;
  justify-self: center;
  align-self: center;
  width: clamp(3.1rem, 4.4vw, 4rem);
  height: clamp(3.1rem, 4.4vw, 4rem);
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 0.16rem;
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.72), rgba(214, 204, 189, 0.72)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.045) 0 1px, transparent 1px 6px);
  box-shadow:
    0 0.16rem 0 rgba(26, 25, 22, 0.2),
    0 0.52rem 1rem rgba(26, 25, 22, 0.13),
    inset 0 0 0 1px rgba(255, 248, 226, 0.28);
  transform: none;
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms ease,
    background 320ms ease,
    border-color 320ms ease;
}

.masthead > .menu-button::before,
.masthead > .menu-button::after {
  content: "";
  position: absolute;
  inset: 0.34rem;
  pointer-events: none;
  opacity: 0.52;
  transition: opacity 320ms ease, transform 420ms var(--ease), border-color 320ms ease;
}

.masthead > .menu-button::before {
  border: 1px solid rgba(26, 25, 22, 0.32);
  transform: scale(0.92);
}

.masthead > .menu-button::after {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 188, 88, 0.26), transparent 0.8rem),
    linear-gradient(135deg, transparent 35%, rgba(26, 25, 22, 0.08) 35% 37%, transparent 37%);
  mix-blend-mode: multiply;
}

.masthead > .menu-button span {
  position: absolute;
  left: 50%;
  width: 45%;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  box-shadow: none;
  transition:
    transform 360ms cubic-bezier(0.7, 0, 0.2, 1),
    opacity 220ms ease,
    width 320ms var(--ease),
    background 220ms ease;
}

.masthead > .menu-button span:nth-child(1) {
  top: 35%;
}

.masthead > .menu-button span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52%;
}

.masthead > .menu-button span:nth-child(3) {
  bottom: 35%;
}

.masthead > .menu-button:hover,
.masthead > .menu-button:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  border-color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.9), rgba(225, 215, 200, 0.88)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.05) 0 1px, transparent 1px 6px);
  box-shadow:
    0 0.22rem 0 rgba(26, 25, 22, 0.23),
    0 0.78rem 1.4rem rgba(26, 25, 22, 0.17),
    inset 0 0 0 1px rgba(255, 248, 226, 0.34);
  outline: none;
}

.masthead > .menu-button:hover::before,
.masthead > .menu-button:focus-visible::before {
  opacity: 0.82;
  transform: scale(1);
}

.masthead > .menu-button:hover span:nth-child(1),
.masthead > .menu-button:focus-visible span:nth-child(1),
.masthead > .menu-button:hover span:nth-child(3),
.masthead > .menu-button:focus-visible span:nth-child(3) {
  background: var(--ink);
  width: 52%;
}

body.menu-open .masthead > .menu-button {
  border-color: rgba(234, 223, 206, 0.58);
  background: rgba(26, 25, 22, 0.08);
}

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

body.menu-open .masthead > .menu-button span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .masthead > .menu-button span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.08);
}

body.menu-open .masthead > .menu-button span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.masthead > .menu-button.is-open {
  border-color: rgba(234, 223, 206, 0.62);
  background: rgba(26, 25, 22, 0.08);
}

.masthead > .menu-button.is-open span {
  background: var(--paper);
}

.masthead > .menu-button.is-open span:nth-child(1) {
  top: 50%;
  bottom: auto;
  width: 54%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.masthead > .menu-button.is-open span:nth-child(2) {
  opacity: 0;
  width: 8%;
  transform: translate(-50%, -50%) scaleX(0);
}

.masthead > .menu-button.is-open span:nth-child(3) {
  top: 50%;
  bottom: auto;
  width: 54%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.menu-open .masthead > .menu-button:hover,
body.menu-open .masthead > .menu-button:focus-visible {
  transform: translateY(-1px) rotate(1deg);
}

.work-detail-card.work-driped .detail-copy h2 {
  font-size: clamp(2.15rem, 3.65vw, 4.05rem);
  line-height: 1;
  white-space: nowrap;
}

.work-detail-card.work-driped .detail-copy {
  gap: 0.64rem;
}

@media (prefers-reduced-motion: no-preference) {
  .site-shell {
    background-position: 0 0, 0 0, 0 0;
  }

  .brand-logo img {
    transition: transform 620ms var(--ease), filter 620ms ease;
  }

  .brand-logo:hover img,
  .brand-logo:focus-visible img {
    transform: scale(1.04) rotate(1deg);
    filter: contrast(1.08);
  }

  .masthead-contact {
    transition: background 360ms ease, color 260ms ease, transform 360ms var(--ease);
  }

  .masthead-contact:hover,
  .masthead-contact:focus-visible {
    background: rgba(255, 251, 235, 0.2);
    color: var(--red);
    transform: translateY(-1px);
  }

  .project-card,
  .work-detail-card,
  .note-row,
  .case-lesson,
  .contact-column {
    will-change: transform;
  }

  .project-card::after,
  .work-detail-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 32%, rgba(255, 251, 235, 0.28) 50%, transparent 68%);
    opacity: 0;
    transform: translateX(-110%);
    transition: transform 820ms var(--ease), opacity 300ms ease;
    z-index: 2;
  }

  .project-card:hover::after,
  .project-card:focus-within::after,
  .work-detail-card:hover::after,
  .work-detail-card:focus-within::after {
    opacity: 1;
    transform: translateX(110%);
  }

  .section-tabs a:hover strong,
  .section-tabs a:focus-visible strong {
    animation: numeralTap 420ms var(--ease);
  }

  @keyframes numeralTap {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(-0.18rem); }
  }

  .marquee-track {
    animation-duration: 24s;
  }

  .case-image-card,
  .case-hero-image,
  .newspaper-cutting {
    transition: transform 620ms var(--ease), box-shadow 620ms ease, filter 620ms ease;
  }

  .case-image-card:hover,
  .case-hero-image:hover,
  .newspaper-cutting:hover {
    transform: translateY(-0.18rem) rotate(-0.18deg);
    box-shadow: 0 30px 72px rgba(26, 25, 22, 0.2);
    filter: contrast(1.02);
  }

  .detail-actions a,
  .text-link {
    transition: transform 280ms var(--ease), color 260ms ease, background 260ms ease;
  }

  .detail-actions a:hover,
  .detail-actions a:focus-visible,
  .text-link:hover,
  .text-link:focus-visible {
    transform: translateY(-1px);
  }
}

@media (max-width: 1180px) {
  .masthead > .menu-button {
    grid-column: 4;
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (max-width: 860px) {
  .masthead > .menu-button {
    grid-column: 3;
    width: 2.85rem;
    height: 2.85rem;
  }
}

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

  .masthead > .menu-button {
    grid-column: 3;
    width: 2.55rem;
    height: 2.55rem;
  }
}


/* =========================================================
   Polish pass 13 — Research title fix + dedicated Certifications page
   ========================================================= */

/* ---- Research card titles ("THE GLASS BALLOT", "DATA FOR SALE")
   Goal: keep them readable and never break a single letter onto its own line. */
.work-detail-card.research-card .detail-copy h2 {
  font-size: clamp(1.4rem, 2.65vw, 2.55rem);
  letter-spacing: -0.01em;
  line-height: 1.04;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .work-detail-card.research-card .detail-copy h2 {
    font-size: clamp(1.3rem, 5.4vw, 2rem);
  }
}

/* =========================================================
   Certifications page — newspaper-stock cards
   ========================================================= */

.certs-page {
  display: grid;
  gap: 1.6rem;
  padding: 1.4rem 0 2.6rem;
}

.certs-lede {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.6rem;
}

/* Stats strip */
.certs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0.9rem 0;
}

.certs-stat {
  display: grid;
  gap: 0.2rem;
  text-align: center;
  position: relative;
}

.certs-stat + .certs-stat {
  border-left: 1px dashed var(--rule);
}

.certs-stat-num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.certs-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Filter row */
.certs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
}

.certs-filter {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease);
}

.certs-filter:hover {
  background: rgba(26, 25, 22, 0.06);
}

.certs-filter.is-active {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.certs-grid--page {
  gap: 1.1rem;
}

.certs-grid > * {
  min-width: 0;
}

/* Card — paper stock with foil VERIFIED ribbon and shimmer sweep */
.cert-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.7rem;
  padding: 1.05rem 1.1rem 0.95rem;
  border: 1px solid var(--rule);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 248, 226, 0.42), transparent 7rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.03) 0 1px, transparent 1px 8px),
    rgba(234, 223, 206, 0.55);
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.16),
    0 0.85rem 1.5rem rgba(26, 25, 22, 0.08),
    inset 0 0 0 1px rgba(255, 248, 226, 0.18);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 420ms var(--ease),
    box-shadow 420ms ease,
    background 420ms ease;
}

/* VERIFIED ribbon */
.cert-card::before {
  content: "VERIFIED";
  position: absolute;
  top: 0.55rem;
  right: -1.7rem;
  transform: rotate(28deg);
  padding: 0.16rem 1.7rem;
  background: var(--red);
  color: var(--paper-light, #efe7d9);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0.12rem 0 rgba(0, 0, 0, 0.18);
}

/* Shimmer sweep that runs across the card on hover */
.cert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 248, 226, 0.55) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-110%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: transform 800ms var(--ease), opacity 320ms ease;
  z-index: 1;
}

.cert-card:hover,
.cert-card:focus-visible {
  transform: translateY(-0.42rem) rotate(-0.4deg);
  background: rgba(239, 231, 217, 0.94);
  box-shadow:
    0 0.28rem 0 rgba(26, 25, 22, 0.2),
    0 1.2rem 2.4rem rgba(26, 25, 22, 0.16),
    inset 0 0 0 1px rgba(255, 248, 226, 0.25);
  outline: none;
}

.cert-card:hover::after,
.cert-card:focus-visible::after {
  opacity: 1;
  transform: translateX(110%);
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  position: relative;
  z-index: 2;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.cert-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.85vw, 1.32rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.cert-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

.cert-foot .cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cert-foot .cert-tag {
  border: 1px solid var(--rule);
  padding: 0.14rem 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  background: rgba(255, 248, 226, 0.4);
  transition: background 240ms ease, color 240ms ease;
}

.cert-card:hover .cert-tag {
  background: rgba(26, 25, 22, 0.06);
}

.cert-foot .cert-verify {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: transform 240ms var(--ease);
}

.cert-card:hover .cert-verify {
  transform: translateX(0.2rem);
}

.certs-grid.is-empty {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px dashed var(--rule);
  padding: 1.4rem;
  text-align: center;
}

.certs-empty {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px dashed var(--rule);
  padding: 1.4rem;
  text-align: center;
}

@media (max-width: 720px) {
  .certs-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cert-card {
    padding: 0.95rem 1rem 0.85rem;
  }
  .certs-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.6rem;
  }
  .certs-filter {
    flex: 0 0 auto;
  }
}

/* =========================================================
   Polish pass 14 — Credentials rename, page-headline,
   brand socials, list-view credentials, folio safety
   ========================================================= */

/* ---- Topline gets socials on the right; menu now lives in masthead. ---- */
.topline {
  padding-right: 2.5rem;
  gap: 1rem;
}

.topline-socials {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.topline-socials .brand-social-label {
  display: none;
}

@media (max-width: 860px) {
  .topline {
    padding-right: 1rem;
  }
  .topline-socials {
    gap: 0.35rem;
  }
}

@media (max-width: 520px) {
  .topline-socials {
    display: none;
  }
}

/* ---- Brand socials (LinkedIn / GitHub / Instagram / X) ---- */
.brand-socials {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.brand-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.18rem;
  background: rgba(255, 251, 235, 0.78);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 320ms var(--ease),
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    box-shadow 320ms ease;
  box-shadow: 0 0.12rem 0 rgba(26, 25, 22, 0.14);
}

.brand-social svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  display: block;
  pointer-events: none;
}

.brand-social-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-social:hover,
.brand-social:focus-visible {
  outline: none;
  transform: translateY(-2px) rotate(-1.5deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
  box-shadow: 0 0.4rem 0.85rem rgba(26, 25, 22, 0.22);
}

/* ---- Inside the dark menu curtain, brand socials get inverted treatment ---- */
.menu-curtain .menu-socials.brand-socials {
  margin-top: 2.2rem;
  gap: 0.7rem;
  justify-content: center;
}

.menu-curtain .brand-social {
  width: 2.7rem;
  height: 2.7rem;
  border-color: rgba(234, 223, 206, 0.42);
  background: rgba(234, 223, 206, 0.06);
  color: var(--paper-light);
  box-shadow: none;
}

.menu-curtain .brand-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-curtain .brand-social-label {
  display: none;
}

.menu-curtain .brand-social:hover,
.menu-curtain .brand-social:focus-visible {
  background: var(--paper-light);
  border-color: var(--paper-light);
  color: var(--ink);
  transform: translateY(-3px) rotate(1.5deg);
}

/* ---- Hero-stamp socials on Index ---- */
.stamp-stack {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.stamp-stack .stamp-image {
  margin-left: auto;
}

.stamp-socials {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.stamp-socials .brand-social-label {
  display: none;
}

.stamp-socials .brand-social {
  width: 2.5rem;
  height: 2.5rem;
}

@media (max-width: 860px) {
  .stamp-stack {
    justify-items: start;
  }
  .stamp-socials {
    justify-content: flex-start;
  }
}

/* ---- Portrait socials overlaid on the About portrait ---- */
.newspaper-cutting {
  position: relative;
}

.portrait-socials {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 251, 235, 0.55);
  background:
    linear-gradient(180deg, rgba(26, 25, 22, 0.0), rgba(26, 25, 22, 0.45));
  backdrop-filter: blur(2px);
  z-index: 3;
}

.portrait-socials .brand-social {
  width: 2.55rem;
  height: 2.55rem;
  border-color: rgba(234, 223, 206, 0.85);
  background: rgba(234, 223, 206, 0.92);
  color: var(--ink);
}

.portrait-socials .brand-social-label {
  display: none;
}

.portrait-socials .brand-social:hover,
.portrait-socials .brand-social:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper-light);
  transform: translateY(-2px) rotate(-2deg);
}

/* Contact page reuses portrait-socials but underneath the stamp, not overlaid. */
.contact-hero-photo {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.portrait-socials--contact {
  position: relative;
  inset: auto;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  justify-content: center;
}

.portrait-socials--contact .brand-social {
  background: rgba(255, 251, 235, 0.78);
  border-color: var(--rule-strong);
  color: var(--ink);
}

/* Contact column socials use the icon strip, ditch the old text strip. */
.contact-socials.brand-socials {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.contact-socials .brand-social {
  width: auto;
  height: auto;
  padding: 0.55rem 0.85rem;
  gap: 0.6rem;
  justify-content: flex-start;
}

.contact-socials .brand-social svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-socials .brand-social-label {
  display: inline-block;
}

/* ---- Page headline (replaces .black-title slab) ---- */
.page-headline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 1.6rem 2.2rem;
  align-items: end;
  padding: 1.4rem 0 1.6rem;
  border-bottom: 3px double var(--ink);
  margin-bottom: 1.4rem;
  min-width: 0;
}

.page-headline-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.page-headline-meta .kicker {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.page-headline-rule {
  flex: 1 1 auto;
  height: 1px;
  background:
    linear-gradient(90deg, var(--rule-strong) 0 35%, transparent 35% 50%, var(--rule-strong) 50% 100%);
}

.page-headline-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-size: clamp(3rem, 7.2vw, 6.8rem);
}

.page-headline-aside {
  display: inline-block;
  margin-left: 0.4em;
  color: var(--red);
  font-style: italic;
  font-weight: 700;
  font-size: 0.55em;
  letter-spacing: -0.01em;
  text-transform: none;
  vertical-align: 0.16em;
}

.page-headline-deck {
  display: grid;
  align-content: end;
  gap: 0.85rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}

.page-headline-deck p {
  margin: 0;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

.page-headline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: 0.32;
  pointer-events: none;
}

.page-headline--contact .page-headline-title {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
}

@media (max-width: 980px) {
  .page-headline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-headline-deck {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 0.85rem;
  }
}

/* Retire the old slab */
.black-title {
  display: none !important;
}

/* About cover now has 2 columns (portrait + stamp) since the headline moved out */
.about-cover {
  grid-template-columns: minmax(17rem, 1fr) 12rem;
}

@media (max-width: 860px) {
  .about-cover {
    grid-template-columns: 1fr;
  }
}

/* Contact hero is now just the avatar/socials block centered above the columns */
.contact-hero {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1rem;
  padding: 1.2rem 0 1.6rem;
}

/* ---- Folio strip: never clips, wraps gracefully ---- */
.folio-strip {
  flex-wrap: wrap;
  row-gap: 0.3rem;
  overflow: visible;
}

.folio-strip span {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folio-strip .folio-section {
  flex: 0 1 auto;
}

.folio-strip .volume-mark {
  flex: 1 1 auto;
  text-align: center;
  color: var(--muted);
}

.folio-strip .folio-page {
  flex: 0 1 auto;
  text-align: right;
}

@media (max-width: 520px) {
  .folio-strip .volume-mark {
    flex-basis: 100%;
    order: 3;
    text-align: left;
  }
}

/* ---- Credentials list view (one row per entry, single line title) ---- */
.certs-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: rgba(234, 223, 206, 0.32);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cert-row {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 13rem) auto;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-family: var(--mono);
  transition: background 220ms ease, transform 320ms var(--ease), color 220ms ease;
  min-width: 0;
  max-width: 100%;
}

.cert-row:last-child {
  border-bottom: 0;
}

.cert-row:hover,
.cert-row:focus-visible {
  background: rgba(255, 251, 235, 0.6);
  outline: none;
  transform: translateX(0.18rem);
}

.cert-row-issuer {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.cert-row-title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cert-row-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow: hidden;
  min-width: 0;
  justify-content: flex-end;
}

.cert-row-tags .cert-tag {
  border: 1px solid var(--rule);
  padding: 0.16rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 251, 235, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink-soft);
}

.cert-row-verify {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  transition: transform 220ms var(--ease);
}

.cert-row:hover .cert-row-verify {
  transform: translateX(0.25rem);
}

.cert-row:nth-child(even) {
  background: rgba(255, 251, 235, 0.32);
}

.cert-row:nth-child(even):hover,
.cert-row:nth-child(even):focus-visible {
  background: rgba(255, 251, 235, 0.78);
}

@media (max-width: 980px) {
  .cert-row {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto;
  }
  .cert-row-tags {
    display: none;
  }
}

@media (max-width: 600px) {
  .cert-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 0.85rem;
    padding: 0.75rem 0.85rem;
  }
  .cert-row-issuer {
    grid-column: 1 / -1;
    font-size: 0.62rem;
  }
  .cert-row-title {
    font-size: 1.02rem;
  }
  .cert-row-verify {
    grid-row: 2;
    grid-column: 2;
  }
}

/* The page padding already provides safe horizontal bounds */
.certs-page {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* ---- Email link gentle width safety ---- */
.email-link {
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
}

/* ---- Hide section banner where it became redundant with page-headline ---- */
.page-headline + .work-board,
.page-headline + .about-page,
.page-headline + .certs-page,
.page-headline + .contact-page {
  margin-top: 0;
}

/* Keep the old page-lede animation hook from blocking when not present */
.page-lede:empty {
  display: none;
}

.scroll-progress {
  display: none !important;
}

/* =========================================================
   Polish pass 16 — About-led home, footer socials, contact desk
   ========================================================= */

.topline-socials,
.stamp-socials,
.portrait-socials {
  display: none !important;
}

.topline {
  padding-right: 2.5rem;
}

.footer-socials.brand-socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  gap: 0.9rem;
  padding: 1.2rem 2.5rem 1.35rem;
  border-bottom: 1px solid var(--rule-strong);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 188, 88, 0.08), transparent 16rem),
    rgba(234, 223, 206, 0.28);
  perspective: 900px;
}

.footer-socials .brand-social {
  isolation: isolate;
  overflow: hidden;
  width: auto;
  min-width: 0;
  height: 3.35rem;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 188, 88, 0.12), transparent 2.4rem),
    linear-gradient(145deg, rgba(255, 251, 235, 0.88), rgba(224, 214, 198, 0.78)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 7px);
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.2),
    0 0.7rem 1.25rem rgba(26, 25, 22, 0.1),
    inset 0 0 0 1px rgba(255, 248, 226, 0.24);
  transform-origin: 50% 0;
  animation: socialPaperIn 680ms var(--ease) both;
}

.footer-socials .brand-social svg {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-socials .brand-social:nth-child(2) { animation-delay: 70ms; }
.footer-socials .brand-social:nth-child(3) { animation-delay: 140ms; }
.footer-socials .brand-social:nth-child(4) { animation-delay: 210ms; }

.footer-socials .brand-social::before {
  content: "";
  position: absolute;
  inset: 0.32rem;
  border: 1px solid rgba(26, 25, 22, 0.12);
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
  transition: transform 360ms var(--ease), border-color 260ms ease;
}

.footer-socials .brand-social::after {
  content: "";
  position: absolute;
  inset: -15% -8%;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, 0.28) 49%, transparent 55%),
    radial-gradient(circle at 18% 92%, rgba(163, 49, 40, 0.08), transparent 2.6rem);
  transform: translateX(-105%) rotate(-8deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 620ms var(--ease), opacity 260ms ease;
}

.footer-socials .brand-social-label {
  display: inline-block;
}

.footer-socials .brand-social:hover,
.footer-socials .brand-social:focus-visible {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 188, 88, 0.16), transparent 2.4rem),
    linear-gradient(145deg, rgba(238, 226, 205, 0.96), rgba(211, 199, 180, 0.9)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.055) 0 1px, transparent 1px 7px);
  color: var(--ink);
  border-color: rgba(26, 25, 22, 0.74);
  transform: translateY(-0.18rem) rotate(-0.8deg);
  box-shadow:
    0 0.22rem 0 rgba(26, 25, 22, 0.24),
    0 0.85rem 1.35rem rgba(26, 25, 22, 0.16),
    inset 0 0 0 1px rgba(255, 248, 226, 0.34);
}

.footer-socials .brand-social:hover::before,
.footer-socials .brand-social:focus-visible::before {
  border-color: rgba(26, 25, 22, 0.28);
  transform: scale(0.96);
}

.footer-socials .brand-social:hover::after,
.footer-socials .brand-social:focus-visible::after {
  opacity: 1;
  transform: translateX(105%) rotate(-8deg);
}

@keyframes socialPaperIn {
  from {
    opacity: 0;
    transform: translateY(0.85rem) rotateX(-22deg) rotate(-1.5deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) rotate(0deg);
    filter: blur(0);
  }
}

.marquee {
  white-space: nowrap;
}

.marquee-track {
  animation: marqueeLoop 24s linear infinite;
}

.marquee-set {
  gap: 1.15rem;
}

.marquee-set span,
.marquee-set a {
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.marquee-set span::after,
.marquee-set a::after {
  content: "✦";
  margin-left: 1.15rem;
  color: var(--red);
  font-size: 0.45em;
  vertical-align: middle;
}

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

.menu-curtain .menu-socials.brand-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(9.5rem, 1fr));
  width: min(28rem, calc(100vw - 3rem));
  margin-top: 2.5rem;
  gap: 0.7rem;
}

.menu-curtain .brand-social {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 3.25rem;
  justify-content: flex-start;
  padding: 0.7rem 0.9rem;
  gap: 0.7rem;
  border-color: rgba(234, 223, 206, 0.38);
  background:
    linear-gradient(135deg, rgba(234, 223, 206, 0.1), rgba(234, 223, 206, 0.03)),
    repeating-linear-gradient(180deg, rgba(234, 223, 206, 0.055) 0 1px, transparent 1px 6px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 226, 0.08),
    0 0.28rem 0.9rem rgba(0, 0, 0, 0.1);
}

.menu-curtain .brand-social::after {
  content: "";
  position: absolute;
  inset: -20% -12%;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(255, 188, 88, 0.16) 49%, transparent 56%),
    radial-gradient(circle at 10% 85%, rgba(163, 49, 40, 0.18), transparent 2.5rem);
  opacity: 0;
  transform: translateX(-120%) rotate(-8deg);
  pointer-events: none;
  transition: opacity 240ms ease, transform 620ms var(--ease);
}

.menu-curtain .brand-social-label {
  display: inline-block;
  color: currentColor;
  letter-spacing: 0.16em;
}

.menu-curtain .brand-social:hover,
.menu-curtain .brand-social:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 188, 88, 0.18), rgba(234, 223, 206, 0.07)),
    repeating-linear-gradient(180deg, rgba(234, 223, 206, 0.075) 0 1px, transparent 1px 6px);
  border-color: rgba(255, 188, 88, 0.68);
  color: var(--paper-light);
  transform: translateY(-0.16rem) rotate(-0.4deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 226, 0.15),
    0 0.68rem 1.3rem rgba(0, 0, 0, 0.22),
    0 0 1.1rem rgba(255, 188, 88, 0.08);
  outline: none;
}

.menu-curtain .brand-social:hover::after,
.menu-curtain .brand-social:focus-visible::after {
  opacity: 1;
  transform: translateX(105%) rotate(-8deg);
}

.home-about-headline {
  border-top: 1px solid var(--rule-strong);
}

.home-about-page .about-cover {
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.home-about-page .newspaper-cutting {
  min-height: 24rem;
}

.home-about-page .about-copy {
  min-height: 24rem;
  display: grid;
  align-content: center;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.045) 1px, transparent 1px) 0 0 / 4.25rem 100%,
    rgba(255, 251, 235, 0.26);
}

.home-about-page .about-copy h2 {
  font-size: clamp(2.45rem, 5.4vw, 6.1rem);
}

.home-about-page .about-copy p {
  max-width: 50rem;
}

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

.hero-roles {
  min-height: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  justify-content: stretch;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  font-family: var(--body);
  font-size: 1rem;
  text-transform: none;
}

.hero-roles article {
  min-height: 14rem;
  min-width: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(0.95rem, 1.85vw, 1.45rem);
  border-right: 1px solid var(--rule);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 188, 88, 0.08), transparent 8rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.035) 0 1px, transparent 1px 7px),
    rgba(234, 223, 206, 0.24);
}

.hero-roles article:last-child {
  border-right: 0;
}

.hero-roles h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 2.35rem);
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-roles ul {
  list-style: none;
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: clamp(0.82rem, 1.02vw, 0.95rem);
  line-height: 1.24;
}

.hero-roles li {
  position: relative;
  padding-left: 1.1rem;
}

.hero-roles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

.home-about-headline .page-headline-deck {
  display: grid;
  gap: 1rem;
}

.home-about-headline .page-headline-deck p {
  max-width: 68rem;
}

.home-about-page .about-grid {
  grid-template-columns: 4rem minmax(0, 1fr);
}

.home-about-page .notes-panel,
.home-about-page .scratch-panel {
  grid-column: 2;
  border-right: 0;
}

.home-about-page .scratch-panel {
  border-top: 1px solid var(--rule);
}

.thought-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: rgba(255, 251, 235, 0.18);
}

.thought-list article {
  min-height: 14rem;
  padding: 0.95rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(180deg, rgba(163, 49, 40, 0.08) 0 1px, transparent 1px 2.3rem),
    rgba(234, 223, 206, 0.18);
}

.thought-list h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.7vw, 1.75rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.thought-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  line-height: 1.34;
}

.contact-page--redesign {
  padding-top: 0;
}

.contact-dispatch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 17rem);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--rule-strong);
}

.contact-dispatch-copy {
  min-height: 18rem;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.35rem);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.05) 1px, transparent 1px) 0 0 / 4.2rem 100%,
    rgba(255, 251, 235, 0.28);
}

.contact-dispatch h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.8vw, 7.4rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.contact-dispatch p {
  max-width: 44rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.35;
}

.contact-dispatch .contact-stamp {
  width: min(17rem, 78vw);
  justify-self: center;
  transform: rotate(4deg);
  filter: drop-shadow(0 1rem 1.2rem rgba(26, 25, 22, 0.16));
}

.contact-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.035) 0 1px, transparent 1px 7px),
    rgba(255, 251, 235, 0.18);
}

.contact-brief-grid article {
  min-height: 15rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  border-right: 1px solid var(--rule);
}

.contact-brief-grid span {
  width: max-content;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.contact-brief-grid h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.7vw, 2.65rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.contact-brief-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.38;
}

.contact-columns--redesign {
  grid-template-columns: minmax(18rem, 1.05fr) minmax(14rem, 0.7fr) minmax(20rem, 1fr);
}

.contact-columns--redesign .contact-column {
  min-height: 31rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 188, 88, 0.08), transparent 14rem),
    rgba(234, 223, 206, 0.24);
}

.contact-column--email {
  display: grid;
  align-content: start;
}

.contact-column--social {
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.05) 0 1px, transparent 1px 0.72rem),
    rgba(255, 251, 235, 0.28);
}

.contact-socials.brand-socials {
  width: 100%;
  gap: 0.7rem;
}

.contact-socials .brand-social {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.75rem 0.85rem;
  border-color: var(--rule-strong);
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.74), rgba(214, 204, 189, 0.62));
}

.contact-socials .brand-social-label {
  font-size: 0.72rem;
}

.contact-form {
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.72), rgba(234, 223, 206, 0.62));
}

@media (max-width: 980px) {
  .hero-roles {
    grid-template-columns: 1fr;
  }

  .hero-roles article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .hero-roles h2 {
    font-size: clamp(1.9rem, 6vw, 3rem);
  }

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

  .home-about-page .notes-panel,
  .home-about-page .scratch-panel {
    grid-column: auto;
  }

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

  .contact-dispatch,
  .contact-brief-grid,
  .contact-columns--redesign {
    grid-template-columns: 1fr;
  }

  .contact-dispatch-copy {
    min-height: auto;
  }

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

  .contact-brief-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 860px) {
  .topline {
    padding-right: 1rem;
  }

  .footer-socials.brand-socials {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-socials .brand-social {
    min-width: calc(50% - 0.5rem);
  }

  .home-about-page .about-cover {
    grid-template-columns: 1fr;
  }

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

  .thought-list article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .menu-curtain .menu-socials.brand-socials,
  .footer-socials.brand-socials {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-socials .brand-social {
    min-width: 0;
    width: 100%;
  }
}

/* =========================================================
   Polish pass 19 — framed content and cleaner word wrapping
   ========================================================= */

.site-shell section,
.site-shell header,
.site-shell footer,
.site-shell article,
.site-shell div {
  min-width: 0;
}

.site-shell p,
.site-shell li,
.site-shell h1,
.site-shell h2,
.site-shell h3,
.site-shell h4,
.site-shell a,
.site-shell span {
  hyphens: none;
  word-break: normal;
}

.hero-note p,
.lede-copy p,
.detail-copy p,
.about-copy p,
.contact-column p,
.page-headline-deck p,
.case-lead-copy,
.case-section p,
.thought-list p,
.note-row p,
.contact-dispatch p {
  text-align: left;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-word h1,
.journal-name,
.page-headline-title,
.hero-roles h2,
.about-copy h2,
.thought-list h3,
.detail-copy h2,
.project-card h3,
.case-title-grid h1,
.contact-dispatch h2,
.black-title h1,
.about-headline h1,
.contact-hero h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  letter-spacing: 0;
}

.page-headline {
  overflow: hidden;
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

.page-headline-title {
  font-size: clamp(2.75rem, 6.5vw, 6.35rem);
}

.hero-roles h2 {
  font-size: clamp(1.22rem, 2vw, 2.08rem);
}

.thought-list h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.48rem);
}

.home-about-page .about-copy h2 {
  font-size: clamp(2.25rem, 4.7vw, 5.45rem);
}

.footer-socials.brand-socials {
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

.marquee {
  overflow: hidden;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(calc(100% - 1rem), 112rem);
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .page-headline-title {
    font-size: clamp(2.45rem, 10vw, 4.8rem);
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(calc(100% - 0.75rem), 112rem);
    max-width: calc(100vw - 0.75rem);
    margin: 0.375rem auto;
  }

  .hero-word h1,
  .page-headline-title,
  .contact-dispatch h2 {
    font-size: clamp(2.15rem, 12vw, 3.8rem);
  }
}

/* =========================================================
   Polish pass 24 - profile spread, terminal, lighter menu
   ========================================================= */

.profile-spread,
.terminal-section {
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

.profile-spread {
  display: grid;
  grid-template-columns: minmax(22rem, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "head copy"
    "portrait copy"
    "roles roles";
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: stretch;
  padding-top: clamp(1.4rem, 2.8vw, 2.6rem);
  padding-bottom: clamp(1.4rem, 2.8vw, 2.6rem);
  border-bottom: 1px solid var(--rule-strong);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.04) 1px, transparent 1px) 0 0 / calc(100% / 14) 100%,
    radial-gradient(circle at 86% 16%, rgba(255, 188, 88, 0.1), transparent 15rem);
}

.profile-head,
.profile-copy {
  min-width: 0;
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.52), rgba(234, 223, 206, 0.34)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.03) 0 1px, transparent 1px 8px);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 226, 0.22);
}

.profile-head {
  grid-area: head;
  display: grid;
  align-content: space-between;
  gap: clamp(1rem, 2vw, 1.7rem);
  padding: clamp(1.2rem, 2.2vw, 2rem);
  min-height: clamp(16rem, 22vw, 23rem);
}

.profile-head h1 {
  margin: 0;
  max-width: 9ch;
  font-family: var(--display);
  font-size: clamp(3.9rem, 5.8vw, 7rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile-head p {
  margin: 0;
  max-width: 35rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.34;
}

.profile-portrait {
  grid-area: portrait;
  min-height: 0;
  align-self: start;
  justify-self: center;
  width: min(100%, 33rem);
  overflow: visible;
  border: 0;
  background: transparent;
  transform: rotate(-1.5deg);
  box-shadow: none;
}

.profile-portrait img {
  width: 100%;
  height: auto;
  max-height: clamp(29rem, 54vw, 48rem);
  object-fit: contain;
  filter: sepia(0.08) contrast(1.02);
  mix-blend-mode: multiply;
}

.profile-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  padding: clamp(1.2rem, 2.2vw, 2rem);
  border-left-width: 2px;
}

.profile-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 3.55vw, 4.65rem);
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile-copy p {
  margin: 0;
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.18vw, 1.22rem);
  line-height: 1.36;
}

.profile-copy .text-link {
  width: max-content;
  margin-top: 0.2rem;
}

.profile-copy .byline {
  margin-top: 0.4rem;
}

.profile-roles {
  grid-area: roles;
  border: 1px solid var(--rule-strong);
}

.profile-roles.hero-roles {
  margin-top: 0.1rem;
}

.profile-roles.hero-roles article {
  min-height: 12.5rem;
  padding: clamp(1.05rem, 2vw, 1.65rem);
}

.profile-roles.hero-roles h2 {
  font-size: clamp(1.4rem, 2.05vw, 2.25rem);
}

.home-about-page {
  padding-top: 0;
}

.home-about-page .about-grid {
  border-top: 0;
}

.home-work {
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
  padding-top: clamp(1.2rem, 2.2vw, 1.9rem);
  padding-bottom: clamp(1.4rem, 2.4vw, 2.2rem);
}

.home-work .strip-intro {
  min-height: 100%;
  padding-right: clamp(0.8rem, 1.4vw, 1.2rem);
}

.home-work .strip-intro h2 {
  font-size: clamp(1.45rem, 2.45vw, 2.5rem);
}

.home-work .project-rail {
  grid-auto-columns: minmax(21rem, min(44vw, 35rem));
  align-items: start;
  gap: clamp(0.95rem, 1.5vw, 1.35rem);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  overscroll-behavior-block: auto;
  padding: 0.28rem 0 1rem;
  scrollbar-gutter: stable;
}

.home-work .project-card {
  min-height: 0;
  height: auto;
  overflow: hidden;
}

.home-work .project-card:hover,
.home-work .project-card:focus-within {
  transform: translateY(-0.16rem) rotate(-0.25deg);
}

.home-work .project-card .project-main {
  min-height: 0;
  grid-template-rows: auto auto auto auto;
  gap: 0.65rem;
  padding: clamp(0.8rem, 1.25vw, 1rem);
}

.home-work .project-card h3 {
  min-height: 0;
  font-size: clamp(2.2rem, 4.2vw, 4.15rem);
  line-height: 0.84;
  max-width: 10ch;
}

.home-work .project-image {
  aspect-ratio: 16 / 10;
  min-height: 13rem;
  max-height: min(45vh, 28rem);
}

.home-work .project-card footer p {
  max-width: 16rem;
}

.menu-curtain {
  z-index: 4500;
  background:
    radial-gradient(circle at 70% 12%, rgba(255, 188, 88, 0.11), transparent 20rem),
    radial-gradient(circle at 15% 85%, rgba(163, 49, 40, 0.16), transparent 18rem),
    repeating-linear-gradient(180deg, rgba(234, 223, 206, 0.025) 0 1px, transparent 1px 7px),
    var(--ink);
  transform: translate3d(0, -1rem, 0) scale(0.985);
  transition: opacity 230ms ease, transform 560ms var(--ease), visibility 230ms;
  will-change: opacity, transform;
}

.menu-curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 248, 226, 0.08) 48%, transparent 54%),
    radial-gradient(circle at var(--menu-close-x, 88%) var(--menu-close-y, 8%), rgba(255, 188, 88, 0.2), transparent 14rem);
  transition: opacity 420ms ease, transform 680ms var(--ease);
}

.menu-curtain.active {
  transform: translate3d(0, 0, 0) scale(1);
  transition-duration: 210ms, 620ms, 210ms;
}

.menu-curtain.active::before {
  opacity: 1;
  transform: scale(1);
}

.menu-curtain .menu-burn {
  display: none !important;
}

.menu-panel {
  position: relative;
  z-index: 2;
}

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

.menu-panel > a {
  text-shadow: 0 0.03em 0 rgba(255, 248, 226, 0.08);
}

.menu-panel > a:hover,
.menu-panel > a:focus-visible {
  color: #fff3dd;
  transform: translate3d(0.36rem, 0, 0);
}

.terminal-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: stretch;
  padding-top: clamp(1.4rem, 2.8vw, 2.6rem);
  padding-bottom: clamp(1.4rem, 2.8vw, 2.6rem);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.04) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%,
    rgba(255, 251, 235, 0.18);
}

.terminal-copy,
.terminal-console {
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.032) 0 1px, transparent 1px 7px),
    rgba(234, 223, 206, 0.46);
}

.terminal-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.8rem);
}

.terminal-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 4.5vw, 5.6rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.terminal-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  line-height: 1.34;
}

.terminal-command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.terminal-command-list button {
  display: inline-grid;
  place-items: center;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255, 251, 235, 0.46);
  cursor: pointer;
  transition: transform 240ms var(--ease), background 240ms ease;
}

.terminal-command-list button:hover,
.terminal-command-list button:focus-visible {
  transform: translateY(-0.12rem);
  background: rgba(255, 248, 226, 0.72);
  outline: none;
}

.terminal-console {
  position: relative;
  min-height: clamp(23rem, 34vw, 33rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  box-shadow:
    0 0.25rem 0 rgba(26, 25, 22, 0.14),
    inset 0 0 0 1px rgba(255, 248, 226, 0.18);
}

.terminal-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0, rgba(163, 49, 40, 0.1), transparent 10rem),
    linear-gradient(90deg, rgba(26, 25, 22, 0.12) 1px, transparent 1px) 0 0 / 4.5rem 100%;
  opacity: 0.55;
}

.terminal-topline,
.terminal-output,
.terminal-form {
  position: relative;
  z-index: 1;
}

.terminal-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.terminal-output {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  overflow: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.42;
}

.terminal-line {
  max-width: 76ch;
  color: var(--ink);
}

.terminal-line--input {
  color: var(--red);
}

.terminal-line--system::before {
  content: "> ";
  color: var(--red);
}

.terminal-line--error {
  color: var(--red);
}

.terminal-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  background: rgba(255, 251, 235, 0.32);
}

.terminal-form label {
  color: var(--red);
  white-space: nowrap;
}

.terminal-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(26, 25, 22, 0.34);
  border-radius: 0;
  padding: 0.42rem 0;
  background: transparent;
  outline: none;
}

.terminal-form input:focus-visible {
  border-bottom-color: var(--red);
}

.terminal-form button {
  min-height: 2.3rem;
  padding: 0 0.85rem;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 240ms var(--ease), background 240ms ease;
}

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

@media (max-width: 1100px) {
  .profile-spread {
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.78fr);
    grid-template-areas:
      "head portrait"
      "copy copy"
      "roles roles";
  }

  .profile-head {
    min-height: 22rem;
  }

  .profile-copy {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .profile-spread,
  .terminal-section,
  .home-work {
    grid-template-columns: 1fr;
  }

  .profile-spread {
    grid-template-areas:
      "head"
      "portrait"
      "copy"
      "roles";
  }

  .profile-head {
    min-height: auto;
  }

  .profile-head h1 {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .profile-portrait {
    justify-self: center;
    width: min(100%, 30rem);
  }

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

  .home-work .strip-intro {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .home-work .project-rail {
    grid-auto-columns: minmax(18rem, 82vw);
  }

  .home-work .project-image {
    min-height: 11rem;
    max-height: none;
  }

  .terminal-form {
    grid-template-columns: 1fr auto;
  }

  .terminal-form label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .profile-copy h2 {
    font-size: clamp(2.45rem, 13vw, 4.25rem);
  }

  .terminal-topline {
    display: grid;
  }

  .terminal-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Polish pass 15 — animations, hero deck, terminal page,
   selected-work fix, contact form, skills, marquee retune
   ========================================================= */

/* ---- Hero / About spread on the homepage ---- */
.profile-stats {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.profile-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  background: rgba(255, 251, 235, 0.45);
}

.profile-stats strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.profile-stats span {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.profile-portrait figcaption {
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

.profile-now {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1rem 1rem 0.85rem;
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--rule-strong);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.05) 0 1px, transparent 1px 5px),
    rgba(255, 251, 235, 0.4);
}

.profile-now li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--serif, Georgia, serif);
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-now li > span {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--red);
  white-space: nowrap;
}

.profile-now strong {
  font-weight: 700;
}

.profile-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1rem;
}

/* ---- Skills section on credentials.html ---- */
.skills-page {
  display: grid;
  gap: 1.4rem;
  padding-top: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.skills-head {
  display: grid;
  gap: 0.4rem;
  max-width: 56rem;
}

.skills-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 0.96;
  letter-spacing: -0.005em;
}

.skills-head p {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 48rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 0.85rem;
}

.skill-group {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 0.95rem 0.9rem;
  border: 1px solid var(--rule-strong);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 6px),
    rgba(255, 251, 235, 0.55);
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.12),
    0 0.6rem 1.2rem rgba(26, 25, 22, 0.06);
  transition: transform 320ms var(--ease), box-shadow 320ms ease;
}

.skill-group:hover {
  transform: translateY(-0.18rem) rotate(-0.2deg);
  box-shadow:
    0 0.24rem 0 rgba(26, 25, 22, 0.18),
    0 1rem 1.8rem rgba(26, 25, 22, 0.1);
}

.skill-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.45rem;
}

.skill-group-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--red);
}

.skill-group-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.7);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: transform 360ms var(--ease), background 240ms ease, color 240ms ease, border-color 240ms ease, opacity 360ms var(--ease);
  transition-delay: var(--chip-delay, 0ms);
}

.skill-group.visible .skill-chip {
  opacity: 1;
  transform: translateY(0);
}

.skill-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
  transform: translateY(-0.12rem);
}

.skill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(209, 90, 53, 0.18);
  flex: 0 0 auto;
}

.skill-chip:hover .skill-dot {
  background: var(--paper-light);
  box-shadow: 0 0 0 2px rgba(234, 223, 206, 0.25);
}

/* ---- Selected Work scroller — stop the corner clipping ---- */
.project-card {
  clip-path: none;
}

.project-image {
  padding: 0.6rem;
}

.project-card:hover .project-image img,
.project-card:focus-within .project-image img {
  /* Don't scale the image inside an overflow-hidden box — caused the
     "image getting cut off" complaint. The card itself still lifts. */
  transform: none;
}

/* Edge fades on the rail so it's visually clear it keeps going */
.work-strip {
  position: relative;
}

.work-strip::before,
.work-strip::after {
  content: "";
  position: absolute;
  top: 4.4rem;
  bottom: 1.4rem;
  width: 2.6rem;
  pointer-events: none;
  z-index: 4;
}

.work-strip::before {
  left: var(--content-gutter);
  background: linear-gradient(to right, rgba(214, 204, 189, 0.95), rgba(214, 204, 189, 0));
}

.work-strip::after {
  right: var(--content-gutter);
  background: linear-gradient(to left, rgba(214, 204, 189, 0.95), rgba(214, 204, 189, 0));
}

@media (max-width: 720px) {
  .work-strip::before,
  .work-strip::after {
    display: none;
  }
}

/* ---- Contact form — bigger Quick Note + calmer send animation ---- */
.contact-columns--redesign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.6rem;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-columns--redesign {
    grid-template-columns: 1fr;
  }
}

.contact-column {
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--rule-strong);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.045) 0 1px, transparent 1px 6px),
    rgba(255, 251, 235, 0.6);
}

.contact-column--email {
  display: grid;
  gap: 0.8rem;
}

.contact-elsewhere {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

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

.contact-form-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 0.95;
}

.contact-form-helper {
  margin: 0 0 0.4rem;
  font-family: var(--serif, Georgia, serif);
  font-size: 0.92rem;
  color: var(--muted);
}

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

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 560px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-field {
  display: grid;
  gap: 0.32rem;
}

.contact-field > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 251, 235, 0.95);
  font-family: var(--serif, Georgia, serif);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.contact-form textarea {
  min-height: 12rem;
  resize: vertical;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(209, 90, 53, 0.12);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 0.4rem;
}

.contact-send-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease;
}

.contact-send-button:hover,
.contact-send-button:focus-visible {
  background: var(--red);
  color: var(--paper-light);
  outline: none;
  transform: translateY(-0.12rem);
}

.contact-send-button[disabled] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.contact-send-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms var(--ease);
}

.contact-send-button:hover::after,
.contact-send-button:focus-visible::after {
  transform: scaleX(1);
}

.contact-send-button.is-pulsing {
  animation: contactSendPulse 480ms cubic-bezier(0.45, 0.05, 0.4, 1) both;
}

@keyframes contactSendPulse {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-0.08rem) scale(0.965); }
  100% { transform: translateY(0) scale(1); }
}

.contact-send-arrow {
  display: inline-block;
  transition: transform 320ms var(--ease);
}

.contact-send-button:hover .contact-send-arrow,
.contact-send-button:focus-visible .contact-send-arrow {
  transform: translateX(0.3rem);
}

.contact-form-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-height: 1.2rem;
  color: var(--muted);
  flex: 1 1 14rem;
}

.contact-form-status[data-state="pending"] { color: var(--ink); }
.contact-form-status[data-state="success"] { color: #2f6d3f; }
.contact-form-status[data-state="error"]   { color: var(--red); }

/* ---- Marquee retune (slower, less cluttered, separator pills) ---- */
.marquee-track {
  animation-duration: 38s;
}

.marquee-set {
  gap: 1.4rem;
  padding-right: 1.4rem;
}

.marquee strong,
.marquee a {
  padding: 0.1rem 0.55rem;
}

.marquee i {
  font-style: normal;
  opacity: 0.7;
}

/* ---- Terminal-as-page tweaks ---- */
.terminal-section--page {
  margin-top: 0.6rem;
}

/* ---- Page-headline aside ---- */
.page-headline-aside {
  font-style: italic;
  color: var(--red);
}

/* ---- Reduced motion: keep things snappy and direct ---- */
@media (prefers-reduced-motion: reduce) {
  .menu-curtain.active .menu-burn-paper,
  .menu-curtain.closing .menu-burn-paper {
    transition: none;
  }
  .skill-chip,
  .reveal {
    transition: none;
  }
  .contact-send-button.is-pulsing {
    animation: none;
  }
}

/* ---- Page-headline title: tighter italic aside ---- */
.page-headline--contact .page-headline-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}

/* =========================================================
   Polish pass 25 - selected work rail, profile timeline, terminal typing
   ========================================================= */

/* Home profile: let the portrait lead, then the details. */
.profile-spread {
  grid-template-areas:
    "portrait copy"
    "head copy"
    "roles roles";
  grid-template-columns: minmax(22rem, 0.86fr) minmax(0, 1.14fr);
}

.profile-head {
  min-height: auto;
  align-content: start;
}

.profile-portrait {
  width: min(100%, 36rem);
  transform: none;
}

.profile-portrait-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 420ms var(--ease), filter 420ms ease;
}

.profile-portrait-link:hover,
.profile-portrait-link:focus-visible {
  transform: translateY(-0.35rem);
  filter: contrast(1.04);
  outline: none;
}

.profile-portrait-link img {
  border: 1px solid rgba(26, 25, 22, 0.32);
  box-shadow:
    0 0.3rem 0 rgba(26, 25, 22, 0.16),
    0 1.1rem 2rem rgba(26, 25, 22, 0.12);
}

.profile-copy {
  gap: clamp(0.95rem, 1.35vw, 1.25rem);
}

.profile-timeline {
  display: grid;
  gap: 0;
  margin-top: 0.4rem;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.045) 0 1px, transparent 1px 6px),
    rgba(255, 251, 235, 0.38);
}

.profile-timeline article {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(26, 25, 22, 0.2);
}

.profile-timeline article:last-child {
  border-bottom: 0;
}

.profile-timeline article > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--red);
}

.profile-timeline h3 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: clamp(1.12rem, 1.5vw, 1.45rem);
  line-height: 1;
  text-transform: uppercase;
}

.profile-timeline p {
  margin: 0;
  max-width: 58rem;
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.34;
}

/* Selected work rail: no right blur, smaller cards, complete artwork. */
.home-work::before,
.home-work::after {
  display: none;
}

.home-work .project-rail {
  grid-auto-columns: clamp(18.5rem, 24vw, 24rem);
  gap: clamp(0.85rem, 1.25vw, 1.1rem);
  padding: 0.35rem 0 1.1rem;
  scroll-padding-inline: 0.2rem;
}

.home-work .project-card {
  overflow: visible;
}

.home-work .project-card,
.home-work .project-card:hover,
.home-work .project-card:focus-within {
  transform: translateY(0);
}

.home-work .project-card:hover,
.home-work .project-card:focus-within {
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.2),
    0 1rem 1.9rem rgba(26, 25, 22, 0.13),
    inset 0 0 0 1px rgba(255, 248, 226, 0.24);
}

.home-work .project-card .project-main {
  gap: 0.68rem;
}

.home-work .project-card header img,
.home-work .project-card:hover header img,
.home-work .project-card:focus-within header img {
  width: 2.35rem;
  height: 2.35rem;
  transform: none;
}

.home-work .project-card h3 {
  font-size: clamp(2.45rem, 3.2vw, 3.35rem);
  line-height: 0.88;
  max-width: 9.5ch;
}

.home-work .project-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  padding: clamp(0.45rem, 0.8vw, 0.7rem);
  overflow: hidden;
}

.home-work .project-image img,
.home-work .project-card:hover .project-image img,
.home-work .project-card:focus-within .project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.home-work .project-card footer p {
  max-width: 13.5rem;
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
}

.home-work .project-card footer span,
.home-work .project-card:hover footer span,
.home-work .project-card:focus-within footer span {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  font-size: 1.05rem;
  transform: none;
}

.home-work .card-visit {
  min-height: 2.85rem;
  margin-top: 0.1rem;
  letter-spacing: 0.12em;
  border-color: rgba(26, 25, 22, 0.86);
}

.home-work .card-visit:hover,
.home-work .card-visit:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.22),
    0 0.7rem 1.15rem rgba(26, 25, 22, 0.18);
}

/* Footer marquee: highlight the email as the real action. */
.marquee .marquee-email {
  display: inline-block;
  margin: 0 0.15rem;
  padding: 0.16rem 0.62rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-light);
  background: var(--ink);
  text-decoration: none;
}

.marquee .marquee-email:hover,
.marquee .marquee-email:focus-visible {
  color: var(--paper-light);
  background: var(--red);
  border-color: var(--red);
}

/* Footer socials: rounded buttons instead of flat logo text. */
.footer-socials.brand-socials {
  grid-template-columns: repeat(4, minmax(8rem, 11rem));
  justify-content: center;
  gap: 0.7rem;
}

.footer-socials .brand-social,
.footer-socials .brand-social:hover,
.footer-socials .brand-social:focus-visible {
  height: 2.85rem;
  border-radius: 999px;
  transform: translateY(0);
}

.footer-socials .brand-social:hover,
.footer-socials .brand-social:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  border-color: var(--ink);
}

.footer-socials .brand-social::before {
  border-radius: 999px;
}

/* Terminal typewriter feedback. */
.terminal-console {
  background:
    radial-gradient(circle at 10% 0%, rgba(163, 49, 40, 0.08), transparent 12rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 6px),
    rgba(234, 223, 206, 0.52);
}

.terminal-output {
  gap: 0.55rem;
}

.terminal-line {
  position: relative;
  min-height: 1.45em;
  white-space: pre-wrap;
}

.terminal-line.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.16rem;
  background: var(--red);
  vertical-align: -0.18em;
  animation: terminalCaret 720ms steps(1, end) infinite;
}

.terminal-line--input {
  color: var(--red);
}

.terminal-line--system {
  color: var(--ink);
}

.terminal-command-list button {
  min-height: 2.25rem;
  border-color: rgba(26, 25, 22, 0.35);
}

.terminal-form input {
  caret-color: var(--red);
}

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

@media (max-width: 860px) {
  .profile-spread {
    grid-template-areas:
      "portrait"
      "head"
      "copy"
      "roles";
  }

  .home-work .project-rail {
    grid-auto-columns: minmax(18rem, 84vw);
  }
}

@media (max-width: 560px) {
  .profile-timeline article {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

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

/* Contact page: tighter ending, stronger form, stable social buttons. */
body[data-page="contact"] .site-shell {
  padding-bottom: 0;
}

body[data-page="contact"] .contact-page {
  border-bottom: 0;
}

.contact-columns--redesign {
  grid-template-columns: minmax(19rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 2vw, 1.55rem);
  align-items: stretch;
}

.contact-columns--redesign .contact-column {
  min-height: 0;
}

.contact-column {
  padding: clamp(1.15rem, 2vw, 1.65rem);
}

.contact-column--email {
  gap: 1rem;
}

.email-link {
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  line-height: 0.95;
}

.contact-elsewhere {
  margin-top: 1.2rem;
}

.contact-socials.brand-socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.contact-socials .brand-social,
.contact-socials .brand-social:hover,
.contact-socials .brand-social:focus-visible {
  min-height: 3.15rem;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.42rem;
  transform: translateY(0);
  opacity: 1;
}

.contact-socials .brand-social {
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.88), rgba(224, 214, 198, 0.74));
  color: var(--ink);
  box-shadow:
    0 0.12rem 0 rgba(26, 25, 22, 0.14),
    inset 0 0 0 1px rgba(255, 248, 226, 0.18);
}

.contact-socials .brand-social:hover,
.contact-socials .brand-social:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.24),
    0 0.7rem 1.2rem rgba(26, 25, 22, 0.18);
}

.contact-socials .brand-social svg,
.contact-socials .brand-social:hover svg,
.contact-socials .brand-social:focus-visible svg {
  opacity: 1;
  color: currentColor;
  fill: currentColor;
}

.contact-socials .brand-social-label {
  opacity: 1;
  color: currentColor;
}

.contact-form-column {
  gap: 0.8rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 188, 88, 0.09), transparent 14rem),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.035) 0 1px, transparent 1px 7px),
    rgba(255, 251, 235, 0.44);
}

.contact-form-title {
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.3vw, 4.4rem);
  letter-spacing: 0;
}

.contact-form-helper {
  max-width: 50rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.12vw, 1.13rem);
  line-height: 1.42;
}

.contact-form {
  gap: 1rem;
  margin-top: 0.25rem;
}

.contact-form-row {
  gap: 1rem;
}

.contact-field {
  gap: 0.42rem;
}

.contact-field > span {
  color: var(--red);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.85rem 0.95rem;
  border-color: rgba(26, 25, 22, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(246, 239, 225, 0.92));
  font-family: var(--body);
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 226, 0.2);
}

.contact-form textarea {
  min-height: clamp(12rem, 24vw, 17rem);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  background: #fffaf0;
  box-shadow:
    0 0 0 3px rgba(163, 49, 40, 0.12),
    inset 0 0 0 1px rgba(255, 248, 226, 0.28);
}

.contact-send-button {
  min-height: 3.3rem;
  padding-inline: 1.35rem;
  font-size: 0.82rem;
}

.contact-form-status {
  flex-basis: 20rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .contact-columns--redesign {
    grid-template-columns: 1fr;
  }
}

/* Pass 27 EOF overrides: these intentionally sit after all older polish passes. */
body[data-page="index"] .profile-spread {
  grid-template-columns: minmax(26rem, 1fr) minmax(0, 1.32fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4.1rem);
  align-items: start;
}

body[data-page="index"] .profile-portrait {
  width: 100%;
  max-width: 44rem;
  justify-self: stretch;
  margin: 0;
}

body[data-page="index"] .profile-portrait-link,
body[data-page="index"] .profile-portrait-link img {
  width: 100%;
}

body[data-page="index"] .profile-portrait-link img {
  display: block;
  max-height: none;
}

.site-shell::after,
.work-strip::before,
.work-strip::after,
.home-work::before,
.home-work::after {
  display: none !important;
  opacity: 0 !important;
}

.section-tabs,
.portrait-socials {
  backdrop-filter: none !important;
}

.home-work .project-rail {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.home-work .project-rail.dragging {
  cursor: grabbing;
}

.home-work .project-card {
  scroll-snap-align: start;
}

.marquee .marquee-email {
  font-size: 0.64em;
  line-height: 1.1;
  vertical-align: 0.16em;
  padding: 0.18rem 0.58rem;
  letter-spacing: 0.08em;
}

.footer-socials.brand-socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}

.footer-socials .brand-social,
.footer-socials .brand-social:hover,
.footer-socials .brand-social:focus-visible {
  width: 100%;
  height: clamp(3.25rem, 5vw, 4.15rem);
  padding: 0 1.2rem;
  justify-content: center;
  border-radius: 999px;
  transform: none;
  filter: none;
}

.footer-socials .brand-social::after {
  display: none;
}

.menu-curtain {
  --burn-x: var(--menu-iris-x, 88%);
  --burn-y: var(--menu-iris-y, 8%);
  clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0);
  transform: scale(1);
  filter: saturate(0.92);
  transition:
    clip-path 760ms cubic-bezier(0.17, 0.84, 0.24, 1),
    opacity 260ms ease,
    filter 760ms ease,
    visibility 260ms;
}

.menu-curtain.active {
  clip-path: polygon(-8% -8%, 108% -8%, 108% 108%, -8% 108%);
  filter: saturate(1);
}

.menu-curtain .menu-burn {
  display: block !important;
}

.menu-burn-edge {
  display: none !important;
}

.menu-curtain.active::before {
  animation: menuHeatWashFinal 980ms ease-out both;
}

.menu-curtain.active .menu-burn-paper {
  animation: menuPaperFlashFinal 980ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
}

.menu-curtain.active .menu-burn-ember {
  animation: menuEmberBloomFinal 980ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
}

.menu-burn-paper {
  background:
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.07) 0, rgba(26, 25, 22, 0.07) 1px, transparent 1px, transparent 5px),
    linear-gradient(120deg, rgba(255, 188, 88, 0.28) 0%, rgba(163, 49, 40, 0.22) 18%, transparent 36%),
    linear-gradient(180deg, rgba(255, 248, 226, 0.54), rgba(214, 204, 189, 0)),
    var(--paper);
}

.menu-burn-ember {
  background:
    linear-gradient(110deg, transparent 0 35%, rgba(255, 188, 88, 0.0) 38%, rgba(255, 188, 88, 0.5) 48%, rgba(209, 90, 53, 0.34) 55%, transparent 66%),
    repeating-linear-gradient(110deg, transparent 0 0.75rem, rgba(255, 188, 88, 0.08) 0.8rem 0.9rem, transparent 0.95rem 1.5rem);
  transform: translate3d(42%, -42%, 0) skewX(-8deg);
}

@keyframes menuHeatWashFinal {
  0% { opacity: 0; transform: translate3d(18%, -14%, 0) scale(1.06); }
  36% { opacity: 0.95; }
  100% { opacity: 0.38; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes menuPaperFlashFinal {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  42% { opacity: 0.72; transform: translate3d(-2.5%, 1.5%, 0); }
  100% { opacity: 0; transform: translate3d(-10%, 6%, 0); }
}

@keyframes menuEmberBloomFinal {
  0% { opacity: 0; transform: translate3d(46%, -42%, 0) skewX(-8deg); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-48%, 42%, 0) skewX(-8deg); }
}

body[data-page="contact"] .contact-page--redesign {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2.1rem);
  padding-top: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}

body[data-page="contact"] .contact-dispatch,
body[data-page="contact"] .contact-column,
body[data-page="contact"] .contact-brief-grid article {
  border: 1px solid rgba(26, 25, 22, 0.26);
  border-radius: 8px;
  box-shadow:
    0 0.22rem 0 rgba(26, 25, 22, 0.12),
    0 0.8rem 1.7rem rgba(26, 25, 22, 0.08);
}

body[data-page="contact"] .contact-dispatch {
  padding: clamp(1.15rem, 2.6vw, 2rem);
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.035) 1px, transparent 1px) 0 0 / 4rem 100%,
    rgba(255, 251, 235, 0.36);
}

body[data-page="contact"] .contact-dispatch-copy {
  min-height: auto;
  border: 0;
  padding: clamp(1rem, 2vw, 1.7rem);
  background: transparent;
}

body[data-page="contact"] .contact-brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
  border: 0;
  background: transparent;
}

body[data-page="contact"] .contact-brief-grid article {
  min-height: clamp(13rem, 18vw, 16rem);
  padding: clamp(1.05rem, 2vw, 1.55rem);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 188, 88, 0.14), transparent 8rem),
    linear-gradient(180deg, rgba(255, 251, 235, 0.72), rgba(234, 223, 206, 0.45));
}

body[data-page="contact"] .contact-brief-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(163, 49, 40, 0.45);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.6);
}

body[data-page="contact"] .contact-columns--redesign {
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 2.2vw, 1.65rem);
  align-items: stretch;
  margin-top: clamp(0.45rem, 1.2vw, 1rem);
}

body[data-page="contact"] .contact-column {
  min-height: auto;
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.03) 1px, transparent 1px) 0 0 / 4rem 100%,
    rgba(255, 251, 235, 0.38);
}

body[data-page="contact"] .contact-form-title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4.6vw, 5rem);
}

body[data-page="contact"] .contact-form input[type="text"],
body[data-page="contact"] .contact-form input[type="email"],
body[data-page="contact"] .contact-form textarea {
  border-radius: 6px;
}

@media (max-width: 1100px) {
  body[data-page="index"] .profile-spread,
  body[data-page="contact"] .contact-brief-grid,
  body[data-page="contact"] .contact-columns--redesign {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .profile-spread {
    grid-template-areas:
      "portrait"
      "head"
      "copy"
      "roles";
  }
}

@media (max-width: 700px) {
  .footer-socials.brand-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.marquee .marquee-email {
  font-size: clamp(0.78rem, 0.9vw, 0.95rem) !important;
}

/* Pass 28 final polish: selected builds, footer CTA, menu button hover. */
.site-shell,
.footer,
.home-work,
.work-strip {
  overflow: visible !important;
}

.footer {
  padding-bottom: clamp(1.25rem, 2.4vw, 2.25rem);
  filter: none !important;
  backdrop-filter: none !important;
}

.footer::before,
.footer::after,
.marquee::before,
.marquee::after {
  display: none !important;
  content: none !important;
}

body[data-page="index"] .home-work {
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.4vw, 2.2rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}

body[data-page="index"] .home-work .strip-intro {
  position: sticky;
  top: clamp(1rem, 2vw, 1.5rem);
  min-height: auto;
}

body[data-page="index"] .home-work .strip-intro h2 {
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  line-height: 0.92;
}

body[data-page="index"] .home-work .strip-intro p {
  max-width: 11ch;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.65vw, 1.55rem);
  line-height: 1.1;
}

.home-work .project-rail.project-rail--stack {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: unset;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.45rem);
  overflow: visible;
  padding: 0;
  cursor: default;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.home-work .project-rail.project-rail--stack::-webkit-scrollbar {
  display: none;
}

.home-work .project-rail.project-rail--stack .project-card {
  position: relative;
  width: 100%;
  min-height: auto;
  scroll-snap-align: none;
  transform: none;
  clip-path: polygon(0.35% 0.6%, 99.5% 0.2%, 99.1% 99.4%, 0.7% 99%);
  transition:
    transform 360ms var(--ease),
    box-shadow 360ms ease,
    background 360ms ease;
}

.home-work .project-rail.project-rail--stack .project-card:first-child {
  grid-column: 1 / -1;
}

.home-work .project-rail.project-rail--stack .project-card:nth-child(even) {
  transform: translateY(0.75rem);
}

.home-work .project-rail.project-rail--stack .project-card:hover,
.home-work .project-rail.project-rail--stack .project-card:focus-within,
.home-work .project-rail.project-rail--stack .project-card.is-selected {
  transform: translateY(-0.35rem);
  background: rgba(244, 236, 222, 0.96);
  box-shadow:
    0 0.2rem 0 rgba(26, 25, 22, 0.18),
    0 1.2rem 2.2rem rgba(26, 25, 22, 0.12);
}

.home-work .project-rail.project-rail--stack .project-card:first-child .project-main {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "header image"
    "title image"
    "footer image";
  align-items: stretch;
}

.home-work .project-rail.project-rail--stack .project-card:first-child header {
  grid-area: header;
}

.home-work .project-rail.project-rail--stack .project-card:first-child h3 {
  grid-area: title;
  align-self: center;
}

.home-work .project-rail.project-rail--stack .project-card:first-child .project-image {
  grid-area: image;
  height: clamp(18rem, 30vw, 30rem);
  min-height: clamp(18rem, 30vw, 30rem);
}

.home-work .project-rail.project-rail--stack .project-card:first-child footer {
  grid-area: footer;
}

.home-work .project-rail.project-rail--stack .project-image {
  aspect-ratio: 16 / 10.5;
  height: clamp(13rem, 20vw, 20rem);
  min-height: clamp(13rem, 20vw, 20rem);
  max-height: none;
}

.home-work .project-rail.project-rail--stack .project-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  object-fit: contain !important;
}

.home-work .project-rail.project-rail--stack .card-visit {
  min-height: 3.2rem;
  letter-spacing: 0.14em;
}

body > .menu-button {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(232, 222, 205, 0.92)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 6px) !important;
  color: var(--ink);
}

body > .menu-button::after {
  inset: auto;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 190%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--ink) !important;
  opacity: 1;
  mix-blend-mode: normal;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

body > .menu-button::before {
  z-index: 1;
}

body > .menu-button span {
  z-index: 2;
}

body > .menu-button:hover,
body > .menu-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink) !important;
  transform: translateY(-2px);
}

body > .menu-button:hover::after,
body > .menu-button:focus-visible::after {
  transform: translate(-50%, -50%) scale(1);
}

body > .menu-button:hover span,
body > .menu-button:focus-visible span {
  background: var(--paper-light) !important;
}

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

.marquee .marquee-help {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1rem 0.35rem;
}

.marquee .marquee-email {
  margin: 0 0.18rem;
  padding: 0.16rem 0.62rem !important;
  border-radius: 0;
  color: var(--paper-light) !important;
  background: var(--ink) !important;
  font-size: 1em !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  vertical-align: baseline !important;
}

.marquee .marquee-email:hover,
.marquee .marquee-email:focus-visible {
  background: var(--red) !important;
}

@media (max-width: 980px) {
  body[data-page="index"] .home-work {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-work .strip-intro {
    position: relative;
    top: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .home-work .project-rail.project-rail--stack,
  .home-work .project-rail.project-rail--stack .project-card:first-child .project-main {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .home-work .project-rail.project-rail--stack .project-card:first-child header,
  .home-work .project-rail.project-rail--stack .project-card:first-child h3,
  .home-work .project-rail.project-rail--stack .project-card:first-child .project-image,
  .home-work .project-rail.project-rail--stack .project-card:first-child footer {
    grid-area: auto;
  }

  .home-work .project-rail.project-rail--stack .project-card:nth-child(even) {
    transform: none;
  }
}

/* ============================================================
   ANIMATION OVERHAUL — eye-catching motion, staggered reveals,
   split-card work section, menu flip, parallax tilt
   ============================================================ */

/* ---- 1. Enhanced reveal system with varied entrance types ---- */
.reveal-slide-left {
  opacity: 0;
  transform: translateX(-3rem);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(3rem);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-rotate {
  opacity: 0;
  transform: translateY(2rem) rotate(3deg);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-rotate.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 900ms cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-clip.visible {
  clip-path: inset(0 0 0 0);
}

/* ---- 2. Menu flip animation upgrade ---- */
@keyframes menuFlipIn {
  0% {
    opacity: 0;
    transform: perspective(800px) rotateX(-90deg) translateY(-1rem);
    filter: blur(4px);
  }
  50% {
    opacity: 0.7;
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
    filter: blur(0);
  }
}

.menu-curtain.active .menu-panel > a {
  animation: menuFlipIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transform-origin: top center;
}

.menu-curtain.active .menu-panel > a:nth-child(1) { animation-delay: 120ms; }
.menu-curtain.active .menu-panel > a:nth-child(2) { animation-delay: 200ms; }
.menu-curtain.active .menu-panel > a:nth-child(3) { animation-delay: 280ms; }
.menu-curtain.active .menu-panel > a:nth-child(4) { animation-delay: 360ms; }

/* Menu socials stagger in */
@keyframes menuSocialPop {
  0% {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.7);
  }
  70% {
    transform: translateY(-0.1rem) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-curtain.active .menu-socials .brand-social {
  opacity: 0;
  animation: menuSocialPop 520ms var(--ease) forwards;
}
.menu-curtain.active .menu-socials .brand-social:nth-child(1) { animation-delay: 440ms; }
.menu-curtain.active .menu-socials .brand-social:nth-child(2) { animation-delay: 500ms; }
.menu-curtain.active .menu-socials .brand-social:nth-child(3) { animation-delay: 560ms; }
.menu-curtain.active .menu-socials .brand-social:nth-child(4) { animation-delay: 620ms; }

/* Hamburger flip morph — more dramatic rotation */
body.menu-open .menu-button {
  transform: rotate(180deg) scale(0.9);
  transition: transform 520ms cubic-bezier(0.68, -0.55, 0.27, 1.55), background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

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

/* ---- 3. Split-card work section with 3D tilt ---- */
.home-work .project-rail.project-rail--stack .project-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 520ms ease,
    background 360ms ease;
}

.home-work .project-rail.project-rail--stack .project-card .project-main {
  transition: transform 520ms var(--ease);
  will-change: transform;
}

/* 3D tilt on hover — JS will set --tilt-x and --tilt-y */
.home-work .project-rail.project-rail--stack .project-card[style*="--tilt-x"] .project-main {
  transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
}

/* Enhanced card hover lift */
.home-work .project-rail.project-rail--stack .project-card:hover,
.home-work .project-rail.project-rail--stack .project-card:focus-within {
  transform: translateY(-0.6rem) scale(1.015);
  box-shadow:
    0 1.8rem 3.5rem rgba(26, 25, 22, 0.18),
    0 0.4rem 0 rgba(26, 25, 22, 0.12);
}

/* Card stagger entrance */
@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(3rem) rotate(2deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.home-work .project-rail.project-rail--stack .project-card.visible {
  animation: cardSlideUp 800ms var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

/* First card special: splits wider with featured visual */
.home-work .project-rail.project-rail--stack .project-card:first-child.visible {
  animation: cardScaleIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cardScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(2rem);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---- 4. Button upgrades — shine sweep + press + magnetic ---- */
.card-visit,
.drag-arrows button,
.text-link,
.contact-form button[type="submit"],
.detail-actions a,
.end-card-cta a {
  position: relative;
  overflow: hidden;
}

/* Universal shine sweep on hover */
.card-visit::after,
.detail-actions a::after,
.end-card-cta a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0s 0.6s;
  pointer-events: none;
}

.card-visit:hover::after,
.detail-actions a:hover::after,
.end-card-cta a:hover::after {
  left: 125%;
  transition: left 0.6s var(--ease);
}

/* Button press state */
.card-visit:active,
.drag-arrows button:active,
.detail-actions a:active,
.end-card-cta a:active {
  transform: scale(0.95) translateY(1px);
  transition-duration: 100ms;
}

/* ---- 5. Marquee upgrade — gradient glow + smoother ---- */
.marquee {
  position: relative;
}

.marquee::before,
.marquee::after {
  z-index: 2;
  width: 5rem;
}

.marquee-track {
  animation-duration: 20s;
  animation-timing-function: linear;
}

/* Marquee glow underline */
.marquee::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--red) 20%,
    var(--red-hot) 50%,
    var(--red) 80%,
    transparent
  );
  opacity: 0.6;
  animation: marqueeGlow 3s ease-in-out infinite alternate;
}

@keyframes marqueeGlow {
  0% { opacity: 0.3; filter: blur(0px); }
  100% { opacity: 0.7; filter: blur(1px); }
}

/* Marquee separator pulse */
.marquee-set i {
  animation: separatorPulse 2.4s ease-in-out infinite;
}

@keyframes separatorPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ---- 6. Profile hero staggered entrance ---- */
@keyframes heroHeadIn {
  0% {
    opacity: 0;
    transform: translateY(2.5rem) scale(0.96);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroPortraitIn {
  0% {
    opacity: 0;
    transform: rotate(-1.5deg) translateX(3rem) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(-1.5deg) translateX(0) scale(1);
  }
}

@keyframes heroCopyIn {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(1rem);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes heroStatsIn {
  0% {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRolesIn {
  0% {
    opacity: 0;
    transform: translateY(2rem) scaleY(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.loaded .profile-head {
    animation: heroHeadIn 920ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: 200ms;
  }

  body.loaded .profile-portrait {
    animation: heroPortraitIn 1000ms var(--ease) both;
    animation-delay: 450ms;
  }

  body.loaded .profile-copy {
    animation: heroCopyIn 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: 350ms;
  }

  body.loaded .profile-stats {
    animation: heroStatsIn 700ms var(--ease) both;
    animation-delay: 650ms;
  }

  body.loaded .profile-stats li {
    opacity: 0;
    animation: heroStatsIn 600ms var(--ease) both;
  }
  body.loaded .profile-stats li:nth-child(1) { animation-delay: 700ms; }
  body.loaded .profile-stats li:nth-child(2) { animation-delay: 800ms; }
  body.loaded .profile-stats li:nth-child(3) { animation-delay: 900ms; }

  body.loaded .profile-roles {
    animation: heroRolesIn 820ms var(--ease) both;
    animation-delay: 750ms;
  }

  body.loaded .profile-roles article {
    opacity: 0;
    animation: heroStatsIn 600ms var(--ease) both;
  }
  body.loaded .profile-roles article:nth-child(1) { animation-delay: 850ms; }
  body.loaded .profile-roles article:nth-child(2) { animation-delay: 950ms; }
  body.loaded .profile-roles article:nth-child(3) { animation-delay: 1050ms; }
}

/* ---- 7. Section divider animations ---- */
@keyframes sectionDividerGrow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.home-work.visible::before,
.home-about-page.visible::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--content-gutter);
  right: var(--content-gutter);
  height: 1px;
  background: var(--rule-strong);
  transform-origin: left;
  animation: sectionDividerGrow 800ms var(--ease) both;
}

/* ---- 8. Thought-list card stagger ---- */
.thought-list article {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.thought-list.is-visible article:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.thought-list.is-visible article:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.thought-list.is-visible article:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.thought-list.is-visible article:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 360ms; }

/* ---- 9. Profile timeline stagger ---- */
.profile-timeline article {
  opacity: 0;
  transform: translateX(-1.5rem);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.profile-timeline.is-visible article:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0ms; }
.profile-timeline.is-visible article:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 150ms; }
.profile-timeline.is-visible article:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 300ms; }
.profile-timeline.is-visible article:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 450ms; }

/* ---- 10. Notes panel stagger ---- */
.note-row {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}

.notes-panel.visible .note-row:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.notes-panel.visible .note-row:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 220ms; }
.notes-panel.visible .note-row:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 340ms; }

/* ---- 11. Footer social bounce-in on scroll ---- */
@keyframes footerSocialBounce {
  0% {
    opacity: 0;
    transform: translateY(1.5rem) rotateX(-30deg) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-0.2rem) rotateX(3deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

.footer-socials.brand-socials.is-visible .brand-social {
  animation: footerSocialBounce 650ms var(--ease) both;
}
.footer-socials.brand-socials.is-visible .brand-social:nth-child(1) { animation-delay: 0ms; }
.footer-socials.brand-socials.is-visible .brand-social:nth-child(2) { animation-delay: 100ms; }
.footer-socials.brand-socials.is-visible .brand-social:nth-child(3) { animation-delay: 200ms; }
.footer-socials.brand-socials.is-visible .brand-social:nth-child(4) { animation-delay: 300ms; }

/* ---- 12. Strip-intro title animation ---- */
@keyframes stripTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(1rem) skewY(2deg);
    clip-path: inset(0 0 100% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    clip-path: inset(0 0 0 0);
  }
}

.home-work .strip-intro h2 {
  animation: stripTitleReveal 900ms var(--ease) both;
  animation-delay: 200ms;
  animation-play-state: paused;
}

.home-work.visible .strip-intro h2 {
  animation-play-state: running;
}

/* ---- 13. Smooth page transition overlay ---- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.is-entering {
  animation: pageWipeIn 500ms cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@keyframes pageWipeIn {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* Pass 29 hard overrides: final selected-build framing and real menu button hover. */
.home-work .project-rail.project-rail--stack .project-image {
  --selected-image-pad: clamp(0.55rem, 0.9vw, 0.8rem);
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.home-work .project-rail.project-rail--stack .project-image img,
.home-work .project-rail.project-rail--stack .project-card:hover .project-image img,
.home-work .project-rail.project-rail--stack .project-card:focus-within .project-image img {
  position: absolute !important;
  inset: var(--selected-image-pad) !important;
  display: block !important;
  width: calc(100% - (var(--selected-image-pad) * 2)) !important;
  height: calc(100% - (var(--selected-image-pad) * 2)) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.masthead > .menu-button,
body > .menu-button {
  overflow: hidden !important;
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(232, 222, 205, 0.92)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 6px) !important;
  color: var(--ink) !important;
}

.masthead > .menu-button::after,
body > .menu-button::after {
  content: "" !important;
  inset: auto !important;
  left: var(--ripple-x, 50%) !important;
  top: var(--ripple-y, 50%) !important;
  width: 190% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  border-radius: 999px !important;
  background: var(--ink) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transform: translate(-50%, -50%) scale(0) !important;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 0 !important;
}

.masthead > .menu-button:hover,
.masthead > .menu-button:focus-visible,
body > .menu-button:hover,
body > .menu-button:focus-visible {
  border-color: var(--ink) !important;
  background: var(--ink) !important;
  transform: translateY(-2px) !important;
}

.masthead > .menu-button:hover::after,
.masthead > .menu-button:focus-visible::after,
body > .menu-button:hover::after,
body > .menu-button:focus-visible::after {
  transform: translate(-50%, -50%) scale(1) !important;
}

.masthead > .menu-button span,
body > .menu-button span {
  position: relative !important;
  z-index: 2 !important;
}

.masthead > .menu-button:hover span,
.masthead > .menu-button:focus-visible span,
body > .menu-button:hover span,
body > .menu-button:focus-visible span {
  background: var(--paper-light) !important;
}

/* Pass 30: restore equal-size sliding selected-build cards and straighten portrait. */
@keyframes heroPortraitStraightIn {
  0% {
    opacity: 0;
    transform: translateX(2rem) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.profile-portrait,
body[data-page="index"] .profile-portrait {
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  body.loaded .profile-portrait {
    animation-name: heroPortraitStraightIn !important;
  }
}

body[data-page="index"] .home-work {
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr) !important;
  gap: clamp(1rem, 2vw, 1.65rem) !important;
  overflow: visible !important;
}

body[data-page="index"] .home-work .strip-intro {
  position: sticky !important;
  top: clamp(1rem, 2vw, 1.5rem) !important;
  z-index: 2 !important;
  background: transparent !important;
}

body[data-page="index"] .home-work .strip-intro h2 {
  max-width: 8ch !important;
}

body[data-page="index"] .home-work .project-rail {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-template-columns: none !important;
  grid-auto-columns: clamp(24rem, 30vw, 31rem) !important;
  align-items: stretch !important;
  gap: clamp(1rem, 1.5vw, 1.35rem) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-inline: 0.2rem !important;
  padding: 0.35rem 0 1.15rem !important;
  cursor: grab !important;
  scrollbar-gutter: stable !important;
}

body[data-page="index"] .home-work .project-rail.dragging {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}

body[data-page="index"] .home-work .project-rail.wheel-scrolling {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

body[data-page="index"] .home-work .project-card,
body[data-page="index"] .home-work .project-card:first-child,
body[data-page="index"] .home-work .project-card:nth-child(even) {
  width: auto !important;
  min-height: 100% !important;
  height: auto !important;
  grid-column: auto !important;
  overflow: visible !important;
  transform: none !important;
  scroll-snap-align: start !important;
}

body[data-page="index"] .home-work .project-card:hover,
body[data-page="index"] .home-work .project-card:focus-within {
  transform: translateY(-0.18rem) !important;
}

body[data-page="index"] .home-work .project-card .project-main,
body[data-page="index"] .home-work .project-card:first-child .project-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas: none !important;
  grid-template-rows: auto auto auto auto !important;
  min-height: 0 !important;
  gap: 0.7rem !important;
}

body[data-page="index"] .home-work .project-card:first-child header,
body[data-page="index"] .home-work .project-card:first-child h3,
body[data-page="index"] .home-work .project-card:first-child .project-image,
body[data-page="index"] .home-work .project-card:first-child footer {
  grid-area: auto !important;
}

body[data-page="index"] .home-work .project-image,
body[data-page="index"] .home-work .project-card:first-child .project-image {
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  min-height: 15rem !important;
  max-height: none !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

body[data-page="index"] .home-work .project-image img,
body[data-page="index"] .home-work .project-card:hover .project-image img,
body[data-page="index"] .home-work .project-card:focus-within .project-image img {
  position: absolute !important;
  inset: clamp(0.55rem, 0.9vw, 0.8rem) !important;
  width: calc(100% - (clamp(0.55rem, 0.9vw, 0.8rem) * 2)) !important;
  height: calc(100% - (clamp(0.55rem, 0.9vw, 0.8rem) * 2)) !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

@media (max-width: 980px) {
  body[data-page="index"] .home-work {
    grid-template-columns: 1fr !important;
  }

  body[data-page="index"] .home-work .strip-intro {
    position: relative !important;
    top: auto !important;
  }

  body[data-page="index"] .home-work .project-rail {
    grid-auto-columns: minmax(18rem, 84vw) !important;
  }
}

/* Pass 31: give the selected-build title its own lane beside the slider. */
body[data-page="index"] .home-work {
  grid-template-columns: minmax(18rem, 21rem) minmax(0, 1fr) !important;
  column-gap: clamp(2rem, 3.6vw, 3.4rem) !important;
}

body[data-page="index"] .home-work .strip-intro h2 {
  max-width: 8.5ch !important;
}

body[data-page="index"] .home-work .project-rail {
  scroll-behavior: smooth !important;
}

@media (max-width: 980px) {
  body[data-page="index"] .home-work {
    grid-template-columns: 1fr !important;
  }
}

/* Pass 33: restore menu glyphs, calm the overlay motion, and fix footer/mobile clipping. */
.masthead > .menu-button,
body > .menu-button {
  isolation: isolate !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  color: var(--ink) !important;
}

.masthead > .menu-button span,
body > .menu-button span {
  position: absolute !important;
  left: 50% !important;
  display: block !important;
  width: clamp(1.35rem, 1.8vw, 1.85rem) !important;
  min-width: clamp(1.35rem, 1.8vw, 1.85rem) !important;
  height: 2.5px !important;
  min-height: 2px !important;
  border-radius: 999px !important;
  background: var(--ink) !important;
  opacity: 1 !important;
  z-index: 3 !important;
  transform-origin: center !important;
  box-shadow: none !important;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    background 220ms ease,
    width 260ms ease !important;
}

.masthead > .menu-button span:nth-child(1),
body > .menu-button span:nth-child(1) {
  top: calc(50% - 0.45rem) !important;
  transform: translateX(-50%) !important;
}

.masthead > .menu-button span:nth-child(2),
body > .menu-button span:nth-child(2) {
  top: 50% !important;
  width: clamp(1.55rem, 2vw, 2.05rem) !important;
  min-width: clamp(1.55rem, 2vw, 2.05rem) !important;
  transform: translate(-50%, -50%) !important;
}

.masthead > .menu-button span:nth-child(3),
body > .menu-button span:nth-child(3) {
  top: calc(50% + 0.45rem) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
}

.masthead > .menu-button:hover span,
.masthead > .menu-button:focus-visible span,
body > .menu-button:hover span,
body > .menu-button:focus-visible span {
  background: var(--paper-light) !important;
}

body.menu-open .masthead > .menu-button span,
body.menu-open > .menu-button span,
.masthead > .menu-button.is-open span,
body > .menu-button.is-open span {
  background: var(--paper-light) !important;
}

body.menu-open .masthead > .menu-button span:nth-child(1),
body.menu-open > .menu-button span:nth-child(1),
.masthead > .menu-button.is-open span:nth-child(1),
body > .menu-button.is-open span:nth-child(1) {
  top: 50% !important;
  width: clamp(1.65rem, 2vw, 2.05rem) !important;
  min-width: clamp(1.65rem, 2vw, 2.05rem) !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

body.menu-open .masthead > .menu-button span:nth-child(2),
body.menu-open > .menu-button span:nth-child(2),
.masthead > .menu-button.is-open span:nth-child(2),
body > .menu-button.is-open span:nth-child(2) {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scaleX(0) !important;
}

body.menu-open .masthead > .menu-button span:nth-child(3),
body.menu-open > .menu-button span:nth-child(3),
.masthead > .menu-button.is-open span:nth-child(3),
body > .menu-button.is-open span:nth-child(3) {
  top: 50% !important;
  width: clamp(1.65rem, 2vw, 2.05rem) !important;
  min-width: clamp(1.65rem, 2vw, 2.05rem) !important;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.menu-button.igniting,
.menu-button.igniting::before,
.menu-button.igniting::after {
  animation: none !important;
}

.menu-curtain {
  clip-path: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background:
    linear-gradient(180deg, rgba(34, 31, 26, 0.98), rgba(18, 18, 16, 0.98)),
    repeating-linear-gradient(180deg, rgba(234, 223, 206, 0.045) 0 1px, transparent 1px 7px) !important;
  transform: translateY(-0.8rem) scale(0.992) !important;
  transition:
    opacity 320ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 320ms ease !important;
}

.menu-curtain.active {
  clip-path: none !important;
  filter: none !important;
  transform: translateY(0) scale(1) !important;
}

.menu-curtain::before,
.menu-curtain::after,
.menu-curtain.active::before,
.menu-curtain .menu-burn,
.menu-curtain.active .menu-burn,
.menu-curtain.closing .menu-burn,
.menu-curtain .menu-burn-paper,
.menu-curtain.active .menu-burn-paper,
.menu-curtain.closing .menu-burn-paper,
.menu-curtain .menu-burn-grain,
.menu-curtain .menu-burn-ember,
.menu-curtain.active .menu-burn-ember,
.menu-curtain .menu-burn-edge,
.menu-curtain.active .menu-burn-edge {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  filter: none !important;
}

.menu-curtain.active .menu-panel > a {
  animation: menuSimpleRise 440ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.menu-curtain.active .menu-panel > a:nth-child(1) { animation-delay: 80ms !important; }
.menu-curtain.active .menu-panel > a:nth-child(2) { animation-delay: 130ms !important; }
.menu-curtain.active .menu-panel > a:nth-child(3) { animation-delay: 180ms !important; }
.menu-curtain.active .menu-panel > a:nth-child(4) { animation-delay: 230ms !important; }

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

html,
body,
.site-shell,
.footer {
  overflow-x: clip;
}

.site-shell {
  padding-bottom: clamp(2rem, 4vw, 4rem) !important;
  overflow-y: visible !important;
}

.site-shell::before,
.site-shell::after,
.footer::before,
.footer::after,
.marquee::before,
.marquee::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.footer {
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem) !important;
  padding-bottom: clamp(2.1rem, 4.2vw, 3.6rem) !important;
  border-bottom: 1px solid var(--rule-strong) !important;
}

body[data-page="index"] .home-work .project-rail {
  grid-auto-columns: clamp(25rem, 30vw, 31rem) !important;
  align-items: stretch !important;
}

body[data-page="index"] .home-work .project-card {
  min-height: 35.5rem !important;
  height: auto !important;
}

body[data-page="index"] .home-work .project-image {
  min-height: 15.4rem !important;
}

@media (max-width: 760px) {
  .site-shell {
    padding-inline: clamp(0.85rem, 4vw, 1.1rem) !important;
    padding-bottom: 2.8rem !important;
  }

  .masthead {
    grid-template-columns: clamp(3.55rem, 16vw, 4.25rem) minmax(0, 1fr) clamp(2.7rem, 11vw, 3rem) !important;
    min-height: 6.1rem !important;
    gap: 0.65rem !important;
  }

  .masthead .journal-name {
    grid-column: 2 !important;
    justify-self: start !important;
    max-width: 100% !important;
    font-size: clamp(1.95rem, 8.7vw, 2.7rem) !important;
    line-height: 0.88 !important;
    white-space: normal !important;
    text-align: left !important;
  }

  .masthead-contact {
    display: none !important;
  }

  .masthead > .menu-button,
  body > .menu-button {
    grid-column: 3 !important;
    justify-self: end !important;
    width: clamp(2.65rem, 11vw, 3rem) !important;
    height: clamp(2.65rem, 11vw, 3rem) !important;
  }

  .menu-panel {
    width: min(100%, 23rem) !important;
    padding-inline: 1rem !important;
  }

  .menu-panel > a {
    font-size: clamp(3rem, 17vw, 5rem) !important;
    line-height: 0.88 !important;
  }

  .profile-spread {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding-inline: 0 !important;
  }

  .profile-media,
  .profile-copy {
    width: 100% !important;
    min-width: 0 !important;
  }

  .profile-portrait {
    width: min(100%, 25rem) !important;
    margin-inline: auto !important;
  }

  .profile-copy h2 {
    font-size: clamp(2.6rem, 14vw, 4.5rem) !important;
    line-height: 0.88 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="index"] .home-work {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  body[data-page="index"] .home-work .strip-intro h2 {
    max-width: none !important;
    font-size: clamp(3rem, 15vw, 4.6rem) !important;
  }

  body[data-page="index"] .home-work .project-rail {
    grid-auto-columns: minmax(18.25rem, 86vw) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 1.1rem !important;
  }

  body[data-page="index"] .home-work .project-card {
    min-height: 32rem !important;
  }

  body[data-page="index"] .home-work .project-image {
    min-height: 13rem !important;
  }

  .footer .marquee {
    overflow: hidden !important;
  }

  .footer-socials.brand-socials {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  .footer-socials .brand-social {
    min-height: 3.5rem !important;
  }
}

/* Pass 36: footer cleanup and selected-build split cards. */
.site-shell {
  padding-bottom: 0 !important;
}

.footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

.footer .marquee {
  border-top: 1px solid var(--rule-strong) !important;
  border-bottom: 1px solid var(--rule-strong) !important;
  overflow: hidden !important;
}

.marquee-set span::after,
.marquee-set a::after,
.marquee .marquee-help::after,
.marquee .marquee-email::after {
  content: none !important;
  display: none !important;
}

.marquee .marquee-help {
  gap: 0.35rem !important;
  padding: 0 !important;
}

.marquee .marquee-email {
  display: inline-block !important;
  margin: 0 0.12rem !important;
  padding: 0.12rem 0.52rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--paper-light) !important;
  background: var(--ink) !important;
  font-size: 1em !important;
  line-height: 1 !important;
}

.footer-socials.brand-socials {
  padding: clamp(1.2rem, 2vw, 1.6rem) var(--content-gutter) clamp(1.1rem, 2vw, 1.45rem) !important;
  border-bottom: 0 !important;
  background: rgba(234, 223, 206, 0.24) !important;
}

body[data-page="index"] .home-work .project-rail {
  grid-auto-columns: clamp(40rem, 57vw, 52rem) !important;
}

body[data-page="index"] .home-work .project-card,
body[data-page="index"] .home-work .project-card:first-child,
body[data-page="index"] .home-work .project-card:nth-child(even) {
  min-height: 37.5rem !important;
}

body[data-page="index"] .home-work .project-card .project-main,
body[data-page="index"] .home-work .project-card:first-child .project-main {
  grid-template-columns: minmax(16rem, 1.08fr) minmax(13rem, 0.92fr) !important;
  grid-template-rows: auto auto minmax(20rem, 1fr) auto !important;
  grid-template-areas:
    "meta meta"
    "title title"
    "image points"
    "footer footer" !important;
  gap: clamp(0.7rem, 1vw, 1rem) !important;
  align-items: stretch !important;
}

body[data-page="index"] .home-work .project-card header {
  grid-area: meta !important;
}

body[data-page="index"] .home-work .project-card h3 {
  grid-area: title !important;
  min-height: auto !important;
  margin-bottom: 0.05rem !important;
  font-size: clamp(3rem, 4.4vw, 5rem) !important;
}

body[data-page="index"] .home-work .project-image,
body[data-page="index"] .home-work .project-card:first-child .project-image {
  grid-area: image !important;
  aspect-ratio: auto !important;
  min-height: 20rem !important;
  height: 100% !important;
}

body[data-page="index"] .home-work .project-points {
  grid-area: points;
  display: grid;
  align-content: center;
  gap: 0.68rem;
  padding: clamp(0.85rem, 1.3vw, 1.1rem);
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.36), rgba(214, 204, 189, 0.16)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.04) 0 1px, transparent 1px 7px);
}

body[data-page="index"] .home-work .project-points span {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.82vw, 0.8rem);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body[data-page="index"] .home-work .project-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--red);
  background: rgba(163, 49, 40, 0.12);
}

body[data-page="index"] .home-work .project-card footer {
  grid-area: footer !important;
}

body[data-page="index"] .home-work .project-card .card-visit {
  min-height: 3rem !important;
}

@media (max-width: 980px) {
  body[data-page="index"] .home-work .project-rail {
    grid-auto-columns: minmax(18.5rem, 86vw) !important;
  }

  body[data-page="index"] .home-work .project-card,
  body[data-page="index"] .home-work .project-card:first-child,
  body[data-page="index"] .home-work .project-card:nth-child(even) {
    min-height: 35rem !important;
  }

  body[data-page="index"] .home-work .project-card .project-main,
  body[data-page="index"] .home-work .project-card:first-child .project-main {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
    grid-template-areas:
      "meta"
      "title"
      "image"
      "points"
      "footer" !important;
  }

  body[data-page="index"] .home-work .project-image,
  body[data-page="index"] .home-work .project-card:first-child .project-image {
    min-height: 13.25rem !important;
    aspect-ratio: 16 / 10 !important;
  }

  body[data-page="index"] .home-work .project-points {
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }

  body[data-page="index"] .home-work .project-points span {
    font-size: 0.66rem !important;
  }

  .footer-socials.brand-socials {
    padding-inline: 1rem !important;
  }
}

/* Pass 40: square selected-build panels and stepped card snapping. */
body[data-page="index"] .home-work .project-rail {
  grid-auto-columns: clamp(46rem, 62vw, 58rem) !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-inline: calc((100% - min(100%, clamp(46rem, 62vw, 58rem))) / 2) !important;
}

body[data-page="index"] .home-work .project-card,
body[data-page="index"] .home-work .project-card:first-child,
body[data-page="index"] .home-work .project-card:nth-child(even) {
  min-height: auto !important;
  scroll-snap-align: center !important;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms ease,
    opacity 320ms ease !important;
}

body[data-page="index"] .home-work .project-card.is-selected {
  transform: none !important;
  box-shadow:
    0 0.18rem 0 rgba(26, 25, 22, 0.2),
    0 1.05rem 1.8rem rgba(26, 25, 22, 0.16),
    inset 0 0 0 1px rgba(163, 49, 40, 0.22) !important;
}

body[data-page="index"] .home-work .project-card .project-main,
body[data-page="index"] .home-work .project-card:first-child .project-main {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto auto auto auto !important;
  grid-template-areas:
    "meta meta"
    "title title"
    "image points"
    "footer footer" !important;
  gap: clamp(0.85rem, 1.15vw, 1.1rem) !important;
}

body[data-page="index"] .home-work .project-image,
body[data-page="index"] .home-work .project-card:first-child .project-image,
body[data-page="index"] .home-work .project-points {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
}

body[data-page="index"] .home-work .project-image img,
body[data-page="index"] .home-work .project-card:hover .project-image img,
body[data-page="index"] .home-work .project-card:focus-within .project-image img {
  inset: clamp(0.7rem, 1vw, 0.95rem) !important;
  width: calc(100% - (clamp(0.7rem, 1vw, 0.95rem) * 2)) !important;
  height: calc(100% - (clamp(0.7rem, 1vw, 0.95rem) * 2)) !important;
}

body[data-page="index"] .home-work .project-points {
  align-content: stretch !important;
  grid-template-rows: auto auto auto 1fr;
  gap: clamp(0.46rem, 0.62vw, 0.65rem) !important;
  padding: clamp(0.85rem, 1.15vw, 1.05rem) !important;
}

body[data-page="index"] .home-work .project-points strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

body[data-page="index"] .home-work .project-points p {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(0.76rem, 0.86vw, 0.91rem);
  line-height: 1.24;
  color: rgba(26, 25, 22, 0.82);
}

body[data-page="index"] .home-work .project-points .project-detail-note {
  padding-top: clamp(0.35rem, 0.55vw, 0.5rem);
  border-top: 1px solid rgba(26, 25, 22, 0.22);
  font-family: var(--mono);
  font-size: clamp(0.56rem, 0.66vw, 0.7rem);
  line-height: 1.36;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(26, 25, 22, 0.74);
}

body[data-page="index"] .home-work .project-point-list {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  align-content: stretch;
  gap: 0;
  padding-top: clamp(0.2rem, 0.4vw, 0.35rem);
  border-top: 1px solid var(--rule);
}

body[data-page="index"] .home-work .project-points span {
  display: flex;
  align-items: center;
  font-size: clamp(0.54rem, 0.62vw, 0.68rem) !important;
  line-height: 1.22 !important;
  border-bottom: 1px solid rgba(26, 25, 22, 0.12);
}

body[data-page="index"] .home-work .project-points span:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  body[data-page="index"] .home-work .project-rail {
    grid-auto-columns: minmax(18.5rem, 86vw) !important;
    scroll-snap-align: start !important;
  }

  body[data-page="index"] .home-work .project-card .project-main,
  body[data-page="index"] .home-work .project-card:first-child .project-main {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
    grid-template-areas:
      "meta"
      "title"
      "image"
      "points"
      "footer" !important;
  }

  body[data-page="index"] .home-work .project-image,
  body[data-page="index"] .home-work .project-card:first-child .project-image,
  body[data-page="index"] .home-work .project-points {
    aspect-ratio: 16 / 10 !important;
  }

  body[data-page="index"] .home-work .project-points {
    min-height: 16rem !important;
  }
}

/* Pass 44: mobile containment for menu, credentials, and selected-build cards. */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-shell,
  .site-main,
  .page-shell,
  .page-headline,
  .page-headline--credentials {
    max-width: 100%;
    overflow-x: clip;
  }

  .page-headline {
    padding-inline: clamp(1rem, 5vw, 1.25rem) !important;
  }

  .page-headline-title {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    letter-spacing: 0 !important;
  }

  body[data-page="credentials"] .page-headline-title {
    font-size: clamp(2.18rem, 9vw, 3rem) !important;
    line-height: 0.94 !important;
  }

  .page-headline-deck,
  .page-headline-deck p {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
  }

  body[data-page="credentials"] .page-headline-deck p {
    font-size: clamp(1.32rem, 5.7vw, 1.95rem) !important;
    line-height: 1.2 !important;
  }

  body[data-page="credentials"] .page-headline-meta .kicker {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: clamp(0.84rem, 3.75vw, 1rem) !important;
    line-height: 1.25 !important;
  }

  .menu-curtain {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    padding: clamp(0.9rem, 4vw, 1.25rem) !important;
  }

  .menu-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-items: center !important;
    align-content: center !important;
    gap: clamp(0.08rem, 1vh, 0.35rem) !important;
    padding-inline: 0 !important;
    transform: none !important;
  }

  .menu-panel > a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 0.15rem !important;
    text-align: center !important;
    font-size: clamp(2.35rem, 13.4vw, 3.95rem) !important;
    line-height: 0.9 !important;
    transform: none !important;
    overflow: visible !important;
  }

  .menu-panel > a > span {
    display: inline-block !important;
    max-width: 100% !important;
    transform: none !important;
    overflow-wrap: anywhere !important;
  }

  .menu-socials.brand-socials,
  .menu-panel .brand-socials {
    width: min(100%, 20rem) !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    justify-self: center !important;
  }

  body[data-page="index"] .home-work {
    overflow-x: clip !important;
  }

  body[data-page="index"] .home-work .strip-intro h2 {
    font-size: clamp(3.15rem, 16vw, 4.8rem) !important;
    line-height: 0.92 !important;
  }

  body[data-page="index"] .home-work .project-rail {
    grid-auto-columns: minmax(17.75rem, 88vw) !important;
    gap: clamp(1rem, 4vw, 1.35rem) !important;
    padding-block: 0.35rem 1.4rem !important;
    scroll-padding-inline: 0 !important;
  }

  body[data-page="index"] .home-work .project-card,
  body[data-page="index"] .home-work .project-card:first-child,
  body[data-page="index"] .home-work .project-card:nth-child(even) {
    min-height: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body[data-page="index"] .home-work .project-card .project-main,
  body[data-page="index"] .home-work .project-card:first-child .project-main {
    gap: 0.72rem !important;
    padding: clamp(0.9rem, 4vw, 1.05rem) !important;
  }

  body[data-page="index"] .home-work .project-card h3 {
    font-size: clamp(3.15rem, 17vw, 4.85rem) !important;
    line-height: 0.86 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="index"] .home-work .project-image,
  body[data-page="index"] .home-work .project-card:first-child .project-image {
    aspect-ratio: 4 / 3 !important;
    min-height: 12rem !important;
    height: auto !important;
  }

  body[data-page="index"] .home-work .project-points {
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    grid-template-rows: none !important;
    align-content: start !important;
    gap: 0.5rem !important;
    padding: 0.9rem !important;
    overflow: hidden !important;
  }

  body[data-page="index"] .home-work .project-points strong {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
    line-height: 0.95 !important;
  }

  body[data-page="index"] .home-work .project-points p {
    font-size: clamp(0.84rem, 4.15vw, 1rem) !important;
    line-height: 1.23 !important;
    overflow-wrap: break-word !important;
  }

  body[data-page="index"] .home-work .project-points .project-detail-note {
    font-size: clamp(0.55rem, 2.85vw, 0.66rem) !important;
    line-height: 1.32 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body[data-page="index"] .home-work .project-point-list {
    grid-template-rows: none !important;
    gap: 0 !important;
  }

  body[data-page="index"] .home-work .project-points span {
    display: block !important;
    min-width: 0 !important;
    padding-block: 0.28rem !important;
    font-size: clamp(0.54rem, 2.75vw, 0.63rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

@media (max-width: 380px) {
  .menu-panel > a {
    font-size: clamp(2.05rem, 12.8vw, 3.25rem) !important;
  }

  body[data-page="credentials"] .page-headline-title {
    font-size: clamp(1.95rem, 8.5vw, 2.6rem) !important;
  }

  body[data-page="index"] .home-work .project-points .project-detail-note {
    display: none !important;
  }
}

/* Pass 45: cleaner selected-build stepping, legible notes, and stronger CTA marquee. */
body[data-page="index"] .home-work .project-rail {
  scroll-behavior: smooth !important;
  overscroll-behavior-inline: contain !important;
  overscroll-behavior-block: auto !important;
}

body[data-page="index"] .home-work .project-points {
  background:
    linear-gradient(180deg, rgba(255, 252, 239, 0.64), rgba(226, 216, 198, 0.24)),
    repeating-linear-gradient(180deg, rgba(26, 25, 22, 0.055) 0 1px, transparent 1px 7px) !important;
  color: var(--ink) !important;
}

body[data-page="index"] .home-work .project-points strong {
  color: var(--ink) !important;
  font-size: clamp(1.65rem, 2.25vw, 2.25rem) !important;
}

body[data-page="index"] .home-work .project-points p {
  color: rgba(26, 25, 22, 0.92) !important;
  font-size: clamp(0.86rem, 0.98vw, 1.04rem) !important;
  line-height: 1.28 !important;
}

body[data-page="index"] .home-work .project-points .project-detail-note {
  color: rgba(26, 25, 22, 0.86) !important;
  font-size: clamp(0.69rem, 0.8vw, 0.86rem) !important;
  line-height: 1.4 !important;
}

body[data-page="index"] .home-work .project-points span {
  color: rgba(26, 25, 22, 0.9) !important;
  font-size: clamp(0.66rem, 0.76vw, 0.82rem) !important;
  line-height: 1.3 !important;
}

.footer .marquee {
  min-height: clamp(4.9rem, 7vw, 7.4rem) !important;
}

.marquee .marquee-help {
  gap: clamp(0.45rem, 1vw, 0.9rem) !important;
}

.marquee-set span,
.marquee .marquee-help {
  color: var(--ink) !important;
}

.marquee .marquee-email {
  padding: 0.1em 0.2em 0.12em !important;
  color: var(--paper-light) !important;
  background: var(--ink) !important;
  font-family: var(--display) !important;
  font-size: 0.92em !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  body[data-page="index"] .home-work .project-points strong {
    font-size: clamp(1.85rem, 8.8vw, 2.4rem) !important;
  }

  body[data-page="index"] .home-work .project-points p {
    font-size: clamp(0.94rem, 4.35vw, 1.08rem) !important;
    line-height: 1.28 !important;
  }

  body[data-page="index"] .home-work .project-points .project-detail-note {
    font-size: clamp(0.61rem, 3vw, 0.72rem) !important;
    line-height: 1.36 !important;
  }

  body[data-page="index"] .home-work .project-points span {
    font-size: clamp(0.6rem, 2.92vw, 0.68rem) !important;
    line-height: 1.22 !important;
  }

  .footer .marquee {
    min-height: clamp(4.2rem, 18vw, 5.8rem) !important;
  }

  .marquee .marquee-email {
    font-size: 0.82em !important;
  }
}
