/* Homepage v3 — all rules scoped under .hv2 */

.hv2 {
  --hv2-navy-deep: #00004d;
  --hv2-ink: #0b0b2e;
  --hv2-cream: #faf7f0;
  --hv2-radius: 18px;
  color: var(--hv2-ink);
  overflow-x: clip;
}

.hv2 *, .hv2 *::before, .hv2 *::after { box-sizing: border-box; }

.hv2-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Shared type & buttons ---------- */

.hv2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-accent);
}
.hv2-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hv2-h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hv2-h2 span { color: var(--gray-medium); }

.hv2-head { margin-bottom: 48px; max-width: 760px; }
.hv2-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.hv2-btn:hover { transform: translateY(-2px); }
.hv2-btn span { transition: transform 0.2s ease; }
.hv2-btn:hover span { transform: translateX(4px); }

.hv2-btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(225, 166, 65, 0.8); }
.hv2-btn-gold:hover { background: var(--gold-accent); }
.hv2-btn-navy { background: var(--navy); color: #fff; }
.hv2-btn-navy:hover { background: var(--hv2-navy-deep); }
.hv2-btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.hv2-btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.hv2-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.hv2-link:hover { color: var(--gold-accent); }
.hv2-link-light { color: #fff; }

.hv2-center { text-align: center; margin: 48px 0 0; }

.hv2-section { padding: 110px 0; }

/* ---------- Hero ---------- */

.hv2-hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    linear-gradient(rgba(1, 1, 126, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(1, 1, 126, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--hv2-cream);
  overflow: hidden;
}
.hv2-hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 82, 0.55), rgba(255, 191, 82, 0) 65%);
  animation: hv2-float 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hv2-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hv2-eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.hv2-hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--navy);
  position: relative;
  z-index: 0; /* keeps the gold underline behind the text, not behind the hero */
}
.hv2-line {
  display: block;
  animation: hv2-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hv2-line:nth-child(2) { animation-delay: 0.12s; }
.hv2-line:nth-child(3) { animation-delay: 0.24s; }
.hv2-hero-title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hv2-hero-title em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  height: 0.28em;
  background: var(--gold);
  z-index: -1;
  transform-origin: left;
  animation: hv2-underline 0.7s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hv2-hero-lede {
  max-width: 520px;
  margin: 0 0 34px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

.hv2-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stacked browser mockups */
.hv2-hero-stack {
  position: relative;
  height: 480px;
}
/* Images are tablet mockups with their own frame */
.hv2-browser {
  position: absolute;
  width: 72%;
  filter: drop-shadow(0 30px 40px rgba(1, 1, 126, 0.3));
  animation: hv2-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hv2-browser img { display: block; width: 100%; height: auto; }
.hv2-browser-1 { top: 0; right: 0; z-index: 1; transform: rotate(5deg); animation-delay: 0.2s; }
.hv2-browser-2 { top: 18%; left: 0; z-index: 2; transform: rotate(-4deg); animation-delay: 0.35s; }
.hv2-browser-3 { bottom: 0; right: 6%; z-index: 3; transform: rotate(1deg); animation-delay: 0.5s; }

/* ---------- Logo marquee ---------- */

.hv2-logos {
  padding: 36px 0;
  background: #fff;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.hv2-logos-label {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-medium);
}
.hv2-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hv2-marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: hv2-marquee 32s linear infinite;
}
.hv2-marquee:hover .hv2-marquee-track { animation-play-state: paused; }
.hv2-marquee-track img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.hv2-marquee-track img:hover { filter: none; opacity: 1; }

/* ---------- Services bento ---------- */

.hv2-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hv2-service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  border-radius: var(--hv2-radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}
.hv2-service-wide { grid-column: span 2; }
.hv2-service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
.hv2-service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 77, 0.1) 0%, rgba(0, 0, 77, 0.92) 75%);
  transition: background-color 0.3s ease;
}
.hv2-service:hover img { transform: scale(1.06); }
.hv2-service-body { padding: 28px; position: relative; }
.hv2-service-num {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}
.hv2-service h3 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.hv2-service p { margin: 0; max-width: 420px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.hv2-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.hv2-service:hover .hv2-arrow { transform: rotate(0); }

/* ---------- Work ---------- */

.hv2-dark {
  background: radial-gradient(ellipse at top right, #1a1aa3 0%, var(--navy) 35%, var(--hv2-navy-deep) 100%);
  color: #fff;
}
.hv2-dark .hv2-h2 { color: #fff; }
.hv2-dark .hv2-h2 span { color: var(--gold); }
.hv2-dark .hv2-btn-ghost { color: #fff; }
.hv2-dark .hv2-btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }

.hv2-work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.hv2-work-card {
  display: block;
  text-decoration: none;
  color: #fff;
}
.hv2-work-img {
  border-radius: 14px;
  overflow: hidden;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hv2-work-card:hover .hv2-work-img { background: rgba(255, 191, 82, 0.14); border-color: var(--gold); }
.hv2-work-img img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}
.hv2-work-card:hover .hv2-work-img img { transform: scale(1.05); }
.hv2-work-meta { padding-top: 14px; }
.hv2-work-meta h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.hv2-work-card:hover h3 { color: var(--gold); }
.hv2-work-meta p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- Process ---------- */

.hv2-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: none;
  position: relative;
}
.hv2-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
}
.hv2-step { position: relative; }
.hv2-step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px #fff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.hv2-step:hover .hv2-step-num { transform: scale(1.1); background: var(--gold); color: var(--navy); }
.hv2-step h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.hv2-step p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--gray-dark); }

