:root {
  --bg: #131210;
  --surface: #1a1815;
  --line: #2f2b26;
  --line-2: #3a352f;
  --ink: #f4efe7;
  --ink-2: #cfc6b8;
  --body: #b9b1a5;
  --muted: #a39b8f;
  --dim: #8f877c;
  --ghost: #3a332b;
  --accent: #e3c27a;
  --accent-ink: #1a160f;
  --font: "Onest", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* buttons */
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px;
  border-radius: 10px; font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-line:hover { background: #221f1b; border-color: #6d665c; }
.btn:active, .btn-line:active { transform: translateY(1px); }

/* nav */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; }
.nav__links a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav .btn-line { justify-self: end; height: 44px; padding: 0 20px; font-size: 14px; }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; height: 68px; }
  .nav__links { display: none; }
  .nav__logo img { height: 44px; }
}

/* hero */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; padding-top: 40px; }
.intro h1 { margin: 0; font-weight: 500; font-size: clamp(31px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.intro h1 span { display: block; color: var(--dim); }
.intro__side { display: grid; gap: 12px; padding-bottom: 6px; }
.intro__side p { margin: 0; color: var(--body); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; } }

.stage { position: relative; margin-top: 40px; padding: 60px 0 40px; perspective: 1600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage.is-ribbon { cursor: grab; }
.stage.is-dragging { cursor: grabbing; }
.giant { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; overflow: hidden; }
.giant span { font-weight: 500; font-size: clamp(76px, 11.5vw, 168px); letter-spacing: -0.04em; line-height: 1; color: var(--ghost); white-space: nowrap; opacity: 0; }
.js .stage.is-armed .giant span { opacity: 1; }
.grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; transform-style: preserve-3d; }
.card { margin: 0; display: grid; gap: 12px; transform-style: preserve-3d; backface-visibility: hidden; }
.card__shot { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.card__shot img, .card__shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.card__shot img { transition: transform .42s var(--ease); }
.card__shot video { opacity: 0; transition: opacity .3s ease; }
.card__shot video.is-on { opacity: 1; }
.is-grid .card__shot:hover img { transform: scale(1.04); }
.card__tc { position: absolute; left: 8px; bottom: 8px; padding: 3px 6px; border-radius: 4px; background: rgba(19, 18, 16, .8); font: 11px var(--mono); color: #e8e2d8; }
.card figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.card figcaption b { font-weight: 500; }
.card figcaption .mono { font-size: 11px; margin-right: 6px; }
.card figcaption > span:last-child { color: var(--muted); }
.js .stage.is-armed .card figcaption { opacity: 0; }
.stage.is-grid .card figcaption { opacity: 1; transition: opacity .5s ease; }
.stage__hint { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; font-size: 14px; color: var(--muted); opacity: 0; transition: opacity .3s ease; }
.stage.is-ribbon .stage__hint { opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 96px; }
.actions [data-when] { display: none; }
.stage.is-ribbon ~ .actions [data-when="ribbon"], .stage.is-grid ~ .actions [data-when="grid"] { display: inline-flex; }
@media (max-width: 760px) {
  .stage { perspective: 900px; padding: 24px 0 36px; }
  .giant { flex-direction: column; padding: 40px 0; }
  .giant span { font-size: 76px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { gap: 8px; }
  .card__shot { border-radius: 12px; }
  .card figcaption { flex-direction: column; gap: 0; font-size: 12px; line-height: 1.3; }
  .card figcaption b { font-size: 13px; }
  .actions { flex-direction: column; }
  .actions .btn, .actions .btn-line { width: 100%; }
}

.expand { position: fixed; z-index: 50; object-fit: cover; border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transition: left .7s cubic-bezier(.7, 0, .2, 1), top .7s cubic-bezier(.7, 0, .2, 1), width .7s cubic-bezier(.7, 0, .2, 1), height .7s cubic-bezier(.7, 0, .2, 1), border-radius .7s ease; }

/* sections */
.section { padding: 96px 0; border-top: 1px solid #221f1b; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.section__head h2 { margin: 8px 0 0; font-weight: 500; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.section__head p { margin: 0; max-width: 340px; color: var(--muted); }
@media (max-width: 760px) { .section { padding: 64px 0; } .section__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; } }

/* doors */
.doors { display: flex; gap: 20px; min-height: 620px; }
.door { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: flex-grow .7s cubic-bezier(.7, 0, .2, 1), border-color .3s ease; }
.door.is-open { flex-grow: 3; border-color: #6d665c; }
.door__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transition: opacity .6s ease; }
.door.is-open .door__bg { opacity: .55; }
.doors.has-open .door:not(.is-open) .door__bg { opacity: .18; }
.door__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 18, 16, .35) 0%, rgba(19, 18, 16, .82) 55%, rgba(19, 18, 16, .96) 100%); }
.door__hit { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.door__in { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 36px; pointer-events: none; }
.door__top { display: flex; justify-content: space-between; align-items: center; }
.door__top .mono { color: var(--body); font-size: 13px; }
.door__hint { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.door h3 { margin: 0; font-weight: 500; font-size: 44px; line-height: 1.04; letter-spacing: -0.03em; transition: font-size .5s ease; }
.door.is-open h3 { font-size: 56px; }
.doors.has-open .door:not(.is-open) h3 { font-size: 30px; }
.door__teaser { margin: 12px 0 0; max-width: 360px; color: var(--body); }
.door.is-open .door__teaser, .doors.has-open .door:not(.is-open) .door__teaser { display: none; }
.door__body { display: none; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end; margin-top: 22px; pointer-events: auto; }
.door.is-open .door__body { display: grid; }
.door__list { margin: 0; }
.door__list div { padding: 14px 0; border-top: 1px solid var(--line); animation: rise .55s var(--ease) both; }
.door__list dt { font-weight: 500; font-size: 17px; }
.door__list dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.door__list .btn { margin-top: 18px; animation: rise .55s var(--ease) .3s both; }
.door__works { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; }
.door__works figure { margin: 0; display: grid; gap: 6px; animation: rise .55s var(--ease) both; }
.door__works img { width: 100%; height: var(--h, 120px); object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); }
.door__works figcaption { font-size: 12px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .doors { flex-direction: column; min-height: 0; gap: 16px; }
  .door { flex: none; border-radius: 18px; }
  .door__in { padding: 18px; min-height: 190px; }
  .door h3, .door.is-open h3, .doors.has-open .door:not(.is-open) h3 { font-size: 28px; }
  .door__teaser, .doors.has-open .door:not(.is-open) .door__teaser { display: block; font-size: 14px; }
  .door.is-open .door__teaser { display: none; }
  .door__body { grid-template-columns: 1fr; gap: 16px; }
  .door__works { --cols: 2 !important; }
  .door__works img { height: 92px; }
  .door__list .btn { width: 100%; }
}

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; padding: 120px 0; }
.contact h2 { margin: 8px 0 0; font-weight: 500; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.contact h2 span { display: block; color: var(--dim); }
.contact p { margin: 0 0 20px; font-size: 17px; color: var(--body); }
.contact__row { display: flex; align-items: center; gap: 16px; }
.contact__row .mono { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; gap: 20px; padding: 64px 0 56px; }
  .contact__row { flex-direction: column; align-items: stretch; text-align: center; }
  .contact__row .btn { width: 100%; height: 54px; }
}

/* footer */
.foot { border-top: 1px solid #2a2622; padding: 32px 0 36px; font-size: 14px; color: var(--muted); }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.foot__top img { height: 60px; width: auto; }
.foot__links { display: flex; gap: 28px; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__info { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; line-height: 1.5; }
.foot__info a { color: var(--ink-2); }
@media (max-width: 760px) { .foot__info { justify-items: start; text-align: left; } .foot__links { gap: 18px; } .foot__top img { height: 52px; } }

/* case study */
.kes-nav { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.kes-nav a.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.kes-nav a.back:hover { color: var(--ink); }
.kes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding-top: 8px; }
.kes h1 { margin: 10px 0 8px; font-weight: 500; font-size: clamp(48px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.kes__lede { margin: 0 0 24px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; color: var(--ink-2); }
.kes__body { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--body); max-width: 440px; }
.kes__meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.kes__meta dt { font-size: 13px; color: var(--muted); }
.kes__meta dd { margin: 4px 0 0; }
.kes__media { margin: 0; display: grid; gap: 12px; }
.kes__media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.kes__media figcaption { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.proses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 48px 0 96px; }
.proses > div { min-height: 190px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.proses p { margin: 0; color: var(--ink-2); }
.proses .shot { position: relative; padding: 0; overflow: hidden; }
.proses .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.proses .shot span { position: absolute; left: 14px; bottom: 14px; padding: 4px 8px; border-radius: 6px; background: rgba(19, 18, 16, .8); font: 11px var(--mono); color: #e8e2d8; }
.proses .btn-line { margin-top: auto; align-self: flex-start; height: 44px; font-size: 14px; }
.reveal { animation: rise .7s var(--ease) both; }
@media (max-width: 760px) {
  .kes { grid-template-columns: 1fr; gap: 24px; }
  .kes__media { order: -1; }
  .proses { grid-template-columns: 1fr; padding: 32px 0 64px; }
  .proses .shot { min-height: 170px; }
  .proses .btn-line { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
