/*! Mitos (https://univa.my/mitos) © 2026 UNIVA. All rights reserved. */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

/* Mitos: a night sky over an old story. Ink-violet dark, the logo's gold crescent as the one accent,
   Instrument Serif italic for the voice of the brand, Instrument Sans for everything that has to be read. */
:root {
  --night: #0b0818; --night-2: #120d29; --night-3: #1b1440;
  --violet: #7b4ff0; --violet-deep: #2a1670;
  --gold: #e7b54a; --gold-hi: #f6d27a; --gold-lo: #c98f1f;
  --ink: #f3eefc; --ink-2: #cfc6e8; --mute: #8e84b0; --line: rgba(212, 204, 238, .14);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* film grain over everything, very faint */
/* the hero's sky and 3D stage bleed past the content width; clip sideways only */
main { overflow-x: clip; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold-hi); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--night-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; letter-spacing: -.005em;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s;
}
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-gold {
  color: #1a1206; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  box-shadow: 0 0 0 1px rgba(246, 210, 122, .4) inset, 0 10px 30px -10px rgba(231, 181, 74, .55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(246, 210, 122, .6) inset, 0 16px 40px -12px rgba(231, 181, 74, .7); }
.btn-line { color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.btn-line:hover { background: rgba(255, 255, 255, .06); border-color: rgba(212, 204, 238, .3); }
.btn.sm { padding: 9px 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter); transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 8, 24, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark img { border-radius: 9px; }
.mark span { display: flex; flex-direction: column; line-height: 1.05; }
.mark b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 25px; letter-spacing: .005em; }
.mark small { font-size: 11.5px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.links { display: flex; gap: 26px; margin-left: 18px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  all: unset; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; color: var(--mute);
}
.lang button[aria-pressed="true"] { background: var(--night-3); color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--gold-hi); }

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(16px, 3vw, 40px); align-items: center;
}
.sky {
  position: absolute; inset: -120px -40vw 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 14%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 82%, #fff6 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 78% 30%, #f6d27aaa 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 58%, #fff7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 84%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 40%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 56% 52%, #fff5 50%, transparent 51%),
    radial-gradient(55% 55% at 70% 45%, rgba(123, 79, 240, .3), transparent 70%),
    radial-gradient(40% 40% at 20% 10%, rgba(42, 22, 112, .7), transparent 70%),
    radial-gradient(30% 30% at 70% 50%, rgba(231, 181, 74, .1), transparent 70%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .82; } }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; background: rgba(27, 20, 64, .5);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
