/* ============================================================================
   DAVARAYA — Public design system  "The Drawing Set"
   PT Anugerah Dava Raya · integrated property firm (Kontraktor primary pillar)
   Aesthetic: architectural construction drawings — corner registration marks,
   dimension-line labels, warm concrete neutrals, sharp orange accent.
   Fonts: Space Grotesk (display) · Inter (body) · IBM Plex Mono (technical)
   ========================================================================== */

/* ---- 1. Tokens --------------------------------------------------------- */
:root {
  /* Brand */
  --accent:        #FF6500;   /* brand orange — sharp, deliberate */
  --accent-press:  #E85600;   /* pressed / hover */
  --accent-soft:   rgba(255, 101, 0, 0.10);
  --danger:        #B3261E;   /* form validation errors — warm red, reads distinct from accent */

  /* Ink (warm near-black) */
  --ink:      #16120F;
  --ink-2:    #221D19;        /* elevated dark surface */
  --ink-3:    #322A24;        /* dark hairlines / borders on dark */

  /* Neutral concrete/limestone base — deliberately not "cream" */
  --paper:      #F1EEE8;      /* page base */
  --paper-alt:  #E7E2D8;      /* alternating section band */
  --surface:    #FBFAF6;      /* lifted card surface */
  --line:       #D6D0C4;      /* hairline on light */

  /* Text */
  --text:       #26201B;      /* body on light */
  --text-soft:  #6C6459;      /* muted / captions */
  --text-inv:   #F1EEE8;      /* body on dark */
  --text-inv-soft: #B4AC9F;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.25rem, 6vw, 5.5rem);
  --radius: 3px;             /* near-square — engineered, not bubbly */
  --radius-lg: 5px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --shadow: 0 1px 2px rgba(22,18,15,.05), 0 14px 34px -18px rgba(22,18,15,.28);
}

/* ---- 2. Reset / base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* belt-and-braces against h-scroll */
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: #fff; }

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

/* ---- 3. Typography ----------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-display {                          /* hero-scale */
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h1, .h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 58ch;
}

/* Eyebrow — a dimension-line label (signature type treatment) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
  /* end-tick, like a dimension arrow */
  box-shadow: 0 -3px 0 -1px currentColor, 0 3px 0 -1px currentColor;
  flex: none;
}
.eyebrow--muted { color: var(--text-soft); }
.eyebrow--muted::before { background: var(--accent); box-shadow: none; }

/* ---- 4. Layout --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section {
  padding-block: var(--section-y);
  background: var(--paper);
}
.section-alt {
  padding-block: var(--section-y);
  background: var(--paper-alt);
}
.section-dark {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--text-inv);
  position: relative;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lead { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.15rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Blueprint grid texture — used sparingly on dark bands only */
.blueprint {
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ---- 5. Media slot (staff photos of any ratio never break layout) ------ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-alt);
  border-radius: var(--radius);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* any aspect ratio, never distorts layout */
  display: block;
}
.media--wide   { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall   { aspect-ratio: 4 / 5; }
.media--banner { aspect-ratio: 21 / 9; }   /* portfolio detail hero cover */
/* placeholder look when no image yet */
.media--empty {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(108,100,89,.05) 12px 13px),
    var(--paper-alt);
}
@media (max-width: 640px) { .media--banner { aspect-ratio: 4 / 3; } }

/* ---- 6. SIGNATURE: corner registration / tick-mark frame --------------- */
.frame {
  position: relative;
  --tick: 22px;
  --tick-w: 2px;
  --tick-c: var(--ink);
  --tick-accent: var(--accent);
}
/* four L-shaped ink brackets, one corner painted orange */
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    /* TL */ linear-gradient(var(--tick-c),var(--tick-c)) left top    / var(--tick) var(--tick-w) no-repeat,
             linear-gradient(var(--tick-c),var(--tick-c)) left top    / var(--tick-w) var(--tick) no-repeat,
    /* TR */ linear-gradient(var(--tick-c),var(--tick-c)) right top   / var(--tick) var(--tick-w) no-repeat,
             linear-gradient(var(--tick-c),var(--tick-c)) right top   / var(--tick-w) var(--tick) no-repeat,
    /* BL */ linear-gradient(var(--tick-c),var(--tick-c)) left bottom / var(--tick) var(--tick-w) no-repeat,
             linear-gradient(var(--tick-c),var(--tick-c)) left bottom / var(--tick-w) var(--tick) no-repeat,
    /* BR */ linear-gradient(var(--tick-c),var(--tick-c)) right bottom/ var(--tick) var(--tick-w) no-repeat,
             linear-gradient(var(--tick-c),var(--tick-c)) right bottom/ var(--tick-w) var(--tick) no-repeat;
}
/* accent corner (top-left) drawn on top */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(var(--tick-accent),var(--tick-accent)) left top / var(--tick) var(--tick-w) no-repeat,
    linear-gradient(var(--tick-accent),var(--tick-accent)) left top / var(--tick-w) var(--tick) no-repeat;
}
.frame--light { --tick-c: rgba(241,238,232,.85); }
.frame--pad { padding: clamp(10px, 1.6vw, 16px); background: var(--surface); }

