@font-face {
  font-family: 'Milk and Clay';
  src: url('../fonts/MilkandClay-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #f3ead0;
  --cream-soft: rgba(243, 234, 208, .72);
  --cream-faint: rgba(243, 234, 208, .42);
  --cream-ghost: rgba(243, 234, 208, .18);
  --ink: #0d0c0a;
  --ink-soft: rgba(13, 12, 10, .72);
  --ink-faint: rgba(13, 12, 10, .42);
  --paper: #ece1c0;
  --paper-deep: #d9cb9f;
  --brass: #b88a3d;
  --moss: #5a6a45;
  --rust: #a05a32;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Fraunces', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============ SHARED: SECTION HEADER ============ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 64px;
  border-bottom: 1px solid currentColor;
  opacity: .55;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.section-head .folio {
  font-weight: 400;
}

.section-head .section-title {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .28em;
}

.section-head .meta-right {
  margin-left: auto;
  font-size: 10px;
  opacity: .8;
}

/* ============ § I — HERO (poster) ============ */
.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

/* paper grain over the whole cover */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45   0 0 0 0 0.32  0 0 0 0 0.16  0 0 0 .2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
  opacity: .55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* warm vignette around the edges of the paper */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 110% at 50% 50%, rgba(217, 203, 159, 0) 50%, rgba(120, 88, 40, .18) 95%);
  pointer-events: none;
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

/* --- top bar --- */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 44px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.page-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.page-mark .glyph {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

.page-nav { display: flex; gap: 32px; }
.page-nav a { color: var(--ink-soft); transition: color .3s; }
.page-nav a:hover { color: var(--ink); }

/* --- centered poster (the artwork) --- */
.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vh 44px 4vh;
  text-align: center;
}

.poster-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: rise .9s ease-out .35s forwards;
}

.poster-eyebrow .rule {
  width: 38px;
  height: 1px;
  background: var(--ink-faint);
  display: inline-block;
}

/* the type-masked poster (two variants: video for desktop, image for touch) */
.poster-mark {
  width: min(92vw, 1280px);
  height: auto;
  display: block;
  opacity: 0;
  animation: rise 1.4s ease-out .55s forwards;
}

/* Default: show the reliable static-image version everywhere */
.poster-mark-desktop { display: none; }
.poster-mark-mobile  { display: block; }

/* Only swap to the video version on real desktops (mouse + fine pointer + wide) */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .poster-mark-desktop { display: block; }
  .poster-mark-mobile  { display: none; }
}

.poster-mark text {
  font-family: 'Milk and Clay', 'Fraunces', serif;
  font-weight: 700;
}

/* visible (non-masked) wordmark beneath — barely visible knock-out shadow */
.poster-shadow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.poster-line {
  margin-top: 28px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: .005em;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
  opacity: 0;
  animation: rise 1.1s ease-out .9s forwards;
}

/* --- bottom bar --- */
.page-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 22px 44px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-foot .left,
.page-foot .right { display: flex; flex-direction: column; gap: 5px; }
.page-foot strong { color: var(--ink-soft); font-weight: 400; }
.page-foot .right { text-align: right; align-items: flex-end; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* keep the slow-drift animation reference for the video inside the SVG */
@keyframes slow-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.poster-mark video {
  animation: slow-drift 24s ease-in-out infinite alternate;
}

/* a small visually-hidden h1 for SEO + screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ § II — MANIFESTO ============ */
.manifesto {
  background: var(--ink);
  padding: 22vh 8vw 24vh;
  text-align: center;
  position: relative;
}

.manifesto-text {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--cream);
  max-width: 22ch;
  margin: 0 auto;
}

/* ============ § III — SELECTED WORK ============ */
.work {
  background: var(--ink);
  padding: 14vh 6vw 16vh;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 10vh;
  max-width: 880px;
  margin: 0 auto;
}

.work .section-head {
  max-width: 880px;
  margin: 0 auto 64px;
}

.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}


.case-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1612;
  border: 1px solid var(--cream-ghost);
  cursor: pointer;
}

.case-frame::before,
.case-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--cream-faint);
  pointer-events: none;
  z-index: 3;
}
.case-frame::before {
  top: 12px; left: 12px;
  border-right: none; border-bottom: none;
}
.case-frame::after {
  bottom: 12px; right: 12px;
  border-left: none; border-top: none;
}

.case-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  /* gentle unifying treatment so they read as a series, not a logo grid */
  filter: saturate(.92) contrast(.96) brightness(.94);
  transition: transform 1.2s ease, filter .6s ease;
}