/* ---------- Statement ---------- */

.hv2-statement {
  padding: 120px 0;
  background: var(--gold);
  text-align: center;
}
.hv2-statement .hv2-kicker { color: var(--navy); }
.hv2-quote {
  max-width: 980px;
  margin: 0 auto 36px;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hv2-quote em {
  font-style: normal;
  color: #fff;
  -webkit-text-stroke: 0;
  background: var(--navy);
  padding: 0 0.2em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Industry links ---------- */

.hv2-industry { background: var(--hv2-cream); }
.hv2-industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.hv2-industry-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--light-gray);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hv2-industry-list a:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(1, 1, 126, 0.35);
}
.hv2-industry-list strong { color: var(--navy); font-size: 1.05rem; }
.hv2-industry-list span { color: var(--gray-dark); font-size: 0.92rem; line-height: 1.5; }

/* ---------- CTA + form ---------- */

.hv2-cta {
  padding: 110px 0;
  background: var(--hv2-navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hv2-cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: -200px;
  bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 82, 0.35), transparent 65%);
}
.hv2-cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.hv2-cta .hv2-h2 { color: #fff; margin-bottom: 16px; }
.hv2-cta-copy > p { font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); margin: 0 0 28px; }
.hv2-nap {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.hv2-nap a { color: var(--gold); text-decoration: none; font-weight: 700; }

.hv2-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px;
  border-radius: var(--hv2-radius);
  background: #fff;
  color: var(--hv2-ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.hv2-field { display: flex; flex-direction: column; gap: 6px; }
.hv2-field-full { grid-column: 1 / -1; }
.hv2-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.hv2-field input,
.hv2-field select,
.hv2-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: #fbfbfd;
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hv2-field textarea { resize: vertical; }
.hv2-field input:focus,
.hv2-field select:focus,
.hv2-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(255, 191, 82, 0.4);
}

/* ---------- Scroll reveal ---------- */

.hv2-js .hv2-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.hv2-js .hv2-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */

@keyframes hv2-rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes hv2-underline { from { transform: scaleX(0); } }
@keyframes hv2-float { to { transform: translate(-60px, 60px) scale(1.08); } }
@keyframes hv2-marquee { to { transform: translateX(calc(-50% - 36px)); } }

@media (prefers-reduced-motion: reduce) {
  .hv2 *, .hv2 *::before, .hv2 *::after { animation: none !important; transition: none !important; }
  .hv2-js .hv2-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hv2-hero-grid { grid-template-columns: 1fr; }
  .hv2-hero-stack { height: 420px; max-width: 640px; width: 100%; margin: 0 auto; }
  .hv2-services { grid-template-columns: 1fr 1fr; }
  .hv2-work { grid-template-columns: 1fr 1fr; }
  .hv2-steps { grid-template-columns: 1fr; gap: 28px; }
  .hv2-steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .hv2-step { padding-left: 80px; }
  .hv2-step-num { position: absolute; left: 0; top: 0; }
  .hv2-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hv2-wrap { padding: 0 16px; }
  .hv2-section, .hv2-cta { padding: 72px 0; }
  .hv2-statement { padding: 80px 0; }
  .hv2-hero { padding: 120px 0 60px; }
  .hv2-hero-lede { font-size: 1.05rem; }
  .hv2-hero-ctas .hv2-btn { flex: 1 1 auto; }
  .hv2-hero-stack { height: 300px; }
  .hv2-work { gap: 28px; }
  .hv2-services { grid-template-columns: 1fr; }
  .hv2-service-wide { grid-column: auto; }
  .hv2-service { min-height: 280px; }
  .hv2-work { grid-template-columns: 1fr; }
  .hv2-form { grid-template-columns: 1fr; padding: 22px; }
  .hv2-marquee-track { gap: 44px; }
  .hv2-marquee-track img { height: 40px; }
}

/* ---------- v3: hero form in front of the mockups ---------- */

.hv3-hero-visual {
  position: relative;
  min-height: 560px;
}
.hv3-hero-visual .hv2-hero-stack {
  position: absolute;
  top: 0;
  right: -4%;
  width: 92%;
  height: 480px;
}

.hv3-hero-form {
  position: absolute;
  left: -2%;
  bottom: -10px;
  z-index: 5;
  width: 340px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--hv2-radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 4px solid var(--gold);
  box-shadow: 0 40px 70px -25px rgba(1, 1, 126, 0.45), 0 0 0 1px rgba(1, 1, 126, 0.06);
  animation: hv2-rise 0.9s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hv3-hero-form-head h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hv3-hero-form-head p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--gray-dark); }
.hv3-hero-form .hv2-field { gap: 4px; }
.hv3-hero-form .hv2-field label { font-size: 0.78rem; }
.hv3-hero-form .hv2-field input,
.hv3-hero-form .hv2-field select { padding: 10px 12px; font-size: 0.9rem; }
.hv3-hero-form .hv2-btn { width: 100%; margin-top: 4px; }

/* Desktop: the form covers the left mockup, so move Rockwood (most eye-catching) to the visible top-right spot */
@media (min-width: 1025px) {
  /* Wider hero than the rest of the page: less empty space left and right */
  .hv2-hero .hv2-wrap { max-width: 1600px; padding: 0 48px; }
  .hv3-hero-form { width: 320px; left: -6%; }
  .hv3-hero-visual .hv2-browser-2 { top: 0; right: 0; left: auto; z-index: 2; transform: rotate(5deg); }
  .hv3-hero-visual .hv2-browser-1 { top: 18%; left: 0; right: auto; z-index: 1; transform: rotate(-4deg); }
}