/* ---- 7. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: translateY(1px); }

/* Dark ink on vibrant orange: ~6.3:1 (base) / ~5.1:1 (press) — passes WCAG AA, keeps #FF6500. */
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-press); color: var(--ink); }
.btn--primary:active { color: var(--ink); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { border-color: rgba(241,238,232,.35); color: var(--text-inv); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--block { width: 100%; }

/* text link with dimension underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- 8. Card ----------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-soft); font-size: 0.96rem; }

/* card that is fully an image tile (portfolio) */
.card-media { display: block; padding: 0; overflow: hidden; }
.card-media .media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-media__body { padding: 1.2rem 1.35rem 1.4rem; }
.card-media__body h3 { margin-top: 0.75rem; }
.card-media__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---- 9. Stat (dimension read-out) -------------------------------------- */
.stat { position: relative; padding-left: 1.1rem; }
.stat::before {
  content: "";
  position: absolute; left: 0; top: 0.35rem; bottom: 0.35rem;
  width: 2px; background: var(--accent);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-dark .stat__num { color: #fff; }
.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.section-dark .stat__label { color: var(--text-inv-soft); }

/* legalitas / trust badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.badge svg { width: 14px; height: 14px; color: var(--accent); }
.section-dark .badge { border-color: var(--ink-3); color: var(--text-inv-soft); }

/* ---- 10. CTA band ------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);   /* not shorthand — keeps .blueprint background-image */
  color: var(--text-inv);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
}
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: var(--text-inv-soft); margin-top: 0.6rem; max-width: 46ch; }
.cta-band .btn-row { flex: none; }
/* orange accent tick in corner of the band */
.cta-band::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background:
    linear-gradient(var(--accent),var(--accent)) right top / 120px 4px no-repeat,
    linear-gradient(var(--accent),var(--accent)) right top / 4px 120px no-repeat;
  opacity: .9;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---- 11. Navigation ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,238,232,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.nav__logo { height: 34px; width: auto; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav__brand-tag {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-soft); margin-top: 3px;
}
/* smallest phones: drop the tagline so the header can never overflow */
@media (max-width: 400px) { .nav__brand-tag { display: none; } }

.nav__menu { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text); border-radius: var(--radius);
  transition: color .15s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.28rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__cta { flex: none; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }

/* mobile drawer */
.nav__drawer { display: none; }

@media (max-width: 860px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__drawer {
    display: block;
    position: fixed; inset: 74px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -22px rgba(22,18,15,.4);
    padding: 1rem var(--gutter) 1.75rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .22s var(--ease), opacity .22s var(--ease), visibility .22s;
    z-index: 49;
  }
  .nav__drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__drawer a {
    display: block; padding: 0.9rem 0.25rem;
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
    border-bottom: 1px solid var(--line); color: var(--ink);
  }
  .nav__drawer a.is-active { color: var(--accent); }
  .nav__drawer .btn { margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__drawer { transition: opacity .01s; }
}

/* ---- 12. Footer -------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--ink);   /* not shorthand — keeps .blueprint background-image */
  color: var(--text-inv-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.footer-brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: #fff; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.footer-brand p { max-width: 34ch; font-size: 0.94rem; line-height: 1.6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

.footer-col__title {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.15rem;
}
.footer-col a, .footer-contact li { font-size: 0.94rem; }
.footer-col ul { display: grid; gap: 0.15rem; }
.footer-col a { display: inline-block; padding-block: 0.5rem; }
.footer-col a { color: var(--text-inv-soft); transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-contact { display: grid; gap: 0.9rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.5; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }

.footer-socials { display: flex; gap: 0.65rem; margin-top: 1.4rem; }
.footer-socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-3); border-radius: var(--radius);
  color: var(--text-inv-soft);
  transition: all .18s var(--ease);
}
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-socials svg { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--text-inv-soft);
}
.footer-bottom a { color: var(--text-inv); }
.footer-bottom a:hover { color: var(--accent); }

/* ---- 13. WhatsApp float ------------------------------------------------ */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid #25D366;
  animation: wa-ping 2.4s var(--ease) infinite;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: .7; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; display: none; }
}

/* ---- 14. Hero (used by shell preview + Task 8) ------------------------- */
.hero {
  position: relative;
  background-color: var(--ink);   /* not shorthand — keeps .blueprint background-image */
  color: var(--text-inv);
  overflow: hidden;
}

