/* —— Layout shell —— */

.home-page {
  position: relative;
  padding: 0;
  overflow-x: clip;
  background: var(--bg);
}

.home-scene {
  position: relative;
}

.home-band {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.home-band--lift {
  margin-top: -1px;
}

/* —— Viewport-wide ambient (fixed, always moving) —— */

.home-ambient-viewport {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.home-band-ambient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

/* —— Diagonal section cuts —— */

.home-band-cut {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(5rem, 12vw, 8rem);
  z-index: 3;
  pointer-events: none;
}

.home-band-cut--down {
  bottom: -1px;
  clip-path: polygon(0 0, 100% 38%, 100% 100%, 0 100%);
  filter: drop-shadow(0 -6px 18px rgba(44, 36, 22, 0.07));
}

.home-band-cut--up {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  filter: drop-shadow(0 6px 18px rgba(44, 36, 22, 0.06));
}

.home-band-cut--cream {
  background: linear-gradient(175deg, #faf6ef 0%, #f3ece0 100%);
}

.home-band-cut--paper {
  background: linear-gradient(185deg, #fffdf8 0%, #f8f1e6 100%);
}

.home-band--statement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(139, 69, 19, 0.07) 0, rgba(139, 69, 19, 0.07) 1px, transparent 1px, transparent 100%),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(139, 69, 19, 0.07) calc(100% - 1px), rgba(139, 69, 19, 0.07) 100%);
  opacity: 0.55;
}

.home-features::before {
  content: "";
  position: absolute;
  top: clamp(3.5rem, 8vw, 5rem);
  left: 50%;
  z-index: 4;
  width: min(88%, 36rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.28), transparent);
  pointer-events: none;
}

/* —— Blobs (soft colour, slow pulse) —— */

.home-blob {
  position: absolute;
  border-radius: 50%;
  animation: home-blob-move var(--blob-duration, 18s) ease-in-out infinite;
}

.home-blob--1 {
  top: 8%;
  left: -4%;
  width: clamp(12rem, 28vw, 20rem);
  height: clamp(12rem, 28vw, 20rem);
  background: radial-gradient(circle at 40% 40%, rgba(139, 69, 19, 0.22), rgba(139, 69, 19, 0.04) 70%);
  --blob-duration: 20s;
}

.home-blob--2 {
  top: 42%;
  right: -6%;
  width: clamp(10rem, 22vw, 16rem);
  height: clamp(10rem, 22vw, 16rem);
  background: radial-gradient(circle at 55% 45%, rgba(107, 95, 78, 0.18), transparent 72%);
  --blob-duration: 24s;
  animation-delay: -7s;
  animation-name: home-blob-move-alt;
}

.home-blob--3 {
  bottom: 12%;
  left: 20%;
  width: clamp(8rem, 18vw, 13rem);
  height: clamp(8rem, 18vw, 13rem);
  background: radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.16), transparent 75%);
  --blob-duration: 22s;
  animation-delay: -12s;
}

/* —— Floating paper shapes —— */

