:root {
  color-scheme: dark;
  font-family: var(--portfolio-font);
  color: #f5f3ee;
  background: #111417;
  --ink: #f5f3ee;
  --accent: #e3eab6;
  --muted: #bdbfbc;
  --line: rgb(255 255 255 / 20%);
  --brand-size: clamp(23px, 2.4vw, 40px);
  --gutter: clamp(24px, 4vw, 64px);
  --top: max(24px, env(safe-area-inset-top));
  --bottom: max(26px, env(safe-area-inset-bottom));
  --footer-spire-rise: clamp(9px, .8vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { overscroll-behavior: none; cursor: default; -webkit-user-select: none; user-select: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a[href], button:enabled { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

.portfolio { position: fixed; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.portfolio-empty { display: grid; min-height: 75dvh; margin: 0; padding: var(--gutter); place-items: center; text-align: center; color: var(--muted); }
.hero { height: 100vh; height: 100dvh; }
.viewer {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111417;
  touch-action: pan-y;
  touch-action: pan-y pinch-zoom;
}
.hero-scene { position: absolute; inset: 0; background: #111417; }
.outgoing-scene { pointer-events: none; }

.stage { position: absolute; inset: 0; isolation: isolate; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .stage { transform: translateY(var(--hero-parallax, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: --portfolio-scroll) and (animation-range: 0px 100svh) {
    .portfolio { scroll-timeline: --portfolio-scroll block; }
    .stage {
      animation: cover-parallax linear both;
      animation-timeline: --portfolio-scroll;
      animation-range: 0px 100dvh;
    }
  }
}
@keyframes cover-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(var(--parallax-distance, 27%)); }
}
.viewer.is-idle .edge-shade { opacity: .72; }
.chrome { transition: opacity 350ms ease; }
.viewer.is-idle .transient { opacity: 0; }
.viewer.is-idle .transient:not(:focus-within) { pointer-events: none; }
.viewer.is-idle .gallery-controls:not(:focus-within) button { pointer-events: none; }
.viewer.is-idle .transient:focus-within { opacity: 1; }

.masthead {
  position: fixed;
  z-index: 2;
  inset: var(--top) var(--gutter) auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}
.masthead :is(button, a) { pointer-events: auto; }
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--top)) calc(-1 * var(--gutter)) -12px;
  background: linear-gradient(#111417 calc(100% - 18px), transparent);
  opacity: var(--masthead-shade, 0);
  pointer-events: none;
}
.brand-identity {
  display: grid;
  grid-template-columns: max-content;
  justify-items: start;
  gap: 3px;
  padding-top: max(0px, calc((44px - 1.05 * var(--brand-size)) / 2));
}
.brand, .series-link, .languages button {
  background: transparent;
  border: 0;
  padding: 0;
}
.brand {
  appearance: none;
  display: block;
  margin: 0;
  font-size: var(--brand-size);
  font-weight: var(--portfolio-title-weight);
  line-height: 1.05;
  letter-spacing: var(--portfolio-title-tracking);
  text-align: left;
}
.brand-name {
  display: block;
  /* Align the visible edge of the large M with the smaller text below. */
  transform: translateX(-.07em);
}
.brand-specialty {
  width: 0;
  min-width: 100%;
  color: #dbddd7;
  font-size: clamp(9px, .78vw, 11px);
  line-height: 1.18;
  text-wrap: balance;
}
.masthead-actions, .languages { display: flex; align-items: center; }
.masthead-actions { gap: clamp(12px, 2.4vw, 34px); }
.languages { gap: 8px; }
.languages button {
  min-width: 30px;
  min-height: 40px;
  color: #f5f3ee;
  opacity: .62;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
}
.languages button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.languages button:hover { opacity: 1; }

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(13 16 18 / 27%);
  flex: none;
}
.icon-button:hover:not(:disabled) { background: rgb(255 255 255 / 16%); }
.icon-button:disabled { opacity: .33; cursor: default; }
.menu-icon, .close-icon { position: relative; width: 16px; height: 14px; }
.menu-icon::before, .menu-icon::after, .close-icon::before, .close-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1px;
  left: 0;
  background: currentColor;
}
.menu-icon::before { top: 4px; }
.menu-icon::after { top: 9px; }
.close-icon::before { top: 6px; transform: rotate(45deg); }
.close-icon::after { top: 6px; transform: rotate(-45deg); }

.gallery-controls { position: absolute; inset: 50% 0 auto; pointer-events: none; }
.grid-controls { display: none; }
.series-link {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 44px;
  pointer-events: auto;
  padding: 8px 0;
  color: #fff;
  transform: translateY(-50%);
}
.series-link .arrow { width: 11px; height: 11px; border-width: 1.5px 1.5px 0 0; filter: drop-shadow(0 1px 3px #000); }
.series-previous { left: clamp(4px, 2vw, 30px); }
.series-next { right: clamp(4px, 2vw, 30px); }
.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  flex: none;
}
.arrow-left { transform: rotate(225deg); }
.arrow-up { transform: rotate(-45deg); }
.arrow-down { transform: rotate(135deg); }

.viewer-footer {
  position: absolute;
  inset: auto var(--gutter) var(--bottom);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  pointer-events: none;
}
.viewer-footer :is(button, a) { pointer-events: auto; }
.hero-social { grid-area: 1 / 3; display: none; justify-self: end; gap: 7px; }
.footer-social { display: flex; flex: none; gap: 7px; }
:is(.hero-social, .footer-social) .icon-button { width: 34px; height: 34px; background: rgb(13 16 18 / 60%); }
:is(.hero-social, .footer-social) .icon-button:hover { background: rgb(13 16 18 / 82%); }
:is(.hero-social, .footer-social) .social-mark { width: 17px; height: 17px; }
.section-arrow {
  grid-area: 1 / 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.section-arrow .arrow { width: 12px; height: 12px; border-width: 1.5px 1.5px 0 0; filter: drop-shadow(0 1px 3px #000); }
#viewer:focus, #grid-title:focus { outline: none; }
#open-grid .arrow { margin-top: -5px; }
.return-hero {
  display: none;
  position: fixed;
  z-index: 1;
  bottom: var(--bottom);
  left: 50%;
  transform: translateX(-50%);
}
.is-browsing-grid .return-hero { display: grid; }
.return-hero .arrow { margin-top: 5px; }
@media (prefers-reduced-motion: no-preference) {
  #open-grid .arrow { animation: scroll-cue 2.7s ease-in-out infinite; }
}
@keyframes scroll-cue {
  0%, 62%, 100% { opacity: .95; translate: 0 0; }
  78% { opacity: .5; translate: 0 4px; }
}

.polazov-lightbox {
  --pswp-bg: #0c1013;
  --pswp-icon-color: #f5f3ee;
  --lightbox-counter-bottom: max(14px, env(safe-area-inset-bottom));
  --lightbox-toolbar-gutter: var(--gutter);
}
.polazov-lightbox .pswp__top-bar { align-items: center; padding-inline: var(--lightbox-toolbar-gutter); }
.polazov-photo-link {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--lightbox-toolbar-gutter);
  transform: translateY(-50%);
}
.polazov-lightbox .polazov-copy-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--pswp-icon-color);
}
.polazov-copy-link svg { width: 22px; height: 22px; pointer-events: none; }
.polazov-copy-notice {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  gap: 7px;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171c20;
  color: var(--ink);
  font-size: 13px;
  pointer-events: none;
}
.polazov-copy-notice:has(output:empty) { opacity: 0; }
.polazov-copy-notice input {
  width: min(290px, 100%);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0c1013;
  color: inherit;
  font: inherit;
  user-select: text;
  pointer-events: auto;
}
.polazov-lightbox .pswp__counter {
  position: absolute;
  bottom: var(--lightbox-counter-bottom);
  left: 50%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  pointer-events: none;
}
.polazov-lightbox .pswp__button--close .pswp__icn { display: none; }
.polazov-lightbox .pswp__button--close::before,
.polazov-lightbox .pswp__button--close::after {
  position: absolute;
  top: calc(50% + 6px);
  left: 50%;
  width: clamp(25px, 1.65vw, 33px);
  height: 1.5px;
  background: var(--pswp-icon-color);
  transform: translate(-50%, -50%) rotate(45deg);
  content: "";
  pointer-events: none;
}
.polazov-lightbox .pswp__button--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.polazov-lightbox .pswp__item { height: calc(100% - 70px); }
.polazov-lightbox .pswp__item .pswp__img { cursor: default; }
.polazov-lightbox[data-photo-cursor="zoom"] .pswp__item .pswp__img { cursor: zoom-in; }
.polazov-lightbox[data-photo-cursor="pan"] .pswp__item .pswp__img { cursor: grab; }
.polazov-lightbox[data-photo-cursor="pan"] .pswp__item .pswp__img:active { cursor: grabbing; }
.polazov-lightbox:not(.is-lightbox-ready) :is(.pswp__button, .polazov-zoom) { visibility: hidden; }
.polazov-lightbox .pswp__button--arrow--prev, .polazov-lightbox .pswp__button--arrow--next { width: 48px; }
.polazov-lightbox .pswp__button--arrow .pswp__icn { width: 46px; }
@media (min-width: 721px) and (any-pointer: fine) {
  .polazov-lightbox { --arrow-edge-offset: clamp(56px, 4.25vw, 88px); }
  .polazov-lightbox .pswp__button--arrow {
    --arrow-zone-start: 62px;
    --arrow-marker-offset: var(--arrow-edge-offset);
    top: var(--arrow-zone-start);
    bottom: 0;
    height: auto;
    margin: 0;
    overflow: visible;
    opacity: 1;
  }
  .polazov-lightbox .pswp__button--arrow--prev { width: var(--previous-photo-zone, 52px); }
  .polazov-lightbox .pswp__button--arrow--next { width: var(--next-photo-zone, 52px); }
  .polazov-lightbox .pswp__button--arrow:focus-visible {
    outline: 1px solid var(--pswp-icon-color);
    outline-offset: -6px;
  }
  .polazov-lightbox .pswp__button--arrow .pswp__icn { display: none; }
  .polazov-lightbox .pswp__button--arrow::before,
  .polazov-lightbox .pswp__button--arrow::after {
    position: absolute;
    top: calc(50% - var(--arrow-zone-start) / 2);
    content: "";
  }
  /* Keep the glyph clickable even when the photo fills most of the viewport. */
  .polazov-lightbox .pswp__button--arrow::before { width: 44px; height: 44px; }
  .polazov-lightbox .pswp__button--arrow::after {
    width: clamp(16px, 1vw, 24px);
    height: clamp(16px, 1vw, 24px);
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    color: var(--pswp-icon-color);
    filter: drop-shadow(0 1px 3px #000);
    pointer-events: none;
  }
  .polazov-lightbox .pswp__button--arrow--prev::before,
  .polazov-lightbox .pswp__button--arrow--prev::after {
    left: var(--arrow-marker-offset);
    translate: -50% -50%;
  }
  .polazov-lightbox .pswp__button--arrow--next::before,
  .polazov-lightbox .pswp__button--arrow--next::after {
    right: var(--arrow-marker-offset);
    translate: 50% -50%;
  }
  .polazov-lightbox .pswp__button--arrow--prev::after { rotate: 225deg; }
  .polazov-lightbox .pswp__button--arrow--next::after { rotate: 45deg; }
  .polazov-lightbox.pswp--zoomed-in .pswp__button--arrow {
    --arrow-zone-start: 0px;
    --arrow-marker-offset: 22px;
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 76px;
    margin-top: -38px;
  }
  .polazov-lightbox.pswp--zoomed-in .pswp__button--arrow--prev { left: calc(var(--arrow-edge-offset) - 22px); }
  .polazov-lightbox.pswp--zoomed-in .pswp__button--arrow--next { right: calc(var(--arrow-edge-offset) - 22px); }
  .polazov-lightbox.pswp--zoomed-in .pswp__button--arrow::before { display: none; }
  .polazov-lightbox.pswp--zoomed-in .pswp__button--arrow::after { width: 14px; height: 14px; }
}
.polazov-zoom {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
}
.polazov-zoom button {
  min-width: 42px;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.polazov-zoom .polazov-fullscreen { font-size: 20px; }
.polazov-zoom button:hover:not(:disabled) { color: #c4d7e3; }
.polazov-zoom button:disabled { opacity: .4; }
.polazov-zoom-value { min-width: 48px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.polazov-lightbox .polazov-lightbox-caption {
  position: absolute;
  inset: 0 auto calc(var(--lightbox-counter-bottom) + 28px) 50%;
  display: grid;
  grid-template-rows: minmax(0, var(--photo-caption-offset, 0px)) auto;
  align-content: start;
  width: max-content;
  max-width: min(540px, calc(100% - 2 * var(--gutter)));
  margin: 0;
  transform: translateX(-50%);
  color: #e0e0d9;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.polazov-lightbox-caption::before { content: ""; }
@media (max-width: 480px) {
  .polazov-lightbox { --lightbox-toolbar-gutter: max(8px, env(safe-area-inset-right), env(safe-area-inset-left)); }
  .polazov-lightbox .pswp__button--close { width: 44px; margin: 0; }
  .polazov-zoom { gap: 0; }
  .polazov-zoom button { min-width: 34px; padding-inline: 5px; }
  .polazov-zoom-value { min-width: 38px; }
}

.menu {
  --accent: var(--ink);
  --menu-inset: 32px;
  --menu-fade: 250ms ease-in-out;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: clamp(340px, 43vw, 475px);
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  color: var(--ink);
  background: #15181a;
  border: 0;
  opacity: 0;
  transition: opacity var(--menu-fade), display var(--menu-fade) allow-discrete, overlay var(--menu-fade) allow-discrete;
}
.menu[open] { display: flex; flex-direction: column; opacity: 1; }
.menu::backdrop {
  background: rgb(7 9 11 / 25%);
  opacity: 0;
  transition: opacity var(--menu-fade), display var(--menu-fade) allow-discrete, overlay var(--menu-fade) allow-discrete;
}
.menu[open]::backdrop { opacity: 1; }
@starting-style {
  .menu[open], .menu[open]::backdrop { opacity: 0; }
}
.menu-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  padding: var(--top) var(--gutter) 0 var(--menu-inset);
  gap: 10px;
}
.menu-head h1 { margin: 0; font-size: clamp(23px, 2.65vw, 30px); line-height: 1; font-weight: 640; letter-spacing: -.055em; }
.menu-head .languages { justify-self: center; gap: 6px; }
.menu-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 6vh, 58px) var(--menu-inset) max(32px, var(--bottom));
}
.menu-about {
  margin: 0;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.025em;
}
.menu-about a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.menu-body > section { margin-top: clamp(18px, 3vh, 28px); }
.section-label { margin: 15px 0 13px; color: var(--muted); font-size: 11px; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; }
.menu .section-label { margin: 0 0 9px; color: #a5a7a8; }
.archive h3 { margin: 0; font-weight: 400; }
.archive a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  color: #c5c7c8;
  background: none;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: color 180ms ease;
}
.archive a[aria-current="true"]::before {
  content: "";
  position: absolute;
  inset: 50% auto auto -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
@media (hover: hover) and (pointer: fine) {
  .menu-about a:hover { color: #c5c7c8; }
  .archive a:hover { color: var(--ink); }
}
.menu-body > .contact { margin-top: auto; padding-top: 32px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.contact-actions, .footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.contact-social { display: flex; gap: 7px; }
.contact-links a { color: inherit; text-underline-offset: 4px; font-size: 14px; }
.contact-links .icon-button { text-decoration: none; width: 40px; height: 40px; }
.contact-links a:hover { color: var(--accent); }
.social-mark { display: block; width: 20px; height: 20px; background: currentColor; mask: var(--social-mark) center / contain no-repeat; }

.gallery-grid {
  --cover-overlap: clamp(16px, 1.6vw, 24px);
  --gallery-radius: clamp(26px, 3.2vw, 44px);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--top) + 70px) var(--gutter) max(54px, var(--bottom));
  overflow-x: clip;
  background: #111417;
  border-radius: var(--gallery-radius) var(--gallery-radius) 0 0 / var(--cover-overlap) var(--cover-overlap) 0 0;
  touch-action: pan-y pinch-zoom;
}
.grid-stage { position: relative; overflow: clip; overflow-clip-margin: 8px; }
.grid-scene { position: relative; background: #111417; }
.grid-scene.is-pending { position: absolute; inset: 0 0 auto; opacity: 0; pointer-events: none; }
.gallery-grid h1 { margin: 0 0 clamp(25px, 4vw, 52px); font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; }
.photo-grid { display: grid; gap: clamp(6px, .65vw, 12px); }
.photo-row { display: grid; gap: inherit; }
.photo-tile { position: relative; display: block; align-self: start; min-width: 0; text-decoration: none; }
.photo-tile-image { display: block; overflow: hidden; background: #1c2023; }
.photo-tile-image img { display: block; width: 100%; height: auto; transition: transform 300ms ease; }
.photo-tile-caption {
  position: absolute;
  inset: auto auto 7px 7px;
  width: max-content;
  max-width: calc(100% - 14px);
  padding: 3px 6px;
  background: rgb(10 13 18 / 75%);
  color: var(--ink);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .photo-tile:hover img { transform: scale(1.03); }
}

.portfolio-footer { position: relative; display: flow-root; }
.footer-skyline-frame {
  --skyline-height: max(112px, 11.46vw);
  /* The top 22 of 242 SVG units let the antenna rise above the footer. */
  --antenna-space: calc(var(--skyline-height) * .1);
  --clock-unit: calc((var(--skyline-height) + var(--antenna-space)) / 242);
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * (var(--footer-spire-rise) + var(--antenna-space)));
}
.footer-skyline-frame picture { display: contents; }
.footer-skyline {
  display: block;
  width: 100%;
  height: calc(var(--skyline-height) + var(--antenna-space));
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}
.footer-clock {
  position: absolute;
  left: 50%;
  /* The clock is horizontally centered and 118 SVG units above the bottom. */
  bottom: calc(118 * var(--clock-unit));
  width: calc(24 * var(--clock-unit));
  height: calc(24 * var(--clock-unit));
  transform: translate(-50%, 50%);
  pointer-events: none;
}
.footer-tree {
  position: absolute;
  left: calc(50% - 87 * var(--clock-unit));
  bottom: calc(14 * var(--clock-unit));
  width: calc(70 * var(--clock-unit));
  height: calc(102 * var(--clock-unit));
  transform: translateX(-50%);
  pointer-events: none;
}
.footer-sky-light {
  --sky-body-size: clamp(13px, 1.35vw, 23px);
  --sky-tower-offset: max(28px, 102 * var(--clock-unit));
  position: absolute;
  z-index: -1;
  bottom: calc(200 * var(--clock-unit));
  width: var(--sky-body-size);
  height: var(--sky-body-size);
  border-radius: 50%;
  transform: translate(-50%, 50%);
  opacity: .82;
  pointer-events: none;
}
.footer-sky-light[data-body="sun"] {
  left: calc(50% - var(--sky-tower-offset));
  background: #f5d394;
  box-shadow: 0 0 12px rgb(247 200 120 / 45%);
}
.footer-sky-light[data-body="moon"] {
  left: calc(50% + var(--sky-tower-offset));
  background: #dbe8f4;
  mask-image: radial-gradient(circle at 70% 33%, transparent 44%, #000 48%);
}
.footer-sky-light[data-appearing] { animation: footer-sky-appear 1400ms ease-out; }
@keyframes footer-sky-appear {
  from { opacity: 0; }
  to { opacity: .82; }
}
.footer-weather {
  --precipitation-travel: calc(var(--skyline-height) + var(--antenna-space) + 36px);
  position: absolute;
  inset: -14px 0 -5px;
  overflow: hidden;
  pointer-events: none;
  animation: footer-weather-in 1400ms ease-out both;
}
.footer-weather-particle {
  position: absolute;
  top: -13px;
  left: var(--particle-x);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: #e5eff7;
  animation: footer-precipitation var(--particle-duration) linear var(--particle-delay) infinite both;
}
.footer-weather[data-paused],
.footer-weather[data-paused] .footer-weather-particle {
  animation-play-state: paused;
}
.footer-weather-particle[data-rain] {
  width: 1px;
  height: calc(5px + var(--particle-size) * 3);
  border-radius: 2px;
  background: linear-gradient(transparent, #cee7f6);
  rotate: -13deg;
}
.footer-weather-credit {
  position: absolute;
  right: var(--gutter);
  bottom: 5px;
  color: #dde6ee;
  font-size: 10px;
  text-decoration: none;
  text-shadow: 0 1px 3px #111417;
}
.footer-weather-credit:hover { text-decoration: underline; }
.weather-preview-controls {
  position: fixed;
  z-index: 3;
  inset: calc(var(--top) + 58px) var(--gutter) auto;
  max-width: 720px;
  margin-inline: auto;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: #171c20;
  font-size: 13px;
}
.weather-preview-controls nav { display: flex; flex-wrap: wrap; gap: 6px 13px; }
.weather-preview-controls a { color: var(--muted); text-underline-offset: 3px; }
.weather-preview-controls a[aria-current="true"] { color: var(--ink); font-weight: 650; }
.weather-preview-controls p { margin: 8px 0 0; line-height: 1.35; }
@keyframes footer-weather-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes footer-precipitation {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  13%, 82% { opacity: var(--particle-opacity); }
  52% { transform: translate3d(calc(var(--particle-drift) * var(--particle-midway)), calc(var(--precipitation-travel) * .52), 0); }
  100% { opacity: 0; transform: translate3d(var(--particle-drift), var(--precipitation-travel), 0); }
}
.portfolio-footer-content {
  --footer-credit-gap: 7px;
  --footer-credit-height: 14px;
  --footer-padding-bottom: var(--bottom);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(34px, auto) auto;
  align-items: center;
  gap: var(--footer-credit-gap) 16px;
  padding: 10px var(--gutter) var(--footer-padding-bottom);
  background: #171c20;
}
.footer-credit {
  grid-column: 1 / -1;
  justify-self: center;
  color: #91989a;
  font-size: 11px;
  line-height: var(--footer-credit-height);
  text-decoration: none;
}
.footer-credit:hover, .footer-credit:focus-visible { color: var(--ink); }
.footer-actions a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-actions a:hover, .contact-actions .contact-form-link { color: var(--ink); }
.contact-actions .email, .footer-actions .email { overflow-wrap: anywhere; }

.contact-page { position: fixed; inset: 0; overflow: auto; overscroll-behavior: contain; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-content: center;
  gap: clamp(28px, 6vw, 82px);
  max-width: 1000px;
  min-height: 100dvh;
  margin: auto;
  padding: calc(var(--top) + 76px) var(--gutter) max(30px, var(--bottom));
}
#contact-title { margin: 0 0 26px; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.05em; }
#contact-title:focus { outline: none; }
#contact-form { display: grid; justify-items: start; gap: 16px; }
#contact-form > label { display: grid; gap: 7px; width: 100%; color: var(--muted); font-size: 14px; }
#contact-form > label > :is(input, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #1a1e22;
  font: inherit;
  font-size: 16px;
  user-select: text;
  -webkit-user-select: text;
}
#contact-form > label > textarea { resize: vertical; }
#contact-verification { display: block; width: min(100%, 360px); }
#contact-https { color: var(--ink); font-size: 14px; }
#contact-form > label > :is(input, textarea):focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.contact-submit { min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--ink); color: #111417; }
.contact-submit:disabled { opacity: .62; }
#contact-status { margin: 0; color: var(--muted); font-size: 14px; }
#contact-status:empty { display: none; }
#contact-status[data-error="true"] { color: #ffc1b9; }
.contact-alternatives { align-self: start; margin-top: 76px; padding-top: 4px; border-top: 1px solid var(--line); }
.contact-alternatives .contact-links { display: grid; justify-items: start; }

.about {
  position: fixed;
  inset: 0;
  overflow: auto;
  background: #111417;
  overscroll-behavior: contain;
}
.about-layout {
  display: grid;
  grid-template-areas: "copy image" "contact image";
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-content: center;
  gap: 24px clamp(32px, 6vw, 88px);
  max-width: 1060px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: calc(var(--top) + 64px) var(--gutter) max(40px, var(--bottom));
}
.about figure { grid-area: image; align-self: center; margin: 0; }
.about img { display: block; width: 100%; height: auto; }
.about-copy { grid-area: copy; align-self: end; max-width: 43ch; }
.about-copy p { margin: 0; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.45; letter-spacing: -.02em; }
.about-copy p + p { margin-top: 12px; color: var(--muted); }
.about-layout .contact { grid-area: contact; align-self: start; max-width: 43ch; padding-top: 3px; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 721px) {
  .portfolio {
    /* The desktop SVG has 196 units of headroom in its 3050-unit-wide view. */
    --desktop-antenna-space: 6.4262vw;
  }
  .footer-skyline-frame {
    --skyline-height: max(70.4px, 7.2131vw);
    --antenna-space: var(--desktop-antenna-space);
    --clock-unit: calc(100vw / 3050);
  }
  .footer-skyline { object-fit: fill; }
  .is-browsing-grid .grid-controls { position: fixed; z-index: 1; display: block; }
  .grid-controls .series-previous { left: 4px; }
  .grid-controls .series-next { right: 4px; }
  .gallery-grid {
    padding-inline: max(56px, var(--gutter));
    padding-bottom: max(54px, calc(var(--desktop-antenna-space) + var(--footer-spire-rise) + 16px));
  }
  .grid-stage { max-width: calc(1760px - 2 * var(--gutter)); margin-inline: auto; }
  .portfolio-footer-content { --footer-padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .footer-social {
    position: fixed;
    z-index: 1;
    right: var(--gutter);
    bottom: calc(var(--footer-padding-bottom) + var(--footer-credit-height) + var(--footer-credit-gap));
  }
  .series-link .arrow { width: 13px; height: 13px; }
  .series-link:hover .arrow, .series-link:focus-visible .arrow { filter: drop-shadow(0 0 6px rgb(0 0 0 / 85%)); }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-grid::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--cover-overlap) * var(--gallery-overlap-progress, 0)) 0 auto;
    height: calc(2 * var(--cover-overlap));
    background: inherit;
    border-radius: inherit;
    pointer-events: none;
  }
}

@media (max-width: 720px) {
  :root { --gutter: max(19px, env(safe-area-inset-left), env(safe-area-inset-right)); --top: max(17px, env(safe-area-inset-top)); --bottom: max(17px, env(safe-area-inset-bottom)); }
  .hero { height: 100svh; }
  .viewer { height: 100%; }
  .hero-social { display: flex; }
  .stage { --parallax-distance: 12%; animation-range: 0px 100svh; }
  .menu { --menu-inset: var(--gutter); width: 100%; }
  .archive a { min-height: 44px; }
  .gallery-grid { display: flex; flex-direction: column; padding-bottom: calc(14px + var(--footer-spire-rise)); }
  .return-hero {
    position: sticky;
    left: auto;
    margin: auto auto 0;
    transform: none;
  }
  .about-layout { grid-template-areas: "copy" "image" "contact"; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; max-width: 460px; padding-top: calc(var(--top) + 67px); padding-bottom: max(28px, var(--bottom)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); align-content: start; max-width: 500px; }
  .contact-alternatives { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .menu::backdrop { animation-duration: 0s !important; transition-duration: 0s !important; }
}
