/* ============================================================
   ARSENIC DIGITAL — Design system
   Soft light, gradient-forward, elegant. Tokens once, reused.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces — warm cream light, never harsh white */
  --bg:        #FBF7F2;
  --bg-2:      #F5EFE8;
  --surface:   #FFFFFF;
  --border:    #ECE4DA;
  --bg-plain:  #FEFEFC; /* easy-on-the-eyes white — the alternate (non-cream) sections */

  /* Text — warm near-black / warm grey */
  --text:       #1C1714;
  --text-muted: #6E655E;

  /* Gradient hues — balanced sunset: rich-but-soft purple → rose → warm orange (no blue) */
  --g1: #CA8A04; /* gold (start) */
  --g2: #EAB308; /* yellow (mid) */
  --g3: #F59E0B; /* amber (end) */
  --g1-rgb: 202,138,4;
  --g2-rgb: 234,179,8;
  --g3-rgb: 245,158,11;
  --link: #B45309; /* deep gold — inline links, small accents, focus (readable on cream) */

  /* Signature gradient */
  --grad: linear-gradient(100deg, #CA8A04 0%, #EAB308 52%, #F59E0B 100%);

  /* Radius */
  --r-btn: 10px;
  --r-card: 16px;
  --r-media: 20px;
  --r-pill: 999px;

  /* Elevation (very soft, no glow) */
  --shadow-card: 0 1px 3px rgba(28,23,20,.05), 0 12px 28px rgba(28,23,20,.05);
  --shadow-card-hover: 0 2px 6px rgba(28,23,20,.06), 0 18px 40px rgba(28,23,20,.09);
  --shadow-modal: 0 16px 40px rgba(28,23,20,.12);

  /* Layout */
  --container: 1160px;
  --pad-x: 24px;

  /* Fonts */
  --font-display: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint global warm tint so the WHOLE page reads warm between sections */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: none; /* gradient now lives in the cream sections, not a global layer */
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(var(--g3-rgb),.18); color: var(--text); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1, h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.h2, h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.h3, h3 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
.h4, h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.h5, h5 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }

.lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-muted); }
.small { font-size: 0.9375rem; }
.caption { font-size: 0.8125rem; }

p { text-wrap: pretty; }

/* Accent text — near-black text on a solid yellow block (the hallmark highlight). */
.grad-text {
  color: #1C1714;
  -webkit-text-fill-color: #1C1714;
  background: #FACC15;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  padding: 0.04em 0.16em;
  border-radius: 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Eyebrow / section label */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: 112px; position: relative; }
.section-sm { padding-block: 80px; position: relative; }

/* Centered section header rhythm: eyebrow → gradient header → one subtext */
.section-head { max-width: 660px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { max-width: 56ch; margin-inline: auto; }
.section-head.left .lead { margin-inline: 0; }

/* ============================================================
   SIGNATURE: ultra-subtle gradient washes on EVERY section
   (warm sunset washes — PRESENT & FULL, even coverage both sides)
   ============================================================ */
/* CREAM sections — warm cream-yellow base + a visible soft yellow gradient */
.section, .section-sm {
  background:
    radial-gradient(65% 68% at 0% 0%, rgba(245,158,11,0.26), transparent 66%),
    radial-gradient(65% 68% at 100% 100%, rgba(234,179,8,0.22), transparent 68%),
    var(--bg);
}
/* WHITE sections — soft easy-on-the-eyes white, alternating with the cream ones */
.section.bg-2, .section-sm.bg-2 { background: var(--bg-plain); }
.bg-surface { background: var(--surface); }

/* Soft warm gradient-wash band (CTAs) */
.cta-wash {
  position: relative;
  background:
    radial-gradient(60% 95% at 16% 50%, rgba(var(--g1-rgb), 0.10), transparent 62%),
    radial-gradient(60% 95% at 86% 50%, rgba(var(--g3-rgb), 0.10), transparent 62%),
    radial-gradient(70% 85% at 50% 120%, rgba(var(--g2-rgb), 0.07), transparent 72%),
    radial-gradient(130% 100% at 50% 45%, rgba(var(--g2-rgb), 0.04), transparent 80%),
    var(--bg-2);
}

/* legacy hooks retired */
.noise-overlay { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  min-height: 46px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn-primary, .btn-gradient {
  background: #FACC15;
  color: #1C1714;
  border: none;
  box-shadow: 0 1px 2px rgba(202,138,4,.30), 0 8px 20px rgba(202,138,4,.24);
}
.btn-primary:hover, .btn-gradient:hover { background: #EAB308; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(202,138,4,.34), 0 12px 26px rgba(202,138,4,.28); }
.btn-primary:active, .btn-gradient:active { background: #CA8A04; transform: translateY(0); box-shadow: 0 1px 2px rgba(202,138,4,.30); }

.btn-ghost {
  background: #E7E0D6;
  color: #1C1714;
  border-color: #D6CCBF;
  box-shadow: 0 1px 2px rgba(28,23,20,.06);
}
.btn-ghost:hover { background: #DCD3C6; border-color: #CABFB0; }

.btn-block { width: 100%; }
.btn span[aria-hidden] { display: inline-block; transition: transform .15s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:disabled, .btn[disabled] {
  background: var(--border); color: var(--text-muted); border: none; cursor: not-allowed; filter: none;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 600;
  font-size: 1rem;
  transition: gap .15s ease;
}
.link-arrow:hover { gap: 10px; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--g3-rgb),.4);
}

/* ---------- Logo / monogram ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-mark {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #0F0E0D;
  border: 1px solid rgba(28,23,20,.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.logo-mark .as {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--link);
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-mark .num {
  position: absolute;
  top: 2px; right: 3px;
  font-family: var(--font-display);
  font-size: 0.4375rem;
  font-weight: 500;
  color: var(--link);
  opacity: 0.45;
  line-height: 1;
}

/* ---------- Image placeholders (light) ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(20,16,40,.022) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #FBFAF9 0%, #F1EEEA 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-media);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: lowercase;
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,.6);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248,247,245,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right .btn { padding: 9px 18px; min-height: 40px; font-size: 0.9375rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  align-items: center; justify-content: center;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background:
    radial-gradient(60% 45% at 90% 6%, rgba(var(--g1-rgb),0.10), transparent 60%),
    radial-gradient(58% 48% at 8% 96%, rgba(var(--g3-rgb),0.09), transparent 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
  padding: 96px 24px 40px;
  gap: 8px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-block: 72px 40px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 1rem; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--text-muted); font-size: 1rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.settled { transition: none; }

/* ---------- Pills / tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .section { padding-block: 72px; }
  .section-sm { padding-block: 60px; }
  .section-head { margin-bottom: 44px; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .h3, h3 { font-size: 1.5rem; }
}