.home-float {
  position: absolute;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(139, 69, 19, 0.18);
  background: linear-gradient(155deg, #fffdf8 0%, #efe6d6 100%);
  box-shadow: 0 16px 36px rgba(44, 36, 22, 0.12);
  animation: home-float-drift var(--float-duration, 14s) ease-in-out infinite;
}

.home-float--page-a {
  top: 12%;
  right: 8%;
  width: 5.5rem;
  height: 7rem;
  --float-duration: 16s;
  --float-rotate: 12deg;
  opacity: 0.85;
  animation-name: home-float-drift-a;
}

.home-float--page-b {
  top: 55%;
  left: 4%;
  width: 4.5rem;
  height: 6rem;
  --float-duration: 18s;
  animation-delay: -5s;
  animation-name: home-float-drift-b;
  opacity: 0.7;
}

.home-float--page-c {
  bottom: 18%;
  right: 14%;
  width: 3.75rem;
  height: 5rem;
  --float-duration: 13s;
  animation-delay: -9s;
  animation-name: home-float-drift-c;
  opacity: 0.55;
}

.home-float--hero-a {
  top: -1rem;
  right: 6%;
  width: 6.5rem;
  height: 8.5rem;
  z-index: 1;
  animation: home-float-drift-a 12s ease-in-out infinite;
  opacity: 0.92;
}

.home-float--hero-b {
  top: 2rem;
  left: -1.5rem;
  width: 4rem;
  height: 5.25rem;
  animation: home-float-drift-b 15s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.75;
}

.home-float--hero-c {
  top: 45%;
  right: -2rem;
  width: 3.25rem;
  height: 4.25rem;
  animation: home-float-drift-c 11s ease-in-out infinite;
  animation-delay: -2s;
  opacity: 0.6;
}

.home-float--feat-a {
  top: 8%;
  left: 2%;
  width: 4.25rem;
  height: 5.5rem;
  animation: home-float-drift-c 14s ease-in-out infinite;
  opacity: 0.5;
}

.home-float--feat-b {
  bottom: 10%;
  right: 3%;
  width: 5rem;
  height: 6.5rem;
  animation: home-float-drift-a 17s ease-in-out infinite;
  animation-delay: -6s;
  opacity: 0.45;
}

/* —— Rings & dots —— */

.home-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 69, 19, 0.25);
  animation: home-ring-pulse var(--ring-duration, 10s) ease-in-out infinite;
}

.home-ring--1 {
  top: 22%;
  left: 12%;
  width: 5rem;
  height: 5rem;
  --ring-duration: 11s;
}

.home-ring--2 {
  bottom: 28%;
  right: 10%;
  width: 7rem;
  height: 7rem;
  --ring-duration: 14s;
  animation-delay: -4s;
  border-color: rgba(107, 95, 78, 0.22);
}

.home-ring--closing {
  top: 20%;
  right: 15%;
  width: 6rem;
  height: 6rem;
  --ring-duration: 12s;
  opacity: 0.6;
}

.home-drift {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 69, 19, 0.35);
  animation: home-dot-drift var(--dot-duration, 9s) ease-in-out infinite;
}

.home-drift--dot-a {
  top: 25%;
  right: 18%;
  width: 0.55rem;
  height: 0.55rem;
  --dot-duration: 8s;
}

.home-drift--dot-b {
  bottom: 30%;
  left: 12%;
  width: 0.4rem;
  height: 0.4rem;
  --dot-duration: 10s;
  animation-delay: -3s;
  background: rgba(107, 95, 78, 0.4);
}

.home-drift--dot-c {
  top: 55%;
  right: 28%;
  width: 0.35rem;
  height: 0.35rem;
  --dot-duration: 11s;
  animation-delay: -5s;
  background: rgba(139, 69, 19, 0.45);
}

.home-float--intro-a {
  top: 18%;
  left: 6%;
  width: 5.25rem;
  height: 6.75rem;
  animation: home-float-drift-b 13s ease-in-out infinite;
  opacity: 0.62;
}

.home-float--intro-b {
  bottom: 16%;
  right: 8%;
  width: 4.75rem;
  height: 6.25rem;
  animation: home-float-drift-a 15s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.55;
}

.home-ring--intro {
  top: 50%;
  left: 50%;
  width: clamp(14rem, 38vw, 22rem);
  height: clamp(14rem, 38vw, 22rem);
  margin-left: calc(clamp(14rem, 38vw, 22rem) / -2);
  margin-top: calc(clamp(14rem, 38vw, 22rem) / -2);
  border-color: rgba(139, 69, 19, 0.14);
  --ring-duration: 16s;
  opacity: 0.45;
  animation-name: home-ring-pulse-intro;
}

@keyframes home-ring-pulse-intro {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.65;
  }
}

/* —— Keyframes —— */

