/* ==========================================================================
   Variabel brand: ganti bagian ini saja untuk menyesuaikan warna & font.
   Font ada di folder fonts/ (huruf Latin saja, ketebalan sesuai @font-face di bawah).
   Kalau font diganti, ubah juga <link rel="preload"> di index.html.
   ========================================================================== */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Font cadangan selebar font asli, supaya teks tidak pindah baris saat font selesai dimuat.
   Angkanya hanya cocok untuk font di atas: kalau font diganti, hapus blok ini. */
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Bold"), local("Roboto Bold");
  font-weight: 700;
  size-adjust: 68.08%;
  ascent-override: 146.88%;
  descent-override: 29.38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial"), local("Roboto");
  font-weight: 400;
  size-adjust: 96.24%;
  ascent-override: 103.90%;
  descent-override: 20.78%;
  line-gap-override: 0%;
}

:root {
  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #f3f1ea;
  --ink: #121212;
  --muted: #55524a;
  --accent: #ffc400;
  --deep: #121212;
  --deep-ink: #f3f1ea;

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.top :focus-visible, .hero-note :focus-visible, .cta :focus-visible { outline-color: var(--accent); }
section[id] { scroll-margin-top: 1rem; }
h1, h2, h3, .brand, .btn, .label, .services, .num { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }

/* ---------- Tombol: sudut tajam ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .6rem 1.4rem;
  border: 2px solid transparent;
  font-size: 1.125rem; line-height: 1.1; letter-spacing: .04em; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.btn-small { min-height: 44px; padding: .45rem 1rem; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--deep-ink); }
.btn-line { border-color: var(--deep-ink); color: var(--deep-ink); }
.btn-line:hover { background: var(--deep-ink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--deep-ink); }
.btn-ink:hover { background: var(--accent); color: var(--ink); }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter); background: var(--deep); color: var(--deep-ink);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.5rem; line-height: 1; letter-spacing: .02em; text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; background: var(--accent); color: var(--ink); }

/* ---------- 1. Hero ---------- */
.hero-band { padding: clamp(1.75rem, 5vw, 3.5rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem); background: var(--accent); }
.label { font-size: 1.125rem; letter-spacing: .08em; }
.hero h1 { margin-top: .4rem; max-width: 15ch; font-size: clamp(3.75rem, 17vw, 11rem); line-height: .9; letter-spacing: -.005em; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-note { padding: 1.5rem var(--gutter); background: var(--deep); color: var(--deep-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.services {
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.25rem;
  padding: .85rem var(--gutter); border-block: 2px solid var(--ink);
  font-size: 1.25rem; letter-spacing: .05em;
}

/* ---------- 2. Proyek: mozaik foto ---------- */
.work { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.work-head { display: grid; gap: .75rem; margin-bottom: 2rem; }
.work-head h2, .cta h2 { font-size: clamp(2.75rem, 11vw, 6rem); line-height: .95; }
.work-head p { max-width: 30rem; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--deep); color: var(--deep-ink); }
.tile:first-child { grid-column: 1 / -1; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-text { padding: .7rem .8rem .85rem; }
.tile h3 { font-size: 1.25rem; line-height: 1.1; letter-spacing: .02em; }
.tile p { margin-top: .15rem; font-size: .9375rem; opacity: .8; }
.steps { display: grid; margin-top: clamp(2.5rem, 7vw, 4rem); border-top: 3px solid var(--ink); }
.steps li { padding-block: 1.1rem; border-bottom: 1px solid var(--ink); }
.num { display: block; font-size: 3rem; line-height: 1; color: var(--ink); }
.steps h3 { margin-top: .35rem; font-size: 1.5rem; line-height: 1.1; }
.steps p { margin-top: .2rem; color: var(--muted); }

/* ---------- 3. Ajakan WhatsApp: garis peringatan di atas ---------- */
.cta {
  position: relative; display: grid; justify-items: start; gap: .9rem;
  padding: calc(clamp(3rem, 8vw, 5.5rem) + 14px) var(--gutter) clamp(3rem, 8vw, 5.5rem);
  background: var(--deep); color: var(--deep-ink);
}
.cta::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--deep) 18px 36px);
}
.cta h2 { color: var(--accent); }
.cta p { max-width: 30rem; opacity: .85; }

/* ---------- Blok penutup ---------- */
.more { margin: 2rem var(--gutter); padding: 1rem; border: 2px dashed var(--ink); text-align: center; text-wrap: balance; }

/* ---------- Footer tipis ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  padding: 1.25rem var(--gutter) 2rem; border-top: 2px solid var(--ink); color: var(--muted); font-size: .9375rem;
}
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.foot-link { padding-block: .6rem; }
.foot-link:hover { color: var(--ink); }

/* ---------- Layar lebar ---------- */
@media (min-width: 700px) {
  .services { display: flex; }
  .services li + li::before { content: "/"; margin-right: 1.25rem; color: var(--muted); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 0; }
  .steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--ink); }
}
@media (min-width: 900px) {
  /* Kotak hitam menumpang di sudut foto */
  .hero-photo { position: relative; }
  .hero-photo img { aspect-ratio: 2 / 1; }
  .hero-note { position: absolute; right: var(--gutter); bottom: 0; width: min(46%, 30rem); padding: 1.75rem; }
  .work-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .work-head p { justify-self: end; }
  /* Foto pertama besar, empat lainnya mengisi sisi kanan. Keterangan menempel di atas foto. */
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(13rem, 19vw, 17rem); }
  .tile:first-child { grid-column: span 2; grid-row: span 2; }
  .tile img { height: 100%; aspect-ratio: auto; }
  .tile-text { position: absolute; left: 0; bottom: 0; max-width: 92%; padding: .5rem .75rem .6rem; background: var(--deep); }
}
