:root{
  /* Lighter smoky background */
  --bg1:#1B1E25;
  --bg2:#232733;

  /* Card is more “white” */
  --card: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.14);

  /* Text */
  --text:#F7F8FA;
  --muted:#C9D0DA;

  /* Soft accent: muted rose + calm blue */
  --accent:#D06A7A;     /* rose */
  --accent2:#9BBAD6;    /* airy blue */

  --shadow: 0 18px 70px rgba(0,0,0,.35);
  --radius: 26px;
}


*{ box-sizing:border-box; }
html,body{ height:100%; }


body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 25% 15%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}


.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding: 24px;
  gap: 28px;
}


.card{
  width: min(1100px, 96vw);
  min-height: 560px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 34px;
  position: relative;
  overflow:hidden;
}

.left{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 16px;
}

/* Script name */
.mark.mark-script{
  font-family: "Allura", cursive;
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(72px, 7.5vw, 120px);
  line-height: 1;
  color: var(--text);
  user-select:none;
  margin-bottom: 4px;
}

.headline{
  margin:0;
  max-width: 62ch;
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.45;
  color: rgba(244,246,248,.92);
}

.divider{
  height: 1px;
  width: min(520px, 100%);
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.22),
    rgba(255,255,255,0)
  );
  border-radius: 999px;
  margin: 4px 0 6px;
}

.sub{
  margin:0;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.55;
  color: rgba(199,205,214,.95);
  max-width: 70ch;
}

.accent{
  color: rgba(244,246,248,.96);
  font-weight: 750;
}

.muted{
  color: rgba(199,205,214,.92);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: rgba(244,246,248,.92);
  text-decoration:none;
  font-weight: 650;
  letter-spacing: .01em;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.055);
}

.btn.primary{
  border-color: rgba(208,106,122,.35);
}

.btn.primary:hover{
  border-color: rgba(208,106,122,.55);
}

.arrow{
  opacity:.9;
  font-size: 0.95em;
}

.status{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(199,205,214,.92);
  font-size: 14px;
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .9;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{ transform: scale(1); opacity:.55; }
  50%{ transform: scale(1.35); opacity:1; }
}

.footer{
  margin-top: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(199,205,214,.78);
  font-size: 13px;
}

.footer .sep{ opacity:.55; }
.footer .tiny{ opacity:.85; }

/* RIGHT SIDE - Build animation */
.right{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.build-scene{
  width: min(360px, 100%);
  height: 460px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);

  /* "Blueprint glass" + gentle warm/cool tint + faint grid */
  background:
    radial-gradient(240px 180px at 35% 25%, rgba(155,186,214,.18), transparent 62%),
    radial-gradient(260px 200px at 70% 35%, rgba(208,106,122,.14), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);

  background-size:
    auto,
    auto,
    auto,
    26px 26px,
    26px 26px;

  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  position: relative;
  overflow:hidden;
}

.build-scene::before{
  content:"";
  position:absolute;
  inset:-60px -60px auto -60px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%);
  pointer-events:none;
}



/* Crane (neutral greys) */
.crane{
  position:absolute;
  left: 22px;
  top: 52px;
  width: 220px;
  height: 220px;
}

.mast{
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.10));
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.base{
  position:absolute;
  left: 18px;
  top: 162px;
  width: 54px;
  height: 16px;
  border-radius: 10px;
  background: rgba(244,246,248,.08);
  border: 1px solid rgba(244,246,248,.10);
}

.boom{
  background: linear-gradient(90deg, rgba(155,186,214,.32), rgba(255,255,255,.12));
}

@keyframes boomSway{
  0%,100%{ transform: rotate(-2deg); }
  50%{ transform: rotate(2deg); }
}

.trolley{
  background: rgba(255,255,255,.28);
}

@keyframes trolleyMove{
  0%,100%{ transform: translateX(10px); }
  50%{ transform: translateX(96px); }
}

