/* Ranggon Production — 2026 redesign, after the "Compro Ranggon Pro 2026" deck.
   Motif: indigo-washed photos, golden + royal-blue diagonal shards, Montserrat caps. */

:root {
  --yellow: #f2b600;
  --yellow-deep: #c99400;
  --blue: #2b2bb0;
  --navy: #1a1966;
  --ink: #0f0f2e;
  --paper: #f3f3f7;
  --white: #fff;
  --text-dark: #1d1d3a;
  --muted-dark: #55557a;
  --muted-light: rgba(255, 255, 255, .78);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--text-dark); background: var(--ink); -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

/* ── type ─────────────────────────────────────────────── */
.display {
  font: 900 clamp(2.6rem, 7.6vw, 6.4rem)/.93 var(--head);
  text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
}
.display--md { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
.eyebrow { font: 800 .82rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: .9rem; }
.eyebrow--blue { color: var(--blue); }
.label { display: block; font: 800 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 1.6rem 0 .6rem; }
.lead { font-size: 1.15rem; font-weight: 600; }

/* ── sections ─────────────────────────────────────────── */
section { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 150px); }
.light { background: var(--paper); color: var(--text-dark); }
.dark { background: var(--navy) center / cover no-repeat; color: var(--white); }
/* indigo wash over the photo, as in every deck page */
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, rgba(43, 43, 176, .72), rgba(26, 25, 102, .86) 55%, rgba(15, 15, 46, .94));
}

/* ── diagonal shards ──────────────────────────────────── */
.shard { position: absolute; left: 0; right: 0; height: clamp(120px, 22vw, 300px); z-index: 1; pointer-events: none; }
.shard::before, .shard::after { content: ""; position: absolute; inset: 0; }
.shard--top { top: 0; }
.shard--top::before { background: var(--blue); clip-path: polygon(0 0, 72% 0, 25% 100%, 0 70%); }
.shard--top::after { background: linear-gradient(115deg, var(--yellow-deep), var(--yellow) 60%); clip-path: polygon(0 0, 66% 0, 23% 90%, 0 58%); }
.shard--right { transform: scaleX(-1); }
.shard--bottom { bottom: -1px; height: clamp(70px, 12vw, 170px); }
.shard--bottom::before { background: var(--blue); clip-path: polygon(30% 100%, 100% 12%, 100% 100%); }
.shard--bottom::after { background: linear-gradient(90deg, var(--yellow-deep), var(--yellow)); clip-path: polygon(0 100%, 100% 0, 100% 16%, 24% 100%); }
/* dark sections keep content clear of the top shard */
.dark > .wrap { padding-top: clamp(40px, 9vw, 120px); }

/* ── buttons ──────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font: 800 .85rem var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .75rem; }
@media (hover: hover) {
  .btn--yellow:hover { background: var(--white); }
  .btn--ghost:hover { background: var(--white); color: var(--navy); }
}

/* ── header ───────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  background: rgba(15, 15, 46, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand { background: var(--white); padding: 6px 18px 6px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--white); text-decoration: none; font: 600 .82rem var(--head); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--yellow); }
.menu { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .site-header > .btn { margin-left: auto; }
  .menu { display: block; }
  .menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .25s var(--ease), opacity .2s; }
  .menu summary span { position: relative; }
  .menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
  .menu summary span::before { top: -7px; }
  .menu summary span::after { top: 7px; }
  .menu[open] summary span { background: transparent; }
  .menu[open] summary span::before { transform: translateY(7px) rotate(45deg); }
  .menu[open] summary span::after { transform: translateY(-7px) rotate(-45deg); }
  .menu nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--ink); padding: 8px var(--gutter) 20px; display: grid; border-bottom: 4px solid var(--yellow); }
  .menu nav a { color: var(--white); text-decoration: none; font: 800 1.1rem var(--head); text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* ── hero ─────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 140px 160px; }
.hero__inner { padding-top: 40px; }
.hero .display { font-size: clamp(3rem, 10vw, 8rem); }
.hero__tag { font: italic 800 clamp(1.1rem, 2.4vw, 1.6rem) var(--head); text-transform: uppercase; color: var(--yellow); margin-top: 1rem; letter-spacing: .04em; }
.hero__lines { margin-top: 1rem; color: var(--muted-light); max-width: 62ch; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: 3.2rem; }
.stats dt { font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--head); color: var(--yellow); }
.stats dd { font: 600 .78rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-light); margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .shard--top::after, .hero .shard--top::before { animation: shard-in 1s var(--ease) both; }
  .hero .shard--top::after { animation-delay: .1s; }
  .hero .shard--bottom::after, .hero .shard--bottom::before { animation: shard-up 1.1s var(--ease) .25s both; }
  .hero__inner > * { animation: rise .8s var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: .1s; }
  .hero__inner > :nth-child(3) { animation-delay: .2s; }
  .hero__inner > :nth-child(n+4) { animation-delay: .3s; }
}
@keyframes shard-in { from { transform: translate(-30%, -30%); } }
@keyframes shard-up { from { transform: translateY(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ── about ────────────────────────────────────────────── */
.about__grid { display: grid; gap: 32px 64px; grid-template-columns: 1fr 1fr; align-items: start; }
.about__text { display: grid; gap: 1rem; color: var(--muted-dark); }
.about__text strong { color: var(--navy); }
.about__text .lead { color: var(--text-dark); }
.about__photo { grid-column: 1 / -1; position: relative; margin-top: 24px; }
.about__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 78%, 88% 100%, 0 100%); }
.about__photo::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22%; aspect-ratio: 1; background: var(--yellow); clip-path: polygon(100% 0, 100% 100%, 0 100%); transform: translate(0, 0); }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo img { aspect-ratio: 4 / 3; }
}

