@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Italiana&display=swap");

:root {
  --paper: #e8e1d5;
  --ink: #27251f;
  --rust: #9e3f24;
  --blue: #0d6d72;
  --line: rgba(39, 37, 31, 0.22);
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "DM Sans", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 5px, rgba(39, 37, 31, 0.018) 6px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}

.thread-field {
  position: fixed;
  z-index: 12;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.thread-cursor {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease;
}

.thread-cursor i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--rust);
  transition: transform 0.35s ease;
}

.thread-cursor i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.thread-cursor i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.thread-cursor i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }

.thread-cursor.is-hovering {
  width: 86px;
  height: 86px;
}

.thread-cursor.is-hovering i:nth-child(1) { transform: translate(-50%, -50%) rotate(20deg); }
.thread-cursor.is-hovering i:nth-child(2) { transform: translate(-50%, -50%) rotate(80deg); }
.thread-cursor.is-hovering i:nth-child(3) { transform: translate(-50%, -50%) rotate(140deg); }

.scroll-spool {
  position: fixed;
  z-index: 30;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  mix-blend-mode: difference;
  color: white;
  pointer-events: none;
}

.scroll-spool > span {
  writing-mode: vertical-rl;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-spool > div {
  position: relative;
  width: 24px;
  height: 52px;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.scroll-spool > div::before,
.scroll-spool > div::after {
  position: absolute;
  left: -4px;
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.scroll-spool > div::before { top: 0; }
.scroll-spool > div::after { bottom: 0; }

.scroll-spool i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: var(--scroll-progress, 0%);
  background: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 3px);
}

body.lightbox-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

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

a {
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.loom-loader {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transition: clip-path 1s cubic-bezier(0.85, 0, 0.15, 1) 0.15s;
  clip-path: inset(0 0 0 0);
}

.loom-loader.is-hidden {
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.loom-loader p {
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: 0.14em;
}

.loom-loader__threads {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(5vw - 1px),
    rgba(232, 225, 213, 0.16) 5vw
  );
  animation: thread-shift 1.2s ease-in-out both;
}

@keyframes thread-shift {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}

.monogram {
  justify-self: start;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.site-header nav {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.site-header nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 0.35s ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 46% 54%;
  padding-top: 92px;
  overflow: hidden;
}

.hero__copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 2vw 6vw 7vw;
}

.eyebrow {
  margin: 0 0 2.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 3;
  width: 140%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.3rem, 9.3vw, 10rem);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  margin-left: 0.42em;
  color: var(--rust);
  font-size: 0.7em;
  font-style: italic;
  line-height: 1.2;
}

.hero__intro {
  max-width: 24rem;
  margin: 3rem 0 2rem 4vw;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}

.round-link {
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: 4vw;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.round-link:hover {
  transform: rotate(-5deg);
  background: var(--ink);
  color: var(--paper);
}

.round-link svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero__art {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 5vh 0 0;
}

.hero__image-wrap {
  position: relative;
  height: min(67vw, 78vh);
  overflow: hidden;
  background: #d3cfd0;
  clip-path: polygon(10% 4%, 100% 0, 93% 93%, 0 100%);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.98);
  transition: opacity 0.5s ease;
}

.hero-loom {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__image-wrap.has-live-loom > img {
  opacity: 0;
}

.hero__image-wrap.has-live-loom .hero-loom {
  opacity: 1;
}

.hero__weave {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image: url("Images/Sand1.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.42;
  mix-blend-mode: hard-light;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px);
  mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px);
  animation: hero-weave 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__touch {
  position: absolute;
  z-index: 3;
  right: 2rem;
  bottom: 2rem;
  margin: 0;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35rem;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
}

@keyframes hero-weave {
  0% {
    transform: translateX(-1.5%) scale(0.98);
    mask-position: 0 0;
  }
  100% {
    transform: translateX(1.5%) scale(1.01);
    mask-position: 32px 0;
  }
}

.hero__art figcaption {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 4vw 0 8%;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.warp-lines {
  position: absolute;
  z-index: 0;
  bottom: -8rem;
  left: -3rem;
  width: 50vw;
  height: 35vh;
  transform: rotate(-8deg);
  opacity: 0.5;
}

.warp-lines i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--i, 0) * 13%);
  width: 1px;
  transform-origin: top;
  background: var(--rust);
}

.warp-lines i:nth-child(1) { --i: 0; transform: rotate(-9deg); }
.warp-lines i:nth-child(2) { --i: 1; transform: rotate(-6deg); }
.warp-lines i:nth-child(3) { --i: 2; transform: rotate(-3deg); }
.warp-lines i:nth-child(4) { --i: 3; }
.warp-lines i:nth-child(5) { --i: 4; transform: rotate(3deg); }
.warp-lines i:nth-child(6) { --i: 5; transform: rotate(6deg); }
.warp-lines i:nth-child(7) { --i: 6; transform: rotate(9deg); }
.warp-lines i:nth-child(8) { --i: 7; transform: rotate(12deg); }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.ticker__track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: ticker 24s linear infinite;
}

