
:root {
  --ink: #06151d;
  --ink-2: #0a2731;
  --paper: #f8fcfd;
  --white: #ffffff;
  --cyan: #59c7ff;
  --cyan-2: #2f8fff;
  --aqua: #43dec7;
  --lime: #d9ff67;
  --green: #62bd53;
  --violet: #6b68ff;
  --orange: #ff9864;
  --line: rgba(8, 55, 71, 0.17);
  --muted: #52707a;
  --max: 1240px;
  --nav-h: 72px;
  --cut: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(89,199,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(89,199,255,.04) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  font-family: "Arial Narrow", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  letter-spacing: .02em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -60px;
  z-index: 999;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}
.skip-link:focus { top: 14px; }

.site-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 21%, rgba(67,222,199,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 34%, rgba(89,199,255,.11) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 83%, rgba(107,104,255,.10) 0 3px, transparent 4px);
  background-size: 110px 110px, 170px 170px, 220px 220px;
  animation: drift-grid 28s linear infinite;
}

@keyframes drift-grid {
  to { transform: translate3d(0,-110px,0); }
}

.topline {
  height: 6px;
  background:
    linear-gradient(90deg,
      var(--cyan) 0 32%,
      var(--lime) 32% 42%,
      var(--violet) 42% 62%,
      var(--orange) 62% 70%,
      var(--aqua) 70% 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248,252,253,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  height: var(--nav-h);
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 225px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  position: relative;
  background: var(--ink);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--cyan);
}

.brand-mark::before {
  width: 20px;
  height: 20px;
  left: 8px;
  top: 8px;
}

.brand-mark::after {
  width: 7px;
  height: 7px;
  right: 6px;
  bottom: 6px;
  border-color: var(--lime);
}

.brand-text {
  line-height: .92;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 21px;
  font-family: Impact, "Arial Black", sans-serif;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--cyan-2);
  font: 700 9px/1 "Arial Narrow", sans-serif;
  letter-spacing: .19em;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--line);
}

.desktop-nav a {
  position: relative;
  min-width: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #2f4c56;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .13em;
  border-right: 1px solid var(--line);
  transition: color .18s ease, background .18s ease;
}

.desktop-nav a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan-2);
  transition: transform .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(89,199,255,.075);
}

.desktop-nav a:hover::before,
.desktop-nav a[aria-current="page"]::before {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 54px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 28px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  padding: 8px 22px 18px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 14px 6px;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
  letter-spacing: .12em;
}

main { overflow: hidden; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - 6px);
  display: grid;
  grid-template-columns: minmax(240px, .68fr) minmax(540px, 1.52fr);
  max-width: 1480px;
  margin: auto;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 84px 28px 80px max(28px, calc((100vw - var(--max))/2 + 22px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.route-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cyan-2);
  margin-bottom: 18px;
}

.route-code::before {
  content: "";
  width: 34px;
  height: 4px;
  background: var(--lime);
  box-shadow: 14px 0 0 var(--cyan);
  transform: skewX(-26deg);
}

.hero h1 {
  margin: 0;
  max-width: 560px;
  font-family: Impact, "Arial Black", "Arial Narrow", sans-serif;
  font-size: clamp(58px, 7.1vw, 118px);
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hero h1 .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}

.hero-sub {
  max-width: 470px;
  margin: 28px 0 0;
  color: #365660;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 11px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--cyan-2);
  border-color: var(--cyan-2);
}

.btn.alt {
  background: transparent;
  color: var(--ink);
}
.btn.alt:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.hero-art {
  position: relative;
  min-height: 620px;
  padding: 52px 0 52px 0;
  display: flex;
  align-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 7% 0 4% 9%;
  background: var(--ink);
  clip-path: polygon(8% 0, 100% 0, 100% 90%, 89% 100%, 0 100%, 0 9%);
  transform: translate(9px, 9px);
  opacity: .11;
}

.hero-art-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-top: 5px solid var(--cyan);
  border-bottom: 5px solid var(--lime);
  clip-path: polygon(8% 0, 100% 0, 100% 90%, 89% 100%, 0 100%, 0 9%);
  box-shadow: 0 22px 75px rgba(6, 51, 66, .12);
}

.hero-art-frame img {
  width: 100%;
  height: auto;
  min-height: 510px;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  right: 38px;
  top: 72px;
  z-index: 3;
  background: var(--ink);
  color: white;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  transform: rotate(2deg);
}

.sonar {
  position: absolute;
  width: 165px;
  height: 165px;
  left: 3%;
  bottom: 4%;
  border: 1px solid rgba(47,143,255,.35);
  border-radius: 50%;
  pointer-events: none;
}
.sonar::before,
.sonar::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: inherit;
  inset: 17%;
}
.sonar::after { inset: 35%; }

.section {
  position: relative;
  padding: 104px 22px;
}

.section.dark {
  color: white;
  background:
    linear-gradient(130deg, rgba(89,199,255,.05), transparent 35%),
    linear-gradient(320deg, rgba(67,222,199,.04), transparent 32%),
    var(--ink);
}

.section-inner {
  max-width: var(--max);
  margin: auto;
}

.section-head {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}

.dark .section-head { border-color: rgba(255,255,255,.16); }

