/* ============= XSV/DEV — shared site styles ============= */

:root {
  --bg: #0a0908;
  --bg-soft: #100e0c;
  --ink: #f4ede4;
  --ink-dim: #a39c93;
  --ink-faint: #5a554f;
  --red: #d63a2f;
  --yellow: #e8b83a;
  --oxblood: #8c1a1f;
  --accent-a: var(--red);
  --accent-b: var(--yellow);
  --rule: rgba(244, 237, 228, 0.12);
  --rule-strong: rgba(244, 237, 228, 0.22);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  cursor: crosshair;
  scroll-behavior: smooth;
}
body { position: relative; min-height: 100vh; }

::selection { background: var(--accent-a); color: var(--bg); }

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- subtle bg for non-hero pages ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(214, 58, 47, 0.05), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 184, 58, 0.04), transparent 50%),
    var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- top nav ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: linear-gradient(to bottom, rgba(10,9,8,0.85) 0%, rgba(10,9,8,0) 100%);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.topnav.solid {
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
/* always-solid for non-hero pages */
.topnav.always-solid {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topnav .logo {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-decoration: none;
}
.topnav .logo .slash { color: var(--accent-a); margin: 0 4px; }
.topnav nav { display: flex; gap: 28px; align-items: center; }
.topnav nav a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}
.topnav nav a:hover, .topnav nav a.active { color: var(--ink); }
.topnav nav a:not(.cta-hire)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent-b);
  transition: width 0.3s ease;
}
.topnav nav a:not(.cta-hire):hover::after,
.topnav nav a.active:not(.cta-hire)::after { width: 100%; }
.topnav nav a.cta-hire {
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 8px 16px;
  transition: all 0.25s ease;
}
.topnav nav a.cta-hire:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- page header (non-hero pages) ---------- */
.page-head {
  position: relative;
  z-index: 10;
  padding: 160px 40px 60px;
  border-bottom: 1px solid var(--rule);
}
.page-head .inner { max-width: 1280px; margin: 0 auto; }
.page-head .crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-head .crumb::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent-a);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 44px;
  max-width: 14ch;
}
.page-head h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head .lede {
  font-family: var(--mono);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 60ch;
}
.page-head .lede .accent { color: var(--ink); }

/* ---------- shared section frame ---------- */
.section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 100px 40px;
}
.section + .section { border-top: 1px solid var(--rule); }
.section .inner { max-width: 1280px; margin: 0 auto; }

.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.sec-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent-a);
}
.sec-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 18ch;
}
.sec-h em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--rule);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: transparent;
}
.cta::after { content: '→'; font-size: 14px; transition: transform 0.25s ease; }
.cta:hover { border-color: var(--ink); background: rgba(244, 237, 228, 0.04); }
.cta:hover::after { transform: translateX(4px); }
.cta.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.cta.primary:hover {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: var(--ink);
}

/* ---------- placeholder tile (for missing imagery) ---------- */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244, 237, 228, 0.025) 0 6px,
      rgba(244, 237, 228, 0.05) 6px 12px
    ),
    var(--bg-soft);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
  overflow: hidden;
}
.ph::before, .ph::after {
  content: '';
  position: absolute;
  background: var(--ink-faint);
  opacity: 0.3;
}
.ph::before {
  top: 0; left: 0; right: 0; height: 1px;
}
.ph::after {
  bottom: 0; left: 0; right: 0; height: 1px;
}
.ph .ph-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}
.ph .ph-cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-dim);
  text-transform: none;
  max-width: 80%;
  text-align: center;
}

/* ---------- coming-soon banner (shared) ---------- */
.coming-soon {
  position: relative;
  z-index: 10;
  padding: 28px 40px;
  background: rgba(214, 58, 47, 0.05);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.coming-soon strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent-a);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 6px 12px;
  border: 1px solid var(--accent-a);
  flex-shrink: 0;
}
.coming-soon a { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .coming-soon { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
}

/* ---------- site footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg);
  position: relative;
  z-index: 10;
}
.site-footer .links { display: flex; gap: 24px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent-b); }

@media (max-width: 720px) {
  .topnav { padding: 16px 20px; }
  .topnav nav { gap: 14px; }
  .topnav nav a:not(.cta-hire):not(.always) { display: none; }
  .page-head { padding: 120px 24px 48px; }
  .section { padding: 60px 24px; }
  .site-footer { padding: 24px; flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---------- shared nav-scroll script attaches a class; this is the script ----------
   keep at site level so all pages share. Already inline in pages. */
