@import url("https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&family=Yomogi&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap");

:root {
  --paper: #f7e7c3;
  --paper-light: #fff5dc;
  --craft: #e3c08a;
  --wood: #95572d;
  --wood-dark: #56331f;
  --blue: #1f6f91;
  --blue-dark: #123e52;
  --ink: #382d25;
  --muted: #745d48;
  --red: #d9644b;
  --yellow: #e1aa32;
  --green: #559b68;
  --shadow: 0 18px 45px rgba(76, 45, 22, .22);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: "Zen Maru Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(255,255,255,.68), transparent 28%),
    radial-gradient(circle at 87% 16%, rgba(31,111,145,.13), transparent 32%),
    linear-gradient(145deg, #efd49d, var(--paper) 45%, var(--craft));
}

a { color: inherit; }
button, a, [tabindex] { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(31,111,145,.24); }

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(74,47,26,.22) .65px, transparent .7px),
    radial-gradient(rgba(255,255,255,.42) .55px, transparent .6px);
  background-size: 4px 4px, 7px 7px;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 220;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 2px dashed rgba(31,111,145,.75);
  border-radius: 999px;
  transition: width .2s ease, height .2s ease, border-color .2s ease;
}

.has-cursor .cursor-dot,
.has-cursor .cursor-ring { opacity: 1; }
.has-cursor .cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  border-color: rgba(217,100,75,.9);
}

.hud {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 10px 12px 11px;
  border: 2px solid rgba(72,49,31,.36);
  border-radius: 26px;
  background: rgba(255,243,216,.78);
  box-shadow: 0 16px 38px rgba(76,45,22,.18);
  backdrop-filter: blur(14px) saturate(1.05);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 15px 11px 16px 12px;
  color: var(--paper-light);
  font-family: "Yomogi", cursive;
  font-size: 1.35rem;
  background:
    linear-gradient(135deg, var(--blue), #2b88a6),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.15) 8px 10px);
  box-shadow: 0 4px 0 rgba(56,45,37,.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: .02em;
}

.brand-text em {
  color: var(--blue);
  font-family: "Yomogi", cursive;
  font-size: .82rem;
  font-style: normal;
  letter-spacing: .1em;
}

.atelier-nav {
  display: flex;
  gap: 7px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.atelier-nav::-webkit-scrollbar { display: none; }

.atelier-nav button {
  appearance: none;
  min-width: max-content;
  padding: 8px 11px;
  border: 1.5px solid rgba(56,45,37,.36);
  border-radius: 999px;
  color: var(--ink);
  font: 800 .78rem/1 "Zen Maru Gothic", sans-serif;
  background: rgba(255,247,225,.74);
  box-shadow: 0 3px 0 rgba(86,55,28,.14);
  cursor: pointer;
  transition: .22s ease;
}

.atelier-nav button span {
  margin-right: .35em;
  color: var(--blue);
  font-family: "Kiwi Maru", serif;
  font-size: .72em;
}

.atelier-nav button:hover,
.atelier-nav button:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  outline: none;
}

.atelier-nav button.is-active {
  color: var(--paper-light);
  background: var(--blue);
  box-shadow: 0 4px 0 rgba(18,62,82,.35);
}

.atelier-nav button.is-active span { color: #bfe7f4; }

.hud-note {
  margin: 0;
  min-width: max-content;
  color: var(--muted);
  font-family: "Yomogi", cursive;
  font-size: .88rem;
}

.progress-rail {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(104,74,45,.16);
}

.progress-rail span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--blue));
  box-shadow: 0 0 12px rgba(31,111,145,.35);
}

.atelier {
  position: fixed;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.atelier.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.atelier::-webkit-scrollbar { height: 15px; }
.atelier::-webkit-scrollbar-track { background: #d9b579; }
.atelier::-webkit-scrollbar-thumb {
  border: 3px solid #d9b579;
  border-radius: 999px;
  background: var(--blue);
}

.panorama {
  position: relative;
  display: flex;
  width: max-content;
  min-width: 100%;
  height: 100%;
  isolation: isolate;
}

.panorama::before,
.panorama::after {
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  pointer-events: none;
}

.panorama::before {
  top: 0;
  bottom: 26%;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(31,111,145,.09) 0 1px, transparent 1px 118px),
    linear-gradient(0deg, rgba(31,111,145,.06) 0 1px, transparent 1px 118px),
    radial-gradient(circle at 5% 20%, rgba(255,255,255,.52), transparent 22%),
    linear-gradient(180deg, #f8e8c3, #ecd09b 72%, #d6aa68);
}

.panorama::after {
  bottom: 0;
  height: 29%;
  z-index: 0;
  border-top: 4px solid rgba(83,51,27,.62);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.16), transparent 40%),
    repeating-linear-gradient(7deg, rgba(68,38,18,.2) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #9e6333, #744522);
  box-shadow: inset 0 14px 24px rgba(56,31,15,.18);
}

.panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, .36fr) minmax(560px, .64fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  flex: 0 0 clamp(1040px, 112vw, 1380px);
  height: 100%;
  padding: clamp(92px, 12vh, 124px) clamp(34px, 5vw, 76px) 54px;
  scroll-snap-align: start;
  overflow: hidden;
}

.panel::after {
  position: absolute;
  top: 17%;
  right: 0;
  bottom: 31%;
  content: "";
  border-right: 2px dashed rgba(31,111,145,.22);
}

.panel:last-child::after { display: none; }

