:root {
  --portal-night: #08111f;
  --portal-night-soft: #0d1a2c;
  --portal-paper: #f6f8fb;
  --portal-ink: #10131c;
  --portal-muted: #667085;
  --portal-line: rgba(16, 19, 28, 0.12);
  --portal-blue: #0a84ff;
  --portal-blue-bright: #45a6ff;
  --portal-teal: #14b8a6;
  --portal-coral: #ff6b5a;
  --portal-gold: #f5b544;
  --portal-green: #43c883;
  --portal-shadow: 0 28px 80px rgba(8, 17, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--portal-night);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--portal-ink);
  background: var(--portal-paper);
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--portal-blue-bright);
  outline-offset: 4px;
}

.portal-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: #fff;
  background: rgba(8, 17, 31, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.portal-nav.is-scrolled {
  background: rgba(8, 17, 31, 0.9);
  box-shadow: 0 12px 36px rgba(3, 8, 20, 0.24);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.portal-brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--portal-blue);
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.34);
}

.portal-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.portal-nav-links a,
.portal-github-mini {
  min-height: 38px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.portal-nav-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.portal-github-mini {
  color: var(--portal-night);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.portal-github-mini:hover {
  background: #eaf5ff;
}

.portal-github-mini svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.portal-hero {
  position: relative;
  z-index: 0;
  min-height: min(880px, 92svh);
  display: grid;
  align-items: center;
  padding: 126px max(24px, calc((100vw - 1180px) / 2)) 80px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--portal-night);
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.96) 0%, rgba(8, 17, 31, 0.82) 40%, rgba(8, 17, 31, 0.28) 78%, rgba(8, 17, 31, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 17, 31, 0.9), transparent 32%);
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 30%;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(0deg, var(--portal-night), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 74px);
}

.portal-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.portal-hero-glow {
  position: absolute;
  z-index: 1;
  width: 680px;
  height: 680px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.3), rgba(20, 184, 166, 0.08) 48%, transparent 70%);
  filter: blur(14px);
  animation: portal-glow-breathe 8s ease-in-out infinite;
}

.portal-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
}

.portal-device {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  top: 116px;
  width: min(520px, 43vw);
  aspect-ratio: 1.2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #0b1220;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.58),
    0 0 0 10px rgba(255, 255, 255, 0.035),
    0 0 90px rgba(10, 132, 255, 0.2);
  transform: perspective(1100px) rotateY(-7deg) rotateX(3deg) translate3d(var(--portal-x, 0), var(--portal-y, 0), 0);
  animation: portal-device-float 9s ease-in-out infinite;
}

.portal-device::after {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  background: linear-gradient(130deg, transparent 34%, rgba(255, 255, 255, 0.12), transparent 68%);
  transform: translateX(-120%);
  animation: portal-device-shine 8s ease-in-out infinite 1.2s;
}

.portal-device-bar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.52);
  background: #0c1728;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
}

.portal-device-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--portal-coral);
}

.portal-device-bar i:nth-child(2) {
  background: var(--portal-gold);
}

.portal-device-bar i:nth-child(3) {
  background: var(--portal-green);
}

.portal-device-bar b {
  margin-left: auto;
  font-weight: 600;
}

.portal-device > img {
  width: 100%;
  height: calc(100% - 42px);
  display: block;
  object-fit: cover;
  object-position: top;
  opacity: 0.9;
}

.portal-float {
  position: absolute;
  min-width: 206px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(13, 26, 44, 0.84);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transform: translate3d(var(--portal-x, 0), var(--portal-y, 0), 0);
}

.portal-float > img,
.portal-float-symbol {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
}

.portal-float-symbol {
  display: grid;
  place-items: center;
  color: #00131a;
  background: linear-gradient(135deg, #54e6ff, #8dffcf);
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(84, 230, 255, 0.24);
}

.portal-float span:not(.portal-float-symbol, .portal-code-pulse) {
  display: grid;
  gap: 2px;
}

.portal-float strong {
  font-size: 0.83rem;
}

.portal-float small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.portal-float-knot {
  right: min(520px, 42vw);
  top: 172px;
  animation: portal-chip-float 7s ease-in-out infinite -1s;
}

.portal-float-nova {
  right: max(24px, calc((100vw - 1230px) / 2));
  bottom: 164px;
  animation: portal-chip-float 8s ease-in-out infinite -4s;
}

.portal-float-code {
  min-width: 224px;
  right: min(470px, 39vw);
  bottom: 92px;
  animation: portal-chip-float 6.5s ease-in-out infinite -2.2s;
}

.portal-code-pulse {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--portal-green);
  box-shadow: 0 0 0 8px rgba(67, 200, 131, 0.12);
  animation: portal-pulse 1.8s ease-in-out infinite;
}

