@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #f4f2ee;
  --muted: #aaa8a5;
  --rule: #292929;
  --accent: #8e7aff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --header-height: 72px;
  --shell-bar-height: 56px;
  --shell-gutter: clamp(16px, 1.67vw, 32px);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f2f0eb;
  --text: #1b1a19;
  --muted: #5b5855;
  --rule: #c6c3bd;
  --accent: #5542bc;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); }
button, input, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed; z-index: 101; top: .5rem; left: .5rem; padding: .6rem 1rem;
  color: #141414; background: #fff; border-radius: .25rem;
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }
.shell-fallback {
  position: absolute; z-index: 1; inset: 0 0 auto;
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .8rem var(--shell-gutter); color: #fff; background: #161616;
}
#site-shell:not([data-ready]), #site-shell[data-ready] + .shell-fallback { display: none; }
html.shell-locked { overflow: hidden; }
html.shell-locked body { overscroll-behavior: none; }

#site-shell { position: relative; z-index: 100; color: var(--text); }
body[data-page="home"] #site-shell:not([data-layer]) { color: #f9f7f4; }
#site-shell[data-layer] {
  --bg: #fff;
  --text: #191918;
  --muted: #595a5c;
  --accent: #5445b5;
  --menu-surface: #eff1f4;
  color-scheme: light;
}
html[data-theme="light"] #site-shell[data-layer] {
  --bg: #151515;
  --text: #f6f5f2;
  --muted: #b8b8b5;
  --accent: #b7a7ff;
  --menu-surface: #29292c;
  color-scheme: dark;
}
body[data-page="home"] #site-shell:not([data-layer]) .shell-appearance { display: none; }
.shell-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%); width: 100%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: var(--shell-bar-height);
  padding: 0 var(--shell-gutter);
  border-radius: 0;
  pointer-events: none;
  transition: width .48s cubic-bezier(.22,.75,.2,1), top .42s, padding .42s, height .42s, background-color .3s, border-radius .42s;
}
#site-shell[data-scrolled]:not([data-layer]) .shell-header {
  top: 12px;
  width: min(645px, calc(100% - 2 * var(--shell-gutter)));
  padding-inline: 14px;
  height: 52px;
  border-radius: 40px;
  background-color: rgb(52 52 52 / .90);
  color: #fff;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  pointer-events: auto;
}
#site-shell[data-scrolled]:not([data-layer]) .shell-brand img { filter: invert(1); }
#site-shell[data-scrolled]:not([data-layer]) .shell-btn {
  background: transparent;
}
#site-shell[data-scrolled]:not([data-layer]) .shell-btn:hover { background: #ffffff24; }
.shell-header > *, .shell-header-end > * { pointer-events: auto; }
.shell-header-end { justify-self: end; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.shell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 15px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 0;
  border-radius: 32px;
  color: inherit;
  font: 400 14px/1.18 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, border-color .18s ease;
}
.shell-btn:hover, .shell-btn:focus-visible { background: color-mix(in srgb, currentColor 18%, transparent); border-color: currentColor; }
.shell-menu-toggle { justify-self: start; min-width: 64px; gap: 5px; }
.shell-menu-glyph { display: none; width: 9px; height: 9px; position: relative; }
.shell-menu-toggle[aria-expanded="true"] .shell-menu-glyph { display: block; }
.shell-menu-glyph::before, .shell-menu-glyph::after {
  position: absolute; left: 0; top: 4px; content: ""; width: 10px; height: 1px; background: currentColor;
  transform: rotate(45deg);
}
.shell-menu-glyph::after { transform: rotate(-45deg); }
.shell-brand { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: inherit; }
.shell-brand img { display: block; width: 108px; height: auto; filter: invert(1); }
html[data-theme="light"] .shell-brand img, #site-shell[data-layer] .shell-brand img { filter: none; }
html[data-theme="light"] #site-shell[data-layer] .shell-brand img { filter: invert(1); }
html[data-theme="light"] body[data-page="home"] #site-shell:not([data-layer]) .shell-brand img { filter: invert(1); }
body[data-film-menu] #site-shell[data-film-ink="scene"] .shell-header,
html[data-theme="light"] body[data-film-menu] #site-shell[data-film-ink="paper"] .shell-header { color: #fff; }
body[data-film-menu] #site-shell[data-film-ink="paper"] .shell-header { color: #191918; }
body[data-film-menu] #site-shell[data-film-ink="paper"] .shell-brand img { filter: none; }
body[data-film-menu] #site-shell[data-film-ink="scene"] .shell-brand img,
html[data-theme="light"] body[data-film-menu] #site-shell[data-film-ink="paper"] .shell-brand img { filter: invert(1); }
.shell-contact-toggle, .shell-appearance { width: 28px; min-height: 28px; padding: 0; }
.shell-contact-toggle[aria-expanded="false"] .shell-close-icon,
.shell-contact-toggle[aria-expanded="true"] .shell-mail-icon { display: none; }
.shell-envelope { width: 13px; height: 12px; display: block; }

