/* ─── RESET & BASE ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #184050;
  --navy-dk: #0d2430;
  --navy-md: #1e5168;
  --navy-lt: #256282;
  --tan: #c4b094;
  --tan-dk: #9e8054;
  --tan-lt: #ece2d0;
  --steel: #8098a8;
  --steel-lt: #edf4f7;
  --white: #ffffff;
  --off-white: #f4f6f7;
  --text: #0d2430;
  --muted: #5e6870;
  --border: #e6ebed;
  --display: "Montserrat", sans-serif;
  --body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ─── UTILITY ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-bottom: 14px;
}

/* ─── SCROLL REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ─── STICKY NAV ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    backdrop-filter 0.3s;
  height: 72px;
}

.nav.scrolled {
  background: rgba(13, 36, 48, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(13, 36, 48, 0.2);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 48px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 150ms;
  white-space: nowrap;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nav-tel {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms;
}
.nav-tel:hover {
  color: white;
}

.btn-nav {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--tan);
  color: var(--navy-dk);
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 160ms var(--ease);
  white-space: nowrap;
}
.btn-nav:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ─── MOBILE NAV TOGGLE ────────────────────────────── */
/* Desktop: wrapper is layout-transparent so .nav-inner stays
   [ logo | nav-links (flex:1) | nav-actions ]. */
.nav-collapse {
  display: contents;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 240ms var(--ease),
    opacity 180ms var(--ease);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  /* Links + actions become a dropdown panel under the bar. */
  .nav-collapse {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: 16px 0 24px;
    gap: 4px;
    background: var(--navy-dk);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 240ms var(--ease),
      transform 240ms var(--ease),
      visibility 0s linear 240ms;
  }
  .nav--open .nav-collapse {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 240ms var(--ease),
      transform 240ms var(--ease),
      visibility 0s;
  }

  /* Keep the bar solid behind the open panel, even over the hero. */
  .nav--open {
    background: var(--navy-dk);
  }

  .nav-links {
    flex: none;
    flex-direction: column;
    gap: 2px;
    padding: 0 20px;
  }
  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
    padding: 16px 20px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-tel {
    justify-content: center;
    padding: 12px;
    font-size: 15px;
  }
  .btn-nav {
    text-align: center;
    padding: 14px 22px;
    font-size: 14px;
  }

  /* Hamburger morphs into an X. */
  .nav--open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav--open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav--open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-collapse,
  .nav-toggle-bar {
    transition: none;
  }
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 85dvh;
  background-color: var(--navy-dk);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  /* Pull the next section up 1px so no subpixel navy seam shows under the cut. */
  margin-bottom: -1px;
}

/* Dark photo overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #081820 0%,
    rgba(13, 36, 48, 0.85) 100%
      /* fades to transparent (lighter) */
  );

  pointer-events: none;
  z-index: 2;
}

/* Geometric accent shapes */
.hero-shape-1 {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 176, 148, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-shape-2 {
  position: absolute;
  bottom: 80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(30, 81, 104, 0.5) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-shape-3 {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 1px;
  height: 35%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(196, 176, 148, 0.15),
    transparent
  );
  pointer-events: none;
}

/* Diagonal bottom cut */
.hero-cut {
  transform: translateY(2px);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 0 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  align-items: end;
}

.hero-left {
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 176, 148, 0.12);
  border: 1px solid rgba(196, 176, 148, 0.25);
  border-radius: 9999px;
  padding: 6px 16px 6px 10px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-badge-text {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  color: var(--tan);
  letter-spacing: 0.04em;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 900;
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}

.hero-headline .accent {
  color: var(--tan);
  display: block;
}

.hero-sub {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s var(--ease) 0.65s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) 0.8s both;
}

.btn-hero-primary {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--tan);
  color: var(--navy-dk);
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 200ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 176, 148, 0.3);
}

.btn-hero-ghost {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px 24px;
  cursor: pointer;
  transition: all 200ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Hero right — floating card */
.hero-right {
  animation: fadeUp 0.9s var(--ease) 0.9s both;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    to right,
    #0d2430 0%,
    rgba(13, 36, 48, 0) 80%,
    #0d2430 100%
  );
  pointer-events: none;
}

.hero-card-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 20px;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.hero-stat-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-num .stat-unit {
  font-size: 18px;
  color: var(--tan);
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  line-height: 1.4;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.hero-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--body);
}

.hero-mini-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(196, 176, 148, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-mini-check svg {
  width: 10px;
  height: 10px;
  color: var(--tan);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
  animation: fadeIn 1s var(--ease) 1.5s both;
}

.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--body);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 75dvh;
    /* padding-top creates a hard ceiling so flex-end content can never slide behind the 72px nav */
    padding-top: 84px;
  }
  .hero-content {
    padding: 0 0 80px;
  }
}

