/* ============================================================
   re.make · main.css
   Generous-reference system: one light grotesk (General Sans),
   pure white / pure black, grey support text, photography in
   colour, black marquee + footer bands, rotating scroll badges.
   ============================================================ */

/* ---- Fonts (self-hosted, Fontshare General Sans) ---- */
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --white:   #ffffff;
  --black:   #0a0a0a;
  --grey-1:  #4a4a4a;   /* body support text */
  --grey-2:  #8f8f8f;   /* captions, metadata */
  --grey-3:  #c7c7c7;   /* manifesto "off" words, hairlines on white */
  --grey-bg: #f4f4f4;   /* photo mats */
  --line:        rgba(10, 10, 10, 0.16);
  --line-dark:   rgba(255, 255, 255, 0.22);

  --sans: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(20px, 3.2vw, 46px);   /* page side padding, near full-bleed like the ref */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--black); color: var(--white); }

.wide { padding-left: var(--pad); padding-right: var(--pad); }

/* ---- Type utilities ---- */
.label {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-2);
}
.huge {
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

/* arrow link (title + arrow) */
.arw-link { display: inline-flex; align-items: center; gap: 0.55em; }
.arw-link .arw { transition: transform 0.3s var(--ease); }
.arw-link:hover .arw { transform: translateX(6px); }

/* chip / pill */
.chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42em 1.1em;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  white-space: nowrap;
}
a.chip { transition: background 0.25s, color 0.25s; }
a.chip:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px var(--pad);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3.6vw, 58px); list-style: none; }
.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current='page'] { opacity: 1; }
.nav__links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* over-photo variant (home hero) */
.nav--overlay { color: var(--white); }
/* on-white variant (inner pages) */
.nav--page { position: relative; color: var(--black); }

.nav__toggle {
  display: none;
  background: none; border: 0; color: inherit;
  font: inherit; cursor: pointer; padding: 8px; margin-right: -8px;
}
.nav__toggle svg { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 18px;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 13px var(--pad); font-size: 0.95rem; }
}