.section-no {
  color: var(--cyan-2);
  font: 900 12px/1 "Arial Narrow", sans-serif;
  letter-spacing: .20em;
}

.section-title {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.025em;
}

.section-title span {
  color: var(--cyan);
}

.lede {
  margin: 0 0 44px 158px;
  max-width: 660px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  font-weight: 700;
}
.dark .lede { color: #b8ced5; }

.works-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr .9fr;
  gap: 16px;
}

.work {
  position: relative;
  min-height: 315px;
  border: 1px solid rgba(9,65,83,.18);
  background: white;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.work.featured { grid-row: span 2; min-height: 650px; }

.work img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.75,.2,1);
}

.work:hover img { transform: scale(1.025); }

.work-meta {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 88%;
  background: rgba(6,21,29,.92);
  color: white;
  padding: 14px 18px 13px;
  border-top: 3px solid var(--cyan);
  min-width: 210px;
}

.work-meta small {
  display: block;
  color: var(--lime);
  letter-spacing: .17em;
  margin-bottom: 5px;
  font-weight: 900;
}

.work-meta strong {
  font-size: 16px;
  letter-spacing: .035em;
}

.empty-slot {
  position: relative;
  min-height: 315px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(47,143,255,.42);
  background:
    linear-gradient(135deg, rgba(89,199,255,.06) 25%, transparent 25%) 0 0 / 26px 26px,
    white;
  color: #62818a;
  overflow: hidden;
}

.empty-slot::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(67,222,199,.3);
  border-radius: 50%;
}

.empty-slot span {
  position: relative;
  z-index: 2;
  padding: 8px 11px;
  background: white;
  font-weight: 900;
  letter-spacing: .15em;
  font-size: 10px;
}

.signal-row {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,.17);
}

.signal {
  padding: 28px;
  min-height: 190px;
  border-right: 1px solid rgba(255,255,255,.17);
}
.signal:last-child { border-right: 0; }
.signal b {
  display: block;
  color: var(--lime);
  font-size: 10px;
  letter-spacing: .16em;
  margin-bottom: 18px;
}
.signal h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.signal p {
  margin: 0;
  color: #afc8cf;
  line-height: 1.75;
  font-size: 13px;
}

.about-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 54px;
}

.profile-core {
  border-left: 8px solid var(--cyan);
  padding: 8px 0 8px 22px;
}
.profile-core .name {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .8;
  letter-spacing: -.04em;
}
.profile-core .role {
  margin-top: 14px;
  color: var(--cyan-2);
  font-weight: 900;
  letter-spacing: .13em;
  font-size: 11px;
}

.about-copy p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 2;
  font-weight: 600;
  color: #365660;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.tag {
  padding: 8px 11px;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  transform: skewX(-8deg);
}

.cta-panel {
  max-width: var(--max);
  margin: 0 auto;
  color: white;
  background:
    linear-gradient(90deg, var(--cyan-2), var(--aqua));
  padding: 48px;
  clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 42px 100%, 0 calc(100% - 42px));
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 35px solid rgba(255,255,255,.13);
  right: -65px;
  top: -120px;
}

.cta-panel h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 15px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(38px,5vw,66px);
  line-height: .95;
}
.cta-panel p {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  max-width: 680px;
  line-height: 1.8;
  font-weight: 700;
}

.page-hero {
  min-height: 385px;
  display: flex;
  align-items: end;
  padding: 80px 22px 46px;
  color: white;
  background:
    linear-gradient(110deg, rgba(89,199,255,.16), transparent 32%),
    radial-gradient(circle at 88% 34%, rgba(67,222,199,.18), transparent 16%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 27px;
  height: 7px;
  background: linear-gradient(90deg, transparent, var(--cyan) 18% 35%, var(--lime) 35% 44%, var(--violet) 44% 62%, transparent 62%);
  transform: skewY(-1.2deg);
}

.page-hero-inner {
  width: min(var(--max),100%);
  margin: auto;
  position: relative;
  z-index: 2;
}
.page-hero small {
  color: var(--lime);
  font-weight: 900;
  letter-spacing: .2em;
}
.page-hero h1 {
  margin: 12px 0 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(62px,10vw,142px);
  line-height: .78;
  letter-spacing: -.04em;
}

.content-grid {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 52px;
}
.side-label {
  font-size: 10px;
  color: var(--cyan-2);
  font-weight: 900;
  letter-spacing: .18em;
  border-top: 4px solid var(--lime);
  padding-top: 13px;
}
.prose {
  max-width: 820px;
}
.prose h2 {
  margin: 0 0 22px;
  font-size: 34px;
}
.prose p, .prose li {
  color: #365660;
  line-height: 1.95;
  font-size: 14px;
  font-weight: 600;
}
.prose ul { padding-left: 1.2em; }

.commission-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.commission-row {
  background: white;
  padding: 24px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
}
.commission-row b {
  color: var(--cyan-2);
  letter-spacing: .12em;
  font-size: 11px;
}
.commission-row span {
  color: #365660;
  line-height: 1.7;
  font-size: 14px;
  font-weight: 600;
}

.blog-list { display: grid; gap: 15px; }
.blog-card {
  border: 1px solid var(--line);
  background: white;
  padding: 24px 27px;
  position: relative;
}
.blog-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--cyan);
}
.blog-card .meta {
  font-size: 10px;
  color: var(--cyan-2);
  font-weight: 900;
  letter-spacing: .13em;
}
.blog-card h2 { margin: 9px 0 10px; font-size: 23px; }
.blog-card p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 13px; }

