:root {
  --paper: #f7f5ef;
  --ink: #171717;
  --line: #d6d0c6;
  --gallery: #10100f;
  --header: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  width: 100%;
}

.minimal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 18px clamp(18px, 4vw, 54px);
  background: transparent;
  border-bottom: 0;
}

.wordmark {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.menu-toggle,
.sidebar-row-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.menu-toggle {
  position: relative;
  z-index: 41;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  transition: transform 220ms ease;
}

.menu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.menu-toggle span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.menu-toggle span:nth-child(1) {
  transform: translate(-8px, -8px);
}

.menu-toggle span:nth-child(2) {
  transform: translate(0, 0);
}

.menu-toggle span:nth-child(3) {
  transform: translate(8px, 8px);
}

.sidebar-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 16, 15, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease;
}

.sidebar-menu.is-open {
  background: rgba(16, 16, 15, 0.12);
  opacity: 1;
  pointer-events: auto;
}

.sidebar-panel {
  width: min(50vw, 280px);
  min-height: 100%;
  padding: clamp(18px, 3.2vw, 28px);
  background: rgba(247, 245, 239, 0.72);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 260ms ease;
  overflow-y: auto;
  box-shadow: -18px 0 64px rgba(0, 0, 0, 0.18);
}

.sidebar-menu.is-open .sidebar-panel {
  transform: translateX(0);
}

.sidebar-rows {
  display: grid;
  gap: 0;
  padding-top: clamp(34px, 9vh, 74px);
}

.sidebar-row {
  border-top: 1px solid rgba(23, 23, 23, 0.2);
}

.sidebar-row:last-child {
  border-bottom: 1px solid rgba(23, 23, 23, 0.2);
}

.sidebar-row-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  color: var(--ink);
  font-size: clamp(1rem, 2.3vw, 1.32rem);
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
  text-transform: none;
}

.sidebar-row-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.48;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.sidebar-row.is-open .sidebar-row-toggle::after {
  transform: rotate(225deg);
}

.sidebar-row-content {
  display: none;
  padding: 0 0 20px;
  color: #5f5b54;
}

.sidebar-row.is-open .sidebar-row-content {
  display: block;
}

.sidebar-row-content p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sidebar-row-content a {
  display: block;
  width: fit-content;
  color: #5f5b54;
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
}

.sidebar-row-content a:hover {
  color: var(--ink);
}

.sidebar-row-content a + a {
  margin-top: 8px;
}

.project-categories {
  display: none;
  gap: 18px;
}

.sidebar-row.is-open .project-categories {
  display: grid;
}

.project-categories p {
  margin: 0 0 8px;
  color: #8a694d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.minimal-hero,
.project-slider {
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.minimal-hero figure,
.slide {
  margin: 0;
}

.hero-slider {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--gallery);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 650ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.minimal-hero img {
  height: 100svh;
  min-height: 520px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  appearance: none;
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-dots button.is-active {
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1.25);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: min(72vw, 520px);
  transform: translateX(-50%);
}

.slider-dots button {
  appearance: none;
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.slider-dots button.is-active {
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1.28);
}

.about-laksana {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  min-height: 100svh;
  background: var(--paper);
  border-top: 1px solid var(--line);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.about-portrait {
  min-height: 100%;
  margin: 0;
  background: var(--gallery);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: clamp(42px, 7vw, 110px);
}

.about-label {
  margin: 0 0 22px;
  color: #8a694d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.2rem, 9vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.about-copy p:not(.about-label) {
  margin: clamp(28px, 4vw, 48px) 0 0;
  max-width: 720px;
  color: #6c675f;
  font-size: clamp(1rem, 1.75vw, 1.65rem);
  line-height: 1.35;
}

.about-copy a {
  display: inline-block;
  width: fit-content;
  margin-top: clamp(24px, 4vw, 42px);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.project-slider {
  position: relative;
  height: 100svh;
  min-height: 560px;
  border-top: 1px solid var(--line);
  background: var(--gallery);
  overflow: hidden;
}

.project-slider h2 {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 2;
  margin: 0;
  max-width: min(760px, calc(100% - 36px));
  padding: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 2.6vw, 2.8rem);
  line-height: 1;
  font-weight: 650;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.58);
}

.slider-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--gallery);
  height: 100%;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gallery);
}

@media (max-width: 680px) {
  :root {
    --header: 56px;
  }

  html {
    scroll-snap-type: y proximity;
  }

  .about-laksana {
    grid-template-columns: 1fr;
  }

  .about-portrait img {
    min-height: 56svh;
  }

  .about-copy {
    min-height: 56svh;
    padding: 34px 22px 44px;
  }

  .about-copy h1 {
    max-width: 8ch;
  }

  .minimal-hero img,
  .slide,
  .project-slider {
    min-height: 420px;
  }
}
