/* =========================================================
   HH Labs — Landing page
   Concept: "AI Playground" — warm cream canvas, bold colour,
   sticker-like cards with hard shadows, playful shapes.
   Every section owns a colour "scene"; the page background
   follows the section in the middle of the viewport.
   Themes: light (default by OS) / dark via [data-theme].
   ========================================================= */

/* ---------- Brand palette & base tokens ---------- */
:root {
  --blue: #3D5AFE;
  --yellow: #FFD23F;
  --coral: #FF6B4A;
  --mint: #2ED6A1;
  --lilac: #B69CFF;
  --pink: #FF8FC7;
  --ink: #15131A;

  --f-cjk: "Be Vietnam Pro";
  --f-display: "Bricolage Grotesque", var(--f-cjk), system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Be Vietnam Pro", var(--f-cjk), system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 64px;

  /* light-theme surfaces */
  --edge: #15131A;
  --t-yellow: #FFE680;
  --t-mint: #A8F0D6;
  --t-lilac: #DCD0FF;
  --t-coral: #FFC6B8;
  --t-blue: #CBD3FF;
  --t-pink: #FFD3EA;
  --t-ink: #15131A;
  --dots: rgba(21, 19, 26, .12);
}

html[data-theme="dark"] {
  --edge: #000000;
  --t-yellow: #3A3214;
  --t-mint: #123B30;
  --t-lilac: #2A2347;
  --t-coral: #41201A;
  --t-blue: #1C2456;
  --t-pink: #3E1A30;
  --t-ink: #F4F1FA;
  --dots: rgba(244, 241, 250, .08);
  color-scheme: dark;
}

