/* ============================================================
   TENTREM BARBERSHOP — DESIGN SYSTEM
   Dark premium / editorial / masculine
   ============================================================ */

:root {
  /* Base */
  --ink: #0a0a0b;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Type */
  --paper: #f4f2ee;
  --paper-dim: #a8a49d;
  --paper-faint: #6e6a64;

  /* Accent — brass/bone, restrained */
  --accent: #c8a96a;
  --accent-dim: rgba(200, 169, 106, 0.35);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 148px);

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

/* ---------- Typography primitives ---------- */

.display {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.005em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-weight: 500;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.lede {
  color: var(--paper-dim);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 52ch;
  line-height: 1.75;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

/* Anchor offset supaya judul section tidak tertutup sticky nav */
section[id] { scroll-margin-top: 74px; }

.section-pad { padding-block: var(--section-y); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--paper);
  --btn-fg: #0c0c0d;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--accent { --btn-bg: var(--accent); --btn-fg: #14100a; }
.btn--accent:hover { --btn-bg: #d9bd80; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.05); }

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

.btn__icon { width: 15px; height: 15px; flex: none; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 25px;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand__mark { color: var(--paper); }
.brand__dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { width: 100%; }

.nav__cta { display: inline-flex; }

.nav__cta .btn { min-height: 44px; padding: 0 22px; font-size: 11px; }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background-color 0.2s var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after { top: 5.5px; }

body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 74px 0 0 0;
  z-index: 89;
  background: var(--ink);
  padding: 34px var(--gutter) calc(34px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease),
    visibility 0.32s var(--ease);
}

body.menu-open .drawer { opacity: 1; visibility: visible; transform: translateY(0); }
body.menu-open { overflow: hidden; }

.drawer__link {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 34px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.drawer__link small {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--paper-faint);
}

.drawer__actions { margin-top: auto; padding-top: 30px; display: grid; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 74px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 32%;
  filter: grayscale(0.28) contrast(1.05) brightness(0.72);
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) forwards;
}

@keyframes heroDrift {
  to { transform: scale(1); }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(10, 10, 11, 0.78) 0%,
      rgba(10, 10, 11, 0.34) 34%,
      rgba(10, 10, 11, 0.86) 78%,
      var(--ink) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(52px, 8vw, 92px);
}

.hero__title {
  font-size: clamp(58px, 15.5vw, 190px);
  margin-bottom: 26px;
}

.hero__title span { display: block; }
.hero__title span:last-child { color: var(--accent); }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero__copy { max-width: 40ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-faint);
  z-index: 1;
}

/* ---------- Marquee strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 17px 0;
}

.strip__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.strip__item {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--paper-dim);
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}

.strip__item::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Brand intro ---------- */

.intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.intro__title {
  font-size: clamp(42px, 7vw, 92px);
  margin-bottom: 26px;
}

.intro__title em { font-style: normal; color: var(--accent); }

.intro__figure { position: relative; }

.intro__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.03);
  border: 1px solid var(--line);
}

.intro__badge {
  position: absolute;
  left: -1px;
  bottom: -1px;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 16px 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(46px, 7vw, 84px);
}

.pillar {
  background: var(--ink);
  padding: clamp(26px, 3.4vw, 40px);
  transition: background-color 0.4s var(--ease);
}

.pillar:hover { background: var(--ink-2); }

.pillar__index {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.pillar__title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}

.pillar__body { color: var(--paper-dim); font-size: 14.5px; margin: 0; line-height: 1.7; }

/* ---------- Services ---------- */

.services { background: var(--ink-2); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-title {
  font-size: clamp(40px, 6.6vw, 86px);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.svc {
  position: relative;
  background: var(--ink);
  padding: clamp(26px, 3vw, 38px);
  min-height: 268px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.svc__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.55s var(--ease), transform 1.1s var(--ease);
  transform: scale(1.08);
}

.svc__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.42);
}

.svc:hover .svc__bg,
.svc:focus-within .svc__bg { opacity: 1; transform: scale(1); }

.svc__index {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--paper-faint);
  transition: color 0.4s var(--ease);
}

.svc:hover .svc__index { color: var(--accent); }

.svc__name {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: 0.04em;
  margin: auto 0 12px;
}

.svc__desc {
  color: var(--paper-dim);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
  max-width: 34ch;
}

.svc__line {
  margin-top: 20px;
  height: 1px;
  width: 34px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

.svc:hover .svc__line { width: 76px; }

.svc-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--paper-faint);
  letter-spacing: 0.04em;
}