.cable{
  background: rgba(255,255,255,.26);
}

.hook{
  border: 2px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.08);
}

/* Load uses muted accent but subtle */
.load{
  background: linear-gradient(180deg, rgba(208,106,122,.45), rgba(208,106,122,.22));
  box-shadow: 0 10px 22px rgba(208,106,122,.14);
}

@keyframes cableMove{
  0%,100%{ transform: translateX(10px); height: 76px; opacity:.60; }
  50%{ transform: translateX(96px); height: 104px; opacity:.85; }
}

@keyframes hookMove{
  0%,100%{ transform: translateX(10px) translateY(0px); }
  50%{ transform: translateX(96px) translateY(18px); }
}

@keyframes loadMove{
  0%,100%{ transform: translateX(10px) translateY(0px); }
  50%{ transform: translateX(96px) translateY(18px); }
}

/* Site area + stack */
.site{
  position:absolute;
  right: 22px;
  bottom: 28px;
  width: 210px;
  height: 210px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.ground{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.stack{
  position: relative;
  width: 140px;
  height: 160px;
  display:flex;
  flex-direction:column-reverse;
  gap: 8px;
  padding-bottom: 20px;
  align-items:center;
}

.block{
  width: 120px;
  height: 18px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);

  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));

  box-shadow:
    0 12px 22px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.10);

  transform: translateY(-18px);
  opacity: 0;
  animation: place .55s ease forwards;
}

.block:nth-child(3n){
  background: linear-gradient(180deg, rgba(155,186,214,.18), rgba(255,255,255,.04));
}

.block:nth-child(4n){
  background: linear-gradient(180deg, rgba(208,106,122,.16), rgba(255,255,255,.04));
}

@keyframes place{
  to { transform: translateY(0); opacity: 1; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 920px){
  .card{
    grid-template-columns: 1fr;
    padding: 26px;
    min-height: unset;
  }
  .right{ order: -1; }
  .build-scene{
    width: 100%;
    height: 340px;
  }
  .site{
    width: 220px;
    height: 190px;
  }
}

/* Make z-index layering predictable inside the scene */
.build-scene{
  isolation: isolate;
}

/* Put haze BEHIND everything */
.build-scene::before{
  z-index: 0;
}

/* Put crane + site ABOVE the haze */
.crane, .site{
  z-index: 2;
}

.mast{
  position:absolute;
  left: 34px;
  top: 10px;
  width: 16px;
  height: 160px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.10));
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.boom{
  position:absolute;
  left: 42px;
  top: 26px;
  width: 160px;
  height: 9px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(155,186,214,.32), rgba(255,255,255,.12));
  transform-origin: 0% 50%;
  animation: boomSway 4.8s ease-in-out infinite;
}

.trolley{
  position:absolute;
  top: -6px;
  left: 22px;
  width: 18px;
  height: 22px;
  border-radius: 10px;
  background: rgba(255,255,255,.28);
  animation: trolleyMove 3.2s ease-in-out infinite;
}

.cable{
  position:absolute;
  top: 16px;
  left: 32px;
  width: 2px;
  height: 86px;
  background: rgba(255,255,255,.26);
  animation: cableMove 3.2s ease-in-out infinite;
}

.hook{
  position:absolute;
  top: 96px;
  left: 26px;
  width: 14px;
  height: 14px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.08);
  animation: hookMove 3.2s ease-in-out infinite;
}

.load{
  position:absolute;
  top: 118px;
  left: 18px;
  width: 28px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(208,106,122,.45), rgba(208,106,122,.22));
  box-shadow: 0 10px 22px rgba(208,106,122,.14);
  animation: loadMove 3.2s ease-in-out infinite;
}