/* Client logo marquee */
.ar-clients {
  background: #fff;
  padding: 36px 0;
  overflow: hidden;
}

.ar-marquee {
  overflow: hidden;
}

.ar-marquee__track {
  display: flex;
  gap: 40px;
  animation: ar-marquee 40s linear infinite;
  width: max-content;
  align-items: center;
}

.ar-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 80px;
}

.ar-marquee__item img {
  height: 100px;
  max-height: 100px;
  width: auto;
  display: block;
  filter: brightness(0) opacity(0.55);
  transition: filter 0.2s;
}
.ar-marquee__item img:hover {
  filter: brightness(0) opacity(0.85);
}

@keyframes ar-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ─── SERVICES ─────────────────────────────────────── */
.services {
  padding: 112px 0 96px;
  background: var(--white);
}

.section-header {
  max-width: 560px;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--navy-dk);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 250ms var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 64, 80, 0.02), transparent);
  opacity: 0;
  transition: opacity 250ms;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 40px rgba(24, 64, 80, 0.1);
  transform: translateY(-4px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--steel-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 250ms;
}

.service-card:hover .service-icon-wrap:not(.featured *) {
  background: #dceef4;
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
}

.service-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dk);
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-link {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 150ms;
}
.service-card:hover .service-link {
  gap: 10px;
}

/* ─── STATS BAR ────────────────────────────────────── */
.stats-bar {
  background: var(--navy-dk);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
}

.stat-item {
  flex: 1 1 0;
  max-width: 320px;
  padding: 0 40px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-number .unit {
  font-size: 28px;
  color: var(--tan);
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  line-height: 1.4;
  font-family: var(--body);
}

/* ─── PORTFOLIO ────────────────────────────────────── */
.portfolio {
  padding: 112px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.portfolio-header .section-title {
  max-width: 480px;
  margin-bottom: 0;
}

.portfolio-link {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  transition: all 220ms var(--ease);
  white-space: nowrap;
}

.portfolio-link:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(24, 64, 80, 0.2);
}

.portfolio-link svg {
  transition: transform 220ms var(--ease);
}

.portfolio-link:hover svg {
  transform: translateX(4px);
}

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

.portfolio-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(13, 36, 48, 0.05);
  text-decoration: none;
  color: inherit;
  display: block;
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms var(--ease),
    border-color 320ms var(--ease);
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -16px rgba(13, 36, 48, 0.22);
  border-color: rgba(196, 176, 148, 0.4);
}

.portfolio-card:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 4px;
}

.portfolio-card-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
}

.portfolio-card--kidstalk .portfolio-card-visual {
  background: linear-gradient(135deg, var(--navy-md) 0%, var(--navy-lt) 100%);
}

.portfolio-card--customone .portfolio-card-visual {
  background: linear-gradient(135deg, var(--tan-dk) 0%, var(--tan) 100%);
}

.portfolio-card--sears .portfolio-card-visual {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
}

/* Decorative ring/shape */
.portfolio-card-shape {
  position: absolute;
  top: -32%;
  right: -22%;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 560ms var(--ease);
  pointer-events: none;
}

.portfolio-card:hover .portfolio-card-shape {
  transform: scale(1.25) translate(-6%, 6%);
}

/* Bottom-aligned overlay arrow */
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(13, 36, 48, 0.55) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 280ms var(--ease);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tan);
  color: var(--navy-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(8px);
  transition: transform 280ms var(--ease);
  box-shadow: 0 6px 16px rgba(13, 36, 48, 0.2);
}

.portfolio-card:hover .portfolio-card-arrow {
  transform: translateY(0);
}

/* Real featured image inside a card visual (homepage, service, archive). */
.portfolio-card--img .portfolio-card-visual {
  background: var(--navy-dk);
}
.portfolio-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.04);
}
.portfolio-card-tag.pf-tag-date {
  color: var(--muted);
  background: transparent;
  padding-left: 0;
}

.portfolio-card-body {
  padding: 22px 24px 26px;
}

.portfolio-card-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dk);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  transition: color 240ms var(--ease);
}

.portfolio-card:hover .portfolio-card-title,
.portfolio-card:focus-visible .portfolio-card-title {
  color: var(--navy);
}

.portfolio-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-card-tag {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--steel-lt);
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 200ms;
}

.portfolio-card:hover .portfolio-card-tag {
  background: #dceef4;
}

/* Reveal delay 6 for the 6th card */
.reveal-delay-6 {
  transition-delay: 0.55s;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-header {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-card-shape,
  .portfolio-card-overlay,
  .portfolio-card-arrow,
  .portfolio-link,
  .portfolio-link svg {
    transition: none;
  }
  .portfolio-card:hover {
    transform: none;
  }
  .portfolio-card-img {
    transition: none;
  }
  .portfolio-card:hover .portfolio-card-img {
    transform: none;
  }
  .testimonials-track {
    transition: none;
  }
}

/* ─── TESTIMONIALS ─────────────────────────────────── */
.testimonials {
  padding: 96px 0;
  background: var(--navy-dk);
  position: relative;
  overflow: hidden;
}

.testimonials::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--off-white);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
}