@keyframes home-blob-move {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(40px, -30px, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-25px, 35px, 0) scale(0.95);
  }
}

@keyframes home-blob-move-alt {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-45px, -25px, 0) scale(1.1);
  }
}

@keyframes home-float-drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  25% {
    transform: translate3d(28px, -32px, 0) rotate(4deg);
  }
  50% {
    transform: translate3d(-18px, -48px, 0) rotate(-3deg);
  }
  75% {
    transform: translate3d(-32px, 12px, 0) rotate(2deg);
  }
}

@keyframes home-float-drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  33% {
    transform: translate3d(-36px, 24px, 0) rotate(-4deg);
  }
  66% {
    transform: translate3d(22px, -28px, 0) rotate(6deg);
  }
}

@keyframes home-float-drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(3deg);
  }
  50% {
    transform: translate3d(24px, 36px, 0) rotate(-5deg);
  }
}

@keyframes home-ring-pulse {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15) translate3d(0, -16px, 0);
    opacity: 0.85;
  }
}

@keyframes home-dot-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(20px, -24px, 0);
    opacity: 1;
  }
}

/* —— Hero —— */

.home-hero {
  padding: 3.75rem 0 clamp(5rem, 10vw, 7rem);
  background:
    radial-gradient(ellipse 90% 70% at 15% -10%, rgba(139, 69, 19, 0.1), transparent 55%),
    linear-gradient(165deg, #fffdf8 0%, #f8f1e6 100%);
}

.home-hero .home-band-cut--down {
  background: linear-gradient(175deg, #faf6ef 0%, #efe6d6 100%);
}

.home-hero-inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.home-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-headline {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.home-lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero-visual {
  position: relative;
  z-index: 5;
}

.home-hero-frame {
  min-height: 22rem;
}

/* —— Intro —— */

.home-intro {
  padding: clamp(5rem, 11vw, 7rem) 0 clamp(5.5rem, 12vw, 8rem);
  background:
    radial-gradient(ellipse 55% 85% at 8% 50%, rgba(139, 69, 19, 0.11), transparent 58%),
    radial-gradient(ellipse 45% 75% at 92% 42%, rgba(139, 69, 19, 0.08), transparent 52%),
    repeating-linear-gradient(
      -11deg,
      transparent,
      transparent 32px,
      rgba(139, 69, 19, 0.028) 32px,
      rgba(139, 69, 19, 0.028) 33px
    ),
    linear-gradient(180deg, #f5efe4 0%, #faf6ef 45%, #f3ece0 100%);
}

.home-intro-wrap {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.home-intro-inner {
  position: relative;
  z-index: 5;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.home-intro-rule {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.home-intro-rule span {
  display: block;
  width: min(12rem, 55%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent, #8b4513), transparent);
  animation: home-intro-rule-glow 4s ease-in-out infinite;
}

.home-intro-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.home-intro-text {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.home-intro-deco {
  position: relative;
  min-height: 11rem;
}

.home-intro-sheet {
  position: absolute;
  display: block;
  border-radius: 5px;
  border: 1px solid rgba(139, 69, 19, 0.16);
  background: linear-gradient(160deg, #fffdf8 0%, #efe6d6 100%);
  box-shadow: 0 14px 32px rgba(44, 36, 22, 0.12);
  animation: home-intro-sheet-float var(--sheet-duration, 7s) ease-in-out infinite;
}

.home-intro-deco--left .home-intro-sheet--a {
  top: 8%;
  right: 18%;
  width: 4.75rem;
  height: 6.25rem;
  --sheet-duration: 7s;
  --sheet-rotate: -8deg;
}

.home-intro-deco--left .home-intro-sheet--b {
  bottom: 6%;
  right: 4%;
  width: 3.75rem;
  height: 5rem;
  --sheet-duration: 8.5s;
  --sheet-rotate: 5deg;
  animation-delay: -2.5s;
  opacity: 0.82;
}

.home-intro-deco--right .home-intro-sheet--c {
  top: 12%;
  left: 12%;
  width: 4.25rem;
  height: 5.75rem;
  --sheet-duration: 7.5s;
  --sheet-rotate: 6deg;
  animation-delay: -1s;
}

.home-intro-deco--right .home-intro-sheet--d {
  bottom: 10%;
  left: 28%;
  width: 3.5rem;
  height: 4.75rem;
  --sheet-duration: 9s;
  --sheet-rotate: -5deg;
  animation-delay: -3.5s;
  opacity: 0.78;
}

.home-intro-glyphs {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.home-intro-glyph {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(139, 69, 19, 0.18);
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 0 8px 20px rgba(44, 36, 22, 0.08);
  animation: home-intro-glyph-bob 5s ease-in-out infinite;
}

.home-intro-glyph:nth-child(2) {
  animation-delay: -1.6s;
}

.home-intro-glyph:nth-child(3) {
  animation-delay: -3.2s;
}

.home-intro-glyph::before,
.home-intro-glyph::after {
  content: "";
  position: absolute;
  margin: auto;
  inset: 0;
}

.home-intro-glyph--upload::before {
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid rgba(139, 69, 19, 0.55);
  border-top: 2px solid rgba(139, 69, 19, 0.55);
  transform: translateY(-2px) rotate(45deg);
}

.home-intro-glyph--upload::after {
  width: 2px;
  height: 1.1rem;
  background: rgba(139, 69, 19, 0.55);
  transform: translateY(2px);
  box-shadow: -0.45rem 0.55rem 0 -0.45rem rgba(139, 69, 19, 0.55), 0.45rem 0.55rem 0 -0.45rem rgba(139, 69, 19, 0.55);
}

.home-intro-glyph--link::before {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(139, 69, 19, 0.5);
  border-radius: 50%;
  transform: translate(-3px, 0);
}

.home-intro-glyph--link::after {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(139, 69, 19, 0.5);
  border-radius: 50%;
  transform: translate(3px, 0);
}

.home-intro-glyph--archive::before {
  width: 1.15rem;
  height: 0.85rem;
  border: 2px solid rgba(139, 69, 19, 0.5);
  border-radius: 2px 2px 1px 1px;
  transform: translateY(-2px);
  box-shadow: inset 0 -0.35rem 0 rgba(139, 69, 19, 0.12);
}

.home-intro-glyph--archive::after {
  width: 0.65rem;
  height: 2px;
  background: rgba(139, 69, 19, 0.45);
  transform: translateY(6px);
}

@keyframes home-intro-rule-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes home-intro-sheet-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--sheet-rotate, -6deg));
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(calc(var(--sheet-rotate, -6deg) + 4deg));
  }
}

@keyframes home-intro-glyph-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.home-section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

/* —— Features —— */

.home-features {
  padding: clamp(4.5rem, 10vw, 6.5rem) 0 clamp(5rem, 10vw, 7rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 69, 19, 0.04), transparent 55%),
    #fffdf8;
}

.home-features .container {
  position: relative;
  z-index: 5;
}

.home-features-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(139, 69, 19, 0.12);
}

.home-feature--reverse .home-feature-copy {
  order: 2;
}

.home-feature--reverse .home-feature-visual {
  order: 1;
}

.home-feature-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-feature-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.home-feature-text {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.home-feature-frame {
  min-height: 16rem;
}

/* —— Feature illustrations (CSS + inline SVG, no image assets) —— */

.home-illus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 12px 32px rgba(44, 36, 22, 0.1);
  overflow: hidden;
  color: rgba(139, 69, 19, 0.55);
  animation: home-illus-breathe 6s ease-in-out infinite;
}

.home-illus-window {
  position: relative;
  width: min(100%, 18rem);
  background: #fffdf8;
  border: 1px solid rgba(139, 69, 19, 0.14);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(44, 36, 22, 0.08);
  overflow: hidden;
  animation: home-illus-window-sway 8s ease-in-out infinite;
}

.home-illus--hero {
  padding: 1.5rem 1.25rem;
  animation-delay: -1s;
}

.home-illus--hero .home-illus-window {
  animation-duration: 7s;
}

.home-illus--documents .home-illus-window {
  animation-delay: -2s;
  animation-duration: 9s;
}

.home-illus--timeline .home-illus-window {
  animation-delay: -3s;
}

.home-illus--people .home-illus-window {
  animation-delay: -1.5s;
  animation-duration: 10s;
}

.home-illus--search .home-illus-window {
  animation-delay: -4s;
  animation-duration: 8.5s;
}

@keyframes home-illus-breathe {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(44, 36, 22, 0.1);
  }
  50% {
    box-shadow: 0 16px 40px rgba(44, 36, 22, 0.14);
  }
}

@keyframes home-illus-window-sway {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -5px, 0) rotate(0.6deg);
  }
}

.home-illus-window--hero {
  width: min(100%, 20rem);
}

.home-illus-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, #f3ece0 0%, #ebe3d4 100%);
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.home-illus-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(139, 69, 19, 0.22);
}

.home-illus-dot:nth-child(1) {
  background: rgba(180, 90, 50, 0.35);
}

.home-illus-dot:nth-child(2) {
  background: rgba(160, 130, 70, 0.35);
}

.home-illus-dot:nth-child(3) {
  background: rgba(90, 130, 80, 0.35);
}

/* Hero */

.home-illus-hero-body {
  padding: 0.85rem;
}

.home-illus-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.home-illus-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  background: linear-gradient(145deg, #2a2520 0%, #3d3530 100%);
  border-radius: 6px;
  color: rgba(255, 253, 248, 0.45);
}

.home-illus-scan .home-illus-icon {
  width: 2.75rem;
  height: 2.75rem;
  animation: home-illus-icon-float 4.5s ease-in-out infinite;
}

.home-illus-lines span,
.home-illus-line {
  display: block;
  height: 0.35rem;
  border-radius: 2px;
  background: rgba(139, 69, 19, 0.12);
  transform-origin: left center;
  animation: home-illus-line-grow 3.6s ease-in-out infinite;
}

.home-illus-line--1 {
  width: 92%;
  animation-delay: 0s;
}

.home-illus-line--2 {
  width: 78%;
  animation-delay: -0.8s;
}

.home-illus-line--3 {
  width: 85%;
  animation-delay: -1.6s;
}

.home-illus-line--4 {
  width: 48%;
  animation-delay: -2.4s;
}

@keyframes home-illus-icon-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes home-illus-line-grow {
  0%,
  100% {
    transform: scaleX(0.88);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.home-illus-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid rgba(139, 69, 19, 0.1);
  border-radius: 6px;
}

.home-illus-hero-strip {
  position: relative;
  height: 2.25rem;
  background: rgba(139, 69, 19, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(139, 69, 19, 0.08);
}

.home-illus-strip-line {
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(139, 69, 19, 0.18);
  transform: translateY(-50%);
}

.home-illus-strip-progress {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 0;
  height: 2px;
  background: var(--accent, #8b4513);
  transform: translateY(-50%);
  animation: home-illus-strip-fill 5s ease-in-out infinite;
  opacity: 0.75;
}

.home-illus-node {
  position: absolute;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent, #8b4513);
  border: 2px solid #fffdf8;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(139, 69, 19, 0.25);
  animation: home-illus-node-pulse 3s ease-in-out infinite;
}

.home-illus-node--early {
  left: 18%;
  animation-delay: 0s;
}

.home-illus-node--mid {
  left: 48%;
  animation-delay: -1s;
}

.home-illus-node--late {
  left: 78%;
  opacity: 0.55;
  animation-delay: -2s;
}

.home-illus-float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf8;
  border: 1px solid rgba(139, 69, 19, 0.14);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(44, 36, 22, 0.1);
  animation: home-illus-float-drift 5s ease-in-out infinite;
}

.home-illus-float--photo {
  right: 8%;
  bottom: 14%;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.35rem;
  color: rgba(139, 69, 19, 0.5);
}

.home-illus-float--photo svg {
  width: 100%;
  height: 100%;
}

@keyframes home-illus-node-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 1;
  }
}

@keyframes home-illus-strip-fill {
  0%,
  100% {
    width: 18%;
  }
  50% {
    width: 62%;
  }
}

@keyframes home-illus-float-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(-8px, -12px, 0) rotate(4deg);
  }
}

