:root {
  color-scheme: dark;
  --ink: #f7f3ea;
  --muted: #a9b6b4;
  --panel: rgba(12, 18, 20, 0.78);
  --panel-solid: #11181b;
  --line: rgba(247, 243, 234, 0.16);
  --teal: #13d7c6;
  --coral: #ff6b5f;
  --yellow: #ffd166;
  --green: #8bd450;
  --bg: #081012;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 28px), 1120px);
  min-height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 18, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--yellow));
  color: #071011;
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px max(20px, calc((100vw - 1120px) / 2)) 80px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 16, 18, 0.9) 0%, rgba(8, 16, 18, 0.62) 42%, rgba(8, 16, 18, 0.2) 100%),
    linear-gradient(0deg, #081012 0%, rgba(8, 16, 18, 0.22) 42%, rgba(8, 16, 18, 0.7) 100%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.3rem, 13vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: #d7dfdc;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary {
  background: var(--teal);
  color: #061012;
}

.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.stats div {
  min-height: 128px;
  display: grid;
  align-content: center;
  padding: 24px;
  background: #0a1315;
}

.stats strong {
  color: var(--yellow);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section,
.contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 680px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 24px;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  border-color: rgba(19, 215, 198, 0.7);
  background: rgba(19, 215, 198, 0.14);
  color: var(--ink);
  outline: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.project-card.featured {
  grid-column: span 2;
}

.project-card[hidden] {
  display: none;
}

.project-visual {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: #132022;
}

.wet-card .project-visual {
  min-height: 360px;
}

.watchbox-card .project-visual {
  min-height: 360px;
}

.watchbox-visual {
  background: #050709;
}

.watchbox-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(1.1) contrast(1.04);
}

.film-card .project-visual {
  min-height: 240px;
}

.film-visual {
  background: #151b37;
}

.film-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.1) contrast(1.04);
}

.wet-visual {
  background: #151921;
}

.wet-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.08) contrast(1.04);
}

.temple-card .project-visual {
  min-height: 240px;
}

.temple-visual {
  background: #030303;
}

.temple-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.05);
}

.app-visual {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 209, 102, 0.72), transparent 18%),
    linear-gradient(135deg, rgba(19, 215, 198, 0.68), rgba(255, 107, 95, 0.34)),
    #102022;
}

.phone-frame {
  position: absolute;
  right: 12%;
  bottom: -14px;
  width: min(190px, 42%);
  aspect-ratio: 9 / 16;
  border: 10px solid rgba(6, 16, 18, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(var(--teal) 0 14%, transparent 14%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0 10px, transparent 10px 28px),
    #edf7f2;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.pulse-dot {
  position: absolute;
  left: 14%;
  top: 24%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 16px rgba(255, 209, 102, 0.22);
}

.game-visual {
  background:
    linear-gradient(135deg, rgba(255, 107, 95, 0.72), rgba(19, 215, 198, 0.16)),
    #191415;
}

.game-tile {
  position: absolute;
  width: 76px;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.86);
}

.tile-a {
  left: 15%;
  top: 20%;
}

.tile-b {
  right: 18%;
  top: 36%;
  background: rgba(19, 215, 198, 0.86);
}

.tile-c {
  left: 38%;
  bottom: 13%;
  background: rgba(139, 212, 80, 0.86);
}

.web-visual {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(135deg, #172225, #2a1c21);
}

.web-visual span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.web-visual span:first-child {
  grid-row: span 2;
  background: rgba(19, 215, 198, 0.42);
}

.pixel-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px;
  background: #102022;
}

.pixel-visual span {
  border-radius: 8px;
  background: var(--green);
}

.pixel-visual span:nth-child(2) {
  background: var(--coral);
}

.pixel-visual span:nth-child(3) {
  background: var(--yellow);
}

.pixel-visual span:nth-child(4) {
  background: var(--teal);
}

.project-body {
  padding: 22px;
}

.tag {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin: 9px 0 8px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.project-body p,
.step p {
  margin: 0;
  color: var(--muted);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tech-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: #dce5e2;
  font-size: 0.78rem;
  font-weight: 700;
}

.wet-worlds {
  border-top: 1px solid var(--line);
}

.wet-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}

.device-frame {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(247, 243, 234, 0.22);
  border-radius: 30px;
  background: #090d0f;
  box-shadow: var(--shadow);
}

.device-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

