:root {
  --paper: #f4f0e6;
  --ink: #15131c;
  --muted: #5c5868;
  --line: #d9d3c3;
  --lilac: #7c5ce0;
  --teal: #0b8a77;
  --amber: #d9822b;
  --amber-text: #b45f12;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, p, ol { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { z-index: 30; top: 76px; left: 16px; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* mark */
.dobra { width: 100%; height: auto; overflow: visible; }
.dobra .body { fill: var(--ink); }
.dobra .flap { fill: var(--lilac); stroke: var(--lilac); stroke-width: 2; stroke-linejoin: round; transform-origin: 40px 6px; }
.hero .dobra .flap { animation: fold 1.2s .35s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes fold {
  from { transform: rotate(45deg) scaleY(-1) rotate(-45deg); }
  to { transform: rotate(45deg) scaleY(1) rotate(-45deg); }
}

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: linear-gradient(rgb(244 240 230 / .94), rgb(244 240 230 / 0)); transition: opacity .3s; }
.nav.solid { background: rgb(244 240 230 / .86); border-color: var(--line); backdrop-filter: blur(14px); }
.nav.solid::before { opacity: 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 19px; }
.brand .dobra { width: 28px; transition: width .3s, margin .3s, opacity .3s; }
.nav.mark-in .brand { gap: 0; }
.nav.mark-in .brand .dobra { width: 0; opacity: 0; }
.links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; min-height: 85svh; display: flex; align-items: center; padding: 120px 0 88px; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.hero .wrap { position: relative; z-index: 1; }
.copy { position: relative; width: fit-content; max-width: 100%; }
.copy::before {
  content: ""; position: absolute; z-index: -1; inset: -36px -3vw -32px -3vw;
  background: radial-gradient(ellipse at 40% 50%, rgb(244 240 230 / .96) 46%, rgb(244 240 230 / 0) 78%);
}
.mark { width: clamp(64px, 7vw, 92px); margin-bottom: 30px; }
h1 { font: 600 clamp(52px, 11.5vw, 148px)/.94 var(--sans); letter-spacing: -.05em; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lilac), var(--teal) 56%, var(--amber-text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 28px; max-width: 30ch; font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); text-wrap: balance; }

/* sections */
section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
h2 { font: 600 clamp(32px, 5vw, 58px)/1.05 var(--sans); letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }

/* definition */
.define .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: end; border-top: 1px solid var(--ink); padding-top: clamp(32px, 4vw, 56px); }
.define h2 { max-width: none; font: 400 clamp(64px, 12vw, 164px)/.9 var(--serif); letter-spacing: -.03em; }
.pos { margin-left: .5em; font: italic 400 clamp(18px, 2vw, 24px) var(--serif); letter-spacing: 0; color: var(--muted); }
.senses { padding-left: 1.4em; font: 400 clamp(22px, 2.6vw, 32px)/1.3 var(--serif); }
.senses li + li { margin-top: 14px; }
.senses li::marker { color: var(--muted); font-style: italic; }

/* products */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: clamp(340px, 34vw, 420px);
  padding: clamp(24px, 3vw, 40px); border-radius: 32px; color: #ede9fe; overflow: hidden; isolation: isolate;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.tile-void { background: #0b0a12; --glow: rgb(167 139 250 / .3); --glow-hover: rgb(167 139 250 / .5); }
.tile-abcd { background: #04100e; --glow: rgb(52 211 153 / .26); --glow-hover: rgb(52 211 153 / .46); }
.tile::before, .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.tile::before { background: radial-gradient(circle at 50% 32%, var(--glow), transparent 58%); }
.tile::after { background: radial-gradient(circle at 50% 32%, var(--glow-hover), transparent 66%); opacity: 0; transition: opacity .45s; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile .mascot { width: calc(clamp(170px, 16vw, 220px) * var(--k, 1)); margin: 0 auto; }
.tile .mascot svg { width: 100%; height: auto; overflow: visible; }
.tile .name { margin-top: auto; padding-top: 24px; }
.tile h3 { font: 600 clamp(34px, 3.8vw, 52px)/1 var(--sans); letter-spacing: -.035em; }
.tile p { margin-top: 10px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; color: #cfcae6; text-wrap: balance; }
.arrow { position: absolute; top: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); width: 28px; height: 28px; fill: none; stroke: #ede9fe; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.tile:hover .arrow, .tile:focus-visible .arrow { transform: translate(4px, -4px); }
.tile:focus-visible { outline-offset: 5px; border-radius: 32px; }

/* dial */
.dial-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 48px; align-items: center; }
.panel { padding: clamp(16px, 2vw, 26px); border-radius: 32px; background: #0b0a12; }
.swarm { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.slot { aspect-ratio: 1.15; display: grid; place-items: center; }
.slot svg { height: 86%; width: auto; transition: opacity .4s, transform .5s cubic-bezier(.2, 1.4, .3, 1); }
.js .slot svg { opacity: 0; transform: scale(.4); }
.js .slot.on svg { opacity: 1; transform: scale(1); }
.readout h3 { font: 600 clamp(32px, 4.2vw, 48px)/1.1 var(--sans); letter-spacing: -.03em; }
html:not(.js) #autonomy, html:not(.js) .links a[href="#autonomy"] { display: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 28px 0 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--amber), var(--lilac), var(--teal)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--amber), var(--lilac), var(--teal)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 5px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 5px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--paper), 0 0 0 7px var(--ink); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--paper), 0 0 0 7px var(--ink); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }

/* reveal (only when JS is on, so the page is complete without it) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--d, 0s), transform .8s var(--d, 0s) cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
/* the tiles unfold from their top edge, like a flap opening */
.js .tile.rv { opacity: 0; transform-origin: 50% 0; transform: perspective(1100px) rotateX(-78deg); transition: opacity .5s var(--d, 0s), transform 1.1s var(--d, 0s) cubic-bezier(.2, .8, .2, 1); }
.js .tile.rv.in { opacity: 1; transform: none; }
.js .tile.rv.in:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: .4s; }

@media (max-width: 980px) {
  .define .wrap, .dial-grid { grid-template-columns: 1fr; align-items: start; }
  .dial-grid .readout { order: -1; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 340px; }
}
@media (max-width: 640px) {
  .links { gap: 20px; }
  .swarm { gap: 3px; }
  .hero { min-height: 0; padding-bottom: 190px; }
  .copy::before { inset: -48px -20vw -40px -20vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .tile.rv { opacity: 1; transform: none; }
  .js .slot.on svg { opacity: 1; transform: none; }
}
h1:focus { outline: none; }