.portal-hero-content {
  position: relative;
  z-index: 4;
  width: min(625px, 58vw);
  display: grid;
  gap: 20px;
  animation: portal-hero-enter 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.portal-badge {
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 6px 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--portal-blue-bright);
  box-shadow: 0 0 0 6px rgba(69, 166, 255, 0.13);
}

.portal-hero h1 {
  margin: 0;
  display: grid;
  width: fit-content;
  font-size: clamp(4.5rem, 8.4vw, 8.2rem);
  line-height: 0.74;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.portal-hero h1 span:last-child {
  margin-left: 0.36em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.76);
}

.portal-lead {
  max-width: 58ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.03rem;
  line-height: 1.9;
}

.portal-hero-actions,
.portal-final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.portal-action {
  min-height: 50px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portal-action:hover {
  transform: translateY(-3px);
}

.portal-action-primary {
  color: #fff;
  background: var(--portal-blue);
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.34);
}

.portal-action-primary:hover {
  background: #2492ff;
  box-shadow: 0 22px 48px rgba(10, 132, 255, 0.44);
}

.portal-action-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.portal-action-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.portal-subnote {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.portal-scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.portal-scroll-cue span {
  width: 28px;
  height: 42px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.portal-scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  animation: portal-scroll-dot 1.8s ease-in-out infinite;
}

.portal-proof {
  width: min(1180px, calc(100vw - 32px));
  margin: -20px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-proof article {
  min-height: 122px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(16, 19, 28, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(8, 17, 31, 0.1);
}

.portal-proof strong {
  color: var(--portal-blue);
  font-size: 2.2rem;
  line-height: 1;
}

.portal-proof span {
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.portal-section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 108px 0;
}

.portal-section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: 8px 42px;
  align-items: end;
  margin-bottom: 36px;
}

.portal-section-head p,
.portal-minecraft-copy > p,
.portal-github-copy > p,
.portal-final-cta p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--portal-blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-section-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.portal-section-head > span {
  padding-bottom: 8px;
  color: var(--portal-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

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

.portal-service {
  position: relative;
  min-height: 510px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 28, 0.1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(8, 17, 31, 0.08);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portal-service:hover {
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: var(--portal-shadow);
}

.portal-service-knot,
.portal-service-blog {
  grid-column: span 6;
}

.portal-service-mc,
.portal-service-nova {
  grid-column: span 6;
}

.portal-service-knot {
  color: #fff;
  background:
    radial-gradient(circle at 75% 18%, rgba(10, 132, 255, 0.32), transparent 35%),
    var(--portal-night);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-service-blog {
  background:
    linear-gradient(125deg, transparent 50%, rgba(10, 132, 255, 0.07) 50% 62%, transparent 62%),
    #fff;
}

.portal-service-mc {
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.2), transparent 33%),
    #fff;
}

.portal-service-nova {
  color: #eef7ff;
  background:
    radial-gradient(circle at 80% 12%, rgba(84, 230, 255, 0.2), transparent 38%),
    #07111f;
  border-color: rgba(84, 230, 255, 0.18);
}

.portal-service-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--portal-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-service-knot .portal-service-top,
.portal-service-nova .portal-service-top {
  color: rgba(255, 255, 255, 0.55);
}

.portal-service-top b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.portal-service-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portal-green);
  box-shadow: 0 0 0 5px rgba(67, 200, 131, 0.12);
}

.portal-service-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  transform: translateZ(30px);
}

.portal-service-copy p {
  margin: 0 0 7px;
  color: var(--portal-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-service-nova .portal-service-copy p {
  color: #54e6ff;
}

.portal-service-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.portal-service-copy > span {
  max-width: 52ch;
  display: block;
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.portal-service-knot .portal-service-copy > span,
.portal-service-nova .portal-service-copy > span {
  color: rgba(255, 255, 255, 0.64);
}

.portal-service-link {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--portal-line);
  font-size: 0.84rem;
  font-weight: 900;
  transform: translateZ(34px);
}

.portal-service-knot .portal-service-link,
.portal-service-nova .portal-service-link {
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-knot-visual,
.portal-blog-visual,
.portal-map-visual,
.portal-nova-visual {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.portal-knot-visual {
  width: 300px;
  height: 300px;
  top: 35px;
  right: 30px;
  display: grid;
  place-items: center;
}

.portal-knot-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.2), transparent 66%);
}

.portal-knot-visual img {
  width: 90px;
  height: 90px;
  position: relative;
  z-index: 2;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(10, 132, 255, 0.42);
  animation: portal-chip-float 6s ease-in-out infinite;
}

.portal-knot-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.portal-knot-ring-one {
  inset: 18px;
  animation: portal-orbit 15s linear infinite;
}

.portal-knot-ring-one::after,
.portal-knot-ring-two::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 16%;
  right: 13%;
  border-radius: 50%;
  background: var(--portal-teal);
  box-shadow: 0 0 0 7px rgba(20, 184, 166, 0.12);
}

.portal-knot-ring-two {
  inset: 62px;
  animation: portal-orbit 11s linear infinite reverse;
}

.portal-knot-ring-two::after {
  top: auto;
  right: auto;
  bottom: 5%;
  left: 17%;
  background: var(--portal-coral);
  box-shadow: 0 0 0 7px rgba(255, 107, 90, 0.12);
}

.portal-blog-visual {
  top: 62px;
  right: 28px;
  width: min(350px, 62%);
  display: grid;
  gap: 8px;
  transform: rotate(-3deg);
}

.portal-blog-visual > div {
  min-height: 70px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  border: 1px solid rgba(16, 19, 28, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 13px 32px rgba(8, 17, 31, 0.09);
  animation: portal-article-drift 7s ease-in-out infinite;
}

.portal-blog-visual > div:nth-child(2) {
  margin-left: 34px;
  animation-delay: -2.4s;
}

.portal-blog-visual > div:nth-child(3) {
  margin-left: 68px;
  animation-delay: -4.7s;
}

.portal-blog-visual small {
  grid-row: span 3;
  color: var(--portal-blue);
  font-size: 0.56rem;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

.portal-blog-visual strong {
  font-size: 0.82rem;
}

.portal-blog-visual span {
  height: 4px;
  border-radius: 99px;
  background: #e5eaf1;
}

.portal-blog-visual span:last-child {
  width: 66%;
}

.portal-map-visual {
  top: 62px;
  right: 28px;
  width: min(355px, 62%);
  height: 230px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 25%, #90c486 0 8%, transparent 8.5%),
    radial-gradient(circle at 72% 64%, #7eb575 0 13%, transparent 13.5%),
    linear-gradient(145deg, #adc99d, #d9db9b);
  box-shadow: 0 24px 58px rgba(14, 69, 70, 0.18);
  transform: rotate(2deg);
}

.portal-map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background:
    linear-gradient(rgba(8, 17, 31, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 17, 31, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
}

.portal-map-river {
  position: absolute;
  width: 420px;
  height: 68px;
  left: -44px;
  top: 72px;
  border: 18px solid #60b8d1;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.72;
}

.portal-map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--portal-coral);
  box-shadow: 0 7px 16px rgba(8, 17, 31, 0.28);
  transform: rotate(-45deg);
  animation: portal-map-pin 2.4s ease-in-out infinite;
}

.portal-map-pin-one {
  left: 29%;
  top: 38%;
}

.portal-map-pin-two {
  right: 20%;
  bottom: 28%;
  background: var(--portal-blue);
  animation-delay: -1.1s;
}

.portal-map-visual > b {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 17, 31, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.portal-nova-visual {
  width: 320px;
  height: 280px;
  top: 42px;
  right: 20px;
  display: grid;
  place-items: center;
}

.portal-nova-visual::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 230, 255, 0.18), transparent 66%);
  filter: blur(4px);
}

.portal-nova-visual img {
  width: 112px;
  height: 112px;
  position: relative;
  z-index: 3;
  border-radius: 28px;
  box-shadow:
    0 28px 70px rgba(84, 230, 255, 0.24),
    0 0 0 10px rgba(255, 255, 255, 0.04);
  animation: portal-chip-float 6.8s ease-in-out infinite -2s;
}

.portal-nova-visual small {
  position: absolute;
  right: 6px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.portal-nova-orbit {
  position: absolute;
  border: 1px solid rgba(84, 230, 255, 0.18);
  border-radius: 50%;
}

.portal-nova-orbit-one {
  inset: 24px;
  animation: portal-orbit 17s linear infinite;
}

.portal-nova-orbit-two {
  inset: 68px;
  border-color: rgba(141, 255, 207, 0.2);
  animation: portal-orbit 10s linear infinite reverse;
}

.portal-nova-orbit-one::after,
.portal-nova-orbit-two::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 18%;
  right: 14%;
  border-radius: 50%;
  background: #54e6ff;
  box-shadow: 0 0 0 6px rgba(84, 230, 255, 0.1);
}

.portal-nova-orbit-two::after {
  top: auto;
  right: auto;
  bottom: 6%;
  left: 21%;
  background: #8dffcf;
}

.portal-minecraft {
  position: relative;
  min-height: 540px;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 80px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #0b1e28;
}

.portal-minecraft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 24, 31, 0.95), rgba(7, 24, 31, 0.7)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 46px);
}