.shell-panel[hidden] { display: none; }
.shell-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);

}
#shell-studio { animation: shell-open .22s ease-out both; }
#shell-menu { --menu-header-space: 0px; }
body:not([data-page="home"]) #shell-menu {
  --menu-header-space: var(--shell-bar-height);
  top: var(--menu-header-space);
  /* Extend the panel surface behind the fixed header. */
  box-shadow: 0 calc(0px - var(--menu-header-space)) 0 var(--bg);
}
body[data-page="home"] #shell-menu { background: transparent; }
.shell-menu-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30vw) minmax(0, 1fr);
  align-items: center;
  gap: var(--shell-gutter);
  padding: calc(80px - var(--menu-header-space)) var(--shell-gutter) 80px;
}
.shell-menu-directory { min-width: 0; }
@media (min-width: 801px) and (min-height: 710px) {
  .shell-menu-directory { align-self: start; margin-top: calc(19.5dvh - 80px); }
}
#shell-menu .shell-menu-directory, #shell-menu .shell-projects {
  animation: shell-open .48s cubic-bezier(.2,.65,.25,1) .16s both;
}
#shell-menu.is-departing { pointer-events: none; }
#shell-menu.is-departing .shell-menu-directory,
#shell-menu.is-departing .shell-projects { animation: shell-dismiss .13s ease-in both; }
.shell-menu-links, .shell-project-chips { display: flex; align-items: flex-start; flex-direction: column; }
.shell-menu-links { gap: 4px; }
.shell-major-link {
  color: inherit;
  font: 400 clamp(24px, 1.74vw, 32px)/1.17 var(--serif);
  letter-spacing: -.035em;
  text-decoration: none;
  padding: 1px 0;
  transition: color .16s ease;
}
button.shell-major-link { border: 0; background: transparent; cursor: pointer; }
.shell-major-link:hover, .shell-major-link:focus-visible, .shell-major-link[aria-current="page"] {
  text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px;
}
.shell-archive-links { margin-top: clamp(28px, 4.9vh, 50px); }
.shell-label { font: 400 13px/1.3 var(--sans); color: var(--muted); margin: 0 0 10px; }
.shell-project-chips { gap: 4px; }
.shell-project-chip {
  padding: 7px 16px; border-radius: 30px; color: inherit; background: color-mix(in srgb, currentColor 7%, transparent);
  text-decoration: none; font: 400 15px/1.1 var(--sans);
}
.shell-project-chip:hover, .shell-project-chip:focus-visible { color: var(--bg); background: var(--text); }
.shell-menu-poster { width: 100%; height: max(350px, calc(100dvh - 160px)); border-radius: 7px; overflow: hidden; }
body:not([data-page="home"]) #shell-menu:not([hidden]) .shell-menu-poster {
  background: #050509 url("assets/emerald-orbit-smooth/desktop.webp") center / cover no-repeat;
}
@media (max-width: 60.375rem) and (orientation: portrait) {
  body:not([data-page="home"]) #shell-menu:not([hidden]) .shell-menu-poster {
    background-image: url("assets/emerald-orbit-smooth/portrait.webp");
  }
}
body[data-page="home"] .home .home__film {
  width: auto; height: auto; overflow: hidden;
  transition: inset .73s cubic-bezier(.66,.02,.19,1), border-radius .73s;
}
body[data-film-menu] .home { background: #fff; }
html[data-theme="light"] body[data-film-menu] .home { background: #151515; }
body[data-film-menu="inside"] .home .home__film {
  inset: var(--film-top, 0px) var(--film-right, 0px) var(--film-bottom, 0px) var(--film-left, 0px);
  border-radius: 7px;
}
body[data-film-menu] .home > :not(.home__film) {
  opacity: 0; visibility: hidden; pointer-events: none;
}
body[data-film-menu="returning"] .home > :not(.home__film, .home__project-media, .home__project-detail, .home__shade) {
  visibility: visible;
  animation: shell-return .22s ease-out .48s both;
}
.shell-projects { min-width: 0; width: min(100%, 225px); justify-self: end; }
.shell-art-list { display: grid; gap: 5px; }
.shell-project-card {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--menu-surface); color: var(--text); text-decoration: none; border-radius: 6px;
}
.shell-project-card span { font: 400 13px/1.15 var(--sans); letter-spacing: -.012em; }
.shell-card-note { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.shell-project-card small { font: 400 13px/1.2 var(--sans); }
.shell-project-card:hover > span, .shell-project-card:focus-visible > span { text-decoration: underline; text-underline-offset: .18em; }
.shell-project-card img { display: block; width: 100%; height: clamp(70px, 10vh, 110px); object-fit: cover; }
.shell-card-note img { width: 48px; height: 48px; }
.shell-project-card:nth-child(n+6) { display: none; }
.shell-appearance-glyph { width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.shell-studio-layout {
  min-height: 100%; padding: calc(var(--header-height) + 50px) var(--shell-gutter) 50px;
  display: grid; align-content: center; grid-template-columns: repeat(12, 1fr); gap: 18px;
}
.shell-studio-copy { grid-column: 3 / 11; max-width: 750px; }
.shell-studio-copy h2 { font: 400 clamp(56px, 7vw, 112px)/1 var(--serif); letter-spacing: -.042em; margin: 0 0 32px; }
.shell-studio-copy p { font: 400 clamp(18px, 2.4vw, 32px)/1.17 var(--sans); max-width: 27em; letter-spacing: -.035em; margin: 0 0 28px; }
.shell-studio-copy a { text-underline-offset: .22em; font-size: 16px; }
.shell-studio-actions { display: flex; flex-wrap: wrap; gap: 12px 32px; }

@keyframes shell-dismiss { to { opacity: 0; transform: translateY(5px); } }
@keyframes shell-return { from { opacity: 0; } to { opacity: 1; } }
@keyframes shell-open {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 801px) and (max-height: 590px) {
  .shell-menu-layout { padding-block: calc(65px - var(--menu-header-space)) 25px; }
  .shell-menu-poster { height: max(340px, calc(100dvh - 90px)); }
  .shell-archive-links { margin-top: 16px; }
  .shell-project-chip { padding-block: 5px; }
}
@media (max-width: 800px) {
  :root { --header-height: 60px; --shell-bar-height: 48px; }
  body[data-film-menu="inside"] #shell-menu .shell-menu-directory { animation-delay: .49s; animation-duration: .28s; }
  body[data-film-menu="inside"] #shell-menu .shell-projects { animation-delay: .28s; animation-duration: .32s; }
  #site-shell[data-scrolled]:not([data-layer]) .shell-header { height: 48px; padding-inline: 16px; }
  .shell-menu-toggle { min-width: 67px; min-height: 30px; }
  .shell-project-card .shell-card-note { grid-template-columns: 46px 1fr; }
  .shell-project-card .shell-card-note img { width: 46px; height: 46px; flex: none; }
  .shell-brand img { width: 90px; }
  .shell-menu-layout {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 16px;
  }
  .shell-menu-poster { order: -1; height: clamp(140px, 30dvh, 340px); min-height: 0; border-radius: 5px; object-position: 50% 43%; }
  .shell-menu-directory { margin: 23px 0 30px; }
  .shell-menu-links { gap: 4px; }
  .shell-major-link { font-size: 26px; }
  .shell-archive-links { display: none; }
  .shell-projects { margin-top: auto; width: auto; margin-right: calc(-1 * var(--shell-gutter)); }
  .shell-art-list { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--shell-gutter) 0 0; }
  .shell-project-card, .shell-project-card:nth-child(n+4) {
    display: flex; flex: 0 0 min(225px, 76vw); height: 104px; padding: 11px 13px;
    gap: 6px; scroll-snap-align: start;
  }
  .shell-project-card img { flex: 1; height: 0; min-height: 0; }
  .shell-studio-layout { display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home .home__film, body[data-film-menu] .home > *, #site-shell *, #site-shell *::before, #site-shell *::after { animation: none !important; transition: none !important; }
}
