:root {
  --red: #D0212B;
  --paper: #f5f3ee;
  --ink: #111111;
  --soft: #efece5;
  --edge: #d8d1c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
}

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

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

.hero {
  position: relative;
  min-height: calc(100vh - 100px);
  height: calc(100vh - 100px);
  overflow: hidden;
  background: #3c3c3c;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  filter: grayscale(1) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.16) 52%, rgba(0,0,0,.32) 100%);
}

.hero-title,.hero-caption {
  position: absolute;
  z-index: 1;
}

.hero-title {
  left: 0;
  right: 0;
  top: 44%;
  transform: translateY(-50%);
  text-align: center;
}

h1 {
  margin: 0;
}

.hero-wordmark {
  width: min(72vw,900px);
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.22));
}

.hero-caption {
  left: 8%;
  right: 8%;
  bottom: 46px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  font-size: clamp(13px,1.35vw,19px);
  letter-spacing: -.02em;
}

.visual-intro {
  position: relative;
  min-height: clamp(580px,80vw,970px);
  overflow: hidden;
  background: #f3f0ed url("images/graffiti-collage.jpg") center center/cover no-repeat;
}

.visual-bg {
  position: absolute;
  inset: 0;
  background: url("images/sliced_02.jpg") center center/cover no-repeat;
  opacity: .52;
  filter: saturate(1.05);
}

.fragment {
  position: absolute;
  margin: 0;
  box-shadow: 10px 12px 20px rgba(0,0,0,.16);
  overflow: hidden;
}

.fragment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fragment-quote {
  left: 3.5%;
  top: 15%;
  width: clamp(210px,28vw,400px);
  height: 70%;
  background: #e5e5e5;
  opacity: 1;
  mix-blend-mode: normal;
}

.fragment-quote img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e8e8e8;
}

.fragment-face {
  left: 32%;
  top: 25%;
  width: clamp(235px,26vw,400px);
  height: 58%;
  background: #ddd;
  opacity: .95;
  mix-blend-mode: normal;
}

.fragment-face img {
  object-fit: cover;
}

.quote-section {
  min-height: 82vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px max(6%,28px);
}

.quote-section blockquote {
  margin: 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(46px,7.8vw,116px);
  line-height: 1.03;
  letter-spacing: -.075em;
}

.quote-section em {
  color: var(--red);
  font-style: italic;
  font-weight: 400;
}

.quote-section p {
  max-width: 610px;
  margin: 42px 0 0;
  font-size: clamp(15px,1.32vw,19px);
  line-height: 1.62;
}

.about {
  background: #070707;
  color: #fff;
  padding: 108px 8% 96px;
}

.section-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(280px,430px) minmax(0,1fr);
  gap: clamp(46px,7vw,110px);
  align-items: center;
  margin-top: 38px;
}

.about-stamp-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-stamp {
  width: min(100%,420px);
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.26));
}

.about-text h2 {
  margin: 0 0 28px;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(46px,5.4vw,84px);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 400;
}

.about-text p {
  margin: 0 0 18px;
  max-width: 690px;
  font-size: clamp(16px,1.35vw,19px);
  line-height: 1.62;
}

.work-portal {
  background: #6d6d6d;
  line-height: 0;
  overflow: hidden;
}

