:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #eeeae2;
  background: #020302;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020302;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 39%, rgba(0, 0, 0, .18) 72%, rgba(0, 0, 0, .63) 116%),
    linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 20%, transparent 77%, rgba(0, 0, 0, .34));
  mix-blend-mode: multiply;
}

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #020302;
  will-change: filter;
}

main {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

button {
  pointer-events: auto;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  min-height: 44px;
}

button:focus-visible {
  outline: 1px solid #d7c8ae;
  outline-offset: 6px;
}

button:disabled {
  cursor: default;
  opacity: .28;
}

#title {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(94%, 1100px);
  opacity: 0;
  will-change: opacity, filter;
}

#title h1 {
  font-size: clamp(2.25rem, 5.7vw, 5.5rem);
  letter-spacing: .165em;
  font-weight: 300;
  margin: 0 0 2.35rem;
  padding-left: .165em;
  line-height: 1.08;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .72);
}

#enter {
  position: relative;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .42em;
  padding: 14px 16px 16px 21px;
  min-width: 152px;
  color: #ddd8cf;
  text-shadow: 0 2px 15px #000;
}

#enter::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 17px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b9ad99 18%, #b9ad99 82%, transparent);
  transform: scaleX(.58);
  transition: transform .45s ease, opacity .45s ease;
  opacity: .72;
}

#enter:hover::after,
#enter:focus-visible::after { transform: scaleX(1); opacity: 1; }

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #020302;
  pointer-events: auto;
}

#loading > span {
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .36em;
  padding-left: .36em;
}

#loading p {
  font-size: .75rem;
  letter-spacing: .08em;
  color: #777970;
  margin: 27px 0 15px;
}

progress {
  width: 142px;
  height: 1px;
  appearance: none;
  border: 0;
  background: #20231f;
}

progress::-webkit-progress-bar { background: #20231f; }
progress::-webkit-progress-value { background: #aaa18f; }
progress::-moz-progress-bar { background: #aaa18f; }

#portfolio-ui {
  position: absolute;
  inset: 0;
}

.portfolio-header {
  position: absolute;
  z-index: 6;
  top: max(22px, env(safe-area-inset-top));
  left: 3.2vw;
  right: 3.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a9a79f;
  font-size: .7rem;
  letter-spacing: .16em;
  opacity: .88;
}

#brand-home {
  min-width: 44px;
  padding: 0;
  text-align: left;
  font-size: .8rem;
  letter-spacing: .18em;
  color: #e2dbcd;
}

.scene-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .85s ease, transform .85s ease, visibility 0s linear .85s;
}

.scene-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.scene-panel h2 {
  margin: .65rem 0 1rem;
  color: #e5dfd4;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.035em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .72);
}

.scene-panel h2 em {
  color: #ad9a7d;
  font-style: italic;
  font-weight: 400;
}

.scene-panel p {
  margin: .7rem 0;
  color: #c4c1b9;
  font-size: 1rem;
  line-height: 1.58;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
}

.eyebrow {
  display: block;
  color: #918c82;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .19em;
}

.education-copy,
.profile-copy,
.experience-heading,
.experience-summary,
.stories-heading,
.products-heading,
.product-detail,
.method-heading {
  position: absolute;
}

.education-copy {
  left: 5vw;
  bottom: 13.5vh;
  width: min(30rem, 35vw);
}

.education-copy .meta {
  color: #9e9484;
  font-size: .8rem;
  letter-spacing: .15em;
}

.profile-copy {
  top: 17vh;
  right: 4.5vw;
  width: min(30rem, 31vw);
}

.disciplines {
  margin-top: 1.4rem;
  color: #9ba9a3;
  font-size: .76rem;
  letter-spacing: .14em;
}

.experience-heading { left: 4.8vw; top: 16vh; }
.experience-summary {
  right: 4.8vw;
  bottom: 17vh;
  width: min(25rem, 28vw);
  padding-left: 1.15rem;
  border-left: 1px solid rgba(184, 174, 154, .42);
}

.experience-summary h3,
.product-detail h3 {
  margin: .35rem 0 .3rem;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .02em;
}

.experience-summary .role,
.product-detail .product-eyebrow {
  color: #a7a092;
  font-size: .8rem;
  letter-spacing: .13em;
}

.experience-summary p,
.product-detail p { font-size: .92rem; }

.book-controls {
  position: absolute;
  left: 50%;
  bottom: 12.5vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.35rem;
  pointer-events: auto;
}

.book-controls button {
  color: #d0cabd;
  font-size: .78rem;
  letter-spacing: .08em;
}

#book-count { color: #88877f; font-size: .7rem; letter-spacing: .17em; }

.stories-heading { left: 5vw; top: 20vh; width: min(31rem, 34vw); }
.stories-foot {
  position: absolute;
  right: 5vw;
  bottom: 15vh;
  display: flex;
  gap: 1.25rem;
  color: #9fa69e;
  font-size: .7rem;
  letter-spacing: .12em;
}

.products-heading { left: 5vw; top: 19vh; }
.product-detail {
  right: 5vw;
  bottom: 21vh;
  width: min(27rem, 31vw);
}

.product-selector {
  position: absolute;
  left: 50%;
  bottom: 13.5vh;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
  padding: .25rem;
  pointer-events: auto;
}

.product-selector button {
  position: relative;
  padding: .65rem .85rem;
  color: #898a84;
  font-size: .72rem;
  letter-spacing: .1em;
  transition: color .3s ease;
}