/* ---------- Gallery ---------- */

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    'a b c d'
    'a e f d'
    'g e f h';
  grid-template-rows: repeat(3, clamp(150px, 14.5vw, 250px));
  gap: 12px;
}

/* Pola editorial bertingkat — 8 foto mengisi grid 4x3 tanpa sel kosong. */
.gal-grid > *:nth-child(1) { grid-area: a; }
.gal-grid > *:nth-child(2) { grid-area: b; }
.gal-grid > *:nth-child(3) { grid-area: c; }
.gal-grid > *:nth-child(4) { grid-area: d; }
.gal-grid > *:nth-child(5) { grid-area: e; }
.gal-grid > *:nth-child(6) { grid-area: f; }
.gal-grid > *:nth-child(7) { grid-area: g; }
.gal-grid > *:nth-child(8) { grid-area: h; }

.gal {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.gal { display: block; }

.gal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: grayscale(0.35) contrast(1.04);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.gal:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.06); }

.gal__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  padding: 6px 11px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--paper);
}

/* ---------- Why / editorial split ---------- */

.why { border-block: 1px solid var(--line); background: var(--ink-2); }

.why__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.why__title { font-size: clamp(40px, 6.4vw, 84px); margin-bottom: 22px; }

.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.why__item { background: var(--ink); padding: clamp(22px, 2.8vw, 32px); display: flex; gap: 22px; align-items: flex-start; }

.why__num { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--accent); line-height: 1.2; flex: none; }

.why__h { font-family: 'Bebas Neue','Oswald',sans-serif; font-size: 25px; letter-spacing: 0.05em; margin: 0 0 6px; }

.why__p { margin: 0; color: var(--paper-dim); font-size: 14.5px; line-height: 1.7; }

/* ---------- Location ---------- */

.loc__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: stretch;
}

.loc__panel { display: flex; flex-direction: column; }

.loc__title { font-size: clamp(40px, 6.4vw, 80px); margin-bottom: 30px; }

.loc__block { padding: 22px 0; border-top: 1px solid var(--line); }
.loc__block:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 30px; }

.loc__label {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--paper-faint);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.loc__value { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--paper); }
.loc__value--big { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 0.08em; color: var(--accent); }

.loc__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.loc__map {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-3);
  min-height: 380px;
  overflow: hidden;
}

.loc__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.86);
}

/* ---------- Instagram ---------- */

.ig { border-top: 1px solid var(--line); background: var(--ink-2); }

.ig__inner { text-align: center; }

.ig__handle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 12px;
}

.ig__title { font-size: clamp(34px, 5.6vw, 70px); margin-bottom: 22px; }

.ig__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 40px 0;
}

.ig__strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.5);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
  border: 1px solid var(--line);
}

.ig__strip a:hover img { filter: grayscale(0); transform: translateY(-3px); }

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.cta__media { position: absolute; inset: 0; z-index: 0; }

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.6) brightness(0.34);
}

.cta__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0.94) 72%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(84px, 13vw, 168px);
}

.cta__title { font-size: clamp(46px, 9vw, 128px); margin-bottom: 18px; }

.cta__sub { color: var(--paper-dim); font-size: clamp(15px, 1.7vw, 18px); margin: 0 auto 36px; max-width: 40ch; }

.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); background: var(--ink); }

.foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  padding-block: clamp(40px, 6vw, 68px);
}

.foot__col p { margin: 0 0 6px; color: var(--paper-dim); font-size: 14px; }

.foot__nav { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }

.foot__nav a { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); transition: color 0.3s var(--ease); }
.foot__nav a:hover { color: var(--accent); }

.foot__bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--paper-faint);
  letter-spacing: 0.06em;
}

/* ---------- Floating contact ---------- */

