:root {
  color-scheme: dark;
  --background: #080808;
  --foreground: #f6f6f6;
  --muted: #c0c0c0;
  --gutter: clamp(12px, 2vw, 56px);
  --sidebar-width: clamp(105px, 15vw, 270px);
  --accent: #fff;
  --caption-font: 400 11px/1.4 ui-monospace, monospace;
  --gap: clamp(7px, .8vw, 18px);
}

* { box-sizing: border-box; }
body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 15px/1.4 Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 10px 14px;
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100dvh;
  padding: clamp(17px, 3.5vh, 44px) clamp(8px, 1.8vw, 34px);
  color: var(--foreground);
  background: #101010;
  border-right: 1px solid #2e2e2e;
}
.profile {
  display: grid;
  justify-items: start;
  gap: 11px;
}
.profile-photo {
  display: block;
  width: 51px;
  height: 51px;
  border-radius: 9px;
  border: 2px solid #f6f6f6;
  transform: rotate(-5deg);
  object-fit: cover;
}
.sidebar h1 {
  margin: 0;
  font: 650 clamp(23px, 2.65vw, 40px)/1.12 Inter, system-ui, sans-serif;
  letter-spacing: -.065em;
}
.profile-role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
@media (min-width: 1700px) {
  :root { --sidebar-width: clamp(270px, 17vw, 310px); }
  .profile {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .profile-photo { width: 44px; height: 44px; }
}
.sidebar nav {
  display: grid;
  justify-items: start;
  margin-top: clamp(38px, 10vh, 132px);
  font-size: 13px;
  text-transform: uppercase;
}
.sidebar nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 4px;
}
.sidebar nav a:hover { color: var(--accent); }
.sidebar a:focus-visible { outline-color: var(--accent); }
.sidebar-work { position: relative; }
.sidebar-work::after {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  border-bottom: 1px solid var(--accent);
  content: "";
}
.sidebar-links {
  display: grid;
  justify-items: start;
  width: 100%;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #2e2e2e;
}
.sidebar-links a span { color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(260px, 13.7vw, 480px)), 1fr));
  gap: var(--gap);
  padding: var(--gutter);
}
.photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: #141414;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo:hover { outline: 1px solid #f6f6f6; }

