/* Inouvre, dark and quiet. DESIGN.md in this folder is the contract for everything here. */

/* The font is served from this site, so no visitor data goes to a third party. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111113;
  --bg-deep: #0A0A0C;
  --tint: #1A1A2E; /* only inside radial-gradients */
  --text: #F0F0F2;
  --text-soft: rgba(255, 255, 255, .55);
  --text-faint: rgba(255, 255, 255, .55); /* .38 measured on the reference; .55 passes AA for small text on both backgrounds */
  --card: rgba(255, 255, 255, .06);
  --card-hover: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08);
  --radius-card: 18px;
  --radius-pill: 999px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* An underdamped spring (stiffness 260, damping 17): overshoots 14%, settles in 700ms */
  --spring: linear(0, 0.036, 0.129, 0.257, 0.403, 0.553, 0.694, 0.82, 0.926, 1.01, 1.071, 1.112, 1.135, 1.142, 1.138, 1.126, 1.108, 1.087, 1.066, 1.046, 1.027, 1.012, 1, 0.991, 0.984, 0.981, 0.98, 0.98, 0.982, 0.984, 0.987, 0.99, 0.993, 0.996, 0.998, 1, 1.001, 1.002, 1.003, 1.003, 1);

  --section: clamp(72px, 7.5vw, 108px);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --head-gap: 56px; /* from a section's head to what follows it */
  --grid-gap: 16px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: #3a3a40 var(--bg);
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--text); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-400%);
}
.skip:focus-visible { transform: none; border-radius: var(--radius-pill); }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type */
.h1, .h2 {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 4.7vw, 68px); line-height: 1.05; }
.h2 { font-size: clamp(30px, 3.1vw, 45px); line-height: 1.08; }
h3, .card__lead, .pull {
  color: var(--text);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; }
.label {
  display: block;
  color: var(--text-faint);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nowrap { white-space: nowrap; }

/* Hero entrance: plain CSS, so the headline never waits for a script. Lead and button follow 120ms apart. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
[data-hero] { animation: hero-in 700ms var(--ease) both; }
[data-hero]:nth-child(2) { animation-delay: 120ms; }
[data-hero]:nth-child(3) { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  /* Opacity only, same timing. ?motion=full puts the full entrance back. */
  html:not(.force-full) [data-hero] { animation-name: hero-fade; }
}

/* A centred head: heading, one sub-line, sometimes a button */
.head {
  max-width: calc(864px + 2 * var(--gutter));
  text-align: center;
}
.wrap > .head { max-width: 864px; margin-inline: auto; }
.head .lead { max-width: 620px; margin: 24px auto 0; }
.head__cta { margin-top: 32px; }

/* Logo and links */
.logo {
  color: var(--text);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.02em;
}
a.logo { display: inline-block; padding-block: 13px; }
.link {
  display: inline-block;
  padding-block: 12px;
  color: var(--text);
  font-size: 13px;
  transition: opacity 200ms linear;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { opacity: .6; }
}

/* Button: a small white pill with a dark arrow chip */
.btn {
  display: inline-flex;
  align-items: center;
  --cx: calc(100% - 18px); /* the chip's centre, measured inside the ink layer */
  position: relative;
  isolation: isolate;
  gap: 12px;
  min-height: 38px;
  padding: 3px 4px 3px 14px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  transition: scale 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn:active { scale: .96; }
/* Ink: on hover, dark spills out of the chip and fills the pill, leaving a thin white rim */
.btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg-deep);
  clip-path: circle(0 at var(--cx) 50%);
  transition: clip-path 600ms var(--ease);
}
.btn > span:first-child { transition: color 300ms linear; } /* a label main.js has not split (404 page) */
/* Split label: each letter carries a white copy of itself one roll below, out of sight */
.btn__label {
  --roll: 1.5em;
  display: block;
  overflow: hidden;
  padding-block: .14em;
  line-height: 1.2;
}
.btn__chars { display: block; white-space: pre; }
.btn__ch {
  display: inline-block;
  color: var(--bg);
  text-shadow: 0 var(--roll) 0 var(--text);
  transition: transform 560ms var(--ease);
  transition-delay: calc(var(--i) * 16ms);
}
.btn__dot {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 260ms linear 60ms;
}
.btn--lg {
  --cx: calc(100% - 24px);
  gap: 16px;
  min-height: 50px;
  padding: 4px 5px 4px 22px;
  font-size: 19px;
}
.btn--lg .btn__dot { width: 42px; height: 42px; }
.btn__arrow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46%;
  height: 46%;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 260ms linear 60ms, rotate 300ms var(--ease);
}
/* Hover and keyboard focus share one state: the pill inverts, the letters roll over to their
   white copies, the chip turns white and its arrow springs up to point out of the page. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { clip-path: circle(150% at var(--cx) 50%); }
  .btn:hover > span:first-child { color: var(--text); }
  .btn:hover .btn__ch { transform: translateY(calc(-1 * var(--roll))); }
  .btn:hover .btn__dot { background-color: var(--text); }
  .btn:hover .btn__arrow { stroke: var(--bg); rotate: -45deg; transition: stroke 260ms linear 60ms, rotate 700ms var(--spring); }
}
.btn:focus-visible::before { clip-path: circle(150% at var(--cx) 50%); }
.btn:focus-visible > span:first-child { color: var(--text); }
.btn:focus-visible .btn__ch { transform: translateY(calc(-1 * var(--roll))); }
.btn:focus-visible .btn__dot { background-color: var(--text); }
.btn:focus-visible .btn__arrow { stroke: var(--bg); rotate: -45deg; transition: stroke 260ms linear 60ms, rotate 700ms var(--spring); }

/* Nav: clear over the hero, then a blurred bar once the page has moved */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 19, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 300ms linear;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__in > .btn { justify-self: end; }

