/* ============================================================
   Petruzzi Advisors — Navy Editorial Stylesheet
   Aesthetic: cohesive deep-navy canvas with teal accents,
   serif headlines, sans body, mono micro-copy.

   Sections (5 + hero)
     Hero               manifesto + tagline next to CTA
     01 Moments         4 quotes
     02 What we deliver three highlighted points
     03 How we engage   4 boxes with hover treatment
     04 A unique value proposition  merge graphic
     05 Contact         form
   ============================================================ */

:root {
  --navy:       #0F1A2E;
  --navy-deep:  #0A1421;
  --teal:       #2E8B8B;
  --teal-glow:  #3FA8A8;
  --white:      #FFFFFF;

  --text-primary:  rgba(255, 255, 255, 0.96);
  --text-body:     rgba(255, 255, 255, 0.78);
  --text-muted:    rgba(255, 255, 255, 0.55);
  --text-faint:    rgba(255, 255, 255, 0.38);

  --hairline:      rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.06);

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
::selection { background: var(--teal); color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 96px;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.masthead.is-scrolled {
  background: rgba(10, 20, 33, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--hairline);
}

.masthead-inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}
.wordmark:hover { color: var(--teal-glow); }

.primary-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-list > li > a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 6px 0;
}
.nav-list > li > a:hover { color: var(--teal-glow); }

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 18px !important;
  border-radius: 1px;
  transition: all 0.2s ease !important;
}
.nav-cta:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(46, 139, 139, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(46, 139, 139, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  padding: 140px 40px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6.8vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 88px;
}
.hero-line {
  display: block;
  margin-bottom: 6px;
}
.hero-line em {
  font-style: italic;
  color: var(--teal-glow);
  font-weight: 400;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.hero-tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--teal-glow);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.tagline-rule {
  width: 32px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--teal);
  white-space: nowrap;
  transition: all 0.25s ease;
}
.cta-link .cta-arrow {
  font-size: 18px;
  color: var(--teal-glow);
  transition: transform 0.3s cubic-bezier(0.5, 0, 0, 1);
}
.cta-link:hover { color: var(--teal-glow); border-bottom-color: var(--teal-glow); }
.cta-link:hover .cta-arrow { transform: translateX(8px); }

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
}
.cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(46, 139, 139, 0.7), transparent);
  animation: cuePulse 2.4s ease-in-out infinite;
}
@keyframes cuePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1.2); transform-origin: top; }
}

/* ============================================================
   SECTION SCAFFOLDING — bigger thicker rule, no numerals
   ============================================================ */
.section {
  padding: 110px 40px;
  position: relative;
  background: var(--navy);
  border-bottom: 1px solid var(--hairline);
}
.section:last-of-type { border-bottom: none; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}
.section-rule {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(46, 139, 139, 0.18),
    0 0 0 10px rgba(46, 139, 139, 0.07);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.section-lead {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 820px;
  margin-bottom: 56px;
  font-weight: 400;
}

/* ============================================================
   01 — MOMENTS — bigger quotes, closing quote, teal-glow accent
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 96px;
}
.quote {
  position: relative;
  padding: 0 36px 56px 36px;
}
.quote::before {
  content: '\201C';
  position: absolute;
  left: -8px;
  top: -36px;
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--teal-glow);
  opacity: 0.55;
  font-style: italic;
}
.quote::after {
  content: '\201D';
  position: absolute;
  right: -4px;
  bottom: -32px;
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--teal-glow);
  opacity: 0.55;
  font-style: italic;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

/* ============================================================
   02 — DELIVERABLES — thicker top border, bigger text, no numerals
   ============================================================ */
.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.deliverable {
  background: rgba(46, 139, 139, 0.05);
  border-top: 4px solid var(--teal);
  padding: 36px 30px 40px;
  border-radius: 1px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.deliverable:hover {
  background: rgba(46, 139, 139, 0.09);
  transform: translateY(-3px);
}
.deliver-lead {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.22;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.deliver-body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-body);
}

/* ============================================================
   03 — HOW WE ENGAGE — boxes with tactile hover
   ============================================================ */
.engagements {
  border-top: 1px solid var(--hairline);
  margin-top: -8px;
}
.engagement {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 44px 8px 44px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  position: relative;
  transition: padding 0.3s ease, background 0.3s ease;
}
.engagement::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--teal-glow);
  transition: height 0.3s ease, top 0.3s ease;
}
.engagement:hover::before {
  height: calc(100% - 56px);
  top: 28px;
}
.engagement:hover { padding-left: 16px; }
.engagement:hover .eng-title { color: var(--teal-glow); }
.eng-title { transition: color 0.3s ease; }

