@font-face {
  font-family: Onest;
  src: url("../media/onest-cyr.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F;
}
@font-face {
  font-family: Onest;
  src: url("../media/onest-lat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-03FF, U+2000-206F, U+2190-21FF;
}
@font-face {
  font-family: STIXLocal;
  src: url("../media/stix-roman.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ko-earth: #ad8c6c;
  --ko-ink: #3d342b;
  --ko-gold: #ba965d;
  --ko-paper: #f2ecdf;
  --ko-gutter: max(28px, 3.125vw);
  --sans: Onest, "Segoe UI", sans-serif;
  --serif: STIXLocal, Georgia, serif;
  color: var(--ko-ink);
  background: var(--ko-ink);
  font-family: var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
:where(.study-home, .portfolio) a { color: inherit; }
:where(.study-home, .portfolio) :focus-visible { outline: 2px solid #f9efbd; outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
.sr-only, .reel-frame figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wordmark {
  width: max-content;
  color: inherit;
  font: 670 clamp(21px, 1.9vw, 32px)/1 var(--sans);
  letter-spacing: -.09em;
  text-decoration: none;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 44px;
  border-radius: 999px;
  background: var(--ko-paper);
  color: var(--ko-ink);
  padding: .45em 1.3em;
  font: 400 20px/1.1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
}
.pill:hover { background: #fff8e8; box-shadow: 0 8px 24px #3b281833; }
.study-home { color: var(--ko-ink); background: var(--ko-ink); }
.site-head {
  position: fixed;
  z-index: 5;
  inset: 27px var(--ko-gutter) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.site-head > .wordmark { margin-top: 2px; }
.site-head.on-dark > .wordmark { color: var(--ko-paper); }
.head-actions { display: flex; gap: 6px; }
.head-actions button {
  display: grid;
  place-items: center;
  width: 80px;
  height: 32px;
  border: 1px solid var(--ko-ink);
  border-radius: 999px;
  background: var(--ko-ink);
  color: var(--ko-paper);
}
.head-actions .rotate-button {
  width: 56px;
  background: #e3c9ad4d;
  color: var(--ko-ink);
}
.head-actions .rotate-button[aria-pressed="true"] { background: var(--ko-paper); }
.site-menu {
  position: absolute;
  top: 46px;
  right: 0;
  display: grid;
  width: min(320px, calc(100vw - 24px));
  padding: 15px 20px;
  border-radius: 16px;
  color: var(--ko-paper);
  background: var(--ko-ink);
  box-shadow: 0 12px 42px #20150744;
}
.site-menu a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #e8d6b755;
}
.site-menu a:last-child { border-bottom: 0; }
.site-menu a:hover { color: #efc997; }
.opening {
  position: relative;
  isolation: isolate;
  height: max(610px, 100svh);
  background: var(--ko-earth);
  color: var(--ko-ink);
}
.opening-field {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 50%;
  overflow: hidden;
  background: #745c42;
}
.opening-field img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% 50%;
  filter: brightness(.76) saturate(.86);
  opacity: 0;
  transition: opacity .65s ease;
}
.opening-field img + img { object-position: 63% 50%; }
.opening-field img.is-active { opacity: 1; }
.opening h1 {
  position: absolute;
  top: max(9%, 75px);
  left: var(--ko-gutter);
  margin: 0;
  max-width: calc(50% - var(--ko-gutter));
  font: 420 clamp(33px, 3.1vw, 67px)/1.06 var(--sans);
  letter-spacing: -.068em;
}
.opening-card {
  position: absolute;
  top: 23.3%;
  left: 50%;
  width: clamp(320px, 28.25vw, 615px);
  transform: translateX(-50%);
  padding: clamp(13px, 1.125vw, 20px) clamp(12px, 1vw, 20px) 13px;
  color: var(--ko-paper);
  background: rgb(112 82 52 / 24%);
  backdrop-filter: blur(13px);
}
.opening-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1.13;
  overflow: hidden;
}
.opening-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.opening-view {
  position: absolute;
  left: 50%;
  bottom: 6.3%;
  transform: translateX(-50%);
  min-height: 48px;
  padding-inline: .85em;
  color: var(--ko-ink) !important;
}
.opening-view span { font: 400 .63em/1 var(--sans); }
.opening-caption {
  text-align: center;
  min-height: clamp(126px, 11.7vw, 204px);
  padding: clamp(18px, 1.55vw, 29px) 8px 11px;
}
.opening-caption p { margin: 0 auto; }
.opening-caption p:first-child {
  font: 400 clamp(12px, 1vw, 17px)/1.15 var(--serif);
  text-transform: uppercase;
}
.opening-caption .opening-name {
  margin: .12em 0 .08em;
  font: 400 clamp(28px, 2.6vw, 50px)/1.08 var(--serif);
  letter-spacing: -.052em;
  text-transform: uppercase;
}
.opening-caption p:last-child {
  width: 95%;
  color: #f2ebdd;
  font: 430 clamp(12px, 1vw, 18px)/1.25 var(--sans);
  letter-spacing: -.03em;
}
.opening-progress {
  display: flex;
  gap: 8px;
  margin-top: -25px;
}
.opening-progress button {
  flex: 1;
  position: relative;
  min-height: 27px;
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  color: var(--ko-paper);
  font: 450 11px/1.1 var(--sans);
  text-align: left;
}
.opening-progress button::before, .opening-progress button::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 1px;
  background: #fff7e54c;
}
.opening-progress button[aria-pressed="true"]::after {
  right: 77%;
  background: #fff3da;
}
.scroll-cue {
  position: absolute;
  left: var(--ko-gutter);
  bottom: 3.6%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font: 450 11px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.wood-intro {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(84px, 14.8vw, 226px);
  min-height: clamp(510px, 76svh, 920px);
  padding: clamp(56px, 4.6vw, 100px) 20px clamp(52px, 6vw, 105px);
  background: var(--ko-ink);
  color: #c6a57e;
  text-align: center;
}
.wood-intro h2, .tech-title h2, .start h2 {
  margin: 0;
  font: 420 clamp(33px, 3.25vw, 56px)/1.05 var(--sans);
  letter-spacing: -.065em;
}
.wood-window {
  position: relative;
  display: block;
  width: clamp(130px, 17.4vw, 305px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ko-earth);
}
.wood-window img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .65s; }
.wood-window svg {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: auto;
  color: var(--ko-ink);
  filter: drop-shadow(0 0 16px #f1d7ac);
}
.wood-window:hover img { scale: 1.09; }
.material-scenes { background: var(--ko-gold); padding: clamp(65px, 4.2vw, 120px) 0 40px; overflow: clip; }
.material-scenes h2 {
  margin: 0 0 clamp(41px, 4vw, 82px) max(4vw, calc(50% - 466px));
  font: 400 clamp(46px, 6.85vw, 120px)/1.04 var(--serif);
  letter-spacing: -.075em;
}
.material-ribbons { overflow: hidden; }
.material-row {
  display: flex;
  align-items: end;
  gap: clamp(16px, 2.45vw, 44px);
  width: max-content;
  padding: 0 clamp(16px, 1.55vw, 32px);
  transform: translateX(var(--ribbon-offset, 0px));
}
.material-row + .material-row { margin-top: clamp(16px, 2.45vw, 44px); margin-left: -3.4vw; align-items: start; }
.material-row img {
  width: clamp(145px, 16.3vw, 330px);
  height: clamp(175px, 16.3vw, 330px);
  object-fit: cover;
}
.material-row img:nth-child(2) { width: clamp(120px, 12.3vw, 250px); height: clamp(110px, 12.3vw, 250px); }
.material-row img:nth-child(4) { width: clamp(180px, 21vw, 410px); height: clamp(130px, 12vw, 250px); }
.material-row img:nth-child(5) { width: clamp(122px, 13.8vw, 230px); height: clamp(195px, 19.2vw, 370px); }
.material-row:nth-child(2) img { width: clamp(182px, 20vw, 392px); height: clamp(130px, 13vw, 235px); }
.ribbon-credit { margin: 16px var(--ko-gutter) 0; font-size: 12px; }
.material-outro { padding: clamp(52px, 6.4vw, 115px) 16px 30px max(4vw, calc(50% - 466px)); }
.material-outro .pill { color: var(--ko-ink); }
.site-proof {
  display: grid;
  grid-template-columns: 1fr repeat(2, 1.3fr);
  gap: clamp(16px, 2.4vw, 40px);
  align-items: center;
  padding: clamp(50px, 7.4vw, 150px) var(--ko-gutter);
  background: #ecdfc8;
}
.site-proof figure { margin: 0; }
.site-proof figure + figure { margin-top: 12%; }
.site-proof img { display: block; width: 100%; aspect-ratio: 1.08; object-fit: cover; }
.site-proof figcaption { margin-top: 8px; font-size: 12px; }
.site-proof h2 { margin: 0; font: 400 clamp(43px, 5.2vw, 100px)/.9 var(--serif); letter-spacing: -.06em; }
.site-proof p { max-width: 27ch; margin: 16px 0 26px; }
.technologies { padding: clamp(70px, 8vw, 164px) var(--ko-gutter); background: #eee5d2; }
.tech-title { margin-bottom: clamp(25px, 4vw, 90px); }
.tech-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 44px); }
.tech-choices article {
  position: relative;
  display: flex;
  isolation: isolate;
  align-items: end;
  min-height: clamp(440px, 51vw, 900px);
  padding: clamp(22px, 3.6vw, 62px);
  overflow: hidden;
  background: #60503a;
  color: var(--ko-paper);
}
.tech-choices article::before, .tech-choices article img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tech-choices article::before { content: ""; background: linear-gradient(transparent 28%, #23190bdb); z-index: -1; }
.tech-choices article img { object-fit: cover; z-index: -2; }
.tech-image-credit {
  position: absolute;
  inset: 16px auto auto 16px;
  padding: 4px 8px;
  border-radius: 3px;
  background: #3d342bd9;
  color: var(--ko-paper);
  font-size: 11px;
}
.tech-choices h3 { margin: 0; font: 400 clamp(35px, 4vw, 76px)/1 var(--serif); letter-spacing: -.06em; }
.tech-choices p { max-width: 31ch; margin: 8px 0 22px; }
.tech-choices a, .start a { color: var(--ko-ink); }
.start {
  padding: clamp(85px, 11vw, 210px) 18px;
  text-align: center;
  color: var(--ko-paper);
  background: var(--ko-ink);
}
.start p { max-width: 37ch; margin: 16px auto 26px; }
.study-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(27px, 3vw, 80px) var(--ko-gutter);
  background: var(--ko-ink);
  color: var(--ko-paper);
}
.study-footer nav { display: flex; gap: clamp(16px, 3.9vw, 78px); font-size: 13px; }
.study-footer nav a { text-decoration: none; }
.study-footer nav a:hover { text-decoration: underline; }

.portfolio {
  --rail: 20%;
  --stage-gutter: 32px;
  --track-height: max(300px, min(calc(100svh - 250px), 65vw));
  min-height: 100svh;
  background: var(--ko-ink);
  color: var(--ko-paper);
}
.portfolio-rail {
  position: fixed;
  z-index: 3;
  inset: 0 auto 0 0;
  width: var(--rail);
  color: var(--ko-ink);
  background: var(--ko-earth);
  padding: 30px;
}
.portfolio-rail .wordmark { display: block; font-size: clamp(25px, 2.52vw, 58px); }
.portfolio-rail nav {
  display: grid;
  gap: 18px;
  margin: max(45px, 10.8svh) 0 0 clamp(6px, 2.15vw, 42px);
}
.portfolio-rail nav a {
  width: max-content;
  padding: 2px 0;
  text-decoration: none;
  font-size: clamp(13px, 1.5vw, 28px);
  text-transform: uppercase;
}
.portfolio-rail nav a:hover { text-decoration: underline; text-underline-offset: 7px; }
.portfolio-main { position: relative; margin-left: var(--rail); }
.portfolio-catalog { padding: 40px var(--stage-gutter) 18px; }
.portfolio-editions { display: flex; gap: 25px; }
.portfolio-edition { width: min(calc((100svh - 120px) * .5625), calc((100% - 25px) / 2)); margin: 0; }
.portfolio-edition > div { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #241e19; }
.portfolio-edition img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 57% 50%;
  filter: brightness(.83);
  transition: filter .25s, scale .45s;
}
.portfolio-edition:nth-child(2) img { object-position: 49% 39%; }
.portfolio-edition:focus-within img, .portfolio-edition:hover img { filter: brightness(1); scale: 1.015; }
.portfolio-edition figcaption { padding-top: 8px; color: #c1a083; font-size: 13px; }
.portfolio-view {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  min-width: 144px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #f9f4e8;
  border-radius: 15px;
  color: #fff9ef;
  background: #2e201641;
  font: 650 14px/1.15 var(--sans);
  text-transform: uppercase;
  text-decoration: none;
}
.portfolio-view:hover { background: var(--ko-paper); color: var(--ko-ink); }
.portfolio-archive {
  display: inline-block;
  margin-top: 20px;
  color: #d1b69d !important;
  font-size: 12px;
  text-underline-offset: 3px;
}
.portfolio-open { min-height: 100svh; padding-top: 120px; }
.portfolio-return {
  position: absolute;
  top: 32px;
  right: 7.3vw;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 123px;
  min-height: 51px;
  padding: 0 20px;
  border: 1px solid #f9f4e8;
  border-radius: 999px;
  color: var(--ko-paper);
  background: var(--ko-ink);
  font: 420 18px/1 var(--sans);
}
.portfolio-return:hover { color: var(--ko-ink); background: var(--ko-paper); }
.reel-strip {
  display: flex;
  align-items: flex-start;
  padding: 0 var(--stage-gutter) 8.5svh;
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  cursor: grab;
  animation: strip-in .4s ease both;
}
.reel-strip::-webkit-scrollbar { display: none; }
.reel-strip.dragging { cursor: grabbing; }
.reel-strip:focus-visible { outline-offset: -4px; }
@keyframes strip-in {
  from { clip-path: inset(0 100% 0 0); opacity: .3; }
  to { clip-path: inset(0); opacity: 1; }
}
.reel-frame {
  --aspect: 1.333333;
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--track-height) * var(--aspect));
  height: var(--track-height);
  margin: 0;
  user-select: none;
}
.reel-frame + .reel-frame { margin-left: -49px; }
.reel-frame:nth-child(even) { --aspect: 1.3; margin-top: 50px; }
.reel-frame:nth-child(3n) { --aspect: 1.12; margin-top: 2svh; }
.reel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 8px 20px #1e160f55;
  pointer-events: none;
}
@media (max-width: 760px) {
  :root { --ko-gutter: 11px; }
  .site-head { inset: 16px 8px auto 10px; }
  .wordmark { font-size: 22px; }
  .head-actions .menu-button { width: 76px; height: 29px; }
  .head-actions .rotate-button { display: none; }
  .opening { height: max(600px, 100svh); }
  .opening-field { inset: 55% 0 0; }
  .opening-field img:first-child { object-position: 100% 55%; scale: 1.19; transform-origin: right center; }
  .opening-field img + img { object-position: 50% 56%; }
  .opening h1 {
    top: 58px;
    left: 9px;
    max-width: calc(100% - 18px);
    font-size: clamp(26px, 7.6vw, 36px);
  }
  .opening-card { top: 27.7%; width: min(calc(100% - 56px), 450px); padding: 18px 16px 9px; }
  .opening-photo { aspect-ratio: 1.11; }
  .opening-view { min-height: 33px; font-size: 15px; bottom: 8%; }
  .opening-caption { min-height: 132px; padding: 19px 6px 8px; }
  .opening-caption .opening-name { font-size: clamp(21px, 5.8vw, 30px); }
  .opening-caption p:last-child { max-width: 30ch; font-size: 12px; }
  .scroll-cue { display: none; }
  .wood-intro { gap: 130px; }
  .wood-intro h2, .tech-title h2, .start h2 { font-size: clamp(30px, 7.8vw, 41px); }
  .wood-window { width: 155px; }
  .material-scenes { padding: 57px 0 26px; }
  .material-scenes h2 { font-size: clamp(32px, 8.45vw, 62px); }
  .material-scenes h2 { margin-left: 8vw; margin-bottom: 25px; }
  .material-row { padding-left: 8vw; gap: 5vw; }
  .material-row img { width: 30vw; height: 30vw; }
  .material-row img:nth-child(2) { width: 32vw; height: 23vw; }
  .material-row img:nth-child(4) { width: 39vw; height: 28vw; }
  .material-row img:nth-child(5) { width: 26vw; height: 35vw; }
  .material-row + .material-row { margin-top: 27px; margin-left: -4vw; }
  .material-row:nth-child(2) img { width: 37vw; height: 24vw; }
  .material-row:nth-child(2) img:nth-child(3) { width: 33vw; height: 43vw; }
  .ribbon-credit { margin-left: 8vw; }
  .material-outro { padding-left: 8vw; }
  .site-proof { grid-template-columns: 1fr 1fr; padding-inline: 14px; }
  .site-proof-copy { grid-column: 1 / -1; }
  .site-proof p { max-width: 34ch; }
  .tech-choices { grid-template-columns: 1fr; }
  .technologies { padding: 74px 14px; }
  .tech-choices article { min-height: 480px; }
  .study-footer { padding-inline: 14px; flex-wrap: wrap; }
  .portfolio { --track-height: min(53.3svh, 550px); --rail-height: min(20svh, 168px); }
  .portfolio-rail {
    display: flex;
    flex-flow: column-reverse;
    justify-content: space-between;
    align-items: center;
    inset: auto 0 0;
    height: var(--rail-height);
    width: auto;
    padding: clamp(15px, 3.25svh, 38px) 12px clamp(14px, 3.7svh, 42px);
  }
  .portfolio-rail .wordmark { font-size: clamp(29px, 8.3vw, 47px); }
  .portfolio-rail nav { display: flex; gap: clamp(15px, 6vw, 35px); margin: 0; }
  .portfolio-rail nav a { font-size: clamp(13px, 4.6vw, 22px); }
  .portfolio-rail nav a::after {
    content: "";
    display: block;
    margin: 3px auto 0;
    width: 19px;
    border-bottom: 2px solid var(--ko-ink);
  }
  .portfolio-main { margin: 0; }
  .portfolio-catalog { padding: 33px 20px calc(var(--rail-height) + 18px); }
  .portfolio-editions { gap: 12px; }
  .portfolio-edition { width: calc((100% - 12px) / 2); }
  .portfolio-edition figcaption { font-size: 12px; line-height: 1.28; }
  .portfolio-view {
    width: min(140px, calc(100% - 6px));
    min-width: 0;
    min-height: 43px;
    padding: 0 5px;
    font-size: 12px;
    white-space: nowrap;
  }
  .portfolio-open { padding-top: 13.27svh; min-height: calc(100svh - var(--rail-height)); }
  .portfolio-return { left: 60%; right: auto; top: clamp(14px, 3.8svh, 32px); transform: translateX(-50%); }
  .reel-strip { padding-bottom: 3svh; }
  .reel-frame + .reel-frame { margin-left: -36px; }
  .reel-frame:nth-child(even) { margin-top: 3svh; }
}
@media (max-width: 360px) {
  .opening h1 { font-size: clamp(23px, 7.5vw, 26px); }
}
@media (max-width: 760px) and (orientation: landscape) {
  .portfolio-rail { height: 78px; padding: 7px 12px; }
  .portfolio-return { min-height: 38px; top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