.copy {
  position: relative;
  z-index: 5;
  max-width: 485px;
  padding: 23px 24px 25px;
  border: 2px solid rgba(62,44,30,.5);
  border-radius: 28px 22px 30px 24px;
  background:
    linear-gradient(135deg, rgba(255,248,226,.94), rgba(244,221,179,.9)),
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 28%);
  box-shadow: var(--shadow), 0 5px 0 rgba(90,59,31,.13);
  transform: rotate(-.65deg);
}

.panel:nth-child(even) .copy { transform: rotate(.62deg); }

.copy::before,
.copy::after {
  position: absolute;
  top: -13px;
  width: 70px;
  height: 24px;
  content: "";
  border: 1px solid rgba(97,69,35,.14);
  background: rgba(255,234,178,.64);
  box-shadow: 0 2px 6px rgba(80,52,23,.08);
}

.copy::before { left: 28px; transform: rotate(-6deg); }
.copy::after { right: 32px; transform: rotate(5deg); }

.eyebrow {
  display: inline-block;
  margin: 0 0 11px;
  padding: 6px 10px;
  border: 1.5px dashed rgba(31,111,145,.45);
  border-radius: 999px;
  color: var(--blue);
  font-family: "Kiwi Maru", serif;
  font-size: .79rem;
  font-weight: 500;
  letter-spacing: .07em;
  background: rgba(31,111,145,.06);
}

.copy h1,
.copy h2 {
  margin: 0 0 15px;
  color: #2f251e;
  font-family: "Kiwi Maru", serif;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.045em;
}

.copy h1 { font-size: clamp(2.7rem, 5vw, 5.6rem); }
.copy h2 { font-size: clamp(2.05rem, 3.25vw, 3.7rem); }

.copy p {
  margin: 0 0 13px;
  color: #5e4937;
  font-size: clamp(.95rem, 1vw, 1.06rem);
  font-weight: 600;
  line-height: 1.85;
}

.handline {
  color: var(--blue) !important;
  font-family: "Yomogi", cursive;
  font-size: clamp(1.02rem, 1.25vw, 1.25rem) !important;
  font-weight: 400 !important;
}

.scene {
  position: relative;
  z-index: 3;
  min-height: 610px;
}

.chapter {
  position: absolute;
  top: -8px;
  right: 3%;
  z-index: 8;
  padding: 9px 14px;
  border: 2px solid rgba(31,111,145,.48);
  border-radius: 16px 12px 18px 12px;
  color: var(--blue-dark);
  font-family: "Yomogi", cursive;
  font-size: 1rem;
  letter-spacing: .08em;
  background: rgba(232,246,250,.76);
  box-shadow: 0 8px 18px rgba(31,111,145,.12);
}

.parallax { will-change: translate; }
.float { animation: floaty 4.2s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

.tool {
  position: absolute;
  z-index: 7;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(56,45,37,.4);
  border-radius: 18px 14px 20px 13px;
  font-size: 1.75rem;
  background: rgba(255,246,220,.78);
  box-shadow: 0 8px 16px rgba(76,45,22,.16);
}

.tool--pencil { top: 54px; left: 6%; }
.tool--gear {
  right: 10%;
  bottom: 80px;
  animation: floaty 4.2s ease-in-out infinite, spin 16s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

/* Cards */
.card,
.art-frame,
.device-card,
.award-card,
.contact-link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
}

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px 13px;
  border: 2px solid rgba(56,45,37,.46);
  border-radius: 20px 15px 23px 17px;
  background:
    linear-gradient(135deg, rgba(255,250,235,.97), rgba(245,224,185,.93)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.75), transparent 35%);
  box-shadow: 0 6px 0 rgba(93,59,31,.16), 0 13px 24px rgba(76,45,22,.12);
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.card::before {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: var(--pin, var(--red));
  box-shadow: 0 2px 6px rgba(56,45,37,.2);
}

.card:hover,
.card:focus-visible,
.card.touch-ready {
  border-color: rgba(31,111,145,.72);
  outline: none;
  background:
    linear-gradient(135deg, rgba(255,253,242,.98), rgba(231,244,247,.95)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.9), transparent 35%);
  box-shadow: 0 10px 0 rgba(31,111,145,.13), 0 20px 34px rgba(54,59,62,.14);
  transform: translateY(-7px) rotate(-.8deg);
}

.card-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.5px solid rgba(56,45,37,.3);
  border-radius: 14px;
  font-size: 1.25rem;
  background: rgba(31,111,145,.09);
}

