:root { color-scheme: light; background:#fdf3e1; color:#1f1f1e; font-family:Inter, Arial, sans-serif; }
*, *::before, *::after { box-sizing:border-box; }
body, p, h1, h2 { margin:0; }
body { min-width:300px; }
a { color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible { outline:3px solid #9b3f46; outline-offset:5px; }
button { font:inherit; }
main { position:relative; width:100%; }
.site-credit {
  padding:14px 16px 20px;
  color:#746d66;
  font-size:clamp(.625rem, .3rem + 1.4vw, .8125rem);
  line-height:1.5;
  text-align:center;
}
#artboard { position:relative; width:1440px; height:calc(9245px + var(--folder-extra, 0px)); overflow:clip; isolation:isolate; background:#fdf3e1; zoom:var(--art-scale, 1); }
#artboard [data-node-id="120:10"] { pointer-events:none; }
.layer-60 { pointer-events:none; }
.hero-background { position:absolute; inset:0 0 auto; height:950px; pointer-events:none; }
#artboard [data-node-id="58:391"] a { white-space:nowrap; word-break:normal; }
#artboard [data-node-id="120:21"] { display:grid; place-items:center; translate:none; left:62px; top:212px; width:417px; height:38px; line-height:1; white-space:nowrap; }
#artboard [data-node-id="120:8"] { white-space:normal; }
a[data-node-id="62:46"] { display:block; white-space:nowrap; }
a[data-node-id="62:46"]::before { content:""; position:absolute; left:-21px; top:7px; width:364px; height:93px; border-radius:50%; }
#artboard :is([data-node-id="71:65"],[data-node-id="71:70"]) { line-height:27.2px; white-space:normal; word-break:normal; }
#artboard [data-node-id="71:70"] p + p { margin-top:27.2px; }
#artboard [data-node-id="71:65"] p { white-space:nowrap; }
a[data-node-id="62:46"]:hover { color:#842522; }
#showreel { scroll-margin-top:12px; }
#contact { scroll-margin-top:14px; }
#about { scroll-margin-top:26px; }
#work { display:contents; }
#work-anchor { position:absolute; top:5710px; inset-inline:0; height:1px; }
@media (prefers-reduced-motion:no-preference) { html { scroll-behavior:smooth; } }
.folder-runway { position:absolute; left:50%; translate:-50% 0; pointer-events:none; z-index:2; overflow-anchor:none; }
.folder-stage {
  position:sticky;
  top:calc(50vh - var(--folder-center, 0px));
  top:calc(50svh - var(--folder-center, 0px));
  overflow-x:clip;
  background:#fdf3e1;
}
.folder-stage::before {
  content:"";
  position:absolute;
  inset:var(--folder-window-top, 0px) 0 var(--folder-window-bottom, 0px);
  background:#fdf3e1;
  opacity:var(--folder-backdrop, 0);
  pointer-events:none;
}
.folder-stage.folders-held::before { pointer-events:auto; }
.folder-decoration {
  position:absolute;
  top:calc(-64px * var(--art-scale, 1));
  left:50%;
  translate:-50% 0;
  width:100%;
  height:calc(100% + 292px * var(--art-scale, 1));
  pointer-events:none;
}
.folder-window {
  position:absolute;
  inset:0;
  clip-path:inset(var(--folder-window-top, 0px) 0 var(--folder-window-bottom, 0px));
}
.folder-layer, .photo-layer { position:absolute; inset:0; pointer-events:none; }
.folder-layer { left:50%; right:auto; width:1440px; transform-origin:0 0; visibility:hidden; }
.after-folders { position:absolute; inset:var(--folder-extra, 0px) 0 auto; height:9245px; pointer-events:none; }
.after-folders a[href], .after-folders button { pointer-events:auto; }
.photo-layer { transform:rotate(var(--swing,0deg)); }
.gallery-hint { z-index:1; pointer-events:none; }
.photo-layer > div, .folder-layer > div { pointer-events:none; }
.photo-hit, .folder-hit, .showreel-hit, .contact-hit { position:absolute; border:0; background:none; cursor:pointer; pointer-events:auto; display:block; padding:0; }
.photo-hit:hover { cursor:pointer; }
.photo-hit:focus-visible { outline-color:#fff4dc; }
.showreel-hit { inset:0; }
.showreel-hit .play { display:grid; place-items:center; position:absolute; inset:50% auto auto 50%; translate:-50% -50%; width:92px; height:92px; border:1px solid #fff9; border-radius:50%; background:#20080bbb; color:white; font-size:37px; opacity:0; transition:opacity .18s; }
.showreel-hit:hover .play, .showreel-hit:focus-visible .play { opacity:1; }
.contact-hit { border-radius:48px; }
.contact-hit[aria-disabled="true"] { cursor:default; pointer-events:none; }
.contact-glow {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  fill:none;
  pointer-events:none;
  opacity:0;
  transition:opacity .32s ease;
}
.contact-glow-track { stroke:#ffc9c5; stroke-width:1.6; }
.contact-glow-stroke {
  stroke:#fff5e9;
  stroke-width:3;
  stroke-linecap:round;
  stroke-dasharray:16 84;
  filter:drop-shadow(0 0 4px #ffe1db) drop-shadow(0 0 9px #ff8b9d);
  animation:contact-glow-lap 2.6s linear infinite paused;
}
@keyframes contact-glow-lap { to { stroke-dashoffset:-100; } }
@media (hover:hover) and (pointer:fine) {
  .contact-hit[href]:hover .contact-glow { opacity:1; }
  .contact-hit[href]:hover .contact-glow-stroke { animation-play-state:running; }
}
.contact-row { position:absolute; inset:0; pointer-events:none; }
.contact-row > p {
  left:236px; width:399px; text-align:center;
  font-size:max(52px, calc(13px / var(--art-scale, 1)));
}
body:has(dialog[open]) { overflow:hidden; }
dialog { color:#fdf3e1; margin:auto; border:0; padding:0; background:transparent; width:min(1080px,calc(100% - 44px)); max-width:none; max-height:calc(100% - 36px); overflow:visible; }
dialog::backdrop { background:#251014b0; backdrop-filter:blur(13px); }
dialog[open] { animation:appear .26s ease both; }
.project-window { position:relative; border-radius:12px; background:#210e10; box-shadow:0 25px 90px #0008; }
.close-project { z-index:1; position:absolute; right:12px; top:12px; width:44px; height:44px; border-radius:50%; border:1px solid #fff8; background:#230f11df; color:#fff8eb; font-size:30px; line-height:1; cursor:pointer; }
.player { position:relative; width:100%; aspect-ratio:16/9; max-height:72dvh; background:#150c0d; border-radius:12px 12px 0 0; overflow:hidden; }
.player > :is(img, video, iframe) { width:100%; height:100%; border:0; display:block; object-fit:contain; }
.video-play { position:absolute; inset:50% auto auto 50%; translate:-50% -50%; display:grid; place-items:center; width:64px; height:64px; border:1px solid #fff9; border-radius:50%; background:#20080bde; color:white; font-size:25px; cursor:pointer; }
.video-play:hover { background:#842522; }
.project-caption { padding:13px 18px 16px; }
.project-caption h2 { font-size:17px; line-height:1.3; }
.project-caption p { font-size:14px; margin-top:5px; color:#e3c8bc; }
.project-caption a:not([hidden]) { display:inline-block; margin-top:6px; font-size:14px; text-decoration:underline; text-underline-offset:3px; }
.preloader { display:none; position:fixed; inset:0; z-index:10; background:#731a20; color:#fffced; place-items:center; text-align:center; }
.loading .preloader { display:grid; }
.loading { overflow:hidden; scrollbar-gutter:stable; }
.preloader img { display:block; width:min(240px,68vw); height:auto; aspect-ratio:8/7; }
.preloader span { display:block; margin-top:8px; text-transform:uppercase; font-size:10px; letter-spacing:.2em; }
.preloader progress { display:block; width:100%; height:5px; margin-top:12px; accent-color:#fffced; }
@keyframes appear { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:scale(1); } }
@media(max-width:720px) {
  #artboard [data-node-id="58:388"] { left:42px; width:1356px; padding:0; height:155px; top:0; }
  #artboard [data-node-id="58:391"] { width:100%; justify-content:space-between; gap:25px; }
  #artboard :is([data-node-id="58:393"],[data-node-id="58:395"],[data-node-id="58:397"],[data-node-id="58:399"]) { font-size:42px; line-height:1.2; width:auto; }
  #artboard [data-node-id="120:10"] { display:none; }
  #artboard [data-node-id="120:8"] { font-size:46px; line-height:1.22; width:715px; }
  .showreel-hit .play { opacity:1; }
  dialog { width:calc(100% - 22px); }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:0s !important; transition-duration:0s !important; }
  .contact-glow-stroke { animation:none; }
}

/* The gallery controls sit beside the artwork, centered on the player. */
dialog.gallery-player {
  --arrow-size: 60px;
  --arrow-gap: 14px;
  width: min(1080px, 128dvh, calc(100% - 2 * (var(--arrow-size) + var(--arrow-gap) + 10px)));
}
dialog.portrait-player { width: min(442px, calc((100dvh - 116px) * 0.5625), calc(100% - 2 * (var(--arrow-size, 0px) + var(--arrow-gap, 0px) + 10px))); }
.portrait-player .player { aspect-ratio: 9 / 16; max-height: calc(100dvh - 116px); }
dialog.gallery-cover { width: min(640px, calc(100dvh - 110px), calc(100% - 2 * (var(--arrow-size) + var(--arrow-gap) + 10px))); }
.gallery-cover .player { aspect-ratio: 1; max-height: calc(100dvh - 110px); }
.player-stage { position: relative; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
  width: var(--arrow-size);
  height: var(--arrow-size);
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #fffdf6;
  border-radius: 50%;
  background: #2a14153b;
  color: #fffdf6;
  cursor: pointer;
  transition: box-shadow .28s ease, background-color .28s ease;
}
.gallery-arrow[hidden] { display: none; }
.gallery-arrow--previous { right: calc(100% + var(--arrow-gap)); }
.gallery-arrow--next { left: calc(100% + var(--arrow-gap)); }
.gallery-arrow::before {
  content: "";
  width: 31%;
  aspect-ratio: 1;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: translateX(-16%) rotate(45deg);
  transition: filter .28s ease;
}
.gallery-arrow--previous::before { transform: translateX(16%) rotate(-135deg); }
.gallery-arrow:is(:hover, :focus-visible) {
  background-color: #fffdf627;
  outline: none;
  box-shadow: 0 0 5px #fff, 0 0 19px #fffbe797, inset 0 0 9px #fff9;
}
.gallery-arrow:is(:hover, :focus-visible)::before { filter: drop-shadow(0 0 4px #fff); }

/* Keep each link within its own envelope in the shared artwork. */
.envelope {
  --card-lift:14px;
  position:absolute;
  top:calc(90px - var(--card-lift));
  left:var(--envelope-left);
  width:var(--envelope-width);
  height:calc(653px + var(--card-lift));
  overflow:clip;
  border-radius:22px;
  cursor:pointer;
}
.envelope .layer-4 {
  inset:calc(var(--card-lift) - 90px) auto auto calc(-1 * var(--envelope-left));
  width:var(--envelope-art-width);
  height:var(--envelope-art-height);
}
.envelope-card {
  translate:0 var(--card-offset, 0px);
  transition:translate .34s cubic-bezier(.25,.72,.38,1);
}
.envelope:focus-visible { --card-offset:calc(-1 * var(--card-lift)); }
.envelope--left { --envelope-left:98px; --envelope-width:460px; }
.envelope--middle { --envelope-left:571px; --envelope-width:455px; --arrival-delay:150ms; }
.envelope--right { --envelope-left:1041px; --envelope-width:460px; --arrival-delay:300ms; }

@media (hover:hover) and (pointer:fine) {
  .envelope:hover { --card-offset:calc(-1 * var(--card-lift)); }
}
@media (prefers-reduced-motion:reduce) {
  .envelope .envelope-card { translate:none; }
}

@media (prefers-reduced-motion: no-preference) {
  .envelopes-animated .envelope { opacity: 0; }
  .envelopes-visible .envelope {
    animation: envelope-arrive .84s cubic-bezier(.21,.65,.31,1)
      var(--arrival-delay, 0ms) both;
  }
  .envelopes-animated:focus-within .envelope { opacity:1; animation:none; }
  @keyframes envelope-arrive {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .contacts-animated .contact-row { opacity:0; }
  .contacts-visible .contact-row {
    animation: contact-arrive .8s cubic-bezier(.21,.65,.31,1)
      var(--arrival-delay) both;
  }
  .contacts-animated:focus-within .contact-row { opacity:1; animation:none; }
  @keyframes contact-arrive {
    from { opacity:0; transform:translateX(-120px); }
    to { opacity:1; transform:translateX(0); }
  }
}

@media (max-width: 640px) {
  dialog.gallery-player { --arrow-size: 36px; --arrow-gap: 7px; }
}
