/* CAELIS — token desain + komponen bersama (nav, segel CA, tombol, footer).
   Palet: hitam, grafit, abu badai, perak dingin + SATU aksen merah tua. Tanpa emas. */
:root {
  --void: #050507;
  --ink: #0a0b0d;
  --graphite: #121418;
  --slate: #1b1e23;
  --storm: #343840;
  --ash: #5d636c;
  --fog: #9097a1;
  --silver: #c9ced5;
  --frost: #eef0f3;
  --blood: #c8182e;
  --blood-deep: #7e0b19;
  --blood-glow: rgba(222, 28, 52, .55);
  --hair: rgba(201, 206, 213, .13);
  --hair-2: rgba(201, 206, 213, .22);
  --f-display: 'Texturina', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Host Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 4vw, 56px);
  --metal: linear-gradient(180deg, #fcfcfd 0%, #e4e7ea 36%, #b7bcc4 50%, #d9dce1 64%, #c4c8ce 100%);
  --hair-metal: linear-gradient(90deg, rgba(201, 206, 213, 0), rgba(214, 218, 224, .5) 50%, rgba(201, 206, 213, 0));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--silver);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: 'tnum' 1;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--silver); outline-offset: 3px; }
::selection { background: var(--blood-deep); color: var(--frost); }
.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== tombol: sudut terpotong ala batu pahat ===== */
.btn {
  --cut: 7px;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  font: 600 14px/1 var(--f-body); letter-spacing: .02em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn-light { /* plakat perak: logam bertingkat + garis ukir dalam + kilau lewat saat hover */
  position: relative; isolation: isolate; overflow: hidden; color: #0b0b0d;
  background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(0, 0, 0, .28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-light::before { /* garis ukir atas-bawah di dalam plakat */
  content: ''; position: absolute; inset: 4px 12px; z-index: -1; pointer-events: none;
  border-top: 1px solid rgba(11, 11, 13, .16); border-bottom: 1px solid rgba(255, 255, 255, .5);
}
.btn-light::after { /* kilau logam: hanya transform */
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .85) 50%, transparent 80%);
  transform: translateX(-130%) skewX(-18deg); transition: transform 1s var(--ease);
}
.btn-light:hover::after { transform: translateX(240%) skewX(-18deg); }
.btn-light .arr { transition: transform .45s var(--ease); }
.btn-light:hover .arr { transform: translateX(3px); }
.btn-ghost { position: relative; color: var(--frost); padding: 0 6px; clip-path: none; }
.btn-ghost::after { /* garis rambut perak yang tumbuh dari kiri */
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 11px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--silver), rgba(201, 206, 213, 0));
  transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease);
}
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-ghost .arr { transition: transform .4s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(4px); }