.portal-minecraft-backdrop {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 42%, rgba(20, 184, 166, 0.34), transparent 24%),
    repeating-radial-gradient(circle, transparent 0 52px, rgba(255, 255, 255, 0.065) 53px 54px);
  animation: portal-orbit 30s linear infinite;
}

.portal-minecraft-copy > p {
  color: var(--portal-teal);
}

.portal-minecraft-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.portal-minecraft-copy > span {
  max-width: 58ch;
  display: block;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.portal-minecraft-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-minecraft-links a {
  min-height: 43px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-minecraft-links a:hover {
  background: rgba(255, 255, 255, 0.13);
}

.portal-server-panel {
  padding: 28px;
  display: grid;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.portal-server-panel > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.portal-server-panel code {
  color: #fff;
  font: 700 clamp(1.05rem, 2.2vw, 1.5rem) "Manrope", monospace;
  word-break: break-all;
}

.portal-server-panel button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #03241e;
  background: var(--portal-teal);
  font: 900 0.86rem "Manrope", "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.portal-server-panel button:hover {
  transform: translateY(-2px);
  background: #2bc8b7;
}

.portal-server-panel > span {
  min-height: 1.4em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.portal-projects {
  padding-bottom: 124px;
}

.portal-github-card {
  min-height: 420px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 58px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(10, 132, 255, 0.28), transparent 34%),
    var(--portal-night);
  box-shadow: var(--portal-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portal-github-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 100px rgba(8, 17, 31, 0.28);
}

.portal-github-terminal {
  min-height: 270px;
  padding: 0 24px 24px;
  display: grid;
  align-content: start;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: #050a12;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(-2deg);
}

.portal-github-terminal > span {
  height: 48px;
  margin: 0 -24px 4px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1321;
}

.portal-github-terminal i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--portal-coral);
}

.portal-github-terminal i:nth-child(2) {
  background: var(--portal-gold);
}

.portal-github-terminal i:nth-child(3) {
  background: var(--portal-green);
}

.portal-github-terminal code {
  color: rgba(255, 255, 255, 0.68);
  font: 600 clamp(0.75rem, 1.6vw, 0.95rem) "Manrope", monospace;
}

.portal-github-terminal b {
  color: var(--portal-green);
}

.portal-github-copy > p {
  color: var(--portal-blue-bright);
}

.portal-github-copy h3 {
  margin: 10px 0 22px;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.portal-github-copy > span {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  font-weight: 900;
}

.portal-final-cta {
  position: relative;
  min-height: 420px;
  padding: 80px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--portal-night);
}

.portal-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 70%, rgba(20, 184, 166, 0.24), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(10, 132, 255, 0.3), transparent 38%);
}

