/* ============================================================
   RSJV Innovation Studio — shared stylesheet (light theme)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --ink: #171614;
  --muted: #6d6a63;
  --line: #e7e4de;
  --accent: #e04a26;
  --accent-dark: #b93a1d;
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,22,20,.05), 0 12px 32px -16px rgba(23,22,20,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 18px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(224,74,38,.18); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1140px; margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .brand svg { width: 40px; height: 40px; }
.brand-word { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1.15; }
.brand-word small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary a { text-decoration: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-bottom: 3px; border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s; }
nav.primary a:hover { color: var(--ink); }
nav.primary a.active { color: var(--ink); border-color: var(--accent); }
nav.primary a.cta {
  color: #fff; background: var(--ink); border: none; border-radius: 999px;
  padding: 9px 18px 8px; transition: background .15s;
}
nav.primary a.cta:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 52px 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::after { content: ""; height: 1px; width: 48px; background: var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 70% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 90% at 70% 20%, #000 30%, transparent 75%);
}
.hero-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-head); font-weight: 600;
  font-size: 15px; padding: 13px 26px; border-radius: 999px; transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.hero-figure { position: relative; }
.hero-figure .frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #101010;
}
.hero-figure img { width: 100%; height: auto; }
.fig-caption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- stat strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1140px; margin: 0 auto; }
.strip-item { padding: 22px 24px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: none; }
.strip-item b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.strip-item span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  background: var(--bg); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- split (about teaser) ---------- */
.split { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.split-work { grid-template-columns: 1fr 400px; align-items: start; }
.portrait-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 26px 22px; border-left: 1px solid var(--line); background: var(--bg); }
.step:first-child { border-left: none; }
.step .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; }
.step h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- tables ---------- */
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec th, table.spec td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.spec td:first-child { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
table.spec td b { font-family: var(--font-head); font-weight: 600; }
table.spec td { color: var(--muted); }
table.spec td b { color: var(--ink); }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,.7); max-width: 52ch; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 36px; margin-top: 40px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-cols h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.footer-cols a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-cols a:hover { color: var(--ink); }
.footer-note { color: var(--muted); font-size: 13px; max-width: 60ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: 13px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- page hero ---------- */
.page-hero { padding: 64px 0 20px; }


/* ---------- experience timeline ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 32px; display: grid; gap: 36px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -39px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); }
.tl-item .tl-date { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { margin: 6px 0 2px; }
.tl-item .tl-org { font-size: 14.5px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.tl-item li { margin-bottom: 5px; }

/* ---------- project sheets ---------- */
.project { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; margin-bottom: 24px; align-items: center; background: var(--bg); }
.project.flip { grid-template-columns: .85fr 1.15fr; }
.project.flip .proj-text { order: 2; }
.project.flip .proj-media { order: 1; }
.project .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.project h3 { font-size: 1.35rem; margin: 10px 0 4px; }
.project .proj-org { font-size: 14px; color: var(--muted); margin-bottom: 12px; font-family: var(--font-mono); }
.project p { color: var(--muted); font-size: 15px; }
.project ul { margin: 0 0 6px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.project li { margin-bottom: 5px; }
.proj-media { display: grid; gap: 14px; }
.proj-media .frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.proj-media img { width: 100%; height: auto; display: block; }

/* ---------- cert chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--bg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-cols, .split, .split-work { grid-template-columns: 1fr; gap: 36px; }
  .project, .project.flip { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .project.flip .proj-text { order: 1; }
  .project.flip .proj-media { order: 2; }
  .hero { padding: 52px 0 48px; }
  .page-hero { padding: 44px 0 8px; }
  table.spec thead { display: none; }
  table.spec, table.spec tbody, table.spec tr, table.spec td { display: block; width: 100%; }
  table.spec td { padding: 4px 0 8px; border-bottom: none; }
  table.spec tr { padding: 16px 0 8px; border-bottom: 1px solid var(--line); }
  table.spec td:first-child { padding-top: 0; }
  .split { text-align: left; }
  .portrait-frame { max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item { border-left: none; border-top: 1px solid var(--line); }
  .strip-item:nth-child(-n+2) { border-top: none; }
  .strip-item:nth-child(even) { border-left: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  nav.primary {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 18px;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; border-bottom: none; font-size: 13px; }
  nav.primary a.cta { margin-top: 10px; }
  .nav-toggle { display: block; }
  section { padding: 60px 0; }
  .cta-band { padding: 40px 28px; }
}

/* ---------- CAD cursor ---------- */
@media (pointer: fine) {
  body.cursor-ready, body.cursor-ready * { cursor: none !important; }
}
#cad-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; }
body.cursor-ready #cad-cursor { display: block; }
#cad-cursor .cc-line { stroke: var(--muted); stroke-width: 1.3; transition: stroke .12s; }
#cad-cursor .cc-circle { fill: none; stroke: var(--muted); stroke-width: 1.3; transition: stroke .12s, fill .12s; }
#cad-cursor.hover .cc-line { stroke: var(--accent); }
#cad-cursor.hover .cc-circle { stroke: var(--accent); fill: rgba(224,74,38,.16); }
#cad-cursor .cc-coord { position: absolute; top: 18px; left: 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .15s; }
#cad-cursor.hover .cc-coord { opacity: 1; color: var(--accent); }

/* ---------- project without image ---------- */
.project.noimg { grid-template-columns: 1fr; }

/* ---------- work preview on home ---------- */
.work-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wp-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; display: block; }
.wp-card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.wp-card .wp-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.wp-card .wp-img img { width: 100%; height: 100%; object-fit: cover; }
.wp-card .wp-body { padding: 18px 20px 20px; }
.wp-card .num { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.wp-card h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.wp-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .work-preview { grid-template-columns: 1fr; } }
