/* Cape Cod Bridge — front-page styles. */

/* ==========================================================================
   HERO
   ========================================================================== */

.ccb-hero {
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}
.ccb-hero-arch {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 90vw);
  height: 220px;
  pointer-events: none;
  opacity: 0.95;
}
.ccb-hero-arch svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ccb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--ccb-gutter);
  text-align: center;
}
.ccb-hero h1 {
  font-family: var(--ccb-display);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  color: var(--ccb-navy);
  text-transform: none;
}
.ccb-hero h1 .em {
  color: var(--ccb-teak);
  font-style: normal;
}
.ccb-hero .ccb-lede {
  font-family: var(--ccb-body);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ccb-charcoal);
  max-width: 580px;
  margin: 0 auto 44px;
}
.ccb-hero-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ccb-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ccb-navy);
  padding: 4px 0;
  border-bottom: 1px solid var(--ccb-navy);
  transition: gap 200ms ease;
}
.ccb-hero-cta:hover { gap: 18px; }
.ccb-hero-cta::after { content: "→"; font-family: var(--ccb-body); font-size: 16px; }

.ccb-horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ccb-rule);
}

.ccb-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--ccb-red);
  z-index: 100;
  transition: width 80ms linear;
}

/* ==========================================================================
   HOME — LIVE TRAFFIC TEASER
   ========================================================================== */

.ccb-home-traffic {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--ccb-rule);
}
.ccb-home-traffic-header {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 0 var(--ccb-gutter);
  text-align: center;
}
.ccb-home-traffic-title {
  font-family: var(--ccb-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ccb-navy);
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding: 0 18px;
}
.ccb-home-traffic-title::before,
.ccb-home-traffic-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--ccb-rule);
}
.ccb-home-traffic-title::before { right: 100%; }
.ccb-home-traffic-title::after  { left: 100%; }
.ccb-home-traffic-sub {
  font-family: var(--ccb-body);
  font-size: 16px;
  color: var(--ccb-charcoal);
  opacity: 0.75;
  margin: 0;
}
.ccb-home-traffic-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--ccb-gutter);
}
@media (max-width: 720px) {
  .ccb-home-traffic { padding: 48px 0 56px; }
}

/* ==========================================================================
   NOW
   ========================================================================== */

.ccb-now {
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--ccb-rule);
}
.ccb-now-header {
  max-width: 980px;
  margin: 0 auto 32px;
  padding: 0 var(--ccb-gutter);
  text-align: center;
}
.ccb-now-header-title {
  font-family: var(--ccb-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ccb-navy);
  margin: 0 0 14px;
  position: relative;
  display: inline-block;
  padding: 0 18px;
}
.ccb-now-header-title::before,
.ccb-now-header-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--ccb-rule);
}
.ccb-now-header-title::before { right: 100%; }
.ccb-now-header-title::after  { left: 100%; }
.ccb-now-status-row {
  font-family: var(--ccb-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ccb-charcoal);
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
}
.ccb-now-stat-status {
  color: var(--ccb-green);
  font-weight: 700;
}
.ccb-now-stat-funding {
  color: var(--ccb-teak);
}
.ccb-now-stat-sep {
  color: var(--ccb-rule);
  font-weight: 400;
}
.ccb-now-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--ccb-gutter);
}
.ccb-now-line .when {
  font-family: var(--ccb-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ccb-teak);
}
.ccb-now-line .what {
  font-family: var(--ccb-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ccb-navy);
  margin: 16px 0 12px;
  flex-basis: 100%;
}
.ccb-now-line .next {
  font-family: var(--ccb-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ccb-charcoal);
  opacity: 0.65;
}
.ccb-progress {
  margin: 36px auto 0;
  max-width: 980px;
  padding: 0 var(--ccb-gutter);
}
.ccb-progress-bar {
  height: 2px;
  background: var(--ccb-rule);
  position: relative;
}
.ccb-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--ccb-teak);
}
.ccb-progress-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ccb-teak);
}
.ccb-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--ccb-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ccb-charcoal);
  opacity: 0.55;
}
.ccb-now-line .context {
  flex-basis: 100%;
  font-family: var(--ccb-body);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ccb-charcoal);
  max-width: 720px;
  margin: 0;
}
.ccb-now-cta-row {
  margin: 36px 0 0;
  text-align: center;
}
.ccb-now-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--ccb-navy);
  color: #fff;
  font-family: var(--ccb-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--ccb-navy);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ccb-now-cta:hover,