h1 {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 88px);
  line-height: .98; letter-spacing: -.02em;
}
h1 em { color: var(--ink-2); }
h1 .gold, h2 em, .close h2 em {
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 40%, #fff1c9 55%, var(--gold-lo) 80%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.lede { margin: 26px 0 34px; max-width: 34em; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: 80ms; }
.reveal.d1 { animation-delay: 190ms; } .reveal.d2 { animation-delay: 300ms; } .reveal.d3 { animation-delay: 410ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* hero stage: the WebGL crescent and its orbit of theme clips (mitos3d.js draws into it) */
.hero-art { position: relative; aspect-ratio: 1; width: 112%; margin-right: -12%; justify-self: center; }
.hero-art canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.hero-art.gl canvas { opacity: 1; }
.fallback { position: absolute; inset: 22%; width: 56%; height: 56%; stroke: none; filter: drop-shadow(0 0 50px rgba(231, 181, 74, .45)); animation: bob 9s ease-in-out infinite; }
.hero-art.gl .fallback { display: none; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.chip {
  position: absolute; left: 50%; bottom: 4%; z-index: 3; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 13.5px; color: var(--ink);
  background: rgba(18, 13, 41, .78); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, 18px); animation: chip-in .8s 1.2s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes chip-in { to { opacity: 1; transform: translate(-50%, 0); } }
.chip-k { font: 600 12px/1 ui-monospace, Consolas, monospace; color: var(--night); background: var(--gold); padding: 6px 8px; border-radius: 999px; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: rgba(18, 13, 41, .5); }
.ticker-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: var(--ink-2); padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.ticker span::after { content: "✦"; font-style: normal; font-size: 12px; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.015em; }
.sec-lede { margin: 18px 0 0; color: var(--ink-2); font-size: 17px; max-width: 38em; }
h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

/* ---------- products: Video, Design, Web ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.product {
  display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; position: relative;
  background: rgba(18, 13, 41, .55); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(231, 181, 74, .4); }
.product.live { background: linear-gradient(170deg, rgba(42, 22, 112, .6), rgba(18, 13, 41, .92) 60%); border-color: rgba(231, 181, 74, .35); }
.product.live::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 79, 240, .35), transparent); pointer-events: none; }
.p-art { position: relative; height: 230px; margin: 14px 14px 0; border-radius: 18px; overflow: hidden; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .06); }
.p-body { position: relative; padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 30px; font-weight: 500; margin-top: 16px; line-height: 1.05; }
.p-body h3 em { color: var(--gold-hi); font-size: 1.14em; }
.p-sub { margin: 4px 0 12px; color: var(--mute); font-size: 14px; letter-spacing: .02em; }
.p-body > p:not(.badge):not(.p-sub) { margin: 0; color: var(--ink-2); font-size: 15px; }
.p-body .btn { margin-top: auto; align-self: flex-start; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); }
.badge.live { color: #b9f3d3; border-color: rgba(80, 220, 150, .35); background: rgba(16, 145, 90, .14); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ee09a; box-shadow: 0 0 0 0 rgba(78, 224, 154, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(78, 224, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(78, 224, 154, 0); } }
.ticks { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14.5px; }
.ticks li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 12px; }

/* Video: four live theme clips */
.p-video { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px; background: #07050f; }
.p-video video { border-radius: 12px; min-height: 0; }

/* Design: a poster, a thumbnail, carousel slides and a palette, drawn in CSS */
.p-design { background: radial-gradient(120% 90% at 20% 0%, #2a1670, var(--night-2) 70%); }
.p-design .poster {
  position: absolute; left: 9%; top: 12%; width: 38%; height: 76%; border-radius: 10px; padding: 12px;
  background: linear-gradient(170deg, #f6d27a, #e7895a 60%, #b2425e); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); transform: rotate(-5deg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.p-design .poster .sun { position: absolute; left: 50%; top: 18%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #fff4d6; box-shadow: 0 0 30px #fff4d6aa; }
.p-design b { display: block; height: 7px; border-radius: 4px; background: rgba(26, 18, 6, .75); }
.p-design b.short { width: 60%; }
.p-design .thumb {
  position: absolute; right: 8%; top: 14%; width: 46%; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden;
  background: linear-gradient(120deg, #7b4ff0, #2a1670); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); transform: rotate(3deg);
}
.p-design .thumb i { position: absolute; right: 10%; top: 18%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #e7b54a; }
.p-design .thumb b { position: absolute; left: 9%; bottom: 18%; width: 46%; height: 9px; background: #fff; }
.p-design .slides { position: absolute; right: 8%; top: 52%; display: flex; gap: 6px; }
.p-design .slides i { width: 34px; height: 42px; border-radius: 6px; background: rgba(243, 238, 252, .12); border: 1px solid rgba(243, 238, 252, .2); }
.p-design .slides i:first-child { background: rgba(231, 181, 74, .35); border-color: rgba(231, 181, 74, .6); }
.p-design .swatches { position: absolute; right: 8%; bottom: 12%; display: flex; gap: 6px; }
.p-design .swatches i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.p-design .swatches i:nth-child(1) { background: #0b0818; } .p-design .swatches i:nth-child(2) { background: #7b4ff0; }
.p-design .swatches i:nth-child(3) { background: #e7b54a; } .p-design .swatches i:nth-child(4) { background: #f3eefc; }

/* Web: a browser window with a generated landing page */
.p-web { background: radial-gradient(120% 90% at 80% 0%, #2a1670, var(--night-2) 70%); display: grid; place-items: end center; padding: 22px 18px 0; }
.p-web .browser { width: 100%; height: 100%; border-radius: 12px 12px 0 0; background: #f3eefc; overflow: hidden; box-shadow: 0 -10px 40px -10px rgba(123, 79, 240, .5); }
.p-web .bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #e2dcef; }
.p-web .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c4bbd8; }
.p-web .bar i:first-child { background: #e7895a; }
.p-web .bar span { margin-left: 8px; flex: 1; font: 500 10px/1 ui-monospace, Consolas, monospace; color: #6a6182; background: #f3eefc; border-radius: 6px; padding: 4px 8px; }
.p-web .page { padding: 12px; }
.p-web .hero-b { border-radius: 8px; padding: 16px 14px; background: linear-gradient(130deg, #0b0818, #2a1670); display: flex; flex-direction: column; gap: 6px; }
.p-web .hero-b b { display: block; height: 9px; width: 70%; border-radius: 4px; background: #f6d27a; }
.p-web .hero-b b.short { width: 45%; height: 6px; background: rgba(243, 238, 252, .5); }
.p-web .hero-b .pill { margin-top: 6px; width: 64px; height: 16px; border-radius: 999px; background: #e7b54a; }
.p-web .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.p-web .cols i { height: 46px; border-radius: 6px; background: #e2dcef; }

/* principles */
.tenets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tenets li { padding: 32px 28px 8px 0; position: relative; }
.tenets li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.num { display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.tenets h3 { font-size: 20px; margin-bottom: 10px; }
.tenets p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* style reel */
.reel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 282 / 336; border: 1px solid rgba(255, 255, 255, .08); background: var(--night-2); }
.tile video { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tile:hover video { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: auto 0 0; padding: 26px 12px 10px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(6, 4, 14, .85));
  display: flex; justify-content: space-between; align-items: baseline;
}
.tile figcaption span { font: 500 11px/1 ui-monospace, Consolas, monospace; color: var(--gold-hi); opacity: .9; }

/* closing */
.close { position: relative; text-align: center; max-width: 820px; margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(72px, 9vw, 120px); }
.close-moon { width: 64px; height: 64px; fill: var(--gold); stroke: none; filter: drop-shadow(0 0 30px rgba(231, 181, 74, .6)); margin-bottom: 22px; }
.close h2 { font-size: clamp(40px, 6vw, 76px); }
.close p { color: var(--ink-2); font-size: 17px; margin: 18px auto 32px; max-width: 30em; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: var(--max); margin: 0 auto;
  padding: 26px var(--gutter) 34px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .products { grid-template-columns: 1fr 1fr; }
  .product.live { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .product.live .p-art { height: auto; min-height: 260px; margin: 14px 0 14px 14px; }
}
@media (max-width: 960px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 100%; margin: -12px auto -8px; max-width: 620px; aspect-ratio: 1.12; }
  .chip { display: none; }
  .tenets { grid-template-columns: 1fr; }
  .tenets li, .tenets li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .reel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .products { grid-template-columns: 1fr; }
  .product.live { display: flex; }
  .product.live .p-art { height: 230px; min-height: 0; margin: 14px 14px 0; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav .btn.sm { display: none; }
  .mark small { display: none; }
  .reel { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-art { width: calc(100% + 32px); margin: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
}
