body.lagomdev-homepage {
  --ld-page: #ffffff;
  --ld-surface: #f1f2f6;
  --ld-ink: #25283a;
  --ld-muted: #737783;
  --ld-line: #d9dce5;
  --ld-accent: #353958;
  --ld-radius: 32px;
  --ld-gutter: clamp(20px, 4.2vw, 64px);
  --ld-max: 1136px;
}

.ld-page,
.ld-page * { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lagomdev-homepage {
  margin: 0;
  color: var(--ld-ink);
  background: var(--ld-page);
  font-family: "Onest", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 0;
}

body.lagomdev-homepage .ld-page {
  min-height: 100vh;
  color: var(--ld-ink);
  background: var(--ld-page);
  font-family: "Onest", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

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

.ld-site-header,
.ld-main,
.ld-footer {
  width: min(calc(100% - (var(--ld-gutter) * 2)), var(--ld-max));
  margin-inline: auto;
}

.ld-site-header {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 5;
  min-height: 86px;
  display: grid;
  grid-template-columns: 160px auto;
  align-items: center;
  gap: 32px;
  transform: translateX(-50%);
}

.ld-brand {
  width: max-content;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.ld-header-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.ld-header-links a,
.ld-footer a {
  transition: opacity 180ms ease;
}

.ld-header-links a:hover,
.ld-footer a:hover { opacity: .58; }

.ld-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(570px, 100vh);
  min-height: 560px;
  isolation: isolate;
}

.ld-hero-photo {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100% - 76px);
  object-fit: cover;
  object-position: 66% 50%;
  z-index: -2;
}

.ld-hero-surface {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 0;
  width: 56%;
  border-radius: 0 28px 28px 0;
  background: var(--ld-surface);
  z-index: -1;
}

.ld-hero-copy {
  width: 52%;
  padding: clamp(172px, 13vw, 205px) 0 0 max(var(--ld-gutter), calc((100vw - var(--ld-max)) / 2));
}

.ld-page h1,
.ld-page h2,
.ld-page p { margin-top: 0; }

body.lagomdev-homepage .ld-page h1,
body.lagomdev-homepage .ld-page h2,
body.lagomdev-homepage .ld-page h3 {
  color: inherit;
  font-family: "Onest", "Helvetica Neue", sans-serif;
}

.ld-page h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(38px, 2.92vw, 42px);
  line-height: 1.143;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.ld-hero-copy p {
  max-width: 520px;
  margin-bottom: 38px;
  color: var(--ld-muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.46;
  letter-spacing: -0.018em;
}

.ld-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 500;
  transform-origin: center;
  transition: transform 180ms ease, background-color 180ms ease;
}

.ld-button:hover { transform: scale(1.035); }

.ld-page .ld-button-primary {
  color: #fff;
  background: var(--ld-accent);
}

.ld-page .ld-button-primary:hover { background: #292d4a; }

.ld-intro {
  padding: 132px 0 142px;
}

.ld-intro > h2 {
  margin-bottom: 22px;
  text-align: center;
  font-size: clamp(36px, 3.45vw, 50px);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.ld-intro > p {
  max-width: 650px;
  margin: 0 auto 56px;
  color: var(--ld-muted);
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
}

.ld-task-panel {
  width: min(100%, 1020px);
  aspect-ratio: 1.618 / 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(50px, 7vw, 108px);
  padding: clamp(34px, 5vw, 72px);
  margin-inline: auto;
  background: var(--ld-surface);
  border-radius: var(--ld-radius);
}

.ld-task-list { border-top: 1px solid var(--ld-line); }

.ld-task {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ld-line);
  color: var(--ld-ink);
  background: transparent;
  font: inherit;
  font-size: 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.ld-task.ld-is-open { border-bottom-color: transparent; }

.ld-task-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.ld-task-mark::before,
.ld-task-mark::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 3px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease;
}

.ld-task-mark::after { transform: rotate(90deg); }
.ld-task.ld-is-open .ld-task-mark::after { transform: rotate(0); }

.ld-task-detail {
  display: grid;
  grid-template-rows: 0fr;
  border-bottom: 0 solid var(--ld-line);
  overflow: hidden;
  transition: grid-template-rows 240ms ease, border-width 240ms ease;
}

.ld-task-detail p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ld-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ld-task-detail.ld-is-open {
  grid-template-rows: 1fr;
  border-bottom-width: 1px;
}

.ld-task-detail.ld-is-open p { padding: 0 44px 26px 0; }

.ld-result {
  position: relative;
  min-height: 350px;
  align-self: stretch;
  overflow: hidden;
}

.ld-result-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(0px, 1vw, 18px);
  will-change: transform, opacity;
}

.ld-result-slide[hidden] { display: none; }

.ld-result-slide.is-exiting-up {
  animation: result-slide-out-up 540ms cubic-bezier(.22, .74, .18, 1) both;
}

.ld-result-slide.is-exiting-down {
  animation: result-slide-out-down 540ms cubic-bezier(.22, .74, .18, 1) both;
}

.ld-result-slide.is-entering-from-bottom {
  animation: result-slide-in-from-bottom 540ms cubic-bezier(.22, .74, .18, 1) both;
}

.ld-result-slide.is-entering-from-top {
  animation: result-slide-in-from-top 540ms cubic-bezier(.22, .74, .18, 1) both;
}

@keyframes result-slide-out-up {
  from { transform: translateY(0%); opacity: 1; }
  to { transform: translateY(-105%); opacity: .18; }
}

@keyframes result-slide-out-down {
  from { transform: translateY(0%); opacity: 1; }
  to { transform: translateY(105%); opacity: .18; }
}

@keyframes result-slide-in-from-bottom {
  0% { transform: translateY(105%); opacity: .18; }
  86% { transform: translateY(-2%); opacity: 1; }
  100% { transform: translateY(0%); opacity: 1; }
}

@keyframes result-slide-in-from-top {
  0% { transform: translateY(-105%); opacity: .18; }
  86% { transform: translateY(2%); opacity: 1; }
  100% { transform: translateY(0%); opacity: 1; }
}

.ld-result-label {
  margin-bottom: 24px;
  color: var(--ld-muted);
  font-size: 14px;
}

.ld-result-text {
  max-width: 440px;
  margin-bottom: 52px;
  font-size: clamp(29px, 2.55vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.ld-result-route {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ld-muted);
  font-size: 13px;
}

.ld-result-route i {
  width: min(50px, 5vw);
  height: 1px;
  background: #b9bdc8;
}

.ld-approach {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  column-gap: 11vw;
  row-gap: 0;
  padding: 22px 0 142px;
  align-items: end;
}

.ld-approach h2 {
  margin: 0;
  font-size: clamp(35px, 3.2vw, 46px);
  line-height: 1.13;
  letter-spacing: -0.046em;
  font-weight: 500;
}

.ld-approach > p {
  margin: 0 0 8px;
  color: var(--ld-muted);
  font-size: 20px;
  line-height: 1.55;
}

.ld-work-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
  margin-top: 62px;
}

.ld-work-note {
  padding-top: 18px;
  border-top: 1px solid var(--ld-line);
}

.ld-work-note h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}

