/* KAKKUH.FI V3 — less SaaS, more Kakkuh / Minecraft */

:root {
  --bg: #0b0d10;
  --surface: #101318;
  --surface-2: #15191f;
  --text: #f5f6f8;
  --muted: #9ca2ac;
  --muted-2: #696f79;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.17);

  --blue: #66aaff;
  --cyan: #76e6ff;
  --green: #76c96d;
  --dirt: #765037;
  --diamond: #67e7f4;

  --shell: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 4%, rgba(57,98,150,.12), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section { padding-block: 118px; }
::selection { background: rgba(102,170,255,.35); }

.site-noise {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

/* header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.site-header.scrolled {
  background: rgba(11,13,16,.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.brand-k {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 950;
}
.main-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.main-nav a:hover,
.nav-mail:hover {
  color: var(--text);
}
.nav-mail {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

/* hero */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
}
.hero-left {
  position: relative;
  z-index: 3;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(118,230,255,.8);
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(82px, 11vw, 152px);
  line-height: .8;
  letter-spacing: -.095em;
  font-weight: 950;
}
.hero h1 span {
  color: var(--blue);
}
.hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(15px,2vw,18px);
  line-height: 1.7;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  width: fit-content;
}
.social-links a {
  padding: 10px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  transition: color .15s ease, background .15s ease;
}
.social-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.045);
}
.social-links a span {
  color: var(--muted-2);
}
.hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 182px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  transition: transform .22s var(--ease), background .22s ease;
}
.button:hover {
  transform: translateY(-3px);
}
.button.primary {
  background: var(--text);
  color: var(--bg);
}
.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-width: 690px;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 22px 16px 0 0;
}
.stat + .stat {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-size: clamp(30px,4vw,44px);
  line-height: 1;
  letter-spacing: -.06em;
}
.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* hero art */

.hero-right {
  position: relative;
  min-height: 610px;
}
.hero-caption {
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .1em;
}
.skin-stage {
  position: absolute;
  inset: 30px 0 0;
  overflow: hidden;
}
.skin-stage::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 48%;
  transform: translate(-50%,-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.skin-stage::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 1px;
  left: 50%;
  bottom: 55px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,var(--line-strong),transparent);
}
.skin-shadow {
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: 190px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  filter: blur(12px);
}

.mc-player {
  position: absolute;
  left: 50%;
  top: 86px;
  width: 176px;
  height: 410px;
  transform: translateX(-50%);
  transform-origin: 50% 60%;
  animation: character-turn 7s ease-in-out infinite;
  filter: drop-shadow(0 28px 36px rgba(0,0,0,.28));
}
.mc-head,
.mc-body,
.mc-arm,
.mc-leg,
.shoe {
  position: absolute;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.08);
}
.mc-head {
  left: 24px;
  top: 0;
  width: 128px;
  height: 128px;
  background: #c98d66;
}
.hair {
  position: absolute;
  background: #17191b;
}
.hair-top {
  inset: 0 0 auto;
  height: 42px;
}
.hair-left {
  left: 0;
  top: 28px;
  width: 24px;
  height: 48px;
}
.hair-right {
  right: 0;
  top: 28px;
  width: 20px;
  height: 46px;
}
.eye {
  position: absolute;
  top: 65px;
  width: 16px;
  height: 14px;
  background: #5ad0ff;
  box-shadow: inset 0 -5px 0 #eafaff;
}
.eye-left { left: 30px; }
.eye-right { right: 30px; }
.mc-body {
  left: 37px;
  top: 132px;
  width: 102px;
  height: 130px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.04) 48% 52%, transparent 53%),
    #111316;
}
.mc-arm {
  top: 132px;
  width: 32px;
  height: 145px;
  background: #c88d66;
}
.arm-left { left: 3px; transform: rotate(3deg); transform-origin: top center; }
.arm-right { right: 3px; transform: rotate(-5deg); transform-origin: top center; }
.mc-leg {
  top: 264px;
  width: 47px;
  height: 127px;
  background: #315c78;
}
.leg-left { left: 37px; }
.leg-right { right: 37px; }
.shoe {
  top: 380px;
  width: 47px;
  height: 26px;
  background: #f6f6f6;
}
.shoe-left { left: 37px; }
.shoe-right { right: 37px; }