/* Documents workspace */

.home-illus-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 9rem;
}

.home-illus-pane {
  padding: 0.75rem;
}

.home-illus-pane--source {
  background: linear-gradient(160deg, #2a2520 0%, #403830 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.home-illus-page-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(255, 253, 248, 0.06);
  border-radius: 4px;
  border: 1px dashed rgba(255, 253, 248, 0.12);
}

.home-illus-page-lines span,
.home-illus-scan-line {
  display: block;
  height: 0.3rem;
  border-radius: 1px;
  background: rgba(255, 253, 248, 0.18);
  animation: home-illus-scan-shimmer 2.8s ease-in-out infinite;
}

.home-illus-scan-line:nth-child(1) {
  width: 88%;
  animation-delay: 0s;
}

.home-illus-scan-line:nth-child(2) {
  width: 72%;
  animation-delay: -0.5s;
}

.home-illus-scan-line:nth-child(3) {
  width: 88%;
  animation-delay: -1s;
}

.home-illus-scan-line:nth-child(4) {
  width: 72%;
  animation-delay: -1.5s;
}

.home-illus-scan-line:nth-child(5) {
  width: 88%;
  animation-delay: -2s;
}

@keyframes home-illus-scan-shimmer {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 0.95;
    transform: translateX(3px);
  }
}

