/* always late technologies — homepage.
   Shared by index.html (en) and fr/index.html (fr): edit here, both follow.
   The legal pages have their own, quieter sheet in doc.css. */

/* one family, Helvetica Neue. labels are the same face, set uppercase and tracked out. */
:root {
  --ink: #232423;
  --paper: #FBFCFA;
  --graphite: #3A3B3A;
  --slate: #6B6C6A;
  --ash: #A9AAA8;
  --mist: #D7D8D5;
  --line-dark: rgba(35, 36, 35, 0.14);
  --line-light: rgba(251, 252, 250, 0.16);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern';
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
.dark ::selection { background: var(--paper); color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* ---------- fixed chrome ---------- */
/* The bar is a real header: translucent, blurred, and opaque enough to occlude
   what scrolls under it. It used to be mix-blend-mode: difference, which inverted
   against the content but never covered it, so text collided with the nav. Since a
   blended layer cannot also have a background, the blend is gone and the palette is
   driven instead by the screen currently under the bar (data-top) and under the
   bottom furniture (data-bottom), both set in the page script. */
.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.chrome .bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px 48px;
  color: var(--ink);
  background: rgba(251, 252, 250, 0.78);
  border-bottom: 1px solid var(--line-dark);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.chrome[data-top="dark"] .bar {
  color: var(--paper);
  background: rgba(35, 36, 35, 0.72);
  border-bottom-color: var(--line-light);
}
/* no backdrop-filter: fall back to a solid bar rather than unreadable text */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chrome .bar { background: var(--paper); }
  .chrome[data-top="dark"] .bar { background: var(--ink); }
}
.chrome .lockup {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.chrome .lockup svg { display: block; }
.chrome nav {
  pointer-events: auto;
  display: flex;
  gap: 26px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chrome nav a { opacity: 0.6; transition: opacity 0.2s ease; }
.chrome nav a:hover { opacity: 1; }
.chrome .counter,
.chrome .hint {
  position: absolute;
  bottom: 34px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s ease;
}
.chrome .counter { left: 48px; letter-spacing: 0.2em; }
.chrome .hint {
  right: 48px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.chrome[data-bottom="dark"] .counter,
.chrome[data-bottom="dark"] .hint { color: var(--paper); }

/* ---------- screens ---------- */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.screen.light { background: var(--paper); color: var(--ink); }
.screen.dark  { background: var(--ink);   color: var(--paper); }

.inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 140px 48px;
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- organic shapes ---------- */
.blob {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.morph {
  border-radius: 58% 42% 34% 66% / 55% 36% 64% 45%;
}
@media (prefers-reduced-motion: no-preference) {
  .morph { animation: morph 22s ease-in-out infinite alternate; }
  @keyframes morph {
    0%   { border-radius: 58% 42% 34% 66% / 55% 36% 64% 45%; transform: translateY(0) scale(1); }
    50%  { border-radius: 38% 62% 60% 40% / 44% 58% 42% 56%; transform: translateY(-3%) scale(1.04); }
    100% { border-radius: 64% 36% 46% 54% / 40% 62% 38% 60%; transform: translateY(2%) scale(0.98); }
  }
}

/* ---------- hero ---------- */
#hero .inner { padding-top: 160px; }
#hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(56px, 10.5vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 9em;
}
#hero h1 .light-w {
  display: block;
  font-weight: 300;
  color: var(--ash);
  margin-top: 10px;
}
#hero p {
  max-width: 560px;
  margin: 48px 0 0;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--graphite);
  text-wrap: pretty;
}

/* gooey metaball: the mark, forming itself */
.goo-stage {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 0.9;
  z-index: 1;
  filter: url(#goo);
  opacity: 0.95;
}
.goo-stage .ball {
  position: absolute;
  left: 50%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}
.goo-stage .ball.a { top: 8%; }
.goo-stage .ball.b { bottom: 8%; }
@media (prefers-reduced-motion: no-preference) {
  .goo-stage .ball.a { animation: pinchA 9s ease-in-out infinite; }
  .goo-stage .ball.b { animation: pinchB 9s ease-in-out infinite; }
  @keyframes pinchA {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 34%); }
  }
  @keyframes pinchB {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, -34%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .goo-stage { filter: none; }
}

/* ---------- shared headings ---------- */
.h2 {
  margin: 0 0 24px;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0 0 64px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.72;
  text-wrap: pretty;
}
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 15px 28px;
  transition: background 0.2s ease, color 0.2s ease;
}
.screen.light .link-line:hover { background: var(--ink); color: var(--paper); }
.screen.dark .link-line { border-color: var(--paper); }
.screen.dark .link-line:hover { background: var(--paper); color: var(--ink); }