.portal-final-cta canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.46;
}

.portal-final-cta h2 {
  margin: 10px 0 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.portal-footer {
  min-height: 220px;
  padding: 52px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  color: rgba(255, 255, 255, 0.7);
  background: #050a12;
}

.portal-footer .portal-brand {
  color: #fff;
}

.portal-footer p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
}

.portal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.portal-footer nav a:hover {
  color: #fff;
}

.portal-footer small {
  grid-column: 1 / -1;
  align-self: end;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
}

@keyframes portal-hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes portal-device-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes portal-device-shine {
  0%,
  60% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes portal-chip-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 9px;
  }
}

@keyframes portal-article-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: -7px 5px;
  }
}

@keyframes portal-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes portal-map-pin {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes portal-pulse {
  50% {
    box-shadow: 0 0 0 12px rgba(67, 200, 131, 0.04);
  }
}

@keyframes portal-glow-breathe {
  50% {
    opacity: 0.72;
    scale: 1.08;
  }
}

@keyframes portal-scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 17px);
  }
}

@media (max-width: 1040px) {
  .portal-device {
    width: min(480px, 52vw);
    right: -60px;
    opacity: 0.74;
  }

  .portal-hero-content {
    width: min(600px, 66vw);
  }

  .portal-float-knot {
    right: min(380px, 40vw);
  }

  .portal-float-code {
    right: min(360px, 36vw);
  }

  .portal-service {
    min-height: 480px;
  }

  .portal-blog-visual,
  .portal-map-visual {
    width: 56%;
  }
}