/* ---------- Scenes (light) ---------- */
[data-scene="paper"] { --bg: #FFF7EA; --fg: #15131A; --muted: #5E5867; --line: rgba(21, 19, 26, .14); --card: #FFFFFF; --accent: #3D5AFE; --accent-ink: #FFFFFF; }
[data-scene="court"] { --bg: #EEF0FF; --fg: #16143A; --muted: #55527A; --line: rgba(22, 20, 58, .14); --card: #FFFFFF; --accent: #4B3FE0; --accent-ink: #FFFFFF; }
[data-scene="night"] { --bg: #0A0F22; --fg: #E9EEFF; --muted: #A0AACB; --line: rgba(233, 238, 255, .16); --card: #121A33; --accent: #3EC6FF; --accent-ink: #04121D; }
[data-scene="blush"] { --bg: #FFEFF5; --fg: #3B1128; --muted: #84476A; --line: rgba(59, 17, 40, .14); --card: #FFFFFF; --accent: #C2347D; --accent-ink: #FFFFFF; }
[data-scene="pop"]   { --bg: #3D5AFE; --fg: #FFFFFF; --muted: rgba(255, 255, 255, .82); --line: rgba(255, 255, 255, .3); --card: rgba(255, 255, 255, .1); --accent: #FFD23F; --accent-ink: #15131A; }

/* ---------- Scenes (dark) ---------- */
[data-theme="dark"] [data-scene="paper"] { --bg: #121019; --fg: #F4F1FA; --muted: #ABA5BA; --line: rgba(244, 241, 250, .13); --card: #1C1925; --accent: #8396FF; --accent-ink: #0D0B14; }
[data-theme="dark"] [data-scene="court"] { --bg: #111130; --fg: #ECEBFF; --muted: #A9A7D4; --line: rgba(236, 235, 255, .13); --card: #1B1B42; --accent: #9C93FF; --accent-ink: #0D0B20; }
[data-theme="dark"] [data-scene="night"] { --bg: #060914; --card: #0F1530; }
[data-theme="dark"] [data-scene="blush"] { --bg: #200D19; --fg: #FCE9F2; --muted: #D59DBC; --line: rgba(252, 233, 242, .13); --card: #2E1325; --accent: #FF7DB9; --accent-ink: #2A0718; }
[data-theme="dark"] [data-scene="pop"]   { --bg: #1A2380; --card: rgba(255, 255, 255, .07); }

/* ---------- Language-specific typography ---------- */
html[lang="ja"] { --f-cjk: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo; }
html[lang="ko"] { --f-cjk: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic"; }
html[lang="zh"] { --f-cjk: "Noto Sans SC", "PingFang SC", "Microsoft YaHei"; }
html:is([lang="ja"], [lang="ko"], [lang="zh"]) :is(.hero__title, .display, .product__name, .contact__title, .manifesto, .service h3, .process__list h3) { letter-spacing: 0; line-height: 1.22; }
html:is([lang="ja"], [lang="ko"], [lang="zh"]) em { font-family: inherit; font-style: normal; font-weight: 800; }
html:is([lang="ja"], [lang="zh"]) .hero__title { font-size: clamp(2.2rem, 4.8vw, 4.6rem); }
html:is([lang="ja"], [lang="ko"], [lang="zh"]) .pill { word-break: keep-all; }
html[lang="ko"] .hero__title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); word-break: keep-all; }
html[lang="ko"] body { word-break: keep-all; }
.lang-pending body { opacity: 0; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--fg);
  transition: background-color .8s var(--ease), color .8s var(--ease), opacity .3s;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
strong, b { font-weight: 700; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.section { position: relative; padding: clamp(5.5rem, 11vw, 9rem) 0; color: var(--fg); }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lilac), var(--pink), var(--coral), var(--yellow)); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 200; }
  .cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--coral); }
  .cursor__ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid var(--fg); opacity: .5;
    transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .3s, opacity .3s;
  }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 210, 63, .35); border-color: var(--ink); opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge);
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: box-shadow .25s var(--ease), background .25s, color .25s, transform .35s var(--spring);
}
.btn:hover { box-shadow: 7px 7px 0 var(--edge); }
.btn:active { box-shadow: 1px 1px 0 var(--edge); }
.btn__arrow { display: inline-block; transition: transform .35s var(--spring); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-8deg); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--dark { background: var(--fg); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--outline { background: var(--card); color: var(--fg); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--edge); }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; gap: .3rem; grid-auto-flow: column;
  min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 999px;
  border: 2px solid var(--line); background: transparent; color: var(--fg);
  transition: border-color .25s, background .25s, transform .35s var(--spring);
}
.icon-btn:hover { border-color: var(--fg); transform: rotate(-6deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tags / stickers ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  font-family: var(--f-display); font-weight: 700; font-size: .85rem; line-height: 1;
  padding: .5rem .85rem; border-radius: 999px; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.tag--yellow { background: var(--yellow); }
.tag--mint { background: var(--mint); }
.tag--pink { background: var(--pink); }
.tag--lilac { background: var(--lilac); }

/* ---------- Nav (floating pill) ---------- */
.nav {
  position: fixed; z-index: 100; top: 12px; left: var(--gutter); right: var(--gutter);
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 40px); margin: 0 auto;
  height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem;
  padding: 0 .6rem 0 1rem; border-radius: 999px; color: var(--fg);
  border: 2px solid transparent;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s, transform .5s var(--ease), color .8s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-color: var(--edge); box-shadow: 4px 4px 0 var(--edge);
}
.nav.is-hidden { transform: translateY(-140%); }

.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; overflow: visible; transition: transform .5s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__spark { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--spring); }
.brand:hover .brand__spark { transform: rotate(90deg) scale(1.25); }
.brand__name { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }

.nav__links { display: flex; gap: .3rem; margin: 0 auto; }
.nav__links a {
  font-weight: 500; font-size: .92rem; padding: .45rem .85rem; border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav__links a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav__links a.is-active { background: var(--yellow); color: var(--ink); }

.nav__tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav__links + .nav__tools { margin-left: 0; }
.lang { position: relative; }
.lang__cur { font-family: var(--f-display); font-weight: 700; font-size: .8rem; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; list-style: none; margin: 0; padding: .4rem;
  min-width: 180px; background: var(--card); color: var(--fg);
  border: 2px solid var(--edge); border-radius: 18px; box-shadow: 5px 5px 0 var(--edge);
  animation: pop .3s var(--spring);
}
[data-theme="dark"] .lang__menu, .lang__menu { background: color-mix(in srgb, var(--bg) 92%, var(--fg)); }
.lang__menu button {
  width: 100%; text-align: left; border: 0; background: transparent; padding: .55rem .8rem; border-radius: 12px; font-size: .92rem;
}
.lang__menu button:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.lang__menu button[aria-current="true"] { background: var(--yellow); color: var(--ink); font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } }

.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav__toggle { display: none; position: relative; width: 42px; padding: 0; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--spring); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--blue); color: #fff;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .6s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em;
  padding: .45rem 0; border-bottom: 2px solid rgba(255, 255, 255, .2); display: flex; align-items: baseline; gap: 1rem;
}
.mobile-menu nav a i { font-style: normal; font-size: .9rem; color: var(--yellow); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; }
body.menu-open .nav { color: #fff; }
body.menu-open .nav .icon-btn { border-color: rgba(255, 255, 255, .5); }

/* ---------- Shared typography ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.8rem;
  padding: .35rem .9rem .35rem .35rem; border-radius: 999px; border: 2px solid var(--line);
  font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.section-label b {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem;
}
.display {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem); margin: 0;
}
.display--xl { font-size: clamp(3rem, 9vw, 8rem); line-height: .95; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .9s var(--spring); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 56px) 0 5rem;
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(var(--dots) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 85%);
}

.shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shape { position: absolute; will-change: transform; animation: float 7s ease-in-out infinite; }
.shape--star     { width: 92px;  left: 3%;  top: 18%; animation-duration: 8s; }
.shape--blob     { width: 260px; left: 38%; top: -70px; opacity: .55; animation-duration: 11s; }
.shape--squiggle { width: 140px; left: 44%; bottom: 20%; animation-duration: 6s; }
.shape--pill     { width: 104px; right: 4%; bottom: 14%; animation-duration: 9s; rotate: -14deg; }
.shape--flower   { width: 84px;  left: 6%;  bottom: 12%; animation-duration: 10s; }
.shape--ring     { width: 120px; right: 36%; top: 16%; animation: spin 26s linear infinite; }
@keyframes float { 50% { translate: 0 -18px; rotate: 8deg; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }

.hello {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.6rem;
  padding: .45rem 1rem; border-radius: 999px; background: var(--card); border: 2px solid var(--edge);
  font-weight: 600; font-size: .88rem; box-shadow: 3px 3px 0 var(--edge);
}
.hello__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(46, 214, 161, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46, 214, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 214, 161, 0); } }

.hero__title {
  font-family: var(--f-display); font-weight: 800; margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem); line-height: 1.02; letter-spacing: -.045em;
}
.hero__title .line { display: block; padding: .06em 0; }
.hero__title .line > span { display: inline-block; opacity: 0; transform: translateY(60%) rotate(4deg); transition: transform 1s var(--spring), opacity .6s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.is-loaded .hero__title .line > span { opacity: 1; transform: none; }
html:not(.js) .hero__title .line > span { opacity: 1; transform: none; }

.pill {
  display: inline-block; background: var(--blue); color: #fff; padding: 0 .22em .06em; margin: .06em 0;
  border-radius: .35em; border: 3px solid var(--edge); box-shadow: 6px 6px 0 var(--edge);
  rotate: -2deg;
}
.scribble {
  position: relative; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 4 80 4 120 10s60 6 77-2' fill='none' stroke='%23FF6B4A' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .32em no-repeat;
  padding-bottom: .08em;
}

.hero__lead { max-width: 36rem; margin: 1.8rem 0 0; color: var(--muted); font-size: 1.1rem; }
.hero__lead strong { color: var(--fg); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 70%, transparent) 62%); }
[data-theme="dark"] .hero__lead strong { background: linear-gradient(transparent 62%, rgba(255, 210, 63, .35) 62%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Collage */
.collage { position: relative; aspect-ratio: 1 / .95; }
.sticker {
  position: absolute; margin: 0; background: #fff; padding: 8px; border-radius: 20px;
  border: 2px solid var(--edge); box-shadow: 8px 8px 0 var(--edge);
  opacity: 0; scale: .85; transition: opacity .8s var(--ease), scale 1s var(--spring);
  will-change: transform;
}
.is-loaded .sticker { opacity: 1; scale: 1; }
.sticker img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 13px; }
.sticker .tag { position: absolute; }
.sticker--a { width: 78%; aspect-ratio: 16 / 9.4; right: 0; top: 2%; rotate: 4deg; transition-delay: .25s; }
.sticker--a .tag { left: -18px; bottom: -16px; rotate: -6deg; }
.sticker--b { width: 66%; aspect-ratio: 16 / 9.4; left: 0; top: 46%; rotate: -5deg; transition-delay: .4s; }
.sticker--b .tag { right: -14px; top: -16px; rotate: 5deg; }
.sticker--c { width: 27%; aspect-ratio: 9 / 17; right: 4%; top: 40%; rotate: 7deg; border-radius: 26px; transition-delay: .55s; }
.sticker--c img { border-radius: 19px; }
.sticker--c .tag { left: -26px; bottom: 12%; rotate: -8deg; }