.sword-wrap {
  position: absolute;
  right: 30px;
  top: 40px;
  width: 150px;
  height: 440px;
  transform: rotate(23deg);
  animation: sword-drift 6s ease-in-out infinite;
  opacity: .92;
}
.pixel-sword {
  position: relative;
  width: 100%;
  height: 100%;
}
.sword-blade {
  position: absolute;
  left: 48px;
  top: 0;
  width: 54px;
  height: 235px;
  background:
    linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px),
    linear-gradient(135deg,#d7fbff,#65d9ed);
  background-size: 18px 18px;
  clip-path: polygon(50% 0,100% 16%,100% 100%,0 100%,0 16%);
}
.sword-guard {
  position: absolute;
  left: 15px;
  top: 231px;
  width: 120px;
  height: 30px;
  background: #66dbe9;
}
.sword-handle {
  position: absolute;
  left: 54px;
  top: 260px;
  width: 42px;
  height: 110px;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px),
    #64432f;
  background-size: 16px 16px;
}
.sword-pommel {
  position: absolute;
  left: 43px;
  top: 366px;
  width: 64px;
  height: 36px;
  background: #5acfe1;
}
.floating-block {
  position: absolute;
  box-shadow: 0 20px 36px rgba(0,0,0,.28);
}
.block-a {
  left: 40px;
  bottom: 85px;
  width: 72px;
  height: 72px;
  background: linear-gradient(var(--green) 0 30%, var(--dirt) 30% 100%);
  animation: block-float-a 4s ease-in-out infinite;
}
.block-b {
  left: 135px;
  top: 80px;
  width: 44px;
  height: 44px;
  background: linear-gradient(var(--green) 0 30%, var(--dirt) 30% 100%);
  animation: block-float-b 5s ease-in-out infinite;
}
.floating-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size: 14px 14px;
}
.floating-block.diamond {
  right: 130px;
  bottom: 110px;
  width: 48px;
  height: 48px;
  background: var(--diamond);
  animation: diamond-spin 5s ease-in-out infinite;
}
.pixel-spark {
  position: absolute;
  color: var(--cyan);
  font-family: ui-monospace, monospace;
}
.spark-a { left: 90px; top: 185px; animation: blink 2.4s steps(2,end) infinite; }
.spark-b { right: 75px; bottom: 165px; animation: blink 3.1s steps(2,end) infinite; }
.spark-c { right: 180px; top: 40px; animation: blink 2.8s steps(2,end) infinite; }

@keyframes character-turn {
  0%,100% { transform: translateX(-50%) rotateY(-6deg) translateY(0); }
  50% { transform: translateX(-50%) rotateY(8deg) translateY(-12px); }
}
@keyframes sword-drift {
  0%,100% { transform: rotate(23deg) translateY(0); }
  50% { transform: rotate(18deg) translateY(-12px); }
}
@keyframes block-float-a {
  0%,100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-12px); }
}
@keyframes block-float-b {
  0%,100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(13deg) translateY(-10px); }
}
@keyframes diamond-spin {
  0%,100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(28deg) translateY(-10px); }
}
@keyframes blink {
  0%,45%,100% { opacity: .2; }
  46%,80% { opacity: 1; }
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.scroll-down i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
}

/* generic section */

