/* Restfurever coming-soon landing. Tokens from the main site (globals.css / tailwind). */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-ext-400.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-400.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;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-ext-500.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-500.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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-tight-latin-ext-600.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-tight-latin-600.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 {
  --font-sans: Inter, system-ui, sans-serif;
  --font-display: 'Inter Tight', system-ui, sans-serif;
  --lm-canvas: #f3f1ed;
  --lm-ink: #1d1d1f;
  --lm-ink-soft: #424245;
  --lm-body: #3a3a3c;
  --lm-mute: #5c5a55;
  --lm-ember: #d26a1f;
  --lm-ember-text: #a24f12;
  --lm-focus: #b35512;
  --lm-focus-surface: #f3f1ed;
  --lm-rule: rgba(40, 30, 18, 0.08);
  --lm-sunk: #f0ede7;
  --lm-gutter: 32px;
  --lm-gutter-m: 20px;
  --lm-shell: 1240px;
  --header-h: 56px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-loop { display: none; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lm-canvas);
  color: var(--lm-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--lm-focus-surface), 0 0 0 4px var(--lm-focus), 0 0 0 8px rgba(210, 106, 31, 0.18);
  border-radius: 6px;
}
.hero :focus-visible,
.hero a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: none;
}

/* Locale visibility */
.i18n-fr { display: none; }
[data-locale='fr'] .i18n-en { display: none; }
[data-locale='fr'] .i18n-fr { display: revert; }
[data-locale='fr'] h1.i18n-fr,
[data-locale='fr'] p.i18n-fr { display: block; }
[data-locale='fr'] a.i18n-fr { display: inline; }

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: #fff;
  background: var(--lm-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.skip:focus,
.skip:focus-visible {
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lm-focus);
}

.shell {
  width: 100%;
  max-width: var(--lm-shell);
  margin: 0 auto;
  padding-left: var(--lm-gutter-m);
  padding-right: var(--lm-gutter-m);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  border-bottom: 1px solid var(--lm-rule);
  background: rgba(243, 241, 237, 0.94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.wordmark { display: inline-flex; align-items: center; flex: none; }
.wordmark img { height: 34px; width: auto; }
.wordmark .lockup { display: none; }

.lang {
  list-style: none;
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--lm-sunk);
  font-size: 12px;
  font-weight: 600;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
  color: var(--lm-mute);
}
.lang a:hover { color: var(--lm-ink); }
.lang a[aria-current='true'] {
  background: #fff;
  color: var(--lm-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero-media {
  position: relative;
  overflow: hidden;
  height: 490px;
  background: #eae6e0;
}
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(38, 28, 18, 0.2) 0%, rgba(38, 28, 18, 0) 14%),
    linear-gradient(0deg, rgba(38, 28, 18, 0.72) 0%, rgba(38, 28, 18, 0.45) 22%, rgba(38, 28, 18, 0) 42%);
}

/* 4:3 candle loop, registered to the original (right) region of the 2240x1008 scene. */
.hero-loop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-loop-scene {
  position: absolute;
  inset: 0;
}
.hero-loop-video {
  position: absolute;
  top: 0;
  right: auto;
  /* Same 80% 50% cover as the img; media height is 490px. */
  left: calc(0.8 * 100% + 0.2 * 490px * 2240 / 1008 - 490px * 1344 / 1008);
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 1344 / 1008;
  object-fit: cover;
  object-position: 100% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%);
}
@supports selector(:playing) {
  .hero-loop-video { opacity: 0; transition: opacity 700ms ease; }
  .hero-loop-video:playing { opacity: 1; }
}

.hero-ui {
  /* Static on small screens so the absolutely placed title
     is positioned against .hero (the photo block), not this box. */
  position: static;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 8px;
}

.hero-ui h1 {
  position: absolute;
  left: var(--lm-gutter-m);
  right: var(--lm-gutter-m);
  top: 490px;
  transform: translateY(-100%);
  margin: 0;
  padding-bottom: 28px;
  z-index: 2;
  color: #f5f5f7;
  font-size: clamp(36px, 8.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 22px;
  max-width: 38ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--lm-body);
}

.contact {
  font-weight: 500;
  color: var(--lm-ember-text);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size 400ms ease;
}
.contact:hover,
.contact:focus-visible { background-size: 100% 1px; }

.site-footer {
  margin-top: auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--lm-rule);
  color: var(--lm-mute);
  font-size: 13px;
}
.site-footer .shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer p { margin: 0; }

@media (min-width: 768px) {
  :root { --header-h: 64px; }

  .shell {
    padding-left: var(--lm-gutter);
    padding-right: var(--lm-gutter);
  }

  .wordmark .mark { display: none; }
  .wordmark .lockup { display: block; height: 42px; width: auto; }

  .hero { height: 730px; overflow: hidden; }

  .hero-media {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .hero-media img { object-position: 100% 50%; }

  .hero-loop-video {
    right: 0;
    left: auto;
    top: 0;
    transform: none;
    height: 100%;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(38, 28, 18, 0.55) 0%, rgba(38, 28, 18, 0.32) 32%, rgba(38, 28, 18, 0) 50%),
      linear-gradient(180deg, rgba(38, 28, 18, 0.30), rgba(38, 28, 18, 0) 16%);
  }

  .hero-ui {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 40px;
    padding-bottom: 80px;
    color: #f5f5f7;
  }

  .hero-ui h1 {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    padding: 0;
    margin: 0 0 22px;
    max-width: 16ch;
    font-size: clamp(40px, 4.8vw, 72px);
  }

  .lede {
    margin: 0 0 28px;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.45;
    max-width: 32ch;
    color: rgba(245, 245, 247, 0.86);
  }

  .contact { color: #f2b98a; }

  .site-footer { padding: 28px 0 40px; }
  .site-footer .shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1623px) {
  .hero-loop-video {
    height: calc(100vw * 1008 / 2240);
    top: 50%;
    transform: translateY(-50%);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