.ld-work-note p {
  margin: 0;
  color: var(--ld-muted);
  font-size: 15px;
  line-height: 1.5;
}

.ld-contact {
  position: relative;
  width: min(100%, 1020px);
  min-height: 0;
  aspect-ratio: 1.618 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(42px, 6vw, 82px);
  margin: 0 auto;
  color: #fff;
  background: var(--ld-accent);
  border-radius: var(--ld-radius);
}

.ld-contact h2 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(40px, 3.45vw, 50px);
  line-height: 1.13;
  letter-spacing: -0.043em;
  font-weight: 500;
}

.ld-contact p {
  max-width: 620px;
  color: rgba(255,255,255,.62);
  font-size: 18px;
  line-height: 1.5;
}

.ld-contact-lead,
.ld-contact-scenarios {
  position: relative;
  z-index: 1;
}

.ld-contact-lead > p { margin-bottom: 0; }

.ld-contact-scenarios {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(96px, 8.2vw, 118px);
}

.ld-contact-scenario {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
}

.ld-contact-scenario > span {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

.ld-contact-scenario > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.ld-contact-cutout {
  position: absolute;
  bottom: -80px;
  left: 50%;
  z-index: 0;
  width: 360px;
  height: 144px;
  margin-left: -180px;
  overflow: visible;
  pointer-events: none;
  transform: scale(1);
  transform-origin: 50% 45px;
  transition: transform 180ms ease;
  shape-rendering: geometricPrecision;
}

.ld-contact-cutout path { fill: var(--ld-page); }

.ld-contact:has(.ld-button-light:hover) .ld-contact-cutout {
  transform: scale(1.0117);
}

.ld-contact-action {
  position: absolute;
  left: 50%;
  bottom: -10px;
  z-index: 1;
  transform: translateX(-50%);
}

.ld-contact-action .ld-button {
  min-width: 218px;
  white-space: nowrap;
}

.ld-page .ld-button-light {
  color: var(--ld-ink);
  background: #fff;
  border: 2px solid var(--ld-accent);
  border-radius: 16px;
}

.ld-footer-spacer {
  width: 100%;
  height: 96px;
}

.ld-footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--ld-muted);
  font-size: 14px;
  padding-bottom: 0;
}