.empty-blog {
  border: 1px dashed rgba(47,143,255,.38);
  padding: 44px;
  text-align: center;
  background: rgba(255,255,255,.6);
}
.empty-blog b {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 36px;
  margin-bottom: 8px;
}
.empty-blog p { color: var(--muted); margin: 0; line-height: 1.7; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}
.contact-link {
  min-height: 150px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease;
}
.contact-link:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-2);
}
.contact-link b {
  display: block;
  color: var(--cyan-2);
  letter-spacing: .13em;
  font-size: 10px;
  margin-bottom: 15px;
}
.contact-link strong {
  font-size: 24px;
}
.contact-link p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.footer {
  color: white;
  background: #041116;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 46px 22px 34px;
}
.footer-inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.footer .stamp {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
}
.footer small {
  color: #88a3ac;
  font-size: 10px;
  letter-spacing: .11em;
}

.statusbar {
  position: fixed;
  right: 13px;
  bottom: 13px;
  z-index: 70;
  background: rgba(6,21,29,.9);
  color: white;
  padding: 8px 11px;
  border-left: 3px solid var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2,10,14,.93);
  display: none;
  place-items: center;
  padding: 28px;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-height: 88vh;
  max-width: min(1200px, 92vw);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.lightbox button {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.open { display: block; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 70px 22px 40px;
  }
  .hero h1 { max-width: 700px; }
  .hero-art {
    min-height: auto;
    padding: 0 0 56px 22px;
  }
  .hero-art-frame img { min-height: 0; }
  .hero-tag { top: 18px; right: 20px; }

  .works-grid { grid-template-columns: 1fr 1fr; }
  .work.featured {
    grid-column: span 2;
    min-height: auto;
    grid-row: auto;
  }
  .work.featured img { min-height: 0; }

  .about-layout { grid-template-columns: 1fr; }
  .signal-row { grid-template-columns: 1fr; }
  .signal { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .signal:last-child { border-bottom: 0; }

  .content-grid { grid-template-columns: 1fr; gap: 22px; }
  .side-label { max-width: 260px; }
}

@media (max-width: 680px) {
  :root { --nav-h: 62px; --cut: 16px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text { font-size: 18px; }

  .hero-copy { padding-top: 52px; }
  .hero-sub { font-size: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .btn { padding: 0 15px; }
  .hero-art { padding-left: 12px; padding-bottom: 38px; }

  .section { padding: 76px 16px; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lede { margin-left: 0; }

  .works-grid { grid-template-columns: 1fr; }
  .work.featured { grid-column: auto; }
  .work, .empty-slot { min-height: 260px; }
  .work.featured { min-height: auto; }

  .about-layout { gap: 34px; }
  .cta-panel { padding: 36px 24px; }

  .page-hero { min-height: 310px; }
  .commission-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-links { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .statusbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* v0.2 gallery */
.art-button {
  all: unset;
  display: block;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
}

.showcase-grid .work.wide,
.archive-grid .work.wide {
  grid-column: span 2;
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-auto-flow: dense;
}

.archive-grid .work.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.archive-grid .work.portrait {
  grid-row: span 2;
}

.work.contain img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(89,199,255,.05), transparent 38%),
    #fff;
}

.gallery-intro {
  margin: -10px 0 28px 158px;
  max-width: 760px;
  border-left: 4px solid var(--lime);
  padding-left: 16px;
}

.gallery-intro span {
  display: block;
  color: var(--cyan-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 6px;
}

.gallery-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  font-weight: 700;
}

/* Keep taps comfortable on phones */
@media (hover: none) and (pointer: coarse) {
  .desktop-nav a,
  .mobile-nav a,
  .btn,
  .menu-toggle,
  .art-button {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 980px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .archive-grid .work.featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .archive-grid .work.portrait {
    grid-row: auto;
  }
  .gallery-intro {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 28px 28px;
  }

  .nav-wrap {
    padding-inline: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    padding: 42px 16px 28px;
  }

  .hero h1 {
    font-size: clamp(54px, 19vw, 86px);
    line-height: .82;
  }

  .hero-sub {
    margin-top: 20px;
  }

  .hero-art {
    padding: 0 0 34px 12px;
  }

  .hero-art-frame {
    clip-path: polygon(6% 0, 100% 0, 100% 91%, 91% 100%, 0 100%, 0 7%);
  }

  .hero-tag {
    right: 12px;
    top: 10px;
    font-size: 8px;
    padding: 8px 10px;
  }

  .sonar {
    width: 100px;
    height: 100px;
  }

  .archive-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .archive-grid .work.featured,
  .showcase-grid .work.wide,
  .archive-grid .work.wide {
    grid-column: auto;
  }

  .work,
  .empty-slot {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .work.featured {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .work.portrait {
    aspect-ratio: 4 / 5;
  }

  .work-meta {
    padding: 10px 12px 9px;
    min-width: 0;
    max-width: 92%;
  }

  .work-meta small {
    font-size: 8px;
  }

  .work-meta strong {
    font-size: 13px;
  }

  .page-hero h1 {
    font-size: clamp(58px, 21vw, 105px);
  }

  .gallery-intro {
    margin: -8px 0 22px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 84vh;
  }

  .lightbox button {
    right: 12px;
    top: 12px;
    background: rgba(6,21,29,.75);
  }
}


/* =========================================================
   v0.3 HERO LAYOUT FIX
   Fixes desktop overlap visible around 1600px-wide viewports.
   ========================================================= */

.hero {
  width: min(100%, 1440px);
  grid-template-columns: minmax(430px, 0.86fr) minmax(620px, 1.14fr);
  padding-inline: 28px;
  gap: 24px;
}

.hero-copy {
  padding: 78px 22px 74px 18px;
  min-width: 0;
}

.hero h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(60px, 5.25vw, 90px);
  line-height: .84;
  letter-spacing: -.045em;
  overflow: visible;
}

.hero h1 .outline {
  font-size: .74em;
  letter-spacing: -.035em;
  white-space: nowrap;
  -webkit-text-stroke-width: 2px;
}

.hero-sub {
  max-width: 430px;
  font-size: 14px;
  line-height: 1.85;
}

.hero-art {
  min-width: 0;
  padding: 60px 0 60px 0;
}

.hero-art-frame {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
}

.hero-art-frame img {
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-tag {
  right: 18px;
  top: 58px;
}

.sonar {
  left: -2%;
  bottom: 2%;
}

/* Mid-sized desktop / laptop */
@media (max-width: 1260px) and (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(360px, .82fr) minmax(540px, 1.18fr);
    gap: 16px;
    padding-inline: 20px;
  }

  .hero-copy {
    padding: 62px 16px 60px 8px;
  }

  .hero h1 {
    font-size: clamp(54px, 5.6vw, 72px);
  }

  .hero h1 .outline {
    font-size: .72em;
  }

  .hero-sub {
    max-width: 360px;
    font-size: 13px;
  }

  .hero-art {
    padding-block: 44px;
  }

  .hero-tag {
    top: 42px;
  }
}

/* Tablet: stack earlier, before the hero gets cramped */
@media (max-width: 980px) {
  .hero {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .hero-copy {
    padding: 66px 28px 36px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(64px, 11vw, 96px);
  }

  .hero h1 .outline {
    font-size: .72em;
  }

  .hero-sub {
    max-width: 520px;
  }

  .hero-art {
    padding: 0 0 56px 22px;
  }

  .hero-art-frame {
    max-width: none;
  }

  .hero-art-frame img {
    aspect-ratio: auto;
  }

  .hero-tag {
    top: 16px;
    right: 18px;
  }
}

@media (max-width: 680px) {
  .hero-copy {
    padding: 46px 16px 28px;
  }

  .hero h1 {
    font-size: clamp(52px, 18.2vw, 80px);
    line-height: .83;
  }

  .hero h1 .outline {
    font-size: .68em;
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 13px;
  }

  .hero-art {
    padding: 0 0 36px 10px;
  }
}

/* Better readable labels on high-DPI screens */
.route-code {
  line-height: 1.35;
}

@media (min-width: 981px) {
  .hero-actions {
    max-width: 420px;
  }
}


/* =========================================================
   v0.4 / HEKIKAI CENTRAL
   Desktop hero rebuilt so typography never invades artwork.
   ========================================================= */

.brand {
  min-width: 330px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  min-width: 0;
  font-family: "Arial Black", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.brand-text .brand-jp {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin: 0;
  color: var(--cyan-2);
  font: 800 8px/1.2 "Arial Narrow", sans-serif;
  letter-spacing: .13em;
  white-space: nowrap;
}

.hero-site-name {
  width: max-content;
  margin: 0 0 10px;
  padding: 5px 9px 4px;
  color: var(--white);
  background: var(--cyan-2);
  font: 900 9px/1 "Arial Narrow", sans-serif;
  letter-spacing: .18em;
  transform: skewX(-10deg);
}

/* Hard desktop isolation: text and artwork are separate boxes. */
@media (min-width: 981px) {
  .hero {
    width: min(calc(100% - 44px), 1380px);
    min-height: 690px;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 34px;
    padding: 0;
  }

  .hero-copy {
    width: 410px;
    max-width: 410px;
    padding: 80px 0 72px;
    overflow: hidden;
  }

  .route-code {
    max-width: 100%;
    font-size: 10px;
    white-space: nowrap;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    line-height: .86;
  }

  .hero h1 .ruki-word {
    display: block;
    font-size: 78px;
    line-height: .8;
    letter-spacing: -.055em;
    white-space: nowrap;
  }

  .hero h1 .outline {
    display: block;
    width: 100%;
    margin-top: 7px;
    font-size: 43px;
    line-height: .88;
    letter-spacing: -.035em;
    white-space: nowrap;
    -webkit-text-stroke: 1.7px var(--ink);
  }

  .hero-sub {
    width: 100%;
    max-width: 390px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-actions {
    width: 100%;
    max-width: 390px;
  }

  .hero-art {
    min-width: 0;
    width: 100%;
    padding: 58px 0 58px;
  }

  .hero-art-frame {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-art-frame img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  .hero-tag {
    right: 16px;
    top: 56px;
  }
}

/* Laptop: still two columns, but make the label smaller before stacking. */
@media (max-width: 1180px) and (min-width: 981px) {
  .hero {
    width: min(calc(100% - 32px), 1120px);
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy {
    width: 340px;
    max-width: 340px;
    padding-top: 62px;
  }

  .hero h1 .ruki-word { font-size: 66px; }
  .hero h1 .outline { font-size: 35px; }
  .hero-sub { font-size: 13px; max-width: 330px; }
  .route-code { font-size: 9px; }
}

/* Tablet/mobile retains the successful stacked composition. */
@media (max-width: 980px) {
  .brand { min-width: 0; }
  .brand-text .brand-jp { font-size: 16px; }
  .brand-text small { display: none; }

  .hero-site-name {
    margin-bottom: 9px;
  }

  .hero h1 .ruki-word {
    display: block;
    font-size: 1em;
    line-height: .8;
  }

  .hero h1 .outline {
    display: block;
    width: auto;
    font-size: .68em;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .brand-text .brand-jp {
    font-size: 14px;
    letter-spacing: .01em;
  }
  .hero-site-name { font-size: 8px; }
}

.footer .stamp span {
  color: var(--cyan);
  font-size: .68em;
}

.build-id {
  color: var(--lime);
  margin-left: 8px;
}


/* =========================================================
   v0.5 TYPOGRAPHY / COMMISSION ROUTE
   ========================================================= */

:root {
  --display-font: "Arial Black", "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
  --ui-font: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
}

/* Give the entire UI a little more air */
body {
  font-family: var(--ui-font);
  letter-spacing: .025em;
  line-height: 1.65;
}

/* Header / navigation */
.brand-text {
  font-family: var(--display-font);
  font-size: 19px;
  line-height: 1.02;
  letter-spacing: .035em;
}

.brand-text small {
  margin-top: 6px;
  font-family: var(--ui-font);
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .16em;
}

.desktop-nav a {
  min-width: 116px;
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.mobile-nav a {
  font-family: var(--ui-font);
  letter-spacing: .16em;
}

/* Hero */
.hero h1 {
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: .005em;
  line-height: .96;
}

.hero h1 .outline {
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.02;
  white-space: nowrap;
}

.route-code {
  letter-spacing: .22em;
  line-height: 1.6;
}

.hero-sub {
  letter-spacing: .035em;
  line-height: 1.95;
}

/* Big section headings */
.section-title,
.page-hero h1,
.cta-panel h2,
.footer .stamp,
.profile-core .name {
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.0;
}

.section-title {
  line-height: 1.04;
}

.page-hero h1 {
  line-height: .98;
}

.section-no,
.side-label,
.work-meta small,
.signal b,
.contact-link b,
.blog-card .meta,
.gallery-intro span {
  font-family: var(--ui-font);
  letter-spacing: .20em;
  line-height: 1.5;
}

/* Paragraph spacing */
.lede,
.about-copy p,
.prose p,
.prose li,
.signal p,
.contact-link p,
.blog-card p,
.commission-row span {
  letter-spacing: .035em;
  line-height: 1.9;
}

/* Buttons */
.btn {
  font-family: var(--ui-font);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.35;
  min-height: 50px;
}

/* Work captions */
.work-meta strong {
  letter-spacing: .04em;
  line-height: 1.4;
}

/* External commission CTA */
.tsunagu-panel {
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(110deg, rgba(89,199,255,.10), transparent 40%),
    #06151d;
  color: white;
  border-left: 6px solid var(--lime);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.tsunagu-panel::after {
  content: "REQUEST PORT";
  position: absolute;
  right: 18px;
  top: 13px;
  color: rgba(255,255,255,.12);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tsunagu-panel small {
  display: block;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  margin-bottom: 10px;
}

.tsunagu-panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: .03em;
  line-height: 1.25;
}

.tsunagu-panel p {
  color: #c4d8de;
  margin: 0 0 20px;
  line-height: 1.9;
  letter-spacing: .03em;
}

.tsunagu-panel .btn {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.tsunagu-panel .btn:hover {
  background: white;
  border-color: white;
}

/* Make contact cards less compressed */
.contact-link {
  padding: 30px;
}
.contact-link strong {
  display: block;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: .035em;
  margin-bottom: 8px;
}

/* Mobile: keep comfortable spacing */
@media (max-width: 680px) {
  .brand-text {
    font-size: 18px;
  }

  .hero h1 {
    line-height: .94;
    letter-spacing: 0;
  }

  .hero h1 .outline {
    line-height: 1.0;
    letter-spacing: .005em;
  }

  .section-title {
    line-height: 1.03;
  }

  .page-hero h1 {
    line-height: .96;
  }

  .desktop-nav a,
  .btn {
    letter-spacing: .13em;
  }

  .tsunagu-panel {
    padding: 26px 20px;
  }

  .tsunagu-panel::after {
    font-size: 19px;
    top: 10px;
  }
}


/* =========================================================
   v0.6 / AQUARIUM MOTION SYSTEM
   Subtle future-aquarium motion without obscuring artwork.
   ========================================================= */

/* Fix: route line must never overlap GATE text */
.route-code {
  position: relative;
  gap: 14px;
  isolation: isolate;
}

.route-code::before {
  flex: 0 0 58px;
  width: 58px;
  height: 4px;
  margin: 0;
  box-shadow: none;
  transform: skewX(-24deg);
  background:
    linear-gradient(90deg,
      var(--lime) 0 54%,
      transparent 54% 60%,
      var(--cyan) 60% 100%);
  animation: gate-line-signal 3.8s ease-in-out infinite;
}

@keyframes gate-line-signal {
  0%, 100% { opacity: .78; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.16); }
}

/* Animated colored system line */
.topline {
  background-size: 220% 100%;
  animation: system-stream 14s linear infinite;
}

@keyframes system-stream {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

/* Site-wide, almost invisible refracted-water shimmer */
.site-shell::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  opacity: .20;
  background:
    radial-gradient(ellipse at 18% 26%, rgba(89,199,255,.20) 0 1.4%, transparent 2.1%),
    radial-gradient(ellipse at 68% 42%, rgba(67,222,199,.15) 0 1.1%, transparent 2%),
    radial-gradient(ellipse at 42% 78%, rgba(107,104,255,.12) 0 1.3%, transparent 2.2%),
    repeating-linear-gradient(112deg,
      transparent 0 74px,
      rgba(89,199,255,.035) 75px 77px,
      transparent 78px 142px);
  background-size: 310px 220px, 370px 280px, 420px 320px, 250px 250px;
  animation: caustic-drift 24s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

@keyframes caustic-drift {
  0%   { transform: translate3d(-1.5%, -1%, 0) rotate(-.4deg); }
  50%  { transform: translate3d(1%, .6%, 0) rotate(.3deg); }
  100% { transform: translate3d(1.8%, -1.2%, 0) rotate(-.2deg); }
}

/* Bubbles are generated by JS so HTML stays clean */
.bubble-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.aqua-bubble {
  position: absolute;
  left: var(--x);
  bottom: -46px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: 0;
  border: 1px solid rgba(47,143,255,.24);
  background:
    radial-gradient(circle at 33% 27%,
      rgba(255,255,255,.72) 0 9%,
      rgba(89,199,255,.08) 13% 46%,
      rgba(67,222,199,.05) 47% 67%,
      transparent 70%);
  box-shadow:
    inset -2px -3px 5px rgba(47,143,255,.07),
    0 0 10px rgba(89,199,255,.04);
  animation:
    bubble-rise var(--duration) linear var(--delay) infinite,
    bubble-sway var(--sway-duration) ease-in-out var(--delay) infinite alternate;
  will-change: transform, opacity;
}

@keyframes bubble-rise {
  0%   { translate: 0 0; opacity: 0; }
  8%   { opacity: var(--opacity); }
  85%  { opacity: var(--opacity); }
  100% { translate: 0 calc(-100vh - 120px); opacity: 0; }
}

@keyframes bubble-sway {
  from { margin-left: -7px; }
  to   { margin-left: 9px; }
}

/* Hero artwork: a subtle moving water-light layer */
.hero-art-frame::after {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 2;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: screen;
  background:
    repeating-radial-gradient(
      ellipse at 45% 30%,
      transparent 0 27px,
      rgba(89,199,255,.35) 30px 32px,
      transparent 35px 62px
    );
  transform: rotate(-7deg) translate3d(-4%, 0, 0);
  animation: tank-light 13s ease-in-out infinite alternate;
}

@keyframes tank-light {
  from { transform: rotate(-7deg) translate3d(-4%, -2%, 0) scale(1.02); }
  to   { transform: rotate(-4deg) translate3d(4%, 2%, 0) scale(1.06); }
}

/* Slight mechanical hover, less than 4px */
@media (min-width: 981px) {
  .hero-art-frame {
    animation: display-float 7s ease-in-out infinite;
  }
}

@keyframes display-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}

/* Sonar/radar becomes a living UI element */
.sonar {
  animation: sonar-base 5.5s linear infinite;
}

.sonar::before {
  animation: sonar-ring 2.8s ease-out infinite;
}

.sonar::after {
  animation: sonar-ring 2.8s ease-out .9s infinite;
}

.sonar::marker { display: none; }

@keyframes sonar-base {
  0%   { transform: rotate(0deg); opacity: .7; }
  50%  { opacity: 1; }
  100% { transform: rotate(360deg); opacity: .7; }
}

@keyframes sonar-ring {
  0%   { transform: scale(.88); opacity: .22; }
  42%  { opacity: .8; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* Tiny live system dot in the bottom status HUD */
.statusbar::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(217,255,103,.45);
  vertical-align: 1px;
  animation: hud-pulse 1.9s ease-out infinite;
}

@keyframes hud-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,255,103,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(217,255,103,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,255,103,0); }
}

/* Artwork / sections reveal only when JS confirms motion support */
html.motion-ok .section-head,
html.motion-ok .lede,
html.motion-ok .work,
html.motion-ok .signal,
html.motion-ok .about-layout,
html.motion-ok .content-grid > *,
html.motion-ok .contact-link,
html.motion-ok .commission-row,
html.motion-ok .tsunagu-panel {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .62s ease,
    transform .62s cubic-bezier(.2,.72,.2,1);
}

html.motion-ok .motion-in {
  opacity: 1;
  transform: translateY(0);
}

/* stagger artwork without making people wait */
html.motion-ok .work:nth-child(2) { transition-delay: .05s; }
html.motion-ok .work:nth-child(3) { transition-delay: .10s; }
html.motion-ok .work:nth-child(4) { transition-delay: .15s; }
html.motion-ok .work:nth-child(5) { transition-delay: .20s; }

/* Little scanning sheen on buttons, but only on hover-capable devices */
@media (hover: hover) {
  .btn {
    overflow: hidden;
  }

  .btn::after {
    content: "";
    position: absolute;
    inset: -30% auto -30% -36%;
    width: 22%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transition: left .48s ease;
    pointer-events: none;
  }

  .btn:hover::after {
    left: 118%;
  }

  .work::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 0 solid transparent;
    transition: box-shadow .22s ease;
  }

  .work:hover::after {
    box-shadow: inset 0 0 0 2px rgba(89,199,255,.42);
  }
}

/* On phones, fewer bubbles and no floating hero frame. */
@media (max-width: 680px) {
  .aqua-bubble:nth-child(n+8) {
    display: none;
  }

  .site-shell::after {
    opacity: .13;
  }

  .hero-art-frame {
    animation: none;
  }

  .hero-art-frame::after {
    opacity: .09;
  }

  .route-code::before {
    flex-basis: 46px;
    width: 46px;
  }
}

/* Respect OS accessibility setting */
@media (prefers-reduced-motion: reduce) {
  .topline,
  .site-shell::after,
  .aqua-bubble,
  .hero-art-frame,
  .hero-art-frame::after,
  .sonar,
  .sonar::before,
  .sonar::after,
  .statusbar::before,
  .route-code::before {
    animation: none !important;
  }

  html.motion-ok .section-head,
  html.motion-ok .lede,
  html.motion-ok .work,
  html.motion-ok .signal,
  html.motion-ok .about-layout,
  html.motion-ok .content-grid > *,
  html.motion-ok .contact-link,
  html.motion-ok .commission-row,
  html.motion-ok .tsunagu-panel {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* =========================================================
   v0.7 / SECTOR TRANSIT
   Diagonal multi-panel page transition.
   ========================================================= */

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: none;
  visibility: visible;
}

.page-wipe__panel {
  position: absolute;
  top: -12vh;
  left: -10vw;
  width: 120vw;
  height: 124vh;
  transform: translate3d(0, 0, 0) skewX(-9deg);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.page-wipe__panel--aqua {
  background: #43dec7;
  z-index: 1;
}
.page-wipe__panel--cyan {
  background: #59c7ff;
  z-index: 2;
}
.page-wipe__panel--violet {
  background: #6b68ff;
  z-index: 3;
}
.page-wipe__panel--dark {
  background:
    linear-gradient(112deg, rgba(89,199,255,.11), transparent 30%),
    #06151d;
  z-index: 4;
}

/* Lines on the final dark wall, like an aquarium sector shutter */
.page-wipe__panel--dark::before,
.page-wipe__panel--dark::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  height: 4px;
  background:
    linear-gradient(90deg,
      transparent 0 4%,
      #59c7ff 4% 37%,
      #d9ff67 37% 48%,
      #6b68ff 48% 72%,
      #ff9864 72% 82%,
      #43dec7 82% 96%,
      transparent 96%);
  opacity: .85;
}
.page-wipe__panel--dark::before { top: 24%; }
.page-wipe__panel--dark::after  { bottom: 24%; transform: scaleX(.72); transform-origin: left; }

.page-wipe__hud {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) skewX(-7deg);
  color: white;
  text-align: center;
  opacity: 1;
  min-width: min(78vw, 620px);
}

.page-wipe__code {
  display: block;
  color: var(--lime);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 900;
  letter-spacing: .34em;
  margin-bottom: 10px;
}

.page-wipe__route {
  display: block;
  font-size: clamp(18px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.15;
}

/* 
   First frame on a newly loaded page = fully covered.
   Then JS adds .is-revealing and all walls depart to the right.
*/
.page-wipe.is-revealing .page-wipe__panel {
  transform: translate3d(128vw, 0, 0) skewX(-9deg);
}
.page-wipe.is-revealing .page-wipe__panel--aqua {
  transition: transform .68s cubic-bezier(.72,0,.17,1) .00s;
}
.page-wipe.is-revealing .page-wipe__panel--cyan {
  transition: transform .68s cubic-bezier(.72,0,.17,1) .055s;
}
.page-wipe.is-revealing .page-wipe__panel--violet {
  transition: transform .68s cubic-bezier(.72,0,.17,1) .11s;
}
.page-wipe.is-revealing .page-wipe__panel--dark {
  transition: transform .70s cubic-bezier(.72,0,.17,1) .165s;
}
.page-wipe.is-revealing .page-wipe__hud {
  opacity: 0;
  transform: translate(-42%, -50%) skewX(-7deg);
  transition: opacity .28s ease .14s, transform .42s ease .06s;
}

/* Resting state after the reveal: panels wait off-screen on the LEFT. */
.page-wipe.is-armed {
  visibility: hidden;
}
.page-wipe.is-armed .page-wipe__panel {
  transform: translate3d(-128vw, 0, 0) skewX(-9deg);
  transition: none !important;
}
.page-wipe.is-armed .page-wipe__hud {
  opacity: 0;
  transition: none !important;
}

/* Link click: the colored walls sweep in from left, one after another. */
.page-wipe.is-covering {
  visibility: visible;
}
.page-wipe.is-covering .page-wipe__panel {
  transform: translate3d(0, 0, 0) skewX(-9deg);
}
.page-wipe.is-covering .page-wipe__panel--aqua {
  transition: transform .52s cubic-bezier(.74,0,.18,1) .00s !important;
}
.page-wipe.is-covering .page-wipe__panel--cyan {
  transition: transform .52s cubic-bezier(.74,0,.18,1) .045s !important;
}
.page-wipe.is-covering .page-wipe__panel--violet {
  transition: transform .52s cubic-bezier(.74,0,.18,1) .09s !important;
}
.page-wipe.is-covering .page-wipe__panel--dark {
  transition: transform .54s cubic-bezier(.74,0,.18,1) .135s !important;
}
.page-wipe.is-covering .page-wipe__hud {
  opacity: 1;
  transform: translate(-50%, -50%) skewX(-7deg);
  transition: opacity .24s ease .24s, transform .34s ease .18s !important;
}

/* Quick flash at the leading edge of the shutter */
.page-wipe.is-covering::after {
  content: "";
  position: absolute;
  z-index: 6;
  top: -20vh;
  bottom: -20vh;
  width: 8px;
  left: 52%;
  background: rgba(255,255,255,.82);
  box-shadow:
    0 0 18px rgba(89,199,255,.72),
    0 0 48px rgba(67,222,199,.34);
  transform: skewX(-9deg);
  opacity: 0;
  animation: wipe-edge-flash .36s ease .18s both;
}

@keyframes wipe-edge-flash {
  0%   { opacity: 0; transform: translateX(-42vw) skewX(-9deg); }
  38%  { opacity: .9; }
  100% { opacity: 0; transform: translateX(58vw) skewX(-9deg); }
}

/* ---------------------------------------------------------
   Button / navigation press response
   --------------------------------------------------------- */
.btn,
.desktop-nav a,
.mobile-nav a,
.contact-link {
  -webkit-tap-highlight-color: transparent;
}

.btn {
  transition:
    transform .13s ease,
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.btn:active,
.btn.is-pressed {
  transform: translate3d(3px, 2px, 0);
  box-shadow:
    inset 7px 0 0 var(--lime),
    0 0 0 1px rgba(89,199,255,.26);
}

.btn.is-pressed::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border-top: 2px solid var(--cyan);
  border-bottom: 2px solid var(--lime);
  animation: button-scan .22s ease both;
}

@keyframes button-scan {
  from { opacity: 0; transform: scaleX(.25); }
  45%  { opacity: 1; }
  to   { opacity: 0; transform: scaleX(1); }
}

.desktop-nav a:active,
.mobile-nav a:active {
  background: rgba(89,199,255,.15);
}

/* A clearer little feedback pulse for the aquarium HUD */
.statusbar.nav-pulse {
  animation: status-click .42s ease;
}

@keyframes status-click {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(-7px); border-left-color: var(--cyan); }
  100% { transform: translateX(0); }
}

/* Make the ambient system a little more visible than v0.6 */
.aqua-bubble {
  border-color: rgba(47,143,255,.32);
}

.hero-art-frame::after {
  opacity: .19;
}

.sonar {
  border-color: rgba(47,143,255,.5);
}

/* Mobile: same transition, slightly faster and larger angle */
@media (max-width: 680px) {
  .page-wipe__panel {
    left: -20vw;
    width: 140vw;
    transform: translate3d(0,0,0) skewX(-12deg);
  }

  .page-wipe.is-revealing .page-wipe__panel {
    transform: translate3d(145vw,0,0) skewX(-12deg);
  }

  .page-wipe.is-armed .page-wipe__panel {
    transform: translate3d(-145vw,0,0) skewX(-12deg);
  }

  .page-wipe.is-covering .page-wipe__panel {
    transform: translate3d(0,0,0) skewX(-12deg);
  }

  .page-wipe__hud {
    min-width: 84vw;
  }

  .page-wipe__route {
    font-size: 20px;
    letter-spacing: .08em;
  }
}

/*
 Reduced-motion users still get an instant sector cut rather than a long animation.
 This keeps navigation usable without forcing motion.
*/
@media (prefers-reduced-motion: reduce) {
  .page-wipe.is-revealing .page-wipe__panel,
  .page-wipe.is-covering .page-wipe__panel {
    transition-duration: .08s !important;
    transition-delay: 0s !important;
  }
  .page-wipe__hud {
    transition-duration: .06s !important;
  }
}