#viewer {
  border: 0;
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  background: transparent;
  color: var(--foreground);
}
#viewer::backdrop { background: #070707f5; }
.viewer-panel {
  display: grid;
  grid-template-columns: minmax(32px, 9vw) minmax(0, 1fr) minmax(32px, 9vw);
  justify-items: center;
  align-items: center;
  position: relative;
  padding: 52px 10px 15px;
}
.viewer-panel button {
  display: grid;
  place-items: center;
  width: clamp(32px, 5vw, 48px);
  aspect-ratio: 1;
  border: 1px solid #575757;
  border-radius: 50%;
  background: #19191b;
  font-size: 20px;
}
.viewer-panel button:hover { background: #353538; }
.viewer-panel .close { position: absolute; top: 4px; right: var(--gutter); }
.viewer-panel figure { width: 100%; margin: 0; }
.viewer-panel img {
  display: block;
  width: 100%;
  height: min(78vh, calc(100dvh - 112px));
  object-fit: contain;
}
.viewer-panel figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 720px) {
  :root { --gutter: 8px; --sidebar-width: clamp(98px, 23vw, 145px); }
  .profile { gap: 8px; }
  .profile-photo { width: 37px; height: 37px; }
  .profile-role { font-size: 11px; }
  .sidebar nav { font-size: 10px; }
  .sidebar nav a { gap: 4px; padding-block: 8px; }
  .sidebar-links { margin-top: 12px; padding-top: 8px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

.location {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.35;
}
.location-pin {
  flex: 0 0 11px;
  height: 11px;
  margin-top: 2px;
  border: 1px solid var(--accent);
  border-radius: 50% 50% 50% 1px;
  transform: rotate(-45deg);
}
.location-pin::after {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  margin: 3px auto;
  border-radius: 50%;
  background: var(--accent);
}
.location-city { color: var(--foreground); }
#atlanta-time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .9em;
  font-variant-numeric: tabular-nums;
}
#atlanta-time:empty { display: none; }

.sidebar { z-index: 1; }
.nav-item { position: relative; width: 100%; min-width: 0; }
.nav-preview {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: min(175px, calc(100vw - var(--sidebar-width) - 14px));
  min-height: 47px;
  padding: 8px 10px;
  border: 1px solid #414141;
  border-radius: 8px;
  background: #1b1b1b;
  box-shadow: 0 8px 24px #0007;
  color: var(--foreground);
  font-size: 12px;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-5px, -50%) scale(.94);
  transform-origin: left center;
  transition: transform .18s cubic-bezier(.2,.75,.25,1.35), opacity .13s ease;
}
.nav-item:not(.preview-dismissed) > a:focus-visible + .nav-preview {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
@media (hover: hover) {
  .nav-item:not(.preview-dismissed):hover .nav-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }
}
.nav-preview b, .nav-preview small { display: block; }
.nav-preview b { font-weight: 650; }
.nav-preview small { color: var(--muted); margin-top: 2px; font-size: 10px; }
.preview-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: #303030;
  color: var(--accent);
  font-weight: 700;
}
.preview-photo { background: #303030 url("photos/01-384.webp") 50% 40% / cover; }
.preview-network { background: #244760; color: #e8f6ff; font-size: 15px; }
.preview-document { font-size: 9px; }
@media (prefers-reduced-motion: reduce) {
  .nav-preview { transition: none; }
}

.experience { margin-top: 25px; }
.experience h2 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.work-strip { display: grid; gap: 4px; }
.work-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  background: #161616;
}
.work-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 4px;
  width: 3px;
  background: repeating-linear-gradient(to bottom, transparent 0 5px, #747474 5px 8px, transparent 8px 11px);
  pointer-events: none;
}
.work-frame summary {
  position: relative;
  padding: 7px 17px 7px 12px;
  list-style: none;
  cursor: pointer;
}
.work-frame summary::-webkit-details-marker { display: none; }
.work-frame summary::after {
  content: "+";
  position: absolute;
  top: 7px;
  right: 5px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}
.work-frame[open] summary::after { content: "−"; }
.work-frame:is(:hover, [open]) { border-color: #838383; }
.work-frame summary:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}
.work-date, .work-employer, .work-role { display: block; overflow-wrap: anywhere; }
.work-date {
  color: var(--accent);
  font: 400 9px/1.25 ui-monospace, monospace;
}
.work-employer { margin-top: 2px; font-size: 12px; font-weight: 650; line-height: 1.15; }
.work-role { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.work-frame p {
  margin: 0 8px 8px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
@media (prefers-reduced-motion: no-preference) {
  .work-frame[open] p { animation: reveal-work-detail .18s ease-out; }
  @keyframes reveal-work-detail {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.sidebar nav { margin-top: 19px; }
@media (max-width: 720px) {
  .sidebar { position: relative; }
  .experience { margin-top: 17px; }
  .experience h2 { font-size: 9px; letter-spacing: .015em; }
  .work-frame summary { padding: 6px 11px 6px 9px; }
  .work-frame::before { left: 2px; width: 2px; }
  .work-frame summary::after { right: 3px; font-size: 9px; }
  .work-employer { font-size: 10px; }
  .work-role, .work-date { font-size: 9px; }
  .work-frame p { margin-left: 9px; font-size: 9px; }
}
@media (max-height: 760px) {
  .sidebar { position: relative; }
}

.site-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  padding: 16px var(--gutter);
  border-top: 1px solid #2e2e2e;
  color: var(--muted);
  font: var(--caption-font);
}
.footer-heart { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.shot-for {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin: 0 var(--gutter);
  padding: 20px 0 26px;
  border-top: 1px solid #2e2e2e;
}
.shot-for h2 {
  margin: 0;
  color: var(--muted);
  font: var(--caption-font);
}
.school-list {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.school + .school { margin-left: -6px; }
.school-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 2px solid var(--background);
  border-radius: 50%;
  background: #242424;
  transition: transform .15s ease, background .15s ease;
}
.school-badge img {
  display: block;
  width: 63%;
  height: 63%;
  object-fit: contain;
}
.school-badge:is(:hover, :focus-visible) {
  z-index: 1;
  background: #363636;
  transform: translateY(-3px);
}
.school-preview {
  position: absolute;
  z-index: 3;
  bottom: 100%;
  left: 0;
  width: min(320px, calc(100vw - var(--sidebar-width) - 4 * var(--gutter)));
  padding: 9px;
  border: 1px solid #414141;
  border-radius: 9px;
  background: #1b1b1b;
  box-shadow: 0 8px 24px #0008;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .15s ease;
}
.school:not(.preview-dismissed) > a:focus-visible + .school-preview {
  visibility: visible;
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .school:not(.preview-dismissed):hover .school-preview {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}
.school-caption {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.school-frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}
.school-frames img {
  display: block;
  width: 100%;
  height: clamp(90px, 17vw, 160px);
  border-radius: 4px;
  object-fit: cover;
}
@media (max-width: 720px) {
  .shot-for { flex-direction: column; align-items: start; }
  .school-badge { width: 39px; }
}
@media (max-width: 1050px) {
  .shot-for { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .school-badge, .school-preview { transform: none; transition: none; }
}

.preview-instagram::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: radial-gradient(circle, transparent 2px, currentColor 2px 3px, transparent 3px), radial-gradient(circle at 78% 22%, currentColor 1px, transparent 1.5px);
}

[hidden] { display: none !important; }
.work-toolbar {
  display: flex;
  justify-content: flex-start;
  padding: max(2px, calc(var(--gutter) - 10px)) var(--gutter) 0;
}
.work-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  isolation: isolate;
  border: 1px solid #333;
  border-radius: 999px;
  background: #141414;
}
.work-switch::before {
  position: absolute;
  z-index: -1;
  inset: 3px auto 3px 3px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #ededed;
  content: "";
  transition: transform .24s cubic-bezier(.25,.85,.35,1.18);
}
.work-switch:has(button:last-child[aria-pressed="true"])::before {
  transform: translateX(calc(100% + 2px));
}
.work-switch button {
  border: 0;
  border-radius: 999px;
  padding: 4px clamp(7px, .85vw, 11px);
  background: transparent;
  color: var(--muted);
  font: var(--caption-font);
  white-space: nowrap;
}
.work-switch button[aria-pressed="true"] {
  color: #111;
}
.work-switch button:hover:not([aria-pressed="true"]) { color: #fff; }
.work-toolbar + #photo-work .gallery, .video-grid { padding-top: 12px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 250px),1fr));
  gap: 19px var(--gap);
  padding-inline: var(--gutter);
  padding-bottom: var(--gutter);
}
.video-card { min-width: 0; }
.video-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #1a1a1a;
}
.video-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  display: grid;
  position: absolute;
  inset: auto auto 9px 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #fff7;
  border-radius: 50%;
  background: #111d;
}
.video-play::after {
  content: "";
  margin-left: 2px;
  border-left: 7px solid white;
  border-block: 5px solid transparent;
}
.video-card:hover .video-play { background: #444; }
.video-title { display: block; padding-top: 6px; font-size: 13px; }

#film-viewer {
  width: min(700px, calc(100% - 22px));
  max-height: calc(100dvh - 22px);
  padding: 14px;
  border: 1px solid #444;
  border-radius: 9px;
  background: #161616;
  color: var(--foreground);
}
#film-viewer::backdrop { background: #070707e8; }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-bottom: 12px; }
.film-head h2 { margin: 0; font-size: clamp(15px, 2vw, 21px); }
.film-close { width: 34px; height: 34px; border: 1px solid #555; border-radius: 50%; background: #222; font-size: 19px; }
#film-player {
  width: min(100%, var(--film-width));
  aspect-ratio: var(--film-aspect);
  margin-inline: auto;
  background: #101010;
}
#film-player iframe { display: block; width: 100%; height: 100%; border: 0; }
#film-source { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 12px; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .work-switch::before { transition: none; }
}

@media (max-width: 720px) {
  .sidebar { padding-inline: 9px; }
  .sidebar nav a { min-height: 44px; }
  .work-frame summary { min-height: 44px; }
  .work-switch { width: min(100%, 230px); }
  .work-switch button { min-height: 38px; padding-inline: 5px; }
  .viewer-panel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding-inline: 4px;
  }
  .viewer-panel button, .film-close { width: 44px; }
  .school-list { flex-wrap: wrap; row-gap: 5px; }
  .school-badge { width: 44px; }
  .site-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .school-preview { width: min(320px, calc(100vw - var(--sidebar-width) - 2 * var(--gutter))); }
}

.mobile-dock { display: none; }
@media (max-width: 720px) {
  :root { --gutter: clamp(14px, 4vw, 24px); }
  body { display: flex; flex-direction: column; }
  .sidebar { display: contents; }
  .profile {
    order: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 27px var(--gutter) 0;
  }
  .profile-photo { width: 51px; height: 51px; }
  .sidebar h1 { font-size: clamp(26px, 7vw, 37px); }
  .profile-role { font-size: 13px; }
  .location { order: 1; margin: 15px var(--gutter) 0; font-size: 12px; }
  .sidebar nav {
    order: 2;
    margin: 8px var(--gutter) 4px;
    font-size: 11px;
  }
  .sidebar nav > .nav-item { display: none; }
  .sidebar-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .sidebar-links .nav-item { width: auto; }
  .sidebar-links .nav-preview { display: none; }
  #gallery { order: 3; min-width: 0; }
  .gallery, .video-grid { grid-template-columns: minmax(0, 1fr); }
  .work-toolbar { border-top: 1px solid #2e2e2e; padding-top: 6px; }
  .photo { border-radius: 7px; }
  .experience {
    order: 4;
    margin: 8px var(--gutter) 22px;
    scroll-margin-top: 16px;
  }
  .experience h2 { font-size: 12px; }
  .work-frame summary { padding: 10px 22px 10px 14px; }
  .work-frame summary::after { right: 8px; }
  .work-employer { font-size: 14px; }
  .work-date, .work-role, .work-frame p { font-size: 11px; }
  .shot-for { flex-direction: row; align-items: center; }
  .school-preview { width: min(320px, calc(100vw - 2 * var(--gutter))); left: 0; }
  .shot-for .school-list { flex-basis: 100%; }
  .site-footer {
    order: 5;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .mobile-dock {
    position: fixed;
    z-index: 3;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid #444;
    border-radius: 999px;
    background: #181818f5;
    box-shadow: 0 5px 20px #0009;
    white-space: nowrap;
  }
  .mobile-dock a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 13px;
    border-radius: 999px;
    font-size: 12px;
  }
  .mobile-dock { isolation: isolate; }
  .mobile-dock::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: var(--dock-width, 55px);
    transform: translateX(var(--dock-offset, 0px));
    border-radius: 999px;
    background: #f0f0f0;
  }
  .mobile-dock a[aria-current="location"] { color: #111; }
  @media (prefers-reduced-motion: no-preference) {
    .mobile-dock.dock-ready::before {
      transition: transform .25s ease, width .25s ease;
    }
    .mobile-dock a { transition: color .16s ease; }
  }
}

.portrait-button { padding: 0; border: 0; background: transparent; border-radius: 9px; }
.portrait-button .profile-photo { transition: transform .2s ease; }
.portrait-button:is(:hover, :focus-visible) .profile-photo { transform: translateY(-2px) rotate(2deg) scale(1.05); }
.blossom-layer { position: fixed; inset: 0; z-index: 15; overflow: hidden; pointer-events: none; }
.blossom-petal {
  position: absolute;
  top: -24px;
  border-radius: 75% 38% 68% 48%;
  background: linear-gradient(135deg, #fff1f8, #e992b6);
  animation: blossom-fall var(--duration) var(--delay) linear both;
}
@keyframes blossom-fall {
  0% { transform: translateX(0) rotate(0); opacity: 0; }
  12% { opacity: .92; }
  85% { opacity: .8; }
  100% { transform: translate(var(--drift), calc(100dvh + 30px)) rotate(295deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-button .profile-photo { transition: none; }
  .portrait-button:is(:hover, :focus-visible) .profile-photo { transform: rotate(-5deg); }
}