.badge {
  position: absolute; width: 124px; height: 124px; left: 22%; top: -2%; z-index: 3;
  background: var(--yellow); border-radius: 50%; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
}
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .12em; fill: currentColor; }
.badge__core {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.6rem;
}

/* Stats */
.hero__stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 5vh, 4rem); }
.stat {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1.3rem .8rem .8rem; border-radius: 999px;
  border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); background: var(--card);
  transition: transform .4s var(--spring);
}
.stat:hover { transform: rotate(-2deg) translateY(-3px); }
.stat b {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; border: 2px solid var(--ink);
}
.stat span { font-size: .85rem; line-height: 1.3; font-weight: 500; color: var(--muted); }
.stat--yellow b { background: var(--yellow); }
.stat--mint b { background: var(--mint); }
.stat--lilac b { background: var(--lilac); }

/* =========================================================
   MARQUEE TAPES
   ========================================================= */
.tapes { position: relative; z-index: 4; height: 0; overflow-x: clip; overflow-y: visible; }
.tape--back, .marquee { position: absolute; left: -5%; right: -5%; top: -2.2rem; border-block: 2px solid var(--ink); }
.tape--back { height: 4.4rem; background: var(--lilac); rotate: 2deg; }
.marquee { overflow: hidden; background: var(--yellow); color: var(--ink); rotate: -1.8deg; padding: .9rem 0; box-shadow: 0 8px 0 rgba(21, 19, 26, .15); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 1.6rem; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); white-space: nowrap; line-height: 1.1; letter-spacing: -.02em; }
.marquee b { font-size: 1.2rem; color: var(--coral); -webkit-text-stroke: 1px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-top: clamp(8rem, 14vw, 11rem); }
.manifesto {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(1.7rem, 3.8vw, 3.3rem); line-height: 1.18; margin: 0 0 clamp(3rem, 6vw, 5rem); max-width: 1100px;
}
.manifesto .w { opacity: .16; transition: opacity .35s linear; }
.manifesto .w.on { opacity: 1; }

.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.about__card {
  position: relative; padding: 1.8rem; border-radius: var(--radius); color: var(--t-ink);
  border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.about__card:nth-child(1) { rotate: -1deg; } .about__card:nth-child(3) { rotate: 1deg; }
.about__card:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 9px 9px 0 var(--edge); }
.about__card--yellow { background: var(--t-yellow); }
.about__card--mint { background: var(--t-mint); }
.about__card--lilac { background: var(--t-lilac); }
.about__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 2px solid var(--ink); font-size: 1.5rem; margin-bottom: 1.2rem; }
.about__card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.about__card p { margin: 0; opacity: .85; }

/* =========================================================
   SERVICES (bento)
   ========================================================= */
.services { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.service {
  position: relative; grid-column: span 3; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 28px; color: var(--t-ink);
  border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.service:nth-child(1) { grid-column: span 4; }
.service:nth-child(2) { grid-column: span 2; }
.service:nth-child(3) { grid-column: span 2; }
.service:nth-child(4) { grid-column: span 4; }
.service:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--edge); }
.service--blue { background: var(--t-blue); }
.service--yellow { background: var(--t-yellow); }
.service--coral { background: var(--t-coral); }
.service--mint { background: var(--t-mint); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.service__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); transition: transform .5s var(--spring);
}
.service:hover .service__icon { transform: rotate(-10deg) scale(1.08); }
.service__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service__no { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; opacity: .2; }
.service h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .8rem; max-width: 22ch; }
.service p { margin: 0 0 1.3rem; opacity: .85; max-width: 52ch; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border: 1.5px solid currentColor; border-radius: 999px; opacity: .8; }

/* =========================================================
   PRODUCTS INTRO
   ========================================================= */
.products-intro { padding-bottom: clamp(3rem, 6vw, 5rem); }
.products-intro__lead { max-width: 38rem; color: var(--muted); font-size: 1.1rem; margin: 1.8rem 0 2.8rem; }
.product-index { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.product-index a {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.4rem; border-radius: 22px; background: var(--card);
  border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge);
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1;
  transition: transform .4s var(--spring), box-shadow .3s, background .3s;
}
.product-index a:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--edge); }
.product-index i { font-style: normal; font-family: var(--f-body); font-weight: 600; font-size: .82rem; letter-spacing: 0; color: var(--muted); }
.product-index a > b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 1.1rem; transition: transform .4s var(--spring); }
.product-index a:hover > b { transform: rotate(-45deg); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); }
.dot--blue { background: var(--blue); } .dot--coral { background: var(--coral); } .dot--pink { background: var(--pink); }

