/* =========================================================
   NOVA STAFF — Design tokens
   ========================================================= */
:root {
  --ink: #16233F;
  --ink-soft: #223256;
  --paper: #ECE7DA;
  --paper-light: #F5F2E9;
  --brass: #C89B3C;
  --brass-dark: #A97F2C;
  --sage: #5F7A63;
  --charcoal: #24261F;
  --charcoal-soft: #55564C;
  --rule: #C7BFA9;
  --rule-dark: #3A4A72;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius-card: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 18px;
}
.eyebrow-light { color: var(--brass); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 48px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-title-light { color: var(--paper-light); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-light); }
.btn-block { width: 100%; margin-top: 6px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(236, 231, 218, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.logo-mark { color: var(--brass-dark); display: inline-flex; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--charcoal-soft); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper-light) !important;
  padding: 10px 18px;
  border-radius: var(--radius-card);
}
.nav-cta:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--ink);
  animation: rise 0.7s ease both;
}
.ink-underline {
  position: relative;
  font-style: italic;
  color: var(--brass-dark);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin: 0 0 34px;
  animation: rise 0.7s ease 0.1s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  animation: rise 0.7s ease 0.2s both;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: rise 0.7s ease 0.3s both;
}
.stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1.5px solid var(--sage);
  border-radius: 999px;
  padding: 5px 12px;
  transform: rotate(-4deg);
}
.proof-text {
  font-size: 13.5px;
  color: var(--charcoal-soft);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero card stack (signature element) --- */
.hero-visual {
  position: relative;
  height: 460px;
}
.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.rolodex-card {
  position: absolute;
  width: 268px;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 22px 22px 26px;
  box-shadow: 0 18px 40px -14px rgba(22, 35, 63, 0.35);
  opacity: 0;
  animation: card-in 0.6s ease both;
}
.rolodex-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  transition: transform 0.25s ease;
  z-index: 10;
}
.card-hole {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.card-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--brass-dark);
  margin: 10px 0 12px;
}
.rolodex-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
}
.card-meta {
  font-size: 13px;
  color: var(--charcoal-soft);
  margin: 0 0 14px;
}
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 3px 10px;
}

.card-1 { top: 0;   left: 6%;  transform: rotate(-7deg);  animation-delay: 0.15s; z-index: 4; }
.card-2 { top: 60px; left: 30%; transform: rotate(4deg);   animation-delay: 0.3s;  z-index: 3; }
.card-3 { top: 150px; left: 2%; transform: rotate(-3deg);  animation-delay: 0.45s; z-index: 2; }
.card-4 { top: 210px; left: 34%; transform: rotate(8deg);  animation-delay: 0.6s;  z-index: 1; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) rotate(0deg); }
  to   { opacity: 1; }
}

/* =========================================================
   LEDGER / STATS STRIP
   ========================================================= */
.ledger {
  background: var(--ink);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.ledger-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.ledger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ledger-item {
  padding: 44px 20px;
  text-align: center;
  border-right: 1px solid var(--rule-dark);
}
.ledger-item:last-child { border-right: none; }
.ledger-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--brass);
  margin: 0 0 6px;
  font-weight: 500;
}
.ledger-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #B9C2D6;
  margin: 0;
}

/* =========================================================
   SERVICES — folder cards
   ========================================================= */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.folder-card {
  position: relative;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card);
  padding: 36px 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px rgba(22,35,63,0.4);
}
.folder-tab {
  position: absolute;
  top: -15px;
  left: 24px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px 3px 0 0;
}
.folder-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 6px 0 10px;
  color: var(--ink);
}
.folder-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin: 0;
}

/* =========================================================
   PROCESS — timesheet
   ========================================================= */
.process {
  background: var(--ink);
}
.timesheet {
  border-top: 1px solid var(--rule-dark);
}
.timesheet-row {
  display: grid;
  grid-template-columns: 56px 1fr 90px;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.punch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  position: relative;
}
.punch::before {
  content: attr(data-step);
}
.timesheet-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--paper-light);
  margin: 4px 0 8px;
}
.timesheet-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #C6CCDC;
  margin: 0;
  max-width: 60ch;
}
.timesheet-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8D97B4;
  text-align: right;
  padding-top: 10px;
}

/* =========================================================
   WHY
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 30px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--paper-light);
}
.why-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--paper-light);
  font-size: 15px;
  margin-bottom: 18px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--ink);
}
.why-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin: 0;
}

/* =========================================================
   TESTIMONIALS — reference cards
   ========================================================= */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.reference-card {
  position: relative;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  padding: 34px 26px 26px;
  border-radius: var(--radius-card);
}
.paperclip {
  position: absolute;
  top: -14px;
  right: 22px;
  width: 22px;
  height: 40px;
  border: 3px solid var(--brass-dark);
  border-radius: 40% 40% 30% 30%;
  border-bottom: none;
  opacity: 0.85;
  transform: rotate(-8deg);
}
.reference-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 6px 0 20px;
}
.reference-sig {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--charcoal-soft);
  margin: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-sub {
  font-size: 15.5px;
  color: #C6CCDC;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 0 30px;
}
.contact-details p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--paper-light);
  margin: 0 0 10px;
}
.contact-details span {
  color: var(--brass);
  display: inline-block;
  width: 60px;
}
.contact-form {
  background: var(--paper-light);
  border-radius: var(--radius-card);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brass-dark);
  outline-offset: 1px;
}
.form-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--sage);
  min-height: 18px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); border-top: 1px solid var(--rule-dark); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper-light);
  font-size: 17px;
}
.footer-brand .logo-mark { color: var(--brass); }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
}
.footer-links a { color: #B9C2D6; }
.footer-links a:hover { color: var(--paper-light); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8D97B4;
  margin: 0;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; margin-top: 20px; }
  .folder-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: repeat(2, 1fr); }
  .ledger-item:nth-child(2) { border-right: none; }
  .ledger-item { border-bottom: 1px solid var(--rule-dark); }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-light);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }

  .section-inner { padding: 64px 22px; }
  .hero { padding: 40px 0 20px; }
  .hero-inner { padding: 0 22px; }
  .folder-grid { grid-template-columns: 1fr; }
  .timesheet-row { grid-template-columns: 44px 1fr; }
  .timesheet-time { grid-column: 2; text-align: left; padding-top: 0; }
}
