:root {
  --bg: oklch(0.99 0 0);
  --bg-dark: oklch(0 0 0);
  --surface: oklch(0.95 0 0);
  --surface-line: oklch(0.85 0 0);
  --ink: oklch(0.16 0 0);
  --muted: oklch(0.45 0 0);
  --ink-on-dark: oklch(0.98 0 0);
  --muted-on-dark: oklch(0.62 0 0);
  --border-on-dark: oklch(1 0 0 / 0.16);
  --ink-hover: oklch(0.32 0 0);
  --ink-on-dark-hover: oklch(0.82 0 0);
  --shadow-color: oklch(0 0 0 / 0.12);

  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bodoni Moda', Georgia, serif;

  --fs-2xs: 0.625rem;
  --fs-xs: 0.6875rem;
  --fs-sm: 0.75rem;
  --fs-label: 0.8125rem;
  --fs-tag: 0.9375rem;
  --fs-body: 1rem;
  --fs-heading-sm: 1.125rem;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.25rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --z-nav: 10;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(var(--space-md), 6vw, var(--space-3xl));
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.hero :focus-visible,
.footer :focus-visible {
  outline-color: var(--ink-on-dark);
}

/* ---------- Nav ---------- */

.nav {
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-line);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2xs);
  padding-bottom: var(--space-2xs);
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s var(--ease-out-quart);
}

.nav__brand:hover {
  opacity: 0.6;
}

.nav__logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links--desktop {
  display: none;
}

@media (min-width: 640px) {
  .nav__links--desktop {
    display: flex;
    gap: var(--space-sm);
  }

  .nav__toggle {
    display: none;
  }
}

.nav__link {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: var(--space-2xs) var(--space-3xs);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
}

.nav__links--desktop .nav__link {
  padding: 0 0 2px;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav__toggle {
  position: relative;
}

.nav__toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -5px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  transition: color 0.3s var(--ease-out-quart);
}

.nav__toggle-btn:hover {
  color: var(--muted);
}

.nav__toggle-btn::-webkit-details-marker {
  display: none;
}

.nav__toggle-icon {
  width: 20px;
  height: 20px;
}

.nav__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  padding: var(--space-xs);
  background: var(--bg);
  border: 1px solid var(--surface-line);
  border-radius: 4px;
  box-shadow: 0 12px 30px var(--shadow-color);
  z-index: var(--z-nav);
}

.nav__panel .nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2xs);
}

.btn--sm {
  padding: var(--space-2xs) var(--space-sm);
  font-size: var(--fs-sm);
  letter-spacing: 1px;
}

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

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 50% 15%, oklch(1 0 0 / 0.07), transparent 70%),
    var(--bg-dark);
  color: var(--ink-on-dark);
}

.hero__inner {
  padding-top: clamp(72px, 13vh, 132px);
  padding-bottom: clamp(64px, 11vh, 112px);
  text-align: center;
}

.hero__logo {
  width: min(320px, 70%);
  height: auto;
  display: block;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: rise 1s var(--ease-out-quart) 0.05s forwards;
}

.hero__title {
  font-size: clamp(2.1rem, 3.4vw + 1.2rem, 3.4rem);
  line-height: 1.18;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: rise 1s var(--ease-out-quart) 0.16s forwards;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--muted-on-dark);
  line-height: 1.75;
  max-width: 40ch;
  overflow-wrap: break-word;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: rise 1s var(--ease-out-quart) 0.34s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  opacity: 0;
  animation: rise 1s var(--ease-out-quart) 0.44s forwards;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 44px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-lg);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart), color 0.3s var(--ease-out-quart);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--ink-hover);
}

.hero .btn--primary {
  background: var(--ink-on-dark);
  color: var(--bg-dark);
}

.hero .btn--primary:hover {
  background: var(--ink-on-dark-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--surface-line);
}

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

.hero .btn--ghost {
  color: var(--ink-on-dark);
  border-color: var(--border-on-dark);
}

.hero .btn--ghost:hover {
  border-color: var(--ink-on-dark);
}

/* ---------- Divider (echoes the logo's rule + dot device) ---------- */

.hero__divider {
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin: 0 auto var(--space-lg);
  position: relative;
  opacity: 0;
  animation: rise 1s var(--ease-out-quart) 0.26s forwards;
}

.hero__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ink);
}

.hero .hero__divider,
.hero .hero__divider::after {
  background: var(--ink-on-dark);
}

/* ---------- Portfolio ---------- */

.portfolio {
  background: var(--bg);
  border-top: 1px solid var(--surface-line);
}