.card-title {
  overflow: hidden;
  padding-right: 18px;
  font-size: .96rem;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card small {
  overflow: hidden;
  color: #7a6048;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: var(--blue);
  font-family: "Yomogi", cursive;
  font-size: .75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: .2s ease;
}

.card:hover .launch,
.card:focus-visible .launch { opacity: 1; transform: translateX(0); }

/* Desk */
.desk-scene { align-self: end; }

.desk-surface,
.workbench,
.shelf,
.contact-board {
  position: relative;
  border: 3px solid rgba(82,48,25,.58);
  box-shadow: var(--shadow), inset 0 4px 0 rgba(255,255,255,.16);
}

.desk-surface {
  min-height: 548px;
  margin-top: 34px;
  padding: 32px;
  border-radius: 42px 34px 26px 28px;
  background:
    radial-gradient(ellipse at 20% 12%, rgba(255,255,255,.14), transparent 38%),
    repeating-linear-gradient(8deg, rgba(58,31,16,.18) 0 2px, transparent 2px 31px),
    linear-gradient(135deg, #b8733d, #8d542b 56%, #70411f);
}

.desk-surface::after {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -22px;
  height: 28px;
  content: "";
  border-radius: 0 0 24px 24px;
  background: #62381d;
  box-shadow: 0 13px 26px rgba(54,30,14,.2);
}

.lamp {
  position: absolute;
  top: 27px;
  left: 35px;
  z-index: 5;
  width: 170px;
  height: 230px;
}

.lamp i { position: absolute; display: block; }
.lamp-shade {
  top: 0;
  left: 48px;
  width: 92px;
  height: 58px;
  border: 3px solid rgba(44,35,29,.62);
  border-radius: 48px 48px 15px 15px;
  background: linear-gradient(135deg, var(--blue), #2f91ad);
  transform: rotate(-12deg);
}

.lamp-arm {
  top: 54px;
  left: 66px;
  width: 16px;
  height: 126px;
  border-radius: 999px;
  background: #493225;
  transform: rotate(20deg);
  transform-origin: top;
}

.lamp-base {
  left: 20px;
  bottom: 4px;
  width: 116px;
  height: 28px;
  border: 3px solid rgba(44,35,29,.62);
  border-radius: 999px;
  background: var(--yellow);
}

.lamp-light {
  top: 46px;
  left: 0;
  width: 210px;
  height: 210px;
  opacity: .38;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,245,181,.88), transparent 68%);
  clip-path: polygon(42% 0, 72% 0, 100% 100%, 0 100%);
  transform: rotate(-8deg);
  animation: glow 3.4s ease-in-out infinite;
}

@keyframes glow { 50% { opacity: .2; } }

.laptop {
  position: absolute;
  top: 126px;
  left: 38px;
  z-index: 4;
  width: 320px;
}

.laptop-screen {
  height: 196px;
  padding: 18px;
  overflow: hidden;
  border: 4px solid #332820;
  border-radius: 22px 22px 14px 14px;
  color: #c8f1ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background:
    radial-gradient(circle at 80% 15%, rgba(62,184,216,.23), transparent 30%),
    linear-gradient(135deg, #102c38, #071b24);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.05);
}

.laptop-screen b {
  display: block;
  margin-bottom: 16px;
  color: #f8e6b7;
  font-size: .82rem;
}

.laptop-screen span {
  display: block;
  width: 72%;
  height: 9px;
  margin: 12px 0;
  border-radius: 999px;
  background: rgba(139,213,184,.84);
  animation: codeBlink 2.2s ease-in-out infinite;
}

.laptop-screen span:nth-child(2) { width: 88%; }
.laptop-screen span:nth-child(4) { width: 46%; }
.laptop-screen span:nth-child(5) { width: 61%; background: rgba(99,189,231,.9); }

.laptop-screen i {
  display: block;
  width: 10px;
  height: 18px;
  margin-top: 14px;
  background: #f7e7c3;
  animation: caret .9s steps(1) infinite;
}

@keyframes codeBlink { 50% { opacity: .55; transform: scaleX(.97); } }
@keyframes caret { 50% { opacity: 0; } }

.laptop-base {
  width: 370px;
  height: 23px;
  margin-left: -25px;
  border: 3px solid #332820;
  border-radius: 4px 4px 28px 28px;
  background: linear-gradient(180deg, #d7c4ac, #9f8c78);
  box-shadow: 0 10px 18px rgba(40,25,14,.2);
}

.blueprint {
  position: absolute;
  left: 74px;
  bottom: 45px;
  z-index: 3;
  width: 300px;
  height: 156px;
  overflow: hidden;
  border: 2px solid rgba(232,246,250,.78);
  border-radius: 18px 14px 20px 12px;
  background-color: #1e789b;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: 0 12px 22px rgba(38,24,13,.22);
  transform: rotate(-4deg);
}

.blueprint b {
  position: absolute;
  top: 17px;
  left: 18px;
  color: rgba(255,255,255,.88);
  font-family: "Yomogi", cursive;
  font-size: 1.4rem;
}

.blueprint i {
  position: absolute;
  display: block;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
}

.blueprint i:nth-child(2) { right: 33px; top: 28px; width: 88px; height: 58px; }
.blueprint i:nth-child(3) { right: 86px; bottom: 28px; width: 86px; height: 2px; border-radius: 0; }
.blueprint i:nth-child(4) { left: 45px; bottom: 25px; width: 52px; height: 52px; }

.mug {
  position: absolute;
  right: 36px;
  bottom: 54px;
  z-index: 5;
  display: grid;
  width: 60px;
  height: 70px;
  place-items: center;
  border: 3px solid rgba(59,45,34,.6);
  border-radius: 11px 11px 20px 20px;
  color: var(--paper-light);
  font-family: "Yomogi", cursive;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--red), #b74e3a);
}

.mug::after {
  position: absolute;
  right: -21px;
  top: 18px;
  width: 24px;
  height: 28px;
  content: "";
  border: 4px solid #b74e3a;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.desk-grid {
  position: absolute;
  top: 86px;
  right: 30px;
  z-index: 6;
  display: grid;
  width: min(456px, 52%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

/* Games */
.fish,
.ball {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  border: 2px solid rgba(56,45,37,.35);
  background: rgba(255,247,225,.72);
  box-shadow: 0 10px 20px rgba(76,45,22,.13);
}

.fish {
  top: 38px;
  right: 12%;
  width: 72px;
  height: 48px;
  border-radius: 999px 38px 999px 38px;
  color: #2f9fc7;
  font-size: 2.2rem;
  animation: swim 4.8s ease-in-out infinite;
}

.ball {
  right: 4%;
  bottom: 80px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 1.65rem;
  animation-delay: -1.5s;
}

@keyframes swim {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  50% { transform: translateX(-36px) rotate(3deg); }
}

.shelf {
  min-height: 586px;
  padding: 44px 24px 28px;
  border-radius: 34px 26px 30px 24px;
  background: rgba(255,242,211,.28);
}

.shelf::before,
.shelf::after,
.award-grid::after {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 27px;
  content: "";
  border: 2px solid rgba(82,48,25,.55);
  border-radius: 999px;
  background:
    repeating-linear-gradient(8deg, rgba(60,34,17,.18) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #b97841, #7c4722);
  box-shadow: 0 12px 18px rgba(60,34,17,.16);
}

.shelf::before { top: 108px; }
.shelf::after { top: 352px; }

.shelf-title {
  position: absolute;
  top: 17px;
  left: 30px;
  color: var(--blue);
  font-family: "Yomogi", cursive;
  font-size: 1.2rem;
  letter-spacing: .08em;
}

.game-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(126px, 1fr));
  gap: 14px;
  margin-top: 64px;
}

.game-card {
  min-height: 160px;
  align-content: center;
}

.game-card .card-icon {
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
}

.phone-rack,
.ai-drawer {
  position: relative;
  z-index: 3;
  margin-top: 82px;
  padding: 18px;
  border: 2px solid rgba(31,111,145,.34);
  border-radius: 24px 18px 28px 18px;
  background: linear-gradient(135deg, rgba(232,246,250,.88), rgba(255,246,220,.74));
  box-shadow: 0 10px 24px rgba(31,111,145,.12);
}

.phone-rack h3,
.ai-drawer h3,
.contact-board h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-family: "Yomogi", cursive;
  font-size: 1.25rem;
}

.ios-grid,
.ai-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 10px;
}

.tiny-card {
  min-height: 92px;
  padding: 10px;
}

.tiny-card .card-icon {
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
}

/* Gallery */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(165px, 1fr));
  gap: 21px;
  padding: 34px 20px 20px;
}