.wet-notes {
  max-width: 580px;
}

.wet-notes h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.wet-notes p {
  color: var(--muted);
  font-size: 1.05rem;
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 42px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce5e2;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.screenshot-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.screenshot-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
  background: #151921;
}

.screenshot-grid figcaption {
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.watchbox {
  border-top: 1px solid var(--line);
}

.watchbox-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 34px;
}

.phone-gallery {
  position: relative;
  min-height: 660px;
}

.app-phone {
  position: absolute;
  overflow: hidden;
  width: min(58%, 280px);
  padding: 10px;
  border: 1px solid rgba(247, 243, 234, 0.22);
  border-radius: 30px;
  background: #08090b;
  box-shadow: var(--shadow);
}

.app-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
}

.primary-phone {
  left: 0;
  top: 0;
  z-index: 2;
}

.secondary-phone {
  right: 0;
  bottom: 0;
  transform: translateY(18px);
}

.watchbox-notes {
  max-width: 600px;
}

.watchbox-notes h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.watchbox-notes p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 26px;
}

.feature-list span {
  border-left: 3px solid var(--teal);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.06);
  color: #dce5e2;
  font-weight: 700;
}

.watchbox-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.watchbox-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.watchbox-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center;
  background: #050709;
}

.watchbox-gallery figcaption {
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.film-circle {
  border-top: 1px solid var(--line);
}

.film-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 34px;
}

.solo-phone {
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(247, 243, 234, 0.22);
  border-radius: 30px;
  background: #08090b;
  box-shadow: var(--shadow);
}

.solo-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
}

.film-notes {
  max-width: 610px;
}

.film-notes h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.film-notes p {
  color: var(--muted);
  font-size: 1.05rem;
}

.temple-defender {
  border-top: 1px solid var(--line);
}

.temple-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  margin-top: 34px;
}

.wide-frame {
  overflow: hidden;
  border: 1px solid rgba(247, 243, 234, 0.22);
  border-radius: 8px;
  background: #030303;
  box-shadow: var(--shadow);
}

.wide-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.temple-notes {
  max-width: 520px;
}

.temple-notes h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.temple-notes p {
  color: var(--muted);
  font-size: 1.05rem;
}

.temple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.temple-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.temple-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #030303;
}

.temple-gallery figcaption {
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.skill strong,
.skill span {
  display: block;
}

.skill strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.step span {
  color: var(--yellow);
  font-weight: 900;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 18, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 90svh;
    padding: 104px 20px 58px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 16, 18, 0.9), rgba(8, 16, 18, 0.48)),
      linear-gradient(0deg, #081012 0%, rgba(8, 16, 18, 0.12) 54%, rgba(8, 16, 18, 0.76) 100%);
  }

  h1 {
    max-width: 9ch;
  }

  .stats,
  .project-grid,
  .split,
  .steps,
  .contact {
    grid-template-columns: 1fr;
  }

  .stats {
    display: grid;
  }

  .stats div {
    min-height: 104px;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .wet-card .project-visual,
  .wet-visual img,
  .watchbox-card .project-visual,
  .watchbox-visual img {
    min-height: 300px;
  }

  .watchbox-showcase {
    grid-template-columns: 1fr;
  }

  .film-showcase {
    grid-template-columns: 1fr;
  }

  .phone-gallery {
    min-height: 620px;
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .wet-showcase {
    grid-template-columns: 1fr;
  }

  .temple-showcase {
    grid-template-columns: 1fr;
  }

  .timeline-strip {
    grid-template-columns: repeat(4, minmax(95px, 1fr));
  }

  .section,
  .contact {
    width: min(100% - 28px, 620px);
    padding: 62px 0;
  }

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

  .contact {
    display: grid;
    margin-bottom: 18px;
  }
}

@media (max-width: 460px) {
  .brand span:last-child {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .project-visual {
    min-height: 210px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .screenshot-grid figcaption {
    font-size: 0.7rem;
    padding: 8px;
  }

  .watchbox-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .watchbox-gallery figcaption {
    font-size: 0.7rem;
    padding: 8px;
  }

  .phone-gallery {
    min-height: 520px;
  }

  .app-phone {
    width: 62%;
    padding: 8px;
    border-radius: 24px;
  }

  .app-phone img {
    border-radius: 18px;
  }

  .temple-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .temple-gallery figcaption {
    font-size: 0.7rem;
    padding: 8px;
  }
}
