/* KReative Studio, direction A ("Night studio"): what every page shares.
   Page-specific layout lives in each page's own <style>. */

@font-face { font-family: "Amatic SC"; font-weight: 700; font-display: swap; src: url("/assets/fonts/amatic-sc-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Amatic SC"; font-weight: 700; font-display: swap; src: url("/assets/fonts/amatic-sc-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/exo-2-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Exo 2"; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/exo-2-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --night: #15110E;
  --night-2: #1D1713;
  --line: rgba(241, 232, 217, .12);
  --cream: #F1E8D9;
  --muted: #B5AB9B;
  --amber: #E8820A;
  --amber-light: #FFB85C;
  --ink-on-pastel: #2A1A10;
  --f-head: "Amatic SC", "Arial Narrow", sans-serif;
  --f-text: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --t-display: clamp(3.6rem, 1.9rem + 4.8vw, 6rem);
  --t-section: clamp(3rem, 2.1rem + 2.6vw, 4.75rem);
  --t-product: clamp(2.7rem, 2.1rem + 1.7vw, 3.75rem);
  --t-lede: clamp(1.2rem, 1.05rem + .45vw, 1.375rem);
  --gutter: clamp(1rem, .2rem + 3.4vw, 3.75rem);
  --hexpath: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scrollbar-color: #4A3E35 var(--night); scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
::selection { background: rgba(232, 130, 10, .4); color: var(--cream); }
:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 3px; border-radius: 6px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
input { caret-color: var(--amber); accent-color: var(--amber); }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; letter-spacing: .01em; line-height: .98; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain, very low, over everything */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .065; mix-blend-mode: overlay; background-image: var(--grain); }

/* ---------- header: the site bar; on product pages it becomes the product bar once the hero is behind us ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 76px; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.site-header.solid { background: var(--night); border-bottom-color: var(--line); }
.bar { position: absolute; left: 0; right: 0; top: 0; height: 76px; display: flex; align-items: center; gap: 36px;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear 0s; }
.bar-product { gap: 14px; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s; }
.site-header.is-product .bar-site { opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s; }
.site-header.is-product .bar-product { opacity: 1; transform: none; visibility: visible; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear 0s; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 28px; height: auto; }
.brand span { font: 700 1.9rem/1 var(--f-head); letter-spacing: .02em; }
.brand b { color: var(--amber); }
.site-nav { margin-left: auto; display: flex; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; color: rgba(241, 232, 217, .8); text-decoration: none; }
.site-nav a:hover { color: var(--cream); }
.lang { display: inline-flex; gap: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: 999px; color: rgba(241, 232, 217, .6); font-size: 14px; font-weight: 600; text-decoration: none; }
.lang a:hover { color: var(--cream); }
.lang a[aria-current="true"] { color: var(--cream); background: rgba(241, 232, 217, .1); }
.bp-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -8px; }
.bp-mark img { width: 24px; height: auto; }
.bp-name { font: 700 2rem/1 var(--f-head); letter-spacing: .05em; white-space: nowrap; }
.bp-nav { display: flex; gap: 2px; margin-left: 18px; }
.bp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: rgba(241, 232, 217, .74); text-decoration: none; }
.bp-nav a:hover { color: var(--cream); }
.bp-nav a[aria-current="true"] { color: var(--cream); background: rgba(241, 232, 217, .09); }
.bp-cta { margin-left: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; line-height: 1; text-align: center; text-wrap: balance; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn[hidden] { display: none; }
.btn-primary { background: var(--amber); color: #1A0E04; }
.btn-primary:hover { background: var(--amber-light); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(241, 232, 217, .4); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-dark { background: var(--ink-on-pastel); color: #F6EADB; }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink-on-pastel); border-color: rgba(42, 26, 16, .45); }
.btn-line:hover { border-color: var(--ink-on-pastel); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.hexplay { width: 22px; height: 25px; flex: none; }
.link-btn { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }

/* ---------- product covers: the full GUI on its pastel, held by a crisp hexagon ---------- */
.cover { display: block; text-decoration: none; color: var(--cream); }
.cover-art { position: relative; height: 172px; border-radius: 12px; overflow: hidden; background: var(--tint); transform: translateY(0); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.cover-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 50% 28%, rgba(255, 255, 255, .38), transparent 70%); }
.cover-art .cushion { position: absolute; left: 50%; top: 50%; height: 92%; aspect-ratio: 1 / 1.1547; transform: translate(-50%, -50%); }
.cover-art img { position: absolute; left: 50%; top: 50%; width: var(--w, 80%); transform: translate(-50%, -50%) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-2deg); border-radius: 5px; box-shadow: 0 22px 30px -14px rgba(0, 0, 0, .44); transition: transform .5s var(--ease-out); }
.cover:hover .cover-art, .cover:focus-visible .cover-art { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7); }
.cover-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; }
.cover-name { font: 700 1.75rem/1 var(--f-head); letter-spacing: .02em; }
.cover-status { font-size: 14px; color: var(--muted); white-space: nowrap; }
.cover-status.free { color: var(--cream); font-weight: 600; }

