:root {
  color-scheme: light;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --g: clamp(16px, 4.4vw, 80px);
  --top-h: 68px;
  --curve: clamp(28px, 4vw, 60px);
  --ombre: 0 2px 6px rgba(20, 33, 59, .05), 0 26px 60px -30px rgba(20, 33, 59, .3);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ol, figure, blockquote { margin: 0; }
h1, h2 { text-wrap: balance; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ancre { display: block; height: 0; scroll-margin-top: var(--top-h); }
.mask { display: block; }
.mask > span { display: block; }

.skip { position: absolute; left: var(--g); top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 10px; }

.eyebrow { font: 600 15px/1.3 var(--sans); color: var(--teal); margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  background: var(--teal); color: #fff;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--teal-strong); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(15, 118, 110, .7); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-strong); text-decoration: none; min-height: 48px; }
.link-arrow::after { content: '↓'; transition: transform .4s var(--ease); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: translateY(4px); }

/* Top bar */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: var(--top-h);
  padding: 0 var(--g);
  background: rgba(246, 245, 241, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.top .btn-small { margin-left: auto; }

/* Hero: the words, and the whole screen standing in 3D with two of its tiles lifted off it */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  min-height: calc(100svh - var(--top-h));
  padding: clamp(24px, 4vh, 56px) var(--g) clamp(64px, 10vh, 120px);
  overflow: clip;
}
.hero h1 { font-size: clamp(40px, 3.75vw, 80px); line-height: 1.02; letter-spacing: -.034em; font-weight: 800; color: var(--ink); }
.hero-lede { margin-top: 26px; max-width: 30em; font-size: clamp(18px, 1.3vw, 22px); color: var(--ink-soft); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-shot { perspective: 1800px; }
.hero-tilt { position: relative; transform-style: preserve-3d; }
.hero-tilt > img[data-ecran] { width: 100%; border-radius: 18px; box-shadow: var(--ombre); }
.float { position: absolute; border-radius: 14px; box-shadow: 0 2px 6px rgba(20, 33, 59, .08), 0 28px 50px -20px rgba(20, 33, 59, .42); }
.float-a { width: 50%; left: -7%; bottom: 7%; }
.float-b { width: 25%; right: -2.5%; top: 13%; }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .float-a { left: -2%; }
  .float-b { right: -1%; }
}

/* The 100 days: a giant counter, and the brick floods in at day 101 */
.days { position: relative; z-index: 1; background: var(--paper); color: var(--ink); }
.days-inner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--top-h) + clamp(10px, 2.4vh, 32px)) var(--g) calc(clamp(24px, 4vh, 56px) + var(--curve));
  transition: color .45s var(--ease);
}
.flood {
  display: none; position: absolute; z-index: -1; inset: 0;
  background: var(--seg-after); clip-path: circle(0 at 90% 60%);
}
.days h2 { font-size: clamp(30px, 3.4vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.soft-on-dark { color: var(--teal); transition: color .45s var(--ease); }
.frise { margin-top: clamp(20px, 3.4vh, 40px); }
.frise-head { display: none; align-items: baseline; gap: 18px; margin-bottom: 10px; }
.frise-label { font: 600 15px/1 var(--sans); color: var(--muted); transition: color .45s var(--ease); }
.frise-count {
  font-size: clamp(84px, min(14vw, 25vh), 230px); font-weight: 800; line-height: .92; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; min-width: 3ch; color: var(--teal); transition: color .45s var(--ease);
}
.days[data-band="1"] .frise-count { color: #c98a1e; }
.frise-bar { position: relative; display: flex; height: clamp(34px, 5vh, 56px); border-radius: 999px; overflow: hidden; background: var(--sand); transition: background-color .45s var(--ease); }
.seg { height: 100%; transform-origin: left center; }
.seg-full { width: 18.18%; background: var(--seg-full); }
.seg-copay { width: 72.73%; background: var(--seg-copay); }
.seg-after { width: 9.09%; background: var(--seg-after); }
.frise-marker { display: none; position: absolute; top: 6px; bottom: 6px; left: 0; width: 4px; background: var(--ink); border-radius: 999px; }
.frise-ticks { position: relative; height: 22px; margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .45s var(--ease); }
.frise-ticks span { position: absolute; top: 0; }
.frise-ticks span:nth-child(2), .frise-ticks span:nth-child(3) { transform: translateX(-50%); }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px); margin-top: clamp(14px, 2.4vh, 28px); }
.phase { transition: opacity .5s var(--ease); }
.phase h3 { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 10px 0 4px; font-variant-numeric: tabular-nums; transition: color .45s var(--ease); }
.phase p { font-size: clamp(22px, 2vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; max-width: 24em; }
.chip { display: block; width: 28px; height: 10px; border-radius: 999px; }
.chip-full { background: var(--seg-full); } .chip-copay { background: var(--seg-copay); } .chip-after { background: var(--seg-after); }
.days.is-flood .days-inner { color: #fff; }
.days.is-flood .soft-on-dark { color: #ffe6d8; }
.days.is-flood .frise-label, .days.is-flood .frise-ticks, .days.is-flood .phase h3 { color: #ffe6d8; }
.days.is-flood .frise-count { color: #fff; }
.days.is-flood .frise-bar { background: rgba(255, 255, 255, .22); }
.days.is-flood .frise-marker { background: #fff; }
.days.is-flood .chip-after { background: #fff; }
@media (max-width: 899px) {
  .days-inner { min-height: 0; }
  .phases { grid-template-columns: 1fr; gap: 18px; }
  .frise-ticks span:nth-child(3) { transform: translateX(-80%); }
}

/* Every section after the days slides up over the one before it, on a rounded edge */
.steps, .views, .rules, .quote, .contact {
  position: relative;
  margin-top: calc(-1 * var(--curve));
  border-radius: var(--curve) var(--curve) 0 0;
}
.steps { z-index: 2; } .views { z-index: 3; } .rules { z-index: 4; } .quote { z-index: 5; } .contact { z-index: 6; }

/* The four phases: a camera inside the product */
.steps {
  background: var(--canvas);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(72px, 11vh, 130px) var(--g) calc(clamp(72px, 11vh, 130px) + var(--curve));
  align-items: start;
}
.steps h2, .views h2, .rules h2, .contact h2 { font-size: clamp(32px, 3.6vw, 64px); line-height: 1.05; letter-spacing: -.032em; font-weight: 800; color: var(--ink); }
.step-list { margin-top: clamp(32px, 5vh, 56px); display: grid; gap: clamp(22px, 3vh, 36px); }
.step { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: center; transition: opacity .5s var(--ease); }
.step-n {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--paper); color: var(--teal-strong);
  font-size: 15px; font-weight: 700; box-shadow: var(--lift);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.step h3 { font-size: clamp(24px, 2.1vw, 36px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.step p { margin-top: 4px; color: var(--ink-soft); font-size: clamp(18px, 1.3vw, 22px); }
.step .prevu { font-size: 14px; vertical-align: 0; }
.stage-frame { position: relative; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: var(--ombre); }
.stage-bandeau { display: none; position: absolute; z-index: 2; left: 0; top: 0; width: min(100%, 720px); border-radius: 0 0 12px 0; }
.cam { display: none; }
.cam-1 { display: block; width: 100%; }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; }
}

/* One case, three views: at rest a row of three, in motion a deck that opens */
.views { background: var(--paper); padding: clamp(72px, 11vh, 130px) 0 calc(clamp(72px, 11vh, 130px) + var(--curve)); }
.deck-sticky { padding: 0 var(--g); }
.deck { position: relative; margin-top: clamp(28px, 4vh, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2.4fr); gap: clamp(16px, 2vw, 32px); align-items: end; }
.view { min-width: 0; }
.view-shot { border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); background: var(--canvas); }
.view-shot img { width: 100%; }
.view-family .view-shot img { aspect-ratio: 780 / 1160; object-fit: cover; object-position: top; }
.view-facility { z-index: 3; } .view-pro { z-index: 2; } .view-family { z-index: 1; }
.view { position: relative; }
.view h3 { margin-top: 16px; font-size: clamp(20px, 1.7vw, 30px); letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.view .prevu { font-size: 13px; margin-left: 6px; vertical-align: .2em; }
@media (max-width: 899px) {
  .deck { grid-template-columns: 1fr; gap: 34px; }
  .view-family .view-shot { max-width: 300px; }
}

/* 2027: the bar is to scale, $21,000 on $130,000 */
.rules { background: var(--canvas); padding: clamp(72px, 12vh, 140px) var(--g) calc(clamp(72px, 12vh, 140px) + var(--curve)); }
.rule { margin-top: clamp(32px, 5vh, 56px); padding: clamp(26px, 4vh, 44px) clamp(20px, 3vw, 48px); background: var(--paper); border-radius: 22px; box-shadow: var(--lift); }
.rule-what { font: 600 17px/1.4 var(--sans); color: var(--muted); }
.rule-swap { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px clamp(16px, 2.4vw, 40px); }
.rule-from, .rule-to { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1; }
.rule-from { font-size: clamp(36px, 5vw, 92px); font-weight: 600; color: #a8a397; }
.rule-to { font-size: clamp(60px, 9.6vw, 176px); font-weight: 800; color: var(--ink); }
.rule-arrow { color: var(--teal); display: inline-flex; }
.limit { margin-top: clamp(16px, 2.6vh, 28px); height: clamp(22px, 3.4vh, 34px); border-radius: 999px; overflow: hidden; background: var(--sand); }
.limit-fill { display: block; height: 100%; background: var(--teal); clip-path: inset(0 83.85% 0 0 round 999px); }
.rule-when { margin-top: 14px; color: var(--ink-soft); font-size: clamp(17px, 1.3vw, 21px); }
.rules-product { margin-top: clamp(24px, 4vh, 40px); max-width: 40em; font-size: clamp(19px, 1.5vw, 25px); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }

/* Ray's words light up as you read */
.quote { background: var(--teal); color: #fff; padding: clamp(90px, 15vh, 170px) var(--g) calc(clamp(90px, 15vh, 170px) + var(--curve)); }
.quote blockquote p { font-size: clamp(32px, 4.2vw, 76px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; max-width: 19em; }
.quote blockquote footer { margin-top: 28px; font: 600 18px/1 var(--sans); color: #cfe9e4; }

/* Contact */
.contact { background: var(--canvas); padding: clamp(80px, 13vh, 150px) var(--g); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.contact h2 { grid-column: 1 / -1; font-size: clamp(44px, 7vw, 128px); }
.contact-lede { font-size: clamp(20px, 1.6vw, 27px); color: var(--ink-soft); max-width: 26em; }
.contact-card { background: var(--paper); border-radius: 18px; box-shadow: var(--lift); padding: 26px 28px; }
.contact-name { font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.contact-ways { display: flex; flex-wrap: wrap; gap: 8px 10px; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.foot { position: relative; z-index: 7; background: var(--sand); color: var(--ink-soft); padding: 40px var(--g) 48px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 48px; align-items: start; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.foot-mention { font-size: 13.5px; max-width: 60em; }
@media (max-width: 699px) { .foot { grid-template-columns: 1fr; } }

/* Everything above reads with no script at all. What follows only exists with the motion on (motion-web, socle). */
.js:not(.no-anim) .flood { display: block; }
.js:not(.no-anim) .frise-head { display: flex; }
.js:not(.no-anim) .frise-marker { display: block; }
.js:not(.no-anim) .frise-marker { opacity: 0; }
.js:not(.no-anim) .phase { opacity: .4; }
.js:not(.no-anim) .phase.is-on { opacity: 1; }
.js:not(.no-anim) [data-line-last] { opacity: 0; }
.js:not(.no-anim) .top .brand, .js:not(.no-anim) .top .btn { opacity: 0; transform: translateY(-10px); }

.js:not(.no-anim) .stage { position: sticky; top: calc(var(--top-h) + 20px); height: calc(100svh - var(--top-h) - 40px); }
.js:not(.no-anim) .stage-frame { height: 100%; }
.js:not(.no-anim) .stage-bandeau { display: block; }
.js:not(.no-anim) .cam { display: block; position: absolute; left: 0; top: 0; width: 100%; max-width: none; height: auto; transform-origin: 0 0; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.js:not(.no-anim) .step { min-height: 62svh; opacity: .5; }
.js:not(.no-anim) .step.is-on { opacity: 1; }
.js:not(.no-anim) .step.is-on .step-n { background: var(--teal); color: #fff; transform: scale(1.12); }
@media (max-width: 899px) {
  .js:not(.no-anim) .stage { order: -1; z-index: 3; top: calc(var(--top-h) + 8px); height: 40svh; }
  .js:not(.no-anim) .step { min-height: 44svh; }
  .js:not(.no-anim) .view { opacity: 0; }
}

@media (min-width: 900px) {
  .js:not(.no-anim) .hero-tilt { transform: rotateY(-15deg) rotateX(5deg); }
  .js:not(.no-anim) .views[data-deck-on] { height: 270vh; padding: 0 0 var(--curve); }
  .js:not(.no-anim) .views[data-deck-on] .deck-sticky {
    position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h));
    display: flex; flex-direction: column; justify-content: center; padding-block: 20px;
  }
  .js:not(.no-anim) .views[data-deck-on] .view h3 { opacity: 0; }
}

.js:not(.no-anim) [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (min-width: 900px) {
  .js:not(.no-anim) .mask { overflow: hidden; }
  .js:not(.no-anim) .mask > span[data-line], .js:not(.no-anim) .mask > span[data-intro-line] { display: block; transform: translateY(105%); }
}
/* on a phone the designed line breaks do not fit: the title flows as one sentence and fades in whole */
@media (max-width: 899px) {
  .mask, .mask > span { display: inline !important; }
  .js:not(.no-anim) h1, .js:not(.no-anim) h2 { opacity: 0; transform: translateY(18px); }
  .js.no-anim h1, .js.no-anim h2 { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
}
.js:not(.no-anim) .hero-eyebrow, .js:not(.no-anim) .hero-lede, .js:not(.no-anim) .hero-ctas { opacity: 0; transform: translateY(18px); }
.js:not(.no-anim) [data-hero-media] { opacity: 0; }
.js:not(.no-anim) .float { opacity: 0; }
.js:not(.no-anim) .rule-what, .js:not(.no-anim) .rule-from, .js:not(.no-anim) .rule-to, .js:not(.no-anim) .rule-when { opacity: 0; transform: translateY(16px); }
.js:not(.no-anim) .rule-arrow { opacity: 0; transform: translateX(-12px); }
.js.no-anim [data-reveal], .js.no-anim .mask > span[data-line], .js.no-anim .mask > span[data-intro-line], .js.no-anim .top .brand, .js.no-anim .top .btn,
.js.no-anim .hero-eyebrow, .js.no-anim .hero-lede, .js.no-anim .hero-ctas, .js.no-anim [data-hero-media],
.js.no-anim .rule-what, .js.no-anim .rule-from, .js.no-anim .rule-to, .js.no-anim .rule-when, .js.no-anim .rule-arrow {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
