/* rumah4u.co — dark cinematic red theme */
:root {
  --bg: #09090b; --bg-2: #111114; --line: #ffffff14; --text: #f3f1f1; --muted: #a7a2a4;
  --red: #e0151f; --red-2: #ff3b44; --red-deep: #4a070c;
  --display: 'Anton', 'Bebas Neue', Impact, sans-serif; --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { /* film grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* header */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: #09090bcc; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; }
.logo span { color: var(--red); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 4px; border: 1px solid transparent;
  font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red); }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-ghost { border-color: #ffffff33; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.6rem; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: min(calc(100vh - 68px), 860px); display: grid; align-items: center; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(70% 90% at 70% 40%, #b0101a 0%, var(--red-deep) 45%, var(--bg) 80%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 8%, transparent 60%), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 70px; }
.eyebrow { font-family: 'Caveat', cursive; font-size: 1.6rem; color: #ffd9db; transform: rotate(-4deg); display: inline-block; }
.kicker { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-2); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(3.2rem, 9vw, 7.4rem); }
h1 em, h2 em { font-style: normal; color: var(--red); }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.lead { color: #d8d3d4; max-width: 520px; font-size: 1.05rem; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* id card (like the reference lanyard card) */
.id-card { justify-self: center; position: relative; width: min(320px, 80vw); padding: 14px 14px 18px; border-radius: 18px;
  background: linear-gradient(160deg, #1b1b1f, #0d0d10); border: 1px solid #ffffff1f; transform: rotate(4deg);
  box-shadow: 0 40px 80px -20px #000, 0 0 0 1px #00000080; animation: sway 6s ease-in-out infinite; }
.id-card::before { content: ''; position: absolute; left: 50%; top: -120px; width: 26px; height: 130px; transform: translateX(-50%);
  background: linear-gradient(var(--red), #8d0b12); border-radius: 3px; }
.id-card::after { content: ''; position: absolute; left: 50%; top: 10px; width: 44px; height: 8px; border-radius: 4px; transform: translateX(-50%); background: #000; }
.id-card img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; width: 100%; height: auto; margin-top: 18px; }
.id-card .id-meta { display: flex; justify-content: space-between; align-items: end; margin-top: 12px; }
.id-card strong { font-family: var(--display); font-size: 1.5rem; font-weight: 400; letter-spacing: .03em; }
.id-card small { color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.tag { background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; padding: 4px 8px; border-radius: 3px; letter-spacing: .12em; text-transform: uppercase; }
@keyframes sway { 50% { transform: rotate(1deg) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .id-card { animation: none; } html { scroll-behavior: auto; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat span { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }

/* sections */
section { padding-block: 100px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 420px; margin: 0; }
.num { font-family: var(--display); color: var(--red); font-size: 1rem; letter-spacing: .2em; }

.project { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.project-media { position: relative; min-height: 420px; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--bg-2)); }
.project-body { padding: 44px; display: grid; gap: 18px; align-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #ff3b4455; color: #ffd3d6; background: #e0151f14; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: saturate(.85) contrast(1.05); }
.gallery figure:hover img { transform: scale(1.05); filter: none; }
.gallery figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; text-shadow: 0 2px 12px #000; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #141418, #0d0d10); }
.card .num { display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }

.band { position: relative; overflow: hidden; border-radius: 16px; padding: 70px 50px; background: linear-gradient(120deg, #7d0910, var(--red) 60%, #ff4a52); }
.band::after { content: 'RUMAH4U'; position: absolute; right: -20px; bottom: -40px; font-family: var(--display); font-size: 11rem; color: #ffffff12; line-height: 1; }
.band h2 { max-width: 700px; }
.band p { max-width: 560px; color: #ffe3e4; }
.band .btn-ghost { border-color: #ffffff88; }
.band .btn-dark { background: #0a0a0b; color: #fff; }

/* forms */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
form.lead-form { display: grid; gap: 14px; padding: 32px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid #ffffff22; background: #0a0a0c; color: var(--text); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--red); }
.consent a { color: #fff; text-decoration: underline; }
.form-note { font-size: .9rem; min-height: 1.4em; margin: 0; }
.form-note.ok { color: #7ef0a8; } .form-note.err { color: #ff8a90; }
.hp { position: absolute; left: -9999px; }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 2.2rem; margin: 46px 0 14px; }
.legal p, .legal li { color: #d6d1d2; }
.legal ul { padding-left: 20px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 10px 30px -8px #25d366; }
[data-needs-wa] { display: none !important; }
.has-wa [data-needs-wa] { display: revert !important; }
.has-wa .wa-float[data-needs-wa] { display: grid !important; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap, .project, .form-wrap { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .id-card { margin-top: 140px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .project-media { min-height: 300px; } .project-media::after { background: linear-gradient(0deg, var(--bg-2), transparent 50%); }
  .project-body { padding: 28px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 20px; background: #09090bf2; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav .btn { display: none; }
  .band { padding: 48px 26px; }
  section { padding-block: 70px; }
  .two { grid-template-columns: 1fr; }
}

/* HOME: fixed portrait stage that pushes in on the face as you scroll (like eydan's reference) */
.home { background: #09090b; }
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(55% 70% at 50% 42%, #b3101b 0%, #4d070d 52%, #0a0507 88%); --p: 0; }
/* AI video frames drawn to the canvas as you scroll; the poster shows until frames load */
.stage img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.stage canvas { opacity: 0; transition: opacity .4s; }
.stage canvas.on { opacity: 1; }
.stage::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #09090bcc 0%, transparent 45%), radial-gradient(90% 90% at 50% 40%, transparent 45%, #09090b 100%); }
.stage::before { content: ''; position: absolute; inset: 0; z-index: 2; background: #09090b; opacity: calc(clamp(0, (var(--p) - .9) * 10, 1) * .5); }
.home main, .home footer { position: relative; z-index: 1; }
.stage-runway { height: 110vh; } /* empty scroll space so the sunglasses move plays unobstructed */
@media (prefers-reduced-motion: reduce) { .stage-runway { height: 0; } }
.home footer { background: #09090b; }
.home .hero { min-height: calc(100vh - 68px); }
.home .hero::before, .home .hero::after { display: none; }
.home .hero .wrap { grid-template-columns: 1fr 1fr; align-items: end; padding-bottom: 90px; }
.hero-copy { text-shadow: 0 4px 30px #000c; }
.home h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); }
.id-card--stage { justify-self: end; width: 230px; margin-bottom: 40px; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: #ffffffa0; }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(#fff, transparent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.glass { background: #0d0809b3; border: 1px solid #ffffff17; border-radius: 16px; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.home .section-head.glass { padding: 30px 34px; }
.home .stats.glass { border-block: 1px solid #ffffff17; }
.home .project, .home .card { background: #0f0a0bcc; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.home section { padding-block: 70px; }
.home section:first-of-type { padding-block: 0; }
@media (max-width: 900px) {
  .stage::after { background: linear-gradient(0deg, #09090b 0%, transparent 45%), radial-gradient(90% 90% at 50% 40%, transparent 45%, #09090b 100%); }
  .home .hero .wrap { grid-template-columns: 1fr; align-items: end; padding-bottom: 70px; }
  .home .hero { align-items: end; }
  .hero-copy { background: linear-gradient(transparent, #09090bcc 30%); margin-inline: -20px; padding: 60px 20px 0; }
  .id-card--stage { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stage::before { opacity: 0; } .scroll-hint::after { animation: none; } }
