/* ==========================================================================
   Diggy — holding site
   ========================================================================== */

:root {
  --paper: #0A0A0A;
  --ink: #F5F4F0;
  --ink-2: #A09D96;
  --hair: rgba(245, 244, 240, .16);
  --pale: #1C1C1E;
  --card: #161618;

  /* Warna primary Diggy */
  --primary: #8B5CF6;
  /* Pink dari logo Diggy, pasangan biru di sparkle */
  --pink: #F469EB;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Roboto", var(--font);
  --pad: clamp(16px, 4vw, 48px);
  --gap-section: clamp(104px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Warna brand anak usaha: dasar (chip & tile logo) + aksen (hover) */
  --idetimur: #0A0A0B;
  --idetimur-accent: #FBBC04;
  --nois: #0A0A0B;
  --nois-accent: linear-gradient(100deg, #ED1C24 0%, #94287C 100%);
  --beforetune: #0B0B0C;
  --beforetune-accent: #00DF82;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

[id] { scroll-margin-top: 24px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.arrow { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }

/* Header ----------------------------------------------------------------- */
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(20px, 3vw, 36px);
}
.top__logo img { width: clamp(96px, 11vw, 156px); }

.top__nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  padding-top: 4px;
  font-size: 16px;
  font-weight: 500;
}
@media (max-width: 599px) {
  .top__nav { font-size: 15px; }
}

/* Garis bawah yang menyapu dari kiri saat hover */
.top__nav a,
.foot__links a,
.foot__contact a,
.foot__bottom a { position: relative; }
.top__nav a::after,
.foot__links a::after,
.foot__bottom a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.top__nav a:hover::after,
.foot__links a:hover::after,
.foot__bottom a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Display: Roboto tipis vs tebal, dipakai tagline & CTA ----------------- */
.display {
  font-family: var(--font-display);
  font-size: min(7.9vw, 108px);   /* lebar total ±11.3em, pas di kontainer */
  font-weight: 100;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.display span { display: block; }
.display b { font-weight: 900; }

/* Intro: tagline, lalu kalimat dengan logo anak usaha di dalamnya -------- */
.intro {
  padding-top: clamp(56px, 9vw, 128px);
}

.tagline { margin-bottom: clamp(40px, 6vw, 88px); }
.tagline span + span { padding-left: 3.45em; }

/* Di HP "Holding" cukup sejajar dengan "Disruption" supaya huruf bisa lebih besar */
@media (max-width: 599px) {
  .display { font-size: min(9.2vw, 48px); }
  .tagline span + span { padding-left: 1.86em; }
}

.statement {
  max-width: 30em;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 2em;
  margin-block: -.15em;   /* chip lebih tinggi dari baris; jaga jarak antarbaris tetap rapat */
  padding: 0 .46em;
  border-radius: .28em;
  vertical-align: middle;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform .4s var(--ease);
}
.chip img { width: auto; height: var(--logo-h, 1.26em); }
.chip:hover { transform: rotate(-3deg) scale(1.05); }

.chip--beforetune { --chip: var(--beforetune); --logo-h: 1.02em; }
.chip--idetimur   { --chip: var(--idetimur); }
.chip--nois       { --chip: var(--nois); --logo-h: 1.36em; }

@media (max-width: 599px) {
  .chip { height: 1.9em; margin-block: .06em; padding: 0 .42em; }
  .chip--beforetune { --logo-h: .96em; }
  .chip--idetimur   { --logo-h: 1.18em; }
  .chip--nois       { --logo-h: 1.28em; }
}

/* Brand ------------------------------------------------------------------ */
.brands { padding-top: var(--gap-section); }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.bar h2 { font-size: inherit; }
.bar p { color: var(--ink-2); font-weight: 500; }

.rows { list-style: none; }
.rows > li { border-bottom: 1px solid var(--ink); }

.row {
  --tile: var(--ink);
  --flood: var(--ink);
  --flood-ink: #fff;
  --flood-muted: rgba(255, 255, 255, .7);

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px 216px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 0 32px;
  min-height: 136px;
  padding: 24px 0;
  transition: color .4s var(--ease);
}

/* Warna brand menyapu seluruh lebar layar saat hover */
.row::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1px;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--flood);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .55s var(--ease);
}

.row__no {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color .4s var(--ease);
}
.row__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.row__logo img { width: auto; height: var(--logo-h, 26px); max-width: 100%; object-fit: contain; }
.row__desc {
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
  transition: color .4s var(--ease);
}
.row__url {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
}

.row--idetimur   { --tile: var(--idetimur); --flood: var(--idetimur-accent); --flood-ink: #111; --flood-muted: rgba(17, 17, 17, .75); --logo-h: 27px; }
.row--nois       { --tile: var(--nois); --flood: var(--nois-accent); --flood-muted: rgba(255, 255, 255, .8); --logo-h: 31px; }
.row--beforetune { --tile: var(--beforetune); --flood: var(--beforetune-accent); --flood-ink: #0B0B0C; --flood-muted: rgba(11, 11, 12, .75); --logo-h: 23px; }

.row:focus-visible { outline-offset: -2px; }

@media (hover: hover) {
  .row:hover::before { clip-path: inset(0); }
  .row:hover { color: var(--flood-ink); }
  .row:hover .row__desc,
  .row:hover .row__no { color: var(--flood-muted); }
  .row:hover .arrow { transform: translate(3px, -3px); }
}

@media (max-width: 1080px) {
  .row { grid-template-columns: 40px 196px minmax(0, 1fr) auto; gap: 0 24px; }
  .row__desc { font-size: 17px; }
}

@media (max-width: 719px) {
  .row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "no logo url"
      "no desc desc";
    align-items: start;
    gap: 0 12px;
    min-height: 0;
    padding: 22px 0 26px;
  }
  .row__no   { grid-area: no; padding-top: 2px; }
  .row__logo { grid-area: logo; justify-self: start; width: 172px; height: 72px; padding: 0 18px; }
  .row__url  { grid-area: url; align-self: center; }
  .row__desc { grid-area: desc; margin-top: 16px; font-size: 16px; }
  .row--idetimur   { --logo-h: 22px; }
  .row--nois       { --logo-h: 26px; }
  .row--beforetune { --logo-h: 19px; }
  .row__url { font-size: 0; gap: 0; }          /* di HP cukup panahnya */
  .row__url .arrow { width: 22px; height: 22px; }
}

/* Nilai: gelembung yang jatuh & bertumpuk (lihat main.js) ---------------- */
.values {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  padding-top: var(--gap-section);
}
@media (min-width: 1000px) {
  .values { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 32px; }
  .values__title { grid-column: 1 / -1; }
  .pit { grid-column: 2; }
}

/* Judul satu baris: ±9.3em lebarnya, jadi ukuran ikut lebar layar */
.values__title {
  font-size: clamp(28px, 6.4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.pit {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  min-height: clamp(340px, 26vw, 360px);
  overflow: hidden;
  list-style: none;
  border-bottom: 1px solid var(--ink);
}
.pit[data-physics] .bubble {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--size);
  aspect-ratio: 1;
  padding: 0 12px;
  border-radius: 50%;
  background: var(--pale);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: filter .25s;
}
.bubble svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}
.bubble:hover { filter: brightness(1.08); }

.bubble--sm { --size: clamp(80px, 22vw, 112px); }
.bubble--md { --size: clamp(96px, 25vw, 132px); }
.bubble--lg { --size: clamp(100px, 28vw, 152px); }

.bubble:nth-child(3n+1) { background: var(--ink); color: var(--paper); }
.bubble:nth-child(3n+2) { background: var(--primary); color: #fff; }
.bubble:nth-child(3n+1):hover { filter: brightness(.9); }

/* Karier ----------------------------------------------------------------- */
.career { padding-top: var(--gap-section); }

.career__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 80px);
  border-radius: clamp(16px, 2vw, 28px);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: #fff;
}

.career__spark {
  position: absolute;
  z-index: -1;
  top: clamp(-120px, -8vw, -40px);
  right: clamp(-120px, -6vw, -40px);
  width: clamp(200px, 32vw, 440px);
  height: clamp(200px, 32vw, 440px);
  fill: var(--pink);
  transition: transform 1.2s var(--ease);
}
.career__card:hover .career__spark { transform: rotate(90deg); }

/* Di HP bintangnya dikecilkan & diberi ruang supaya tidak menimpa judul */
@media (max-width: 599px) {
  .career__card { padding-top: 120px; }
  .career__spark { top: -40px; right: -40px; width: 168px; height: 168px; }
}

.career__title {
  max-width: 12em;
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.career__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 48px;
  margin-top: clamp(40px, 7vw, 112px);
}
.career__foot p {
  max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255, 255, 255, .72);
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn { transition: color .4s var(--ease); }
.btn:hover { color: #fff; }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn:focus-visible { outline-color: #fff; }

/* CTA -------------------------------------------------------------------- */
.cta {
  display: grid;
  padding-block: var(--gap-section) clamp(72px, 9vw, 128px);
}
.cta__title,
.cta__logo { grid-area: 1 / 1; }
/* Kebalikan tagline: baris pertama menjorok, logo Diggy jadi "tanda tangan" di baris kedua */
.cta__title span:first-child { padding-left: 3.45em; }
.cta__logo {
  align-self: end;
  justify-self: end;
  width: clamp(88px, 13vw, 176px);
  margin-bottom: .6%;
}
@media (max-width: 599px) {
  .cta__title span:first-child { padding-left: 1.86em; }
  .cta__logo { grid-area: 2 / 1; margin-top: 24px; }
}

/* Footer ----------------------------------------------------------------- */
.foot { padding-bottom: 28px; }

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 40px clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ink);
}
.foot__brand img { width: clamp(104px, 10vw, 136px); }
.foot__brand p { margin-top: 14px; font-weight: 500; }
.foot__brand b { font-weight: 800; }

.foot__title {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.foot__links { display: grid; justify-items: start; gap: 6px; list-style: none; font-weight: 500; }
.foot__contact { display: grid; justify-items: start; gap: 6px; font-weight: 500; }
.foot__contact a { transition: color .3s var(--ease); }
.foot__contact a:last-child { margin-top: 10px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.foot__contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.social { display: flex; gap: 10px; margin-top: 28px; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.social a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.social svg { width: 20px; height: 20px; }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  color: var(--ink-2);
}
.foot__bottom a { flex: none; }
.foot__bottom a:hover { color: var(--ink); }

@media (max-width: 899px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .foot__grid { grid-template-columns: 1fr; gap: 36px; }
  .foot__bottom { flex-direction: column; }
}

/* Motion ----------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .tagline,
  .statement { animation: rise .9s var(--ease) backwards; }
  .statement { animation-delay: .12s; }
  .statement .chip { animation: pop .7s var(--ease) backwards; }
  .statement .chip:nth-of-type(1) { animation-delay: .45s; }
  .statement .chip:nth-of-type(2) { animation-delay: .55s; }
  .statement .chip:nth-of-type(3) { animation-delay: .65s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(.3em) rotate(-6deg) scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