@media (max-width: 1024px) {
  .hv3-hero-visual { min-height: 0; max-width: 640px; width: 100%; margin: 0 auto; }
  .hv3-hero-visual .hv2-hero-stack { position: relative; right: auto; width: 100%; height: 420px; }
  .hv3-hero-form { position: relative; left: auto; bottom: auto; width: 100%; max-width: 480px; margin: -90px auto 0; }
}

@media (max-width: 640px) {
  .hv3-hero-visual .hv2-hero-stack { height: 300px; }
  .hv3-hero-form { margin-top: -60px; padding: 20px; }
}

/* ---------- v3: italic serif eyebrow ---------- */

.hv2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--navy);
  animation: hv2-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hv2-eyebrow::before {
  content: "";
  flex: none;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-accent);
  transform-origin: left;
  animation: hv2-underline 0.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hv2-eyebrow em {
  position: relative;
  font-style: italic;
  z-index: 0;
}
/* Hand-drawn swash under "business." */
.hv2-eyebrow em::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -6%;
  bottom: -0.2em;
  height: 0.45em;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 45 4, 110 3, 197 9' fill='none' stroke='%23FFBF52' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left;
  animation: hv2-underline 0.7s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- v3: slimmer logo bar on desktop (overrides styles.css header) ---------- */

