/* /home — «BİRHOME», tezliklə sizinlə (App\Front\Pages\BirHomePage, views/bir-home.tsx). One screen, so its rules
   are the page's own and the site's stylesheet carries none of them. Colours are the theme's tokens: the dark theme
   is the same page. Everything that moves is CSS, and nothing moves for a reader who asked for less motion. */

.bh{
  position:relative; overflow:hidden; isolation:isolate;
  display:grid; place-items:center;
  min-height:calc(100vh - 190px);
  min-height:calc(100svh - 190px);
  /* Sized by the screen's height as well as its width: the whole of it — the house, the name, the two buttons — is
     on one screen, a laptop's short one included. */
  margin:clamp(8px, 2vh, 20px) 0 40px;
  padding:clamp(26px, 6vh, 64px) 20px clamp(26px, 5.5vh, 56px);
  border:1px solid var(--line-soft); border-radius:28px;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(var(--accent-rgb),.10), transparent 70%),
    var(--white);
  box-shadow:var(--rest-shadow);
  text-align:center;
}

/* The drawing board: a faint grid that fades out towards the edges. */
.bh-grid{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:36px 36px; background-position:center center;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 42%, #000 18%, transparent 74%);
          mask-image:radial-gradient(ellipse 70% 60% at 50% 42%, #000 18%, transparent 74%);
}

/* Two soft lights drifting in the corners — gradients, not a blur filter: a filter re-blurs on every frame. */
.bh-sky{ position:absolute; inset:0; z-index:-2; pointer-events:none; }
.bh-orb{
  position:absolute; width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle at center, rgba(var(--accent-rgb),.12), transparent 62%);
  animation:bhDrift 14s ease-in-out infinite alternate;
  will-change:transform;
}
.bh-orb--a{ top:-230px; left:-170px; }
.bh-orb--b{
  bottom:-270px; right:-190px;
  background:radial-gradient(circle at center, rgba(var(--ink-rgb),.07), transparent 62%);
  animation-duration:18s; animation-direction:alternate-reverse;
}
@keyframes bhDrift{ to{ transform:translate3d(64px, 44px, 0) scale(1.08); } }

.bh-inner{ position:relative; max-width:660px; display:flex; flex-direction:column; align-items:center; }

.bh-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:9px;
  font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent); background:rgba(var(--accent-rgb),.09); border:1px solid rgba(var(--accent-rgb),.18);
  animation:bhRise .7s cubic-bezier(.16,1,.3,1) both;
}
.bh-badge i{ font-size:13px; }

/* The house, sketched line by line: every stroke has pathLength 1, so one dash is the whole line. */
.bh-house{
  width:min(270px, 66vw, 26vh); width:min(270px, 66vw, 26svh); min-width:140px;
  height:auto; margin:clamp(12px, 3vh, 26px) 0 clamp(12px, 3vh, 24px); overflow:visible;
}
.bh-l{
  stroke:var(--ink); stroke-width:2.4;
  stroke-dasharray:1; stroke-dashoffset:1;
  animation:bhDraw 1.1s cubic-bezier(.65,0,.35,1) forwards;
}
.bh-l1{ stroke:var(--line); stroke-width:2; animation-delay:.15s; }
.bh-l2{ animation-delay:.3s; animation-duration:1.4s; }
.bh-l3{ stroke:var(--accent); stroke-width:3; animation-delay:.8s; }
.bh-l4{ animation-delay:1.1s; animation-duration:.7s; }
.bh-l5{ animation-delay:1.25s; animation-duration:.8s; }
.bh-l6{ animation-delay:1.4s; animation-duration:.7s; }
.bh-l7{ animation-delay:1.55s; animation-duration:.6s; }
@keyframes bhDraw{ to{ stroke-dashoffset:0; } }

/* ...and once it stands, the lights come on. No glow on the ground under it. */
.bh-lights{ fill:rgba(var(--accent-rgb),.24); opacity:0; animation:bhOn .9s ease 2s forwards; }
@keyframes bhOn{ to{ opacity:1; } }

.bh-smoke circle{
  fill:var(--ink-3); opacity:0;
  transform-box:fill-box; transform-origin:center;
  animation:bhSmoke 3.6s ease-in 2.4s infinite;
}
.bh-smoke circle:nth-child(2){ animation-delay:3.6s; }
.bh-smoke circle:nth-child(3){ animation-delay:4.8s; }
@keyframes bhSmoke{
  0%{ opacity:0; transform:translate(0, 8px) scale(.6); }
  30%{ opacity:.35; }
  100%{ opacity:0; transform:translate(7px, -20px) scale(1.5); }
}

.bh-title{ margin:4px 0 0; display:flex; flex-direction:column; align-items:center; gap:clamp(6px, 1.4vh, 12px); font-weight:inherit; }
.bh-word{
  font-size:clamp(44px, min(10vw, 12vh), 108px); font-weight:800; line-height:.95; letter-spacing:.06em;
  color:var(--ink);
  animation:bhRise .9s cubic-bezier(.16,1,.3,1) .2s both;
}
.bh-word b{ font-weight:800; color:var(--accent); }
.bh-sub{
  font-size:clamp(22px, min(4.2vw, 5vh), 40px); font-weight:500; line-height:1.15; color:var(--ink);
  animation:bhRise .9s cubic-bezier(.16,1,.3,1) .4s both;
}
@keyframes bhRise{ from{ opacity:0; transform:translateY(14px); } }

.bh-lead{
  max-width:600px; margin:clamp(10px, 2.2vh, 18px) 0 0;
  font-size:15px; line-height:1.65; color:var(--ink-2); text-wrap:balance;
  animation:bhRise .9s cubic-bezier(.16,1,.3,1) .55s both;
}

/* «Being built»: a short accent run sweeping a hairline track. */
.bh-progress{
  width:168px; height:3px; margin:clamp(14px, 3vh, 26px) 0 0; border-radius:3px; overflow:hidden;
  background:var(--line-soft);
  animation:bhRise .9s cubic-bezier(.16,1,.3,1) .65s both;
}
.bh-progress span{
  display:block; width:38%; height:100%; border-radius:inherit; background:var(--accent);
  animation:bhLoad 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes bhLoad{ from{ transform:translateX(-110%); } to{ transform:translateX(300%); } }

.bh-actions{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:clamp(16px, 3.4vh, 30px);
  animation:bhRise .9s cubic-bezier(.16,1,.3,1) .75s both;
}
.bh-actions .btn{ height:46px; padding:0 20px; gap:8px; }
.bh-actions .btn svg{ width:18px; height:18px; }

@media (max-width:640px){
  .bh{
    margin:12px 0 28px; padding:clamp(28px, 5vh, 44px) 16px clamp(24px, 4vh, 36px); border-radius:22px;
    min-height:calc(100vh - 150px);
    min-height:calc(100svh - 150px);
  }
  /* A phone keeps its frames for the scroll. */
  .bh-orb{ animation:none; }
  .bh-word{ letter-spacing:.04em; }
  .bh-actions{ width:100%; flex-direction:column; }
  .bh-actions .btn{ width:100%; justify-content:center; }
}

@media (prefers-reduced-motion: reduce){
  .bh *{ animation:none !important; }
  .bh-l{ stroke-dashoffset:0; }
  .bh-lights{ opacity:1; }
  .bh-progress span{ transform:translateX(80%); }
}
