/* FirstPoint Studios — shared styles */
:root {
  --bg: #f4efe7;
  --bg-alt: #ebe4d7;
  --paper: #ffffff;
  --ink: #0b0a09;
  --ink-2: #1a1714;
  --muted: #7a736a;
  --muted-2: #a39b8e;
  --line: #d9d1c2;
  --line-2: #2a2622;
  --copper: #b87333;
  --copper-2: #8f5823;
  --orange: #F47216;
  --orange-2: #d96510;
  --dark: #0b0a09;
  --dark-2: #15120f;
  --radius: 2px;
  --container: 1360px;
  --gutter: 32px;
  --f-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

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

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

/* ── Typography ─────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.h1 { font-size: clamp(44px, 7vw, 108px); font-weight: 700; letter-spacing: -0.035em; line-height: 0.96; }
.h2 { font-size: clamp(32px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; }
.italic { font-style: italic; }
.mono { font-family: var(--f-mono); }
.small { font-size: 13px; color: var(--muted); }

/* ── Header / Nav ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-bar {
  width: 100%;
  height: 72px;
  padding: 0 clamp(20px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-bar .nav-links { flex: 1; justify-content: center; }
body.is-scrolled .nav-bar { height: 60px; }
.nav-bar { transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--dark);
  display: grid; place-items: center;
  border-radius: 6px;
  overflow: hidden;
}
.brand-mark img { width: 22px; height: 22px; object-fit: contain; }
.brand-name {
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--orange);
  margin-top: 4px;
  width: 16px;
}
.nav-cta {
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, transform 0.18s;
}
.nav-cta:hover { background: var(--orange); }
.nav-cta .arrow { display: inline-block; transition: transform 0.18s; }
.nav-cta:hover .arrow { transform: translateX(2px); }

.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dark);
  color: #fff;
}
.btn-primary:hover { background: var(--orange); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover { background: var(--orange-2); }
.btn .arr {
  width: 14px; height: 14px;
  position: relative;
  transition: transform 0.18s;
}
.btn .arr::after {
  content: ''; position: absolute; inset: 0;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  width: 7px; height: 7px;
  top: 3px; left: 3px;
}
.btn:hover .arr { transform: translateX(3px); }

/* ── Section basics ─────────────────────────────── */
section { padding: 96px 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.section-head h2 { max-width: 22ch; }
.section-head .lead { justify-self: start; }

/* ── Dark sections ──────────────────────────────── */
.dark-section {
  background: var(--dark);
  color: #fff;
}
.dark-section .lead { color: rgba(255,255,255,0.72); }
.dark-section .eyebrow { color: rgba(255,255,255,0.5); }
.dark-section .small { color: rgba(255,255,255,0.55); }
.dark-section .section-head { border-bottom-color: rgba(255,255,255,0.12); }
.dark-section .section-num { color: rgba(255,255,255,0.5); }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-title {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--orange); }
.footer-brand p {
  margin-top: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 34ch;
  font-size: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  color: rgba(255,255,255,0.45);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Placeholder imagery ────────────────────────── */
.ph {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--ink) 4%, transparent) 0 1px,
    transparent 1px 10px
  ), var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ph.dark {
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0 1px,
    transparent 1px 10px
  ), #141210;
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}

/* ── Page hero (interior pages) ─────────────────── */
.page-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 20px; display: block; }
.page-hero h1 {
  font-size: clamp(44px, 7.5vw, 112px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 0.95;
  max-width: 14ch;
}
.page-hero .lead { margin-top: 28px; max-width: 60ch; }

/* ── Breadcrumb trail at top ────────────────────── */
.crumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 40px;
}
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 10px; color: var(--muted-2); }

/* ── Utility ────────────────────────────────────── */
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-dark { height: 1px; background: rgba(255,255,255,0.1); width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  background: var(--paper);
}
.tag.live { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }
.tag.dev { color: var(--copper); border-color: color-mix(in srgb, var(--copper) 40%, var(--line)); }
.tag .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.dark-section .tag { background: transparent; border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open a { padding: 12px 14px; font-size: 15px; }
  .nav-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  :root { --gutter: 20px; }
  .nav { height: 64px; }
  .nav-links.open { top: 64px; }
  .brand-name { font-size: 15px; }
  .btn { padding: 12px 18px; font-size: 13.5px; }
  section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
}

/* ── Reveal animations (driven by shell.js IntersectionObserver) ── */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-visible { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ── Header polish ───────────────────────────────── */
.site-header {
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
body.is-scrolled .site-header {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom-color: color-mix(in srgb, var(--ink) 12%, transparent);
}
body.is-scrolled .nav { height: 60px; }
.nav { transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-links a { position: relative; }
.nav-links a:not(.active)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger morph */
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  transition: transform 0.28s cubic-bezier(0.65, 0, 0.35, 1), background 0.2s ease, top 0.28s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Lock body scroll when nav open */
body.nav-open { overflow: hidden; }

/* Mobile menu animation */
@media (max-width: 960px) {
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, padding 0.24s ease;
    pointer-events: none;
  }
  .nav-links.open {
    max-height: 70vh;
    opacity: 1;
    padding: 12px 16px 18px;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 14px;
    font-size: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
    border-radius: 0;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:not(.active)::after { display: none; }
}

/* ── Card hover micro-interactions (utility) ─────── */
.lift {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ink) 30%, transparent);
}

/* ── Button polish ───────────────────────────────── */
.btn { will-change: transform; }
.btn-primary { box-shadow: 0 1px 0 0 color-mix(in srgb, var(--ink) 100%, transparent), 0 8px 24px -10px color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--orange) 50%, transparent); transform: translateY(-2px); }
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--orange) 60%, transparent); }
.btn-secondary { transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease; }
.btn-secondary:hover { transform: translateY(-1px); }

/* Footer link underline on hover */
.footer-col a { position: relative; }
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-col a:hover::after { transform: scaleX(1); }