.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.testimonials-header .section-title {
  color: white;
  max-width: 400px;
}

.testimonials-nav {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
}

.t-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
  touch-action: manipulation;
  flex-shrink: 0;
}
.t-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.t-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.t-nav-btn:disabled:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonials-slider {
  overflow: hidden;        /* keep this — it hides side slides */
  padding-top: 8px;        /* room for the card to lift into */
  margin-top: -8px;        /* cancel the visual shift */
}

.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  transition: all 250ms;
  /* CSS fallback width before JS computes exact size — prevents layout flash on slow connections */
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 176, 148, 0.25);
  transform: translateY(-3px);
}

.t-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.t-star {
  width: 14px;
  height: 14px;
  color: var(--tan);
}

.t-quote {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--tan);
  border: 2px solid rgba(196, 176, 148, 0.2);
}

.t-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.t-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── CTA SECTION ──────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  background: var(--off-white);
}

.cta-card {
  background: var(--navy-dk);
  border-radius: 24px;
  padding: 72px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  outline: 1px solid rgba(196, 176, 148, 0.35);
  outline-offset: -10px;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 176, 148, 0.08),
    transparent 70%
  );
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 81, 104, 0.5), transparent 70%);
  pointer-events: none;
}

.cta-text {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-title span {
  color: var(--tan);
}

.cta-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 460px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 220px;
  position: relative;
  z-index: 1;
}

.btn-cta-primary {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--tan);
  color: var(--navy-dk);
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  cursor: pointer;
  transition: all 200ms var(--ease);
  text-align: center;
}
.btn-cta-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 176, 148, 0.25);
}

.btn-cta-ghost {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 13px 24px;
  cursor: pointer;
  transition: all 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-cta-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* ─── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--navy-dk);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.social-btn svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col-title {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 150ms;
  font-family: var(--body);
}
.footer-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--body);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 150ms;
}
.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── NAV INITIAL STATE ────────────────────────────── */
/* Nav starts transparent on hero */
.nav {
  background: transparent;
}

/* ════════════════════════════════════════════════════
   INTERIOR PAGE HERO (shared by About, Contact, etc.)
   Dark navy band with the diagonal cut to the white
   content below — the interior-page counterpart to the
   full-viewport homepage .hero.
   ════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background-color: var(--navy-dk);
  background-image: linear-gradient(
    135deg,
    var(--navy-dk) 0%,
    var(--navy) 100%
  );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 168px 0 140px;
  /* Pull the next section up 1px so no subpixel navy seam shows under the cut. */
  margin-bottom: -1px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 41, 0.55) 0%,
    rgba(13, 36, 48, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 3;
}

.page-hero-grid {
  max-width: 760px;
}

.page-hero-eyebrow {
  animation: fadeUp 0.8s var(--ease) 0.15s both;
}

.page-hero-title {
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 900;
  color: white;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.page-hero-title .accent {
  color: var(--tan);
  display: block;
}

.page-hero-sub {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease) 0.45s both;
}

.page-hero-actions {
  animation: fadeUp 0.8s var(--ease) 0.6s both;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — shared sections. Mobile nav is handled in
   its own block above; page-specific layouts live in
   their own stylesheets. These rules cover the chrome and
   home-page sections that render across the site.
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav always has a visible dark base on mobile — transparent over hero is invisible at page-top. */
  .nav {
    background: rgba(13, 36, 48, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .nav.scrolled {
    background: rgba(13, 36, 48, 0.96);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Footer: brand spans the top, the three link groups sit in a row. */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* Testimonials: single card on mobile (JS also enforces this; CSS fallback avoids layout flash). */
  .testimonial-card {
    flex: 0 0 100%;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  /* Tighter vertical rhythm on small screens. */
  .services {
    padding: 76px 0 64px;
  }
  .portfolio {
    padding: 76px 0;
  }
  .testimonials {
    padding: 76px 0;
  }
  .cta-section {
    padding: 64px 0;
  }
  .stats-bar {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 44px;
  }

  /* CTA stacks: copy above a full-width action. */
  .cta-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 30px;
  }
  .cta-title {
    font-size: clamp(28px, 7vw, 36px);
  }
  .cta-actions {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  /* Stats: 2×2 grid instead of one overflowing row. */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 8px;
  }
  .stat-item {
    max-width: none;
    padding: 0 14px;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Lighter gutters reclaim width on phones (applies site-wide). */
  .container {
    padding: 0 22px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Testimonials title stacks above the slider controls. */
  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