.ticker span {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.5rem);
}

.ticker i {
  width: 3rem;
  height: 1px;
  display: block;
  background: var(--rust);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section-pad {
  padding: 10rem 6vw;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: end;
  margin-bottom: 9rem;
}

.section-heading .eyebrow {
  align-self: start;
}

.section-heading h2,
.about h2,
.education h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7vw, 8rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  max-width: 20rem;
  margin: 0 0 0 3vw;
  line-height: 1.7;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6rem 2vw;
  align-items: start;
}

.work {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
}

.work:hover {
  will-change: transform;
}

.work:nth-child(3n + 2) {
  margin-top: 5rem;
}

.work__image {
  position: relative;
  overflow: hidden;
  background: #d1cbc3;
}

.work__image::before,
.work__image::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__image::before {
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(232, 225, 213, 0.65) 9px 10px);
  transform: translateY(-100%);
}

.work__image::after {
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(158, 63, 36, 0.45) 9px 10px);
  transform: translateX(-100%);
  mix-blend-mode: multiply;
}

.work:hover .work__image::before,
.work:hover .work__image::after {
  opacity: 0.65;
  transform: translate(0);
}

.work__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.work:hover .work__image img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.work__number {
  position: absolute;
  top: 0;
  left: -2.2rem;
  font-size: 0.65rem;
  font-weight: 500;
}

.work__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid transparent;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.work__title i {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loom-playground {
  position: relative;
  padding: 11rem 6vw;
  overflow: hidden;
  background: #171713;
  color: var(--paper);
}

.loom-playground::before {
  position: absolute;
  top: 0;
  right: 9vw;
  bottom: 0;
  width: 1px;
  content: "";
  background: rgba(232, 225, 213, 0.17);
  box-shadow:
    -9vw 0 rgba(232, 225, 213, 0.1),
    -18vw 0 rgba(232, 225, 213, 0.1),
    -27vw 0 rgba(232, 225, 213, 0.1),
    -36vw 0 rgba(232, 225, 213, 0.1),
    -45vw 0 rgba(232, 225, 213, 0.1),
    -54vw 0 rgba(232, 225, 213, 0.1),
    -63vw 0 rgba(232, 225, 213, 0.1),
    -72vw 0 rgba(232, 225, 213, 0.1),
    -81vw 0 rgba(232, 225, 213, 0.1);
}

.loom-playground__heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  margin-bottom: 6rem;
}

.loom-playground__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.045em;
}

.loom-playground__heading > p:last-child {
  max-width: 18rem;
  margin: 0 0 0 3vw;
  line-height: 1.7;
}

.loom-playground__frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(232, 225, 213, 0.35);
  background: #211f1a;
}

#visitor-loom {
  width: 100%;
  height: min(68vh, 720px);
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.loom-playground__prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 3.5rem);
  font-style: italic;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loom-playground__prompt span {
  color: #d29635;
}

.loom-playground__frame.has-stitches .loom-playground__prompt {
  opacity: 0;
}

.loom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(232, 225, 213, 0.35);
}

.loom-palette,
.loom-controls > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.loom-palette button {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  outline: 0 solid var(--paper);
  outline-offset: 3px;
  background: var(--thread-color);
  background: attr(data-thread type(<color>), #a33f27);
  cursor: pointer;
  transition: transform 0.2s ease, outline-width 0.2s ease;
}

.loom-palette button:nth-child(1) { background: #a33f27; }
.loom-palette button:nth-child(2) { background: #087b80; }
.loom-palette button:nth-child(3) { background: #d29635; }
.loom-palette button:nth-child(4) { background: #9f174f; }
.loom-palette button:nth-child(5) { background: #eee6d8; }

.loom-palette button:hover {
  transform: scale(1.18);
}

.loom-palette button.is-active {
  outline-width: 1px;
}

.loom-action {
  border: 0;
  border-bottom: 1px solid rgba(232, 225, 213, 0.6);
  padding: 0.3rem 0;
  background: transparent;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.weave-lab {
  position: relative;
  height: 230vh;
  min-height: 1800px;
  overflow: hidden;
  background: #cbc3b7;
}

.weave-lab::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.35;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(8.333vw - 1px), rgba(39, 37, 31, 0.2) 8.333vw),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(39, 37, 31, 0.08) 32px);
}

.weave-lab__intro {
  position: absolute;
  z-index: 3;
  top: 9rem;
  left: 7vw;
  width: 48vw;
}

.weave-lab__intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 9vw, 10.5rem);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.055em;
}

.weave-lab__intro h2 em {
  margin-left: 0.45em;
  color: var(--rust);
  font-weight: 400;
}

.weave-lab__intro > p:last-child {
  max-width: 22rem;
  margin: 4rem 0 0 21vw;
  font-size: 1.05rem;
  line-height: 1.7;
}

.fiber-study {
  position: absolute;
  z-index: 2;
}

.fiber-study__image {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 35px 80px rgba(39, 37, 31, 0.18);
}

.fiber-study__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-radial-gradient(circle at center, transparent 0 8px, rgba(232, 225, 213, 0.18) 9px 10px);
  mix-blend-mode: screen;
}

.fiber-study__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
}

