html, body { background: #dededb; }

@font-face {
  font-family: Him Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #dededb;
  --sheet: #efeeeb;
  --ink: #151515;
  --muted: #555550;
  --line: #24242338;
  --accent: #44463e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Him Inter", Inter, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.1vw, 6.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); font: 1rem/1.55 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { max-width: 100%; }
:is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { color: var(--paper); background: var(--ink); }

.page-inset {
  width: 100%;
  max-width: 114rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 21;
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.mast {
  position: relative;
  min-height: 7.75rem;
  padding-block: .625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mast::after {
  position: absolute;
  inset: auto var(--gutter) 0;
  content: "";
  border-bottom: 1px solid var(--line);
}
.brand {
  min-width: 0;
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.brand img {
  display: block;
  width: clamp(9rem, 11.2vw, 10.5rem);
  max-width: none;
  flex: 0 0 auto;
  height: auto;
  margin-inline-start: -1.55rem;
  object-fit: contain;
}
.mast-nav { display: flex; flex: 0 0 auto; align-items: center; gap: clamp(1rem, 4vw, 3.2rem); }
.mast-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; white-space: nowrap; }
.mast-nav a:hover { text-decoration: underline; text-underline-offset: .32em; }

.threshold { --him-threshold-progress: 0; }
.threshold__stage { position: relative; isolation: isolate; min-height: clamp(36rem, 83svh, 54rem); }
.threshold__intro {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.05rem, 5vh, 4.35rem) 1.65rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.4rem;
}
.threshold__discipline {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 525;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.threshold__title {
  display: flex;
  flex-wrap: wrap;
  column-gap: .2em;
  margin: 0;
  font-size: clamp(3.8rem, 8.55vw, 9rem);
  line-height: 1.03;
  letter-spacing: -.091em;
  font-weight: 650;
}
.threshold__mask {
  display: inline-block;
  overflow: clip;
  padding: .045em .11em .15em 0;
  margin: -.045em -.11em -.15em 0;
}
.threshold__mask > span { display: block; white-space: nowrap; }
.threshold__mask--light { font-weight: 450; color: #383836; }
.threshold__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  flex-shrink: 0;
  margin-bottom: .18rem;
  padding: .65rem 1.1rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: .94rem;
  font-weight: 560;
  transition: color 240ms ease, background-color 240ms ease;
}
.threshold__action:hover { color: var(--ink); background: var(--paper); }
.threshold__frame {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(clamp(11.8rem, 31svh, 17.5rem) * (1 - var(--him-threshold-progress)));
  inset-block-end: calc(1rem * (1 - var(--him-threshold-progress)));
  inset-inline: calc(var(--gutter) * (1 - var(--him-threshold-progress)));
  overflow: hidden;
  margin: 0;
  background: #797267;
}
.threshold__depth { position: absolute; inset: 0; }
.threshold__depth img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% calc(55% - 8% * var(--him-threshold-progress));
  transform: scale(calc(1.055 - .055 * var(--him-threshold-progress)));
}
.threshold__frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(transparent, #17120ed9);
}
.threshold__caption {
  position: absolute;
  z-index: 2;
  inset: auto clamp(1rem, 2.8vw, 3rem) clamp(.85rem, 2.6vw, 2.4rem);
  color: #fff;
}
.threshold__caption a { display: inline-grid; align-content: center; min-height: 44px; text-shadow: 0 1px 14px #0009; }
.threshold__caption a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.threshold__caption strong { font-size: clamp(1.03rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -.04em; }
.threshold__caption span { font-size: .88rem; color: #f1ece7; }
.threshold[data-him-threshold-motion]::after { content: ""; display: block; height: 52svh; pointer-events: none; }
.threshold[data-him-threshold-motion] .threshold__stage { position: sticky; top: 0; }
.threshold[data-him-threshold-motion] .threshold__intro {
  opacity: clamp(0, 1 - 5.8 * var(--him-threshold-progress), 1);
  transform: translateY(calc(-2rem * var(--him-threshold-progress)));
}
.threshold[data-him-threshold-motion] .threshold__intro:focus-within { opacity: 1; background: var(--paper); }

.layout:not(.has-selection) .stage { display: none; }
.layout:not(.has-selection) .catalog { padding-top: clamp(3.1rem, 6.5vw, 7rem); }
.layout.has-selection + .studio-footer { display: none; }

.studio-footer { background: #1c1c1a; color: var(--sheet); }
.studio-contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 9rem);
  padding-block: clamp(4.5rem, 9vw, 10rem) 4rem;
}
.studio-contact-copy h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(3.5rem, 6.9vw, 8rem);
  line-height: .98;
  font-weight: 545;
  letter-spacing: -.082em;
}
.studio-contact-copy > p { max-width: 37ch; margin: 0 0 1.5rem; color: #d9d7d2; }
.studio-contact-lines { margin: 2.2rem 0 0; max-width: 32rem; }
.studio-contact-lines div {
  display: grid;
  grid-template-columns: minmax(6ch, 6rem) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #eee8df40;
}
.studio-contact-lines dt { color: #c3c0bb; font-size: .875rem; }
.studio-contact-lines dd { margin: 0; overflow-wrap: anywhere; }
.studio-contact-lines a:hover, .studio-contact-art a:hover, .studio-contact-note a:hover { text-decoration: underline; text-underline-offset: .26em; }
.studio-contact-art { margin: 0; }
.studio-contact-art img { width: 100%; height: auto; display: block; aspect-ratio: 5/4; object-fit: cover; object-position: 61% center; }
.studio-contact-art figcaption { margin: .85rem 0 0; font-size: .875rem; color: #d9d7d2; }
.studio-contact-note { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; color: #d9d7d2; font-size: .92rem; }
.studio-contact-note > * { border-top: 1px solid #eee8df40; flex: 1; padding-block: 1.45rem 2rem; }
.studio-contact-note > a { text-align: right; }
.noscript { margin: 1rem var(--gutter); }
.noscript a { text-decoration: underline; }

@media (min-width: 56.25rem) and (max-height: 44rem) {
  .threshold__title { font-size: clamp(3.65rem, 7.5vw, 6.9rem); }
  .threshold__intro { padding-top: 1.8rem; }
}
@media (max-width: 56.1875rem) {
  .threshold__stage { min-height: 0; }
  .threshold__intro { padding-block: clamp(2.55rem, 9vw, 4.4rem) 2.1rem; }
  .threshold__title { font-size: clamp(3.1rem, 10vw, 6.3rem); }
  .threshold__frame { position: relative; inset: auto; margin-inline: var(--gutter); min-height: 17rem; aspect-ratio: 16/10; }
}
@media (max-width: 40rem) {
  .mast { min-height: 6rem; gap: .75rem; }
  .brand img { width: clamp(6.25rem, 24vw, 7.25rem); margin-inline-start: -1rem; }
  .mast-nav { gap: clamp(.6rem, 3vw, 1.3rem); }
  .mast-nav a { font-size: .875rem; }
  .threshold__intro { display: grid; gap: 1.45rem; padding-block: 2.7rem 1.9rem; }
  .threshold__discipline { font-size: .75rem; }
  .threshold__title { display: grid; font-size: clamp(2.9rem, 13.4vw, 5rem); }
  .threshold__action { justify-self: start; }
  .threshold__frame { width: 100%; margin-inline: 0; aspect-ratio: 1.13; }
  .studio-contact-main { grid-template-columns: 1fr; padding-block: 3.75rem 2rem; gap: 2.45rem; }
  .studio-contact-art img { aspect-ratio: 4/3; }
}
@media (max-width: 21rem) {
  .mast { gap: .5rem; }
  .mast-nav { gap: .75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .threshold__mask > span { animation: threshold-line .85s var(--ease) .08s both; }
  .threshold__mask--light > span { animation-delay: .23s; }
  .threshold__discipline, .threshold__action { animation: threshold-up .66s var(--ease) both; }
  .threshold__action { animation-delay: .35s; }
  .threshold__depth { animation: threshold-expose 1.12s var(--ease) both; }
}
@keyframes threshold-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes threshold-up { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: none; } }
@keyframes threshold-expose { from { opacity: .65; transform: scale(1.025); } to { opacity: 1; transform: none; } }

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