:root {
  --color-primary: #171c20;
  --color-secondary: #1a4f86;
  --color-accent: #1a4f86;
  --color-background: #f3f5f4;
  --color-surface: #e6eaec;
  --color-text: #171c20;
  --color-muted: #3e4a52;
  --color-cta: #1a4f86;
  --line: rgba(23, 28, 32, 0.16);
  --pad: clamp(1.25rem, 4.5vw, 5rem);
  --display: "Space Grotesk", "Avenir Next", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #d5e2f2;
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  z-index: 40;
  left: var(--pad);
  top: 0.75rem;
  transform: translateY(-160%);
  padding: 0.6rem 0.9rem;
  background: var(--color-secondary);
  color: var(--color-background);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

#hantar,
#siapa,
#hubungi {
  scroll-margin-top: 4.5rem;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--pad);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: calc(0.8rem + env(safe-area-inset-top));
  padding-bottom: 0.8rem;
  background: var(--color-background);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 1.6rem;
  height: 0.95rem;
  color: var(--color-secondary);
  flex: none;
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--color-secondary);
}

.menu {
  display: none;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  padding: clamp(1.8rem, 5vh, 3rem) var(--pad) clamp(2.2rem, 6vh, 3.6rem);
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--color-secondary);
  font-weight: 600;
}

h1 {
  margin: 0;
}

.word {
  display: block;
  margin-right: calc(var(--pad) * -1);
  margin-left: calc(var(--pad) * -1);
  padding: 0 var(--pad) 0.15rem;
  border-bottom: 12px solid var(--color-secondary);
  font-family: var(--display);
  font-size: clamp(4.6rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.follow {
  display: block;
  max-width: 16ch;
  margin-top: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
}

.lede,
.lanes p,
.who p,
.contact p {
  margin: 0;
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--color-muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  margin-top: 1.2rem;
  padding: 0.5rem 1.1rem;
  background: var(--color-cta);
  color: var(--color-background);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  background: #163f6c;
}

.lanes {
  padding: clamp(2.5rem, 6vw, 4.2rem) var(--pad);
  background: var(--color-surface);
}

h2 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols article {
  padding: 0 1.25rem;
  border-left: 1px solid var(--line);
}

.cols article:first-child {
  padding-left: 0;
  border-left: 0;
}

.cols h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.cols p {
  color: var(--color-muted);
}

.who {
  padding: clamp(2.5rem, 6vw, 4.2rem) var(--pad);
}

.who p {
  max-width: 36rem;
  margin-top: 0.7rem;
  color: var(--color-muted);
}

.contact {
  padding: clamp(2.5rem, 7vw, 4.6rem) var(--pad);
  background: var(--color-primary);
  color: var(--color-background);
}

.contact .kicker,
.contact h2,
.contact p,
.mail {
  color: var(--color-background);
}

.contact .cta {
  background: var(--color-background);
  color: var(--color-primary);
}

.contact .cta:hover {
  background: #ffffff;
}

.contact .cta:focus-visible,
.mail:focus-visible {
  outline-color: var(--color-background);
}

.mail {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail:hover {
  text-decoration: underline;
}

.foot {
  padding-top: 1.1rem;
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 12px solid var(--color-secondary);
}

.foot .wordmark {
  color: var(--color-text);
}

.foot p {
  margin: 0;
}

@media (max-width: 720px) {
  .menu {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.3rem var(--pad) 0.75rem;
    background: var(--color-primary);
  }

  .top.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(243, 245, 244, 0.2);
    color: var(--color-background);
  }

  .cols {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .cols article {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
  }

  .cols article:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 400px) {
  .wordmark {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
}

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