/* ===========================================================
   SOFIKO BIGVAVA · sofikobigvava.com
   Editorial Architecture · 2026
   =========================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* --- Tokens --- */
:root {
  /* Paper */
  --paper:        #F5F1E8;     /* warm cream */
  --paper-deep:   #EDE7DA;     /* slightly deeper section bg */
  --ink:          #14110E;     /* near-black, warm */
  --ink-soft:     #2E2A24;     /* secondary text */
  --ink-mute:     #6B645A;     /* tertiary, captions */
  --hair:         #D8CFBC;     /* hairline dividers */
  --hair-strong:  #B8AC93;     /* stronger lines */

  /* Accent — sparing use */
  --accent:       #B8431C;     /* burnt terracotta */
  --accent-deep:  #8A3115;
  --accent-soft:  #DAA591;

  /* Type */
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Type scale */
  --t-meta: 0.72rem;
  --t-body: 1.0625rem;
  --t-lead: 1.25rem;
  --t-h3:   1.5rem;
  --t-h2:   clamp(1.75rem, 4vw, 2.75rem);
  --t-h1:   clamp(2.5rem, 7vw, 5rem);
  --t-hero: clamp(3rem, 10vw, 7.5rem);

  /* Rhythm */
  --line-tight: 1.05;
  --line-snug:  1.2;
  --line-body:  1.55;
  --line-lead:  1.45;

  /* Layout */
  --frame-x: clamp(1.25rem, 4vw, 4rem);
  --frame-y: clamp(1.25rem, 3vw, 2.5rem);
  --col-max: 78rem;
  --read-max: 38rem;
  --read-wide: 46rem;
}

/* --- Base --- */
html, body { background: var(--paper); color: var(--ink); }

body {
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: var(--line-body);
  font-weight: 400;
  font-feature-settings: "ss01", "ss02", "cv11";
  background-image:
    radial-gradient(rgba(20,17,14,0.028) 1px, transparent 1px);
  background-size: 3px 3px;
  background-attachment: fixed;
}

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

/* Display type */
.display {
  font-family: var(--display);
  font-weight: 380;
  font-style: normal;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
}

.display em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 360;
  color: var(--accent);
}

/* Meta label */
.meta {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

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

/* Numbered section markers */
.section-num {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  display: inline-block;
}

/* --- Layout: frame --- */
.frame {
  padding-left: var(--frame-x);
  padding-right: var(--frame-x);
  max-width: var(--col-max);
  margin: 0 auto;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hair);
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.35rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-family: var(--body);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { right: 0; background: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--frame-x) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hair);
    font-size: 1.05rem;
  }
  .nav a:last-child { border-bottom: none; }
}

/* --- Hero --- */
.hero {
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  position: relative;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.hero__eyebrow .rule {
  flex: 0 0 3rem;
  height: 1px;
  background: var(--ink);
}

.hero__name {
  font-size: var(--t-hero);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 0.4rem;
}

.hero__role {
  font-family: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
}

.hero__statement {
  font-family: var(--display);
  font-weight: 360;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 22ch;
  margin-bottom: 2.2rem;
}
.hero__statement .accent { color: var(--accent); }

.hero__lead {
  font-family: var(--body);
  font-size: var(--t-lead);
  line-height: var(--line-lead);
  color: var(--ink-soft);
  max-width: var(--read-max);
}

/* --- Sections --- */
.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--hair);
}

.section__head {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  align-items: baseline;
}

@media (max-width: 760px) {
  .section__head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

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

.section__title {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 96;
  font-size: var(--t-h2);
  line-height: var(--line-tight);
  letter-spacing: -0.022em;
  max-width: 24ch;
}

.section__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  color: var(--accent);
}

/* --- Manifesto block (Home: "I don't build websites...") --- */
.manifesto {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-align: center;
}

.manifesto__text {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  max-width: 22ch;
  margin: 0 auto;
}

.manifesto__text .strike {
  position: relative;
  color: var(--ink-mute);
}
.manifesto__text .strike::after {
  content: "";
  position: absolute;
  left: -0.1em; right: -0.1em;
  top: 55%;
  height: 1.5px;
  background: var(--accent);
  transform: rotate(-2deg);
}

.manifesto__text em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--ink);
}

/* --- Three layers (How it thinks / appears / works) --- */
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
}
.layer {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--hair);
  position: relative;
}
.layer:last-child { border-right: none; }