.eng-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}
.eng-duration {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-glow);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.eng-mode {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

.eng-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.eng-desc {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 720px;
}

/* ============================================================
   04 — A UNIQUE VALUE PROPOSITION — text formula
   Three phrases stacked vertically, separated by "coupled with"
   and "gives you" labels with hairline rules. The final phrase
   is set bigger and italic for emphasis.
   ============================================================ */
.value-formula {
  max-width: 880px;
  margin: 8px auto 0;
  text-align: center;
  padding: 0 8px;
}

.formula-phrase {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  max-width: 760px;
  margin: 0 auto;
}

/* The standout — final phrase */
.formula-phrase--accent {
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 820px;
  margin-top: 10px;
}

/* Connectors — mono caps centered between phrases, with thin teal rules */
.formula-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
  max-width: 360px;
  margin: 0 auto;
}
.formula-link::before,
.formula-link::after {
  content: '';
  flex: 1 1 32px;
  height: 1px;
  background: var(--teal);
  opacity: 0.5;
  min-width: 24px;
}
.formula-link span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-glow);
  white-space: nowrap;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   05 — CONTACT — sleek underline form
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(46, 139, 139, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.contact .section-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* Email CTA — replaces the contact form. A big mailto button plus
   the visible email address so visitors can also copy/paste. */
.email-cta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--teal);
  color: var(--white);
  padding: 20px 40px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cta-button .cta-arrow {
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.5, 0, 0, 1);
}
.cta-button:hover { background: var(--teal-glow); color: var(--white); }
.cta-button:hover .cta-arrow { transform: translateX(6px); }

.email-address {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--teal-glow);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.email-address:hover {
  color: var(--text-primary);
  border-bottom-color: var(--teal-glow);
}

.contact-reassurance {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  padding: 32px 40px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.site-footer p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1000px) {
  .quotes { grid-template-columns: 1fr; gap: 80px; }
  .deliverables { grid-template-columns: 1fr; gap: 20px; }
  .engagement { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .engagement:hover { padding-left: 0; }
  .engagement::before { display: none; }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 768px) {
  .masthead { height: 80px; }
  .masthead-inner { padding: 0 24px; }
  .wordmark { font-size: 22px; letter-spacing: 1.6px; }
  .hero { padding: 120px 24px 80px; }
  .section { padding: 80px 24px; }

  .menu-toggle { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: rgba(10, 20, 33, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: 16px 24px 28px;
    gap: 0;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-list li:last-child { border-bottom: none; margin-top: 12px; }
  .nav-list > li > a {
    display: block;
    padding: 16px 0;
    font-size: 13px;
  }
  .nav-cta {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 14px !important;
  }

  /* Hero */
  .hero-headline { margin-bottom: 56px; }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 24px;
  }
  .hero-tagline { font-size: 11px; letter-spacing: 2px; }
  .hero-scroll-cue { display: none; }

  /* Sections */
  .section-head { gap: 18px; margin-bottom: 36px; }
  .section-rule {
    width: 11px;
    height: 11px;
    box-shadow:
      0 0 0 4px rgba(46, 139, 139, 0.18),
      0 0 0 8px rgba(46, 139, 139, 0.07);
  }
  .section-lead { font-size: 17px; margin-bottom: 44px; }

  /* Quotes — bigger but mobile-scaled */
  .quote { padding: 0 24px 48px 24px; }
  .quote::before { font-size: 88px; top: -22px; left: -4px; }
  .quote::after  { font-size: 88px; bottom: -28px; right: 0; }
  .quote p { font-size: 21px; }

  /* Deliverables */
  .deliverable { padding: 28px 24px 32px; border-top-width: 4px; }
  .deliver-lead { font-size: 23px; }
  .deliver-body { font-size: 16.5px; }

  /* Engagements */
  .eng-title { font-size: 22px; }
  .eng-meta { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }

  /* Value formula — tighter spacing on mobile */
  .value-formula { padding: 0 4px; }
  .formula-phrase { font-size: 18px; }
  .formula-phrase--accent {
    font-size: 22px;
    margin-top: 6px;
  }
  .formula-link {
    padding: 22px 0;
    max-width: 280px;
    gap: 12px;
  }
  .formula-link::before,
  .formula-link::after {
    flex: 1 1 16px;
    min-width: 16px;
  }
  .formula-link span {
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  /* Email CTA */
  .email-cta { gap: 18px; }
  .cta-button { padding: 16px 28px; font-size: 12px; }
  .email-address { font-size: 13px; }
}

@media (max-width: 380px) {
  .hero-headline { font-size: 30px; }
  .section-title { font-size: 22px; }
  .deliver-lead { font-size: 21px; }
  .quote p { font-size: 19px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
