@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@500;700&family=Karla:wght@300;400;700&display=swap");

:root {
  --olive: #5e6558;
  --olive-deep: #4d5549;
  --olive-black: #252b23;
  --paper: #e9e4ce;
  --paper-soft: #f1eedc;
  --ink: #5e6558;
  --ink-soft: rgba(94, 101, 88, 0.72);
  --cream: #e8e4ce;
  --black: #11130f;
  --acid: #d8ff79;
  --cyan: #7ad6cf;
  --rose: #d889b4;
  --violet: #8f89d8;
  --ember: #d6a64d;
  --line: rgba(94, 101, 88, 0.32);
  --tick: rgba(94, 101, 88, 0.2);
  --white-line: rgba(232, 228, 206, 0.36);
  --shadow: 0 24px 80px rgba(17, 19, 15, 0.2);
  --frame: clamp(14px, 1.5vw, 24px);
  --gutter: clamp(18px, 3.2vw, 58px);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(94, 101, 88, 0.09) 1px, transparent 1px) 0 0 / 9vw 100%,
    var(--paper);
  color: var(--ink);
  font-family: Karla, Arial, sans-serif;
  line-height: 1.25;
  text-rendering: geometricPrecision;
}

::selection {
  background: var(--acid);
  color: var(--black);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section,
article {
  scroll-margin-top: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--paper-soft);
  color: var(--ink);
  padding: 8px 10px;
  font-family: Dosis, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

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

.scroll-track {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: rgba(17, 19, 15, 0.08);
  pointer-events: none;
}

.scroll-track span {
  display: block;
  width: var(--scroll, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--cyan), var(--rose));
}

.system-rail {
  position: fixed;
  z-index: 42;
  left: var(--frame);
  top: 50%;
  display: grid;
  grid-template-rows: auto 108px auto;
  gap: 10px;
  align-items: center;
  justify-items: center;
  transform: translateY(-50%);
  color: var(--cream);
  font-family: Dosis, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.rail-current,
.rail-mode {
  writing-mode: vertical-rl;
}

.rail-line {
  position: relative;
  width: 1px;
  height: 100%;
  background: currentColor;
  opacity: 0.42;
}

.rail-progress {
  position: absolute;
  inset: 0 0 auto;
  width: 5px;
  height: var(--rail, 0%);
  transform: translateX(-2px);
  background: var(--acid);
}

body.on-paper .system-rail {
  color: var(--ink);
}

.site-frame {
  position: fixed;
  inset: var(--frame) var(--frame) auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  color: var(--cream);
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(0.78rem, 1.15vw, 1rem);
  font-weight: 700;
  text-transform: lowercase;
  mix-blend-mode: normal;
  pointer-events: none;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-frame a,
.site-frame nav {
  pointer-events: auto;
}

body.on-paper .site-frame {
  color: var(--ink);
}

body.past-hero .site-frame {
  opacity: 0.94;
  pointer-events: none;
}

.frame-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 16px;
  max-width: 920px;
  opacity: 0.34;
  transition: opacity 180ms ease;
}

.site-frame:hover .frame-nav,
.site-frame:focus-within .frame-nav,
body.past-hero .frame-nav {
  opacity: 1;
}

.frame-nav a {
  border-bottom: 1px solid currentColor;
}

.frame-nav a[aria-current="true"] {
  color: var(--black);
  border-bottom-color: transparent;
  background:
    linear-gradient(90deg, rgba(216, 255, 121, 0.65), rgba(122, 214, 207, 0.28));
  padding: 0 4px 2px;
}

.green-field {
  background: var(--olive);
  color: var(--cream);
}

.paper-field {
  background:
    radial-gradient(ellipse 2px 4px at 1px 1px, var(--tick) 0 45%, transparent 48%) 0 0 / 42px 34px,
    var(--paper);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(232, 228, 206, 0.12) 1px, transparent 1px) 0 0 / 9vw 100%,
    linear-gradient(180deg, rgba(94, 101, 88, 0) 0 45%, rgba(17, 19, 15, 0.08) 78% 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(232, 228, 206, 0.08) 0 1px, transparent 1px 8px),
    linear-gradient(120deg, transparent 0 45%, rgba(216, 255, 121, 0.1) 50%, transparent 57%);
  mix-blend-mode: screen;
  opacity: 0.38;
  pointer-events: none;
}

.hero-logo-wrap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 42svh;
  transform: translateY(-50%);
}

.hero-logo {
  width: min(100vw, 1340px);
  height: auto;
  margin: 0 auto;
}

.hero-image {
  align-self: end;
  width: 100%;
  height: min(52svh, 540px);
  margin: 0;
  overflow: hidden;
}

