/* ============================================================
   LUKMAN FEBRIANTO — lukmanfebrianto.site
   Style: minimalist dark charcoal · massive grotesque type ·
   heavy negative space · scroll-triggered motion
   Type: Inter (display) · Krub (body)
   ============================================================ */

:root {
  --bg:     #181818;
  --bg-2:   #1f1f1f;
  --line:   #313131;
  --text:   #f2efe9;
  --muted:  #818181;
  --accent: #ff9900;
  --font-d: "Inter", sans-serif;
  --font-b: "Krub", sans-serif;
  --max:    1280px;
  --pad:    clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #181818; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Labels ---------- */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(16,16,16,0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
nav.menu { display: flex; gap: 38px; }
nav.menu a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
nav.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
nav.menu a:hover, nav.menu a.active { color: var(--accent); }
nav.menu a:hover::after, nav.menu a.active::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 24px; }
body.nav-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}
h1.display {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(46px, 8.6vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
  max-width: 14ch;
}
.hero .sub {
  margin-top: 40px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}
.hero-cta { display: flex; gap: 44px; margin-top: 48px; flex-wrap: wrap; }

/* Underline arrow links (Ashley-style buttons) */
.link-btn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.link-btn::after { content: "→"; transition: transform 0.3s; }
.link-btn:hover { color: var(--accent); border-color: var(--accent); }
.link-btn:hover::after { transform: translateX(6px); }

/* Rotating scroll badge */
.scroll-badge {
  position: absolute;
  right: var(--pad);
  bottom: 48px;
  width: 110px;
  height: 110px;
}
.scroll-badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.scroll-badge text {
  font-family: var(--font-b);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: var(--muted);
}
.scroll-badge .arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
section.block { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
section.block.no-line { border-top: 0; }

h2.big {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.two-col .copy p { color: var(--muted); }
.two-col .copy p + p { margin-top: 20px; }
.two-col .copy p strong { color: var(--text); font-weight: 700; }
.mt { margin-top: 40px; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 34px 0;
  white-space: nowrap;
}
.marquee-track { display: inline-block; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px #454545;
  padding-right: 60px;
}
.marquee-track span.fill { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service rows ---------- */
.rows { margin-top: 56px; }
.row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 60px;
  gap: 28px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s ease;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { padding-left: 18px; }
.row .num {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.row h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.row p { color: var(--muted); font-size: 15px; }
.row .arr { font-size: 24px; color: var(--muted); transition: transform 0.35s, color 0.35s; text-align: right; }
.row:hover .arr { transform: translateX(8px); color: var(--accent); }

/* ---------- Project grid ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 64px;
}
.project { display: block; }
.project .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
}
.project .thumb .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px #454545;
  transition: transform 0.6s ease;
}
.project .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover .thumb img, .project:hover .thumb .ph { transform: scale(1.05); }
.project .meta { margin-top: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.project .meta h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
}
.project .meta .cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.project .desc { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 48px;
}
.trust span {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--muted);
  transition: color 0.3s;
}
.trust span:hover { color: var(--text); }
.trust-note {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Stats (80/20) ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; max-width: 720px; }
.stat .num {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat .cap {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 20ch;
  margin: 0 auto;
}

/* ---------- Portrait ---------- */
.portrait {
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blog ---------- */
.posts { margin-top: 64px; display: grid; gap: 56px; }
.post-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.post-card .cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .pmeta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-card h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post-card p.excerpt { margin-top: 14px; color: var(--muted); }
.post-card .link-btn { margin-top: 24px; }

.empty-state {
  margin-top: 64px;
  padding: clamp(48px, 8vw, 100px) var(--pad);
  border: 1px solid var(--line);
  text-align: center;
}
.empty-state h3 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.02em;
}
.empty-state p { margin-top: 16px; color: var(--muted); max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Article page ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article .pmeta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.article h1.title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.article .cover { margin: 48px 0; border: 1px solid var(--line); }
.article .body p { color: #c9c6bf; margin-bottom: 24px; }
.article .body,
.article .body p,
.article .body li,
.article .body blockquote,
.article .body span,
.article .body a,
.article .body strong,
.article .body em,
.article .body u,
.article .body b,
.article .body i {
  font-family: var(--font-b) !important;
}
.article .body h2, .article .body h3 {
  font-family: var(--font-d) !important;
}
.article .body h2 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}
.article .body img, .article .body .video, .article .body figure { margin: 40px 0; border: 1px solid var(--line); }
.article .body .video,
.article .body figure:has(iframe) { aspect-ratio: 16/9; width: 100%; display: block; }
.article .body .video iframe,
.article .body figure iframe { width: 100%; height: 100%; border: 0; display: block; }
.article .body img { width: 100%; }
/* Neutralize stray figures that only wrap text or line breaks */
.article .body figure:not(:has(iframe)):not(:has(img)) {
  margin: 0; border: 0; display: contents;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 7vw, 110px);
  margin-top: 64px;
  align-items: start;
}
form.contact label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
form.contact input, form.contact textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  padding: 12px 0 16px;
  margin-bottom: 40px;
  transition: border-color 0.3s;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-b);
}
.form-status { margin-top: 24px; font-size: 15px; color: var(--muted); min-height: 24px; }

.socials { display: grid; gap: 0; }
.socials a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 19px;
  transition: padding-left 0.3s, color 0.3s;
}
.socials a:last-child { border-bottom: 1px solid var(--line); }
.socials a span.arr { font-size: 17px; color: var(--muted); transition: transform 0.3s; }
.socials a:hover { padding-left: 14px; }
.socials a:hover span.arr { transform: translateX(6px); color: var(--accent); }
.contact-email {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 48px;
}

/* ---------- Big footer CTA ---------- */
.cta-footer { text-align: left; }
.cta-footer h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 110px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.cta-footer .link-btn { margin-top: 44px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.footer-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: center;
}
.footer-in .copyright { font-size: 13px; color: var(--muted); }
.footer-in nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-in nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-in nav a:hover { color: var(--text); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-badge svg { animation: none; }
  .project .thumb img, .project .thumb .ph, .post-card .cover img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 48px 1fr 40px; }
  .row p { grid-column: 2; }
  .post-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .scroll-badge { display: none; }
  nav.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.4s ease, visibility 0s linear 0.4s;
    z-index: 105;
  }
  body.nav-open nav.menu { transform: none; visibility: visible; transition: transform 0.4s ease, visibility 0s; }
  body.nav-open header.site { background: transparent; backdrop-filter: none; }
  body.nav-open .burger span:nth-child(1),
  body.nav-open .burger span:nth-child(2) { background: var(--text); }
  body.nav-open { overflow: hidden; }
  nav.menu a { font-size: 18px; }
  .burger { display: block; }
}

/* ---------- Accent ---------- */
.accent { color: var(--accent); }
.logo .dot { color: var(--accent); }

/* Article body divider */
.article .body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 44px 0;
}
.article .body ul, .article .body ol { margin: 0 0 24px 24px; color: #c9c6bf; }
.article .body li { margin-bottom: 8px; }
.article .body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--text);
  font-size: 1.1em;
}
.article .body a { color: var(--accent); text-decoration: underline; }

/* ---------- Back to top button ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.25s;
  z-index: 90;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--text); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.3s, visibility 0.3s; transform: none; }
}