.product-selector button::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .35rem;
  height: 1px;
  transform: scaleX(0);
  background: #b8ab92;
  transition: transform .35s ease;
}

.product-selector button.active { color: #e0ddd5; }
.product-selector button.active::after { transform: scaleX(1); }

.method-heading { left: 5vw; top: 17vh; width: min(34rem, 37vw); }
.method-foot {
  position: absolute;
  right: 5vw;
  bottom: 15vh;
  display: grid;
  gap: .5rem;
  text-align: right;
}

.method-foot strong,
.method-foot span {
  font-size: .74rem;
  letter-spacing: .14em;
  font-weight: 500;
}

.method-foot span { color: #8f918b; }

#navigation {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(21px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  white-space: nowrap;
  pointer-events: auto;
}

#navigation button {
  position: relative;
  min-height: 42px;
  padding: 0 .88rem;
  color: #878981;
  font-size: .7rem;
  letter-spacing: .08em;
  transition: color .3s ease;
}

#navigation button + button::before {
  content: "·";
  position: absolute;
  left: -.13rem;
  color: #5d605b;
}

#navigation button.active { color: #eee9df; }

#controls {
  position: absolute;
  z-index: 10;
  top: max(18px, env(safe-area-inset-top));
  right: 3.2vw;
  display: flex;
  gap: 1rem;
}

#controls button {
  color: #92938d;
  font-size: .7rem;
  letter-spacing: .08em;
  text-shadow: 0 1px 14px #000;
}

#portfolio-ui:not([hidden]) ~ #controls { top: auto; right: auto; left: 3.2vw; bottom: max(21px, env(safe-area-inset-bottom)); }

#error {
  position: absolute;
  inset: 0;
  background: #050705;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
  pointer-events: auto;
}

#error h2 { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
#error p { max-width: 430px; line-height: 1.65; color: #adb1a7; }
#retry { border-bottom: 1px solid #9a9486; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }
.reduced #world { transition: none !important; }

@media (max-width: 760px) {
  body::after {
    background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(0, 0, 0, .27) 73%, rgba(0, 0, 0, .68) 114%);
  }

  #title h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.9rem);
    letter-spacing: .11em;
    padding-left: .11em;
    margin-bottom: 1.9rem;
  }

  #title { top: 46%; }
  #enter { font-size: .6875rem; }
  .portfolio-header { left: 18px; right: 18px; font-size: .625rem; }
  .portfolio-header span { letter-spacing: .1em; }

  .scene-panel h2 {
    font-size: clamp(2rem, 11vw, 3.35rem);
    line-height: .96;
  }

  .scene-panel p { font-size: .9rem; line-height: 1.48; }
  .eyebrow { font-size: .65rem; }

  .education-copy {
    left: 20px;
    top: 14vh;
    bottom: auto;
    width: min(78vw, 22rem);
  }

  .education-copy p:last-child { max-width: 76vw; }
  .education-copy h2 { margin-bottom: .55rem; }

  .profile-copy {
    top: auto;
    bottom: 13.5vh;
    right: 20px;
    width: 78vw;
    text-align: right;
  }

  .profile-copy h2 { font-size: 2.25rem; }
  .profile-copy p { margin: .45rem 0; }
  .disciplines { font-size: .62rem; }

  .experience-heading,
  .stories-heading,
  .products-heading,
  .method-heading {
    left: 20px;
    top: 13vh;
    width: 82vw;
  }

  .experience-heading h2,
  .products-heading h2 { font-size: 2.5rem; }

  .experience-summary {
    right: 20px;
    bottom: 20vh;
    width: 77vw;
    text-align: right;
    padding-left: 0;
    padding-right: .9rem;
    border-left: 0;
    border-right: 1px solid rgba(184, 174, 154, .42);
  }

  .experience-summary p { display: none; }
  .experience-summary h3 { font-size: 1.2rem; }
  .book-controls { bottom: 13.3vh; gap: .7rem; }
  .book-controls button span { display: none; }

  .stories-heading p,
  .method-heading p { max-width: 90%; }
  .stories-foot {
    left: 20px;
    right: 20px;
    bottom: 15vh;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    font-size: .62rem;
  }

  .product-detail {
    left: 20px;
    right: auto;
    bottom: 19vh;
    width: 82vw;
  }

  .product-detail p { font-size: .86rem; }
  .product-selector { bottom: 12.7vh; width: 100%; justify-content: center; }
  .product-selector button { padding: .55rem .48rem; font-size: .62rem; }

  .method-foot {
    left: 20px;
    right: 20px;
    bottom: 15vh;
    text-align: left;
  }

  .method-foot strong,
  .method-foot span { font-size: .63rem; }

  #navigation {
    left: 0;
    right: 0;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #navigation::-webkit-scrollbar { display: none; }
  #navigation button { padding: 0 .62rem; font-size: .64rem; }

  #controls { right: 18px; }
  #portfolio-ui:not([hidden]) ~ #controls {
    left: auto;
    right: 15px;
    bottom: auto;
    top: max(52px, calc(env(safe-area-inset-top) + 35px));
  }
  #portfolio-ui:not([hidden]) ~ #controls button { font-size: .6rem; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .education-copy { bottom: 15vh; }
  .profile-copy { top: 13vh; }
  .scene-panel p { font-size: .9rem; }
  .book-controls, .product-selector { bottom: 13.5vh; }
}
