/* =========================================================
   VALENCE STUDIOS — STYLES
   Palette, type, layout, components, responsive.
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #101013;
  --surface: #131317;
  --surface-2: #191920;
  --border: #26262d;
  --border-hi: #363640;
  --text: #ecebe6;
  --text-2: #a8a49b;
  --muted: #74716b;
  --accent: #c9a45c;
  --accent-2: #e2c187;
  --accent-soft: rgba(201, 164, 92, 0.08);
  --accent-line: rgba(201, 164, 92, 0.35);
  --error: #d47272;
  --radius: 4px;
  --radius-lg: 8px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   TYPE PRIMITIVES
   ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent-line);
  vertical-align: middle;
  margin-right: 12px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head--center { text-align: center; margin: 0 auto 64px; }
.muted { color: var(--muted); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #1a1409;
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn--ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent-2);
}
.btn--wide { width: 100%; padding: 16px 26px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav--scrolled {
  background: rgba(10, 10, 11, 0.85);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #1a1409;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  border-radius: 2px;
  font-size: 16px;
}
.nav__wordmark { font-weight: 400; }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-2);
}
.nav__links a { transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--accent-2); }
.nav__cta { padding: 10px 20px; font-size: 13px; }

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 164, 92, 0.08), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--text);
  font-variation-settings: 'opsz' 144;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 0 40px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   SECTION SPACING
   ========================================================= */
section:not(.hero) { padding: 100px 0; }
section + section { border-top: 1px solid var(--border); }

/* =========================================================
   WHO WE HELP
   ========================================================= */
.who__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.who__intro { position: sticky; top: 100px; }
.who__body p { font-size: 17px; line-height: 1.7; margin: 0 0 20px; }
.tags {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tags li:hover { border-color: var(--accent-line); color: var(--accent-2); }

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--surface); }
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* =========================================================
   WHY IT MATTERS
   ========================================================= */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.why__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.why__list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.why__list li:first-child { padding-top: 0; }
.why__list li:last-child { border-bottom: none; padding-bottom: 0; }
.why__label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}
.why__list p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.65; }

/* =========================================================
   PROCESS
   ========================================================= */
.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process__steps li { position: relative; }
.process__steps li::before {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: var(--border);
}
.process__steps li:last-child::before { display: none; }
.process__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 400;
}
.process__steps h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
}
.process__steps p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing__card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
}
.pricing__card::before {
  content: '';
  position: absolute;
  top: -1px; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.pricing__header { text-align: center; margin-bottom: 36px; }
.pricing__label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}
.pricing__price { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pricing__amt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing__unit { color: var(--muted); font-size: 15px; }
.pricing__features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 14px;
}
.pricing__features li {
  padding-left: 28px;
  position: relative;
  color: var(--text-2);
  font-size: 15px;
}
.pricing__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.pricing__note {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__list { max-width: 800px; }
.faq__list details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq__list details:first-of-type { border-top: 1px solid var(--border); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list .chev {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
}
.faq__list .chev::before,
.faq__list .chev::after {
  content: '';
  position: absolute;
  background: var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq__list .chev::before { width: 12px; height: 1px; }
.faq__list .chev::after { width: 1px; height: 12px; transition: transform 0.3s var(--ease); }
.faq__list details[open] .chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__list details p {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact__lede {
  font-size: 17px;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 400px;
}
.contact__details {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.contact__details p { margin: 0; font-size: 15px; }
.contact__details .muted {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact__form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
  font-weight: 500;
}
.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font: 400 15px var(--sans);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 100px; font-family: var(--sans); }
.field--error input,
.field--error textarea { border-color: var(--error); }
.field__error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  min-height: 14px;
}
.form__thanks {
  padding: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-size: 14px;
  text-align: center;
  margin: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  background: var(--bg-2);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer__mark {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
}
.footer__brand p { margin: 0; }
.footer__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col p { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.footer__col a:hover { color: var(--accent-2); }
.footer__base { padding-top: 32px; text-align: center; font-size: 13px; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal--in { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav--open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 20px;
  }
  .nav--open .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav--open .nav__links a:last-child { border-bottom: none; }

  section:not(.hero) { padding: 72px 0; }
  .hero { padding: 140px 0 80px; }
  .section-head { margin-bottom: 40px; }
  .who__grid,
  .why__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .who__intro { position: static; }
  .services__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process__steps li::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .pricing__card { padding: 36px 24px; }
  .pricing__amt { font-size: 52px; }
  .faq__list summary { font-size: 17px; }
}

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