/* ── visi misi ────────────────────────────────────────── */
.vm__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 48px; }
.vm__visi { border-left: 6px solid var(--yellow); padding: 4px 0 4px 28px; }
.vm__visi .label { margin-top: 0; }
.vm__visi p { font: 800 clamp(1.25rem, 2.2vw, 1.7rem)/1.35 var(--head); }
.vm__grid > div > .label { margin-top: 0; }
.numbered { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 2px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); color: var(--muted-light); }
.numbered li::before { content: "0" counter(n); font: 900 1.1rem var(--head); color: var(--yellow); }
@media (max-width: 760px) { .vm__grid { grid-template-columns: 1fr; } }

/* ── divisi intro ─────────────────────────────────────── */
.divintro { background: var(--paper); padding-top: 0; }
.divintro__band {
  background: linear-gradient(110deg, var(--yellow-deep), var(--yellow) 45%);
  padding: clamp(90px, 13vw, 170px) var(--gutter) clamp(110px, 15vw, 200px);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  text-align: center;
}
.divintro__title {
  font: 900 clamp(2rem, 5.6vw, 4.8rem)/.95 var(--head); text-transform: uppercase; color: var(--white);
  transform: rotate(-6deg); text-shadow: 0 4px 0 var(--blue);
}
.divintro__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; }
.divcard {
  background: var(--white); text-decoration: none; padding: 28px 20px 22px; display: grid; gap: 6px; justify-items: start;
  box-shadow: 0 18px 40px -20px rgba(26, 25, 102, .45); border-bottom: 5px solid var(--blue);
  transition: transform .3s var(--ease), border-color .3s;
}
.divcard img { height: 70px; width: auto; margin-bottom: 12px; }
.divcard span { font: 900 .85rem var(--head); color: var(--yellow-deep); }
.divcard b { font: 800 1rem/1.25 var(--head); text-transform: uppercase; color: var(--navy); }
@media (hover: hover) { .divcard:hover { transform: translateY(-6px); border-color: var(--yellow); } }
@media (max-width: 900px) { .divintro__cards { grid-template-columns: 1fr 1fr; } }

