:root {
  color-scheme: dark;
  --bg: #0b111a;
  --line: #29333e;
  --mint: #8de8c8;
  --txt: #f1f4f5;
  --dim: #acb6c1;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font:
    16px/1.55 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
.wrap {
  width: min(1220px, 89%);
  margin: auto;
}
header {
  background: #0b111a;
  border-bottom: 1px solid var(--line);
}
.top {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  font-weight: 650;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 19px;
  letter-spacing: -0.6px;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
nav a,
.contactlink,
.secondary,
.primary {
  font-size: 14px;
  font-weight: 550;
}
nav a {
  color: #bac3ce;
}
nav a:hover,
.secondary:hover {
  color: var(--mint);
}
.contactlink,
.secondary,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b4854;
  border-radius: 6px;
  padding: 10px 19px;
}
.primary {
  color: #07251d;
  background: var(--mint);
  border-color: var(--mint);
}
.secondary {
  margin-left: 10px;
}
.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 76% 55%, #101f2a 0, transparent 54%);
}
.stage {
  min-height: 510px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 52px 0;
}
.intro {
  position: relative;
  z-index: 2;
  width: 43%;
  pointer-events: none;
}
.intro a {
  pointer-events: auto;
}
.eyebrow,
.tags,
.kicker {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.13em;
  color: var(--mint);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow i {
  width: 23px;
  height: 1px;
  background: var(--mint);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(80px, 7.8vw, 115px);
  line-height: 0.9;
  letter-spacing: -0.068em;
  margin: 25px 0 18px;
  font-weight: 650;
}
h1 em {
  font-style: normal;
  color: var(--mint);
}
h1 b,
h2 span {
  color: var(--mint);
}
.intro p {
  max-width: 388px;
  color: #b6c0cb;
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 25px;
}
.intro a {
  padding: 11px 21px;
}
.strip {
  border-block: 1px solid var(--line);
  background: #101720;
}
.facts {
  display: flex;
  align-items: center;
  padding-block: 17px;
  gap: 0;
}
.facts span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dim);
  padding: 0 32px;
  border-left: 1px solid var(--line);
}
.facts span:first-child {
  padding-left: 0;
  border: none;
}
.facts strong {
  font: 600 18px var(--mono);
  color: var(--mint);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.block {
  padding-block: 62px;
}
.workhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin-top: 9px;
  font-weight: 620;
}
.filters {
  display: flex;
  gap: 7px;
}
.filters button,
.tags span {
  background: transparent;
  color: #b6c0cd;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 13px;
}
.filters button[aria-pressed='true'] {
  background: #173129;
  color: var(--mint);
  border-color: #477e6c;
}
#projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.card {
  text-align: left;
  background: #101923;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  transition:
    transform 0.23s,
    border-color 0.23s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #588171;
}
.card img,
.project-img {
  display: block;
  width: 100%;
  aspect-ratio: 1.82;
  object-fit: cover;
}
.cardbody {
  padding: 19px 21px 22px;
}
.kicker {
  font-size: 11px;
}
.card h3 {
  font-size: 24px;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 6px 0;
}
.card p,
.about p,
footer p,
details p,
dialog p {
  color: var(--dim);
}
.card p {
  font-size: 15px;
}
.block + .block {
  border-top: 1px solid var(--line);
}
#jobs {
  margin-top: 25px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary time {
  font: 14px var(--mono);
  color: var(--mint);
  min-width: 134px;
}
summary strong {
  font-size: 20px;
}
summary small {
  color: var(--dim);
  font-size: 15px;
}
summary:after {
  content: '+';
  margin-left: auto;
  color: var(--mint);
}
details[open] summary:after {
  content: '−';
}
details p {
  padding: 12px 0 0 154px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 35px;
}
.about .lead {
  font-size: 23px;
  color: var(--txt);
}
.about p + p,
.about h3 {
  margin-top: 16px;
}
footer p {
  margin: 14px 0 22px;
}
dialog {
  background: #111c26;
  color: var(--txt);
  border: 1px solid #4a5c62;
  border-radius: 14px;
  padding: 0;
  width: min(590px, 90vw);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pinch-zoom;
  box-shadow: 0 24px 80px #02060b80;
}
#detail {
  max-height: calc(90dvh - 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pinch-zoom;
  cursor: grab;
}
#detail.scrollable {
  touch-action: pan-y pinch-zoom;
}
#detail.scrollable.at-top {
  /* Allow a finger swipe up to scroll into the text and a pull down to drag. */
  touch-action: pan-down pinch-zoom;
}
#detail .art {
  touch-action: pinch-zoom;
  user-select: none;
}
dialog.dragging #detail {
  cursor: grabbing;
  user-select: none;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: #02060bcb;
  backdrop-filter: blur(6px);
  transition: opacity 190ms ease;
}
dialog.closing::backdrop {
  opacity: 0;
}
.close {
  touch-action: manipulation;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  background: #0a1018;
}
.close:focus-visible {
  outline: none;
  background: var(--txt);
  color: var(--bg);
}
@media (forced-colors: active) {
  .close:focus-visible {
    outline: 2px solid Highlight;
  }
}
.detailbody {
  padding: 24px;
}
.detailbody h2 {
  font-size: 34px;
}
.detailbody p {
  margin: 14px 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  letter-spacing: 0;
  margin-bottom: 20px;
}
.art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.85;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 90%, #9b5eff, transparent 60%),
    linear-gradient(120deg, #2f205e, #5146bd 55%, #c99bf3);
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    transform 0.4s,
    opacity 700ms ease-in-out;
}
.next-photo {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #939da3;
  border-radius: 6px;
  background: #0a1018;
  font-size: 14px;
  touch-action: manipulation;
}
.art img.current {
  opacity: 1;
}
.art[data-project='Art Logo Maker'] img {
  object-fit: contain;
}
.card:hover img {
  transform: scale(1.035);
}
.motif {
  font: italic 85px/1 Georgia;
  color: #fff9;
  text-shadow: 8px 10px 0 #ffffff25;
}
.art[data-project='JerryMaya Detective Agency'] {
  background: linear-gradient(140deg, #204652, #328a8e, #eab357);
}
.art[data-project='Cook-Out'] {
  background: linear-gradient(140deg, #a84d38, #ef934f, #f8cf96);
}
.art[data-project='Grow Planet'] {
  background: linear-gradient(140deg, #2b6b7e, #51c2ba, #d1df91);
}
.art[data-project='Orro World'] {
  background:
    radial-gradient(ellipse at 52% 78%, #efc9a7 0, #e19d95 12%, transparent 30%),
    repeating-radial-gradient(
      ellipse at 50% 155%,
      #3c334d 12%,
      #786187 21%,
      #534866 30%,
      #967994 40%
    );
}
.art[data-project='Orro World'] .motif {
  display: none;
}
.art[data-project='Grow Forest'] {
  background: linear-gradient(140deg, #1e6536, #7ea948, #afd4a1);
}

.art[data-project='Orro World'] img {
  object-fit: contain;
  padding: 12%;
}
.visit-label {
  display: inline-block;
  margin-top: 12px;
  font: 600 13px var(--mono);
  color: #a5efd1;
}
.visit-label[hidden] {
  display: none;
}
.detailbody .captain-award {
  color: #ffe5ac;
  background: #322e22;
  border-left: 3px solid #e3b866;
  padding: 10px 14px;
  margin: 0 0 16px;
}
@media (max-width: 850px) {
  #projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top {
    gap: 25px;
  }
  .intro {
    width: 47%;
  }
  .workhead {
    align-items: start;
    flex-direction: column;
  }
  .facts span {
    padding: 0 16px;
  }
  .stage {
    min-height: 460px;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: 89%;
  }
  .top {
    height: 64px;
    justify-content: space-between;
  }
  .top nav {
    display: none;
  }
  .brand {
    font-size: 17px;
  }
  .contactlink {
    padding: 7px 12px;
  }
  .stage {
    display: block;
    padding: 36px 0 12px;
  }
  .intro {
    width: 100%;
  }
  h1 {
    font-size: 78px;
  }
  .intro p {
    font-size: 17px;
  }
  .intro a {
    padding: 9px 16px;
  }
  .facts {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .facts span {
    font-size: 12px;
    padding: 0 10px;
  }
  .facts span:last-child {
    display: none;
  }
  .block {
    padding-block: 40px;
  }
  #projects {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
  }
  .about {
    display: block;
  }
  .about .lead {
    margin-top: 22px;
  }
  summary {
    gap: 5px;
    flex-wrap: wrap;
  }
  summary time {
    width: 100%;
  }
  summary small {
    width: 85%;
  }
  details p {
    padding: 12px 0;
  }
  .workhead {
    margin-bottom: 18px;
  }
}
@keyframes card-appear {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: card-appear 250ms ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .art img,
  dialog::backdrop {
    transition: none;
  }
}
