/* NOM Creative Agency — alternatif "brutalist biru"
   Layout concept: the whole page is one ruled sheet — every section is a row of cells
   divided by 2px ink rules, like a tide table. Ocean blue is used as a flat field, never a gradient. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #F3F5F7;
  --ink: #0A0E1A;
  --ink-2: #3A4458;
  --blue: #0050B8;          /* biru laut */
  --blue-deep: #00336F;
  --blue-50: #D5E3F5;
  --buoy: #FF5A2E;          /* focus ring & one flag only */

  --sans: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bw: 2px;
  --pad: clamp(18px, 2.4vw, 36px);
  --max: 1480px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--blue); color: var(--paper); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type roles ---------- */
.d1, .d2, .d3, .d4 {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.d1 { font-size: clamp(3.3rem, .6rem + 8.6vw, 10.4rem); line-height: .9; }
.d2 { font-size: clamp(2.7rem, .9rem + 5.4vw, 7rem); line-height: .86; }
.d3 { font-size: clamp(2.8rem, 1.6rem + 3.4vw, 5.2rem); line-height: .88; }
.d4 { font-size: clamp(1.55rem, 1.2rem + 1vw, 2.2rem); line-height: .95; font-stretch: 72%; font-weight: 800; }
.d1 mark, .d2 mark {
  background: var(--blue); color: var(--paper);
  padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.label {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.4;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 20px;
  background: var(--paper); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--sans); font-weight: 750; font-size: .9375rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .08s linear, box-shadow .08s linear;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--blue { background: var(--blue); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--lg { min-height: 60px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; gap: .4em; align-items: center; align-self: flex-start;
  font-weight: 700; text-transform: uppercase; font-size: .875rem; letter-spacing: .03em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.link::after { content: "→"; display: inline-block; text-decoration: none; }
.link:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.bar__in { max-width: var(--max); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; padding-inline: clamp(16px, 2.4vw, 36px); }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark__box {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--blue); color: var(--paper);
  font-stretch: 62%; font-weight: 900; font-size: 1.6rem; line-height: 1;
}
.mark__name { font-stretch: 62%; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.mark__sub { font-weight: 600; font-stretch: 75%; font-size: 1.05rem; color: var(--ink-2); }
.bar__nav { display: flex; gap: 4px; }
.bar__nav a {
  padding: 8px 10px; text-decoration: none; text-transform: uppercase;
  font-weight: 700; font-size: .875rem; letter-spacing: .03em;
}
.bar__nav a:hover { background: var(--ink); color: var(--paper); }
.bar__nav a[aria-current="true"] { background: var(--blue); color: var(--paper); }
.bar__cta { min-height: 42px; box-shadow: 3px 3px 0 var(--ink); }
.bar__toggle { display: none; }

.menu { border-top: var(--bw) solid var(--ink); padding: 0 0 20px; background: var(--paper); }
.menu nav { display: grid; margin-bottom: 20px; }
.menu nav a {
  padding: 14px 16px; border-bottom: var(--bw) solid var(--ink); text-decoration: none;
  font-stretch: 62%; font-weight: 850; font-size: 2rem; text-transform: uppercase; line-height: 1;
}
.menu nav a:hover { background: var(--blue); color: var(--paper); }
.menu > .btn { margin-inline: 16px; width: calc(100% - 32px); }

@media (max-width: 899px) {
  .bar__nav, .bar__cta, .mark__sub { display: none; }
  .bar__in { height: 58px; }
  .bar__toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    background: var(--paper); border: var(--bw) solid var(--ink); cursor: pointer;
    font-weight: 750; text-transform: uppercase; font-size: .875rem; letter-spacing: .03em;
  }
  .bar__toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
}
@media (min-width: 900px) { .menu { display: none !important; } }

/* ---------- Sheet & grid ---------- */
.sheet { max-width: var(--max); margin: 0 auto; }
@media (min-width: 1481px) { .sheet { border-inline: var(--bw) solid var(--ink); } }
section { scroll-margin-top: 66px; }
.row { display: grid; border-bottom: var(--bw) solid var(--ink); }
.cell { padding: var(--pad); min-width: 0; }
.row > .cell + .cell { border-left: var(--bw) solid var(--ink); }
@media (max-width: 899px) {
  .row { grid-template-columns: 1fr !important; }
  .row > .cell + .cell { border-left: 0; border-top: var(--bw) solid var(--ink); }
}

/* ---------- Hero ---------- */
.hero__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero__head { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: clamp(28px, 4vw, 56px); }
.hero__head .label { color: var(--ink-2); }
.hero__chart { padding: 0; display: flex; flex-direction: column; min-height: 360px; }
.chart__cap {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad); border-bottom: var(--bw) solid var(--ink);
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.chart__stage { position: relative; flex: 1; min-height: 300px; background: var(--paper); overflow: hidden; }
.tide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tide.is-off { display: none; }
.tide.is-poster { background: url("../img/tide-poster.png") center / cover no-repeat; opacity: 1 !important; }
.js-anim .tide { opacity: 0; }

.hero__mid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero__lede { display: flex; flex-direction: column; gap: 22px; }
.hero__lede p { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.45; max-width: 44ch; font-weight: 450; }
.hero__cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: var(--blue); color: var(--paper); text-decoration: none; min-height: 220px;
}
.hero__cta-text { font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.4rem, 1.4rem + 2.6vw, 4.2rem); line-height: .88; max-width: 9ch; }
.hero__cta-arrow { width: 56px; height: 56px; align-self: flex-end; transition: transform .15s linear; }
.hero__cta:hover { background: var(--ink); }
.hero__cta:hover .hero__cta-arrow { transform: translateX(8px); }
.hero__cta:focus-visible { outline-offset: -6px; }

.index { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.index__item { display: grid; gap: 6px; text-decoration: none; padding-block: 18px 22px; }
.index__n { font-family: var(--mono); font-size: .78rem; color: var(--blue); }
.index__t { font-stretch: 62%; font-weight: 850; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.index__d { font-size: .875rem; color: var(--ink-2); }
.index__item:hover { background: var(--ink); color: var(--paper); }
.index__item:hover .index__d, .index__item:hover .index__n { color: var(--blue-50); }
.index__item:focus-visible { outline-offset: -5px; }
@media (max-width: 899px) {
  .hero__chart { min-height: 0; order: -1; }
  .chart__stage { min-height: 46vw; }
  .index { grid-template-columns: 1fr 1fr !important; }
  .index__item:nth-child(even) { border-left: var(--bw) solid var(--ink); }
  .index__item:nth-child(-n+2) { border-top: 0; }
  .index__item:last-child { grid-column: 1 / -1; }
  .index__t { font-size: 1.6rem; }
}

/* ---------- Section head ---------- */
.shead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.shead > .cell:only-child { grid-column: 1 / -1; }
.shead .cell:first-child { display: grid; gap: 18px; padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.shead .label { color: var(--blue); }
.shead__lede { display: flex; align-items: flex-end; }
.shead__lede p { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 42ch; }

/* ---------- Layers ---------- */
.layers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layer { display: flex; flex-direction: column; gap: 20px; min-height: 560px; }
.layer .label { color: var(--blue); }
.layer__q { font-size: 1.15rem; line-height: 1.45; font-weight: 500; max-width: 30ch; }
.layer .list { margin-top: auto; }
.layer--2 { background: var(--blue-50); }
.layer--3 { background: var(--blue); color: var(--paper); }
.layer--3 .label { color: var(--blue-50); }
.layer--3 .list li { border-color: rgba(243, 245, 247, .45); }
.layer--3 .link:hover { background: var(--paper); color: var(--blue); }
@media (max-width: 899px) { .layer { min-height: 0; } }

.list { display: grid; }
.list li { padding: 9px 0; border-top: 1.5px solid currentColor; font-weight: 500; font-size: 1rem; line-height: 1.35; }
.list li:last-child { border-bottom: 1.5px solid currentColor; }

/* ---------- Work table ---------- */
.work__row { grid-template-columns: 96px minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); scroll-margin-top: 66px; }
.work__row:hover, .work__row.is-target { background: var(--blue-50); }
.work__no { font-stretch: 62%; font-weight: 850; font-size: 2.4rem; line-height: .9; color: var(--blue); }
.work__name { display: grid; gap: 10px; align-content: start; }
.work__name .label { color: var(--ink-2); }
.work__body p { max-width: 56ch; }
.work__stack { display: grid; align-content: start; gap: 4px; font-family: var(--mono); font-size: .8rem; }
.work__stack li::before { content: "— "; color: var(--blue); }
@media (max-width: 1099px) and (min-width: 900px) {
  .work__row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr); }
  .work__stack { grid-column: 2 / -1; border-left: 0 !important; border-top: var(--bw) solid var(--ink); }
}
@media (max-width: 899px) {
  .work__no { font-size: 2rem; padding-bottom: 0; }
  .work__row > .cell + .cell { border-top: 0; padding-top: 0; }
  .work__name { padding-top: 10px !important; }
}

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.steps li { display: grid; align-content: start; gap: 14px; }
.steps__n { font-stretch: 62%; font-weight: 900; font-size: clamp(5rem, 3rem + 5vw, 9rem); line-height: .8; color: var(--blue); }
.steps p { color: var(--ink-2); }
@media (max-width: 899px) and (min-width: 600px) {
  .steps { grid-template-columns: 1fr 1fr !important; }
  .steps li:nth-child(even) { border-left: var(--bw) solid var(--ink); }
  .steps li:nth-child(2) { border-top: 0; }
}

/* ---------- Plans ---------- */
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; gap: 18px; position: relative; padding-top: calc(var(--pad) + 18px); }
.plan__for { color: var(--ink-2); min-height: 3.1em; }
.plan__price {
  display: grid; gap: 6px; padding-block: 16px; border-block: var(--bw) solid currentColor;
  font-stretch: 62%; font-weight: 900; font-size: clamp(3rem, 2rem + 2.6vw, 4.6rem); line-height: .9; text-transform: uppercase;
}
.plan__price .label { font-stretch: 100%; font-weight: 500; }
.plan .list { flex: 1; margin-bottom: 8px; }
.plan .list li:first-child { border-top: 0; }
.plan--pick { background: var(--blue); color: var(--paper); }
.plan--pick .plan__for { color: var(--blue-50); }
.plan__flag {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 6px var(--pad); background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.plan--pick .btn { box-shadow: 4px 4px 0 var(--ink); }
.plans__note { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding-block: 16px; }
@media (max-width: 899px) { .plan__for { min-height: 0; } .plan--pick { padding-top: calc(var(--pad) + 30px); } }

/* ---------- About & FAQ ---------- */
.about, .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.about > .cell:first-child, .faq > .cell:first-child { display: grid; gap: 18px; align-content: start; padding-block: clamp(36px, 5vw, 72px); }
.about .label, .faq .label { color: var(--blue); }
@media (min-width: 900px) {
  .about > .cell:first-child > *, .faq > .cell:first-child > * { position: sticky; top: 96px; }
  .about > .cell:first-child .label, .faq > .cell:first-child .label { position: static; }
}
.about__body { display: grid; gap: 20px; align-content: start; padding-block: clamp(36px, 5vw, 72px); }
.about__lead { font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.35; font-weight: 600; max-width: 34ch; }
.about__body > p:not(.about__lead) { color: var(--ink-2); max-width: 60ch; }
.facts { border-top: var(--bw) solid var(--ink); margin-top: 8px; }
.facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid var(--ink); }
.facts dt { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.facts dd { font-weight: 600; }
.facts a { color: var(--blue); text-underline-offset: 3px; }
@media (max-width: 599px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.faq__list { padding: 0; }
.faq details { border-bottom: var(--bw) solid var(--ink); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px var(--pad); font-weight: 700; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border: var(--bw) solid var(--ink); font-family: var(--mono); font-weight: 600; font-size: 1.1rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--ink); color: var(--paper); }
.faq summary:hover { background: var(--blue-50); }
.faq details[open] summary { background: var(--blue); color: var(--paper); }
.faq details[open] summary::after { border-color: var(--paper); background: var(--paper); color: var(--blue); }
.faq details p { padding: 18px var(--pad) 24px; max-width: 64ch; color: var(--ink-2); }
.faq details a { color: var(--blue); font-weight: 600; }
.faq summary:focus-visible { outline-offset: -5px; }

/* ---------- Contact ---------- */
.contact__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.contact__head {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--blue); color: var(--paper);
  display: flex; flex-direction: column; gap: 24px; padding-block: clamp(40px, 6vw, 88px);
}
.contact__head .tide { z-index: -1; }
.contact__head .label { color: var(--blue-50); }
.contact__lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); max-width: 34ch; }
.contact__direct { margin-top: auto; display: grid; gap: 0; border-top: var(--bw) solid var(--paper); max-width: 520px; }
.contact__direct > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1.5px solid rgba(243, 245, 247, .6); }
.contact__direct dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; color: var(--blue-50); }
.contact__direct dd { font-weight: 650; }
.contact__direct a { text-underline-offset: 3px; }