.portfolio__inner {
  padding-top: clamp(64px, 10vh, 100px);
  padding-bottom: clamp(64px, 10vh, 100px);
}

.section-head {
  max-width: 46ch;
  margin-bottom: var(--space-2xl);
}

.section-head h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.1rem);
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.gallery__slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  text-align: center;
}

.gallery__icon {
  width: 26px;
  height: 26px;
  color: var(--muted);
  opacity: 0.7;
}

.gallery__label {
  font-size: var(--fs-tag);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.gallery__caption {
  font-size: var(--fs-sm);
  letter-spacing: 0.3px;
  color: var(--muted);
}

.portfolio__more-wrap {
  text-align: center;
  margin-top: var(--space-xl);
}

.portfolio__more {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--surface-line);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-out-quart);
}

.portfolio__more:hover {
  border-bottom-color: var(--ink);
}

/* ---------- Services (Layanan) ---------- */

.services {
  border-top: 1px solid var(--surface-line);
}

.services__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm) var(--space-xl);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--surface-line);
}

.services__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  flex: 0 0 auto;
}

.services__desc {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 38ch;
  overflow-wrap: break-word;
  flex: 1 1 240px;
  min-width: 0;
}

/* ---------- Steps (Proses Booking) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl) var(--space-lg);
  list-style: none;
}

.steps__item {
  min-width: 0;
}

.steps__number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.25rem;
  color: var(--surface-line);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.steps__title {
  font-weight: 600;
  font-size: var(--fs-tag);
  margin-bottom: var(--space-3xs);
}

.steps__desc {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ---------- Calendar / booking ---------- */

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

.booking__inner {
  padding-top: clamp(72px, 11vh, 112px);
  padding-bottom: clamp(72px, 11vh, 112px);
}

.cal-wrapper {
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--surface-line), 0 16px 40px var(--shadow-color);
}

.cal-iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}

@media (min-width: 640px) {
  .cal-iframe {
    height: 600px;
  }
}

.booking__note {
  margin-top: var(--space-md);
  font-size: var(--fs-label);
  color: var(--muted);
  text-align: center;
}

.booking__fallback {
  margin-top: var(--space-2xs);
  font-size: var(--fs-label);
  color: var(--muted);
  text-align: center;
}

.booking__fallback a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--surface-line);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.3s var(--ease-out-quart);
}

.booking__fallback a:hover {
  text-decoration-color: var(--ink);
}

/* ---------- Reveal (progressive enhancement) ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

.footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.footer__inner {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
}

.footer__logo {
  height: 40px;
  width: auto;
  opacity: 0.9;
  margin-bottom: var(--space-3xs);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xs);
}

.footer__social a {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--ink-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-on-dark);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-out-quart);
}

.footer__social a:hover {
  border-color: var(--ink-on-dark);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--muted-on-dark);
  letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__logo, .hero__title, .hero__divider, .hero__subtitle, .hero__actions {
    animation: none;
    opacity: 1;
  }

  html { scroll-behavior: auto; }
}

/* ---------- Page header (About / Portfolio / Testimonials) ---------- */

.page-header {
  padding-top: clamp(56px, 9vh, 88px);
  padding-bottom: clamp(40px, 6vh, 64px);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

/* ---------- Generic content section wrapper ---------- */

.content-section {
  background: var(--bg);
  border-top: 1px solid var(--surface-line);
}

.content-section__inner {
  padding-top: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(64px, 10vh, 100px);
}

/* ---------- About page ---------- */

.about__layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}

.about__portrait {
  flex: 0 1 260px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.about__bio {
  flex: 1 1 320px;
  min-width: 0;
}

.about__section {
  margin-bottom: var(--space-lg);
}

.about__section:last-child {
  margin-bottom: 0;
}

.about__section-label {
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin-bottom: var(--space-2xs);
}

.about__body {
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.8;
  max-width: 65ch;
  overflow-wrap: break-word;
}

/* ---------- Shared CTA block ---------- */

.cta-block {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ---------- Category block (Portfolio page) ---------- */

.category-block {
  margin-bottom: var(--space-4xl);
}

.category-block:last-of-type {
  margin-bottom: 0;
}

.category-block h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw + 1rem, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

/* ---------- Empty state ---------- */

.empty-state {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 4px;
}

.empty-state__icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  opacity: 0.7;
}

.empty-state__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  color: var(--ink);
}

.empty-state__caption {
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.6;
  max-width: 34ch;
  overflow-wrap: break-word;
}
