/* Layout: kartu 1120x610 seukuran shell SSO; garis tipis membagi topbar, kolom kiri isi tab, foto di tengah, kolom kanan daftar/form */
:root {
  --page: #000000;
  --card: #0b0b0b;
  --spot: #232323;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --fg: #f4f4f2;
  --muted: #8f8f8a;
  --accent: #ffffff;
  --on-accent: #0b0b0b;
  --ghost: #ffffff;
  --danger: #f07a6e;
  --success: #5fd38d;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-mode="light"] {
  --page: #e4e2dc;
  --card: #f6f5f1;
  --spot: #e3e0d8;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.24);
  --fg: #121212;
  --muted: #64635d;
  --accent: #121212;
  --on-accent: #ffffff;
  --ghost: #121212;
  --danger: #b3261e;
  --success: #1e7a45;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

.stage-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding-block: 18px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

.card {
  position: relative;
  width: min(1120px, 100%);
  height: min(610px, calc(100vh - 36px));
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  /* clip tidak membuat area scroll, jadi fokus field tidak menggeser isi kartu */
  overflow: clip;
  background:
    radial-gradient(ellipse 40% 62% at 50% 70%, var(--spot), transparent 72%),
    var(--card);
  border: 1px solid var(--line);
  isolation: isolate;
}

/* Teks raksasa di belakang foto */
/* Dua kolom simetris: kedua kata berhenti sedikit di dalam lebar kepala kucing agar menempel di belakangnya */
.ghost {
  position: absolute;
  inset: 84px 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 132px;
  font-weight: 800;
  font-size: clamp(56px, 9.4vw, 110px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ghost);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.ghost span:first-child {
  text-align: right;
}

.photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 88%;
  max-width: none;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

/* Topbar */
.top {
  position: absolute;
  inset: 0 0 auto;
  height: 60px;
  padding-inline: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  z-index: 3;
}

.mark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark span {
  font-weight: 300;
}

.tabs {
  display: flex;
  gap: 24px;
  justify-self: start;
  height: 100%;
}

.tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.tabs a:hover,
.tabs a[aria-selected="true"] {
  color: var(--fg);
}

.tabs a[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang button {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--muted);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--fg);
}

.lang i {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}

.theme-btn:hover {
  border-color: var(--line-strong);
}

svg.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-btn svg {
  width: 15px;
  height: 15px;
}

/* Kolom */
.left {
  position: absolute;
  left: 32px;
  top: 214px;
  bottom: 32px;
  width: min(380px, 34%);
  z-index: 2;
}

.right {
  position: absolute;
  right: 32px;
  top: 214px;
  bottom: 32px;
  width: min(290px, 27%);
  z-index: 2;
}

.panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.right .panel {
  justify-content: flex-end;
  gap: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) {
    animation: rise 0.3s ease-out;
  }

  @keyframes rise {
    from {
      transform: translateY(6px);
      opacity: 0.4;
    }

    to {
      transform: none;
      opacity: 1;
    }
  }
}

.eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.headline {
  margin: 0;
  font-weight: 300;
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.headline span {
  display: block;
}

.headline span + span {
  padding-left: 1.3em;
}

.headline em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.lede {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 36ch;
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.link:hover {
  border-color: var(--accent);
}

/* Alur proses: titik bersambung garis */
.flow {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.flow::before {
  content: "";
  position: absolute;
  left: 4px;
  right: calc(25% - 4px);
  top: 4px;
  height: 1px;
  background: var(--line-strong);
}

.flow li {
  position: relative;
  padding-top: 18px;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-strong);
}

.flow li:last-child::before {
  background: var(--accent);
  border-color: var(--accent);
}

.flow b {
  font-size: 13.5px;
  font-weight: 600;
}

.flow small {
  font-size: 12px;
  color: var(--muted);
}

/* Daftar proyek */
.works {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.works li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.works svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
  margin-top: 1px;
}

.works strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.works small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* Kontak */
.mail {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.mail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mail-addr {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-addr:hover {
  text-decoration: underline;
}

.copy {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.copy:hover {
  color: var(--fg);
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 2px;
}

.field span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 6px 0 8px;
  font-size: 14.5px;
}

.field textarea {
  height: 62px;
  resize: none;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.form .btn {
  justify-self: start;
  margin-top: 4px;
}

.notice {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
}

.notice.is-error {
  border-color: var(--danger);
  color: var(--danger);
}

.notice.is-success {
  border-color: var(--success);
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
}

.field-error {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--danger);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

/* Honeypot disembunyikan tanpa offset agar kartu tidak ikut bergeser */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tablet dan mobile */
@media (max-width: 900px) {
  .stage-page {
    display: block;
    padding: 0;
  }

  .card {
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border: 0;
    border-radius: 0;
    padding-block: 0 44px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background:
      radial-gradient(ellipse 80% 36% at 50% 30%, var(--spot), transparent 72%),
      var(--card);
  }

  .top,
  .left,
  .right,
  .photo {
    position: static;
    transform: none;
    inset: auto;
  }

  .top {
    order: 0;
    height: auto;
    padding-top: 14px;
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }

  .mark {
    grid-column: 1;
    grid-row: 1;
  }

  .tools {
    grid-column: 2;
    grid-row: 1;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 42px;
    gap: 22px;
  }

  .ghost {
    top: 128px;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    font-size: min(18.5vw, 128px);
    line-height: 0.88;
  }

  .ghost span:first-child {
    text-align: left;
  }

  .ghost span:last-child {
    align-self: flex-end;
  }

  .photo {
    order: 1;
    height: auto;
    width: min(100%, 460px);
    align-self: center;
    margin-top: calc(min(18.5vw, 128px) * 1.55 - 28px);
    margin-bottom: -64px;
  }

  .left,
  .right {
    width: 100%;
  }

  .left {
    order: 2;
  }

  .right {
    order: 3;
  }

  .right .panel {
    justify-content: flex-start;
  }

  .headline {
    font-size: min(10.5vw, 60px);
  }

  .flow {
    margin-top: 6px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .works {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 420px) {
  .flow b {
    font-size: 12.5px;
  }

  .flow small {
    font-size: 11px;
  }
}