.ground{
  position:absolute;
  inset:auto 0 0 0;
  height: 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* ===== Featured Projects as ONE big card ===== */

.projects{
  width: min(1100px, 96vw);
  padding: 10px 0 90px;
  scroll-margin-top: 24px;
}

.projects-head{
  margin: 8px 0 18px;
}

.projects-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.projects-head p{
  margin: 0;
  color: rgba(199,205,214,.92);
}

/* Make the project card feel like the hero card (but slightly shorter) */
.card--project{
  min-height: 480px;
  margin-top: 10px;
}

/* Typography inside project card */
.project-kicker{
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(199,205,214,.9);
}

.project-title{
  margin: 6px 0 6px;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}

.project-desc{
  margin: 0;
  color: rgba(244,246,248,.86);
  line-height: 1.6;
  max-width: 70ch;
}

.project-bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(199,205,214,.92);
  line-height: 1.7;
}

.project-bullets li{
  margin: 6px 0;
}

/* Right-side “preview” panel (subtle, not blue) */
.project-preview{
  width: min(360px, 100%);
  height: 360px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.preview-top{
  height: 44px;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.preview-top .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.preview-top .d1{ background: rgba(208,106,122,.35); }
.preview-top .d2{ background: rgba(255,255,255,.16); }
.preview-top .d3{ background: rgba(155,186,214,.28); }

.preview-body{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.skeleton{
  border-radius: 12px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.10),
    rgba(255,255,255,.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.06);
}

@keyframes shimmer{
  0%{ background-position: 0% 0%; opacity:.85; }
  50%{ background-position: 100% 0%; opacity:1; }
  100%{ background-position: 0% 0%; opacity:.85; }
}

.sk1{ height: 18px; width: 70%; }
.sk2{ height: 14px; width: 92%; }
.sk3{ height: 14px; width: 82%; }
.sk4{ height: 110px; width: 100%; border-radius: 18px; }

.mini-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi{
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.preview-caption{
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(199,205,214,.90);
  font-size: 13px;
}

/* Responsive: stack columns on small screens */
@media (max-width: 920px){
  .card--project{
    grid-template-columns: 1fr;
  }
  .project-preview{
    height: 300px;
  }
}

/* ===== Page layout fix: Hero centered + projects below fold ===== */
html { scroll-behavior: smooth; }

.page{
  min-height: 100%;
}

/* Make hero take a full screen and center the card */
.hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}

/* Ensure the card doesn't get pushed around */
.hero-card{
  margin: 0;
}

/* Scroll cue styling (restores arrow styles) */
.scroll-down{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(244,246,248,.78);
  user-select: none;
  margin-top: 8px;
}

.scroll-pill{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.scroll-arrow{
  font-size: 30px;
  line-height: 1;
  opacity: .9;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce{
  0%,100%{ transform: translateY(0); opacity:.75; }
  50%{ transform: translateY(7px); opacity:1; }
}

/* Projects section should start below the first screen */
.projects{
  padding: 70px 24px 140px;
  display: flex;
  justify-content: center;
}

.projects-inner{
  width: min(1100px, 96vw);
}

.projects-head{
  margin: 0 0 16px;
}

.projects-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.projects-head p{
  margin: 0;
  color: rgba(199,205,214,.92);
}

/* Big project card tweaks */
.card--project{
  min-height: 480px;
}

/* Featured project text styles */
.project-kicker{
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(199,205,214,.9);
}

.project-title{
  margin: 6px 0 8px;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}

.project-desc{
  margin: 0;
  color: rgba(244,246,248,.86);
  line-height: 1.6;
  max-width: 70ch;
}

.project-bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(199,205,214,.92);
  line-height: 1.7;
}

.project-bullets li{
  margin: 6px 0;
}

/* Project preview panel (right side) */
.project-preview{
  width: min(360px, 100%);
  height: 360px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.preview-top{
  height: 44px;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.p-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.preview-top .d1{ background: rgba(208,106,122,.35); }
.preview-top .d2{ background: rgba(255,255,255,.16); }
.preview-top .d3{ background: rgba(155,186,214,.28); }

.preview-body{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.skeleton{
  border-radius: 12px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.10),
    rgba(255,255,255,.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.06);
}

@keyframes shimmer{
  0%{ background-position: 0% 0%; opacity:.85; }
  50%{ background-position: 100% 0%; opacity:1; }
  100%{ background-position: 0% 0%; opacity:.85; }
}

.sk1{ height: 18px; width: 70%; }
.sk2{ height: 14px; width: 92%; }
.sk3{ height: 14px; width: 82%; }
.sk4{ height: 110px; width: 100%; border-radius: 18px; }

.mini-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi{
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.preview-caption{
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(199,205,214,.90);
  font-size: 13px;
}

/* Bottom fade */
.bottom-fade{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  pointer-events: none;
  z-index: 50;
}

/* Responsive: stack project card columns */
@media (max-width: 920px){
  .card--project{
    grid-template-columns: 1fr;
  }
  .project-preview{
    height: 300px;
  }
}

/* FORCE Featured Project section to center */
.projects{
  width: 100%;
  display: flex;
  justify-content: center;
}

.projects-inner{
  width: min(1100px, 96vw);
  margin: 0 auto;
}

.card--project{
  width: 100%;
  margin: 0 auto;
}

/* ===== Featured project: screenshot as background (fade to left) ===== */
.card--project.project-bg{
  position: relative;
  overflow: hidden;
}

/* Put all card content above the background layer */
.card--project.project-bg > *{
  position: relative;
  z-index: 2;
}

/* Background layer (screenshot + fade) */
.card--project.project-bg::before{
  content:"";
  position:absolute;
  inset: 0;
  z-index: 1;

  /* 3 layers:
     1) Darken the image slightly so it looks premium
     2) Fade the image out as we move LEFT so text is readable
     3) The actual screenshot (anchored to the RIGHT) */
  background:
    linear-gradient(to right,
      rgba(20,22,28,0.95) 0%,
      rgba(20,22,28,0.92) 38%,
      rgba(20,22,28,0.55) 58%,
      rgba(20,22,28,0.20) 72%,
      rgba(20,22,28,0.00) 100%
    ),
    linear-gradient(180deg,
      rgba(255,255,255,0.03),
      rgba(0,0,0,0.10)
    ),
    var(--project-bg);

  background-repeat: no-repeat;
  background-position: center, center, right center;
  background-size: cover, cover, cover;

  /* overall “visibility” of the background */
  opacity: 0.95;
  transform: scale(1.02); /* avoids edge seams */
}

/* Optional: subtle highlight/glow on the right so it feels alive */
.card--project.project-bg::after{
  content:"";
  position:absolute;
  inset: 0;
  z-index: 1;
  pointer-events:none;

  background:
    radial-gradient(520px 320px at 78% 40%, rgba(155,186,214,0.18), transparent 62%),
    radial-gradient(520px 320px at 85% 65%, rgba(208,106,122,0.14), transparent 70%);
  opacity: .65;
}

/* On smaller screens: make the left fade stronger so text stays readable */
@media (max-width: 920px){
  .card--project.project-bg::before{
    background:
      linear-gradient(to right,
        rgba(20,22,28,0.97) 0%,
        rgba(20,22,28,0.95) 55%,
        rgba(20,22,28,0.70) 78%,
        rgba(20,22,28,0.35) 100%
      ),
      linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12)),
      var(--project-bg);
  }
}

.card--project{
  grid-template-columns: 1fr;
}

/* Hover pop + glow (subtle + premium) */
.card--project{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform, box-shadow;
}

.card--project:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 22px 80px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 46px rgba(155,186,214,.14),
    0 0 34px rgba(208,106,122,.10);
}

/* Optional: make the background screenshot feel “more alive” on hover */
.card--project.project-bg::before{
  transition: opacity .18s ease, transform .18s ease;
}

.card--project.project-bg:hover::before{
  opacity: 1;
  transform: scale(1.04);
}

/* Optional: cursor hint */
.card--project{ cursor: default; }