.art-frame {
  display: block;
  padding: 13px 13px 16px;
  border: 3px solid rgba(74,47,26,.55);
  border-radius: 22px 17px 26px 18px;
  background:
    linear-gradient(135deg, #f9eed2, #dcb879),
    repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 7px, transparent 7px 14px);
  box-shadow: 0 9px 0 rgba(88,53,27,.15), 0 21px 32px rgba(76,45,22,.17);
  transition: .25s ease;
}

.art-frame:nth-child(2n) { transform: rotate(1.2deg); }
.art-frame:nth-child(2n+1) { transform: rotate(-1deg); }

.art-frame:hover,
.art-frame:focus-visible,
.art-frame.touch-ready {
  z-index: 5;
  outline: none;
  box-shadow: 0 13px 0 rgba(31,111,145,.14), 0 28px 42px rgba(31,111,145,.16);
  transform: translateY(-10px) rotate(0deg) scale(1.025);
}

.art-frame h3 {
  margin: 12px 4px 2px;
  font-family: "Kiwi Maru", serif;
  font-size: 1.16rem;
}

.art-frame p {
  margin: 0 4px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.art-visual {
  position: relative;
  height: 155px;
  overflow: hidden;
  border: 3px solid rgba(42,33,26,.72);
  border-radius: 18px 13px 20px 14px;
  background: #0e2533;
}

.art-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 32%);
  pointer-events: none;
}