.work-portal iframe {
  display: block;
  width: 100%;
  height: 1940px;
  border: 0;
  background: #6d6d6d;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,520px);
  gap: 10%;
  align-items: center;
  background: #090909;
  color: #fff;
  padding: 88px 8% 96px;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo {
  width: min(100%,160px);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-content h2 {
  margin: 14px 0 28px;
  font-size: clamp(48px,6vw,92px);
  line-height: .95;
  letter-spacing: -.08em;
  font-weight: 900;
}

.footer-content a {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 11px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  transition: color .2s ease,border-color .2s ease;
}

.footer-content a:hover,.footer-content a:focus-visible {
  color: #D0212B;
  border-color: #D0212B;
}

@media (max-width:980px) {
  .hero {
    min-height: calc(100vh - 112px);
    height: calc(100vh - 112px);
  }

  .about-content,.footer {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-logo {
    width: 100px;
  }

}

@media (max-width:800px) {
  .hero-wordmark {
    width: 86vw;
  }

  .hero-caption {
    left: 6%;
    right: 6%;
    bottom: 28px;
    font-size: 13px;
  }

  .visual-intro {
    min-height: 76vh;
  }

  .fragment-quote {
    left: 2%;
    top: 16%;
    width: 39vw;
    height: 67%;
  }

  .fragment-face {
    left: 42%;
    top: 30%;
    width: 39vw;
    height: 52%;
  }

  .quote-section {
    padding: 104px 7%;
  }

  .about {
    padding: 88px 7% 78px;
  }

  .work-portal iframe {
    height: 1740px;
  }

  .footer {
    padding: 82px 7% 90px;
  }

}

@media (max-width:560px) {
  .hero {
    min-height: calc(100vh - 106px);
    height: calc(100vh - 106px);
  }

  .hero-title {
    top: 45%;
  }

  .hero-caption {
    font-size: 12px;
  }

  .visual-intro {
    min-height: 540px;
  }

  .fragment-quote {
    left: 3%;
    top: 17%;
    width: 45vw;
    height: 65%;
  }

  .fragment-face {
    left: 49%;
    top: 35%;
    width: 46vw;
    height: 47%;
    opacity: .98;
  }

  .quote-section blockquote {
    font-size: clamp(42px,12vw,62px);
  }

  .about-text h2 {
    font-size: 50px;
  }

  .work-portal iframe {
    height: 1580px;
  }

  .footer-content h2 {
    font-size: 54px;
  }

}

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

}

.visual-intro {
  height: 100vh;
  min-height: 650px;
  background-image: url("images/sliced_02.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.visual-bg {
  inset: 0;
  background: rgba(0,0,0,.51);
  opacity: 1;
  filter: none;
  z-index: 0;
}

.visual-intro .fragment {
  z-index: 1;
  box-shadow: none;
  border: 0;
  mix-blend-mode: normal;
  overflow: hidden;
}

.visual-intro .fragment-face {
  left: 15.2%;
  top: 21.4%;
  width: 19.1%;
  height: 42.3%;
  opacity: 1;
  background: transparent;
}

.visual-intro .fragment-face img {
  object-fit: cover;
  object-position: center;
}

.visual-intro .fragment-quote {
  left: 0;
  top: 45%;
  width: 24.6%;
  height: 55%;
  opacity: 1;
  background: transparent;
}

.visual-intro .fragment-quote img {
  object-fit: cover;
  background: transparent;
}

.collage-words {
  position: absolute;
  z-index: 2;
  left: 46.7%;
  top: 38.5%;
  margin: 0;
  width: 51%;
  color: #f4f3f1;
  font: 900 clamp(44px,6.7vw,105px)/.91 Arial,Helvetica,sans-serif;
  letter-spacing: -.075em;
}

.footer-content em {
  font-style: italic;
}

@media (max-width:700px) {
  .visual-intro {
    height: 78vh;
    min-height: 500px;
  }

  .collage-words {
    left: 40%;
    top: 43%;
    width: 58%;
    font-size: clamp(31px,7vw,52px);
  }

  .visual-intro .fragment-face {
    left: 13%;
    width: 29%;
    height: 39%;
  }

  .visual-intro .fragment-quote {
    width: 36%;
    height: 47%;
    top: 53%;
  }

}

.footer {
  grid-template-columns: minmax(180px,1fr) minmax(320px,520px);
}

.footer-mark {
  min-height: 230px;
  align-items: center;
}

.footer-logo {
  width: clamp(145px,20vw,270px) !important;
  max-width: 100% !important;
  max-height: none !important;
  transform-origin: center 76%;
  
  will-change: transform;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 24px;
}

.footer-content .footer-icon-link,.footer-content .footer-top-arrow {
  width: 54px;
  height: 54px;
  padding: 5px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .18s,color .18s;
}

.footer-icon-link svg {
  width: 100%;
  height: 100%;
}

.footer-top-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(90deg);
}

.footer-content .footer-icon-link:hover,.footer-content .footer-top-arrow:hover {
  transform: translateY(-4px);
  color: #D0212B;
}

@media (max-width:800px) {
  .footer {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: clamp(145px,27vw,220px) !important;
  }

}

@media (prefers-reduced-motion:reduce) {
  .footer-logo {
    animation: none !important;
  }

}

.footer-content .footer-top-arrow {
  width: 60px !important;
  height: 60px !important;
  padding: 2px !important;
  border: 0 !important;
  background: transparent !important;
}

.footer-content .footer-top-arrow img {
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.footer-content .footer-icon-link:hover,.footer-content .footer-icon-link:focus-visible,
.footer-content .footer-top-arrow:hover,.footer-content .footer-top-arrow:focus-visible {
  color: var(--red);
}

.footer {
  position: relative;
  padding-bottom: clamp(110px,11vw,150px);
}

.footer-content .footer-top-arrow {
  position: absolute !important;
  right: clamp(24px,4vw,75px) !important;
  bottom: clamp(22px,3vw,45px) !important;
  width: clamp(46px,4.2vw,60px) !important;
  height: clamp(55px,5vw,69px) !important;
}

@media (max-width:800px) {
  .footer {
    padding-bottom: 122px;
  }

}

.collage-words {
  font-weight: 900 !important;
  -webkit-text-stroke: 1.05px currentColor;
  paint-order: stroke fill;
  text-shadow: 0 1px 6px rgba(0,0,0,.22);
}

@media (max-width:560px) {
  .collage-words {
    -webkit-text-stroke: .6px currentColor;
  }

  .footer-socials {
    gap: clamp(10px,3vw,18px) !important;
    flex-wrap: wrap;
  }

}

.footer-socials .footer-icon-link {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials .footer-icon-link svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.footer-socials .footer-icon-link:focus-visible {
  outline: 2px solid #d0212b;
  outline-offset: 5px;
}

.quote-section blockquote {
  font-size: clamp(43px,6.1vw,97px);
  max-width: 1280px;
  line-height: 1.04;
}

.quote-section blockquote em {
  font-weight: 400;
}

.footer-socials .footer-icon-link svg {
  display: block;
}

@media (max-width:800px) {
  .quote-section blockquote {
    font-size: clamp(38px,9vw,65px);
  }

}

@media (max-width:560px) {
  .quote-section blockquote {
    font-size: clamp(33px,8.6vw,48px) !important;
    overflow-wrap: break-word;
  }

}

.quote-section {
  min-height: 65vh;
  padding-top: clamp(100px,12vw,175px);
  padding-bottom: clamp(95px,10vw,150px);
}

.quote-section blockquote {
  font-size: clamp(36px,6.5vw,90px) !important;
  max-width: 1250px;
  line-height: 1.11 !important;
  letter-spacing: -.055em !important;
}

.quote-section .quote-attribution {
  font: 800 12px/1.6 Arial,Helvetica,sans-serif;
  letter-spacing: .14em;
  color: #5c5957;
  margin-top: 42px;
  max-width: none;
}

html {
  scroll-behavior: auto !important;
}

html.return-awaiting-position body {
  visibility: hidden;
}

.quote-section blockquote {
  font-size: clamp(29px,4.85vw,72px) !important;
  line-height: 1.17 !important;
  max-width: 1380px !important;
}

@media (max-width:600px) {
  .quote-line-break {
    display: none;
  }

  .quote-section blockquote {
    font-size: clamp(30px,7.3vw,46px) !important;
  }

}

.work-portal iframe {
  height: 1100px;
}

@media (max-width:600px) {
  .work-portal iframe {
    height: 1550px;
  }

}

.home-project-index {
  background: #f2f0ea;
  color: #151515;
  padding: clamp(100px,12vw,184px) 7% clamp(115px,13vw,190px);
  scroll-margin-top: 0;
}

.index-heading,.index-layout {
  max-width: 1430px;
  margin: 0 auto;
}

.index-heading {
  padding-bottom: clamp(55px,6vw,90px);
}

.index-overline {
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 800;
  margin: 0 0 27px;
}

.index-heading h2 {
  margin: 0;
  font: 900 clamp(58px,9vw,140px)/.91 Arial,Helvetica,sans-serif;
  letter-spacing: -.085em;
}

.index-square {
  display: inline-block;
  background: #d0212b;
  width: .112em;
  height: .112em;
  vertical-align: baseline;
  margin: 0 0 .045em .14em;
}

.index-intro {
  font: 400 clamp(15px,1.6vw,20px)/1.45 Arial,Helvetica,sans-serif;
  color: #52504b;
  margin: 26px 0 0;
}

.index-layout {
  display: grid;
  grid-template-columns: minmax(0,1.06fr) minmax(280px,.78fr);
  gap: clamp(32px,6vw,110px);
  align-items: start;
}

.index-list {
  min-width: 0;
}

.index-entry {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0,1fr);
  column-gap: clamp(12px,2vw,28px);
  padding: clamp(21px,2.2vw,32px) 0;
  border-top: 1px solid rgba(19,19,19,.23);
  text-decoration: none;
  color: inherit;
  outline-offset: 4px;
  transition: color .18s ease;
  align-items: start;
}

.index-entry:last-child {
  border-bottom: 1px solid rgba(19,19,19,.23);
}

.index-entry:hover,.index-entry:focus-visible {
  color: #d0212b;
}

.index-entry.is-active .index-name {
  color: #d0212b;
}

.index-num {
  font: 700 11px/1.4 Arial,Helvetica,sans-serif;
  color: #77726b;
  padding-top: 8px;
  letter-spacing: .04em;
}

.index-name {
  font: 900 clamp(25px,3.1vw,45px)/1.03 Arial,Helvetica,sans-serif;
  letter-spacing: -.064em;
  grid-column: 2;
  max-width: 18ch;
}

.index-kind {
  grid-column: 2;
  font: 700 10px/1.3 Arial,Helvetica,sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #74706b;
  margin-top: 11px;
  max-width: 28ch;
}

.index-preview {
  position: sticky;
  top: clamp(25px,9vh,95px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.index-preview-image {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #e9e6df;
  width: min(100%,470px);
}

.index-preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.index-preview-note {
  color: #77726b;
  margin: 16px 0 0;
  font: 700 10px/1.3 Arial,Helvetica,sans-serif;
  letter-spacing: .14em;
  text-align: center;
}

.index-mobile-photo {
  display: none;
}

@media (max-width:860px) {
  .home-project-index {
    padding: 95px 7% 115px;
  }

  .index-heading h2 {
    font-size: clamp(52px,11vw,100px);
  }

  .index-layout {
    display: block;
  }

  .index-preview {
    display: none;
  }

  .index-entry {
    grid-template-columns: 30px minmax(0,1fr);
    padding: 28px 0 30px;
  }

  .index-name {
    font-size: clamp(32px,6.8vw,51px);
    max-width: 16ch;
  }

  .index-mobile-photo {
    display: block;
    grid-column: 2;
    width: min(100%,330px);
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    margin-top: 23px;
  }

}

@media (max-width:560px) {
  .home-project-index {
    padding: 82px 6% 95px;
  }

  .index-heading {
    padding-bottom: 47px;
  }

  .index-heading h2 {
    font-size: clamp(45px,11vw,67px);
    letter-spacing: -.075em;
  }

  .index-intro {
    font-size: 16px;
  }

  .index-entry {
    column-gap: 11px;
  }

  .index-name {
    font-size: clamp(29px,8vw,43px);
    max-width: none;
  }

  .index-kind {
    max-width: none;
  }

  .index-mobile-photo {
    grid-column: 1/-1;
    margin-top: 20px;
    width: min(76vw,340px);
  }

}

/* ==========================================================
   2026-11 update: loader, header, hero motion, project scroll
   ========================================================== */

/* Loading screen */
.site-loader {
  display: none;
}

html.show-loader .site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity .7s ease, visibility .7s ease;
}

.site-loader img {
  width: clamp(120px,15vw,210px);
  height: auto;
  filter: invert(1);
}

html.show-loader:not(.loader-done) body {
  overflow: hidden;
}

html.loader-done .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 5.2%;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, color .35s ease, padding .35s ease, border-color .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}

.site-header.is-solid {
  background: rgba(245,243,238,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: rgba(17,17,17,.14);
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header.is-hidden {
  transform: translateY(-101%);
}

.site-header .brand {
  display: block;
  line-height: 0;
}

.site-header .brand img {
  width: 66px;
  height: auto;
  filter: invert(1);
  transition: filter .35s ease, width .35s ease, transform .3s ease;
}

.site-header.is-solid .brand img {
  width: 54px;
  filter: none;
}

.site-header .brand:hover img {
  transform: translateX(4px);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px,3.2vw,48px);
}

.site-header nav a {
  position: relative;
  padding: 6px 0;
  font: 800 11px/1 Arial,Helvetica,sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav a::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: translateY(-50%) scale(0);
  transition: transform .22s ease;
}

.site-header nav a:hover::before,
.site-header nav a:focus-visible::before,
.site-header nav a.is-current::before {
  transform: translateY(-50%) scale(1);
}

/* Hero */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  --hp: 0;
  --mx: 0px;
  --my: 0px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,0));
}

.hero-image {
  transform: translate3d(var(--mx), calc(var(--hp) * 22vh + var(--my)), 0) scale(1.06);
  will-change: transform;
}

.hero-title h1 {
  transform: translateY(calc(var(--hp) * -16vh));
  opacity: calc(1 - var(--hp) * 1.5);
}

.hero-caption span {
  display: inline-block;
}

html.is-ready .hero-image {
  animation: heroSettle 2.6s cubic-bezier(.2,.7,.1,1) both;
}

html.is-ready .hero-caption span {
  animation: captionRise .9s cubic-bezier(.2,.7,.2,1) both;
}

html.is-ready .hero-caption span:nth-child(1) { animation-delay: 2.3s; }
html.is-ready .hero-caption span:nth-child(2) { animation-delay: 2.42s; }
html.is-ready .hero-caption span:nth-child(3) { animation-delay: 2.54s; }

html.is-ready .site-header {
  animation: captionRise .9s cubic-bezier(.2,.7,.2,1) 1.1s both;
}

@keyframes heroSettle {
  from { scale: 1.2; filter: grayscale(1) brightness(.3); }
  to { scale: 1; filter: grayscale(1) contrast(1.02) brightness(1); }
}

@keyframes captionRise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
}