.case-frame:hover .case-art {
  transform: scale(1.03);
  filter: saturate(1) contrast(1) brightness(1);
}

.case-frame .frame-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9   0 0 0 0 0.78  0 0 0 0 0.55  0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

.case-frame .visit-tag {
  position: absolute;
  bottom: 22px;
  right: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 8px 14px;
  background: rgba(13, 12, 10, .55);
  backdrop-filter: blur(4px);
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}

.case-frame:hover .visit-tag {
  opacity: 1;
  transform: translateY(0);
}

.case-meta {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.case-meta .case-num { color: var(--cream-faint); }
.case-meta .case-disciplines { color: var(--cream-soft); }
.case-meta .case-year { color: var(--cream-faint); text-align: right; }

.case-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  color: var(--cream);
  max-width: 22ch;
}

.case-line {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--cream-soft);
  max-width: 48ch;
  line-height: 1.6;
}

/* ============ § IV — DISCIPLINES (paper spread) ============ */
.disciplines {
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(216, 198, 154, .35), transparent 70%),
    var(--paper);
  color: var(--ink);
  padding: 18vh 8vw 20vh;
  position: relative;
}

.disciplines::before {
  /* paper texture overlay */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55   0 0 0 0 0.42  0 0 0 0 0.22  0 0 0 .18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
  opacity: .55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.disciplines-inner { position: relative; max-width: 1200px; margin: 0 auto; }

.disciplines .section-head {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-faint);
}

.discipline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.discipline-list li {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 32px;
  align-items: baseline;
  padding: 38px 0;
  border-bottom: 1px solid var(--ink-faint);
  transition: padding .4s ease;
}

.discipline-list li:hover {
  padding-left: 12px;
}

.discipline-list .d-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ink-faint);
}

.discipline-list .d-name {
  font-family: 'Milk and Clay', 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.discipline-list .d-desc {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38ch;
}

/* sister studio */
.sister {
  margin-top: 14vh;
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 32px;
  align-items: baseline;
}

.sister .sister-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sister-mark {
  font-family: 'Milk and Clay', 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  position: relative;
}

.sister-mark .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-soft);
  transition: transform .4s ease;
  position: relative;
  top: -.2em;
}

.sister-mark:hover .arrow {
  transform: translateX(8px);
}

.sister-desc {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38ch;
}

/* ============ § V — COLOPHON ============ */
.colophon {
  background: var(--ink);
  padding: 22vh 8vw 8vh;
  position: relative;
  text-align: center;
}

.colophon::before {
  content: "§ V";
  position: absolute;
  top: 44px;
  left: 44px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--cream-faint);
}

.colo-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 50px;
}

.email-mark {
  display: inline-block;
  font-family: 'Milk and Clay', 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 42px);
  color: var(--cream);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--cream-faint);
  padding-bottom: 6px;
  transition: border-color .3s, color .3s;
}

.email-mark:hover {
  border-bottom-color: var(--brass);
  color: var(--brass);
}

.colo-rule {
  width: 60px;
  height: 1px;
  background: var(--cream-faint);
  margin: 80px auto 40px;
}

.colo-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  line-height: 2.2;
}

.colo-meta div { display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .case-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .case-meta .case-year { text-align: left; }

  .discipline-list li,
  .sister {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 26px 0;
  }
  .discipline-list .d-desc,
  .sister-desc {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .page-head { padding: 18px 22px; font-size: 10px; letter-spacing: .2em; }
  .page-nav { gap: 18px; }
  .page-nav a:nth-child(2) { display: none; }

  .poster { padding: 0 22px; }
  .poster-eyebrow {
    font-size: 9px;
    letter-spacing: .32em;
    margin-bottom: 22px;
  }
  .poster-eyebrow .rule { width: 22px; }
  .poster-line {
    margin-top: 22px;
    font-size: 15px;
    max-width: 88vw;
  }

  .page-foot { padding: 18px 22px; font-size: 9px; letter-spacing: .22em; }

  .manifesto,
  .work,
  .disciplines,
  .colophon { padding-left: 24px; padding-right: 24px; }

  .manifesto::before,
  .colophon::before { top: 22px; left: 22px; }

  .manifesto { padding-top: 22vh; padding-bottom: 22vh; }

  .case-frame .visit-tag { font-size: 9px; padding: 4px 8px; bottom: 12px; right: 12px; }
  .case-frame::before, .case-frame::after { width: 12px; height: 12px; top: 8px; left: 8px; }
  .case-frame::after { top: auto; left: auto; bottom: 8px; right: 8px; }

  .discipline-list li,
  .sister {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .discipline-list .d-num,
  .sister .sister-label { font-size: 10px; }
}