/* ---------- 01 apps · loket (dark) ---------- */
#apps .lede { margin-bottom: 56px; }
.flagship {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

/* reserved slot for the product screenshot. source asset: 1440 x 900 (16:10).
   until it exists this is a plain ink block: no mock interface, no filler. */
.shot {
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: var(--ink);
}
.shot-note {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
}

.app-name { display: flex; align-items: center; gap: 16px; }
/* the mark carries its own rounded tile, see assets/loket-mono.svg */
.tile { width: 56px; height: 56px; flex: none; display: block; }
.app-name h3 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.app-name .role {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.app-body { margin: 26px 0 0; font-size: 16px; line-height: 1.65; opacity: 0.72; text-wrap: pretty; }

.app-facts {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.6;
}
.app-price {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.app-price .amount { font-size: 34px; font-weight: 300; letter-spacing: -0.02em; }
.app-price .per {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.app-price .alt { width: 100%; font-size: 13px; opacity: 0.55; }

.app-cta { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.app-cta .terms-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 3px;
}
.app-cta .terms-link:hover { opacity: 1; }

.professions {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.professions .label { display: block; margin-bottom: 16px; }
.professions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.professions a {
  display: inline-block;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  opacity: 0.78;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.professions a:hover { border-color: rgba(251, 252, 250, 0.5); opacity: 1; }

#apps .blob {
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  right: -28vw;
  bottom: -34vw;
  background: radial-gradient(closest-side, rgba(251,252,250,0.07), rgba(251,252,250,0.03));
}

/* ---------- 02 products · lexine (light) ---------- */
#lexine .h2 { font-weight: 600; letter-spacing: -0.035em; max-width: 11em; }
#lexine .lede { color: var(--graphite); opacity: 1; }
#lexine .blob {
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  left: -24vw;
  top: -22vw;
  background: var(--ink);
  opacity: 0.045;
}

/* ---------- 04 studio (dark) ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.principle {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line-light);
}
.principle .num { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; opacity: 0.5; }
.principle h3 { margin: 20px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.principle p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; opacity: 0.65; }
.how { margin-top: 48px; max-width: 640px; }
.how p { margin: 16px 0 0; font-size: 16px; line-height: 1.7; opacity: 0.78; text-wrap: pretty; }
.klok-note { margin-top: 48px; max-width: 560px; }
.klok-note p { margin: 16px 0 0; font-size: 15px; line-height: 1.65; opacity: 0.72; text-wrap: pretty; }
#studio .blob {
  width: 44vw;
  height: 44vw;
  max-width: 560px;
  max-height: 560px;
  right: -18vw;
  top: -16vw;
  background: radial-gradient(closest-side, rgba(251,252,250,0.06), rgba(251,252,250,0.02));
}

/* ---------- 05 contact (light) ---------- */
#contact .inner { text-align: left; }
#contact .h2 {
  font-weight: 300;
  font-size: clamp(44px, 8.5vw, 104px);
  letter-spacing: -0.04em;
  max-width: 9em;
}
#contact .mail {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 6px;
  transition: border-color 0.2s ease;
}
#contact .mail:hover { border-color: var(--ink); }
.meta {
  margin-top: 72px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 2;
}
.meta a { border-bottom: 1px solid var(--line-dark); }
.meta a:hover { border-color: var(--ink); }
#contact .blob {
  width: 58vw;
  height: 58vw;
  max-width: 720px;
  max-height: 720px;
  right: -26vw;
  bottom: -30vw;
  background: var(--ink);
  opacity: 0.05;
}

/* ---------- footer ---------- */
footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line-dark);
}
footer .inner {
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
footer .lockup { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
footer .label { opacity: 1; color: var(--slate); }
footer .legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
footer .legal a:hover { color: var(--ink); }
footer .legal a.lang { color: var(--ink); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.d1.in { transition-delay: 0.08s; }
.reveal.d2.in { transition-delay: 0.16s; }
.reveal.d3.in { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .chrome .bar { padding: 14px 24px; }
  .chrome nav { display: none; }
  .chrome .counter { left: 24px; bottom: 26px; }
  .chrome .hint { right: 24px; bottom: 26px; }
  .inner { padding: 120px 24px; }
  footer .inner { padding: 32px 24px; align-items: flex-start; }
  .flagship, .principles { grid-template-columns: 1fr; }
  .flagship { gap: 40px; }
  .principle { padding-right: 0; }
  .goo-stage { right: -30vw; width: 80vw; opacity: 0.16; }
  .meta { gap: 32px; }
}
