/* TechPerspective — brand tokens per the TechPerspective Brand Guide */
:root {
  --navy: #14213D;        /* Perspective Navy */
  --night: #011B30;       /* Deep Night */
  --orange: #FCA311;      /* Catalyst Orange */
  --orange-deep: #B87700; /* small text / links on light (contrast-safe) */
  --canvas: #F7F4ED;      /* Warm Canvas */
  --ink: #16202A;         /* Operator Ink */
  --slate: #526171;       /* Practical Slate */
  --mistline: #E8EDF2;    /* Signal Mist */
  --mist-dark: #D5DCE4;   /* muted text on dark */
  --border-dark: #29405A;
  --white: #FFFFFF;
  --head: "Roboto Slab", Cambria, Georgia, serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 80px; } /* keep anchored sections clear of the sticky header */
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}

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

h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4em; }

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.9em;
}
.dark .eyebrow, .hero .eyebrow { color: var(--orange); }
.accent { color: var(--orange); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 237, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mistline);
}
/* header starts double-height and shrinks once the visitor scrolls */
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 38px; padding-bottom: 38px; transition: padding 0.3s ease; }
.site-header.scrolled .header-inner { padding-top: 13px; padding-bottom: 13px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-stars { width: 44px; height: 44px; transition: width 0.3s ease, height 0.3s ease; }
.site-header.scrolled .logo-stars { width: 34px; height: 34px; }
.site-header .logo-word { transition: font-size 0.3s ease; font-size: 1.6rem; }
.site-header.scrolled .logo-word { font-size: 1.35rem; }
.star-orange { fill: var(--orange); }
.star-navy { fill: var(--navy); }
.star-white { fill: var(--white); }
.logo-word {
  font-family: var(--head);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-word em { font-style: normal; color: var(--orange); }

.header-inner { gap: 32px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding-right: 22px;
  border-right: 1px solid #D9DEE6;
}
.header-phone:hover { color: var(--orange-deep); text-decoration: none; }

.site-nav ul { display: flex; gap: 22px; list-style: none; align-items: center; }
.site-nav a { color: var(--navy); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--orange-deep); text-decoration: none; }
.nav-cta {
  background: var(--orange);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.05); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.dark { background: var(--night); color: var(--mist-dark); }
.dark h1, .dark h2 { color: var(--white); }
.dark h3 { color: var(--white); }

.hero { padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
/* brand tagline carries the visual weight; the h1 beneath carries the searchable phrase */
.hero-tagline {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--white);
}
.hero h1 {
  margin-top: 0.7em;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--mist-dark);
  max-width: 30em;
}
.hero-sub { margin-top: 1.2em; max-width: 34em; font-size: 1.1rem; }
.hero-actions { margin-top: 2em; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-phone { color: var(--mist-dark); font-size: 0.95rem; }
.hero-phone:hover { color: var(--white); }
.hero-art svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; }

.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--body);
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- quote ---------- */
.quote-band { background: var(--navy); padding: 70px 0; }
.founder-quote { max-width: 60em; margin: 0 auto; }
.founder-quote blockquote p {
  font-family: var(--head);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--white);
}
.founder-quote .quote-kicker { color: var(--orange); margin-top: 0.9em; font-weight: 600; }
.founder-quote figcaption { margin-top: 1.4em; color: var(--mist-dark); font-size: 0.95rem; }
.founder-quote figcaption::before { content: "— "; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: #FBF9F4; border-top: 1px solid var(--mistline); border-bottom: 1px solid var(--mistline); }
.section-intro { max-width: 44em; color: var(--slate); margin-bottom: 2em; font-size: 1.05rem; }
.section-note { margin-top: 2.2em; color: var(--slate); }
.section-note strong { color: var(--navy); }
.light-note { color: var(--mist-dark); }
.light-note strong { color: var(--white); }
.note-band {
  background: #FEF3DD;
  border-radius: var(--radius);
  padding: 20px 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--mistline);
  border-radius: var(--radius);
  padding: 30px;
}
.card p, .card li { color: var(--slate); font-size: 0.98rem; }
.card ul { margin-top: 0.8em; display: grid; gap: 0.5em; }
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.9em;
}
.card-label.accent { color: var(--orange); }
.card-lead {
  font-family: var(--head);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.9em;
}
.card-lead-sm { font-weight: 600; color: var(--navy) !important; }

.card-navy { background: var(--navy); border-color: var(--navy); }
.card-navy p, .card-navy li { color: var(--mist-dark); }
.card-navy h3, .card-navy .card-lead, .card-navy .card-lead-sm { color: var(--white) !important; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* method */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method-num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.5em;
}
.method-card h3 { color: var(--navy); }