/* ============================================================
   Hero carousel (home)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
/* Before JS runs (and with JS off) the first slide is the poster frame. */
.hero:not(.is-ready) .hero__slide:first-of-type { opacity: 1; pointer-events: auto; }
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* shade for text legibility + masks the upscaled sources */
.hero__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0.08) 42%, rgba(10,10,10,0.55) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  background: url('../img/grain.svg');
  background-size: 220px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 3;
}
.hero__caption {
  position: absolute;
  left: var(--pad);
  bottom: 92px;
  z-index: 4;
}
.hero__title {
  font-size: clamp(3rem, 8.2vw, 7.4rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.hero__sub {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  opacity: 0.92;
}
.hero__dots {
  position: absolute;
  left: var(--pad);
  bottom: 40px;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero__dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--ease), background 0.3s;
}
.hero__dot.is-active { width: 34px; background: var(--white); }

/* rotating scroll badge */
.scroll-badge {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  z-index: 4;
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
}
.scroll-badge svg.ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.scroll-badge .ring text { fill: currentColor; font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase; }
.scroll-badge .badge-arw { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scroll-badge svg.ring { animation: none; } }

/* ============================================================
   Manifesto
   ============================================================ */
.manifesto {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 clamp(1rem, 2.4vw, 2.6rem);
  padding: clamp(7rem, 18vh, 12rem) var(--pad);
}
.manifesto__slogan {
  grid-column: 1 / 10;
  font-size: clamp(1.9rem, 4.1vw, 3.4rem);
  font-weight: 400;
  line-height: 1.28;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.manifesto__para {
  grid-column: 6 / 12;
  margin-top: clamp(2.5rem, 7vh, 5rem);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.manifesto__cta { grid-column: 6 / 12; margin-top: 2.6rem; }
@media (max-width: 800px) {
  .manifesto__slogan { grid-column: 1 / -1; }
  .manifesto__para, .manifesto__cta { grid-column: 1 / -1; }
}
[data-colorize] .w { color: var(--grey-3); transition: color 0.35s linear; }
[data-colorize] .w.on { color: var(--black); }

/* ============================================================
   Section-title marquee (huge scrolling "Work")
   ============================================================ */
.sec-marquee { overflow: hidden; padding: clamp(2rem, 6vh, 4rem) 0 0; }
.sec-marquee__row { display: flex; white-space: nowrap; width: max-content; animation: mq-l 40s linear infinite; }
.sec-marquee__row span {
  font-size: clamp(4.5rem, 13vw, 11.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.005em;
  padding-right: 0.45em;
}
.sec-marquee__row .arw-glyph { font-weight: 300; color: var(--grey-3); }
@media (prefers-reduced-motion: reduce) { .sec-marquee__row { animation: none; } }

/* ============================================================
   Staggered work grid (Generous rhythm)
   ============================================================ */
.workflow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(3.5rem, 9vh, 7rem) clamp(1rem, 2.4vw, 2.6rem);
  padding: clamp(2rem, 6vh, 5rem) var(--pad) clamp(6rem, 14vh, 10rem);
}
.wk { display: block; }
.wk__media { background: var(--grey-bg); overflow: hidden; border: 1px solid var(--line); }
.wk__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.9s var(--ease);
}
.wk:hover .wk__media img { transform: scale(1.05); }
.wk .wk__title { transition: opacity 0.3s; }
.wk:hover .wk__title { opacity: 0.6; }
.wk__title {
  margin-top: 1.15rem;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wk__desc {
  margin-top: 0.55rem;
  max-width: 30em;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--grey-1);
}

/* the asymmetric flow, 8 cards; mirrors the reference rhythm */
.wk--1 { grid-column: 5 / 13; }                       /* feature, large right */
.wk--1-txt { grid-column: 1 / 4; align-self: end; }   /* its text, bottom-left */
.wk--1-txt .wk__title { font-size: 1.5rem; }
.wk--2 { grid-column: 1 / 5; margin-top: 4rem; }
.wk--3 { grid-column: 7 / 13; margin-top: -3rem; }
.wk--4 { grid-column: 1 / 5; }
.wk--5 { grid-column: 5 / 9; margin-top: 5rem; }
.wk--6 { grid-column: 9 / 13; margin-top: 1.5rem; }
.wk--7 { grid-column: 2 / 7; margin-top: 2rem; }
.wk--8 { grid-column: 8 / 13; margin-top: 7rem; }
.wk--9 { grid-column: 1 / 5; }
.wk--10 { grid-column: 5 / 9; margin-top: 5rem; }
.wk--11 { grid-column: 9 / 13; margin-top: 1.5rem; }

@media (max-width: 860px) {
  .workflow { grid-template-columns: 1fr 1fr; gap: 3rem 1.2rem; }
  .wk--1 { grid-column: 1 / 3; }
  .wk--1-txt { display: none; }
  .wk--1 .wk__hidden-txt { display: block; }
  .wk--2, .wk--4, .wk--5, .wk--7, .wk--9, .wk--11 { grid-column: 1 / 2; margin-top: 0; }
  .wk--3, .wk--6, .wk--8, .wk--10 { grid-column: 2 / 3; margin-top: 3rem; }
}
@media (max-width: 540px) {
  .workflow { grid-template-columns: 1fr; }
  .wk--1, .wk--2, .wk--3, .wk--4, .wk--5, .wk--6, .wk--7, .wk--8, .wk--9, .wk--10, .wk--11 { grid-column: 1 / -1; margin-top: 0; }
}
.wk__hidden-txt { display: none; }

/* ============================================================
   Marquee band
   ============================================================ */
.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: clamp(2.4rem, 6vh, 4.2rem) 0;
  display: grid;
  gap: 0.6rem;
}
.marquee__row { display: flex; white-space: nowrap; width: max-content; }
.marquee__row span {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  padding-right: 0.55em;
}
.marquee__row--ltr { animation: mq-l 60s linear infinite; }
.marquee__row--rtl { animation: mq-r 60s linear infinite; }
@keyframes mq-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__row--ltr, .marquee__row--rtl { animation: none; }
}