/* Sections butt straight together; the alternating background does the separating */
.sec { padding-block: var(--section); background: var(--bg); }
.sec--deep {
  background: radial-gradient(70% 60% at 50% 50%, color-mix(in srgb, var(--tint) 45%, var(--bg-deep)) 0%, var(--bg-deep) 70%);
}
.sec--deep, .close { background-color: var(--bg-deep); }

.hero {
  padding-block: clamp(120px, 14vw, 160px) clamp(72px, 7vw, 96px);
  background: radial-gradient(80% 60% at 50% 40%, var(--tint) 0%, var(--bg) 70%);
}

/* Cards: a soft fill, no border, no shadow */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--head-gap);
}
.cards--after { margin-top: var(--grid-gap); }
.card {
  padding: 27px;
  border-radius: var(--radius-card);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--card);
  transition: background-color 300ms linear;
}
/* Hover, driven by main.js (--mx/--my is the pointer inside the card, .is-lit while it is there):
   a soft light follows the pointer under the text, and the card's edge catches it nearby. */
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .085), rgba(255, 255, 255, 0));
  translate: var(--mx, 50%) var(--my, 50%);
  opacity: 0;
  transition: opacity 450ms linear;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 450ms linear;
  pointer-events: none;
}
.card.is-lit { background: var(--card-hover); }
.card.is-lit::before, .card.is-lit::after { opacity: 1; }
.card .label { margin-bottom: 16px; transition: color 300ms linear; }
.card.is-lit .label { color: var(--text); }
.card h3 { margin-bottom: 8px; }
@media (min-width: 640px) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pull, .note {
  max-width: 620px;
  margin: 40px auto 0;
  text-align: center;
}

/* The glider */
.glider {
  position: relative;
  margin-top: var(--head-gap);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.glider__stage {
  position: relative;
  height: clamp(104px, 13vw, 160px);
  overflow: hidden;
  border-radius: var(--radius-card);
}
.glider__band { width: 100%; height: 100%; }
.glider__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#gliderPath { fill: var(--card); }
#gliderThumb { fill: var(--text); }

.glider__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}
.glider__label { transition: color 200ms linear; }
.glider__label.is-active { color: var(--text); }
.glider__track {
  position: relative;
  height: 28px;
  margin-top: 12px;
}
.glider__pill {
  position: absolute;
  left: 30%; /* under Leads, the second of five */
  top: 0;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  will-change: transform;
}

/* Founder: text on the left, photo on the right */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.founder__text p { max-width: 34em; }
.founder__text p + p { margin-top: 16px; }
.founder__text .founder__role { margin-block: 14px 28px; }
.founder__text .founder__punch { color: var(--text); font-weight: 500; }
.founder__photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
}
.founder__photo picture { display: contents; }
.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 860px) {
  .founder { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; }
}

/* Close and footer */
.close {
  padding-top: var(--section);
  background-image: radial-gradient(70% 50% at 50% 30%, color-mix(in srgb, var(--tint) 45%, var(--bg-deep)) 0%, var(--bg-deep) 70%);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: var(--section);
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
}
.footer__slogan { margin-top: 6px; }
.footer__mail { padding-block: 12px; margin-block: -12px; transition: color 200ms linear; }
@media (hover: hover) and (pointer: fine) {
  .footer__mail:hover { color: var(--text); }
}

@media (max-width: 640px) {
  :root { --head-gap: 40px; --nav-h: 64px; }
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav .btn { min-height: 44px; }
  .card { padding: 24px; }
  .glider__labels { gap: 4px; font-size: 11.5px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