/* AI brain */
.brain-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.brain-layers { display: grid; gap: 14px; }
.layer {
  background: var(--navy);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.layer h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.layer p { color: var(--mist-dark); font-size: 0.95rem; }
.brain-benefits { display: grid; gap: 14px; }
.benefit {
  background: var(--navy);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.benefit p { color: var(--mist-dark); }
.benefit .card-label { margin-bottom: 0.6em; }
.benefit-amber { background: var(--orange); border-color: var(--orange); }
.benefit-amber p { color: var(--navy); font-weight: 500; }
.benefit-amber .card-label { color: var(--navy); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 1em; }
.stat {
  background: var(--navy);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.stat-num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.25em;
}
.stat p { color: var(--mist-dark); font-size: 0.95rem; }
.industries { margin-top: 2.4em; color: var(--mist-dark); }

/* path */
.path { list-style: none; display: grid; gap: 14px; margin-top: 1em; }
.path-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  counter-increment: step;
}
.path-step h3 { margin-bottom: 0.15em; }
.path-step p { margin: 0; }
.path-price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 54em; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--mistline);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--head);
  font-size: 1.4rem;
  color: var(--orange);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--slate); padding: 0 0 20px; margin-top: -4px; }

/* people band */
.people-band { background: var(--navy); padding: 70px 0; }
.people-band h2 { color: var(--white); }
.people-band p { color: var(--mist-dark); max-width: 52em; margin-top: 1em; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--mistline);
  display: block;
}
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.about-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--mistline);
  border-radius: 999px;
  padding: 6px 12px;
}
.about-copy p + p { margin-top: 1em; }
.about-copy p { color: var(--slate); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy p { max-width: 30em; }
.contact-direct { margin-top: 2em; display: grid; gap: 1.2em; }
.contact-direct a { color: var(--white); font-weight: 600; font-size: 1.05rem; }
.contact-direct a:hover { color: var(--orange); }

.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.optional { color: var(--slate); font-weight: 400; }
.field input, .field textarea {
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #C9D2DC;
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { font-size: 0.95rem; min-height: 1.4em; margin: 0; color: var(--slate); }
.form-status.ok { color: #1F7A3D; font-weight: 600; }
.form-status.err { color: #B3261E; font-weight: 600; }

/* footer */
.site-footer { background: var(--night); color: var(--mist-dark); padding: 54px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.site-footer .logo-word { color: var(--white); }
.footer-tagline { margin-top: 10px; font-size: 0.95rem; }
.footer-location { margin-top: 4px; font-size: 0.85rem; color: var(--slate); }
.site-footer .footer-location { color: #9AA8BC; }
.footer-contact { text-align: right; display: grid; gap: 6px; }
.footer-contact a { color: var(--mist-dark); }
.footer-contact a:hover { color: var(--orange); }
.footer-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border-dark); font-size: 0.85rem; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .header-inner, .logo-stars, .site-header .logo-word { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .header-phone span { display: none; } /* icon-only until the hamburger takes over */
  .header-phone { padding-right: 14px; }
  .header-actions { gap: 14px; }
  .site-nav ul { gap: 13px; }
  .site-nav a { font-size: 0.9rem; }
  .site-header .logo-word { font-size: 1.35rem; }
  .logo-stars { width: 36px; height: 36px; }
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* keep the brand sparkles as a quiet backdrop on phones */
  .hero-art {
    position: absolute;
    top: 18px;
    right: -26px;
    width: 170px;
    opacity: 0.3;
    pointer-events: none;
  }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .brain-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; }

  .header-inner { padding-top: 24px; padding-bottom: 24px; }
  .site-header.scrolled .header-inner { padding-top: 11px; padding-bottom: 11px; }
  .header-actions { gap: 12px; }
  .header-phone { border: 1px solid var(--mistline); border-radius: 8px; padding: 8px 10px; }
  .header-phone svg { width: 20px; height: 20px; }
  .header-phone span { display: none; } /* icon-only on phones */

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--mistline);
    border-radius: 8px;
    padding: 9px 11px;
    color: var(--navy);
    cursor: pointer;
  }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--mistline);
    padding: 8px 24px 16px;
  }
  .site-nav ul.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 10px 0; }
  .nav-cta { display: inline-block; margin-top: 8px; text-align: center; }
}

@media (max-width: 560px) {
  .method-grid { grid-template-columns: 1fr; }
  .path-step { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-contact { text-align: left; }
}