.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}
.section-title-row h2,
.video-heading h2,
.about-heading h2,
.collab-main h2 {
  margin: 15px 0 0;
  font-size: clamp(44px,7vw,78px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 920;
}
.section-title-row p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* links */

.link-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
.big-link {
  grid-column: span 2;
  min-height: 240px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 24px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s var(--ease);
}
.big-link:hover { transform: translateY(-4px); }
.big-link.youtube {
  color: #0e1013;
  background: #efeee8;
}
.big-link.merch {
  color: #0e1013;
  background: #dfe9fa;
}
.link-index {
  align-self: start;
  font-family: ui-monospace,monospace;
  font-size: 10px;
  opacity: .5;
}
.link-meta {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .5;
}
.big-link strong {
  display: block;
  font-size: clamp(34px,5vw,52px);
  line-height: .95;
  letter-spacing: -.06em;
}
.big-arrow {
  align-self: start;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .4;
}
.small-link {
  min-height: 105px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  transition: background .15s ease, transform .2s var(--ease);
}
.small-link:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.05);
}
.small-link span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.small-link i {
  color: var(--muted-2);
  font-style: normal;
}

/* video */

.video-heading {
  margin-bottom: 34px;
}
.video-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-side {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.video-side-number {
  font-size: 64px;
  line-height: .85;
  font-weight: 950;
  letter-spacing: -.08em;
  color: var(--blue);
}
.video-side p {
  margin: auto 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.video-side a {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

/* Realmi */

.realmi-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: #ccefc8;
  color: #111613;
}
.realmi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.realmi-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.realmi-r {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #1b5e32;
  color: #e8ffe9;
  border-radius: 8px;
  font-weight: 950;
}
.realmi-word {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.realmi-tag {
  color: rgba(17,22,19,.5);
  font-family: ui-monospace,monospace;
  font-size: 9px;
  letter-spacing: .12em;
}
.realmi-main {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 520px;
}
.realmi-copy {
  padding: clamp(34px,6vw,70px);
}
.realmi-kicker {
  color: rgba(17,22,19,.55);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.realmi-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(60px,9vw,110px);
  line-height: .82;
  letter-spacing: -.085em;
  font-weight: 950;
}
.realmi-copy h2 span {
  color: #317b48;
}
.realmi-copy p {
  max-width: 500px;
  margin: 24px 0 0;
  color: rgba(17,22,19,.65);
  font-size: 14px;
  line-height: 1.75;
}
.server-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.server-addresses div {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.3);
}
.server-addresses span {
  display: block;
  color: rgba(17,22,19,.45);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}
.server-addresses strong {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace,monospace;
  font-size: 12px;
}
.realmi-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.realmi-btn {
  display: inline-flex;
  justify-content: space-between;
  gap: 24px;
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #133f22;
  color: #effff1;
  font-size: 11px;
  font-weight: 850;
}
.realmi-btn.ghost {
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  color: #111613;
}
.realmi-scene {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.15),transparent),
    #b4dfb2;
}
.realmi-grid {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(0,0,0,.2) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,.2) 1px,transparent 1px);
  background-size: 32px 32px;
}
.realm-block {
  position: absolute;
  box-shadow: 0 20px 35px rgba(29,75,41,.14);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(var(--green) 0 28%, var(--dirt) 28% 100%);
  background-size: 18px 18px,18px 18px,auto;
}
.rb-one {
  width: 150px;
  height: 150px;
  right: 58px;
  bottom: 55px;
  animation: block-float-a 4s ease-in-out infinite;
}
.rb-two {
  width: 85px;
  height: 85px;
  right: 220px;
  bottom: 180px;
  animation: block-float-b 5s ease-in-out infinite;
}
.rb-three {
  width: 55px;
  height: 55px;
  right: 85px;
  top: 72px;
  animation: diamond-spin 5s ease-in-out infinite;
}
.realm-player {
  position: absolute;
  left: 65px;
  bottom: 45px;
  width: 90px;
  height: 230px;
  animation: realmi-player 4.5s ease-in-out infinite;
}
.rp-head {
  position: absolute;
  left: 15px;
  top: 0;
  width: 60px;
  height: 60px;
  background: #c98d66;
  box-shadow: inset 0 -22px 0 #17191b;
}
.rp-body {
  position: absolute;
  left: 22px;
  top: 63px;
  width: 46px;
  height: 82px;
  background: #173e25;
}
.rp-leg {
  position: absolute;
  top: 145px;
  width: 21px;
  height: 75px;
  background: #2a506c;
}
.rp-leg.one { left: 22px; }
.rp-leg.two { right: 22px; }
@keyframes realmi-player {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .7fr;
  gap: 90px;
}
.about-copy {
  padding-top: 30px;
}
.about-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* collab */