/* ===== material bersama: butiran film, garis ornamen, sudut ukir, folio ===== */
body::after { /* butiran film statis (satu lapisan terkomposit, tanpa blend mode) */
  content: ''; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: translateZ(0);
}
.orn { /* pemisah ornamen: garis perak memudar + belah ketupat bertingkat di tengah */
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); color: var(--silver);
}
.orn::before, .orn::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 206, 213, 0), rgba(201, 206, 213, .34)); }
.orn::after { transform: scaleX(-1); }
.orn i { position: relative; width: 9px; height: 9px; flex: none; border: 1px solid rgba(201, 206, 213, .55); transform: rotate(45deg); }
.orn i::after { content: ''; position: absolute; inset: 2px; background: var(--blood); }
.orn b { font: 400 10px/1 var(--f-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--ash); font-weight: 400; }
.carve { position: relative; }
.carve::before { /* sudut ukir: siku perak tipis di empat pojok, ditarik dari tepi */
  content: ''; position: absolute; inset: var(--ci, 8px); z-index: 3; pointer-events: none;
  --cc: rgba(214, 218, 224, .5); --cl: 16px;
  background:
    linear-gradient(var(--cc), var(--cc)) 0 0 / var(--cl) 1px no-repeat,
    linear-gradient(var(--cc), var(--cc)) 0 0 / 1px var(--cl) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 100% 0 / var(--cl) 1px no-repeat,
    linear-gradient(var(--cc), var(--cc)) 100% 0 / 1px var(--cl) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 0 100% / var(--cl) 1px no-repeat,
    linear-gradient(var(--cc), var(--cc)) 0 100% / 1px var(--cl) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 100% 100% / var(--cl) 1px no-repeat,
    linear-gradient(var(--cc), var(--cc)) 100% 100% / 1px var(--cl) no-repeat;
}
.folio { /* nomor bagian bergaya katalog: angka romawi Texturina miring + garis rambut */
  display: inline-flex; align-items: center; gap: 12px; font: italic 400 15px/1 var(--f-display); letter-spacing: .04em; color: var(--silver);
}
.folio::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, rgba(201, 206, 213, .5), rgba(201, 206, 213, 0)); }
.metal-text { /* teks berkilau logam perak (hanya untuk judul besar) */
  background: linear-gradient(180deg, #fdfdfe 0%, #e3e6ea 40%, #9aa1aa 78%, #c8ccd2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cap { /* keterangan gambar bergaya katalog */
  display: flex; align-items: baseline; gap: 12px; font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
.cap b { font: italic 400 13px/1 var(--f-display); letter-spacing: .02em; text-transform: none; color: var(--silver); }
.cap::before { content: ''; flex: none; width: 22px; height: 1px; align-self: center; background: rgba(201, 206, 213, .32); }
.btn .arr { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ===== NAV ===== */
.cn {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  transition: background-color .45s, border-color .45s;
  border-bottom: 1px solid transparent;
}
.cn::before { /* gradasi atas agar teks terbaca di atas video */
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,7,.78), rgba(5,5,7,0)); transition: opacity .45s;
}
.cn.is-solid { background: var(--hair-metal) 0 100% / 100% 1px no-repeat, rgba(7, 7, 9, .97); border-bottom-color: transparent; }
.cn.is-solid::before { opacity: 0; }
.cn-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.cn-brand img { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(200, 24, 46, .35)); }
.cn-brand span { font: 600 15px/1 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: var(--frost); }
.cn-links { position: relative; display: flex; gap: 26px; margin: 0 auto; }
.cn-links a { position: relative; font-size: 13px; letter-spacing: .03em; color: var(--fog); padding: 8px 0; transition: color .3s; }
.cn-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--hair-metal); transform: scaleX(0); transition: transform .5s var(--ease); }
.cn-links a:hover::after { transform: scaleX(1); }
.cn-links a:hover, .cn-links a.is-on, .cn-links a[aria-current] { color: var(--frost); }
.cn-fissure {
  position: absolute; left: 0; bottom: -4px; width: 18px; height: 6px; opacity: 0; pointer-events: none;
  background: var(--blood); filter: drop-shadow(0 0 5px var(--blood-glow));
  clip-path: polygon(0 60%, 22% 30%, 38% 70%, 55% 10%, 70% 65%, 84% 35%, 100% 55%, 100% 75%, 84% 60%, 70% 95%, 55% 40%, 38% 100%, 22% 60%, 0 85%);
  transition: transform .6s var(--ease), opacity .4s;
}
.cn-right { display: flex; align-items: center; gap: 12px; flex: none; }
.cn-socials { display: flex; gap: 4px; }
.cn-soc { display: grid; place-items: center; width: 34px; height: 34px; color: var(--fog); transition: color .3s; }
.cn-soc:hover { color: var(--frost); }
.cn-soc svg { width: 16px; height: 16px; fill: currentColor; }
.cn-chip {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px;
  border: 1px solid var(--hair-2); background: rgba(12, 13, 16, .7);
  font: 400 12px/1 var(--f-mono); color: var(--fog); transition: border-color .3s, color .3s;
}
.cn-chip b { font-weight: 400; color: var(--frost); }
.cn-chip:hover { border-color: rgba(200, 24, 46, .6); color: var(--frost); }
.cn-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5468, var(--blood) 45%, var(--blood-deep));
}
.cn-chip[data-state="open"] .cn-dot { box-shadow: 0 0 0 3px rgba(200, 24, 46, .18); }
.cn-cta {
  --cut: 6px; display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  font: 600 13px/1 var(--f-body); background: var(--metal); color: #0b0b0d; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(0, 0, 0, .28); text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter .3s;
}
.cn-cta:hover { filter: brightness(1.08); }
.cn-burger { display: none; width: 38px; height: 38px; position: relative; }
.cn-burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--frost); transition: transform .35s var(--ease); }
.cn-burger i:first-child { top: 15px; } .cn-burger i:last-child { top: 22px; }
.cn.is-menu .cn-burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.cn.is-menu .cn-burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.cn-sheet {
  position: fixed; inset: 68px 0 auto; background: rgb(7, 7, 9); border-bottom: 1px solid var(--hair);
  display: grid; padding: 10px var(--pad) 22px;
}
.cn-sheet[hidden] { display: none; }
.cn-sheet a { padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--silver); font-size: 17px; }
.cn-sheet .cn-sheet-cta { border: 0; margin-top: 14px; color: var(--frost); }
.cn-sheet-soc { display: flex; gap: 6px; margin-top: 6px; }
.cn-sheet-soc a { border: 0; padding: 0; }