/* =========================================================
   PRODUCT (shared)
   ========================================================= */
.product { overflow: hidden; }
.product__head { display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 2rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.product__num {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; line-height: .8; letter-spacing: -.06em;
  font-size: clamp(5.5rem, 14vw, 12rem); color: var(--accent);
  -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--edge);
}
.product__cat { display: inline-block; margin: 0 0 .7rem; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; margin: 0; }
.emoji { display: inline-block; font-size: .8em; animation: wiggle 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-5deg); } }
.product__tagline { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--accent); margin: .6rem 0 0; }

.product__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.product--reverse .product__info { order: 2; }
.product--reverse .product__visual { order: 1; }
.product__info { display: flex; flex-direction: column; gap: 1.8rem; min-width: 0; }
.product__info > .btn { align-self: flex-start; }
.product__desc { color: var(--muted); font-size: 1.06rem; margin: 0; }
.product__desc b { color: var(--fg); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.features li { padding: .9rem 1rem; border-radius: 16px; background: var(--card); border: 2px solid var(--line); font-size: .9rem; display: flex; flex-direction: column; gap: .15rem; transition: border-color .3s, transform .35s var(--spring); }
.features li:hover { border-color: var(--accent); transform: translateY(-2px); }
.features b { font-family: var(--f-display); font-weight: 800; font-size: 1rem; }
.features span { color: var(--muted); line-height: 1.4; }

.ai-box {
  position: relative; padding: 1.4rem 1.5rem; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 2px solid var(--edge); box-shadow: 5px 5px 0 var(--edge);
}
.ai-box__label { margin: 0 0 .35rem; font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.ai-box__label b { color: var(--accent); }
.spark { color: var(--accent); display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(90deg); } }
.ai-box__text { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.prompts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.prompts li {
  font-size: .88rem; font-weight: 500; padding: .55rem .95rem; border-radius: 18px 18px 18px 4px;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: translateY(10px) scale(.9); transform-origin: 0 100%;
  transition: opacity .5s var(--ease), transform .6s var(--spring);
}
.prompts--plain li { background: transparent; color: var(--fg); border: 2px solid var(--line); border-radius: 999px; }
.ai-box.is-in .prompts li { opacity: 1; transform: none; }
.ai-box.is-in .prompts li:nth-child(2) { transition-delay: .25s; }
.ai-box.is-in .prompts li:nth-child(3) { transition-delay: .5s; }
.ai-box.is-in .prompts li:nth-child(4) { transition-delay: .75s; }
html:not(.js) .prompts li { opacity: 1; transform: none; }

.demo-account { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.demo-account__title { margin: 0 0 .5rem; font-family: var(--f-display); font-weight: 700; font-size: .95rem; }
.demo-account__row { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: .8rem; padding: .3rem 0; font-size: .92rem; }
.demo-account__row span { color: var(--muted); }
.demo-account code { font-family: var(--f-mono); font-size: .92rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .15rem .5rem; border-radius: 6px; justify-self: start; }
.copy {
  border: 2px solid var(--line); background: transparent; border-radius: 999px;
  font-size: .78rem; font-weight: 600; padding: .3rem .85rem; transition: all .25s;
}
.copy:hover { border-color: var(--fg); }
.copy.is-done { background: var(--mint); color: var(--ink); border-color: var(--ink); }

/* Visual stage */
.product__visual { position: relative; padding-bottom: 4.5rem; }
.float-tag { position: absolute; z-index: 4; animation: bob 4s ease-in-out infinite; }
.float-tag--tr { right: -10px; top: -18px; rotate: 6deg; }
.float-tag--tl { left: -10px; top: -18px; rotate: -6deg; }
@keyframes bob { 50% { translate: 0 -8px; } }

.browser {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--card);
  border: 2px solid var(--edge); box-shadow: 9px 9px 0 var(--edge);
  transition: transform .5s var(--ease);
}
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 2px solid var(--edge); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.browser__bar i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); }
.browser__bar i:nth-child(1) { background: var(--coral); } .browser__bar i:nth-child(2) { background: var(--yellow); } .browser__bar i:nth-child(3) { background: var(--mint); }
.browser__url {
  margin: 0 auto; transform: translateX(-24px); font-family: var(--f-mono); font-size: .72rem; color: var(--muted);
  padding: .2rem .9rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line);
}
.browser__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.browser--dark .browser__screen { background: #0B1020; }

.screen-swap img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.screen-swap img.is-active { opacity: 1; transform: none; z-index: 1; }
[data-zoom] { cursor: zoom-in; }

.chat-float {
  position: absolute; z-index: 2; left: -5%; bottom: 0; width: 31%; margin: 0;
  border-radius: 18px; overflow: hidden; rotate: -5deg; background: #fff;
  border: 2px solid var(--edge); box-shadow: 7px 7px 0 var(--edge);
  transition: transform .5s var(--ease);
}

.tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; margin-top: 1.6rem; position: relative; z-index: 3; }
.tabs button {
  border: 2px solid var(--line); background: var(--card); border-radius: 999px;
  padding: .5rem 1rem; font-size: .85rem; font-weight: 600; color: var(--muted); transition: all .3s var(--spring);
}
.tabs button:hover { color: var(--fg); border-color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--edge); color: var(--accent-ink); box-shadow: 3px 3px 0 var(--edge); transform: translateY(-2px); }