/* ---------- the video player: our own poster, YouTube only after a click ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0B0907; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(.92); transition: transform 1.2s var(--ease-out), filter .4s; }
.player .inset { position: absolute; right: 5%; bottom: 9%; width: var(--inset, 36%); border-radius: 6px; box-shadow: 0 26px 40px -16px rgba(0, 0, 0, .85); transform: rotate(-2deg); }
.player .playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92px; height: 106px; border: 0; padding: 0; background: none; cursor: pointer; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)); }
.player .playbtn svg { width: 100%; height: 100%; transition: transform .4s var(--ease-out); }
.player:hover .poster { transform: scale(1.03); filter: brightness(.7) saturate(.95); }
.player:hover .playbtn svg { transform: scale(1.06); }
.player .say { position: absolute; left: 22px; bottom: 18px; margin: 0; font-size: 15px; font-weight: 500; color: rgba(241, 232, 217, .92); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- launch-notification forms (double opt-in through api.kr-studio.com) ---------- */
.notify { position: relative; text-align: left; }
.notify[hidden] { display: none; }
.notify label.field { display: block; font-size: 14px; margin-bottom: 6px; }
.notify-row { display: flex; gap: 10px; }
.notify input[type="email"] { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(241, 232, 217, .38); background: rgba(14, 11, 9, .55); color: var(--cream); }
.notify.on-pastel input[type="email"] { border-color: rgba(42, 26, 16, .35); background: rgba(255, 255, 255, .55); color: var(--ink-on-pastel); }
.notify input::placeholder { color: inherit; opacity: .62; }
.notify .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; padding: 7px 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.notify .consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.notify .consent a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.notify .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notify-status { margin: 6px 0 0; font-size: 14px; min-height: 1.4em; }
.notify-status:empty { min-height: 0; margin: 0; }
.notify-status b { font-weight: 700; }
.notify.is-done .notify-row, .notify.is-done .consent, .notify.is-done label.field { display: none; }
.notify.is-done .notify-status { margin: 0; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(80px, 9vw, 120px); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.site-footer nav a:hover { color: var(--cream); }

/* ---------- privacy notice: a small, quiet card in the bottom-right corner ---------- */
.notice { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; width: min(400px, calc(100vw - 36px)); padding: 9px 9px 9px 16px; border-radius: 12px; background: rgba(29, 23, 19, .95); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.notice[hidden], .notice-ok .notice { display: none; }
.notice p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(241, 232, 217, .86); }
.notice p a { color: var(--cream); text-decoration: underline; text-underline-offset: .2em; }
.notice .btn { min-height: 40px; padding: 0 16px; font-size: 13px; }

/* ---------- the opening intro: the mark draws itself once per device, then the studio ---------- */
.intro { display: none; }
html.show-intro { overflow: hidden; }
/* the studio's film stays behind it, dimmed and out of focus; leaving pulls it into focus */
html.show-intro .intro { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  /* below the hero's tallest size (1000px) the next section would show through on very tall screens */
  background: linear-gradient(180deg, transparent 960px, rgba(14, 11, 9, .97) 1040px), radial-gradient(75% 70% at 50% 46%, rgba(21, 17, 14, .5) 0%, rgba(14, 11, 9, .9) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(.9); backdrop-filter: blur(16px) saturate(.9);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: var(--grain); }
.intro.leaving { opacity: 0; transform: scale(1.015); }
.intro-center { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; padding: 0 var(--gutter); text-align: center; }
.intro-mark { width: clamp(120px, 15vw, 172px); height: auto; overflow: visible; }
.intro-mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.intro-mark .outer { stroke: var(--amber); stroke-width: 17; }
.intro-mark .inner { stroke: var(--amber-light); stroke-width: 17; }
.intro-mark .divider { stroke: #B86508; stroke-width: 10; }
.intro-name { margin: 0; font: 700 clamp(3rem, 2rem + 3vw, 4.6rem)/1 var(--f-head); letter-spacing: .06em; padding-left: .06em; text-shadow: -1.2px 0 rgba(255, 92, 60, .38), 1.2px 0 rgba(70, 205, 255, .28); }
.intro-name b { color: var(--amber); }
.intro-skip { position: absolute; top: 16px; right: var(--gutter); z-index: 2; color: rgba(241, 232, 217, .7); }
.intro-skip:hover { color: var(--cream); }

/* ---------- long-form pages: privacy policy, not found ---------- */
.doc { padding-top: clamp(120px, 14vw, 170px); max-width: 860px; }
.doc h1 { font-size: var(--t-section); }
.doc-intro { margin: 18px 0 0; max-width: 56ch; font-size: 18px; color: rgba(241, 232, 217, .86); }
.doc-sections { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.doc-sections section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc-sections h2 { font: 600 19px/1.4 var(--f-text); letter-spacing: 0; text-wrap: balance; }
.doc-sections p { margin: 8px 0 0; max-width: 58ch; color: rgba(241, 232, 217, .8); }
.doc a { color: var(--cream); text-decoration-color: rgba(241, 232, 217, .45); }
.doc a:hover { text-decoration-color: var(--cream); }
.doc-version { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.doc-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 600; }
/* not found: the stage is set, the object is missing */
.lost { --hw: clamp(210px, 24vw, 320px); min-height: min(100svh, 900px); display: flex; flex-direction: column; justify-content: center; padding: 110px 0 64px; text-align: center;
  background: radial-gradient(82% 74% at 50% 32%, #3A2E27 0%, color-mix(in srgb, #3A2E27 46%, var(--night)) 50%, var(--night) 100%); }
.lost-stage { position: relative; flex: none; width: var(--hw); height: calc(var(--hw) * 1.1547); margin: 0 auto; }
.lost-stage .bed { position: absolute; inset: 0; clip-path: var(--hexpath); background: linear-gradient(180deg, rgba(244, 199, 160, .2), rgba(244, 199, 160, .05)); }
.lost-stage .bed-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lost-stage .bed-line polygon { fill: none; stroke: rgba(244, 199, 160, .6); stroke-width: .4; }
.lost-stage .bed, .lost-stage .bed-line { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 92%); mask-image: linear-gradient(180deg, #000 62%, transparent 92%); }
.lost-copy { position: relative; margin-top: calc(var(--hw) * -.16); }
.lost h1 { font-size: var(--t-display); text-shadow: -1.2px 0 rgba(255, 92, 60, .38), 1.2px 0 rgba(70, 205, 255, .28); }
.lost p { margin: 16px auto 0; max-width: 52ch; font-size: 18px; color: rgba(241, 232, 217, .86); }
.lost-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.lost + .site-footer { margin-top: 0; }

/* ---------- motion: headlines arrive once with a short glitch ---------- */
@keyframes glitch-in {
  0% { opacity: 0; }
  8% { opacity: 1; clip-path: inset(0 0 62% 0); transform: translateX(-6px); text-shadow: -6px 0 rgba(255, 92, 60, .7), 6px 0 rgba(70, 205, 255, .6); }
  16% { clip-path: inset(38% 0 20% 0); transform: translateX(5px); }
  24% { clip-path: inset(70% 0 0 0); transform: translateX(-3px); }
  32% { clip-path: inset(0 0 0 0); transform: translateX(2px); text-shadow: -3px 0 rgba(255, 92, 60, .55), 3px 0 rgba(70, 205, 255, .45); }
  40% { transform: none; }
  100% { opacity: 1; clip-path: none; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-mark 1.2s var(--ease-out) .15s forwards; }
  .intro-mark .inner { animation-delay: .45s; }
  .intro-mark .divider { animation-duration: .8s; animation-delay: .8s; }
  .intro-name { animation: glitch-in 1.1s steps(1, end) 1.05s both; }
  .intro-explore { animation: rise-in .8s var(--ease-out) 1.75s both; }
  @keyframes draw-mark { to { stroke-dashoffset: 0; } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .cover-art, .cover-art img, .player .poster, .player .playbtn svg, .bar, .intro { transition: none !important; }
}

/* ---------- phone ---------- */
@media (max-width: 1100px) {
  .bp-nav { display: none; }
}
@media (max-width: 640px) {
  .site-header, .bar { height: 60px; }
  .bar-site { gap: 12px; }
  .site-nav { display: none; }
  .lang { margin-left: auto; }
  .brand span { font-size: 1.65rem; }
  .bp-name { font-size: 1.7rem; }
  .bp-cta.btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
  html { scroll-padding-top: 74px; }
  .notice { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding-left: 14px; }
  .player .playbtn { width: 62px; height: 72px; }
  .player .inset { width: 28% !important; right: 4%; bottom: 8%; }
  .player .say { left: 14px; bottom: 10px; font-size: 13px; }
  .notify .btn { padding: 0 18px; }
}
@media (max-width: 360px) {
  .notify-row { flex-direction: column; }
}