.collab {
  padding-top: 60px;
  padding-bottom: 140px;
}
.collab-box {
  padding: clamp(28px,5vw,56px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.collab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collab-code {
  color: var(--muted-2);
  font-family: ui-monospace,monospace;
  font-size: 9px;
}
.collab-main {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 50px;
  align-items: end;
  margin-top: 46px;
}
.collab-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.collab-mail {
  margin-top: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: clamp(18px,3vw,32px);
  font-weight: 880;
  letter-spacing: -.04em;
}
.collab-mail i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
}

/* footer */

footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-right {
  display: flex;
  gap: 18px;
  color: var(--muted-2);
  font-size: 11px;
}

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* responsive */

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .main-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 90px;
  }
  .hero-right {
    min-height: 540px;
  }
  .link-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .video-layout {
    grid-template-columns: 1fr;
  }
  .video-side {
    min-height: 220px;
  }
  .realmi-main,
  .about-grid,
  .collab-main {
    grid-template-columns: 1fr;
  }
  .realmi-scene {
    min-height: 420px;
  }
  .about-copy {
    padding-top: 0;
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px),var(--shell)); }
  .section { padding-block: 86px; }
  .header-inner { height: 66px; }
  .nav-mail { font-size: 10px; }

  .hero h1 { font-size: clamp(70px,24vw,108px); }
  .hero-copy { font-size: 14px; }

  .social-links {
    width: 100%;
  }
  .social-links a {
    flex: 1 1 33%;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .stat {
    padding: 18px 0;
    border-top: 1px solid var(--line);
  }
  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .hero-right {
    min-height: 410px;
  }
  .skin-stage::before {
    width: 300px;
    height: 300px;
  }
  .mc-player {
    top: 45px;
    transform: translateX(-50%) scale(.72);
  }
  .sword-wrap {
    right: -20px;
    top: 20px;
    transform: scale(.68) rotate(23deg);
  }
  .block-a {
    left: 8px;
    bottom: 54px;
  }
  .block-b {
    left: 62px;
    top: 54px;
  }
  .floating-block.diamond {
    right: 68px;
    bottom: 75px;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }
  .section-title-row h2,
  .video-heading h2,
  .about-heading h2,
  .collab-main h2 {
    font-size: clamp(40px,12vw,58px);
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
  .big-link {
    grid-column: auto;
    min-height: 205px;
  }

  .video-side-number {
    font-size: 52px;
  }

  .realmi-top {
    padding: 18px;
  }
  .realmi-tag { display: none; }
  .realmi-copy {
    padding: 28px 22px;
  }
  .realmi-copy h2 {
    font-size: clamp(54px,18vw,86px);
  }
  .server-addresses {
    flex-direction: column;
  }
  .server-addresses div {
    min-width: 0;
  }
  .realmi-actions {
    flex-direction: column;
  }
  .realmi-btn {
    width: 100%;
  }
  .realmi-scene {
    min-height: 330px;
  }
  .rb-one { right: 18px; bottom: 35px; width: 120px; height: 120px; }
  .rb-two { right: 145px; bottom: 135px; }
  .realm-player { left: 28px; bottom: 28px; }

  .collab-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .collab-main {
    margin-top: 28px;
  }
  .collab-mail {
    font-size: 17px;
  }

  .footer-inner {
    padding-block: 26px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    flex-wrap: wrap;
  }
}

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