.ccb-now-cta:focus {
  background: var(--ccb-teak);
  border-color: var(--ccb-teak);
  color: #fff;
  transform: translateX(2px);
}
.ccb-now-cta span {
  font-size: 18px;
  line-height: 1;
}

/* ==========================================================================
   LATEST
   ========================================================================== */

.ccb-latest {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--ccb-rule);
}
.ccb-latest-head {
  margin-bottom: 64px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: var(--ccb-measure);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--ccb-gutter);
}
.ccb-latest-head h2 {
  font-family: var(--ccb-display);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
  margin: 0;
  color: var(--ccb-navy);
  letter-spacing: -0.005em;
}
.ccb-latest-head .all {
  font-family: var(--ccb-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ccb-charcoal);
  opacity: 0.7;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.ccb-story {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--ccb-rule);
  align-items: baseline;
  max-width: var(--ccb-measure);
  margin: 0 auto;
  padding-left: var(--ccb-gutter);
  padding-right: var(--ccb-gutter);
  transition: background 200ms ease;
  text-decoration: none;
  color: inherit;
}
.ccb-story:last-child { border-bottom: 1px solid var(--ccb-rule); }
.ccb-story:hover { background: rgba(140, 90, 60, 0.04); }
.ccb-story .meta {
  font-family: var(--ccb-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ccb-charcoal);
  opacity: 0.6;
  line-height: 1.6;
}
.ccb-story .meta .src {
  display: block;
  color: var(--ccb-teak);
  margin-top: 4px;
}
.ccb-story h3 {
  font-family: var(--ccb-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--ccb-navy);
  letter-spacing: -0.005em;
}
.ccb-story p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ccb-charcoal);
  max-width: 60ch;
  opacity: 0.85;
}

/* ==========================================================================
   WHY
   ========================================================================== */

.ccb-why {
  padding: 140px 0;
  border-bottom: 1px solid var(--ccb-rule);
  text-align: center;
}
.ccb-why p {
  font-family: var(--ccb-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  color: var(--ccb-navy);
  margin: 0 auto;
  max-width: 920px;
  letter-spacing: -0.005em;
}
.ccb-why .signature {
  margin-top: 40px;
  font-family: var(--ccb-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ccb-teak);
}

/* The Brief section styles are sitewide — they live in globals.css now
   so the section can render at the bottom of every page, not just the
   homepage. (See .ccb-brief in globals.css.) */

/* ==========================================================================
   PAGE-LOAD ANIMATIONS
   ========================================================================== */

@keyframes ccb-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ccb-rise { opacity: 0; animation: ccb-rise 900ms cubic-bezier(0.2, 0.65, 0.2, 1) forwards; }
.ccb-r1 { animation-delay: 80ms; }
.ccb-r2 { animation-delay: 220ms; }
.ccb-r3 { animation-delay: 380ms; }

@keyframes ccb-draw {
  from { stroke-dashoffset: 1200; }
  to { stroke-dashoffset: 0; }
}
.ccb-hero-arch path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ccb-draw 1600ms cubic-bezier(0.4, 0, 0.2, 1) 200ms forwards;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 720px) {
  .ccb-hero { padding: 80px 0 100px; }
  .ccb-hero-arch { top: 78px; height: 140px; }
  .ccb-story { grid-template-columns: 1fr; gap: 12px; }
  .ccb-story .meta { order: -1; }
  .ccb-why { padding: 96px 0; }
  /* .ccb-brief mobile padding lives in globals.css */
}
