:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #0b1b3b;
  --muted: #55617a;
  --line: #dde3ee;
  --blue: #1546e0;
  --blue-dark: #0f35ad;
  --blue-pale: #edf2ff;
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img, svg { display: block; width: 100%; height: 100%; }
img { object-fit: cover; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.meta { color: var(--muted); font-size: 14px; }

.notice {
  padding: 8px 20px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  text-align: center;
  font-size: 14px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; }
.topbar nav a:hover { color: var(--blue); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
  padding-block: clamp(56px, 9vw, 112px) clamp(56px, 7vw, 88px);
}
.owner { color: var(--blue); font-size: 16px; font-weight: 600; }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(38px, 5.7vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-intro { max-width: 32em; margin-top: 22px; color: var(--muted); font-size: clamp(17px, 1.7vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

.focus { border-top: 2px solid var(--ink); }
.focus a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .15s;
}
.focus a:hover { color: var(--blue); }
.focus strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.focus span { color: var(--muted); font-size: 15px; }

/* Tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--white);
  color: var(--blue);
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue); color: var(--white); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.text-link { color: var(--blue); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--blue-dark); }

/* Section */
.section {
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.section h2, .contact h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}

/* Filter */
.chips { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.chip {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 500 16px/1.2 var(--font);
  cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--blue); font-weight: 600; }

/* Sampul blueprint */
.cover {
  --cover: var(--blue);
  --mark: var(--white);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: var(--white);
  background-color: var(--cover);
  background-image:
    linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cover .mark { fill: var(--mark); }

/* Project */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
  margin-top: 32px;
}
.project-card { position: relative; }
.project-card .meta { margin-top: 16px; }
.project-card h3 { margin-top: 2px; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.project-card .summary { margin-top: 6px; color: var(--muted); }

.open-detail {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.open-detail::after { content: ""; position: absolute; inset: 0; }
.project-card:hover .open-detail, .row:hover .open-detail { color: var(--blue); }

/* Katalog */
.catalog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.pricing { margin-top: 20px; }
.pricing-headline { color: var(--blue); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.pricing-note { max-width: 38em; margin-top: 6px; color: var(--muted); }
.field input {
  width: 240px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.2 var(--font);
}
.field input:focus { border-color: var(--blue); outline: 1px solid var(--blue); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.row .cover {
  --cover: var(--blue-pale);
  --mark: var(--blue);
  aspect-ratio: 4 / 3;
  color: var(--blue);
  background-image: none;
}
.row h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.row .desc { color: var(--muted); font-size: 15px; }
.row-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 18px; }
.row .btn { min-height: 40px; padding-inline: 14px; }
.row .text-link { font-size: 15px; }
.tag-off { color: var(--muted); font-size: 14px; text-align: center; }

.empty { padding: 32px 0; color: var(--muted); }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Kontak */
.contact {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--blue);
  color: var(--white);
  scroll-margin-top: 64px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}
.about { max-width: 32em; margin-top: 18px; font-size: 19px; }
.contact-links { display: grid; border-top: 1px solid rgb(255 255 255 / .5); }
.contact-links a, .contact-links .contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(255 255 255 / .25);
  text-decoration: none;
}
.contact-links a:hover .value { text-decoration: underline; text-underline-offset: 3px; }
.contact-links b { font-weight: 400; }
.contact-links .value { overflow-wrap: anywhere; text-align: right; font-weight: 600; }
.contact :focus-visible { outline-color: var(--white); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* Dialog detail */
dialog {
  width: min(680px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
dialog::backdrop { background: rgb(11 27 59 / .55); }
.dialog-close {
  position: sticky;
  top: 10px;
  z-index: 2;
  display: block;
  width: 44px;
  height: 44px;
  margin: 10px 10px -54px auto;
  border: 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.detail-text { padding: 24px clamp(20px, 5vw, 36px) 32px; }
.detail-text h2 { margin-top: 2px; font-size: clamp(26px, 5vw, 34px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.detail-note { margin-top: 24px; color: var(--muted); font-size: 15px; }
.detail-text .long { margin-top: 14px; }
.detail-text h3 { margin-top: 24px; font-size: 15px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { padding: 3px 10px; border-radius: 4px; background: var(--blue-pale); color: var(--blue-dark); font-size: 14px; font-weight: 500; }
.points { margin-top: 6px; }
.points li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@media (max-width: 960px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .row { grid-template-columns: 72px minmax(0, 1fr); gap: 10px 14px; }
  .row-actions { grid-column: 2; justify-content: flex-start; }
  .row .desc { display: none; }
  .catalog-head .field, .field input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