.float {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: calc(clamp(16px, 3vw, 30px) + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #14100a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease),
    background-color 0.3s var(--ease);
}

.float.is-visible { transform: translateY(0); opacity: 1; }
.float:hover { background: #d9bd80; }
.float svg { width: 18px; height: 18px; flex: none; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .intro__grid,
  .why__grid,
  .loc__grid { grid-template-columns: 1fr; }
  .intro__figure { order: -1; max-width: 460px; }
  .hero__meta { display: none; }
  .loc__map { min-height: 300px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  /* Mobile: kembali ke grid 2 kolom sederhana, semua sel setara. */
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: none;
    grid-template-rows: none;
    grid-auto-rows: clamp(180px, 42vw, 240px);
    gap: 10px;
  }
  .gal-grid > * { grid-area: auto !important; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .hero { min-height: 96svh; }
  .hero__title { font-size: clamp(52px, 17vw, 88px); line-height: 0.9; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { width: 100%; }

  .pillars { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 190px; }
  .svc__bg { opacity: 0.35; transform: none; }
  .svc__bg img { filter: grayscale(1) brightness(0.3); }

  .ig__strip { grid-template-columns: repeat(2, 1fr); }

  .cta__actions { display: grid; grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }

  .loc__actions { display: grid; grid-template-columns: 1fr; }
  .loc__actions .btn { width: 100%; }

  .float { padding: 0 18px; font-size: 11px; }

  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand { font-size: 22px; }
  .float span { display: none; }
  .float { padding: 0; width: 54px; justify-content: center; }
}

/* ============================================================
   VISUAL ENHANCEMENT LAYER
   Grain, entrance choreography, micro-interaction premium
   ============================================================ */

/* ---------- Film grain halus (editorial texture) ---------- */

body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-3%, 2%); }
  33%  { transform: translate(2%, -3%); }
  50%  { transform: translate(-2%, -2%); }
  66%  { transform: translate(3%, 1%); }
  83%  { transform: translate(-1%, 3%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ---------- Hero entrance choreography ---------- */

.hero .eyebrow,
.hero__title span,
.hero__row {
  opacity: 0;
  animation: heroRise 1s var(--ease) forwards;
}

.hero .eyebrow      { animation-delay: 0.12s; }
.hero__title span:first-child { animation-delay: 0.24s; }
.hero__title span:last-child  { animation-delay: 0.38s; }
.hero__row          { animation-delay: 0.56s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero__title span,
  .hero__row { opacity: 1; animation: none; }
}

/* Garis akcent tipis di bawah hero */
.hero::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), transparent 62%);
  z-index: 1;
}

/* ---------- Nav: indikator section aktif ---------- */

.nav__link.is-active { color: var(--paper); }
.nav__link.is-active::after { width: 100%; }

/* ---------- Progress bar baca ---------- */

.nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), #e6cf9a);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.nav.is-stuck .nav__progress { opacity: 1; }

/* ---------- Button shine (restrained) ---------- */

.btn--accent { overflow: hidden; }

.btn--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease);
  pointer-events: none;
}

.btn--accent:hover::before { left: 150%; }

@media (prefers-reduced-motion: reduce) {
  .btn--accent::before { display: none; }
}

/* ---------- Service card: garis sorot atas ---------- */

.svc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.6s var(--ease);
  z-index: 2;
}

.svc:hover::before,
.svc:focus-within::before { width: 100%; }

/* ---------- Gallery: overlay tag lebih halus ---------- */

.gal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.62), transparent 46%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.gal:hover::after { opacity: 0.45; }

.gal__tag { z-index: 2; }

/* ---------- Pillar: nomor bergerak halus ---------- */

.pillar { position: relative; overflow: hidden; }

.pillar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.pillar:hover::after { width: 100%; }

/* ---------- Instagram strip: stagger hover ---------- */

.ig__strip a { position: relative; display: block; overflow: hidden; }

.ig__strip a::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
  pointer-events: none;
}

.ig__strip a:hover::after { border-color: var(--accent-dim); }

/* ---------- Location map: frame accent ---------- */

.loc__map::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s var(--ease);
  pointer-events: none;
}

.loc__map:hover::after { border-color: var(--accent-dim); }

/* ---------- Reveal: varian arah ---------- */

/* Hanya di layar lebar — di mobile tetap vertikal agar tidak memicu overflow */
@media (min-width: 1025px) {
  .reveal--left  { transform: translateX(-28px) translateY(0); }
  .reveal--right { transform: translateX(28px) translateY(0); }
  .reveal--left.is-in,
  .reveal--right.is-in { transform: none; }
}

/* ---------- Focus visible konsisten ---------- */

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

/* ---------- Scrollbar premium (desktop) ---------- */

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--ink); }
  ::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border: 3px solid var(--ink);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
}

/* ============================================================
   ACCESSIBILITY & LIGHTBOX
   ============================================================ */

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--accent);
  color: #101010;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.28s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Gallery button wrapper ---------- */

.gal__btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
}