@media (max-width: 880px) {
  .layers { grid-template-columns: 1fr; }
  .layer {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }
  .layer:last-child { border-bottom: none; }
}

.layer__num {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.layer__title {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.layer__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  color: var(--accent);
}

.layer__body {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --- Project cards (Home) --- */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hair);
}

.project-row {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 2.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: padding 0.4s ease;
  position: relative;
}

.project-row:hover {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.project-row:hover .project-row__title em { color: var(--accent); }
.project-row:hover .project-row__arrow { transform: translateX(6px); color: var(--accent); }

.project-row__num {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.project-row__title {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.project-row__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  transition: color 0.3s ease;
}

.project-row__sub {
  display: block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--ink-mute);
  margin-top: 0.55rem;
  letter-spacing: 0;
}

.project-row__arrow {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink-mute);
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

@media (max-width: 760px) {
  .project-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: start;
  }
  .project-row__num {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }
}

/* --- Closing signature line --- */
.signature {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--hair);
}

.signature__text {
  font-family: var(--display);
  font-weight: 360;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(1.5rem, 3.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  max-width: 28ch;
  color: var(--ink);
}

.signature__attrib {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.signature__attrib .rule {
  flex: 0 0 2.5rem;
  height: 1px;
  background: var(--ink);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  margin-top: 0;
}

.site-footer .meta { color: var(--accent-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer__name {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.footer__name::after {
  content: "";
  display: inline-block;
  width: 0.4rem; height: 0.4rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.35rem);
}
.footer__role {
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.55);
  font-weight: 500;
}

.footer__col h4 {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 1px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s ease;
}
.footer__col a:hover { background-size: 100% 1px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
}

/* ============================================================
   WORK / CASES PAGE
   ============================================================ */

.page-header {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hair);
}

.page-header__eyebrow { margin-bottom: 1.5rem; }

.page-header__title {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: var(--t-h1);
  line-height: var(--line-tight);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.page-header__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--accent);
}

.page-header__lead {
  margin-top: 1.8rem;
  font-size: var(--t-lead);
  line-height: var(--line-lead);
  color: var(--ink-soft);
  max-width: var(--read-wide);
}

/* Case block */
.case {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--hair);
}

.case__head {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  align-items: baseline;
}
@media (max-width: 760px) {
  .case__head { grid-template-columns: 1fr; gap: 0.5rem; }
}

.case__num {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  color: var(--accent);
}

.case__title {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.026em;
  margin-bottom: 1rem;
}
.case__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--accent);
}

.case__sub {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96;
  font-weight: 360;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 0.6rem;
}

.case__meta {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.case__body {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  .case__body { grid-template-columns: 1fr; gap: 2rem; }
}

.case__chapter {
  margin-bottom: 2.75rem;
  display: contents;
}

.case__chapter-label {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.45rem;
}

.case__chapter-body {
  max-width: var(--read-wide);
}
.case__chapter-body p {
  font-size: var(--t-body);
  line-height: var(--line-body);
  margin-bottom: 1.1rem;
}
.case__chapter-body p:last-child { margin-bottom: 0; }

.case__chapter-body p.lift {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96;
  font-weight: 360;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  border-left: 1px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.case + .case .case__chapter:first-of-type { /* spacing helper */ }

.case__chapter-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px dashed var(--hair);
}
.case__chapter-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .case__chapter-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hair);
}
.about-section:first-of-type { border-top: none; }

.about-grid {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

.about-label {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.5rem;
}
.about-label--accent { color: var(--accent); }

.about-body {
  max-width: var(--read-wide);
}

.about-body p {
  font-size: var(--t-body);
  line-height: var(--line-body);
  margin-bottom: 1.2rem;
}
.about-body p:last-child { margin-bottom: 0; }

.about-body p.lead {
  font-size: var(--t-lead);
  line-height: var(--line-lead);
  color: var(--ink-soft);
}

.about-body p.statement {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96;
  font-weight: 360;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 1.5rem 0;
}

.about-body ul.spaced {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
}
.about-body ul.spaced li {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.about-body .disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.5;
}
.about-body .disciplines span::after {
  content: "·";
  margin-left: 1.5rem;
  color: var(--accent);
}
.about-body .disciplines span:last-child::after { display: none; }

/* ============================================================
   COLLABORATIONS
   ============================================================ */

.collab-block {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hair);
}
.collab-block:first-of-type { border-top: none; }

