/* Hallmark · genre: editorial · macrostructure: Split Studio · theme: Atelier · enrichment: E5 hand-built SVG (Tier B) · nav: N9 · footer: Ft4 (simplified)
 * tone: luxury · anchor hue: garnet 18° + gilt 78° · audience: florist, reseller, EO, hotel/kantor, perorangan · use: lihat profil perusahaan
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V4
 */
@import url("tokens.css");

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

html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }

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

.skip {
  position: absolute;
  left: var(--page-gutter);
  top: -3rem;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  z-index: 10;
}
.skip:focus { top: var(--space-xs); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ─── Nav · N9 edge-aligned ─────────────────────────────── */
.nav-edge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}
.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wordmark small {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-right: var(--space-2xs);
  vertical-align: 0.15em;
}

/* ─── Outlined chip (C1) · 8 states ─────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font: 500 var(--text-sm) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.chip .arrow { transition: transform var(--dur-base) var(--ease-out); }
.chip:hover { background: var(--color-ink); color: var(--color-paper); }
.chip:hover .arrow { transform: translateX(3px); }
.chip:active { transform: translateY(1px); }
.chip[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.chip--solid { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-paper); }
.chip--solid:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

/* Typographic link */
.link {
  color: var(--color-ink);
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.link:hover { color: var(--color-accent); }

/* ─── Split Studio ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: center;
}
.split--flip .split__text { order: 2; }
.split__text { min-width: 0; }

.plate {
  margin: 0;
  background: var(--color-paper-2);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: relative;
}
.plate::after {
  content: "";
  position: absolute;
  inset: var(--space-md);
  border: var(--rule-hair) solid var(--color-gold);
  opacity: 0.55;
  pointer-events: none;
}
.plate svg { width: 78%; height: auto; }

/* Botanical line-art */
.bot { fill: none; stroke: var(--color-ink-2); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.bot .bloom { fill: var(--color-accent-soft); stroke: var(--color-accent); }
.bot .dot { fill: var(--color-accent); stroke: none; }
.bot .leaf { fill: var(--color-paper-3); }
.bot .gilt { stroke: var(--color-gold); }
.bot .wrap-paper { fill: var(--color-paper); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero { padding-block: var(--space-2xl) var(--space-4xl); }
.hero h1 {
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero h1 b { font-weight: 500; color: var(--color-accent); }
.hero .lede {
  margin-top: var(--space-xl);
  max-width: 34rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-ink-2);
}
.hero .actions {
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg) var(--space-xl);
}

/* Hero entrance — one orchestrated reveal */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero .split__text > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.hero .split__text > *:nth-child(2) { animation-delay: 90ms; }
.hero .split__text > *:nth-child(3) { animation-delay: 180ms; }
.hero .plate { animation: fade 1200ms var(--ease-out) 200ms both; }

/* ─── Section heads ─────────────────────────────────────── */
.section { padding-block: var(--space-4xl); }
.section + .section { padding-top: 0; }
.section-head {
  display: grid;
  gap: var(--space-lg);
  max-width: 44rem;
  margin-bottom: var(--space-3xl);
}
.section-head h2 { font-size: var(--text-3xl); font-weight: 300; }
.section-head p { color: var(--color-ink-2); font-size: var(--text-lg); }

/* ─── Business lines ────────────────────────────────────── */
.lines { display: grid; gap: var(--space-4xl); }
.line h3 {
  font-size: var(--text-2xl);
  font-weight: 400;
  padding-bottom: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.line p.body {
  margin-top: var(--space-lg);
  max-width: 32rem;
  color: var(--color-ink-2);
}

/* ─── Audience ──────────────────────────────────────────── */
.audience {
  background: var(--color-paper-2);
  padding-block: var(--space-4xl);
}
.audience h2 { font-size: var(--text-3xl); font-weight: 300; }
.audience .intro { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 28rem; }
.who { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.who li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.who strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.15;
}
.who span { color: var(--color-ink-2); }
.audience .split { align-items: start; }

/* ─── Footer · company data ─────────────────────────────── */
.foot {
  background: var(--color-night);
  color: var(--color-night-ink);
  padding-block: var(--space-4xl) var(--space-2xl);
}
.foot a { color: var(--color-night-ink); }
.foot :focus-visible { outline-color: var(--color-night-focus); }
.foot .mast {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-3xl);
  line-height: 1;
  overflow-wrap: anywhere;
}
.foot .mast small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-night-accent);
  margin-bottom: var(--space-md);
}
.foot .tag { margin-top: var(--space-lg); color: var(--color-night-ink-2); max-width: 36rem; }

.foot-grid {
  margin: var(--space-3xl) 0 0;
  padding-top: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-night-rule);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-2xl) var(--space-3xl);
}
.foot-grid dt {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-night-accent);
  margin-bottom: var(--space-md);
}
.foot-grid dd { margin: 0; min-width: 0; }
.foot-grid address { font-style: normal; line-height: 1.65; }
.foot-grid .mono { font-size: var(--text-sm); }

.reach { display: grid; gap: var(--space-md); font-size: var(--text-sm); }
.reach a {
  text-decoration: none;
  background-image: linear-gradient(var(--color-night-accent), var(--color-night-accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  white-space: nowrap;
  justify-self: start;
  transition: color var(--dur-fast) var(--ease-out);
}
.reach a:hover { color: var(--color-night-accent); }
.reach span { display: block; color: var(--color-night-ink-2); font-size: var(--text-xs); }

.colophon {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-night-rule);
  color: var(--color-night-ink-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-xl);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { gap: var(--space-2xl); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid .addr { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__text { order: 0; }
  .hero { padding-bottom: var(--space-3xl); }
  .hero .plate { aspect-ratio: 5 / 4; }
  .section, .audience { padding-block: var(--space-3xl); }
  .lines { gap: var(--space-3xl); }
  .who li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .wordmark { font-size: var(--text-md); }
  .chip { padding: 0 var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .split__text > *, .hero .plate { animation: fade var(--dur-fast) linear both; animation-delay: 0ms; }
  .chip, .chip .arrow, .link { transition: none; }
}