.hero-image img {
  object-position: 50% 58%;
}

.hero-data {
  position: absolute;
  z-index: 5;
  right: var(--frame);
  top: clamp(82px, 16svh, 160px);
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--cream);
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 700;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.hero-data p {
  margin: 0;
  padding: 4px 7px;
  border: 1px solid rgba(232, 228, 206, 0.38);
  background: rgba(37, 43, 35, 0.16);
  backdrop-filter: blur(8px);
}

.hero-footer {
  position: absolute;
  inset: auto var(--frame) 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  font-family: Dosis, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-footer h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-footer p {
  margin: 0;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
}

.hero-footer p:last-child {
  text-align: right;
}

.practice {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--gutter) + 38px) var(--gutter) var(--gutter);
}

.practice-inner {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1.45fr;
  gap: clamp(22px, 3.8vw, 62px);
  align-items: center;
}

.portrait {
  aspect-ratio: 1.78;
  margin: 0;
  overflow: hidden;
}

.practice-text h2 {
  margin: 0 0 18px;
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(1.7rem, 3.1vw, 3.2rem);
  font-weight: 500;
  line-height: 0.96;
  text-transform: uppercase;
}

.practice-text p:not(.small-meta) {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.55vw, 1.27rem);
  text-align: justify;
}

.practice-threads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.practice-threads span {
  padding: 6px 9px;
  border: 1px solid rgba(232, 228, 206, 0.38);
  font-family: Dosis, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.small-meta {
  margin: 0 0 12px;
  font-family: Dosis, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.threads {
  min-height: 100svh;
  padding: calc(var(--gutter) + 42px) var(--gutter) var(--gutter);
  display: grid;
  align-content: center;
}

.threads-head,
.thread-grid {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.threads h2 {
  max-width: 1060px;
  margin: 0 0 clamp(34px, 6vw, 88px);
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(2.4rem, 7.2vw, 7.8rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.thread-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.thread-grid article {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(18px, 2.5vw, 34px);
  background:
    radial-gradient(ellipse 2px 4px at 1px 1px, rgba(94, 101, 88, 0.16) 0 45%, transparent 48%) 0 0 / 34px 28px,
    var(--paper-soft);
}

.thread-grid span {
  font-family: Karla, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.thread-grid h3 {
  margin: 0;
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(1.3rem, 2.25vw, 2.35rem);
  font-weight: 500;
  line-height: 0.94;
  text-transform: uppercase;
}

.thread-grid p {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.25;
  text-align: justify;
  hyphens: auto;
}

.information {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 58px);
  padding: calc(var(--gutter) + 42px) var(--gutter) var(--gutter);
}

.information-head,
.information-layout,
.reference-braid {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.information-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.5fr);
  gap: clamp(22px, 4vw, 68px);
  align-items: end;
}

.information-head .small-meta {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.information-head h2 {
  grid-column: 1;
  margin: 0;
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(2.2rem, 6.2vw, 6.8rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.information-head p:not(.small-meta) {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1rem, 1.32vw, 1.24rem);
  text-align: justify;
  hyphens: auto;
}

.information-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.information-ledger {
  border-top: 1px solid var(--line);
}

.information-ledger article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.information-ledger span,
.information-stack span {
  font-family: Karla, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.information-ledger h3,
.information-stack h3 {
  margin: 0;
  font-family: Dosis, Arial, sans-serif;
  font-weight: 500;
  line-height: 0.96;
  text-transform: uppercase;
}

.information-ledger h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.information-ledger p {
  grid-column: 2;
  margin: 0;
  font-size: clamp(0.93rem, 1.05vw, 1.06rem);
  line-height: 1.25;
  text-align: justify;
  hyphens: auto;
}

.information-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.information-stack article {
  min-height: 300px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(18px, 2.4vw, 32px);
  background:
    linear-gradient(135deg, rgba(216, 255, 121, 0.16), transparent 42%),
    var(--paper-soft);
}

.information-stack h3 {
  font-size: clamp(1.45rem, 2.45vw, 2.5rem);
}

.information-stack p {
  margin: 0;
  font-size: clamp(0.95rem, 1.12vw, 1.1rem);
  text-align: justify;
  hyphens: auto;
}

.reference-braid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-braid span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: rgba(241, 238, 220, 0.5);
  font-family: Dosis, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.selected {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: calc(var(--gutter) + 36px) var(--gutter) var(--gutter);
}

.selected > .small-meta,
.selected > h2,
.selected-layout {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.selected h2 {
  margin-top: 0;
  margin-bottom: clamp(30px, 7vw, 90px);
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(4.4rem, 15vw, 15rem);
  font-weight: 500;
  line-height: 0.78;
  text-transform: lowercase;
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 58px;
}

.selected-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(22px, 4vw, 68px);
  align-items: start;
}

.selected-grid a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease, padding-left 160ms ease, background 160ms ease;
}

.selected-grid a:hover,
.selected-grid a:focus-visible,
.selected-grid a.is-previewed {
  padding-left: 8px;
  color: var(--black);
  background: linear-gradient(90deg, rgba(216, 255, 121, 0.44), transparent 70%);
}

.selected-grid span {
  font-family: Karla, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-stage {
  position: relative;
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--olive-deep);
  box-shadow: var(--shadow);
}

.preview-stage img {
  filter: saturate(1.08) contrast(1.04);
}

.preview-stage figcaption {
  position: absolute;
  inset: auto 12px 12px;
  display: grid;
  gap: 4px;
  color: var(--cream);
  font-family: Dosis, Arial, sans-serif;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(17, 19, 15, 0.5);
}

.preview-stage figcaption span {
  font-size: 0.74rem;
  font-weight: 700;
}

.preview-stage figcaption strong {
  max-width: 320px;
  font-size: clamp(1.3rem, 2.8vw, 2.4rem);
  font-weight: 500;
}

.work {
  min-height: 100svh;
  padding: calc(var(--gutter) + 62px) var(--gutter) var(--gutter);
  border-top: 1px solid rgba(94, 101, 88, 0.12);
  container-type: inline-size;
  overflow: hidden;
}

.work-head,
.title-plate,
.work-body,
.contact > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.work-head h2 {
  margin: 0 0 18px;
  font-family: Karla, Arial, sans-serif;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-head h2 span {
  display: inline-block;
  font-size: 0.32em;
  vertical-align: baseline;
  white-space: nowrap;
}

.title-plate {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding-bottom: clamp(56px, 6vw, 108px);
}

.split-reverse {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.media-panel {
  min-height: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  box-shadow: 0 22px 70px rgba(17, 19, 15, 0.18);
}

.image-field img,
.preview-stage img {
  object-fit: contain;
}

.media-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(94, 101, 88, 0.08);
}

.panel-left {
  grid-column: 1 / 8;
  grid-row: 1;
  z-index: 2;
}

.panel-right {
  grid-column: 6 / 13;
  grid-row: 1;
  z-index: 3;
  margin-top: clamp(62px, 7.2vw, 126px);
  opacity: 0.95;
}

.split-reverse .panel-left {
  grid-column: 6 / -1;
  z-index: 3;
  margin-left: 0;
}

.split-reverse .panel-right {
  grid-column: 1 / 8;
  z-index: 2;
  margin-left: 0;
  margin-right: 0;
}

.work-meta {
  grid-column: 2 / 8;
  grid-row: 1;
  z-index: 6;
  align-self: end;
  display: grid;
  gap: 4px;
  margin-bottom: clamp(-54px, -4vw, -24px);
  padding: 12px 14px 10px;
  border: 1px solid rgba(94, 101, 88, 0.26);
  background: rgba(233, 228, 206, 0.82);
  backdrop-filter: blur(12px);
  font-size: clamp(0.96rem, 1.42vw, 1.32rem);
  box-shadow: 0 18px 50px rgba(17, 19, 15, 0.1);
}

.split-reverse .work-meta {
  grid-column: 6 / 12;
}

.work-meta p {
  margin: 0;
}

.work-meta strong {
  font-weight: 400;
  color: var(--black);
}

.work-body {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.25fr);
  grid-template-areas:
    "statement images"
    "details images";
  gap: clamp(22px, 3vw, 48px);
  padding-top: clamp(28px, 5vw, 70px);
  align-items: start;
}

.statement {
  grid-area: statement;
}

.statement p {
  margin: 0 0 18px;
  font-size: clamp(0.98rem, 1.3vw, 1.17rem);
  text-align: justify;
  hyphens: auto;
}

.statement .pathline {
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(1.2rem, 2.15vw, 2rem);
  text-transform: lowercase;
  text-align: left;
}

.signal-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(24px, 4vw, 46px);
  background: var(--line);
  border: 1px solid var(--line);
}

.signal-line span {
  min-height: 82px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(216, 255, 121, 0.22), transparent 48%),
    var(--paper-soft);
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.detail-list {
  grid-area: details;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-family: Karla, Arial, sans-serif;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  font-weight: 400;
  line-height: 1.18;
}

.detail-list details {
  border-top: 1px solid var(--line);
  padding: 13px 0 15px;
}

.detail-list details:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-list summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.detail-list summary::-webkit-details-marker {
  display: none;
}

.detail-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--black);
}

.detail-list details[open] summary::after {
  content: "-";
}

.detail-list p {
  margin: 12px 0 0;
  line-height: 1.32;
  text-align: justify;
  hyphens: auto;
}

.detail-list strong {
  color: var(--black);
  font-weight: 700;
}

.image-field {
  grid-area: images;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(34px, auto));
  gap: clamp(12px, 1.4vw, 22px);
  align-self: start;
  min-height: clamp(560px, 58vw, 820px);
  padding: clamp(8px, 1vw, 16px) 0 0;
}

.image-field img {
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: start;
  background: var(--olive-deep);
  border: 1px solid rgba(233, 228, 206, 0.42);
  box-shadow: 0 18px 55px rgba(17, 19, 15, 0.18);
  filter: saturate(1.03) contrast(1.02);
  transition: filter 180ms ease, opacity 180ms ease;
}

.image-field img:hover {
  filter: saturate(1.08) contrast(1.04);
}

.image-field-five {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.image-field-five img:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1 / 6;
  z-index: 2;
}

.image-field-five img:nth-child(2) {
  grid-column: 6 / 12;
  grid-row: 2 / 6;
  z-index: 1;
  opacity: 0.92;
}

.image-field-five img:nth-child(3) {
  grid-column: 8 / 13;
  grid-row: 6 / 10;
  z-index: 4;
}

.image-field-five img:nth-child(4) {
  grid-column: 2 / 8;
  grid-row: 7 / 12;
  z-index: 5;
  opacity: 0.92;
}

.image-field-five img:nth-child(5) {
  grid-column: 7 / 11;
  grid-row: 4 / 8;
  z-index: 6;
  opacity: 0.92;
}

.image-field-four {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.image-field-four img:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 6;
  z-index: 3;
}

.image-field-four img:nth-child(2) {
  grid-column: 6 / 13;
  grid-row: 2 / 7;
  z-index: 2;
  opacity: 0.94;
}

.image-field-four img:nth-child(3) {
  grid-column: 2 / 8;
  grid-row: 7 / 12;
  z-index: 5;
}

.image-field-four img:nth-child(4) {
  grid-column: 8 / 13;
  grid-row: 8 / 11;
  z-index: 6;
  opacity: 0.92;
}

.image-field-three {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.image-field-three img:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1 / 6;
  z-index: 2;
}

.image-field-three img:nth-child(2) {
  grid-column: 6 / 13;
  grid-row: 4 / 10;
  z-index: 3;
  opacity: 0.94;
}

.image-field-three img:nth-child(3) {
  grid-column: 3 / 10;
  grid-row: 8 / 12;
  z-index: 5;
  opacity: 0.92;
}

.contact {
  min-height: 58svh;
  display: grid;
  align-content: center;
  padding: calc(var(--gutter) + 36px) var(--gutter) var(--gutter);
  text-align: center;
}

.contact h2 {
  margin-top: 0;
  margin-bottom: 30px;
  font-family: Dosis, Arial, sans-serif;
  font-size: clamp(1.9rem, 5.2vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  text-transform: uppercase;
}

.footer-references {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.footer-references span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: rgba(241, 238, 220, 0.46);
  font-family: Dosis, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.contact p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  text-transform: uppercase;
}

.drift {
  position: relative;
}

.drift img {
  transform: scale(1.012);
  transition: filter 220ms ease, opacity 220ms ease;
}

.drift::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(216, 255, 121, 0.09), transparent 38%),
    linear-gradient(315deg, rgba(122, 214, 207, 0.08), transparent 44%);
  mix-blend-mode: soft-light;
  opacity: 0.46;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.drift:hover::after,
.drift:focus-within::after {
  opacity: 0.62;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@supports (animation-timeline: view()) {
  .work-head h2,
  .threads h2 {
    animation: text-drift both ease-out;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }

  @keyframes text-drift {
    from {
      opacity: 0.45;
      transform: translateY(24px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (min-width: 1100px) {
  .work:nth-of-type(odd) .work-body {
    grid-template-columns: minmax(500px, 1.25fr) minmax(420px, 0.95fr);
    grid-template-areas:
      "images statement"
      "images details";
  }
}

@media (max-width: 940px) {
  .site-frame {
    grid-template-columns: 1fr auto;
  }

  .site-frame > a:first-child {
    order: 1;
  }

  .site-frame > a:last-child {
    order: 2;
  }

  .frame-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-self: stretch;
    justify-content: flex-start;
    max-width: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .frame-nav::-webkit-scrollbar {
    display: none;
  }

  .practice-inner,
  .work-body,
  .selected-grid,
  .selected-layout,
  .thread-grid,
  .information-head,
  .information-layout,
  .information-stack {
    grid-template-columns: 1fr;
  }

  .thread-grid article {
    min-height: 260px;
  }

  .information-head {
    align-items: start;
  }

  .information-head .small-meta,
  .information-head h2,
  .information-head p:not(.small-meta) {
    grid-column: 1;
  }

  .information-head .small-meta {
    margin-bottom: 0;
  }

  .information-stack article {
    min-height: 230px;
  }

  .preview-stage {
    min-height: 360px;
  }

  .title-plate,
  .split-reverse {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-bottom: 26px;
  }

  .panel-left,
  .split-reverse .panel-left {
    grid-column: 1 / 6;
    grid-row: 1;
    margin: 0;
  }

  .panel-right,
  .split-reverse .panel-right {
    grid-column: 2 / 7;
    grid-row: 2;
    margin-top: clamp(-34px, -4vw, -16px);
    margin-left: 0;
    margin-right: 0;
  }

  .work-meta,
  .split-reverse .work-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: auto;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .work-body,
  .work:nth-of-type(odd) .work-body {
    grid-template-areas:
      "statement"
      "details"
      "images";
  }

  .image-field,
  .image-field-five,
  .image-field-four,
  .image-field-three {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(42px, 1fr));
    gap: 10px;
    height: 720px;
    min-height: 0;
  }

  .image-field-five img:nth-child(1),
  .image-field-four img:nth-child(1),
  .image-field-three img:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 4;
  }

  .image-field-five img:nth-child(2),
  .image-field-four img:nth-child(2),
  .image-field-three img:nth-child(2) {
    grid-column: 1 / 7;
    grid-row: 4 / 7;
  }

  .image-field-five img:nth-child(3),
  .image-field-four img:nth-child(3),
  .image-field-three img:nth-child(3) {
    grid-column: 1 / 5;
    grid-row: 7 / 10;
  }

  .image-field-five img:nth-child(4),
  .image-field-four img:nth-child(4) {
    grid-column: 3 / 7;
    grid-row: 10 / 13;
  }

  .image-field-five img:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: 10 / 13;
  }
}

@media (max-width: 620px) {
  :root {
    --frame: 12px;
    --gutter: 18px;
  }

  html {
    scroll-padding-top: 0;
  }

  section,
  article {
    scroll-margin-top: 0;
  }

  .site-frame {
    font-size: 0.78rem;
  }

  .frame-nav {
    display: none;
  }

  .system-rail {
    display: none;
  }

  .hero-data {
    left: var(--frame);
    right: var(--frame);
    top: 70px;
    justify-items: start;
    text-align: left;
  }

  .hero-logo-wrap {
    top: 38svh;
  }

  .hero-logo {
    width: 150vw;
    max-width: none;
    transform: translateX(-17vw);
  }

  .hero-image {
    height: 58svh;
  }

  .hero-image img {
    object-position: 52% 52%;
  }

  .hero-footer {
    grid-template-columns: 1fr 1fr;
  }

  .practice {
    place-items: start;
  }

  .portrait {
    aspect-ratio: 1.35;
  }

  .selected h2 {
    font-size: clamp(3.7rem, 22vw, 7.5rem);
  }

  .selected-grid a {
    min-height: 40px;
    grid-template-columns: 34px minmax(0, 1fr);
    font-size: 1.28rem;
  }

  .threads h2 {
    font-size: clamp(2rem, 13vw, 4rem);
  }

  .information-head h2 {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .information-head p:not(.small-meta),
  .information-ledger p,
  .information-stack p {
    text-align: left;
    hyphens: none;
  }

  .information-ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .information-ledger p {
    grid-column: auto;
  }

  .thread-grid article {
    min-height: 230px;
  }

  .signal-line {
    grid-template-columns: 1fr 1fr;
  }

  .work-head h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
    overflow-wrap: normal;
  }

  .work-meta {
    font-size: 1rem;
  }

  .statement p {
    text-align: left;
    hyphens: none;
  }

  .practice-text p:not(.small-meta) {
    text-align: left;
    hyphens: none;
  }

  .detail-list {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .detail-list p {
    text-align: left;
    hyphens: none;
  }

  .image-field,
  .image-field-five,
  .image-field-four,
  .image-field-three {
    height: 720px;
    min-height: 0;
    padding: 0;
  }

  .preview-stage {
    min-height: 300px;
  }
}

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

  .frame-nav,
  .drift img,
  .drift::after,
  .reveal {
    transition: none;
  }
}