.fiber-study > p {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 0;
  border-top: 1px solid var(--ink);
  padding-top: 0.65rem;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.fiber-study > p span {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
}

.fiber-study--one {
  top: 37%;
  right: 7vw;
}

.fiber-study--one .fiber-study__image {
  width: 38vw;
  height: 38vw;
}

.fiber-study--two {
  top: 57%;
  left: 8vw;
}

.fiber-study--two .fiber-study__image {
  width: 27vw;
  height: 27vw;
}

.fiber-study--three {
  top: 75%;
  right: 18vw;
}

.fiber-study--three .fiber-study__image {
  width: 22vw;
  height: 22vw;
}

.fiber-study__orbit {
  position: absolute;
  z-index: -1;
  inset: -14%;
  animation: orbit 16s linear infinite;
}

.fiber-study__orbit i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(158, 63, 36, 0.55);
  border-radius: 50%;
}

.fiber-study__orbit i:nth-child(1) { transform: rotate(18deg) scaleX(1.3); }
.fiber-study__orbit i:nth-child(2) { transform: rotate(73deg) scaleY(1.2); }
.fiber-study__orbit i:nth-child(3) { transform: rotate(132deg) scaleX(1.14); }

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.weave-word {
  position: absolute;
  z-index: 1;
  bottom: -0.08em;
  left: -0.03em;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: rgba(39, 37, 31, 0.08);
  font-family: var(--serif);
  font-size: 22vw;
  line-height: 0.75;
}

.weave-word span:nth-child(odd) {
  transform: translateY(var(--word-shift, 0px));
}

.interlude {
  position: relative;
  height: 85vh;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.interlude__image {
  width: min(76vw, 1000px);
  height: 66%;
  overflow: hidden;
  transform: rotate(-2deg);
}

.interlude__image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.interlude__line {
  position: absolute;
  z-index: 2;
  width: max-content;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 7rem);
  font-style: italic;
  white-space: nowrap;
  animation: drift 18s ease-in-out infinite alternate;
}

.interlude__fringe {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 13vh;
  background: repeating-linear-gradient(90deg, var(--rust) 0 1px, transparent 1px 9px);
  transform-origin: top;
  -webkit-mask: linear-gradient(to bottom, #000, transparent);
  mask: linear-gradient(to bottom, #000, transparent);
  animation: fringe 4s ease-in-out infinite alternate;
}

@keyframes fringe {
  from { transform: skewX(-4deg); }
  to { transform: skewX(5deg); }
}

@keyframes drift {
  from { transform: translateX(-6vw); }
  to { transform: translateX(6vw); }
}

.about {
  display: grid;
  grid-template-columns: 25% 75%;
  border-bottom: 1px solid var(--line);
}

.about__label span {
  font-family: var(--serif);
}

.about h2 {
  color: var(--rust);
}

.about__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  margin: 5rem 0 0 12vw;
}

.about__text p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.75;
}

.education {
  background: var(--rust);
  color: #f0e9dc;
}

.education__row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 2rem;
}

.education h2 {
  font-size: clamp(3.2rem, 6vw, 7rem);
}

.education__row p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: end;
  padding: 5rem 6vw;
  background: var(--ink);
  color: var(--paper);
}

footer p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__name {
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 4rem);
  letter-spacing: 0;
  text-transform: none;
}