@media (max-width: 1180px) { .cn-links { gap: 18px; } .cn-links a:nth-child(4) { display: none; } }
@media (max-width: 980px) {
  .cn-links, .cn-socials { display: none; }
  .cn-right { margin-left: auto; }
  .cn-burger { display: block; }
}
@media (max-width: 560px) {
  .cn { height: 60px; gap: 10px; }
  .cn-sheet { top: 60px; }
  .cn-cta { display: none; }
  .cn-brand span { display: none; }
  .cn-brand img { width: 30px; }
  .cn-chip { height: 32px; font-size: 11px; padding: 0 10px 0 9px; }
}

/* ===== SEGEL CA ===== */
.seal {
  --wax: 128px;
  position: relative; display: grid; grid-template-columns: calc(var(--wax) - 46px) 1fr; gap: 16px;
  padding: 18px 20px 18px 0; margin-left: 46px; isolation: isolate;
}
.seal::before { /* panel surat bersudut lipat berbingkai ganda; clip-path di lapisan latar agar segel lilin tidak terpotong */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(200, 24, 46, .07), transparent 55%), linear-gradient(180deg, rgba(25, 27, 32, .95), rgba(8, 9, 11, .96));
  box-shadow: inset 0 0 0 1px rgba(201, 206, 213, .26), inset 0 0 0 5px rgba(8, 9, 11, .9), inset 0 0 0 6px rgba(201, 206, 213, .08), inset 0 1px 0 6px rgba(255, 255, 255, .02);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.seal::after { /* garis lipatan surat di sudut */
  content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px;
  background: linear-gradient(225deg, transparent 50%, rgba(201, 206, 213, .25) 50%, rgba(201, 206, 213, .05));
}
.seal-wax { position: relative; width: var(--wax); height: var(--wax); margin: -6px 0 0 -58px; align-self: start; }
.seal-wax img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.seal-wax .w-half { opacity: 0; transition: transform 1.1s var(--ease), opacity .2s; }
.seal-wax .w-light {
  position: absolute; left: 50%; top: 8%; bottom: 8%; width: 3px; margin-left: -1.5px; opacity: 0;
  background: linear-gradient(180deg, transparent, #ff4a5e 20%, #fff 50%, #ff4a5e 80%, transparent);
  box-shadow: 0 0 18px 4px var(--blood-glow); transform: scaleY(.2);
  transition: opacity .6s, transform 1s var(--ease);
}
.seal[data-state="open"] .w-whole { opacity: 0; }
.seal[data-state="open"] .w-half { opacity: 1; }
.seal[data-state="open"] .w-l { transform: translate(-7px, 2px) rotate(-6deg); }
.seal[data-state="open"] .w-r { transform: translate(7px, -1px) rotate(5deg); }
.seal[data-state="open"] .w-light { opacity: .9; transform: scaleY(1); }
.seal.is-breaking .w-l { animation: wl 1.4s var(--ease) both; }
.seal.is-breaking .w-r { animation: wr 1.4s var(--ease) both; }
.seal.is-breaking .w-light { animation: wli 1.6s var(--ease) both; }
@keyframes wl { 0%, 25% { transform: none; } 32% { transform: translate(-1px, 0) rotate(-1deg); } 100% { transform: translate(-7px, 2px) rotate(-6deg); } }
@keyframes wr { 0%, 25% { transform: none; } 32% { transform: translate(1px, 0) rotate(1deg); } 100% { transform: translate(7px, -1px) rotate(5deg); } }
@keyframes wli { 0%, 28% { opacity: 0; transform: scaleY(.1); } 45% { opacity: 1; } 100% { opacity: .9; transform: scaleY(1); } }

.seal-body { min-width: 0; display: grid; gap: 8px; }
.seal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.seal-k { font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.seal-state {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 7px; background: rgba(201, 206, 213, .08); color: var(--silver);
}
.seal[data-state="open"] .seal-state { background: rgba(200, 24, 46, .16); color: #ff8492; }
.seal-line { display: grid; gap: 4px; text-align: left; cursor: default; padding: 2px 0; min-width: 0; }
.seal[data-state="open"] .seal-line { cursor: copy; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.sl-main { font: 500 22px/1.15 var(--f-body); color: var(--frost); letter-spacing: -.01em; }
.sl-count { font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sl-sub { font-size: 12.5px; color: var(--fog); }
.sl-addr { font: 400 13px/1.35 var(--f-mono); word-break: break-all; color: var(--frost); }
.sl-short { display: none; }
.sl-copy { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--f-mono); color: var(--fog); text-transform: uppercase; letter-spacing: .08em; }
.sl-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.seal-line:hover .sl-copy, .seal.is-copied .sl-copy { color: var(--frost); }
.seal-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ash); }
.seal-acts { display: flex; gap: 10px; margin-top: 4px; }
.seal-buy, .seal-chart {
  --cut: 6px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  font: 600 13px/1 var(--f-body);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.seal-buy { background: var(--metal); color: #0b0b0d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(0, 0, 0, .28); }
.seal-buy[aria-disabled="true"] {
  background: rgba(200, 24, 46, .07); color: var(--silver); cursor: not-allowed;
  box-shadow: inset 0 0 0 1px rgba(200, 24, 46, .75);
}
.seal-buy-sub { font: 400 10.5px/1 var(--f-mono); color: #ff8492; letter-spacing: .06em; text-transform: uppercase; }
.seal-buy-sub:empty { display: none; }
.seal-chart { box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--frost); }
.seal-chart[hidden] { display: none; }
@media (max-width: 560px) {
  .seal { --wax: 92px; margin-left: 30px; padding: 14px 14px 14px 0; gap: 10px; grid-template-columns: calc(var(--wax) - 34px) 1fr; }
  .seal-wax { margin-left: -40px; }
  .sl-main { font-size: 18px; } .sl-count { font-size: 24px; }
  .sl-full { display: none; } .sl-short { display: inline; font-size: 14px; }
  .seal-note { font-size: 12px; }
  .seal-buy, .seal-chart { height: 38px; padding: 0 13px; }
}

/* ===== FOOTER ===== */
.cf { position: relative; padding: 64px var(--pad) 40px; background: radial-gradient(70% 120% at 50% 0%, rgba(120, 128, 140, .06), transparent 60%), var(--void); }
.cf::before { /* garis atas: perak memudar dengan belah ketupat merah di tengah */
  content: ''; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: var(--hair-metal);
}
.cf::after { content: ''; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: var(--void); border: 1px solid rgba(201, 206, 213, .5); box-shadow: inset 0 0 0 2px var(--void), inset 0 0 0 5px var(--blood); }
.cf-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; max-width: 1320px; margin: 0 auto; }
.cf-brand { display: flex; align-items: center; gap: 12px; }
.cf-brand img { width: 44px; }
.cf-brand span { font: 600 18px/1 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: var(--frost); }
.cf p { margin: 14px 0 0; font-size: 13px; color: var(--ash); line-height: 1.6; }
.cf h4 { margin: 0 0 16px; font: 400 10.5px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--fog); }
.cf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.cf ul a { color: var(--silver); transition: color .3s; } .cf ul a:hover { color: var(--frost); }
.cf-soc { display: inline-flex; align-items: center; gap: 8px; }
.cf-soc svg { width: 14px; height: 14px; fill: currentColor; }
.cf-legal { max-width: 1320px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; font-size: 12px; color: var(--ash); }
.cf-legal strong { color: var(--silver); font-weight: 500; }
@media (max-width: 900px) { .cf-grid { grid-template-columns: 1fr 1fr; } .cf-grid > :first-child { grid-column: 1 / -1; } }