.home-illus-pane--edit {
  background: #fff;
  position: relative;
}

.home-illus-cursor-line {
  position: absolute;
  top: 1.1rem;
  left: 0.75rem;
  width: 2px;
  height: 0.9rem;
  background: var(--accent, #8b4513);
  animation: home-illus-cursor-move 4s ease-in-out infinite;
}

.home-illus-edit-lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.home-illus-edit-lines span,
.home-illus-type-line {
  display: block;
  height: 0.32rem;
  border-radius: 2px;
  background: rgba(139, 69, 19, 0.1);
  transform-origin: left center;
  animation: home-illus-type-reveal 4s ease-in-out infinite;
}

.home-illus-type-line--1 {
  width: 90%;
  margin-left: 0.5rem;
  animation-delay: 0s;
}

.home-illus-type-line--2 {
  width: 75%;
  animation-delay: -1s;
}

.home-illus-type-line--3 {
  width: 82%;
  animation-delay: -2s;
}

.home-illus-type-line--4 {
  width: 45%;
  background: rgba(139, 69, 19, 0.18);
  animation-delay: -3s;
}

@keyframes home-illus-cursor-move {
  0%,
  100% {
    top: 1.1rem;
    opacity: 1;
  }
  25% {
    top: 2rem;
    opacity: 1;
  }
  50% {
    top: 2.85rem;
    opacity: 0;
  }
  75% {
    top: 1.1rem;
    opacity: 1;
  }
}

@keyframes home-illus-type-reveal {
  0%,
  100% {
    transform: scaleX(0.7);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Timeline */

.home-illus-window--timeline {
  width: min(100%, 19rem);
}

.home-illus-timeline-canvas {
  padding: 0.5rem 0.75rem 1rem;
  color: rgba(139, 69, 19, 0.5);
}

.home-illus-timeline-svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-illus-tl-dot {
  fill: #fffdf8;
  stroke: currentColor;
  stroke-width: 2;
  animation: home-illus-tl-dot-pulse 3.5s ease-in-out infinite;
}

.home-illus-tl-dot--1 {
  animation-delay: 0s;
}

.home-illus-tl-dot--2 {
  animation-delay: -0.8s;
}

.home-illus-tl-dot--3 {
  animation-delay: -1.6s;
}

.home-illus-tl-dot--4 {
  animation-delay: -2.4s;
}

.home-illus-tl-dot--active {
  fill: rgba(139, 69, 19, 0.15);
  stroke: var(--accent, #8b4513);
  stroke-width: 2.5;
}

.home-illus-tl-progress {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: home-illus-tl-draw 5s ease-in-out infinite;
}

.home-illus-tl-card {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.85;
  animation: home-illus-tl-card-float 4.5s ease-in-out infinite;
}

.home-illus-tl-card--1 {
  animation-delay: 0s;
}

.home-illus-tl-card--2 {
  animation-delay: -1.5s;
}

.home-illus-tl-card--3 {
  animation-delay: -3s;
}

.home-illus-tl-card--accent {
  fill: rgba(139, 69, 19, 0.08);
  stroke: var(--accent, #8b4513);
  opacity: 1;
}

@keyframes home-illus-tl-dot-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes home-illus-tl-draw {
  0%,
  100% {
    stroke-dashoffset: 220;
  }
  50% {
    stroke-dashoffset: 80;
  }
}

@keyframes home-illus-tl-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* People tree */

.home-illus-window--tree {
  width: min(100%, 19rem);
}

.home-illus-tree-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.75rem 0.5rem 1rem;
  color: rgba(139, 69, 19, 0.45);
}

.home-illus-person {
  animation: home-illus-person-glow 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.home-illus-person--root {
  animation-delay: 0s;
}

.home-illus-person:not(.home-illus-person--root):not(.home-illus-person--sm) {
  animation-delay: -1.2s;
}

.home-illus-person--sm:nth-of-type(5) {
  animation-delay: -2.4s;
}

.home-illus-person--sm:nth-of-type(6) {
  animation-delay: -2.8s;
}

.home-illus-person--sm:nth-of-type(7) {
  animation-delay: -3.2s;
}

.home-illus-person--sm:nth-of-type(8) {
  animation-delay: -3.6s;
}

@keyframes home-illus-person-glow {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.home-illus-person circle:first-child {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1.5;
}

.home-illus-person--root circle:first-child {
  fill: rgba(139, 69, 19, 0.1);
  stroke: var(--accent, #8b4513);
  stroke-width: 2;
}

.home-illus-person--sm circle:first-child {
  fill: #fffdf8;
  stroke-width: 1.25;
}

/* Search */

.home-illus-window--search {
  width: min(100%, 18rem);
}

.home-illus-search-body {
  padding: 0.85rem;
}

.home-illus-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid rgba(139, 69, 19, 0.18);
  border-radius: 999px;
  color: rgba(139, 69, 19, 0.45);
}

.home-illus-search-bar svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.home-illus-search-query {
  flex: 1;
  height: 0.35rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(139, 69, 19, 0.08) 0%,
    rgba(139, 69, 19, 0.08) 100%
  );
  position: relative;
  overflow: hidden;
}

.home-illus-search-query::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: rgba(139, 69, 19, 0.28);
  border-radius: inherit;
  animation: home-illus-search-type 3.5s ease-in-out infinite;
}

.home-illus-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-illus-results li,
.home-illus-result {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  background: rgba(139, 69, 19, 0.03);
  border: 1px solid rgba(139, 69, 19, 0.08);
  border-radius: 6px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  animation: home-illus-result-cycle 6s ease-in-out infinite;
}

.home-illus-result--1 {
  animation-delay: 0s;
}

.home-illus-result--2 {
  animation-delay: -2s;
}

.home-illus-result--3 {
  animation-delay: -4s;
}

@keyframes home-illus-search-type {
  0%,
  100% {
    width: 18%;
    opacity: 0.6;
  }
  50% {
    width: 72%;
    opacity: 1;
  }
}

@keyframes home-illus-result-cycle {
  0%,
  100% {
    background: rgba(139, 69, 19, 0.03);
    border-color: rgba(139, 69, 19, 0.08);
    transform: translateX(0);
  }
  16%,
  33% {
    background: rgba(139, 69, 19, 0.09);
    border-color: rgba(139, 69, 19, 0.22);
    transform: translateX(4px);
  }
}

.home-illus-result-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: rgba(139, 69, 19, 0.1);
  position: relative;
}

.home-illus-result-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  opacity: 0.5;
}

.home-illus-result-icon--doc::after {
  width: 0.55rem;
  height: 0.7rem;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px currentColor;
  background: transparent;
}

.home-illus-result-icon--person::after {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  top: 28%;
}

.home-illus-result-icon--person::before {
  content: "";
  position: absolute;
  bottom: 22%;
  left: 50%;
  width: 0.75rem;
  height: 0.35rem;
  border-radius: 999px 999px 0 0;
  background: currentColor;
  opacity: 0.5;
  transform: translateX(-50%);
}

.home-illus-result-icon--place::after {
  width: 0.4rem;
  height: 0.55rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: currentColor;
}

.home-illus-result-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.home-illus-result-lines i {
  display: block;
  height: 0.28rem;
  border-radius: 2px;
  background: rgba(139, 69, 19, 0.12);
  font-style: normal;
}

.home-illus-result-lines i:first-child {
  width: 78%;
}

.home-illus-result-lines i:last-child {
  width: 55%;
}

.home-illus-results li:first-child .home-illus-result-lines i:only-child,
.home-illus-results li:nth-child(2) .home-illus-result-lines i:only-child {
  width: 65%;
}

/* —— Closing —— */

.home-closing {
  padding: clamp(4rem, 8vw, 5.5rem) 0 5rem;
  background:
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(139, 69, 19, 0.08), transparent 60%),
    #faf6ef;
}

.home-closing-inner {
  position: relative;
  z-index: 5;
  max-width: 38rem;
  text-align: center;
  margin-inline: auto;
}

.home-closing-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.home-closing-text {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--muted);
}