/* ── division ─────────────────────────────────────────── */
.division { padding-bottom: 0; }
.division__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.division--flip .division__text { order: 2; }
.division__logo { height: 64px; width: auto; background: var(--white); padding: 8px 16px; margin-bottom: 24px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.division__text > p:not(.eyebrow):not(.value) { color: var(--muted-light); margin-top: 1.2rem; max-width: 54ch; }
.division .display--md { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.ticks { list-style: none; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--yellow); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.value { margin-top: 1.6rem; padding: 16px 20px; background: rgba(255, 255, 255, .08); border-left: 4px solid var(--yellow); font-size: .95rem; color: var(--muted-light); }
.value b { color: var(--yellow); }

/* diamond collage — the deck's rotated photo mosaic */
.collage { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.collage__grid { position: absolute; inset: -21%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px; transform: rotate(45deg); }
.collage__grid a { overflow: hidden; display: block; position: relative; }
.collage__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: rotate(-45deg) scale(1.45); transition: transform .6s var(--ease); }
@media (hover: hover) { .collage__grid a:hover img { transform: rotate(-45deg) scale(1.62); } }
.collage::after { content: ""; position: absolute; left: 0; top: 0; width: 22%; aspect-ratio: 1; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }

/* film strip of remaining work */
.strip {
  position: relative; z-index: 2; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity;
  margin-top: clamp(56px, 8vw, 100px); padding-inline: var(--gutter); background: #000;
  scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; overscroll-behavior-x: contain;
}
.strip a { flex: none; scroll-snap-align: start; margin-right: -22px; }
.strip img { height: clamp(200px, 26vw, 300px); width: auto; max-width: none; object-fit: cover; aspect-ratio: 3 / 4; clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%); transition: filter .3s; }
.strip a:nth-child(3n+2) img { aspect-ratio: 4 / 3; }
@media (hover: hover) { .strip img { filter: saturate(.7) brightness(.85); } .strip a:hover img { filter: none; } }

@media (max-width: 860px) {
  .division__grid { grid-template-columns: 1fr; }
  .division--flip .division__text { order: 0; }
  .collage { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) { .twocol { grid-template-columns: 1fr; } }

/* ── keunggulan ───────────────────────────────────────── */
.why__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.why__vertical {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 900 clamp(2.6rem, 5.4vw, 5rem)/.95 var(--head); text-transform: uppercase; color: var(--navy);
  -webkit-text-stroke: 0; position: sticky; top: 100px;
}
.why__list { list-style: none; padding: 0; counter-reset: n; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.why__list li {
  counter-increment: n; background: var(--white); padding: 28px 24px; color: var(--muted-dark); font-size: .95rem;
  border-top: 5px solid var(--yellow); box-shadow: 0 16px 36px -24px rgba(26, 25, 102, .5);
}
.why__list li::before { content: "0" counter(n); display: block; font: 900 2rem/1 var(--head); color: var(--blue); margin-bottom: 14px; }
.why__list b { display: block; font: 800 1.05rem var(--head); text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
@media (max-width: 760px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__vertical { writing-mode: horizontal-tb; transform: none; position: static; font-size: clamp(2.4rem, 12vw, 3.6rem); }
}

/* ── special projects ─────────────────────────────────── */
.projects { background: #d7dbe3 linear-gradient(180deg, #e9ebf0, #c9ced9); padding-top: 0; }
.tilt-band {
  background: linear-gradient(110deg, var(--yellow-deep), var(--yellow) 50%);
  padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(90px, 12vw, 160px);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); box-shadow: 0 0 0 0 var(--blue);
  position: relative;
}
.tilt-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--blue); clip-path: polygon(0 100%, 100% 0, 100% 22%, 0 100%); }
.tilt-band > * { max-width: 1200px; margin-inline: auto; transform: rotate(-5deg); transform-origin: left; }
.tilt-band__title { font: 900 clamp(2.2rem, 6.5vw, 5.4rem)/.95 var(--head); text-transform: uppercase; color: var(--white); text-shadow: 0 4px 0 var(--blue); }
.project-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 28px 20px; margin-top: 24px; }
.project-cards li {
  background: var(--white); padding: 26px 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: center;
  font: 600 .85rem/1.35 var(--head); color: var(--muted-dark); text-transform: uppercase; letter-spacing: .04em;
  transform: rotate(-7deg); box-shadow: 0 20px 30px -18px rgba(15, 15, 46, .55);
  transition: transform .35s var(--ease);
}
.project-cards li:nth-child(even) { transform: rotate(-4deg) translateY(10px); }
.project-cards b { font: 900 1.15rem/1.15 var(--head); color: var(--blue); margin-bottom: 8px; }
@media (hover: hover) { .project-cards li:hover { transform: rotate(0) scale(1.04); } }

/* ── clients ──────────────────────────────────────────── */
.clients { background: var(--white); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 48px; }
.logos img { width: 100%; height: 88px; object-fit: contain; padding: 14px; background: var(--paper); transition: background-color .2s; }
@media (hover: hover) { .logos img:hover { background: #fff6d6; } }

/* ── contact ──────────────────────────────────────────── */
.contact .display { font-size: clamp(2.4rem, 6vw, 5rem); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
.contact__list { display: grid; gap: 18px; background: rgba(15, 15, 46, .55); padding: 32px; border-top: 5px solid var(--yellow); backdrop-filter: blur(6px); }
.contact__list dt { font: 800 .75rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.contact__list dd { color: var(--muted-light); font-size: .95rem; }
.contact__list a { text-decoration: none; color: var(--white); overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--yellow); }
.ig { display: grid; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ── footer ───────────────────────────────────────────── */
.footer { background: var(--white); padding: 48px 0 32px; border-top: 6px solid var(--yellow); }
.footer__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px; }
.footer__logos img { height: 48px; width: auto; }
.footer__motto { font: italic 800 1rem var(--head); color: var(--navy); }
.footer__copy { font-size: .8rem; color: var(--muted-dark); }

/* ── floating whatsapp ────────────────────────────────── */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.wa-float:active { transform: scale(.94); }

/* ── lightbox ─────────────────────────────────────────── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 10, 30, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 82vh; object-fit: contain; }
.lightbox__cap { position: fixed; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--white); font: 600 .9rem var(--head); padding-inline: 70px; }
.lightbox__btn { position: fixed; border: 0; background: var(--yellow); color: var(--navy); width: 48px; height: 48px; font: 900 1.8rem/1 var(--head); cursor: pointer; display: grid; place-items: center; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] img { animation: rise .35s var(--ease); } }

/* ── scroll reveal (only when JS runs and motion is welcome) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .project-cards li.reveal.in { transform: rotate(-7deg); }
  .js .project-cards li.reveal.in:nth-child(even) { transform: rotate(-4deg) translateY(10px); }
  .js .project-cards li.reveal.in:hover { transform: rotate(0) scale(1.04); }
}