@media (min-width: 1024px) {
  .header-container { padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .hv2-hero { padding-top: 120px; }
}

/* ---------- v3: services with natural-colour photos ---------- */

.hv3-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hv3-service {
  display: flex;
  flex-direction: column;
  border-radius: var(--hv2-radius);
  background: #fff;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hv3-service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 28px 50px -24px rgba(1, 1, 126, 0.35);
}
.hv3-service-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--gray-100);
}
.hv3-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hv3-service:hover .hv3-service-img img { transform: scale(1.06); }
.hv3-service-num {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hv3-service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.hv3-service-body h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hv3-service-body p {
  margin: 0 0 20px;
  line-height: 1.55;
  color: var(--gray-dark);
}
.hv3-service-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.hv3-service-more span { color: var(--gold-accent); transition: transform 0.25s ease; }
.hv3-service:hover .hv3-service-more span { transform: translateX(5px); }

@media (max-width: 1024px) {
  .hv3-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hv3-services { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- v3: polish ---------- */

/* Section headings: one line per phrase on desktop */
.hv2-head { max-width: 920px; }

/* Work grid: every mockup in the same frame so captions line up */
.hv2-work-img { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.hv2-work-img img { max-height: 100%; width: 100%; object-fit: contain; }

/* Statement: italic serif accent instead of boxed highlight */
.hv2-quote em {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #fff;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 0 rgba(1, 1, 126, 0.15);
}

/* Industry: 8th tile is a navy call-to-action so the grid fills 4 + 4 */
.hv3-industry-cta a {
  background: var(--navy);
  border-color: var(--navy);
}
.hv3-industry-cta a:hover { border-color: var(--gold); background: var(--hv2-navy-deep); }
.hv3-industry-cta strong { color: #fff; }
.hv3-industry-cta span { color: rgba(255, 255, 255, 0.75); }
.hv3-industry-cta em {
  margin-top: auto;
  padding-top: 6px;
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}
.hv3-industry-cta em span { color: inherit; }

/* ---------- v3: review round 2 fixes ---------- */

/* Headings: balanced wrapping; second line in the italic serif (replaces the repeated grey line) */
.hv2-h2, .hv2-quote, .hv2-hero-lede { text-wrap: balance; }
.hv2-h2 span {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.hv2-dark .hv2-h2 span, .hv2-cta .hv2-h2 span { color: var(--gold); }

/* Statement accent: navy, not white-on-gold */
.hv2-quote em { color: var(--navy); text-shadow: none; }

/* Logo strip: one height, wider spacing so no logo repeats on screen */
.hv2-marquee-track { gap: 140px; }
.hv2-marquee-track img { height: 40px; max-width: 150px; }
@keyframes hv2-marquee { to { transform: translateX(calc(-50% - 70px)); } }

/* Process: dashed connector stops at the last circle */
@media (min-width: 1025px) {
  .hv2-steps::before { right: calc((100% - 72px) / 5 - 28px); }
}

/* Industry cards: same gap as other grids, aligned titles, arrow cue */
.hv2-industry-list { gap: 24px; grid-template-columns: repeat(4, 1fr); }
.hv2-industry-list a { position: relative; padding-bottom: 52px; }
.hv2-industry-list strong { min-height: 2.6em; }
.hv2-industry-list li:not(.hv3-industry-cta) a::after {
  content: "\2192";
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-weight: 700;
  color: var(--gold-accent);
  transition: transform 0.25s ease;
}
.hv2-industry-list a:hover::after { transform: translateX(4px); }
.hv3-industry-cta a { padding-bottom: 22px; }
@media (max-width: 1024px) { .hv2-industry-list { grid-template-columns: 1fr 1fr; } }

/* Contact: kicker matches the rest of the page; navy glow instead of brown */
.hv2-cta-copy > .hv2-kicker { font-size: 0.8rem; line-height: normal; color: var(--gold); margin: 0 0 14px; }
.hv2-cta::before { background: radial-gradient(circle, rgba(70, 70, 255, 0.35), transparent 65%); }

.hv3-next {
  list-style: none;
  counter-reset: hv3next;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.hv3-next li {
  counter-increment: hv3next;
  position: relative;
  padding-left: 48px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.hv3-next li::before {
  content: counter(hv3next);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}
.hv3-next strong { color: #fff; }

/* Mobile: swipeable rows instead of very long stacks */
@media (max-width: 640px) {
  .hv3-services,
  .hv2-work {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 4px 16px 16px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .hv3-services::-webkit-scrollbar, .hv2-work::-webkit-scrollbar { display: none; }
  .hv3-service, .hv2-work-card { scroll-snap-align: start; }
  .hv2-js .hv3-services .hv2-reveal, .hv2-js .hv2-work .hv2-reveal { opacity: 1; transform: none; }
  .hv3-service:hover { transform: none; }

  /* Industry: compact divided list */
  .hv2-industry-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--light-gray); }
  .hv2-industry-list li:not(.hv3-industry-cta) a {
    padding: 16px 40px 16px 0;
    border: 0;
    border-bottom: 1px solid var(--light-gray);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .hv2-industry-list li:not(.hv3-industry-cta) a::after { right: 6px; bottom: auto; top: 50%; margin-top: -0.7em; }
  .hv2-industry-list strong { min-height: 0; }
  .hv2-industry-list li:not(.hv3-industry-cta) span { display: none; }
  .hv3-industry-cta { margin-top: 20px; }
}

/* Process (stacked layout): one connector per gap, so nothing trails past step 5 */
@media (max-width: 1024px) {
  .hv2-steps::before { display: none; }
  .hv2-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 64px;
    bottom: -22px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 14px);
  }
}

/* ---------- v3: review round 3 fixes ---------- */

/* Work header: the .hv2-head max-width above was squeezing the split header — button back to the grid edge */
.hv2-head-split { max-width: none; }

/* Work: 3 columns with a featured first project (2x2) as the page's focal point */
.hv2-work { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hv2-work-img { padding: 10px; }
.hv3-work-feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.hv3-work-feature .hv2-work-img { flex: 1; aspect-ratio: auto; padding: 28px; background: linear-gradient(160deg, rgba(255, 191, 82, 0.16), rgba(255, 255, 255, 0.04)); }
.hv3-work-feature .hv2-work-meta h3 { font-size: 1.5rem; }
.hv3-work-feature .hv2-work-meta p { font-size: 1rem; }
.hv3-work-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  .hv2-work { grid-template-columns: 1fr 1fr; }
  .hv3-work-feature { grid-column: span 2; grid-row: auto; }
  .hv3-work-feature .hv2-work-img { aspect-ratio: 16 / 10; }
}

/* Hero: grid lines fade out toward the edges for depth */
.hv2-hero { background: var(--hv2-cream); }
.hv2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(1, 1, 126, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(1, 1, 126, 0.06) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 35% 45%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 75% at 35% 45%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Logos: equal boxes; on desktop a still, evenly spaced row (no repeats on screen) */
.hv2-marquee-track img { width: 130px; height: 44px; max-width: none; object-fit: contain; opacity: 0.75; }
@media (min-width: 1025px) {
  .hv2-marquee { -webkit-mask-image: none; mask-image: none; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
  .hv2-marquee-track { animation: none; width: 100%; justify-content: space-between; gap: 24px; }
  .hv2-marquee-track img[aria-hidden="true"] { display: none; }
}
@media (max-width: 1024px) {
  .hv2-marquee-track { gap: 44px; }
  .hv2-marquee-track img { width: 96px; height: 34px; }
  @keyframes hv2-marquee { to { transform: translateX(calc(-50% - 22px)); } }
}

/* Industry cards: no reserved title line; arrows navy and pinned to the bottom */
.hv2-industry-list strong { min-height: 0; }
.hv2-industry-list a { padding-bottom: 22px; }
.hv2-industry-list li:not(.hv3-industry-cta) a::after {
  position: static;
  margin-top: auto;
  padding-top: 10px;
  align-self: flex-end;
  color: var(--navy);
  font-size: 1.1rem;
}
.hv2-industry-list li:not(.hv3-industry-cta) a:hover { border-color: var(--gold); }

/* Statement: tighter band */
.hv2-statement { padding: 96px 0; }

/* Process: serif numerals tie in with the headings */
.hv2-step-num { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.7rem; }

/* Mobile swipe hint */
.hv3-swipe-hint { display: none; }
@media (max-width: 640px) {
  .hv3-swipe-hint {
    display: block;
    margin: 6px 0 0;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-medium);
  }
  .hv3-swipe-hint-light { color: rgba(255, 255, 255, 0.6); }
  .hv2-industry-list li:not(.hv3-industry-cta) a::after { position: absolute; margin: -0.7em 0 0; padding: 0; top: 50%; right: 6px; }
  .hv3-work-feature { grid-column: auto; }
  .hv3-work-feature .hv2-work-img { aspect-ratio: 4 / 3; padding: 10px; }
}

/* Mobile swipe rows: re-assert after the desktop work-grid rules above */
@media (max-width: 640px) {
  .hv2-work { grid-template-columns: none; grid-auto-columns: 84%; }
  .hv3-work-feature { grid-column: auto; grid-row: auto; }
}

/* ---------- v3: review round 4 fixes ---------- */

/* Featured tag sits on the image so the featured caption matches the others' height */
.hv2-work-img { position: relative; }
.hv3-work-tag { position: absolute; top: 18px; left: 18px; margin: 0; z-index: 1; }
.hv3-work-feature .hv2-work-meta h3 { font-size: 1.05rem; }
.hv3-work-feature .hv2-work-meta p { font-size: 0.9rem; }

/* Statement: one sentence per line */
.hv2-quote { font-size: clamp(1.8rem, 3.7vw, 3.3rem); max-width: 1100px; }
.hv2-quote > span { display: block; text-wrap: balance; }

/* Logos: balance optical weight */
.hv2-marquee-track img { opacity: 0.85; filter: grayscale(1) contrast(1.1); }
.hv2-marquee-track img[src*="diy-pole-barns"] { transform: scale(0.72); }
.hv2-marquee-track img[src*="five-rivers"],
.hv2-marquee-track img[src*="rockwood"] { transform: scale(1.1); }
.hv2-marquee-track img[src*="dayton"] { width: 170px; }
@media (max-width: 1024px) { .hv2-marquee-track img[src*="dayton"] { width: 120px; } }

/* Service photos: one shared natural grade; tighter framing on 03 */
.hv3-service-img img { filter: saturate(0.92) contrast(1.04); }
.hv3-service-img img[src*="google-facebook-ads"] { object-position: 60% 40%; transform-origin: 60% 40%; }

/* Process on cream so it separates from the white services band */
.hv3-process { background: var(--hv2-cream); }
.hv3-process .hv2-step-num { box-shadow: 0 0 0 8px var(--hv2-cream); }

/* Consistent section rhythm */
.hv2-section, .hv2-cta { padding: 112px 0; }
.hv2-statement { padding: 112px 0; }
@media (max-width: 640px) {
  .hv2-section, .hv2-cta, .hv2-statement { padding: 72px 0; }
  .hv3-services, .hv2-work { grid-auto-columns: 80%; }
}
.hv2-quote { max-width: 1240px; font-size: clamp(1.8rem, 3.5vw, 3.1rem); }

/* ---------- v3: review round 5 (final) fixes ---------- */
.hv3-work-feature .hv2-work-img { padding: 16px; }
.hv2-logos-label { color: var(--gray-dark); }
@media (max-width: 1024px) {
  .hv2-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
}
@media (max-width: 640px) {
  .hv3-work-tag { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.6rem; }
  .hv3-work-feature .hv2-work-img { padding: 26px 10px 10px; }
  .hv2-quote { font-size: 1.65rem; }
}

/* ---------- v3: Instagram + Facebook icons left of the logo ---------- */
/* Equal-width side columns keep the logo exactly centred */
.header-social,
.menu-icon-container { flex: 1 1 0; }
.logo-container { flex: 0 0 auto; }
.header-social { display: flex; align-items: center; gap: 0.25rem; }
.menu-icon-container { justify-content: flex-end; }
.header-social .icon-button:hover { color: var(--gold-accent); background: transparent; }
/* Below 1380px the burger menu takes over: the icons move into it (.mobile-social-icons in partials/header.php).
   The empty column stays (hidden) so the logo remains centred. */
@media (max-width: 1379px) {
  .header-social { visibility: hidden; }
}
/* The logo <img> carries width="1328"; let its height drive the width so the side columns keep their space */
.header-container .logo { width: auto; }
.header-social, .menu-icon-container { min-width: 0; }

/* ---------- v3: hero colour runs up behind the header + navbar ---------- */
/* main normally pads itself below the fixed nav; here the hero starts at the top and pads itself instead */
main.hv2 { padding-top: 0 !important; } /* !important: styles.css forces 80px on mobile */
.hv2-hero { padding-top: calc(var(--nav-height, 120px) + 150px); }
@media (max-width: 640px) {
  .hv2-hero { padding-top: calc(var(--nav-height, 120px) + 120px); }
}
@media (min-width: 1024px) {
  .hv2-hero { padding-top: calc(var(--nav-height, 120px) + 24px); }
}
/* At the top of the page the nav is see-through (script.js paints it white inline, hence !important);
   it turns white again once scrolled, or while the mobile menu is open */
body:not(.menu-open) .sticky-nav-wrapper.hv3-nav-top,
body:not(.menu-open) .sticky-nav-wrapper.hv3-nav-top .header,
body:not(.menu-open) .sticky-nav-wrapper.hv3-nav-top .nav-menu:not(.menu-open) {
  background-color: transparent !important;
}


/* v3: desktop — tablets sit a little lower, the form a little higher */
@media (min-width: 1025px) {
  .hv3-hero-visual .hv2-hero-stack { top: 40px; }
  .hv3-hero-form { bottom: 30px; }
}

/* v3: desktop — ShedHub peeks out from the lower-left of the form instead of hiding behind it */
@media (min-width: 1025px) {
  .hv3-hero-visual .hv2-browser-1 { top: auto; bottom: 8%; left: -30%; width: 62%; transform: rotate(-10deg); }
}
@media (min-width: 1025px) and (max-width: 1439px) {
  .hv3-hero-visual .hv2-browser-1 { left: -22%; }
}

/* ---------- v3: logo strip — every client logo in an endless scrolling loop on all screens ---------- */
@media (min-width: 1025px) {
  .hv2-marquee {
    max-width: none; padding: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .hv2-marquee-track { width: max-content; justify-content: flex-start; gap: 80px; animation: hv2-marquee 45s linear infinite; }
  .hv2-marquee-track img[aria-hidden="true"] { display: block; }
  @keyframes hv2-marquee { to { transform: translateX(calc(-50% - 40px)); } }
}
/* ShedHub's wordmark is white: flip it dark so it shows on the white strip */
.hv2-marquee-track img[src*="logo-white"],
.hv2-marquee-track img[src*="logo-white"]:hover { filter: invert(1) grayscale(1) contrast(1.1); }
.hv2-marquee-track img[src*="yoder"] { mix-blend-mode: multiply; }
/* square badge logos read small in the wide boxes */
.hv2-marquee-track img[src*="logo-2"],
.hv2-marquee-track img[src*="yoder"] { transform: scale(1.35); }

/* ---------- v3: services redesign — numbered list + one large photo that follows the hovered row ---------- */
.hv3-svc {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.hv3-svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-200); }
.hv3-svc-list li { border-bottom: 1px solid var(--gray-200); }
.hv3-svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
  padding: 26px 8px;
  color: inherit;
  text-decoration: none;
}
.hv3-svc-item::before {           /* gold bar that grows in on the open row */
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}
.hv3-svc-item.is-active::before { transform: scaleY(1); }
.hv3-svc-num {
  padding-left: 16px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gray-medium);
  transition: color 0.3s ease;
}
.hv3-svc-thumb { display: none; }
.hv3-svc-text { display: grid; }
.hv3-svc-title {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.hv3-svc-desc {                    /* description slides open on the active row */
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--gray-dark);
  line-height: 1.55;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}
.hv3-svc-arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 1.1rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.hv3-svc-item.is-active .hv3-svc-num { color: var(--gold-accent); }
.hv3-svc-item.is-active .hv3-svc-title { opacity: 1; }
.hv3-svc-item.is-active .hv3-svc-desc { max-height: 120px; opacity: 1; margin-top: 8px; }
.hv3-svc-item.is-active .hv3-svc-arrow { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); }
.hv3-svc-item:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.hv3-svc-media {
  position: sticky;
  top: calc(var(--nav-height, 120px) + 24px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: 0 40px 70px -35px rgba(1, 1, 126, 0.45);
}
.hv3-svc-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hv3-svc-media img.is-active { opacity: 1; transform: none; }
.hv3-svc-media::after {           /* soft shade so the tag stays readable */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 77, 0.55));
}
.hv3-svc-media-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Tablet + phone: a plain list, each row with its own photo and description */
@media (max-width: 1024px) {
  .hv3-svc { grid-template-columns: 1fr; gap: 0; }
  .hv3-svc-media { display: none; }
  .hv3-svc-item { grid-template-columns: 88px minmax(0, 1fr) 40px; padding: 20px 0; }
  .hv3-svc-item::before { display: none; }
  .hv3-svc-num { display: none; }
  .hv3-svc-thumb { display: block; width: 88px; height: 88px; border-radius: 14px; object-fit: cover; }
  .hv3-svc-title { opacity: 1; font-size: 1.15rem; }
  .hv3-svc-desc { max-height: none; opacity: 1; margin-top: 6px; font-size: 0.92rem; }
  .hv3-svc-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hv3-svc-item.is-active .hv3-svc-arrow { background: transparent; border-color: var(--gray-200); transform: none; }
}
@media (max-width: 640px) {
  .hv3-svc-item { grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 14px; }
  .hv3-svc-thumb { width: 72px; height: 72px; }
  .hv3-svc-arrow { width: 32px; height: 32px; }
}

/* Services head: intro + CTAs fill the space beside the heading, lined up with the photo column below */
.hv3-svc-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: end;
}
.hv3-svc-intro { padding-left: 24px; border-left: 3px solid var(--gold); }
.hv3-svc-intro p { margin: 0 0 22px; font-size: 1.1rem; line-height: 1.6; color: var(--gray-dark); }
.hv3-svc-intro-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hv3-svc-intro-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hv3-svc-intro-link:hover { color: var(--gold-accent); }
@media (max-width: 1024px) {
  .hv3-svc-head { grid-template-columns: 1fr; gap: 24px; }
  .hv3-svc-intro p { font-size: 1rem; }
}

/* ---------- v3: Our Work — "now showing" reel ----------
   One featured project centre-stage, neighbours tilted and dimmed either side, an ambient glow in the
   active client's brand colour, and chapter progress bars that auto-advance (paused on hover/focus). */
@property --glow { syntax: "<color>"; inherits: true; initial-value: #1fa463; }
.hv3-reel { position: relative; --dur: 6.5s; transition: --glow 0.9s ease; }
.hv3-reel-glow {                  /* the "light off the screen" behind the stage */
  position: absolute;
  inset: -60px -10% 60px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 55% at 50% 50%, color-mix(in srgb, var(--glow) 42%, transparent), transparent 72%);
  filter: blur(30px);
}
.hv3-reel-stage {
  position: relative;
  z-index: 1;
  display: flex;                  /* no-JS fallback: scroll-snap row */
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.hv3-reel.is-ready .hv3-reel-stage {
  display: block;
  height: 560px;
  overflow: visible;
  perspective: 1800px;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hv3-reel-slide {
  position: relative;
  flex: 0 0 min(86%, 760px);
  height: 520px;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 25%, #00004d), #00002e);
  color: #fff;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hv3-reel.is-ready .hv3-reel-slide {
  position: absolute;
  top: 0; left: 50%;
  width: min(62%, 760px);
  height: 100%;
  cursor: pointer;
  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.6s ease,
    filter 0.6s ease,
    border-color 0.4s ease,
    box-shadow 0.6s ease;
}
.hv3-reel-slide[data-pos="0"] {
  z-index: 3;
  transform: translateX(-50%);
  border-color: rgba(255, 191, 82, 0.55);
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--accent) 70%, #000);
}
.hv3-reel-slide[data-pos="-1"],
.hv3-reel-slide[data-pos="1"] { z-index: 2; opacity: 0.6; filter: brightness(0.5) saturate(0.8); }
.hv3-reel-slide[data-pos="-1"] { transform: translateX(-50%) translateX(-74%) scale(0.8) rotateY(16deg); }
.hv3-reel-slide[data-pos="1"]  { transform: translateX(-50%) translateX(74%)  scale(0.8) rotateY(-16deg); }
.hv3-reel-slide[data-pos="-1"]:hover,
.hv3-reel-slide[data-pos="1"]:hover { opacity: 0.85; filter: brightness(0.75); }
.hv3-reel-slide[data-pos^="out"] { z-index: 1; opacity: 0; pointer-events: none; }
.hv3-reel-slide[data-pos="out-l"] { transform: translateX(-50%) translateX(-130%) scale(0.65) rotateY(24deg); }
.hv3-reel-slide[data-pos="out-r"] { transform: translateX(-50%) translateX(130%)  scale(0.65) rotateY(-24deg); }
.hv3-reel-slide::after {          /* bottom shade so the caption reads over the mockup */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 46, 0.94) 86%);
  pointer-events: none;
}
.hv3-reel-img {
  position: absolute;
  top: 44px; left: 50%;
  width: min(84%, 580px);
  max-width: none;
  transform: translateX(-50%) scale(0.92);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.hv3-reel-slide[data-pos="0"] .hv3-reel-img { transform: translateX(-50%) scale(1); }
.hv3-reel-num {
  position: absolute;
  top: 22px; left: 24px;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.hv3-reel-num span { color: rgba(255, 255, 255, 0.45); }
.hv3-reel-info {
  position: absolute;
  left: 32px; right: 32px; bottom: 28px;
  z-index: 2;
  display: grid;
  justify-items: start;
}
.hv3-reel.is-ready .hv3-reel-info { opacity: 0; transform: translateY(18px); transition: opacity 0.3s ease, transform 0.5s ease; }
.hv3-reel.is-ready .hv3-reel-slide[data-pos="0"] .hv3-reel-info { opacity: 1; transform: none; transition-delay: 0.35s; }
.hv3-reel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hv3-reel-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hv3-reel-name { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hv3-reel-desc { margin: 6px 0 14px; color: rgba(255, 255, 255, 0.75); }
.hv3-reel-visit { display: inline-flex; gap: 6px; font-weight: 700; color: var(--gold); }
.hv3-reel-slide:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Chapter bar */
.hv3-reel-bar { display: none; }
.hv3-reel.is-ready .hv3-reel-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  max-width: 960px;
  margin: 28px auto 0;
}
.hv3-reel-chapters {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hv3-reel-chapter {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}
.hv3-reel-chapter-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hv3-reel-chapter b { margin-right: 6px; font-weight: 800; }
.hv3-reel-chapter:hover,
.hv3-reel-chapter.is-active { color: #fff; }
.hv3-reel-chapter.is-active b { color: var(--gold); }
.hv3-reel-chapter:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.hv3-reel-track { position: relative; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.hv3-reel-fill { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hv3-reel-chapter.is-active .hv3-reel-fill { animation: hv3-reel-fill var(--dur) linear forwards; }
.hv3-reel.is-hold .hv3-reel-fill,
.hv3-reel.is-off .hv3-reel-fill { animation-play-state: paused; }
.hv3-reel.is-paused .hv3-reel-chapter.is-active .hv3-reel-fill { animation: none; transform: scaleX(1); }
@keyframes hv3-reel-fill { to { transform: scaleX(1); } }

.hv3-reel-ctrls { display: flex; gap: 10px; }
.hv3-reel-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hv3-reel-btn:hover { background: var(--gold); border-color: var(--gold); color: #00004d; }
.hv3-reel-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hv3-reel-btn svg { width: 16px; height: 16px; fill: currentColor; }
.hv3-reel .i-play,
.hv3-reel.is-paused .i-pause { display: none; }
.hv3-reel.is-paused .i-play { display: block; }

/* Tablet */
@media (max-width: 1024px) {
  .hv3-reel.is-ready .hv3-reel-stage { height: 480px; }
  .hv3-reel.is-ready .hv3-reel-slide { width: 72%; }
  .hv3-reel-slide[data-pos="-1"] { transform: translateX(-50%) translateX(-80%) scale(0.82) rotateY(14deg); }
  .hv3-reel-slide[data-pos="1"]  { transform: translateX(-50%) translateX(80%)  scale(0.82) rotateY(-14deg); }
  .hv3-reel-name { font-size: 1.6rem; }
}
/* Phone: bigger centre slide, neighbours just peek; chapters show numbers only */
@media (max-width: 640px) {
  .hv3-reel.is-ready .hv3-reel-stage {
    height: 420px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hv3-reel-slide { height: 400px; }
  .hv3-reel.is-ready .hv3-reel-slide { width: 84%; }
  .hv3-reel-slide[data-pos="-1"] { transform: translateX(-50%) translateX(-96%) scale(0.86); }
  .hv3-reel-slide[data-pos="1"]  { transform: translateX(-50%) translateX(96%)  scale(0.86); }
  .hv3-reel-img { top: 48px; width: 94%; }
  .hv3-reel-info { left: 20px; right: 20px; bottom: 20px; }
  .hv3-reel-name { font-size: 1.35rem; }
  .hv3-reel-desc { margin-bottom: 10px; font-size: 0.92rem; }
  .hv3-reel.is-ready .hv3-reel-bar { gap: 14px; margin-top: 20px; }
  .hv3-reel-chapter-label { font-size: 0; }
  .hv3-reel-chapter b { margin: 0; font-size: 0.8rem; }
  .hv3-reel-ctrls { gap: 8px; }
  .hv3-reel-btn { width: 40px; height: 40px; }
}

/* ---------- v3: "Who we are" statement: background texture ----------
   Warm light glows, a faint blueprint grid that fades out behind the text, two drifting outline rings
   and a giant outlined DEFYNED wordmark. All decoration is aria-hidden / pseudo-elements. */
.hv3-stmt {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 80% at 8% 0%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(55% 75% at 100% 100%, rgba(225, 140, 30, 0.45), transparent 65%),
    var(--gold);
}
.hv3-stmt::before {               /* blueprint grid, hidden in the middle where the quote sits */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 1, 126, 0.07) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(1, 1, 126, 0.07) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000 85%);
          mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000 85%);
}
.hv3-stmt-word {
  position: absolute;
  left: 50%; bottom: -0.34em;
  z-index: -1;
  transform: translateX(-50%);
  font-size: clamp(7rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: rgba(1, 1, 126, 0.06);   /* solid, not outlined: the variable font's overlapping contours show when stroked */
  pointer-events: none;
  user-select: none;
}
.hv3-stmt-ring {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid rgba(1, 1, 126, 0.14);
  pointer-events: none;
}
.hv3-stmt-ring::after {           /* small solid dot riding on each ring */
  content: "";
  position: absolute;
  top: 14%; left: 14%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--navy);
}
.hv3-stmt-ring-a { width: 420px; height: 420px; top: -210px; left: -120px; animation: hv3-stmt-spin 40s linear infinite; }
.hv3-stmt-ring-b {
  width: 300px; height: 300px; right: -90px; bottom: -110px;
  border-style: dashed;
  animation: hv3-stmt-spin 55s linear infinite reverse;
}
.hv3-stmt-ring-b::after { background: #fff; }
@keyframes hv3-stmt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hv3-stmt-ring { animation: none; }
}
@media (max-width: 640px) {
  .hv3-stmt-ring-a { width: 260px; height: 260px; top: -150px; left: -110px; }
  .hv3-stmt-ring-b { width: 200px; height: 200px; right: -90px; bottom: -90px; }
  .hv3-stmt-word { bottom: -0.3em; }
}

/* Mobile + tablet: hero content sits just under the header/logo instead of ~120px lower */
@media (max-width: 1023px) {
  .hv2-hero { padding-top: calc(var(--nav-height, 80px) + 32px); }
}
@media (max-width: 640px) {
  .hv2-hero { padding-top: calc(var(--nav-height, 72px) + 24px); }
}

/* ---------- Phones: centered heroes, section heads and CTA copy (lists, cards, forms and long text stay left) ---------- */
@media (max-width: 640px) {
  /* hero */
  .hv2-hero-copy { text-align: center; }
  .hv2-hero-copy .hv2-eyebrow { justify-content: center; }
  .hv2-hero-copy .hv2-hero-lede { margin-left: auto; margin-right: auto; }
  .hv2-hero-ctas { justify-content: center; }
  .sv-crumbs, .sh-crumbs, .tp-crumbs { justify-content: center; }
  .sv-trust, .sh-trust, .ab-facts, .pw-facts { justify-content: center; }
  .ir-lockup { margin-left: auto; margin-right: auto; }
  .ab-hero-inner > * { margin-left: auto; margin-right: auto; }
  .ab-hero-inner { text-align: center; }
  .ab-hero .hv2-eyebrow { justify-content: center; }

  /* section heads */
  .hv2-head, .hv2-head > div { text-align: center; }
  .hv2-head { margin-left: auto; margin-right: auto; }
  .hv2-head-split { flex-direction: column; align-items: center; }
  .hv2-kicker { justify-content: center; }
  .hv3-svc-intro { padding: 18px 0 0; border-left: 0; border-top: 3px solid var(--gold); text-align: center; }
  .hv3-svc-intro-ctas { justify-content: center; }
  .sh-head-lede { margin-left: auto; margin-right: auto; }

  /* closing CTA copy (form stays as is) */
  .hv2-cta-copy { text-align: center; }
  .hv2-cta-copy .hv2-nap { justify-items: center; }
  .hv2-cta-copy .hv3-next { text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* Phones: headings + buttons in split (text beside image/list) sections are centered too; their paragraphs stay left */
@media (max-width: 640px) {
  .ab-story-copy, .ir-split > div, .sh-long > div, .sh-split > div, .ct-visit-copy,
  .pr-steps-head, .gs-faq-head, .sh-faq-wrap > div:first-child, .ab-partner-grid > div,
  .ir-book-head, .sc-book-head, .pk-detail-body { text-align: center; }
  .ab-story-copy > p:not(.hv2-kicker), .ir-split .ir-copy, .sh-long .sh-copy, .sh-split .sh-copy,
  .ct-visit-copy > p:not(.hv2-kicker), .pk-detail-body > p:not(.hv2-kicker), .ab-partner-body { text-align: left; }
  .ir-split .ir-points, .ir-split .ir-next { text-align: left; }
  .ct-address { display: inline-block; text-align: left; }
  .ct-visit-ctas { justify-content: center; }
  .pk-detail-body .hv2-link, .sh-long-btn { align-self: center; }
  .ab-partner-grid { justify-items: center; }
}
