/* ==========================================================================
   Franco Cima — Growth Marketing, AI Systems & AI Enablement
   Design direction: "The instrument panel" — editorial reading, engineering rigor.
   Teal is the only saturated color. Boldness lives in the deep-teal proof panel.
   Signature: the system line (AI proposes → a human approves → code executes).
   ========================================================================== */

:root {
  /* Brand core (from Brand Guidelines) */
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --line: #E2E2E0;
  --accent: #0F5B5B;
  --accent-dark: #0A4343;
  --accent-tint: #E9F1F1;

  /* Clay is the single accent (Brand Guidelines s3). Logo exponent, and at most
     one highlighted element per view. It never competes with teal. */
  --clay: #B85C38;
  --clay-tint: #E8A882;
  --teal-tint-exponent: #6FB3B3;

  /* Redesign tokens */
  --teal-deep: #0A3A3A;
  --bg: #FCFBF9;
  --bg-soft: #F5F4F1;
  --white: #FFFFFF;

  /* Type. Swap --font-display to an editorial serif (e.g. 'Newsreader') to compare. */
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --container: 1100px;
  --container-narrow: 680px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow { max-width: var(--container-narrow); }

.section { padding: 72px 0; }

.section-soft { background: var(--bg-soft); }

.section-head { margin-bottom: 40px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.lead { font-size: 1.15rem; line-height: 1.65; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow-light { color: var(--accent-tint); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  color: var(--accent);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--accent); }

.btn-lg { padding: 16px 40px; font-size: 16px; }

.btn:active { transform: translateY(1px); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  z-index: 100;
}

.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: padding 0.25s ease;
}

.nav.scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.wordmark-mark {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: block;
}

.nav-links { display: none; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--accent); }

.btn-nav { padding: 9px 20px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 84px 0 0; }

.hero h1 { max-width: 820px; margin-bottom: 24px; }

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* The system line — signature element */

.system-line {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.system-line-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 0;
  padding-top: 18px;
  padding-bottom: 18px;
}

.node {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.node-link {
  flex: 1 1 32px;
  min-width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  margin: 0 14px;
  position: relative;
}

.node-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 6px solid var(--accent);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  opacity: 0.7;
}

/* ---------- Services (What I do) ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.service h3 { font-size: 1.2rem; margin-bottom: 12px; }

.service-what {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  margin-bottom: 0;
}

.service-what strong { color: var(--ink); font-weight: 600; }

.service p strong { color: var(--ink); font-weight: 600; }

/* The compound line — echoes the system-line signature */
.services-compound {
  margin: 20px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.services-compound strong { color: var(--ink); font-weight: 600; }

/* ---------- Proof (deep teal panel) ---------- */

.proof {
  background: var(--teal-deep);
  position: relative;
  overflow: hidden;
}

/* Subtle grain, this panel only */
.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.proof .container { position: relative; }

.proof h2 { color: var(--white); }

.proof-intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(233, 241, 241, 0.18);
  border: 1px solid rgba(233, 241, 241, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}

/* Proof grouped by service */
.proof-group { margin-bottom: 44px; }
.proof-group:last-of-type { margin-bottom: 24px; }

.proof-group-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-tint);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(233, 241, 241, 0.18);
}

.proof-line {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin: 16px 0 0;
  max-width: 760px;
}

.proof-env {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
  max-width: 760px;
  margin-bottom: 0;
}

.proof-figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}

.proof-figure-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--accent-tint);
  line-height: 1;
}

.proof-figure-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  flex: 1 1 300px;
  line-height: 1.5;
}

.stat {
  background: var(--teal-deep);
  padding: 26px 22px;
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  color: var(--accent-tint);
  margin-bottom: 8px;
  line-height: 1.15;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  line-height: 1.5;
}

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(233, 241, 241, 0.65);
  border-top: 1px solid rgba(233, 241, 241, 0.18);
  padding-top: 20px;
  margin-bottom: 32px;
}

.proof-close {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 620px;
  margin-bottom: 10px;
}

.proof-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-photo {
  position: relative;
  max-width: 420px;
}

/* Offset frame — the one quiet flourish on the portrait */
.about-photo::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.35;
  z-index: -1;
}

.about-text p:last-child { margin-bottom: 0; }

.about-transfer {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  color: var(--ink);
}

/* ---------- Offers ---------- */

.offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.offer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.offer:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 91, 91, 0.08);
}

.offer-primary {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.offer-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.offer p { flex: 1; }

.offer-cta {
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 6px;
}

.offer-cta::after {
  content: ' \2192';
  transition: margin-left 0.15s ease;
}

.offer-cta:hover::after { margin-left: 4px; }

/* Audit entry banner — the shared "start here", sits below the three services */
.offer-entry {
  margin-top: 20px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.offer-entry-text { flex: 1 1 320px; }

.offer-entry h3 { margin-bottom: 6px; }

.offer-entry p { margin-bottom: 0; }

.offer-entry .btn { flex-shrink: 0; }

/* ---------- Process ---------- */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Connective vertical line — the system diagram, continued */
.process::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.step {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.step h3 { margin-bottom: 6px; }

.step p { margin-bottom: 0; }

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
  padding-bottom: 56px;
}

.footer h2 { margin-bottom: 12px; }

.footer-sub { margin-bottom: 32px; }

.footer-links {
  margin: 28px 0 6px;
  font-size: 14px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover { color: var(--accent-dark); }

.footer-lockup {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Contact form ---------- */

.contact-form {
  display: grid;
  gap: 18px;
  text-align: left;
  margin: 8px 0 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field-opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Honeypot: off-screen, never focusable */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact-form button {
  cursor: pointer;
  font-family: var(--font-sans);
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-status.ok {
  color: var(--accent);
  font-weight: 600;
}

.form-status.err {
  color: #B3261E;
  font-weight: 600;
}

/* ---------- Motion ---------- */

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

/* Hero load sequence — one orchestrated moment */
.hero-anim {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 100ms);
}

/* Scroll reveals — hidden state only applies when JS is confirmed present,
   so content is never invisible if the script fails to load */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 100ms);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-anim { animation: none; opacity: 1; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .offer, .btn { transition: none; }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 620px) {
  .section { padding: 96px 0; }
  .hero { padding-top: 110px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-full, .form-actions { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; gap: 28px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .offers { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 380px 1fr; gap: 72px; }
}
