/* Design read: corporate site for Indonesian SME buyers and program reviewers, queue-ticket language, dial ENERGY 2 / RHYTHM 3 / MOTION 1.
   Draft direction proposed by the builder; no DESIGN.md exists yet.
   Motif: the queue ticket, because queue systems are Qumatic's heritage. One accent (signal orange) for the one thing to act on. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f3eee4;
  --card: #e9e2d3;
  --ink: #1a1c20;
  --muted: #565045;
  --accent: #b03a08;
  --on-accent: #f3eee4;
  --line: #1a1c20;
  --band: #1a1c20;
  --band-text: #ece8df;
  --band-muted: #a8a398;
  --band-accent: #f28a4b;
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --paper: #14161a;
  --card: #1e2127;
  --ink: #ece8df;
  --muted: #a8a398;
  --accent: #f28a4b;
  --on-accent: #14161a;
  --line: #ece8df;
  --band: #0c0d10;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Language switch: every translated block carries data-l; the other language is hidden. */
html[data-lang="en"] [data-l="id"], html[data-lang="id"] [data-l="en"] { display: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .os :focus-visible { outline-color: var(--band-accent); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* Header: wordmark, inline nav and two toggles on wide screens. Under 861px the nav becomes a disclosure menu
   (one row: wordmark left, controls right) so the header stays one 64px row instead of wrapping into three lines. */
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; padding: .625rem max(1rem, 4vw); background: var(--paper); border-bottom: 1.5px solid var(--line); }
.wordmark { font: 800 1.5rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav { display: flex; gap: 0 1.25rem; margin-right: auto; }
.top nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.top nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.tools { display: flex; gap: .5rem; }
.tools button { font: 600 .9rem var(--body); min-width: 44px; min-height: 44px; padding: 0 .9rem; background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: 3px; cursor: pointer; }
.tools button:hover, .tools button[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.tools .menu-btn { display: none; }
.menu-btn .m-open { display: none; }
.menu-btn[aria-expanded="true"] .m-closed { display: none; }
.menu-btn[aria-expanded="true"] .m-open { display: inline; }

/* Shared */
section { padding: clamp(3rem, 8vw, 6.5rem) max(1rem, 4vw); }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; }
p { margin: 0 0 1rem; max-width: 62ch; }
.muted { color: var(--muted); }
.stub { display: inline-block; font: 600 .9rem/1 var(--body); font-variant-numeric: tabular-nums; border: 1.5px dashed var(--accent); color: var(--accent); padding: .45rem .7rem; border-radius: 2px; margin-bottom: 1.25rem; }
.os .stub { color: var(--band-accent); border-color: var(--band-accent); }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border: 1.5px solid var(--line); border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.textlink { color: var(--accent); font-weight: 600; text-underline-offset: .25em; text-decoration-thickness: 2px; }

/* Hero: asymmetric, one focal point (the headline), ticket as the identity object */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: min(80vh, 46rem); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 1.75rem; max-width: 18ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Ticket: the only raised object on the page, so it is the only element with a shadow */
.ticket { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 2rem 1.75rem; box-shadow: 8px 8px 0 var(--ink); rotate: 1.5deg; text-align: left; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 58%; width: 24px; height: 24px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 50%; }
.ticket::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket-top { font-weight: 600; margin-bottom: .25rem; color: var(--muted); }
.ticket-no { font: 800 clamp(2.6rem, 6vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 2px dashed var(--line); color: var(--accent); }
.ticket-note { margin: 0; font-size: 1rem; }

/* Products: unequal sizes, because Niaga has the larger scope and Nalar is a focused, live PWA */
.products { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; border-top: 1.5px solid var(--line); }
.products > .stub, .products > h2 { grid-column: 1 / -1; }
.products h2 { margin-bottom: 1.25rem; }
.product { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1.5px solid var(--line); border-radius: 3px; background: var(--card); }
.product h3 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.product.big { grid-column: 1 / span 8; display: grid; gap: 1.5rem; align-content: space-between; }
.product.small { grid-column: 9 / -1; margin-top: 3rem; background: transparent; border-radius: 12px 3px 12px 3px; }
.product .status { font-weight: 600; color: var(--ink); }

/* Smaller shipped work: a plain two-column list, quieter than the product panels */
.also { grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1.5px solid var(--line); }
.also h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.also ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.also p { margin: .25rem 0 0; color: var(--muted); }
.also .textlink { font-size: 1.15rem; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 860px) { .also ul { grid-template-columns: 1fr; } }

/* Company OS: inverted band, text left and rules as a ledger right */
.os { background: var(--band); color: var(--band-text); }
.os .muted { color: var(--band-muted); }
.os-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.os h2 { margin-bottom: 1.5rem; }
.rules { margin: 0; border-top: 1.5px solid var(--band-muted); }
.rules dt { font: 700 1.2rem/1.3 var(--display); padding-top: 1.1rem; color: var(--band-text); }
.rules dd { margin: .3rem 0 0; padding-bottom: 1.1rem; border-bottom: 1.5px solid var(--band-muted); color: var(--band-muted); }

/* Track record: timeline with years as the left column */
.record { border-bottom: 1.5px solid var(--line); }
.record h2 { margin-bottom: 2rem; }
.timeline { list-style: none; margin: 0 0 2.5rem; padding: 0; max-width: 56rem; }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-top: 1.5px solid var(--line); }
.timeline li:last-child { border-bottom: 1.5px solid var(--line); }
.timeline .yr { font: 700 1.25rem/1.4 var(--display); font-variant-numeric: tabular-nums; color: var(--accent); }
.timeline p { margin: 0; }
.clients { color: var(--muted); max-width: 56rem; }

/* Contact */
.contact { padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact h2 { margin-bottom: 1rem; }
.mail { display: inline-block; font: 700 clamp(1.15rem, 3.6vw, 1.6rem)/1.3 var(--display); letter-spacing: -.01em; color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 2px; overflow-wrap: anywhere; min-height: 44px; }
.mail:hover { color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; padding: 1.5rem max(1rem, 4vw) 2rem; border-top: 1.5px solid var(--line); }
.foot p { margin: 0; }

/* Mobile first fixes: one column, 44px targets, no overflow */
@media (max-width: 860px) {
  .tools { margin-left: auto; }
  .tools button { padding: 0 .7rem; }
  .top { column-gap: .75rem; }
  .js .tools .menu-btn { display: inline-flex; align-items: center; }
  .js .top nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; margin: .625rem 0 0; border-top: 1.5px solid var(--line); }
  .js .top.open nav { display: flex; }
  .js .top nav a { min-height: 48px; padding: 0 .25rem; font-size: 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .ticket { rotate: 0deg; box-shadow: 5px 5px 0 var(--ink); margin-right: 5px; }
  .products { display: block; }
  .products .product + .product { margin-top: 1.5rem; }
  .product.small { margin-top: 1.5rem; }
  .os-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
  .actions .btn { width: 100%; justify-content: center; }
}
