:root {
  color-scheme: dark;
  --ink: #f3eee9;
  --muted: #bcb2ab;
  --line: rgba(243, 238, 233, .16);
  --orange: #efa778;
  --cyan: #a7d8dc;
  --blur: 0px;
  --shade: .12;
  --hero-copy-opacity: 1;
  --gallery-width: 1440px;
  --hero-half-height: min(18.6075vw, 297.72px, calc(50svh - 6.5rem));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0b090b; color: var(--ink); font-family: "Inter", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
::selection { background: var(--orange); color: #0b090b; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: #0b090b; }
.skip-link:focus { top: 1rem; }
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at center, #331914, #130b0b 78%); }
.scene::before { content: ""; position: absolute; inset: -4rem; background: url("assets/naut-hero.jpg") center / cover no-repeat; filter: blur(28px) brightness(.45); opacity: .7; }
.scene-image { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) perspective(1800px) rotateX(var(--hero-tilt-x, 0deg)) rotateY(var(--hero-tilt-y, 0deg)) rotateZ(var(--hero-tilt-z, 0deg)); transition: transform .25s ease-out; width: calc(var(--hero-half-height) * 4.836759); height: calc(var(--hero-half-height) * 2); object-fit: contain; object-position: center; border: 1px solid #f3eee926; border-radius: 8px; box-shadow: 0 24px 80px #0009; filter: blur(var(--blur)); will-change: filter; }
.scene-shade { position: absolute; inset: 0; background: #09080a; opacity: var(--shade); }
.cover, .content, .footer { position: relative; z-index: 1; }
.cover { min-height: 100svh; display: flex; align-items: end; }
.cover-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.cover-tagline { position: fixed; top: calc(50% + var(--hero-half-height) + 2.25rem); left: 1.5rem; right: 1.5rem; margin: 0; text-align: center; color: #fff; font-family: "Syne", "Inter", sans-serif; font-weight: 400; font-size: clamp(.8rem, 1vw, .95rem); letter-spacing: .025em; line-height: 1.4; opacity: var(--hero-copy-opacity); filter: blur(var(--blur)); pointer-events: none; }
.cover-bottom { width: 100%; padding: 1.5rem; font-size: .82rem; text-shadow: 0 2px 12px #170d0c; }
.cover-links { display: flex; justify-content: center; transition: opacity .25s ease, visibility 0s; }
.has-scrolled .cover-links { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.cover-links a { padding: .5rem 0; }
.cover-links span { margin-left: .4rem; }
.content { width: min(calc(100% - 4rem), 1040px); margin: 0 auto; padding: 5rem 0 3rem; }
.section { min-width: 0; padding: 4rem 0; border-top: 1px solid var(--line); }
.section:first-child { padding-top: 0; border-top: 0; }
h2, h3, p, figure { margin-top: 0; }
h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.18; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
p { line-height: 1.65; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; width: min(calc(100vw - 4rem), var(--gallery-width)); margin-left: 50%; transform: translateX(-50%); padding: 3rem 0; }
.about h2 { justify-self: center; font-size: clamp(2.25rem, 4.3vw, 3.3rem); line-height: 1.12; letter-spacing: -.04em; text-wrap: wrap; }
.about-copy { grid-column: 2; }
@media (min-width: 1400px) { .about h2 { white-space: nowrap; } }
.about-copy { font-size: 1.05rem; }
.about-copy > p { margin-bottom: 1rem; }
.nothing-thought { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; align-items: center; gap: 1rem; margin-top: 1.75rem; color: var(--orange); }
.nothing-thought p { margin: 0; }
.nothing-symbol { display: block; width: 100%; height: auto; }
.image-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; width: min(calc(100vw - 4rem), var(--gallery-width)); margin-top: 5rem; margin-bottom: 2rem; margin-left: 50%; transform: translateX(-50%); }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item img { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-item a { display: block; cursor: pointer; }
.gallery-dialog { width: min(1280px, calc(100vw - 4rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 1.25rem; overflow: auto; border: 0; border-radius: 22px; background: #000; color: var(--ink); }
.gallery-dialog::backdrop { background: #05070b99; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-dialog-header { display: flex; justify-content: center; }
.gallery-dialog button { font: inherit; color: inherit; cursor: pointer; }
.gallery-dialog .gallery-close { position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: var(--orange); }
.gallery-close span::before, .gallery-close span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 2px; border-radius: 99px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); transition: width .2s ease, height .2s ease, transform .2s ease; }
.gallery-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) { .gallery-close:hover span::before, .gallery-close:hover span::after { width: 7px; height: 7px; transform: translate(-50%, -50%); } }
.gallery-dialog button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.gallery-flow { position: relative; height: clamp(160px, 31vw, 480px); max-height: 60dvh; margin: 1rem 0; overflow: hidden; perspective: 1200px; touch-action: pan-y; }
.gallery-slide { position: absolute; left: 20%; top: 50%; width: 60%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #000; box-shadow: 0 0 35px #0008; clip-path: inset(0 -50px); transform: translateY(-50%) translateX(calc(var(--offset) * 72%)) rotateY(calc(var(--tilt) * -42deg)) scale(var(--scale)); filter: brightness(var(--brightness)); z-index: var(--depth); transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
.gallery-flow .gallery-slide { cursor: grab; }
.gallery-flow.is-dragging .gallery-slide { transition: none; cursor: grabbing; }
@property --gallery-reveal { syntax: "<percentage>"; inherits: false; initial-value: -15%; }
.gallery-radial-reveal { pointer-events: none; mask-image: radial-gradient(circle farthest-corner at center, black calc(var(--gallery-reveal) - 14%), transparent var(--gallery-reveal)); animation: gallery-front-reveal .45s ease-out both; }
@keyframes gallery-front-reveal { from { --gallery-reveal: -15%; } to { --gallery-reveal: 150%; } }
.gallery-slide:focus-visible { outline-offset: -3px !important; }
.gallery-slide picture { display: block; width: 100%; height: 100%; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; -webkit-user-drag: none; }
.gallery-dots { display: flex; justify-content: center; align-items: center; touch-action: none; }
.gallery-dialog .gallery-dot { display: grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: transparent; transition: width .3s ease; }
.gallery-dot::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #ffffff66; transition: width .3s ease, background .3s ease; }
.gallery-dialog .gallery-dot[aria-current="true"] { width: 48px; }
.gallery-dot[aria-current="true"]::before { width: 32px; background: var(--orange); }
.gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gallery-item figcaption { margin: .7rem 0 0; color: var(--muted); }
figcaption, .media-note { font-size: .75rem; line-height: 1.5; }
.section-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 2rem 4rem; margin-bottom: 2rem; }
.section-header > p { margin: 0; color: var(--muted); font-size: .95rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #060708; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-note { margin: .75rem 0 0; color: var(--muted); }
.demo-section .section-header { grid-template-columns: minmax(0, 1fr); }
.dreams-heading { display: flex; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.dreams-heading img { display: block; width: 160px; height: auto; }
.demo-brand p { margin: 0; font-family: inherit; font-size: .95rem; font-weight: 400; line-height: 1.6; color: var(--muted); }
.demo-brand p + p { margin-top: .5rem; }
.community-screenshots { margin-top: 2rem; }
.community-screenshots img { display: block; width: 100%; height: auto; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.pillar-grid article { min-width: 0; }
.pillars { padding-inline: 2rem; background: radial-gradient(ellipse at 50% 30%, #efa7780c, transparent 70%); }
.pillar-symbol { display: block; width: 100%; max-width: 260px; height: auto; margin-bottom: 1.5rem; color: var(--orange); }
.symbol-cyan { color: var(--cyan); }
.pillar-grid h3 { margin: 0 0 .65rem; }
.pillar-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.loop { padding: 3rem 2rem; background: radial-gradient(ellipse at 12% 55%, #efa77816, transparent 65%), #100d0cb3; border-bottom: 1px solid var(--line); }
.loop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 3rem; }
.loop-visual { color: var(--orange); }
.loop-visual svg { display: block; width: 100%; height: auto; }
.loop-node { fill: var(--orange); }
.loop-traveller { transform-origin: 270px 270px; animation: orbit 18s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.loop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.loop-grid li { min-width: 0; padding: .75rem 1rem; animation: step-highlight 18s linear infinite; animation-delay: var(--phase, 0s); }
.loop-grid li:nth-child(2) { --phase: -13.5s; }
.loop-grid li:nth-child(3) { --phase: -9s; }
.loop-grid li:nth-child(4) { --phase: -4.5s; }
/* Crossfade around each cardinal crossing, then hold until the next dot. */
@keyframes step-highlight { 0%, 25%, 100% { color: #d6ad92; } 2%, 23% { color: var(--orange); } 27%, 98% { color: var(--muted); } }
.loop-grid span { font: .7rem ui-monospace, monospace; color: inherit; }
.loop-grid h3 { margin: .5rem 0 .65rem; font-size: 1rem; }
.loop-grid p { margin: 0; color: inherit; font-size: .88rem; }
.deck, .team { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: start; }
.press-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 2.5rem; padding: 2rem; border: 1px solid #9fcbe02b; border-radius: 8px; background: radial-gradient(ellipse at 0% 0%, #31516b55, transparent 75%), linear-gradient(125deg, #172735, #111b25); color: #e8eff3; box-shadow: 0 18px 50px #0005; transition: transform .2s ease, box-shadow .2s ease; }
.press-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px #0007; }
.press-copy { min-width: 0; }
.press-copy h2 { font-size: .95rem; letter-spacing: 0; color: #a8becd; margin-bottom: 1rem; }
.press-tagline { margin: 0 0 1.5rem; font: 400 clamp(1.2rem, 2.1vw, 1.55rem)/1.5 "Inter", Arial, sans-serif; letter-spacing: -.02em; text-wrap: pretty; }
.feature-link { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; padding: .3rem 0; transition: color .2s ease; }
.feature-link:hover, .team-links a:hover, .footer a:hover, .cover-links a:hover { color: var(--orange); }
.press-image { min-width: 0; width: 100%; margin: 0; }
.press-image img { display: block; width: 100%; height: auto; }
.press .feature-link { display: inline-flex; align-items: center; gap: 1.25rem; padding-bottom: .4rem; border-bottom: 1px solid #91c4df; color: #b3d8eb; font-size: .85rem; }
.feature-link > span:last-child { color: inherit; font-size: 1.25rem; }
.deck > p, .team > p { margin: 0; max-width: 38rem; color: var(--muted); font-size: .98rem; }
.deck-link, .team-links { grid-column: 2; }
.deck-link { display: inline-flex; align-items: center; justify-self: start; gap: 1.5rem; padding: .5rem 0; border-bottom: 1px solid var(--orange); color: var(--orange); font-size: .95rem; transition: color .2s ease; }
.deck-link:hover { color: #ffc8a5; }
.team-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .83rem; }
.team-links span { margin-left: .3rem; color: var(--orange); }
.team { align-items: center; background: #080808; padding: 2.5rem; margin-top: 1rem; border-top: 0; }
.studio-identity { grid-row: 1 / 3; min-width: 0; }
.studio-brand { position: relative; width: 100%; aspect-ratio: 4.2; overflow: hidden; }
.studio-brand img { position: absolute; top: 50%; left: 0; width: 100%; height: auto; transform: translateY(-50%); }
.studio-link { display: inline-flex; align-items: center; gap: 1.5rem; padding: .6rem 0; border-bottom: 1px solid var(--orange); color: var(--orange); font-size: .95rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1.5rem, calc((100vw - 1040px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
@media (max-width: 760px) {
  .cover-title { top: 12%; left: 0; width: 100%; height: auto; margin: 0; overflow: visible; clip: auto; color: #f1b08e; font-size: 3rem; font-weight: 400; letter-spacing: .24em; text-align: center; text-indent: .24em; }
  .content { width: min(calc(100% - 3rem), 36rem); padding-top: 3.5rem; }
  .section { padding: 3rem 0; }
  .about-layout, .section-header, .press, .deck, .team { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .about h2 { width: auto; max-width: 22ch; margin-left: 0; }
  .about-layout { width: 100%; padding: 2rem 0; }
  .about-copy { grid-column: 1; }
  .about-copy { font-size: 1rem; }
  .section-header { margin-bottom: 1.75rem; }
  .demo-section .section-header { grid-template-columns: minmax(0, 1fr); }
  .demo-summary { text-align: left; }
  .image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 2rem); margin-top: 3.5rem; margin-bottom: 1.5rem; }
  .gallery-dialog { width: calc(100vw - 2rem); padding: .75rem; border-radius: 16px; }
  .gallery-slide { left: 12%; width: 76%; }
  .team { padding: 2rem 1.5rem; }
  .studio-identity { grid-row: auto; max-width: 300px; }
  .pillar-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .pillars { padding-inline: 0; }
  .loop { padding: 2rem 1rem; }
  .pillar-grid article { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .pillar-symbol { grid-row: 1 / 3; margin: 0; }
  .pillar-grid h3 { max-width: none; font-size: 1rem; }
  .pillar-grid p { font-size: .9rem; }
  .loop-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .loop-visual { width: 180px; }
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .deck-link, .team-links { grid-column: 1; }
  .press-card { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; gap: 1.5rem; }
  .press-image { max-width: 130px; }
  .footer { flex-direction: column; }
}
@media (max-width: 370px) {
  .pillar-grid article { grid-template-columns: 65px minmax(0, 1fr); gap: .4rem 1rem; }
  .cover-links { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-image { will-change: auto; }
  .loop-traveller { animation: none; }
  .loop-grid li { animation: none; opacity: 1; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