/* ============================================================
   Footer (black, giant email)
   ============================================================ */
.footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 7vh, 5rem) var(--pad) 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer__menus {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem clamp(3rem, 8vw, 9rem);
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
.footer__col .label { color: rgba(255,255,255,0.55); display: block; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.92;
}
.footer__col a:hover { opacity: 0.65; }

.footer__email {
  display: block;
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.005em;
  word-break: break-word;
  transition: opacity 0.25s;
}
.footer__email:hover { opacity: 0.7; }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 4rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.footer__meta .label { color: rgba(255,255,255,0.55); display: block; margin-bottom: 0.4rem; }
.footer__meta p { font-size: 0.95rem; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: baseline;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}
.footer__legal a:hover { color: var(--white); }
.footer__legal .spacer { flex: 1; }

.footer .scroll-badge { position: absolute; right: var(--pad); bottom: 5.5rem; color: var(--white); }
@media (max-width: 700px) { .footer .scroll-badge { display: none; } }

/* ============================================================
   Inner page heads
   ============================================================ */
.page-head { padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad) clamp(2rem, 5vh, 3.5rem); }
.page-head__title {
  font-size: clamp(3rem, 8.6vw, 7.6rem);
  font-weight: 300;
  line-height: 0.98;
}
.page-head__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.page-head__sub {
  max-width: 33em;
  margin-top: 2rem;
  font-size: 1.02rem;
  color: var(--grey-1);
}

/* ============================================================
   Case pages (Mitwit-style)
   ============================================================ */
.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 1fr);
  gap: 2.5rem clamp(3rem, 8vw, 9rem);
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad) clamp(3rem, 7vh, 5rem);
}
.case-lead { max-width: 30em; font-size: 1.18rem; line-height: 1.55; }
.case-meta { list-style: none; border-top: 1px solid var(--line); }
.case-meta li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.case-meta .label { padding-top: 0.15rem; }
.case-meta span:last-child { text-align: right; }
@media (max-width: 800px) { .case-intro { grid-template-columns: 1fr; } }

.case-photo {
  background: var(--grey-bg);
  padding: clamp(2.5rem, 7vh, 5.5rem) var(--pad);
}
.case-photo__inner { position: relative; max-width: 1100px; margin: 0 auto; }
.case-photo img { width: 100%; border: 1px solid var(--line); }
.case-photo__grain {
  position: absolute; inset: 0;
  background: url('../img/grain.svg');
  background-size: 200px;
  opacity: 0.14;
  pointer-events: none;
}
.case-photo__cap { max-width: 1100px; margin: 1.2rem auto 0; }

.case-rows { padding: clamp(3rem, 8vh, 6rem) var(--pad); }
.crow {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  gap: 1.5rem clamp(2.5rem, 7vw, 8rem);
  padding: clamp(2.2rem, 5vh, 3.6rem) 0;
  border-top: 1px solid var(--line);
}
.crow__body { max-width: 42em; color: var(--grey-1); }
.crow__body p + p { margin-top: 1.15em; }
.crow__body strong { color: var(--black); font-weight: 500; }
.crow__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; list-style: none; }
.crow__chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42em 1.1em;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  white-space: nowrap;
}
.crow__chips li a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .crow { grid-template-columns: 1fr; gap: 0.8rem; } }

.case-quote {
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
  text-align: center;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 300;
  line-height: 1.25;
}
.case-quote .mark { display: block; font-size: 0.55em; margin-bottom: 1.2em; }