@media (max-width: 820px) {
  .portal-nav {
    grid-template-columns: auto auto;
  }

  .portal-nav-links {
    display: none;
  }

  .portal-hero {
    min-height: 780px;
  }

  .portal-hero-content {
    width: min(620px, 82vw);
  }

  .portal-device {
    width: 420px;
    right: -190px;
    top: 176px;
    opacity: 0.36;
  }

  .portal-float-knot,
  .portal-float-code {
    display: none;
  }

  .portal-float-nova {
    right: 24px;
    bottom: 96px;
    opacity: 0.7;
  }

  .portal-service-knot,
  .portal-service-blog,
  .portal-service-mc,
  .portal-service-nova {
    grid-column: span 12;
  }

  .portal-minecraft {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .portal-github-card {
    grid-template-columns: 1fr;
  }

  .portal-final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .portal-nav {
    min-height: 62px;
    padding: 0 12px;
    gap: 10px;
  }

  .portal-brand {
    font-size: 0.8rem;
  }

  .portal-brand-icon {
    width: 32px;
    height: 32px;
  }

  .portal-github-mini {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .portal-hero {
    min-height: 760px;
    padding: 104px 18px 92px;
    align-items: start;
  }

  .portal-hero::before {
    background:
      linear-gradient(0deg, rgba(8, 17, 31, 0.96) 0%, rgba(8, 17, 31, 0.6) 48%, rgba(8, 17, 31, 0.42) 100%),
      linear-gradient(90deg, rgba(8, 17, 31, 0.82), rgba(8, 17, 31, 0.18));
  }

  .portal-hero-content {
    width: 100%;
  }

  .portal-badge {
    font-size: 0.64rem;
  }

  .portal-hero h1 {
    font-size: clamp(4rem, 22vw, 5.8rem);
  }

  .portal-lead {
    font-size: 0.92rem;
    line-height: 1.82;
  }

  .portal-hero-actions {
    width: 100%;
  }

  .portal-hero-actions .portal-action {
    width: 100%;
  }

  .portal-device {
    width: 360px;
    right: -184px;
    top: 390px;
    opacity: 0.28;
  }

  .portal-float-nova {
    min-width: 182px;
    right: 14px;
    bottom: 62px;
  }

  .portal-scroll-cue {
    display: none;
  }

  .portal-proof {
    grid-template-columns: 1fr;
    margin-top: -14px;
  }

  .portal-proof article {
    min-height: 98px;
  }

  .portal-section {
    width: calc(100vw - 24px);
    padding: 76px 0;
  }

  .portal-section-head {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
  }

  .portal-section-head > span {
    padding-bottom: 0;
  }

  .portal-service {
    min-height: 450px;
    padding: 20px;
    border-radius: 24px;
  }

  .portal-knot-visual,
  .portal-nova-visual {
    right: -44px;
    scale: 0.78;
  }

  .portal-blog-visual,
  .portal-map-visual {
    width: 66%;
    right: 16px;
    opacity: 0.74;
  }

  .portal-service-copy h3 {
    font-size: 3rem;
  }

  .portal-minecraft {
    min-height: 600px;
    padding: 68px 18px;
  }

  .portal-server-panel {
    padding: 22px;
  }

  .portal-projects {
    padding-bottom: 82px;
  }

  .portal-github-card {
    min-height: 520px;
    padding: 20px;
    gap: 34px;
    border-radius: 24px;
  }

  .portal-github-terminal {
    min-height: 236px;
    padding: 0 16px 20px;
  }

  .portal-github-terminal > span {
    margin: 0 -16px 4px;
  }

  .portal-github-copy h3 {
    font-size: 2.4rem;
  }

  .portal-final-cta {
    min-height: 480px;
    padding: 68px 18px;
  }

  .portal-final-actions,
  .portal-final-actions .portal-action {
    width: 100%;
  }

  .portal-footer {
    grid-template-columns: 1fr;
    padding: 44px 18px;
  }

  .portal-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .portal-service {
    transform: none !important;
  }
}
