/* akudancamera: minimal editorial photography layout.
   Theme: dark by default (html[data-theme="dark"]), switchable to light. */
:root,
:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #f2f1ee;
  --muted: #8d8d8a;
  --line: #262625;
  --surface: #151514;
  --inverse-bg: #f2f1ee;
  --inverse-fg: #0b0b0b;
  --nav-bg: rgba(11, 11, 11, .86);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #696969;
  --line: #e7e7e7;
  --surface: #f3f3f2;
  --inverse-bg: #000000;
  --inverse-fg: #ffffff;
  --nav-bg: rgba(255, 255, 255, .9);
  color-scheme: light;
}
:root {
  --on-photo: #ffffff;
  --on-photo-muted: #c8c8c8;
  --wa: #25d366;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.grey { color: var(--muted); }
.light-grey { color: var(--on-photo-muted); }
.large-text { font-size: 36px; line-height: 1.2; letter-spacing: -1px; font-weight: 400; }
.section-tag { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: -0.3px; }

/* ---------- Buttons with rolling text ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-size: 14px; cursor: pointer; border: 0; background: none; }
.btn-white { background: var(--on-photo); color: #000; }
.btn-solid { background: var(--inverse-bg); color: var(--inverse-fg); }
.btn-plain { height: auto; padding: 0; background: transparent; }
.btn-light { color: var(--on-photo); }
.btn-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; flex: none; }
.btn-text { display: block; height: 17px; overflow: hidden; line-height: 17px; }
.btn-text span { display: block; transition: transform .45s cubic-bezier(.6, 0, .2, 1); }
.btn:hover .btn-text span, a:hover .btn-text span { transform: translateY(-100%); }

/* ---------- Navbar ---------- */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-photo); transition: background .35s, color .35s; }
.navbar.scrolled { background: var(--nav-bg); backdrop-filter: blur(10px); color: var(--fg); }
.navbar.scrolled .nav-cta { background: var(--inverse-bg); color: var(--inverse-fg); }
.nav-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 20px; letter-spacing: -0.6px; }
.nav-menu { display: flex; gap: 36px; }
.nav-link { position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s; }
.nav-link:hover::after, .nav-link.current::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; background: none; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; font-size: 13px; }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: inherit; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px; }
.nav-toggle span { display: block; height: 1px; background: currentColor; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-photo); overflow: hidden; background: #111; }
.hero-image, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: 50% 30%; transform: scale(1.08); animation: heroIn 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(#000, rgba(0, 0, 0, 0) 51%, #000); opacity: .85; }
.hero-content { position: relative; padding-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.featured-work { justify-self: start; display: flex; gap: 16px; padding: 8px 16px 8px 8px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.featured-thumb { position: relative; width: 60px; height: 60px; flex: none; overflow: hidden; }
.featured-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .4s; }
.featured-img-hover { opacity: 0; }
.featured-work:hover .featured-img-hover { opacity: 1; }
.featured-text { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.hero-heading { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: 64px; line-height: 1; letter-spacing: -2px; font-weight: 400; text-wrap: balance; }

/* ---------- Generic section + corner marks ---------- */
.section { position: relative; padding-block: 64px; }
.corners { position: absolute; inset: 16px; pointer-events: none; }
.corners i { position: absolute; width: 13px; height: 13px; border: 0 solid var(--fg); }
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* image reveal (curtain lifts) + parallax image inside */
.reveal { position: relative; overflow: hidden; background: var(--surface); }
.reveal img, .reveal video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); will-change: transform; }
.js .reveal::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: bottom; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
.js .reveal.in::after { transform: scaleY(0); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 4fr; gap: 64px 16px; }
.about-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.indent { display: inline-block; width: 96px; }
.indent-sm { display: inline-block; width: 140px; }
.split-words .w { transition: opacity .3s; }
.js .split-words .w { opacity: .15; }
.js .split-words .w.on { opacity: 1; }
.about-images { grid-column: 2; display: grid; grid-template-columns: 336fr 202fr 336fr; gap: 20px; align-items: end; }
.about-img { display: flex; flex-direction: column; gap: 8px; }
.about-img.tall .reveal { aspect-ratio: 335 / 423; }
.about-img.small .reveal { aspect-ratio: 202 / 211; }
.about-img.wide .reveal { aspect-ratio: 337 / 230; }

/* ---------- Selected work ---------- */
.work-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.work-card { display: grid; grid-template-columns: 700fr 280fr 140fr; gap: 20px; height: 420px; }
.work-img { display: block; height: 100%; }
.work-text { display: flex; flex-direction: column; gap: 4px; }
.work-text .btn { margin-top: 12px; }

/* ---------- Films (front page video) ---------- */
.films-head { display: grid; grid-template-columns: 1fr 4fr; gap: 16px; margin-bottom: 32px; align-items: end; }
.films-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.showreel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: var(--on-photo); }
.showreel video { width: 100%; height: 100%; object-fit: cover; }
.showreel-ui { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 24px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.showreel-ui .title { font-size: 36px; letter-spacing: -1px; line-height: 1; }
.sound-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .5); color: var(--on-photo); cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.sound-btn svg { width: 16px; height: 16px; fill: currentColor; }
.video-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.video-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; }
.video-card .frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.video-card video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.video-card:hover video { transform: scale(1.04); }
.play-chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; background: rgba(0, 0, 0, .55); color: var(--on-photo); font-size: 12px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.play-chip svg { width: 9px; height: 9px; fill: currentColor; }
.video-card .meta { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Services (sticky text, images scroll past) ---------- */
.sticky-wrap { position: relative; }
.sticky-text { position: sticky; top: 42vh; z-index: 2; width: 335px; max-width: 100%; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 8px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.sticky-text .section-tag { color: #c8c8c8; }
.services-stack { display: grid; }
.service { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.service.is-active { opacity: 1; transform: none; }
.scatter { display: grid; grid-template-columns: repeat(10, 1fr); column-gap: 16px; row-gap: 64px; margin-top: 160px; }
.scatter .s-a { grid-column: 1 / 4; grid-row: 1; aspect-ratio: 337 / 421; }
.scatter .s-b { grid-column: 2 / 5; grid-row: 2; aspect-ratio: 337 / 425; }
.scatter .s-c { grid-column: 8 / 11; grid-row: 1; aspect-ratio: 337 / 254; align-self: end; margin-bottom: -200px; }
.scatter .s-d { grid-column: 8 / 10; grid-row: 1; aspect-ratio: 219 / 329; align-self: end; margin-bottom: -320px; }
.scatter .s-e { grid-column: 10 / 11; grid-row: 2; aspect-ratio: 219 / 290; align-self: end; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.process-left { display: flex; flex-direction: column; gap: 20px; max-width: 330px; }
.process-right { display: grid; gap: 40px; }
.process-row { display: grid; grid-template-columns: 1.67fr 1fr; gap: 16px; }
.process-copy { display: flex; flex-direction: column; gap: 20px; }
.process-copy p { line-height: 1.25; }

/* ---------- Pakej ---------- */
.pakej-head { display: grid; grid-template-columns: 1fr 4fr; gap: 16px; margin-bottom: 48px; }
.pakej-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pakej { position: relative; border-top: 1px solid var(--fg); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.pakej .price { font-size: 36px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.pakej ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.pakej li::before { content: "— "; }
.pakej.featured { background: var(--inverse-bg); color: var(--inverse-fg); padding: 20px; border-top-color: var(--inverse-bg); }
.pakej.featured .grey, .pakej.featured ul { color: color-mix(in srgb, var(--inverse-fg) 60%, var(--inverse-bg)); }
.tag-popular { position: absolute; top: 20px; right: 20px; font-size: 12px; background: var(--inverse-fg); color: var(--inverse-bg); padding: 4px 8px; }
.pakej-note { margin-top: 28px; max-width: 60ch; line-height: 1.4; }

/* ---------- CTA + footer ---------- */
.cta { margin: 0; min-height: 720px; padding: 40px; display: flex; background-size: cover; background-position: center; color: var(--on-photo); position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .5)); }
.cta-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cta-heading { align-self: flex-start; max-width: 680px; font-size: 36px; line-height: 1.2; letter-spacing: -1px; }
.footer { padding: 32px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 16px; }
.footer-brand { font-size: 20px; letter-spacing: -0.6px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--fg); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: 140px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 4fr; gap: 16px; align-items: end; }
.page-title { font-size: 96px; line-height: .95; letter-spacing: -4px; font-weight: 400; }
.page-head p { max-width: 46ch; line-height: 1.35; margin-top: 20px; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { height: 36px; padding: 0 14px; border: 1px solid var(--line); background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s, border-color .25s; }
.filter span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.filter[aria-pressed="true"] { background: var(--inverse-bg); color: var(--inverse-fg); border-color: var(--inverse-bg); }
.filter[aria-pressed="true"] span { color: inherit; opacity: .6; }
.masonry { columns: 3 280px; column-gap: 16px; }
.g-item { break-inside: avoid; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.g-item .frame { position: relative; overflow: hidden; background: var(--surface); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img, .g-item:hover video { transform: scale(1.04); }
.g-item .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.g-item[hidden] { display: none; }

/* ---------- Project detail ---------- */
.proj-hero { height: 88vh; min-height: 560px; }
.proj-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.proj-meta div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.proj-story { display: grid; grid-template-columns: 1fr 4fr; gap: 16px; }
.proj-story .large-text + p { margin-top: 24px; max-width: 60ch; line-height: 1.45; color: var(--muted); font-size: 16px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj-grid .reveal { cursor: zoom-in; }
.pg-1 { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.pg-2 { grid-column: 8 / 13; aspect-ratio: 4 / 5.3; }
.pg-3 { grid-column: 1 / 5; aspect-ratio: 3 / 4; }
.pg-4 { grid-column: 5 / 13; aspect-ratio: 16 / 9; align-self: end; }
.pg-5 { grid-column: 3 / 11; aspect-ratio: 16 / 9; }
.quote { display: grid; grid-template-columns: 1fr 4fr; gap: 16px; }
.quote blockquote { margin: 0; }
.quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--muted); }
.next-proj { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.next-proj .big { font-size: 72px; letter-spacing: -3px; line-height: 1; transition: opacity .3s; }
.next-proj:hover .big { opacity: .6; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .94); color: var(--on-photo); display: grid; grid-template-rows: auto 1fr auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-btn { height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .4); background: none; color: var(--on-photo); cursor: pointer; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; overflow: hidden; }
.lb-stage img, .lb-stage video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 8px; }

/* ---------- WhatsApp floating ---------- */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; height: 48px; padding: 0 18px 0 14px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); font-size: 14px; }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero h1 { font-size: 48px; }
  .work-card { height: 340px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .page-title { font-size: 72px; letter-spacing: -3px; }
  .proj-meta { grid-template-columns: repeat(3, 1fr); }
  .nav-menu { gap: 24px; }
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .theme-toggle .t-label { display: none; }
  .nav-menu { position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); color: var(--fg); padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .4s; z-index: -1; }
  .nav-menu .nav-link { font-size: 28px; padding: 10px 0; letter-spacing: -1px; }
  .navbar.open .nav-menu { transform: none; }
  .navbar.open { background: var(--bg); color: var(--fg); }
  .navbar.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .navbar.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .hero { min-height: 560px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-heading { order: -1; }
  .hero h1 { font-size: 40px; letter-spacing: -1.4px; }
  .large-text, .cta-heading, .pakej .price, .showreel-ui .title { font-size: 26px; letter-spacing: -0.8px; }
  .indent { width: 48px; }
  .indent-sm { width: 64px; }
  .section { padding-block: 56px; }
  .corners { inset: 8px; }

  .about-grid, .pakej-head, .process-grid, .films-head, .page-head, .proj-story, .quote { grid-template-columns: 1fr; gap: 20px; }
  .about-images { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .about-img.wide { grid-column: 1 / -1; }

  .work-card { grid-template-columns: 2fr 1fr; height: auto; gap: 10px; }
  .work-img { aspect-ratio: 4 / 3; height: auto; }
  .work-img.portrait { aspect-ratio: auto; }
  .work-text { grid-column: 1 / -1; padding-bottom: 20px; }

  .showreel { aspect-ratio: 4 / 5; }
  .showreel-ui { flex-direction: column; align-items: flex-start; padding: 16px; }
  .video-cards { grid-template-columns: 1fr; }

  .sticky-text { top: 40vh; }
  .scatter { grid-template-columns: repeat(6, 1fr); row-gap: 32px; margin-top: 100px; }
  .scatter .s-a { grid-column: 1 / 5; }
  .scatter .s-b { grid-column: 2 / 6; grid-row: 3; }
  .scatter .s-c, .scatter .s-d { grid-column: 3 / 7; grid-row: 2; margin-bottom: 0; }
  .scatter .s-e { display: none; }

  .process-row { grid-template-columns: 64px 1fr; }
  .pakej-grid { grid-template-columns: 1fr; }
  .cta { min-height: 520px; padding: 24px 16px; }
  .footer { padding: 28px 16px 96px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 52px; height: 52px; justify-content: center; }

  .page-head { padding-top: 100px; }
  .page-title { font-size: 52px; letter-spacing: -2px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .proj-meta { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pg-1, .pg-4, .pg-5 { grid-column: 1 / -1; }
  .pg-2, .pg-3 { grid-column: auto; aspect-ratio: 3 / 4; }
  .next-proj .big { font-size: 44px; letter-spacing: -1.6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal::after { display: none; }
  .js .split-words .w { opacity: 1; }
}