.voyage {
  background:
    radial-gradient(circle at 20% 28%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 75% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 45% 70%, #fff 0 1px, transparent 2px),
    linear-gradient(135deg, #07172d, #1d315f);
}

.voyage span:first-child {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(182,224,255,.58);
  border-radius: 50%;
  animation: orbit 7s linear infinite;
}

.voyage span:first-child::after {
  position: absolute;
  right: -5px;
  top: 32px;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: #f8e6b7;
  box-shadow: 0 0 15px #f8e6b7;
}

@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

.drive {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.55) 48% 52%, transparent 52%),
    linear-gradient(180deg, #39644a 0 42%, #2a2d34 42% 100%);
}

.drive span:first-child {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 38px;
  height: 22px;
  border-radius: 12px 12px 7px 7px;
  background: var(--red);
  box-shadow: 0 0 0 3px #2d2220;
  animation: carMove 2.2s ease-in-out infinite;
}

.drive span:first-child::before,
.drive span:first-child::after {
  position: absolute;
  bottom: -7px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #151515;
}

.drive span:first-child::before { left: 4px; }
.drive span:first-child::after { right: 4px; }

@keyframes carMove { 50% { transform: translateX(-16px) rotate(-2deg); } }

.wake { background: linear-gradient(180deg, #2c86a2, #123f59); }
.wake span:first-child {
  position: absolute;
  left: 52%;
  top: 45%;
  width: 48px;
  height: 22px;
  border-radius: 70% 70% 40% 40%;
  background: #f7e7c3;
  box-shadow: 0 4px 0 #d58b2d;
  animation: boat 3s ease-in-out infinite;
}

.wake span:nth-child(2),
.wake span:nth-child(3) {
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  border-top: 2px solid rgba(255,255,255,.65);
  border-radius: 50%;
  animation: waves 2.1s linear infinite;
}

.wake span:nth-child(2) { bottom: 38px; }
.wake span:nth-child(3) { bottom: 22px; animation-delay: -.8s; }

@keyframes boat { 50% { transform: translate(-8px, -5px) rotate(-3deg); } }
@keyframes waves { to { transform: translateX(-45px); } }

.ink {
  background: radial-gradient(circle at 50% 50%, #34204b, #11182c);
}

.ink span {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  filter: blur(9px);
  opacity: .8;
  mix-blend-mode: screen;
  animation: blob 5.5s ease-in-out infinite;
}

.ink span:nth-child(1) { left: 12%; top: 18%; background: #2f9fc7; }
.ink span:nth-child(2) { right: 10%; top: 26%; background: #d47a9a; animation-delay: -1.4s; }
.ink span:nth-child(3) { left: 34%; bottom: 8%; background: #e7ad31; animation-delay: -2.2s; }

@keyframes blob { 50% { transform: translate(18px, -12px) scale(1.22); } }

.flux { background: radial-gradient(circle, #1a2b2f, #091116); }

.flux span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7ad31;
  box-shadow: 0 0 16px #e7ad31;
  animation: particle 2.4s linear infinite;
}

.flux span:nth-child(1) { left: 15%; top: 30%; }
.flux span:nth-child(2) { left: 32%; top: 60%; animation-delay: -.5s; background: #64c7e4; }
.flux span:nth-child(3) { left: 55%; top: 42%; animation-delay: -1s; background: #75c986; }

@keyframes particle {
  0% { transform: translateX(-18px) scale(.8); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateX(62px) translateY(-30px) scale(1.4); opacity: 0; }
}

.orb {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #14312d, #071917);
}

.orb span:first-child {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff, transparent 12%),
    radial-gradient(circle, #8be0a0, #2e8d6b 52%, transparent 66%);
  box-shadow: 0 0 34px rgba(91,223,144,.8), inset 0 0 18px rgba(255,255,255,.25);
  animation: pulseOrb 2.6s ease-in-out infinite;
}

@keyframes pulseOrb { 50% { transform: scale(1.18); filter: hue-rotate(35deg); } }

/* Hardware */
.pegboard {
  position: absolute;
  top: 28px;
  right: 5%;
  z-index: 0;
  width: 54%;
  height: 230px;
  border: 2px solid rgba(79,56,34,.35);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(70,47,30,.36) 0 2px, transparent 2px) 0 0/24px 24px,
    rgba(230,196,139,.35);
}

.workbench {
  z-index: 2;
  min-height: 596px;
  padding: 28px;
  border-radius: 36px 28px 30px 24px;
  background:
    repeating-linear-gradient(7deg, rgba(58,31,16,.15) 0 2px, transparent 2px 30px),
    linear-gradient(135deg, #b6723b, #865029);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.device-card {
  display: block;
  padding: 14px;
  border: 2px solid rgba(34,29,24,.52);
  border-radius: 24px 18px 27px 18px;
  background: rgba(255,242,211,.87);
  box-shadow: 0 7px 0 rgba(42,29,19,.14), 0 15px 28px rgba(42,29,19,.12);
  transition: .24s ease;
}

.device-card:hover,
.device-card:focus-visible,
.device-card.touch-ready {
  z-index: 4;
  outline: none;
  transform: translateY(-9px) rotate(.7deg);
  box-shadow: 0 10px 0 rgba(31,111,145,.13), 0 24px 36px rgba(31,111,145,.16);
}

.device-card h3 {
  margin: 12px 2px 1px;
  font-family: "Kiwi Maru", serif;
  font-size: 1.04rem;
}

.device-card p {
  margin: 0 2px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.board {
  position: relative;
  height: 112px;
  overflow: hidden;
  border: 3px solid rgba(20,28,24,.72);
  border-radius: 18px 13px 21px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 32px),
    linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, #1d705d, #12483f);
}

.board.dark { background: linear-gradient(135deg, #34363c, #15171b); }
.board.wifi { background: radial-gradient(circle at 70% 35%, rgba(255,221,110,.18), transparent 30%), linear-gradient(135deg, #56612f, #26331e); }

.chip {
  position: absolute;
  left: 22px;
  top: 35px;
  display: grid;
  min-width: 92px;
  height: 40px;
  place-items: center;
  padding: 0 10px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: #d7f8e4;
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #172424;
}

.led {
  position: absolute;
  right: 22px;
  top: 28px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.32);
  border-radius: 50%;
  animation: ledBlink 1.1s steps(1) infinite;
}

.led:nth-of-type(2) { top: 56px; animation-delay: .37s; }
.led.green { background: #65e58a; box-shadow: 0 0 18px #65e58a; }
.led.blue { background: #69d8ff; box-shadow: 0 0 18px #69d8ff; }
.led.red { background: #ff745f; box-shadow: 0 0 18px #ff745f; }
.led.yellow { background: #ffd45a; box-shadow: 0 0 18px #ffd45a; }

@keyframes ledBlink {
  0%, 46%, 100% { opacity: 1; filter: saturate(1.4); }
  47%, 74% { opacity: .23; filter: saturate(.7); }
}

.trace,
.trace2 {
  position: absolute;
  display: block;
  height: 2px;
  background: rgba(181,255,207,.45);
}

.trace { left: 116px; top: 54px; width: 95px; }
.trace2 { left: 145px; top: 78px; width: 70px; transform: rotate(28deg); }

.usb {
  position: absolute;
  right: -4px;
  top: 39px;
  width: 34px;
  height: 34px;
  border-radius: 8px 0 0 8px;
  background: #d0d5d8;
}

.wave,
.wave2 {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255,212,90,.62);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: wifiPulse 1.6s ease-out infinite;
}

.wave2 { animation-delay: .45s; }

@keyframes wifiPulse {
  from { transform: scale(.35); opacity: .95; }
  to { transform: scale(1.12); opacity: 0; }
}

.catmark {
  position: absolute;
  left: 26px;
  bottom: 18px;
  color: #f7e7c3;
  font-size: 3rem;
  text-shadow: 0 3px 0 rgba(0,0,0,.2);
}

.cat-board .chip { left: auto; right: 50px; top: 42px; }

.antenna {
  position: absolute;
  right: 26px;
  top: 22px;
  width: 2px;
  height: 54px;
  background: #d7f8e4;
  transform: rotate(-22deg);
}

.ai-drawer {
  margin-top: 18px;
  border-style: dashed;
}

.sticky-note {
  min-height: 96px;
  background: linear-gradient(135deg, rgba(255,245,177,.96), rgba(255,233,135,.88));
  transform: rotate(-1deg);
}

.sticky-note:nth-child(even) {
  background: linear-gradient(135deg, rgba(232,246,250,.96), rgba(190,228,238,.88));
  transform: rotate(1deg);
}

/* Classroom */
.blackboard {
  position: relative;
  min-height: 190px;
  margin: 22px 7% 0;
  padding: 26px 30px;
  border: 12px solid #7b4c28;
  border-radius: 22px 16px 24px 18px;
  color: #e9f5d6;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(135deg, #2d6b58, #174538);
  box-shadow: var(--shadow), inset 0 0 22px rgba(0,0,0,.22);
}

.blackboard h3 {
  margin: 0 0 10px;
  font-family: "Yomogi", cursive;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 400;
}

.blackboard p {
  margin: 0;
  font-family: "Yomogi", cursive;
  font-size: 1.18rem;
  line-height: 1.5;
}

.blackboard i {
  position: absolute;
  right: 34px;
  bottom: 26px;
  width: 168px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.children {
  position: absolute;
  top: 165px;
  left: 4%;
  right: 4%;
  z-index: 5;
  height: 140px;
  pointer-events: none;
}

.kid {
  position: absolute;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.kid-a { left: 5%; top: 16px; }
.kid-b { left: 35%; top: 62px; }
.kid-c { right: 25%; top: 8px; }
.kid-d { right: 4%; top: 68px; }

.kid span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(56,45,37,.42);
  border-radius: 50%;
  font-size: 1.45rem;
  background: #ffe0b4;
  box-shadow: 0 6px 0 rgba(82,48,25,.12);
}

.speech {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border: 2px solid rgba(56,45,37,.34);
  border-radius: 18px 18px 18px 5px;
  color: var(--blue-dark);
  font-family: "Yomogi", cursive;
  font-size: 1rem;
  background: #fffaf0;
  box-shadow: 0 8px 20px rgba(76,45,22,.13);
  transform-origin: left bottom;
  animation: bubblePop 3.5s ease-in-out infinite;
}

.kid-b .speech { animation-delay: .55s; }
.kid-c .speech { animation-delay: 1.1s; }
.kid-d .speech { animation-delay: 1.65s; }
body.gsap-on .speech { animation: none; }

@keyframes bubblePop {
  0%, 100% { transform: scale(.92) translateY(5px); opacity: .68; }
  16%, 72% { transform: scale(1) translateY(0); opacity: 1; }
}

.edu-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin: 168px 4% 0;
}

.edu-card { min-height: 106px; }

/* Awards */
.award-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 88px;
  padding: 42px 22px 78px;
  border: 3px solid rgba(82,48,25,.55);
  border-radius: 34px 24px 32px 24px;
  background: rgba(255,242,211,.35);
  box-shadow: var(--shadow);
}

.award-grid::after {
  left: 14px;
  right: 14px;
  bottom: 38px;
  top: auto;
  height: 30px;
}

.award-card {
  min-height: 270px;
  padding: 18px 14px;
  border: 3px solid rgba(62,44,30,.54);
  border-radius: 80px 80px 18px 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,250,236,.97), rgba(244,224,188,.95));
  box-shadow: 0 8px 0 rgba(93,59,31,.13), 0 17px 26px rgba(76,45,22,.14);
  transition: .24s ease;
}

.award-card:nth-child(even) { transform: translateY(20px) rotate(1deg); }

.award-card:hover,
.award-card:focus-visible,
.award-card.touch-ready {
  z-index: 5;
  outline: none;
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 13px 0 rgba(31,111,145,.14), 0 26px 38px rgba(31,111,145,.16);
}

.award-icon {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  place-items: center;
  border: 4px solid rgba(69,45,29,.52);
  border-radius: 50%;
  color: var(--paper-light);
  font-family: "Kiwi Maru", serif;
  font-size: 1.8rem;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.42), transparent 20%),
    var(--award, var(--red));
  box-shadow: 0 8px 0 rgba(88,53,27,.18);
  animation: medalShine 3.2s ease-in-out infinite;
}

@keyframes medalShine { 50% { filter: brightness(1.15); transform: rotate(2deg) scale(1.03); } }

.award-card h3 {
  margin: 0 0 8px;
  font-family: "Kiwi Maru", serif;
  font-size: 1.12rem;
}

.award-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.5;
}

.ribbon {
  position: absolute;
  right: 7%;
  bottom: 68px;
  z-index: 6;
  padding: 12px 22px;
  border: 2px dashed rgba(31,111,145,.5);
  border-radius: 999px;
  color: var(--blue-dark);
  font-family: "Yomogi", cursive;
  font-size: 1.15rem;
  background: rgba(232,246,250,.84);
  transform: rotate(-4deg);
}

/* Contact */
.chair-scene {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(340px, .58fr);
  gap: 28px;
  align-items: center;
}

.chair-area {
  position: relative;
  min-height: 380px;
}

.chair {
  position: absolute;
  left: 18%;
  bottom: 60px;
  width: 230px;
  height: 260px;
}

.chair i {
  position: absolute;
  display: block;
  border: 4px solid rgba(64,43,28,.72);
  background:
    repeating-linear-gradient(8deg, rgba(58,31,16,.18) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, #b8733d, #7c4722);
  box-shadow: 0 10px 20px rgba(76,45,22,.16);
}

.chair i:nth-child(1) { left: 34px; top: 0; width: 145px; height: 155px; border-radius: 62px 62px 22px 22px; }
.chair i:nth-child(2) { left: 12px; top: 132px; width: 190px; height: 72px; border-radius: 34px 24px 40px 28px; }
.chair i:nth-child(3),
.chair i:nth-child(4) { top: 190px; width: 20px; height: 102px; border-radius: 999px; }
.chair i:nth-child(3) { left: 42px; transform: rotate(8deg); }
.chair i:nth-child(4) { right: 44px; transform: rotate(-8deg); }

.apron {
  position: absolute;
  left: 26%;
  top: 76px;
  z-index: 3;
  padding: 15px 24px;
  border: 2px solid rgba(31,111,145,.48);
  border-radius: 22px 18px 26px 18px;
  color: var(--paper-light);
  font-family: "Yomogi", cursive;
  font-size: 1.6rem;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(31,111,145,.18);
  transform: rotate(-5deg);
}

.toolbox {
  position: absolute;
  left: 8%;
  bottom: 28px;
  display: grid;
  width: 104px;
  height: 72px;
  place-items: center;
  border: 3px solid rgba(64,43,28,.72);
  border-radius: 18px 18px 12px 12px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--red), #a94734);
  box-shadow: 0 9px 18px rgba(76,45,22,.16);
}

.sleeping-cat {
  position: absolute;
  right: 4%;
  bottom: 42px;
  color: #f7e7c3;
  font-size: 3.5rem;
  text-shadow: 0 4px 0 rgba(56,36,22,.32);
  animation: catSleep 2.8s ease-in-out infinite;
}

@keyframes catSleep { 50% { transform: translateY(-4px); } }

.contact-board {
  z-index: 4;
  padding: 24px;
  border-radius: 34px 24px 32px 22px;
  background: linear-gradient(135deg, rgba(255,250,236,.95), rgba(232,246,250,.82));
}

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

.contact-link {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 16px;
  border: 2px solid rgba(56,45,37,.42);
  border-radius: 22px 16px 24px 17px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 6px 0 rgba(93,59,31,.12);
  transition: .24s ease;
}

.contact-link:hover,
.contact-link:focus-visible,
.contact-link.touch-ready {
  outline: none;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 0 rgba(31,111,145,.13), 0 20px 32px rgba(31,111,145,.12);
  transform: translateY(-8px) rotate(-.5deg);
}

.contact-link span {
  color: var(--blue);
  font-family: "Yomogi", cursive;
  font-size: 1.05rem;
}

.contact-link b {
  overflow: hidden;
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-link.primary {
  grid-column: 1 / -1;
  color: var(--paper-light);
  background: linear-gradient(135deg, var(--red), #a94734);
}

.contact-link.primary span { color: #ffe6c7; }

/* Preview */
.preview-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0) rotate(-1deg) scale(.96);
  transition: opacity .16s ease, transform .16s ease;
}

.preview-tooltip.is-visible { opacity: 1; }

.preview-window {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(56,45,37,.58);
  border-radius: 24px 18px 28px 18px;
  background: linear-gradient(135deg, rgba(255,250,236,.97), rgba(232,246,250,.96));
  box-shadow: 0 18px 48px rgba(39,32,28,.22);
}

.preview-bar {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 13px;
  color: var(--paper-light);
  font-size: .78rem;
  font-weight: 900;
  background: var(--tooltip-accent, var(--blue));
}

.preview-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff4af;
  box-shadow: 0 0 14px #fff4af;
  animation: glow 1.1s ease-in-out infinite;
}

.preview-window h3 {
  margin: 14px 15px 6px;
  font-family: "Kiwi Maru", serif;
  font-size: 1.2rem;
}

.preview-window p {
  margin: 0 15px 14px;
  color: #5c4939;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.65;
}

.preview-mini {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  overflow: hidden;
  padding: 2px 15px 16px;
}

.preview-mini i {
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31,111,145,.45), rgba(255,255,255,.5));
  background: linear-gradient(135deg, color-mix(in srgb, var(--tooltip-accent, var(--blue)) 55%, white), rgba(255,255,255,.5));
  animation: previewBars 1.25s ease-in-out infinite;
}

.preview-mini i:nth-child(2) { animation-delay: .12s; }
.preview-mini i:nth-child(3) { animation-delay: .24s; }
.preview-mini i:nth-child(4) { animation-delay: .36s; }

.preview-mini::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: previewSweep 1.6s ease-in-out infinite;
}

@keyframes previewBars { 50% { transform: translateY(-5px); opacity: .66; } }
@keyframes previewSweep {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

.scroll-toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 70;
  padding: 10px 14px;
  border: 1.5px solid rgba(56,45,37,.32);
  border-radius: 999px;
  color: var(--blue-dark);
  font-family: "Yomogi", cursive;
  background: rgba(255,247,225,.76);
  box-shadow: 0 10px 24px rgba(76,45,22,.14);
  transition: .35s ease;
}

.scroll-toast.is-hidden {
  opacity: 0;
  transform: translateY(12px);
}

/* Responsive */
@media (max-width: 1050px) {
  .panel {
    grid-template-columns: minmax(250px, .34fr) minmax(520px, .66fr);
    flex-basis: 1180px;
  }
  .game-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .phone-rack { margin-top: 52px; }
  .ios-grid, .ai-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .award-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); padding-bottom: 54px; }
  .award-card { min-height: 230px; }
}

@media (max-width: 780px) {
  .hud {
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: .86rem; }
  .brand-text em, .hud-note { display: none; }

  .atelier-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .atelier-nav button {
    padding: 7px 9px;
    font-size: .72rem;
  }

  .progress-rail {
    flex: 1 0 100%;
    height: 5px;
  }

  .atelier { scroll-snap-type: x mandatory; }

  .panel {
    grid-template-columns: 1fr;
    align-content: start;
    flex-basis: 96vw;
    height: 100%;
    padding: 112px 14px 78px;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .panel::after { display: none; }

  .copy {
    max-width: none;
    padding: 17px;
    border-radius: 22px 18px 25px 18px;
  }

  .copy h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
  .copy h2 { font-size: clamp(1.55rem, 8vw, 2.35rem); }
  .copy p { font-size: .88rem; line-height: 1.72; }

  .scene { min-height: auto; }

  .chapter {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-bottom: 12px;
    font-size: .88rem;
  }

  .tool,
  .fish,
  .ball,
  .pegboard,
  .ribbon { display: none; }

  .desk-surface,
  .shelf,
  .workbench,
  .award-grid,
  .contact-board {
    min-height: 0;
    padding: 16px;
    border-radius: 24px 18px 26px 18px;
  }

  .desk-surface::after,
  .lamp,
  .mug { display: none; }

  .laptop,
  .blueprint,
  .desk-grid {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 0 14px;
  }

  .laptop { width: min(100%, 340px); }
  .laptop-screen { height: 150px; }
  .laptop-base { width: calc(100% + 30px); margin-left: -15px; }
  .blueprint { height: 112px; }

  .desk-grid,
  .game-grid,
  .art-grid,
  .edu-grid,
  .award-grid,
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .card {
    min-height: 70px;
    padding: 9px;
    border-radius: 17px 13px 19px 14px;
  }

  .card-icon { width: 32px; height: 32px; font-size: 1.05rem; }
  .card-title { font-size: .82rem; }
  .card small { font-size: .66rem; }
  .launch { display: none; }

  .game-grid { margin-top: 46px; }
  .game-card { min-height: 104px; }

  .phone-rack {
    margin-top: 44px;
    padding: 13px;
  }

  .art-grid { padding: 12px 0 0; }
  .art-frame { padding: 9px; border-width: 2px; }
  .art-visual { height: 115px; }
  .art-frame h3 { margin-top: 8px; font-size: .98rem; }

  .board { height: 96px; }

  .blackboard {
    margin: 0;
    min-height: 164px;
    padding: 18px;
    border-width: 8px;
  }

  .blackboard h3 { font-size: 1.55rem; }
  .blackboard p { font-size: .98rem; }

  .children {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 8px;
    margin: 12px 0;
  }

  .kid { position: static; gap: 5px; }
  .kid span { width: 38px; height: 38px; font-size: 1.05rem; }
  .speech { padding: 7px 8px; font-size: .82rem; }
  .edu-grid { margin: 0; }

  .award-grid { margin-top: 10px; }
  .award-grid::after { display: none; }

  .award-card,
  .award-card:nth-child(even) {
    min-height: 170px;
    padding: 13px 9px;
    border-radius: 42px 42px 18px 18px;
    transform: none;
  }

  .award-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .chair-scene {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .chair-area { min-height: 245px; }
  .chair { left: 50%; bottom: 20px; transform: translateX(-50%) scale(.78); }
  .apron { left: 50%; top: 45px; transform: translateX(-50%) rotate(-4deg); }
  .toolbox { left: 8px; bottom: 12px; transform: scale(.75); }
  .sleeping-cat { right: 12px; bottom: 20px; font-size: 2.4rem; }

  .contact-link {
    min-height: 74px;
    padding: 11px;
  }

  .contact-link.primary { grid-column: 1 / -1; }
  .preview-tooltip { display: none; }

  .card.touch-ready::after,
  .art-frame.touch-ready::after,
  .device-card.touch-ready::after,
  .award-card.touch-ready::after,
  .contact-link.touch-ready::after {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: calc(100% + 8px);
    z-index: 20;
    padding: 9px 10px;
    content: attr(data-preview);
    border: 1.5px solid rgba(56,45,37,.35);
    border-radius: 14px;
    color: var(--ink);
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.5;
    background: rgba(255,250,236,.96);
    box-shadow: 0 10px 26px rgba(45,32,21,.16);
  }

  .scroll-toast {
    left: 12px;
    right: auto;
    bottom: 14px;
    max-width: calc(100vw - 24px);
    font-size: .86rem;
  }
}

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

  .speech {
    opacity: 1 !important;
    transform: none !important;
  }
}