.phone {
  position: relative; padding: 8px; border-radius: 40px; background: var(--ink);
  border: 2px solid var(--edge); box-shadow: 8px 8px 0 var(--edge);
  transition: transform .5s var(--ease);
}
.phone::before { content: ""; position: absolute; z-index: 3; top: 15px; left: 50%; width: 28%; height: 16px; transform: translateX(-50%); border-radius: 999px; background: var(--ink); }
.phone__screen { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 9 / 18.5; background: #111; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Product 2: HATZ (always neon night) ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.glow--a { width: 520px; height: 520px; background: #3EC6FF; top: 8%; left: -12%; }
.glow--b { width: 480px; height: 480px; background: #D946EF; bottom: -5%; right: -10%; }
body[data-scene="night"] .glow--a { opacity: .22; }
body[data-scene="night"] .glow--b { opacity: .2; }
.notes span { position: absolute; left: var(--x); top: var(--y); font-size: 2.2rem; color: #D946EF; opacity: .55; animation: note 6s ease-in-out infinite; animation-delay: var(--d); pointer-events: none; }
.notes span:nth-child(even) { color: #3EC6FF; }
@keyframes note { 50% { transform: translateY(-20px) rotate(-12deg); } }

#p-hatz { --edge: #000; }
#p-hatz .product__num { color: #D946EF; text-shadow: 7px 7px 0 #3EC6FF; -webkit-text-stroke-color: #000; }
#p-hatz .product__name { background: linear-gradient(90deg, #E9EEFF 20%, #3EC6FF 60%, #D946EF); -webkit-background-clip: text; background-clip: text; color: transparent; }
#p-hatz .browser, #p-hatz .phone, #p-hatz .ai-box { box-shadow: 8px 8px 0 rgba(62, 198, 255, .35), 0 0 40px -10px rgba(217, 70, 239, .5); border-color: rgba(233, 238, 255, .25); }
#p-hatz .prompts li:nth-child(1) { background: linear-gradient(90deg, #C026D3, #7C3AED); color: #fff; }
#p-hatz .tabs button[aria-selected="true"] { box-shadow: 0 0 20px -2px rgba(62, 198, 255, .7); border-color: transparent; }
#p-hatz .btn { border-color: #000; box-shadow: 4px 4px 0 #D946EF; }
#p-hatz .btn:hover { box-shadow: 7px 7px 0 #D946EF; }
.product__visual--hatz { padding-bottom: 6rem; }
.product__visual--hatz .browser { width: 90%; }
.phone--hatz { position: absolute; z-index: 2; right: 0; top: 16%; width: 30%; rotate: 5deg; }
.product__visual--hatz .tabs { justify-content: flex-start; max-width: 66%; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 1rem; border-radius: 18px;
  border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: .2rem; font-size: .85rem;
}
.steps li::after { content: counter(step); position: absolute; top: .8rem; right: .9rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; }
.steps__icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: .5rem; }
.steps__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps b { font-family: var(--f-display); font-size: .98rem; }
.steps span { color: var(--muted); line-height: 1.4; }

/* ---------- Product 3: NekoGo ---------- */
.product__visual--neko { height: clamp(460px, 50vw, 660px); padding: 0; }
.phone--fan { position: absolute; width: 36%; transition: translate .7s var(--spring), rotate .7s var(--spring), transform .5s var(--ease); }
.phone--fan.phone--l { left: 2%; top: 9%; rotate: -10deg; }
.phone--fan.phone--c { left: 32%; top: 0; z-index: 2; }
.phone--fan.phone--r { left: 62%; top: 9%; rotate: 10deg; }
.product__visual--neko:hover .phone--l { translate: -7% 2%; rotate: -14deg; }
.product__visual--neko:hover .phone--r { translate: 7% 2%; rotate: 14deg; }
.product__visual--neko:hover .phone--c { translate: 0 -4%; }
.product__visual--neko .phone { background: #fff; }
.product__visual--neko .phone::before { background: #fff; }
.product__visual--neko .phone__screen { background: #FBEEF2; }

.neko-stones { position: absolute; inset: 0; pointer-events: none; transition: opacity 1s var(--ease); }
body:not([data-scene="blush"]) .neko-stones { opacity: 0; }
.stone { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; animation: catbob 6s ease-in-out infinite; animation-delay: var(--d); }
.stone::before { content: ""; position: absolute; left: 12%; right: 12%; top: -14%; height: 34%; background: inherit; clip-path: polygon(0 100%, 12% 0, 38% 70%, 62% 70%, 88% 0, 100% 100%); }
.stone::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 46%, #7FC8D8 0 7%, transparent 8%),
    radial-gradient(circle at 66% 46%, #7FC8D8 0 7%, transparent 8%),
    radial-gradient(circle at 24% 62%, rgba(240, 140, 170, .6) 0 8%, transparent 10%),
    radial-gradient(circle at 76% 62%, rgba(240, 140, 170, .6) 0 8%, transparent 10%);
}
.stone--b { background: #54473F; }
.stone--w { background: #F5EEE8; box-shadow: 0 8px 20px -6px rgba(59, 17, 40, .25); }
@keyframes catbob { 50% { transform: translateY(-14px) rotate(8deg); } }

/* =========================================================
   PROCESS
   ========================================================= */
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.process__list::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 3px dashed var(--line); z-index: -1; }
.process__list li { position: relative; padding: 0 .4rem 0 0; }
.process__no {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 1.3rem; color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.8rem;
  border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); transition: transform .5s var(--spring);
}
.process__list li:hover .process__no { transform: rotate(-12deg) scale(1.08); }
.process__no--yellow { background: var(--yellow); } .process__no--mint { background: var(--mint); }
.process__no--lilac { background: var(--lilac); } .process__no--coral { background: var(--coral); }
.process__list h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.process__list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* =========================================================
   CONTACT (pop blue)
   ========================================================= */
.contact { padding-bottom: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.contact .section-label { border-color: rgba(255, 255, 255, .4); }
.contact__star { position: absolute; width: clamp(90px, 12vw, 160px); right: 6%; top: 8%; animation: spin 20s linear infinite; }
.contact__title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(3rem, 9vw, 8.4rem); margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.contact__title em { color: var(--yellow); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }

.contact__email {
  display: inline-flex; align-items: center; gap: .7rem; max-width: 100%;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1.2;
  padding: .7rem 1.3rem; border-radius: 999px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow-wrap: anywhere;
  transition: box-shadow .3s;
}
.contact__email:hover { box-shadow: 9px 9px 0 var(--ink); }
.contact__email span { color: var(--blue); transition: transform .4s var(--spring); }
.contact__email:hover span { transform: translate(4px, -4px) rotate(10deg); }

.contact__list { margin: 2.5rem 0; }
.contact__list > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 2px solid var(--line); }
.contact__list dt { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); padding-top: .2rem; }
.contact__list dd { margin: 0; font-weight: 500; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.contact__list a:hover { background-size: 100% 2px; }

.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) contrast(.9); }

.form { background: var(--card); border: 2px solid rgba(255, 255, 255, .35); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.form__intro { margin: 0 0 1.4rem; color: var(--muted); }
.field { position: relative; margin-bottom: 1.2rem; }
.field input, .field textarea {
  width: 100%; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .3); border-radius: 16px;
  color: var(--fg); font: inherit; font-size: 1rem; padding: 1.5rem 1rem .55rem; resize: vertical;
  transition: border-color .25s, background .25s;
}
.field textarea { min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: rgba(255, 255, 255, .16); }
.field label { position: absolute; left: 1rem; top: 1.05rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.6rem) scale(.75); color: var(--yellow); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--coral); }

.chips { border: 0; padding: 0; margin: 0 0 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { width: 100%; font-size: .9rem; color: var(--muted); margin-bottom: .7rem; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .5rem 1rem; border: 2px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: .88rem; font-weight: 600; transition: all .3s var(--spring); }
.chips input:checked + span { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: translateY(-2px) rotate(-2deg); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form .btn { margin-top: .4rem; }
.form__status { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; padding: 1rem 0 2rem; color: var(--fg); }
.footer__big {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(4.5rem, 19vw, 19rem); line-height: .85; letter-spacing: -.06em;
  white-space: nowrap; margin: 0 0 1.5rem -.03em; color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 8px 8px 0 var(--ink);
}
.footer__big span { font-size: .35em; vertical-align: top; color: var(--pink); margin-left: .1em; display: inline-block; animation: spin 10s linear infinite; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 2px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__row p { margin: 0; }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer__row a:hover { color: var(--fg); }
.to-top { font-weight: 700; color: var(--fg); }

/* =========================================================
   LIGHTBOX & TOAST
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; gap: 1rem;
  grid-template-rows: 1fr auto; padding: 4rem var(--gutter) 2rem;
  background: rgba(14, 12, 24, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 16px; border: 2px solid #000; box-shadow: 10px 10px 0 var(--yellow); transform: scale(.94); transition: transform .5s var(--spring); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { color: #fff; font-weight: 500; margin: 0; text-align: center; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #000; background: var(--yellow); color: var(--ink); font-size: 1.1rem; font-weight: 800; box-shadow: 3px 3px 0 #000; }

.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 260; transform: translate(-50%, 180%);
  background: var(--mint); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: .75rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .5s var(--spring), visibility 0s .5s; pointer-events: none; visibility: hidden;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--spring), visibility 0s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-grid; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .collage { max-width: 620px; width: 100%; margin: 1rem auto 0; }
  .product__grid { grid-template-columns: 1fr; }
  .product--reverse .product__info { order: 1; }
  .product--reverse .product__visual { order: 2; }
  .product__visual { max-width: 760px; }
  .process__list { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .process__list::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .shape--blob { left: 60%; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__card:nth-child(n) { rotate: 0deg; }
  .bento { grid-template-columns: 1fr; }
  .service:nth-child(n) { grid-column: auto; }
  .product-index a { grid-template-columns: auto 1fr auto; }
  .product-index i { display: none; }
  .product__head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .chat-float { position: relative; left: auto; bottom: auto; width: 46%; margin: -14% 0 0 2%; }
  .tabs { justify-content: flex-start; }
  .product__visual { padding-bottom: 0; }
  .product__visual--hatz { padding-bottom: 0; }
  .product__visual--hatz .browser { width: 100%; }
  .phone--hatz { position: relative; top: auto; right: auto; width: 52%; margin: -16% 0 0 auto; rotate: 4deg; }
  .product__visual--hatz .tabs { max-width: none; }
  .product__visual--neko { height: auto; aspect-ratio: 1 / .84; }
  .notes { display: none; }
  .process__list { grid-template-columns: 1fr; }
  .contact__list > div { grid-template-columns: 1fr; gap: .2rem; }
  .shape--ring, .shape--squiggle { display: none; }
  .shape--star { width: 64px; top: auto; bottom: 46%; left: auto; right: 4%; }
}

@media (max-width: 640px) {
  .nav { top: 8px; left: 10px; right: 10px; padding: 0 .4rem 0 .7rem; gap: .5rem; }
  .nav__cta { display: none; }
  .brand__name { font-size: 1.15rem; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .collage { aspect-ratio: 1 / 1.05; }
  .badge { width: 92px; height: 92px; left: 4%; }
  .badge text { font-size: 17px; }
  .sticker .tag { font-size: .72rem; }
  .stat { flex: 1 1 100%; }
  .chat-float { width: 56%; margin-top: -10%; }
  .product__info .btn { width: 100%; font-size: .9rem; }
  .browser__url { transform: none; font-size: .64rem; }
  .demo-account__row { grid-template-columns: 1fr auto; }
  .demo-account__row span { grid-column: 1 / -1; font-size: .8rem; margin-bottom: -.4rem; }
  .float-tag--tr { right: 0; } .float-tag--tl { left: 0; }
  .contact__star { top: 3%; right: 4%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .hero__title .line > span, .sticker { opacity: 1; transform: none; scale: 1; }
  .manifesto .w { opacity: 1; }
}
