/* VizLab Indonesia — tokens follow DESIGN.md */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-wdth.woff2") format("woff2-variations"), url("assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF6F0;
  --paper-2: #F2EBE1;
  --peach: #FFBE6A;
  --ink: #1C1715;
  --ink-2: #5E534D;
  --line: #E2D8CC;
  --red: #A3262A;
  --red-dark: #82191D;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --t-3xl: clamp(2.5rem, 1rem + 6vw, 6rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --section: var(--s-9);
  --gutter: 24px;
  --max: 1200px;
  --r-media: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
p { margin: 0 0 var(--s-4); }
h1, h2, h3 { margin: 0; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
.eyebrow {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: var(--s-4);
}
.h2, .hero-title, .contact-title {
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
}
.h2 { font-size: var(--t-2xl); line-height: 1.05; max-width: 18ch; }
.lead { font-size: var(--t-lg); line-height: 1.5; max-width: 52ch; }
.red { color: var(--red); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-5);
  font: 600 var(--t-sm)/1 var(--font); letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 110px; height: auto; }
.nav { display: flex; gap: var(--s-6); }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: var(--s-2) 0; }
.nav a:hover { color: var(--red); }
.menu-btn { display: none; }

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: var(--s-2);
    background: none; border: 0; padding: var(--s-2) 0; min-height: 44px;
    font: 600 var(--t-sm) var(--font); color: var(--ink); cursor: pointer;
  }
  .menu-icon, .menu-icon::before { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .menu-icon::before { content: ""; position: absolute; top: 6px; }
  .menu-icon { transform: translateY(-3px); }
  .menu-btn[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: var(--s-2) var(--gutter) var(--s-4);
  }
  .nav.open { display: flex; }
  .nav a { font-size: var(--t-lg); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
  .nav a:first-child { border-top: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: var(--s-9) 0 var(--s-7); }
.hero-slash { position: absolute; right: -40px; top: 40px; width: min(36vw, 420px); height: auto; fill: var(--paper-2); z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero-title { font-size: var(--t-3xl); line-height: 0.95; max-width: 11ch; margin-bottom: var(--s-6); }
.formula {
  list-style: none; margin: var(--s-9) 0 0; padding: var(--s-4) 0 0;
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  counter-reset: f;
}
.formula li { counter-increment: f; }
.formula li::before { content: "0" counter(f); display: block; color: var(--red); margin-bottom: var(--s-1); }
@media (max-width: 720px) {
  .hero { padding-top: var(--s-8); }
  .formula { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); margin-top: var(--s-8); }
  .hero-slash { opacity: .7; width: 60vw; top: 0; right: -30vw; }
}

/* Sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-2); border-top: 0; }
.section-alt + .section { border-top: 0; }
.section-head { margin-bottom: var(--s-8); }
@media (max-width: 720px) { :root { --section: var(--s-8); } .section-head { margin-bottom: var(--s-7); } }
@media (max-width: 400px) { :root { --gutter: 16px; } }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-5);
  align-items: baseline; padding: var(--s-6) 0; border-bottom: 1px solid var(--line);
}
.service .num { font-size: var(--t-sm); font-weight: 600; color: var(--red); }
.service h3 { font-size: var(--t-xl); font-stretch: 125%; font-weight: 700; line-height: 1.15; }
.service p { margin: 0; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 860px) {
  .service { grid-template-columns: 48px minmax(0, 1fr); row-gap: var(--s-2); padding: var(--s-5) 0; }
  .service p { grid-column: 2; }
}

/* Work */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
@media (max-width: 720px) { .work-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); } }
.work-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: var(--ink); border-radius: var(--r-media); overflow: hidden; cursor: pointer;
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.work-media:hover img { transform: scale(1.03); }
.work-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--paper); color: var(--ink); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  font: 600 var(--t-xs)/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
}
.play svg { width: 20px; height: 20px; fill: var(--paper); background: var(--red); padding: 5px; }
.work-media:hover .play svg { background: var(--red-dark); }
.work-meta { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.work-title { font-size: var(--t-xl); font-weight: 700; line-height: 1.2; margin-top: var(--s-2); }

/* Clients */
.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.clients li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 128px; padding: var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.clients img {
  max-width: 100%; max-height: 72px; width: auto; height: 48px; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s;
}
.clients li:hover img { filter: none; opacity: 1; }
.client-name { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
@media (max-width: 960px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } .clients li { height: 104px; padding: var(--s-4); } .clients img { max-height: 52px; } }
@media (max-width: 359px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none) { .clients img { filter: none; opacity: 1; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-8); }
.about .section-head { margin-bottom: 0; }
.about-body p:not(.lead) { color: var(--ink-2); max-width: 60ch; }
.about-body .lead { margin-bottom: var(--s-5); }
.founders { display: flex; flex-wrap: wrap; gap: var(--s-7); margin: var(--s-7) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.founders dt { font-weight: 700; }
.founders dd { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* Contact */
.contact { background: var(--peach); padding: var(--section) 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-8); align-items: end; }
.contact-title { font-size: var(--t-2xl); line-height: 1.05; color: var(--red-dark); max-width: 14ch; }
.contact .eyebrow { color: var(--ink); }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.contact-details p { margin-bottom: var(--s-1); }
.contact a { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact a:hover { color: var(--red-dark); }
.contact :focus-visible { outline-color: var(--ink); }
address { font-style: normal; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); } }
@media (max-width: 480px) { .contact-details { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { padding: var(--s-6) 0; font-size: var(--t-sm); color: var(--ink-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner img { width: 64px; height: auto; }
.site-footer a { color: var(--ink-2); }
