@font-face {
  font-family: "Louize";
  src: url("fonts/Louize.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Louize";
  src: url("fonts/Louize-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --tilt-blend: 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--louis-cream-white-07);
  color: var(--louis-black-90);
  font-family: "Louize", ui-serif, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  padding: clamp(20px, 5.5vw, 28px) clamp(18px, 5vw, 26px) clamp(22px, 6vw, 32px);
  padding-left: calc(clamp(18px, 5vw, 26px) + 10px);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.col-rail {
  display: none;
}

.site-header {
  flex: 0 0 auto;
}

.wordmark--desktop {
  display: none;
}

.wordmark--mobile {
  display: block;
  width: clamp(96px, 27.3vw, 143px);
  line-height: 0;
}

.wordmark--mobile img {
  display: block;
  width: 100%;
  height: auto;
}

.wordmark-img--light {
  display: none;
}

.logo-mark--light {
  display: none;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 10vh, 96px) 0;
}

.hero-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 3vw, 20px);
  width: 100%;
}

.hero-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  min-width: 0;
  opacity: 0;
  animation: lfFadeClaim 500ms ease-in forwards;
}

.hero-gap {
  flex: 1 1 auto;
  min-width: clamp(4px, 2vw, 12px);
  height: 1em;
}

.life {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-style: normal;
  font-family: "Louize", ui-serif, Georgia, serif;
}

.life em {
  font-style: italic;
  font-weight: 400;
  font-family: "Louize", ui-serif, Georgia, serif;
}

.orchestrated {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-style: normal;
  font-family: "Louize", ui-serif, Georgia, serif;
}

.logo-mark-wrap {
  flex: 0 0 auto;
  width: clamp(34px, 9.35vw, 44px);
  height: clamp(34px, 9.35vw, 44px);
  overflow: hidden;
  opacity: 0;
  animation: lfFadeClaim 500ms ease-in forwards;
}

@keyframes lfFadeClaim {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text,
  .logo-mark-wrap {
    opacity: 1;
    animation: none;
  }
}

.contact {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.05;
  font-style: normal;
  font-weight: 400;
  font-family: "Louize", ui-serif, Georgia, serif;
}

.contact-primary p,
.contact-address p {
  margin: 0;
}

.contact-primary p + p {
  margin-top: 0;
}

.contact-address {
  margin-top: 10px;
}

.contact a {
  color: inherit;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

@supports (background: color-mix(in srgb, white, black)) {
  @media (max-width: 900px) {
    body {
      background: color-mix(
        in srgb,
        var(--louis-cream-white-07) calc((1 - var(--tilt-blend)) * 100%),
        var(--louis-grey-45) calc(var(--tilt-blend) * 100%)
      );
    }
  }
}

@media (max-width: 900px) {
  .hero-row {
    gap: clamp(32px, 12vw, 56px);
    overflow: visible;
  }

  .logo-mark-wrap {
    transform: translateX(-15px);
    overflow: visible;
  }
}

@media (min-width: 901px) {
  .wordmark-img--light,
  .logo-mark--light {
    display: none !important;
  }

  .wordmark-img--dark,
  .logo-mark--dark {
    display: block !important;
  }

  .app {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    column-gap: 0;
    row-gap: 0;
    max-width: 1490px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(32px, 4.2vh, 42px) clamp(24px, 5vw, 64px) clamp(36px, 5vh, 52px);
    min-height: 100dvh;
  }

  .col-rail {
    display: block;
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 0;
    pointer-events: none;
  }

  .site-header {
    display: contents;
  }

  .wordmark--mobile {
    display: none;
  }

  .wordmark--desktop {
    display: contents;
  }

  .wordmark__louis {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    display: block;
    width: auto;
    height: clamp(16px, 1.35vw, 20px);
  }

  .wordmark__fourteen {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    display: block;
    width: auto;
    height: clamp(16px, 1.35vw, 20px);
  }

  .hero {
    display: contents;
    padding: 0;
    flex: unset;
  }

  .hero-row {
    display: contents;
  }

  .hero-text {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: center;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: min(217px, 14.56vw);
    width: max-content;
    max-width: 100%;
    min-width: 0;
  }

  .hero-gap {
    display: none;
  }

  .life,
  .orchestrated {
    font-size: 16.211px;
    letter-spacing: 0.1621px;
  }

  .logo-mark-wrap {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    align-self: center;
    width: 23.445px;
    height: 25.191px;
  }

  .contact {
    display: contents;
    margin-top: 0;
    padding-top: 0;
  }

  .contact-primary {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    align-self: end;
    padding-top: clamp(12px, 3vh, 28px);
  }

  .contact-address {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
    align-self: end;
    margin-top: 0;
    padding-top: clamp(12px, 3vh, 28px);
    text-align: left;
  }

  .contact-address .address-line {
    letter-spacing: 0.14px;
  }
}

.tilt-debug-panel {
  display: none;
}

@media (max-width: 900px) {
  .tilt-debug-panel {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    max-height: 42vh;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1.35;
    color: var(--louis-black-90);
    background: rgba(240, 239, 235, 0.96);
    border-top: 1px solid var(--louis-grey-30);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .tilt-debug__toggle {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--louis-grey-30);
    background: var(--louis-pure-white-100);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .tilt-debug__body {
    max-height: 36vh;
    overflow: auto;
    padding: 8px 12px 14px;
  }

  .tilt-debug-panel.is-collapsed .tilt-debug__body {
    display: none;
  }

  .tilt-debug__btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--louis-grey-45);
    border-radius: 6px;
    background: var(--louis-pure-white-100);
    font: inherit;
    cursor: pointer;
  }

  .tilt-debug__out {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
  }
}