.case-next {
  padding: 0 var(--pad) clamp(5rem, 12vh, 8rem);
}
.case-next .label { display: block; margin-bottom: 1rem; }
.case-next__link {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
}
.case-next__link:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

/* ============================================================
   Photographic bands
   ============================================================ */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.band__grain {
  position: absolute; inset: 0;
  background: url('../img/grain.svg'); background-size: 200px;
  opacity: 0.12; pointer-events: none;
}
.band__cap { padding: 1rem var(--pad) 0; }

/* text + portrait photo pairing */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(14rem, 30vw, 26rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
}
.pair__body { max-width: 42em; color: var(--grey-1); }
.pair__body p + p { margin-top: 1.15em; }
.pair__body .label { display: block; margin-bottom: 1.2rem; }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 800px) {
  .pair { grid-template-columns: 1fr; }
  .pair img { max-width: 320px; }
}

/* ============================================================
   Services / process rows
   ============================================================ */
.svc-list { margin: 0 var(--pad); border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 4rem minmax(12rem, 22rem) minmax(0, 1fr);
  gap: 1.2rem 2.5rem;
  align-items: start;
  padding: clamp(2rem, 5vh, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.svc-row__no { font-size: 0.78rem; color: var(--grey-2); padding-top: 0.5rem; }
.svc-row__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 300; line-height: 1.1; }
.svc-row__desc { color: var(--grey-1); max-width: 36em; font-size: 0.95rem; }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 3rem 1fr; }
  .svc-row__desc { grid-column: 2; }
}

.process { padding: clamp(3rem, 8vh, 6rem) var(--pad); }
.process__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.process__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; }
.process-row {
  display: grid;
  grid-template-columns: 8rem minmax(12rem, 20rem) minmax(0, 1fr);
  gap: 0.8rem 2.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.process-row__phase { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey-2); padding-top: 0.4rem; }
.process-row__title { font-size: 1.25rem; font-weight: 500; }
.process-row__desc { color: var(--grey-1); font-size: 0.95rem; max-width: 38em; }
@media (max-width: 760px) {
  .process-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ============================================================
   Journal
   ============================================================ */
.post-list { margin: 0 var(--pad); border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) 84px minmax(0, 1fr) auto;
  gap: 0.8rem clamp(2rem, 5vw, 5rem);
  align-items: baseline;
  padding: clamp(1.8rem, 4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}
.post:hover .post__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post__title {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
}
.post__excerpt { display: block; color: var(--grey-1); margin-top: 0.55rem; max-width: 42em; font-size: 0.9rem; }
.post__art { width: 84px; height: 84px; object-fit: cover; background: var(--grey-bg); }
.post__arw { color: var(--grey-2); font-size: 1.4rem; font-weight: 300; }
.post.pending { display: none; }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; gap: 0.4rem; }
  .post__arw, .post__art { display: none; }
}

/* newsletter row (journal page) */
.newsletter-row {
  margin: 0 var(--pad) clamp(3rem, 7vh, 5rem);
  padding: clamp(1.8rem, 4vh, 2.6rem) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 28rem);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 720px) { .newsletter-row { grid-template-columns: 1fr; } }
.newsletter__field { display: flex; align-items: center; border-bottom: 1px solid var(--black); }
.newsletter__field input {
  flex: 1; background: transparent; border: 0;
  padding: 0.7em 0; font: inherit; color: var(--black); min-width: 0;
}
.newsletter__field input:focus { outline: none; }
.newsletter__field input::placeholder { color: var(--grey-2); }
.newsletter__btn { background: none; border: 0; color: var(--black); cursor: pointer; padding: 0.4em; }
.newsletter__btn:hover { opacity: 0.6; }