/* —— Reduced motion —— */

@media (prefers-reduced-motion: reduce) {
  .home-blob,
  .home-float,
  .home-ring,
  .home-drift,
  .home-ring--intro,
  .home-intro-sheet,
  .home-intro-glyph,
  .home-intro-rule span,
  .home-illus,
  .home-illus-window,
  .home-illus-float,
  .home-illus-icon,
  .home-illus-line,
  .home-illus-node,
  .home-illus-strip-progress,
  .home-illus-scan-line,
  .home-illus-type-line,
  .home-illus-tl-dot,
  .home-illus-tl-progress,
  .home-illus-tl-card,
  .home-illus-person,
  .home-illus-search-query::after,
  .home-illus-result,
  .home-illus-cursor-line {
    animation: none;
  }
}

/* —— Mobile —— */

@media (max-width: 860px) {
  .home-hero {
    padding-top: 2.5rem;
  }

  .home-hero-inner,
  .home-feature,
  .home-feature--reverse .home-feature-copy,
  .home-feature--reverse .home-feature-visual {
    grid-template-columns: 1fr;
    order: initial;
  }

  .home-hero-frame {
    min-height: 18rem;
  }

  .home-feature {
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .home-float--page-b,
  .home-float--page-c,
  .home-float--hero-b,
  .home-float--intro-a,
  .home-ring--2 {
    display: none;
  }

  .home-intro-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-intro-deco {
    display: none;
  }

  .home-intro-title {
    font-size: clamp(1.65rem, 5vw, 2rem);
  }

  .home-intro-glyphs {
    gap: 1rem;
    margin-top: 1.5rem;
  }
}