.collab-grid {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  .collab-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

.collab-label {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.5rem;
}

.collab-body {
  max-width: var(--read-wide);
}

.collab-body p {
  font-size: var(--t-body);
  line-height: var(--line-body);
  margin-bottom: 1.2rem;
}
.collab-body p:last-child { margin-bottom: 0; }

.collab-body p.question {
  font-family: var(--display);
  font-weight: 360;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 1.5rem 0;
  max-width: 22ch;
}

/* Email link */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.018em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.email-link::after {
  content: "→";
  font-style: italic;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.85rem;
}
.email-link:hover::after { transform: translateX(4px); }

/* ============================================================
   Animations
   ============================================================ */

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

.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.rise.d1 { animation-delay: 0.1s; }
.rise.d2 { animation-delay: 0.25s; }
.rise.d3 { animation-delay: 0.4s; }
.rise.d4 { animation-delay: 0.55s; }
.rise.d5 { animation-delay: 0.7s; }

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

/* ============================================================
   Decorative orbit (subtle, hero only)
   ============================================================ */
.orbit {
  position: absolute;
  right: clamp(-6rem, -2vw, -2rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(18rem, 32vw, 32rem);
  height: clamp(18rem, 32vw, 32rem);
  pointer-events: none;
  opacity: 0.45;
}
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit circle { fill: none; stroke: var(--accent); stroke-width: 0.5; }
.orbit .dot { fill: var(--accent); }

@media (max-width: 880px) {
  .orbit { display: none; }
}

/* ============================================================
   Images — institutional evidence, not decoration
   ============================================================ */

/* Figure pattern: image + caption */
.evidence {
  margin: 2.5rem 0;
  display: block;
}

.evidence img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

.evidence figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.evidence figcaption::before {
  content: "";
  flex: 0 0 1.5rem;
  height: 1px;
  background: var(--ink-mute);
}

/* Case evidence: two images side by side, asymmetric */
.case__evidence {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 2.5rem 0 0.5rem;
}

.case__evidence .evidence:first-child {
  margin-top: 0;
}

.case__evidence--offset .evidence:nth-child(1) {
  margin-top: 0;
}
.case__evidence--offset .evidence:nth-child(2) {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 760px) {
  .case__evidence {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .case__evidence--offset .evidence:nth-child(2) {
    margin-top: 0;
  }
}

/* "View project" link block at end of case */
.case__visit {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
}

.case__visit-label {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex: 0 0 auto;
}

.case__visit a {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.case__visit a::after {
  content: " ↗";
  color: var(--accent);
  font-style: normal;
  font-family: var(--body);
  margin-left: 0.15rem;
}
.case__visit a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) {
  .case__visit { flex-direction: column; gap: 0.5rem; }
}

/* Project teaser thumbnails on Home */
.project-row__thumb {
  display: block;
  width: 5.5rem;
  height: 4rem;
  background: var(--paper-deep);
  overflow: hidden;
  flex: 0 0 5.5rem;
  margin-right: 0.5rem;
}
.project-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(0.95) saturate(0.92);
  transition: filter 0.4s ease, transform 0.6s ease;
}
.project-row:hover .project-row__thumb img {
  filter: none;
  transform: scale(1.04);
}

/* Adjust project-row grid to include thumb */
.project-row {
  grid-template-columns: 5.5rem 8rem 1fr auto;
}

@media (max-width: 760px) {
  .project-row {
    grid-template-columns: 5rem 1fr auto;
  }
  .project-row__num {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
    grid-row: auto;
  }
  .project-row__thumb {
    width: 5rem;
    height: 3.5rem;
    flex: 0 0 5rem;
    margin-right: 0;
  }
}

/* About: portrait */
.about-portrait {
  margin: 0 0 1.5rem;
  max-width: 22rem;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}
.about-portrait figcaption {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* On About, portrait sits in the label column */
.about-grid--with-portrait {
  grid-template-columns: 22rem 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) {
  .about-grid--with-portrait { grid-template-columns: 1fr; }
  .about-portrait { max-width: 18rem; }
}

/* small visual ornament between sections */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  color: var(--ink-mute);
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  font-size: 1.4rem;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: var(--hair);
  margin: 0 1rem;
}
