/* Axpeiron Entertainment · www.axpeiron.com */
:root {
  --bg: #0a0a0a;
  --bg-2: #101010;
  --bg-3: #161616;
  --ink: #f2eee6;
  --ink-2: #a9a59d;
  --ink-3: #75726c;
  --rule: rgba(242, 238, 230, 0.12);
  --rule-2: rgba(242, 238, 230, 0.22);
  --gold: #c8a465;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--gold); color: #0a0a0a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.label { font: 500 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.display { font: 400 clamp(52px, 9.4vw, 140px)/0.95 var(--serif); letter-spacing: -0.025em; }
.display-2 { font: 400 clamp(40px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -0.02em; }
.display em, .display-2 em { color: var(--ink-2); }
.body-lg { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 34em; font-weight: 300; }
.body-lg a { color: var(--ink); border-bottom: 1px solid var(--rule-2); transition: border-color .3s; }
.body-lg a:hover { border-color: var(--ink); }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font: 500 15px/1 var(--sans); letter-spacing: 0.01em; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.link { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font: 500 15px/1 var(--sans); }
.link::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.link:hover::after { width: 30px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10, 10, 10, 0.78); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--rule); }
.nav-in { max-width: 1320px; height: 100%; margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.brand-mark { width: 30px; height: auto; }
.brand-word { width: 120px; height: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13px; color: var(--ink-2); transition: color .25s; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta a { border: 1px solid var(--rule-2); border-radius: 999px; padding: 0 18px; min-height: 36px; color: var(--ink); transition: border-color .25s, background .25s; }
.nav-cta a:hover { border-color: var(--ink); }
.nav-menu { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-menu span { position: absolute; left: 12px; width: 20px; height: 1px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-menu span:first-child { top: 18px; }
.nav-menu span:last-child { top: 26px; }
.nav-menu[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav-menu { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h)); background: var(--bg);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter) 48px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--rule); }
  .nav-links a { font: 400 36px/1 var(--serif); color: var(--ink); min-height: 72px; width: 100%; }
  .nav-cta { border-bottom: 0 !important; padding-top: 32px; }
  .nav-cta a { font: 500 15px/1 var(--sans); min-height: 48px; width: auto; padding: 0 24px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { background: var(--bg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 120px; text-align: center; overflow: hidden; isolation: isolate; }
.hero-light {
  position: absolute; z-index: -1; left: 50%; bottom: -64vh; width: 160vw; height: 90vh; transform: translateX(-50%);
  border-radius: 50%; border-top: 1px solid rgba(200, 164, 101, 0.28);
  background: radial-gradient(50% 40% at 50% 0%, rgba(200, 164, 101, 0.16), rgba(200, 164, 101, 0.03) 60%, transparent 80%);
}
@media (max-width: 560px) { .hero { padding-bottom: 190px; } .hero-light { bottom: -72vh; } }
.hero-in { display: flex; flex-direction: column; align-items: center; max-width: 1100px; }
.hero-mark { width: clamp(84px, 9vw, 120px); height: auto; margin-bottom: 36px; animation: fade 1.4s var(--ease) both; }
.hero-label { margin-bottom: 28px; animation: up 1.2s .15s var(--ease) both; }
.hero .display { animation: up 1.4s .25s var(--ease) both; }
.hero-sub { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; color: var(--ink-2); animation: up 1.4s .4s var(--ease) both; }
.hero .actions { justify-content: center; animation: up 1.4s .55s var(--ease) both; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(16px, 3.6vw, 52px); padding-inline: var(--gutter); font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); animation: fade 2s .9s var(--ease) both; }

/* ---------- Section frame ---------- */
.about, .services, .approach { padding-block: clamp(96px, 14vw, 200px); }
.about, .sec-head { display: grid; grid-template-columns: 3fr 9fr; gap: 24px var(--gutter); align-items: baseline; }
.side { padding-top: 0.9em; }
.statement { font: 400 clamp(30px, 3.9vw, 56px)/1.12 var(--serif); letter-spacing: -0.015em; max-width: 21em; }
.statement a { border-bottom: 1px solid var(--rule-2); transition: border-color .3s; }
.statement a:hover { border-color: var(--ink); }
.about { border-bottom: 1px solid var(--rule); }
@media (max-width: 800px) {
  .about, .sec-head { grid-template-columns: 1fr; }
  .side { padding-top: 0; }
}

/* ---------- Services index ---------- */
.services { padding-top: clamp(96px, 12vw, 160px); }
.index { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: none; }
.index li { border-bottom: 1px solid var(--rule); }
.index a {
  position: relative; display: grid; grid-template-columns: 3fr 5fr 4fr 40px; gap: 16px var(--gutter); align-items: baseline;
  padding: 34px 0; transition: padding .5s var(--ease);
}
.index .n { font: 400 15px/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.index .t { font: 400 clamp(28px, 3.2vw, 44px)/1.05 var(--serif); letter-spacing: -0.015em; transition: transform .5s var(--ease), color .3s; }
.index .d { font-size: 15px; color: var(--ink-3); transition: color .3s; font-weight: 300; }
.index .go { justify-self: end; align-self: center; width: 12px; height: 12px; border: solid var(--ink-3); border-width: 1px 1px 0 0; transform: rotate(45deg); transition: border-color .3s, transform .5s var(--ease); }
.index a:hover .t { transform: translateX(12px); }
.index a:hover .d { color: var(--ink-2); }
.index a:hover .go { border-color: var(--ink); transform: translateX(4px) rotate(45deg); }
@media (max-width: 800px) {
  .index a { grid-template-columns: 40px 1fr 24px; padding: 26px 0; }
  .index .d { grid-column: 2 / 3; margin-top: -4px; }
  .index .go { grid-row: 1; grid-column: 3; }
}

/* ---------- Technology ---------- */
.tech { background: var(--bg-2); border-block: 1px solid var(--rule); padding-block: clamp(96px, 12vw, 180px); overflow: hidden; }
.tech-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.tech-copy .label { margin-bottom: 28px; }
.tech-copy .body-lg { margin-top: 32px; }
.specs { margin-top: 56px; border-top: 1px solid var(--rule); }
.specs > div { display: grid; grid-template-columns: 2fr 3fr; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-size: 14px; font-weight: 500; }
.specs dd { font-size: 15px; color: var(--ink-2); font-weight: 300; }
.platform { margin-top: 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 28px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 16px; transition: border-color .3s, background .3s; }
.platform:hover { border-color: var(--rule-2); background: rgba(242, 238, 230, 0.03); }
.platform img { width: 120px; height: auto; }
.platform-text { font-size: 14px; line-height: 1.5; color: var(--ink-2); font-weight: 300; }
.platform-text b { display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.platform-go { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.platform-go::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.platform:hover .platform-go::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 560px) { .platform { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .tech-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .specs > div { grid-template-columns: 1fr; } }

/* Device */
.device-wrap { display: flex; flex-direction: column; align-items: center; }
.device {
  width: 300px; max-width: 100%; aspect-ratio: 300 / 620; border-radius: 52px; padding: 11px;
  background: linear-gradient(160deg, #2a2a2a, #111 40%, #1d1d1d); box-shadow: 0 0 0 1px #333, 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 120px rgba(200, 164, 101, 0.06);
}
.screen { position: relative; height: 100%; border-radius: 42px; background: #0d0d10; overflow: hidden; padding: 16px 16px 20px; font-family: var(--sans); }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 0; font-size: 12px; font-weight: 600; height: 26px; }
.sb-i { display: flex; gap: 3px; align-items: flex-end; }
.sb-i i { display: block; width: 3px; background: var(--ink); border-radius: 1px; }
.sb-i i:nth-child(1) { height: 5px; } .sb-i i:nth-child(2) { height: 7px; } .sb-i i:nth-child(3) { height: 9px; }
.app-top { display: flex; align-items: center; gap: 8px; margin: 22px 4px 16px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.app-top img { width: 26px; height: 26px; }
.tkt { background: #f6f4f0; color: #111; border-radius: 18px; overflow: hidden; position: relative; }
.tkt-band { height: 6px; background: linear-gradient(90deg, #8a6a2e, #e2c58a 50%, #8a6a2e); }
.tkt-body { padding: 16px 18px 14px; }
.tkt-k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #777; font-weight: 500; }
.tkt-t { font: 400 30px/1.05 var(--serif); margin: 4px 0 12px; letter-spacing: -0.01em; }
.tkt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.tkt-row span { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; }
.tkt-row b { font-size: 13px; font-weight: 600; }
.tkt-cut { position: relative; height: 0; border-top: 1.5px dashed #cfcac2; margin: 6px 14px; }
.tkt-cut::before, .tkt-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #0d0d10; }
.tkt-cut::before { left: -25px; } .tkt-cut::after { right: -25px; }
.tkt-qr { padding: 14px 18px 16px; display: flex; flex-direction: column; align-items: center; }
.tkt-qr svg { width: 118px; height: 118px; }
.tkt-qr p { margin-top: 10px; font-size: 11px; color: #777; }
.tkt-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.tkt-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a40; }
.tkt-dots i.on { background: var(--ink); }
.tkt-more { margin-top: 12px; text-align: center; font-size: 11px; color: #8a8a90; }
.device-wrap figcaption { margin-top: 28px; font-size: 12px; color: var(--ink-3); }

/* ---------- Approach ---------- */
.steps { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.steps li { padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps .sn { font: italic 400 18px/1 var(--serif); color: var(--gold); }
.steps h3 { font: 400 32px/1.1 var(--serif); margin: 28px 0 12px; }
.steps p { font-size: 15px; color: var(--ink-2); font-weight: 300; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 24px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 24px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); margin-top: 0; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(96px, 12vw, 180px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 8vw, 140px); }
.contact .label { margin-bottom: 28px; }
.contact .body-lg { margin-top: 28px; }
.mail { display: inline-block; margin-top: 40px; font: 400 clamp(26px, 3vw, 40px)/1.2 var(--serif); border-bottom: 1px solid var(--rule-2); padding-bottom: 4px; transition: border-color .3s; overflow-wrap: anywhere; }
.mail:hover { border-color: var(--ink); }
.form { display: grid; gap: 8px; align-content: start; padding-top: 8px; }
.field { position: relative; display: grid; }
.field label { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding-top: 22px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: transparent;
  color: var(--ink); font: 300 18px/1.4 var(--sans); transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a59d'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field select option { background: var(--bg-3); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #e8806f; }
.form-err { color: #f0a090; font-size: 14px; margin-top: 12px; }
.form-err:empty { display: none; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.form-note { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: clamp(64px, 8vw, 104px) 0 36px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 4fr 8fr; gap: 48px var(--gutter); padding-bottom: 64px; }
.foot-brand { display: inline-block; align-self: start; }
.foot-brand img { width: 150px; height: auto; opacity: .9; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot h3 { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); font-weight: 300; transition: color .25s; }
.foot li a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }
@media (max-width: 800px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot li a { min-height: 44px; }
}

/* ---------- About pillars ---------- */
.pillars { list-style: none; margin: clamp(56px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.pillars li { padding: 24px 20px 0 0; }
.pillars li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.pillars h3 { font: 400 26px/1.1 var(--serif); margin-bottom: 8px; }
.pillars p { font-size: 14px; color: var(--ink-3); font-weight: 300; }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars li:nth-child(n + 3) { margin-top: 24px; border-top: 1px solid var(--rule); }
}

/* ---------- Closing ---------- */
.closing { border-top: 1px solid var(--rule); padding-block: clamp(110px, 15vw, 220px); text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(200, 164, 101, 0.09), transparent 70%), var(--bg); }
.closing-in { display: flex; flex-direction: column; align-items: center; }
.closing .label { margin-bottom: 28px; }
.closing .body-lg { margin: 28px auto 0; }
.closing .actions { justify-content: center; }

.join { margin-top: clamp(72px, 9vw, 120px); padding-top: 40px; border-top: 1px solid var(--rule); max-width: 40em; display: flex; flex-direction: column; align-items: center; }
.join .label { margin-bottom: 16px; }
.join-text { font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); color: var(--ink); text-wrap: balance; }
.join .link { margin-top: 18px; }
.join-note { margin-top: 18px !important; font-size: 16px; }

/* ---------- Contact page ---------- */
.contact { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 140px)); }
.office .label { margin-bottom: 0; }
.office { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 26em; }
.office address { margin-top: 12px; font-style: normal; font-size: 15px; line-height: 1.7; color: var(--ink-2); font-weight: 300; }

/* ---------- Footer additions ---------- */
.foot-id { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.foot-line { font: 500 10px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.no-io .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