footer a {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a span {
  margin-left: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(26, 25, 21, 0.97);
  color: var(--paper);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 8vw 1fr 8vw;
  align-items: center;
  animation: lightbox-in 0.45s ease both;
}

.lightbox::backdrop {
  background: rgba(26, 25, 21, 0.7);
}

@keyframes lightbox-in {
  from { opacity: 0; }
}

.lightbox figure {
  grid-column: 2;
  grid-row: 1;
  height: 87vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.lightbox figure img {
  width: 100%;
  height: calc(87vh - 3rem);
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  width: min(100%, 800px);
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.lightbox figcaption small {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__arrow {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 1.7rem;
  right: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__close span {
  margin-left: 0.6rem;
  font-size: 1.4rem;
  font-weight: 300;
}

.lightbox__arrow {
  grid-row: 1;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.lightbox__arrow--prev {
  grid-column: 1;
}

.lightbox__arrow--next {
  grid-column: 3;
}

.lightbox__arrow:hover {
  transform: scaleX(1.3);
}

@media (max-width: 800px) {
  .thread-cursor {
    display: none;
  }

  .thread-field {
    display: none;
  }

  .scroll-spool {
    right: 0.7rem;
    bottom: 0.7rem;
    transform: scale(0.8);
    transform-origin: bottom right;
  }

  .site-header {
    height: 72px;
    padding: 0 1.4rem;
  }

  .menu-toggle {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .menu-toggle i {
    width: 1.4rem;
    height: 1px;
    background: currentColor;
  }

  .site-header nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    background: var(--ink);
    color: var(--paper);
    transition: transform 0.55s cubic-bezier(0.85, 0, 0.15, 1);
  }

  .site-header nav.is-open {
    transform: translateY(0);
  }

  .site-header nav a {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero {
    display: block;
    padding-top: 72px;
  }

  .hero__copy {
    min-height: 60svh;
    padding: 7rem 1.4rem 3rem;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .hero h1 span {
    margin-left: 0.1em;
  }

  .hero__intro {
    margin: 2.5rem 0 2rem 15vw;
  }

  .round-link {
    margin-left: 15vw;
  }

  .hero__art {
    margin: 0;
  }

  .hero__image-wrap {
    height: 65vh;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  }

  .hero__weave {
    opacity: 0.25;
    mix-blend-mode: normal;
    animation: none;
  }

  .hero-loom,
  .hero__touch {
    display: none;
  }

  .section-pad {
    padding: 7rem 1.4rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 5rem;
  }

  .section-heading h2 {
    margin-bottom: 2.5rem;
  }

  .section-heading > p:last-child {
    margin: 0;
  }

  .gallery {
    display: block;
  }

  .work {
    width: calc(100% - 1.6rem);
    margin: 0 0 5rem 1.6rem;
  }

  .work:nth-child(even) {
    width: 88%;
    margin-left: 0;
  }

  .work:nth-child(3n + 2) {
    margin-top: 0;
  }

  .work__number {
    left: -1.6rem;
  }

  .loom-playground {
    padding: 7rem 1.4rem;
  }

  .loom-playground__heading {
    display: block;
    margin-bottom: 4rem;
  }

  .loom-playground__heading h2 {
    margin-bottom: 2.5rem;
    font-size: clamp(3.8rem, 17vw, 5.8rem);
  }

  .loom-playground__heading > p:last-child {
    margin: 0 0 0 15vw;
  }

  #visitor-loom {
    height: 58vh;
  }

  .loom-controls {
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem 1rem;
  }

  .loom-palette {
    flex-wrap: wrap;
    max-width: 6rem;
  }

  .loom-controls > div:last-child {
    flex-direction: column;
    align-items: flex-end;
  }

  .interlude {
    min-height: 560px;
  }

  .weave-lab {
    height: 1900px;
    min-height: 0;
  }

  .weave-lab__intro {
    top: 7rem;
    left: 1.4rem;
    width: calc(100% - 2.8rem);
  }

  .weave-lab__intro h2 {
    font-size: clamp(4.2rem, 21vw, 6.4rem);
  }

  .weave-lab__intro > p:last-child {
    margin: 3rem 0 0 15vw;
  }

  .fiber-study--one {
    top: 31%;
    right: -8vw;
  }

  .fiber-study--one .fiber-study__image {
    width: 83vw;
    height: 83vw;
  }

  .fiber-study--two {
    top: 55%;
    left: -8vw;
  }

  .fiber-study--two .fiber-study__image {
    width: 67vw;
    height: 67vw;
  }

  .fiber-study--three {
    top: 76%;
    right: 8vw;
  }

  .fiber-study--three .fiber-study__image {
    width: 57vw;
    height: 57vw;
  }

  .fiber-study__orbit {
    animation-duration: 28s;
  }

  .weave-word {
    bottom: 0;
    flex-direction: column;
    align-items: center;
    font-size: 32vw;
    line-height: 0.45;
  }

  .interlude__image {
    width: 88vw;
    height: 65%;
  }

  .about {
    display: block;
  }

  .about__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
  }

  .about__text {
    display: block;
    margin: 3rem 0 0 15vw;
  }

  .about__text p + p {
    margin-top: 1.5rem;
  }

  .education__row {
    display: block;
  }

  .education h2 {
    margin: 3rem 0;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding: 4rem 1.4rem;
  }

  footer > p {
    grid-column: 1;
  }

  footer a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .lightbox[open] {
    grid-template-columns: 3.5rem 1fr 3.5rem;
  }

  .lightbox figure {
    height: 78vh;
  }

  .lightbox figure img {
    height: calc(78vh - 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .thread-field,
  .thread-cursor {
    display: none;
  }
}