.ld-footer .ld-brand { color: var(--ld-ink); }
.ld-footer p { margin: 0; }
.ld-footer-links {
  display: flex;
  justify-self: end;
  gap: 24px;
}

.ld-page :focus-visible {
  outline: 3px solid rgba(53, 57, 88, .35);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .ld-site-header {
    min-height: 78px;
    grid-template-columns: 1fr;
  }

  .ld-header-links { display: none; }

  .ld-hero {
    height: auto;
    min-height: 0;
    display: grid;
    background: var(--ld-surface);
    overflow: hidden;
  }

  .ld-hero-surface { display: none; }

  .ld-hero-copy {
    width: auto;
    padding: 118px 28px 58px;
    background: var(--ld-surface);
    order: 1;
  }

  .ld-hero-photo {
    position: relative;
    width: 100%;
    height: 360px;
    object-position: 63% 50%;
    border-radius: 0;
    order: 2;
  }

  .ld-page h1 { font-size: clamp(36px, 8vw, 48px); }

  .ld-intro { padding: 94px 0 102px; }
  .ld-intro > h2 br { display: none; }

  .ld-task-panel,
  .ld-approach {
    grid-template-columns: 1fr;
  }

  .ld-task-panel,
  .ld-contact { aspect-ratio: auto; }

  .ld-result { min-height: 330px; }
  .ld-result-slide { padding: 0 0 12px; }
  .ld-approach { column-gap: 0; row-gap: 36px; padding-bottom: 102px; }
  .ld-work-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
}

@media (max-width: 560px) {
  body.lagomdev-homepage { --ld-gutter: 16px; --ld-radius: 22px; }

  .ld-brand { font-size: 22px; }
  .ld-hero-copy { padding: 112px 24px 48px; }
  .ld-page h1 { margin-bottom: 22px; font-size: 34px; line-height: 1.1; }
  .ld-hero-copy p { margin-bottom: 30px; font-size: 18px; }
  .ld-button { min-height: 54px; padding-inline: 24px; border-radius: 16px; }
  .ld-hero-photo { height: 280px; }

  .ld-intro { padding: 76px 0 84px; }
  .ld-intro > h2 { font-size: 32px; }
  .ld-intro > p { margin-bottom: 38px; font-size: 17px; }
  .ld-task-panel { gap: 48px; padding: 26px 22px 34px; }
  .ld-task { min-height: 70px; font-size: 17px; }
  .ld-result-text { font-size: 28px; }

  .ld-approach { padding-bottom: 84px; }
  .ld-approach h2 { font-size: 34px; }
  .ld-approach > p { font-size: 18px; }
  .ld-work-notes { grid-template-columns: 1fr; gap: 24px; }

  .ld-contact { min-height: 640px; padding: 34px 26px; }
  .ld-contact h2 { font-size: 34px; }

  .ld-contact-scenarios {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 42px;
  }

  .ld-contact-cutout { display: none; }

  .ld-contact-action {
    position: static;
    align-self: center;
    margin-top: auto;
    transform: none;
  }

  .ld-footer-spacer { height: 72px; }

  .ld-footer {
    min-height: 140px;
    grid-template-columns: 1fr auto;
  }

  .ld-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ld-footer-links { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld-page *, .ld-page *::before, .ld-page *::after { transition-duration: 0.01ms !important; }
}