.gal__btn img { width: 100%; height: 100%; }

/* ---------- Lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 20px);
  padding: clamp(14px, 4vw, 48px);
  background: rgba(6, 6, 7, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(100%, 720px);
  min-width: 0;
}

.lb__img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lb__cap {
  color: var(--paper-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 46ch;
}

.lb__close,
.lb__nav {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lb__close:hover,
.lb__nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-dim);
}

.lb__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
}

.lb__nav {
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
}

/* Mobile: tombol nav mengambang di sisi bawah supaya foto memakai
   lebar penuh — portofolio adalah konten utama di section ini. */
@media (max-width: 640px) {
  .lb { padding: 64px 12px 92px; }
  .lb__fig { max-width: 100%; width: 100%; }
  .lb__img { max-height: 68vh; }

  .lb__nav {
    position: absolute;
    bottom: 22px;
    width: 52px;
    height: 52px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.07);
  }

  .lb__nav--prev { left: 18px; }
  .lb__nav--next { right: 18px; }
}

body.lb-open { overflow: hidden; }

/* ============================================================
   v2.1 ENHANCEMENT LAYER
   ============================================================ */

/* ---------- Indikator buka / tutup ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-faint);
}

.status[data-status='open'] { color: var(--paper); border-color: rgba(126, 200, 130, 0.32); }
.status[data-status='open'] .status__dot {
  background: #7ec882;
  box-shadow: 0 0 0 0 rgba(126, 200, 130, 0.55);
  animation: statusPulse 2.4s var(--ease) infinite;
}

.status[data-status='closed'] { color: var(--paper-dim); border-color: var(--line); }
.status[data-status='closed'] .status__dot { background: #b6634f; }

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(126, 200, 130, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(126, 200, 130, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 200, 130, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status[data-status='open'] .status__dot { animation: none; }
}

.status--hero { margin-bottom: 18px; }
.status--loc { margin-top: 12px; }
.status--drawer { width: fit-content; margin-bottom: 6px; }

/* ---------- Filter galeri ---------- */

.gal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gal-filter__btn {
  appearance: none;
  cursor: pointer;
  background: transparent;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.gal-filter__btn:hover { color: var(--paper); border-color: var(--line-strong); }

.gal-filter__btn.is-active {
  color: #101010;
  background: var(--accent);
  border-color: var(--accent);
}

/* Item tersembunyi saat difilter — grid-area tetap dipegang CSS,
   jadi urutan pola editorial tidak rusak untuk item yang tersisa. */
.gal[hidden] { display: none !important; }

/* Saat filter aktif (bukan ALL) pakai grid otomatis agar tidak ada sel kosong. */
.gal-grid.is-filtered {
  grid-template-areas: none;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  grid-auto-rows: clamp(220px, 22vw, 320px);
}

.gal-grid.is-filtered > * { grid-area: auto !important; }

.gal-empty {
  color: var(--paper-dim);
  font-size: 14px;
  margin-top: 18px;
}

/* ---------- FAQ ---------- */

.faq { border-block: 1px solid var(--line); background: var(--ink-2); }

.faq__list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq__item { background: var(--ink); }

.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  transition: background 0.3s var(--ease);
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: rgba(255, 255, 255, 0.025); }

.faq__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex: none;
}

.faq__qt {
  flex: 1;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.faq__ico {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq__ico::before,
.faq__ico::after {
  content: '';
  position: absolute;
  background: var(--paper-dim);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.faq__ico::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.faq__ico::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }

.faq__item[open] .faq__ico::after { transform: scaleY(0); }
.faq__item[open] .faq__ico::before { background: var(--accent); }

.faq__a {
  padding: 0 clamp(18px, 2.6vw, 30px) clamp(20px, 2.4vw, 28px);
  padding-left: calc(clamp(18px, 2.6vw, 30px) + 32px);
}

.faq__a p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 68ch;
}

.faq__item[open] .faq__a { animation: faqIn 0.35s var(--ease) both; }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__a { animation: none; }
}

@media (max-width: 560px) {
  .faq__a { padding-left: clamp(18px, 2.6vw, 30px); }
}

/* ---------- Back to top ---------- */

.totop {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + 74px);
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--paper);
  background: rgba(18, 18, 20, 0.86);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s,
    border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: var(--accent); border-color: var(--accent-dim); }
.totop svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .totop { width: 40px; height: 40px; bottom: calc(clamp(16px, 3vw, 28px) + 66px); }
}