.form { display: grid; gap: 18px; align-content: start; padding-block: clamp(32px, 4vw, 56px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 750; text-transform: uppercase; font-size: .875rem; letter-spacing: .03em; }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 0;
  font-size: 1rem; color: var(--ink);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 116px; }
.field ::placeholder { color: #6B7588; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #C62D0A; box-shadow: 4px 4px 0 #C62D0A; }
.field__error { font-family: var(--mono); font-size: .8rem; color: #B42A0A; font-weight: 600; }
.form__status { font-size: .9375rem; min-height: 1.4em; }
.form__status a { color: var(--blue); font-weight: 700; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); }
.foot__in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 64px) clamp(16px, 2.4vw, 36px) 28px; }
.foot__word { font-stretch: 62%; font-weight: 900; font-size: clamp(5rem, 3rem + 8vw, 11rem); line-height: .8; color: var(--blue-50); }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 28px; margin-top: 36px; padding-top: 20px; border-top: var(--bw) solid var(--paper); font-size: .9375rem; }
.foot nav { display: grid; gap: 4px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { background: var(--paper); color: var(--ink); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #AAB4C6; }
@media (max-width: 799px) { .foot__cols { grid-template-columns: 1fr; } }

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    min-height: 54px; background: var(--blue); color: var(--paper);
    border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    font-weight: 750; text-transform: uppercase; font-size: .9375rem; letter-spacing: .02em; text-decoration: none;
    transform: translateY(160%); transition: transform .25s steps(4, end);
  }
  .dock.is-shown { transform: none; }
  .foot__in { padding-bottom: 96px; }
}

/* ---------- Wipe reveal (added by main.js) ---------- */
.wipe-host { position: relative; }
.wipe { position: absolute; inset: -.04em -.06em; background: var(--blue); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.contact__head .wipe { background: var(--paper); }
.is-wiping, .is-wiping mark { color: transparent !important; }
.is-wiping mark { background: transparent !important; }
.js-anim:not(.anim-ready) .hero__head h1 { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