/* article */
.article { padding: clamp(3rem, 8vh, 6rem) var(--pad); }
.article__head { max-width: 880px; margin: 0 auto clamp(2.5rem, 6vh, 4rem); }
.article__art { width: 110px; height: 110px; object-fit: cover; background: var(--grey-bg); margin-bottom: 1.6rem; }
.article__title {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.04;
  margin-top: 1.4rem;
}
.article__body { max-width: 720px; margin: 0 auto; }
.article__body > * + * { margin-top: 1.25em; }
.article__body h2 { font-size: 1.6rem; font-weight: 500; margin-top: 2.2em; line-height: 1.2; }
.article__body h3 { font-size: 1.2rem; font-weight: 500; margin-top: 1.8em; }
.article__body p, .article__body li { color: var(--grey-1); }
.article__body li { margin-left: 1.2em; margin-top: 0.5em; }
.article__body strong { color: var(--black); font-weight: 500; }
.article__body blockquote {
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--black);
  text-align: center;
  padding: 1.4em 0;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article__body pre {
  background: var(--black);
  color: #eee;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.4em;
  overflow-x: auto;
}
.article__body code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; }
.article__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grey-3); }
.article__body a:hover { text-decoration-color: var(--black); }
.article__foot {
  max-width: 720px;
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad) clamp(5rem, 12vh, 8rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 520px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { margin-bottom: 1.6rem; }
.cf-label { display: block; margin-bottom: 0.6rem; color: var(--grey-2); }
.cf-input, .cf-textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6em 0;
  font: inherit;
  color: var(--black);
  border-radius: 0;
  transition: border-color 0.25s;
}
.cf-input:focus, .cf-textarea:focus { outline: none; border-bottom-color: var(--black); }
.cf-textarea { resize: vertical; min-height: 7em; }

.btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1em 2.4em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--black); }

.cf-turnstile:empty { display: none; }
.cf-turnstile { margin-top: 1rem; }

.form-note { margin-top: 1.2rem; color: var(--grey-2); font-size: 0.9rem; min-height: 1.4em; }

.contact-aside .case-meta { margin-bottom: 2rem; }
.contact-aside__note { color: var(--grey-1); font-size: 0.95rem; max-width: 26em; }

/* ============================================================
   Legal + 404
   ============================================================ */
.legal-body { max-width: 760px; padding: 0 var(--pad) clamp(4rem, 10vh, 7rem); margin-left: 0; }
.legal-body h2 { font-size: 1.4rem; font-weight: 500; margin-top: 2.2em; margin-bottom: 0.6em; }
.legal-body p, .legal-body li { color: var(--grey-1); margin-bottom: 0.8em; font-size: 0.98rem; }
.legal-body li { margin-left: 1.2em; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }

.nf { min-height: 52vh; display: flex; align-items: center; }

/* ============================================================
   Entrance animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
/* media wipe: the IMG clips open bottom-up while settling from a zoom.
   The clip lives on the child, not the observed wrapper: Chromium's
   IntersectionObserver factors the target's own clip-path into the
   intersection rect, so a fully-clipped target never intersects. */
.reveal-img img { clip-path: inset(12% 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.reveal-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
/* stagger helpers */
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-img img { clip-path: none; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Custom cursor
   ============================================================ */
@media (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
    opacity: 0;
  }
  .cursor-dot.alive { opacity: 1; }
  .cursor-dot.grow { width: 64px; height: 64px; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* Footer newsletter (SendMerlin) - the shared .newsletter styles assume a light
   page; the footer is black, so recolor the field, underline, and button. */
.footer__col .nl-label { display: block; margin-top: 1.6rem; }
.footer__col .newsletter { position: relative; max-width: 280px; margin-top: 0.7rem; }
.footer__col .newsletter__field { border-bottom: 1px solid var(--white); }
.footer__col .newsletter__field input { color: var(--white); }
.footer__col .newsletter__field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer__col .newsletter__btn { color: var(--white); }
.footer__col .form-note { margin-top: 0.6rem; font-size: 0.85rem; }
.footer__col .cf-turnstile { margin-top: 0.6rem; }
