:root {
  color-scheme: dark;
  --forest: #1d3328;
  --forest-deep: #13241d;
  --text: #f7fbf5;
  --muted: rgba(247, 251, 245, 0.7);
  --faint: rgba(247, 251, 245, 0.16);
  --accent: #d9c48f;
  --accent-hover: #fff1bb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(217, 196, 143, 0.08), transparent 30rem),
    linear-gradient(145deg, var(--forest), var(--forest-deep));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.42;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

a:hover {
  color: var(--accent-hover);
}

.page-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 44px 26px;
}

.page-shell--top {
  align-items: flex-start;
  padding-top: clamp(44px, 11vh, 112px);
}

.intro {
  max-width: 760px;
  width: 100%;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.line {
  animation: populate 720ms cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: var(--delay);
  margin: 0;
}

.hero-line {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.identity-line {
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.identity-line span {
  min-width: 0;
}

.statement-line {
  margin-bottom: 16px;
}

.inline-row {
  align-items: center;
  display: block;
}

.avatar,
.tile,
.mini-icon {
  align-items: center;
  background: rgba(247, 251, 245, 0.1);
  border: 1px solid rgba(247, 251, 245, 0.18);
  color: var(--text);
  display: inline-flex;
  justify-content: center;
}

.icon-sprite {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.icon-sprite symbol,
.mini-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.avatar {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  height: 42px;
  letter-spacing: 0;
  width: 42px;
}

.avatar-photo {
  flex: 0 0 auto;
  height: 62px;
  object-fit: cover;
  object-position: center 18%;
  padding: 0;
  width: 62px;
}

.avatar-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0;
  position: relative;
}

.avatar-button::after {
  background-image: url("assets/brandon-headshot.png");
  background-position: center 18%;
  background-size: cover;
  border: 1px solid rgba(247, 251, 245, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  content: "";
  height: 124px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 124px;
  z-index: 20;
}

.avatar-button:hover::after,
.avatar-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.avatar-modal {
  background: transparent;
  border: 0;
  max-width: min(88vw, 520px);
  padding: 0;
}

.avatar-modal::backdrop {
  background: rgba(6, 18, 13, 0.72);
}

.avatar-modal img {
  border: 1px solid rgba(247, 251, 245, 0.2);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  display: block;
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
}

.modal-close {
  background: rgba(247, 251, 245, 0.92);
  border: 0;
  border-radius: 999px;
  color: var(--forest-deep);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 6px 11px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
}

.avatar--small {
  height: 36px;
  width: 36px;
}

.badge-cluster {
  display: inline-flex;
  gap: 0;
  margin-left: 12px;
  vertical-align: middle;
}

.single-tile {
  margin-left: 12px;
}

.tile {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 500;
  height: 42px;
  letter-spacing: 0;
  position: relative;
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
  width: 42px;
}

.tile + .tile {
  margin-left: -8px;
}

.tile-a,
.tile-c {
  transform: rotate(-6deg);
}

.tile-b,
.tile-d {
  transform: rotate(5deg);
}

.badge-cluster:hover .tile,
.tile:hover {
  background: rgba(247, 251, 245, 0.16);
  border-color: rgba(217, 196, 143, 0.58);
  transform: rotate(0deg) translateX(0);
}

.tile:hover {
  z-index: 5;
}

.tile-icon img,
.tile-icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

.tile-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tooltip {
  background: rgba(4, 13, 9, 0.9);
  border: 1px solid rgba(247, 251, 245, 0.12);
  border-radius: 8px;
  bottom: calc(100% + 10px);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  left: 50%;
  opacity: 0;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.tile:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rule {
  border-top: 1px dotted var(--faint);
  margin: 34px 0 18px;
  width: 100%;
}

.links-block {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  gap: 8px;
}

.links-block p,
.closing-link,
.muted {
  margin: 0;
}

.back-link {
  color: var(--muted);
  display: inline-flex;
  font-size: 18px;
  margin-bottom: 22px;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
}

.muted {
  color: var(--muted);
}

h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 8px;
}

.tool-list small {
  color: var(--muted);
  font-size: 17px;
}

.stack-group {
  border-top: 1px dotted var(--faint);
  padding-top: 22px;
}

.tool-list {
  display: grid;
  gap: 14px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.tool-list li {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.mini-icon {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  height: 34px;
  object-fit: cover;
  padding: 5px;
  width: 34px;
}

.mini-icon svg {
  height: 22px;
  width: 22px;
}

.adobe-icon {
  background: rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.van-icon {
  padding: 0;
}

.tool-list span:not(.mini-icon) {
  font-size: 18px;
  font-weight: 400;
}

.tool-list small {
  grid-column: 2;
  justify-self: start;
  margin-top: -8px;
}

.closing-link {
  border-top: 1px dotted var(--faint);
  font-size: 20px;
  margin-top: 18px;
  padding-top: 24px;
}

.portfolio-shot,
.portfolio-section {
  border-top: 1px dotted var(--faint);
  padding-top: 22px;
}

.portfolio-shot {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: rgba(247, 251, 245, 0.06);
  border: 1px dotted var(--faint);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 18px;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.portfolio-section p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.video-work-page {
  max-width: 1120px;
}

.video-work-intro {
  max-width: 760px;
}

.video-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.video-card {
  min-width: 0;
}

.video-card h2 {
  font-size: 9px;
  margin: 10px 0 0;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: rgba(247, 251, 245, 0.07);
  border: 1px solid var(--faint);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.video-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
  width: 100%;
}

.video-thumb:hover,
.video-thumb:focus-visible {
  border-color: rgba(217, 196, 143, 0.58);
  outline: none;
}

.video-thumb:hover img,
.video-thumb:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.video-modal {
  background: transparent;
  border: 0;
  color: var(--text);
  max-height: 100vh;
  max-width: min(1100px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.video-modal::backdrop {
  background: rgba(3, 10, 7, 0.86);
}

.video-modal-shell {
  background: rgba(12, 28, 21, 0.98);
  border: 1px solid rgba(247, 251, 245, 0.16);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.video-modal-bar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 12px 10px 16px;
}

.video-modal-bar h2 {
  font-size: 16px;
  margin: 0;
  min-width: 0;
}

.video-close {
  align-items: center;
  background: rgba(247, 251, 245, 0.1);
  border: 1px solid rgba(247, 251, 245, 0.18);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 34px;
}

.video-close span,
.video-close span::after {
  background: currentColor;
  content: "";
  display: block;
  height: 1.5px;
  position: absolute;
  width: 14px;
}

.video-close span {
  transform: rotate(45deg);
}

.video-close span::after {
  transform: rotate(90deg);
}

.video-player {
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;
}

.video-player iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.contact-form {
  border-top: 1px dotted var(--faint);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 24px;
}

.contact-form label,
.contact-form fieldset {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.contact-form span,
.contact-form legend {
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.contact-form b {
  color: var(--accent);
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: rgba(247, 251, 245, 0.07);
  border: 1px solid var(--faint);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  outline: none;
  padding: 12px 13px;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(247, 251, 245, 0.34);
  opacity: 1;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(217, 196, 143, 0.72);
}

.contact-form fieldset:not(.button-group) label {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  flex-direction: row;
  font-size: 17px;
  gap: 10px;
}

.contact-form input[type="radio"] {
  accent-color: var(--accent);
}

.contact-form .button-group {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, 172px);
  justify-content: start;
}

.contact-form .button-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.contact-form .button-group label {
  display: block;
}

.button-group input[type="radio"],
.button-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.button-group label span {
  align-items: center;
  background: rgba(247, 251, 245, 0.07);
  border: 1px solid var(--faint);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  justify-content: center;
  height: 52px;
  line-height: 1.2;
  padding: 6px 11px;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-group label:hover span,
.button-group input:focus-visible + span {
  border-color: rgba(217, 196, 143, 0.5);
  color: var(--text);
}

.button-group input:checked + span {
  background: rgba(217, 196, 143, 0.13);
  border-color: rgba(217, 196, 143, 0.72);
  color: var(--accent-hover);
}

.contact-form .help-tags {
  grid-template-columns: repeat(auto-fit, 150px);
}

.other-input {
  grid-column: 1 / -1;
}

[hidden] {
  display: none !important;
}

.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: var(--forest-deep);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 18px;
}

.honey-field {
  display: none;
}

.otis-carousel {
  border-top: 1px dotted var(--faint);
  padding-top: 22px;
}

.otis-carousel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.otis-slides {
  display: grid;
  overflow: hidden;
}

.otis-slide {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(247, 251, 245, 0.08), rgba(247, 251, 245, 0.02)),
    rgba(247, 251, 245, 0.04);
  border: 1px dotted var(--faint);
  border-radius: 8px;
  color: var(--muted);
  display: none;
  font-size: 18px;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
}

#otis-photo-1:checked ~ .otis-slides .slide-1,
#otis-photo-2:checked ~ .otis-slides .slide-2,
#otis-photo-3:checked ~ .otis-slides .slide-3 {
  display: flex;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dots label {
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 5px 10px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

#otis-photo-1:checked ~ .carousel-dots label[for="otis-photo-1"],
#otis-photo-2:checked ~ .carousel-dots label[for="otis-photo-2"],
#otis-photo-3:checked ~ .carousel-dots label[for="otis-photo-3"] {
  background: rgba(217, 196, 143, 0.1);
  border-color: rgba(217, 196, 143, 0.58);
  color: var(--accent);
}

@keyframes populate {
  from {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .line {
    animation: none;
  }

  .tile,
  a,
  .tooltip {
    transition: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 21px;
  }

  .page-shell {
    justify-content: flex-start;
    padding: 34px 22px;
  }

  .hero-line {
    margin-bottom: 22px;
  }

  .identity-line {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .identity-line span {
    font-size: 20px;
  }

  .avatar-photo {
    height: 52px;
    width: 52px;
  }

  .avatar-button::after {
    height: 104px;
    width: 104px;
  }

  .badge-cluster {
    margin-left: 8px;
  }

  .tooltip {
    display: none;
  }

  .links-block,
  .closing-link {
    font-size: 18px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card h2 {
    font-size: 8.5px;
  }

  .video-modal {
    max-width: calc(100vw - 18px);
  }

  .video-modal-bar {
    min-height: 48px;
  }

  .tool-list li {
    align-items: start;
    grid-template-columns: 34px 1fr;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .tool-list small {
    grid-column: 2;
  }

  .contact-form .button-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form .help-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button-group label span {
    height: 52px;
  }
}
