/* Hallmark · genre: editorial · macrostructure: Split Studio · theme: custom-light (oat paper, vermilion accent) · enrichment: real screenshots, no chrome · nav: N9 · footer: Ft1
 * H2 knobs: ratio=7/5, right=proof column, divider=negative space · C1 chip: rectangular, arrow · F3 spec sheet: 2 columns, every row
 * tone: editorial, calm · audience: small businesses in Bhutan and abroad · use: message on WhatsApp
 * pre-emit critique: P4 H5 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-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  background: var(--color-ink);
  color: var(--color-on-ink);
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-display);
  z-index: 10;
}
.skip:focus { top: var(--space-sm); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn--solid { background: var(--color-ink); color: var(--color-on-ink); }
.btn--solid:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn--line { background: transparent; color: var(--color-ink); }
.btn--line:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn:active { transform: translateY(1px); }
.btn .arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }

.wa-icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

/* ---------- nav (N9 edge-aligned) ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
}
.wordmark { display: inline-block; flex: none; line-height: 0; }
.wordmark img { height: 2.25rem; width: auto; }

/* ---------- hero (H2 split diptych 7/5) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-3xl);
  align-items: end;
  padding-block: var(--space-2xl) var(--space-3xl);
}
.hero h1 { font-size: var(--text-display); max-width: 13ch; }
.hero .lede {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 46ch;
}
.hero .actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}
.hero .number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-neutral);
  white-space: nowrap;
}

.live h2 {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-neutral);
  padding-bottom: var(--space-xs);
}
.live ol { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.live li { border-bottom: var(--rule); }
.live a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: baseline;
  padding-block: var(--space-sm);
  text-decoration: none;
}
.live .domain {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease-out);
}
.live .kind { font-size: var(--text-sm); color: var(--color-neutral); white-space: nowrap; }
.live a:hover .domain { color: var(--color-accent); }

/* ---------- work modules (Split Studio) ---------- */

.work { padding-bottom: var(--space-3xl); }
.work > .split:first-child { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3xl);
  align-items: center;
  padding-block: var(--space-3xl);
}
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip > .text { order: 2; }
.split--flip > :not(.text) { order: 1; }

.text h2 { font-size: var(--text-3xl); }
.text .kind {
  margin-top: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-accent);
}
.text .about { margin-top: var(--space-md); max-width: var(--measure); }
.text h3 {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-neutral);
}
.built { list-style: none; margin: var(--space-2xs) 0 0; padding: 0; }
.built li {
  padding-block: var(--space-2xs);
  border-bottom: var(--rule);
  font-size: var(--text-base);
}
.text .btn { margin-top: var(--space-lg); }

/* desktop and phone screenshots, real pictures, hairline only */
.proof {
  position: relative;
  aspect-ratio: 100 / 66;
  margin: 0;
}
.proof img {
  position: absolute;
  border: var(--rule);
  border-radius: var(--radius-shot);
  box-shadow: var(--shadow-shot);
  background: var(--color-paper-2);
}
.proof .desk { top: 0; left: 0; width: 88%; }
.proof .phone { right: 0; bottom: 0; width: 24%; }
.split--flip .proof .desk { left: auto; right: 0; }
.split--flip .proof .phone { right: auto; left: 0; }

/* ---------- Instagram ---------- */

.social {
  background: var(--color-paper-2);
  border-block: var(--rule);
}
.social .split { padding-block: var(--space-4xl); }
.stats { display: grid; gap: var(--space-xl); }
.stat { border-top: 1.5px solid var(--color-ink); padding-top: var(--space-sm); }
.stat .count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .who { margin-top: var(--space-xs); max-width: 40ch; }
.stat .who a {
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.2em;
}
.stat .who a:hover { color: var(--color-accent); }
.social .note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-neutral); }

/* ---------- what a site can include (F3 spec sheet) ---------- */

.includes .split { align-items: start; }
.spec { margin: 0; border-top: 1.5px solid var(--color-ink); }
.spec div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: var(--rule);
}
.spec dt { font-family: var(--font-display); font-weight: 500; }
.spec dd { margin: 0; color: var(--color-muted); }

/* ---------- contact ---------- */

.contact {
  background: var(--color-ink);
  color: var(--color-on-ink);
  padding-block: var(--space-4xl);
}
.contact h2 { font-size: var(--text-display); max-width: 14ch; }
.contact p { margin-top: var(--space-md); max-width: 46ch; font-size: var(--text-lg); line-height: 1.5; }
.contact .actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: center; }
.contact .btn--solid { background: var(--color-on-ink); color: var(--color-ink); border-color: var(--color-on-ink); }
.contact .btn--solid:hover { background: var(--color-paper-2); border-color: var(--color-paper-2); }
.contact .number { font-family: var(--font-display); font-size: var(--text-lg); white-space: nowrap; }
.contact :focus-visible { outline-color: var(--color-on-ink); }

/* ---------- footer (Ft1 mast-headed) ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
  padding-block: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-neutral);
}
.foot .wordmark img { height: 2.5rem; }

/* ---------- reveal: halves cross-fade, lightly staggered ---------- */

.js .reveal > * { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.js .reveal > :not(.text) { transition-delay: 120ms; }
.js .reveal.is-in > * { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal > * { transition-duration: 150ms; transition-delay: 0ms; }
  .btn .arrow, .btn { transition: none; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 960px) {
  .hero,
  .split,
  .split--flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { padding-block: var(--space-xl) var(--space-3xl); }
  .split { padding-block: var(--space-2xl); }
  .split--flip > .text { order: 1; }
  .split--flip > :not(.text) { order: 2; }
  .social .split, .contact { padding-block: var(--space-3xl); }
}

@media (max-width: 520px) {
  .top .btn .label-long { display: none; }
  .live a { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .live .domain { font-size: var(--text-base); white-space: nowrap; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
  .proof { aspect-ratio: 100 / 72; }
  .proof .desk { width: 92%; }
  .proof .phone { width: 28%; }
}

@media (max-width: 380px) {
  .top .wordmark img { height: 1.75rem; }
  .top .btn { padding-inline: var(--space-sm); }
}