/* Visual library: changes as you scroll */
.index-preview-image {
  position: relative;
}

.index-preview-image img {
  position: absolute;
  inset: 0;
  transition: opacity .5s ease;
}

.index-preview-image img.is-entering {
  opacity: 0;
}

.index-preview-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%,470px);
  text-align: left;
  text-transform: uppercase;
}

@media (min-width:861px) {
  .index-entry {
    padding: clamp(30px,3.3vw,50px) 0;
  }
  .index-entry .index-name,
  .index-entry .index-kind,
  .index-entry .index-num {
    opacity: .26;
    transition: opacity .35s ease, color .35s ease;
  }
  .index-entry:hover .index-name,
  .index-entry:hover .index-kind,
  .index-entry:hover .index-num {
    opacity: .6;
  }
  .index-entry.is-active .index-name,
  .index-entry.is-active .index-kind,
  .index-entry.is-active .index-num {
    opacity: 1;
  }
  .index-entry:hover {
    color: inherit;
  }
}

/* Footer walking elephant */
.footer-logo {
  animation: none !important;
  transform: none !important;
  filter: invert(1) !important;
}

/* Small screens */
@media (max-width:760px) {
  .site-header {
    padding: 16px 5%;
    align-items: flex-start;
  }
  .site-header.is-solid {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header .brand img {
    width: 50px;
  }
  .site-header.is-solid .brand img {
    width: 44px;
  }
  .site-header nav {
    flex-wrap: wrap;
    max-width: 230px;
    gap: 10px 18px;
  }
  .site-header nav a {
    font-size: 10px;
    padding: 3px 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hero-image,.hero-title h1 {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================
   Curtain: "Where to find me" slides over the visual library
   ========================================================== */
.home-project-index {
  position: sticky;
  top: var(--library-stick, 0px);
  z-index: 0;
}

.home-project-index::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc(var(--library-cover, 0) * .55);
  pointer-events: none;
}

.work-portal {
  position: relative;
  z-index: 1;
  box-shadow: 0 -30px 60px rgba(0,0,0,.18);
}

@media (min-width:861px) {
  .home-project-index {
    padding-bottom: 60px;
  }
  .index-list {
    padding-bottom: calc(50vh - 120px);
  }
}

/* ==========================================================
   Wordmark: TILDASO pops in dot by dot, .ART is hand drawn
   ========================================================== */
svg.hero-wordmark {
  display: block;
  height: auto;
  overflow: visible;
}

.wm-dot {
  transform-box: fill-box;
  transform-origin: center;
}

html.is-ready .wm-dot {
  animation: dotPop .42s cubic-bezier(.34,1.9,.5,1) var(--d) both;
}

html.is-ready .wm-stop {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPop .4s cubic-bezier(.34,2.2,.5,1) 1.25s both;
}

.wm-pen {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
}

html.is-ready .wm-pen {
  animation: penDraw var(--dur) cubic-bezier(.45,.05,.35,1) var(--d) both;
}

@keyframes dotPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes penDraw {
  0% { stroke-dashoffset: var(--len); opacity: 0; }
  1% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* ==========================================================
   Hero to collage: curtain + collage entrance
   ========================================================== */
.hero-stack {
  position: relative;
  height: 300vh;
  height: 300svh;
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-pin .hero {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  z-index: 2;
}

.hero-pin .visual-intro {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  z-index: 1;
  --sp: 0;
}

.hero-image {
  transform: scale(1.06) !important;
}

.hero.is-splitting {
  background: transparent;
}

.hero.is-splitting .hero-image {
  visibility: hidden;
}

.hero.is-gone {
  visibility: hidden;
}

.hero::before,.hero::after {
  opacity: calc(1 - var(--hp) * 3);
}

.hero-caption {
  opacity: calc(1 - var(--hp) * 3);
}

.hero-title h1 {
  transform: none;
  opacity: calc(1 - var(--hp) * 3);
}

.hero-strips {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero.is-splitting .hero-strips {
  visibility: visible;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.hero-strip img {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.06);
  transform-origin: 50% 50%;
}

.visual-intro .fragment-quote {
  transform: translateY(calc(var(--sp) * 45px));
  clip-path: inset(100% 0 0 0);
  translate: -30px 0;
  transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), translate 1.3s cubic-bezier(.2,.7,.2,1);
}

.visual-intro .fragment-face {
  transform: translateY(calc(var(--sp) * -55px));
  clip-path: inset(0 0 100% 0);
  translate: 0 -30px;
  transition: clip-path 1.3s cubic-bezier(.7,0,.2,1) .25s, translate 1.3s cubic-bezier(.2,.7,.2,1) .25s;
}

.visual-intro.is-in .fragment-quote,
.visual-intro.is-in .fragment-face {
  clip-path: inset(0 0 0 0);
  translate: 0 0;
}

.collage-words {
  transform: translateY(calc(var(--sp) * -25px));
}

.collage-words .line {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.collage-words .line > span {
  display: inline-block;
  translate: 0 115%;
  transition: translate 1.1s cubic-bezier(.2,.75,.15,1);
}

.collage-words .line:nth-child(1) > span { transition-delay: .55s; }
.collage-words .line:nth-child(2) > span { transition-delay: .7s; }
.collage-words .line:nth-child(3) > span { transition-delay: .85s; }

.visual-intro.is-in .collage-words .line > span {
  translate: 0 0;
}

@media (prefers-reduced-motion:reduce) {
  .visual-intro .fragment-quote,.visual-intro .fragment-face {
    clip-path: none !important;
    translate: none !important;
  }
  .collage-words .line > span {
    translate: none !important;
  }
}

.hero-stack {
  position: relative;
}

/* Collage words: typed out */
.collage-words .line > span {
  translate: none !important;
  transition: none !important;
}

.collage-words.is-typing .tw-char {
  opacity: 0;
}

.collage-words .tw-char.on {
  opacity: 1;
}

.tw-caret {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
  line-height: 0;
  vertical-align: baseline;
}

.tw-caret::after {
  content: "";
  position: absolute;
  left: .05em;
  bottom: -.06em;
  width: .1em;
  height: .82em;
  background: var(--red);
  animation: caretBlink 1s steps(1) infinite;
}

.tw-caret {
  opacity: 0;
  transition: opacity .4s ease;
}

.collage-words.caret-on .tw-caret {
  opacity: 1;
}

.collage-words.is-typing .tw-caret::after {
  animation: none;
}

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

/* Pages other than the homepage (Visual library, Fedora) keep a solid header */
.site-header:not(.site-header--home) {
  position: sticky;
  background: rgba(245,243,238,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: rgba(17,17,17,.14);
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header:not(.site-header--home) .brand img {
  width: 54px;
  filter: none;
}

/* one red square, the same everywhere: on the baseline, a small gap after the last letter */
html body .index-square {
  display: inline-block !important;
  width: .13em !important;
  height: .13em !important;
  min-width: 0 !important;
  margin: 0 0 0 .1em !important;
  padding: 0 !important;
  vertical-align: baseline !important;
  position: static !important;
  transform: none !important;
  translate: none !important;
  background: #D0212B !important;
  border: 0 !important;
}

/* phones: the solid header on Visual library and Fedora stays one slim bar */
@media (max-width:760px) {
  html body .site-header:not(.site-header--home) {
    min-height: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 10px 5% !important;
    gap: 12px;
  }
  html body .site-header:not(.site-header--home) .brand img {
    width: 40px;
  }
  html body .site-header:not(.site-header--home) nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 240px;
    gap: 6px 14px;
  }
  html body .site-header:not(.site-header--home) nav a {
    font-size: 9.5px !important;
    letter-spacing: .12em !important;
    padding: 3px 0;
  }
}

/* ==========================================================
   Collage: the typed line and Agnès Varda's quote, together
   ========================================================== */
.collage-text {
  position: absolute;
  z-index: 2;
  left: 46.7%;
  top: 20%;
  width: 49%;
}

html body .collage-text .collage-words {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  margin: 0 !important;
}

.collage-quote {
  margin: clamp(26px,3.6vh,44px) 0 0;
  max-width: 34em;
  color: #f4f3f1;
  opacity: 0;
  translate: 0 14px;
  transition: opacity 1s ease, translate 1.2s cubic-bezier(.2,.7,.2,1);
}

.visual-intro.quote-in .collage-quote {
  opacity: 1;
  translate: 0 0;
}

.collage-quote blockquote {
  margin: 0;
  font: 400 clamp(19px,1.9vw,30px)/1.28 Georgia,"Times New Roman",serif;
  letter-spacing: -.02em;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

.collage-quote em {
  font-style: italic;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #D0212B;
  text-decoration-thickness: .1em;
  text-underline-offset: .16em;
}

.collage-quote figcaption {
  margin-top: 16px;
  font: 800 11px/1 Arial,Helvetica,sans-serif;
  letter-spacing: .16em;
  color: rgba(244,243,241,.82);
}

@media (max-width:700px) {
  .collage-text {
    left: 46%;
    top: 22%;
    width: 51%;
  }
  html body .collage-text .collage-words {
    font-size: clamp(28px,7.6vw,40px) !important;
  }
  .collage-quote {
    margin-top: 18px;
  }
  .collage-quote blockquote {
    font-size: 14px;
    line-height: 1.34;
  }
  .collage-quote figcaption {
    font-size: 9px;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .collage-quote { opacity: 1; translate: none; transition: none; }
}

/* the big project photo on the homepage opens that project */
.index-preview-link {
  display: block;
  width: min(100%,470px);
  cursor: pointer;
}
.index-preview-link .index-preview-image {
  width: 100%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.index-preview-link:hover .index-preview-image,
.index-preview-link:focus-visible .index-preview-image {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
.index-preview-link:focus-visible {
  outline: 2px solid #D0212B;
  outline-offset: 6px;
}

/* menu: red text on hover means clickable, the red square only marks where you are */
.site-header nav a {
  transition: color .2s ease;
}
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #D0212B !important;
}
.site-header nav a:hover::before,
.site-header nav a:focus-visible::before {
  transform: translateY(-50%) scale(0);
}
.site-header nav a.is-current::before {
  transform: translateY(-50%) scale(1);
}

/* ==========================================================
   Phone fixes: one line menu, centred eye, bigger collage
   ========================================================== */
@media (max-width:760px) {
  html body .site-header {
    align-items: center;
    min-height: 0;
  }
  html body .site-header nav {
    flex-wrap: nowrap;
    max-width: none;
    gap: 0 clamp(14px,4.6vw,22px);
    align-items: center;
  }
  html body .site-header nav a {
    font-size: 10px !important;
    letter-spacing: .1em;
    white-space: nowrap;
    padding: 3px 0;
  }
  .site-header .nav-x { display: none; }
  .hero-image,
  .hero-strip img { object-position: 9% 50%; }
}

@media (max-width:700px) {
  html body .visual-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    row-gap: 22px;
    padding: 72px 6% 26px;
  }
  html body .visual-intro .collage-text {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 2;
  }
  html body .collage-text .collage-words {
    font-size: clamp(38px,11.4vw,56px) !important;
    line-height: .93 !important;
  }
  html body .collage-quote {
    margin-top: 18px;
  }
  html body .collage-quote blockquote {
    font-size: clamp(17px,4.9vw,23px);
    line-height: 1.3;
  }
  html body .collage-quote figcaption {
    font-size: 10px;
    margin-top: 12px;
  }
  html body .visual-intro .fragment {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    grid-row: 2;
    align-self: start;
  }
  html body .visual-intro .fragment-face { grid-column: 1; }
  html body .visual-intro .fragment-quote { grid-column: 2; }
  html body .visual-intro .fragment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Phone: the current page dot sits under the word, so it never touches its neighbour */
@media (max-width:760px) {
  html body .site-header nav a::before {
    left: 50%;
    top: auto;
    bottom: -7px;
    transform: translateX(-50%) scale(0);
  }
  html body .site-header nav a:hover::before,
  html body .site-header nav a:focus-visible::before,
  html body .site-header nav a.is-current::before {
    transform: translateX(-50%) scale(1);
  }
}

/* Locked while the TILDASO.ART intro is writing itself */
html.intro-lock,
html.intro-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