/* Hero halaman dalam — satu kolom, tanpa foto pendamping.
   Ukurannya diturunkan dan tingginya ditentukan sendiri, tidak mewarisi
   proporsi hero dua kolom di beranda. */
.hero--page .container { padding-block: clamp(2.5rem, 5.5vw, 4rem); }
.hero--page .section-head { margin-bottom: 0; max-width: 46ch; }
.hero--page .h-display { font-size: clamp(2rem, 4vw, 3.15rem); }
.hero--page .lead { max-width: 52ch; }

/* Pembatas lebar baris untuk blok teks panjang, dipakai tanpa menggeser
   kontainernya — supaya tepi kiri seluruh halaman tetap satu garis. */
.measure { max-width: 68ch; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero .lead { color: var(--text-inv-soft); margin-top: 1.5rem; }
.hero__cta { margin-top: 2.25rem; }
.hero__figure { position: relative; }
.hero__coords {
  position: absolute; left: 0; bottom: -14px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--text-inv-soft);
}
/* hero slideshow — stacked slides inside a .media so they cross-fade in place */
.hero__slide { position: absolute; inset: 0; }

/* ---- 15. Process rail (numbered steps, Task 8 "proses kerja") ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.process__item { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.process__item::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 34px; height: 2px; background: var(--accent);
}
.process__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.process__item h3 { margin-bottom: 0.4rem; }
.process__item p { color: var(--text-soft); font-size: 0.94rem; }

/* ---- 16. Portfolio filter chips (Task 9) ------------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Empty state (portfolio list with no matching projects) */
.empty-state {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-soft);
}

/* ---- 17. Project meta row (portfolio detail) --------------------------- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.5rem;
}
.meta-row__item dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.meta-row__item dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.project-description { margin-top: 1.75rem; max-width: 72ch; }
.project-description p { color: var(--text); }

/* ---- 18. Gallery grid + lightbox (portfolio detail, Task 9) ------------ */
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: opacity .18s var(--ease);
}
.gallery-thumb:hover { opacity: .85; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(22, 18, 15, 0.92);
  padding: clamp(1rem, 4vw, 3rem);
  overflow: hidden;   /* never introduces page scroll */
}
.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241,238,232,.35);
  border-radius: 50%;
  color: var(--text-inv);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox__close {
  top: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem);
  width: 46px; height: 46px;
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 3vw, 2rem); }
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; }
}

/* ---- 19. Utilities ----------------------------------------------------- */
.stack-sm > * + * { margin-top: 0.75rem; }
.mt-2 { margin-top: 2rem; }
.text-accent { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---- 20. Check list (Task 10 — layanan/tentang detail lists) ----------- */
.list-check { display: grid; gap: 0.85rem; }
.list-check li { display: flex; align-items: flex-start; gap: 0.75rem; }
.list-check svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.list-check span { color: var(--text); font-size: 0.96rem; }

/* ---- 21. Contact form + two-column layout (Task 11 — kontak) ----------- */
.kontak-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .kontak-grid { grid-template-columns: 1fr; }
}

.form { margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;            /* < 16px membuat Safari iOS memperbesar layar saat kolom disentuh */
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); }
.field--error input,
.field--error textarea { border-color: var(--danger); }
.field__error {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--danger);
}

.alert-success {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}

/* Tombol WhatsApp melayang menutupi baris terakhir saat digulir sampai bawah.
   Sisakan ruang di footer supaya tidak ada isi yang tertutup permanen. */
@media (max-width: 900px) {
  .site-footer { padding-bottom: 5.5rem; }
}

/* Label eyebrow: garis dimensi disejajarkan ke baris pertama, dan di layar
   sempit dirapatkan supaya tidak patah menyisakan satu kata menggantung. */
.eyebrow { align-items: flex-start; }
.eyebrow::before { margin-top: 0.5em; flex: 0 0 auto; }

@media (max-width: 480px) {
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; }
}
/* ---- 20. Rel geser kartu (layar sempit) --------------------------------
   Enam kartu proyek bertumpuk vertikal memakan lebih dari tiga layar penuh.
   Di bawah 560px kartu digeser menyamping: satu bagian cukup satu layar,
   dan kartu berikutnya sengaja mengintip di tepi kanan sebagai isyarat
   bahwa masih ada lanjutannya — tanpa perlu tulisan "geser". */
@media (max-width: 560px) {
  .rail-sm {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    /* Melebar sampai tepi layar supaya kartu pertama sejajar teks di atasnya
       dan kartu terakhir tetap bisa tergeser penuh. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .rail-sm::-webkit-scrollbar { display: none; }

  .rail-sm > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}