/* ═══════════════════════════════════════════════════
   Homepage — home.css
   Two-panel sticky scroll hero effect
═══════════════════════════════════════════════════ */

/* ── Base ── */
.hp-main {
  background: var(--dovetail-bg);
  color: var(--dovetail-dark);
}

.hp-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: 40px;
}


/* ═══════════════════════════════════════════════════
   Hero wrapper — scroll zone
   Natural height: Panel 1 (100vh) + Panel 2 (min 100vh) – peek offset
═══════════════════════════════════════════════════ */

.hp-hero-wrapper {
  position: relative;
}


/* ═══════════════════════════════════════════════════
   Panel 1 — Sticky full-screen hero
═══════════════════════════════════════════════════ */

.hp-panel-1 {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dovetail-dark);
}

/* Background image
   Starts 10% above panel to allow parallax without showing white space */
.hp-panel-1-bg {
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  bottom: -10%;
  z-index: 0;
  will-change: transform;
}

.hp-panel-1-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient overlay — stronger on left for content legibility */
.hp-panel-1-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.48) 55%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

/* Hero content */
.hp-panel-1-content {
  position: relative;
  z-index: 2;
  padding-top: 80px; /* clear sticky header */
  will-change: opacity, transform;
}

/* Eyebrow */
.hp-eyebrow {
  display: block;
  margin-bottom: 28px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dovetail-taupe-300);
}

/* H1 */
.hp-panel-1-content h1 {
  margin: 0 0 32px;
  line-height: 0.95;
}

.hp-h1-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 600;
  color: var(--dovetail-white);
  letter-spacing: -0.01em;
}

.hp-h1-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(38px, 6.5vw, 92px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  margin-top: -4px;
}

/* Description */
.hp-hero-desc {
  max-width: 580px;
  margin: 0 0 48px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

/* CTA row */
.hp-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 42px;
  background: var(--dovetail-dark);
  color: var(--dovetail-off-white);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hp-btn-primary:hover {
  background: var(--dovetail-taupe-300);
  color: var(--dovetail-dark);
  transform: translateY(-2px);
}

.hp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hp-btn-ghost:hover {
  border-color: none !important;
  color: var(--dovetail-white);
  background: var(--dovetail-green-950);
  transform: translateY(-2px);
}

/* ── Scroll cue ── */
.hp-scroll-cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.hp-scroll-cue-label {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Animated chevron arrow */
.hp-scroll-cue-arrow {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  animation: hp-cue-bounce 1.9s ease-in-out infinite;
}

@keyframes hp-cue-bounce {
  0%, 100% { transform: rotate(45deg) translate(0,    0);  }
  50%       { transform: rotate(45deg) translate(4px, 4px); }
}


/* ═══════════════════════════════════════════════════
   Panel 2 — Slides up over Panel 1
   Negative margin creates the "peek" from bottom
═══════════════════════════════════════════════════ */

.hp-panel-2 {
  position: relative;
  z-index: 2;
  margin-top: -80px;          /* peek 80px above panel 1 bottom */
  background: var(--dovetail-white); 
  padding: 100px 0 100px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Pull-bar handle — visual affordance */
.hp-pull-bar {
  width: 44px;
  height: 4px;
  background: rgba(31, 30, 27, 0.15);
  border-radius: 2px;
  margin: 0 auto 56px;
}

/* ── 70 / 30 grid inside panel 2 ── */
.hp-panel-2-inner {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 64px;
  align-items: center;
}

/* Right column — image */
.hp-panel-2-img-wrap {
  position: relative;
  overflow: hidden;
  align-self: stretch;       /* match left column height */
  min-height: 420px;
}

.hp-panel-2-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Eyebrow */
.hp-panel-2-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-family: "Cal Sans", sans-serif !important;
  font-size: clamp(34px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

/* H2 */
.hp-panel-2-inner h2 {
  margin: 0 0 64px;
  line-height: 1;
}

.hp-panel2-ott {
  font-family: "Old Standard TT", serif;
  text-transform: capitalize;
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: var(--dovetail-dark);
}

/* Stats row */
.hp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 56px 0;
  border-top: 1px solid rgba(31, 30, 27, 0.1);
  border-bottom: 1px solid rgba(31, 30, 27, 0.1);
  margin-bottom: 56px;
}

.hp-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 40px;
}

.hp-stat + .hp-stat {
  padding-left: 40px;
  padding-right: 40px;
  border-left: 1px solid rgba(31, 30, 27, 0.1);
}

.hp-stat:last-child {
  padding-right: 0;
}

.hp-stat-number {
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 400;
  line-height: 1;
  color: var(--dovetail-dark);
}

.hp-stat-number span {
  color: var(--dovetail-taupe-500);
}

.hp-stat-label {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

/* Panel 2 description */
.hp-panel-2-desc {
  margin: 0 0 32px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--dovetail-dark-500);
  max-width: 540px;
}

/* Panel 2 CTA link */
.hp-panel-2-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid var(--dovetail-dark);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.hp-panel-2-link:hover {
  background: var(--dovetail-dark);
  color: var(--dovetail-white);
  border-color: var(--dovetail-dark);
  gap: 16px;
}


/* ═══════════════════════════════════════════════════
   Featured Projects section
═══════════════════════════════════════════════════ */

.hp-proj-section {
  background: var(--dovetail-white);
  padding: 120px 0 140px;
}

/* Section header row */
.hp-proj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

/* Eyebrow */
.hp-proj-eyebrow {
  display: block;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

/* Heading */
.hp-proj-heading-group h2 {
  margin: 0;
  line-height: 0.95;
}

.hp-proj-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(38px, 6vw, 82px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}

.hp-proj-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(44px, 4vw, 68px);
  font-weight: 400;
  color: var(--dovetail-dark);
  margin-top: -2px;
}

/* View all link */
.hp-proj-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 12px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.hp-proj-view-all:hover {
  color: var(--dovetail-accent);
  gap: 16px;
}

/* View all — below the list */
.hp-proj-view-all-wrap {
  margin-top: 48px;
  text-align: center;
}

.hp-proj-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--dovetail-accent-strong);
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, gap 0.25s ease;
}

.hp-proj-view-all-btn:hover {
  background: var(--dovetail-accent);
  gap: 16px;
}

/* ── Project list — one row per project ── */
.hp-proj-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hp-proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

/* Left: image */
.hp-proj-row-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hp-proj-row-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-proj-row:hover .hp-proj-row-img-wrap img {
  transform: scale(1.04);
}

/* Right: content */
.hp-proj-row-body {
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dovetail-white);
}

/* Type · City meta line */
.hp-proj-row-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}

.hp-proj-row-type {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dovetail-accent);
}

.hp-proj-row-city {
  margin: -20px 0 20px;
  font-family: "Old Standard TT", serif !important;
  font-style: italic;
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 400;
  color: var(--dovetail-text-muted);
  letter-spacing: normal;
  text-transform: none;
}

/* Title */
.hp-proj-row-title {
  margin: 0 0 20px;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.01em;
}

.hp-proj-row-title a {
  color: var(--dovetail-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hp-proj-row-title a:hover {
  color: var(--dovetail-accent);
}

/* 15-word intro */
.hp-proj-row-intro {
  margin: 0 0 28px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--dovetail-text-soft);
  max-width: 54ch;
}

/* Alternating layout — even rows flip image to the right */
.hp-proj-row:nth-child(even) .hp-proj-row-img-wrap {
  order: 2;
}
.hp-proj-row:nth-child(even) .hp-proj-row-body {
  order: 1;
}

/* Challenge block */
.hp-proj-row-chal {
  margin: 0 0 36px;
  padding-top: 5px;
}

.hp-proj-row-chal p {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(----dovetail-dark-100);
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dovetail-text-soft);
  max-width: 54ch;
}

/* View Project button */
.hp-proj-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 13px 28px;
  border: 1px solid var(--dovetail-text);
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-text);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.hp-proj-row-btn:hover {
  background: var(--dovetail-text);
  color: var(--dovetail-white);
}


/* ═══════════════════════════════════════════════════
   Scroll-reveal system
   .hp-reveal      → fade + rise (most elements)
   .hp-reveal-fade → fade only  (full-height image cols)
   Add .hp-visible via IntersectionObserver in home.js
═══════════════════════════════════════════════════ */

.hp-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity   0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-reveal.hp-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-reveal-fade {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-reveal-fade.hp-visible {
  opacity: 1;
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hp-reveal,
  .hp-reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ═══════════════════════════════════════════════════
   The Dovetail Difference section
═══════════════════════════════════════════════════ */

.hp-diff-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--dovetail-bg) 0%, var(--dovetail-white) 100%);
  padding: 120px 0 140px;
}

/* ── Layer 1: grain / paper texture ── */
.hp-diff-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;                     /* above plain background */
  pointer-events: none;
  /* SVG feTurbulence tile — 200 × 200 px, repeating */
  background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23g)' opacity='1'/></svg>");
  background-size: 200px 200px;
  opacity: 0.045;
  mix-blend-mode: multiply;       /* blends naturally with cream */
}

/* ── Layer 2: abstract SVG lines + circles ── */
.hp-diff-bg-art {
  position: absolute;
  inset: 0;
  z-index: 2;                     /* above grain */
  pointer-events: none;
}

.hp-diff-bg-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Eyebrow + heading block */
.hp-diff-top {
  position: relative;
  z-index: 3;                     /* above both texture layers */
  margin-bottom: 80px;
  max-width: 860px;
}

.hp-diff-eyebrow {
  display: block;
  margin-bottom: 24px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

.hp-diff-top h2 {
  margin: 0;
  line-height: 0.95;
}

.hp-diff-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}

.hp-diff-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  color: var(--dovetail-dark);
  margin-top: -2px;
}

/* 3-column grid — top border creates visual divider */
.hp-diff-grid {
  position: relative;
  z-index: 3;                     /* same layer as heading, above textures */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Card: an architect's title-block ──
   Flat and square by doctrine (No-Shadow Rule): white surface lifting
   off the cream section, edge defined by a 1px hairline border, depth
   carried by a faint blueprint grid rather than a shadow. */
.hp-diff-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 34px;
  background: var(--dovetail-surface);
  border: 1px solid var(--dovetail-border);
  transition: border-color 0.3s ease;
}

/* Faint blueprint grid bleeding up from the base — echoes the
   draughtsman line-art behind the section (.hp-diff-bg-art) */
.hp-diff-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, var(--dovetail-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dovetail-border) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 85%);
          mask-image: linear-gradient(to bottom, transparent, #000 85%);
}

/* Keep all content above the grid texture */
.hp-diff-item > * {
  position: relative;
  z-index: 1;
}

.hp-diff-item:hover {
  border-color: var(--dovetail-taupe-500);
}

/* ── Top row: drawing-sheet index + category tag ── */
.hp-diff-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 26px;
}

.hp-diff-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
}

.hp-diff-index-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dovetail-accent-strong);   /* darker bronze — clears contrast */
}

.hp-diff-index-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dovetail-text-muted);
}

.hp-diff-index-cat::before {        /* short architectural tick before the label */
  content: "";
  width: 16px;
  height: 1px;
  margin-right: 12px;
  background: var(--dovetail-border);
}

.hp-diff-tag {
  flex-shrink: 0;
  padding: 5px 11px;
  background: var(--dovetail-surface-soft);
  border: 1px solid var(--dovetail-border);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dovetail-text-muted);
}

/* ── Title: Old Standard TT italic — the brand's editorial voice ── */
.hp-diff-item h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--dovetail-text);
  text-wrap: balance;
}

.hp-diff-item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--dovetail-text-soft);   /* deeper than dark-500 for readability */
}


/* ═══════════════════════════════════════════════════
   Founder — Adam Patel (dark section)
═══════════════════════════════════════════════════ */

.hp-adam-section {
  background: var(--dovetail-dark);
  color: var(--dovetail-white);
  min-height: 85vh;
  min-height: 85dvh;
}

/* Full-bleed 2-col grid — image left, content right */
.hp-adam-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  min-height: 85dvh;
}

/* ── Portrait column ── */
.hp-adam-img-col {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hp-adam-img-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Content column ── */
.hp-adam-content-col {
  display: flex;
  align-items: center;
  padding: 100px 80px;
}

.hp-adam-content {
  width: 100%;
  max-width: 560px;
}

/* Gold eyebrow */
.hp-adam-eyebrow {
  display: block;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-green-200);
}

/* Heading block */
.hp-adam-h2 {
  margin: 0 0 28px;
  line-height: 0.88;
}

/* "Master" — Cal Sans, very large */
.hp-adam-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  /* "Boutique Homes" is ~14 chars — scaled to fit the 50%-wide content column */
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 600;
  color: var(--dovetail-white);
  letter-spacing: -0.02em;
  white-space: nowrap;            /* keep both words on one line */
}

/* "by Adam Patel" — Old Standard TT italic */
.hp-adam-h2-byline {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(32px, 2.4vw, 38px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

/* Tagline */
.hp-adam-tagline {
  margin: 0 0 36px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

/* Bio — separated by a faint rule */
.hp-adam-bio {
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hp-adam-bio p {
  margin: 0 0 22px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(17px, 2vh, 18px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.58);
}

.hp-adam-bio p:last-child {
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════
   Tablet — ≤ 1024px
═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {

  .hp-container {
    padding-inline: 24px;
  }

  .hp-panel-1-content {
    padding-top: 70px;
  }

  .hp-stats-row {
    gap: 0;
  }

  .hp-stat {
    padding-right: 30px;
  }

  .hp-stat + .hp-stat {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Panel 2 — 70/30 tighten gap on tablet */
  .hp-panel-2-inner {
    gap: 40px;
  }

  /* Projects section */
  .hp-proj-section {
    padding: 90px 0 110px;
  }

  .hp-proj-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hp-proj-row-img-wrap {
    height: 320px;
    position: relative;
  }

  .hp-proj-row-body {
    padding: 40px 32px;
  }

  /* Difference section */
  .hp-diff-section {
    padding: 90px 0 110px;
  }

  .hp-diff-top {
    margin-bottom: 60px;
  }

  .hp-diff-grid {
    gap: 16px;
  }

  .hp-diff-item {
    padding: 24px 22px 28px;
  }

  /* Adam section — tighten content padding on tablet */
  .hp-adam-content-col {
    padding: 80px 48px;
  }

}


/* ═══════════════════════════════════════════════════
   Mobile — ≤ 767px
═══════════════════════════════════════════════════ */

@media (max-width: 767px) {

  .hp-container {
    padding-inline: 18px;
  }

  /* Panel 1 */
  .hp-panel-1-content {
    padding-top: 64px;
  }

  .hp-eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
    letter-spacing: 0.16em;
  }

  .hp-hero-desc {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .hp-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hp-btn-primary,
  .hp-btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hp-scroll-cue {
    bottom: 28px;
  }

  /* Panel 2 */
  .hp-panel-2 {
    margin-top: -60px;
    padding: 65px 0 80px;
  }

  .hp-pull-bar {
    margin-bottom: 40px;
  }

  .hp-panel-2-inner h2 {
    margin-bottom: 44px;
  }

  .hp-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 45px 20px;
    padding: 40px 0;
  }

  .hp-stat,
  .hp-stat + .hp-stat {
    padding: 0;
    border: none;
  }


  /* Panel 2 — stack to single column on mobile */
  .hp-panel-2-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Image shows below content on mobile */
  .hp-panel-2-img-wrap {
    display: block;
    min-height: 280px;
    position: relative;
  }

  .hp-panel-2-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Projects section */
  .hp-proj-section {
    padding: 72px 0 90px;
  }

  .hp-proj-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 44px;
  }

  .hp-proj-view-all {
    margin-top: 10px; 
    margin-bottom: 0;
  }

  .hp-proj-row-body {
    padding: 32px 24px;
  }

  /* Difference section — stack to single column */
  .hp-diff-section {
    padding: 72px 0 90px;
  }

  .hp-diff-top {
    margin-bottom: 48px;
  }

  .hp-diff-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hp-diff-item {
    padding: 26px 24px 30px;
  }

  /* Adam section — stack: content top, portrait bottom */
  .hp-adam-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  /* Content first on mobile */
  .hp-adam-content-col {
    order: 1;
    padding: 60px 24px 56px;
  }

  /* Portrait second (bottom) on mobile */
  .hp-adam-img-col {
    order: 2;
    min-height: 420px;
  }

  .hp-adam-img-col img {
    position: absolute;
    object-position: center center; /* centred portrait on mobile */
  }

  /* Fit "Boutique Homes" on one line within full-width column */
  .hp-adam-h2-cal {
    font-size: clamp(28px, 9vw, 46px);
  }

}


/* ═══════════════════════════════════════════════════
   What I Do — services section
═══════════════════════════════════════════════════ */

.hp-wid-section {
  position: relative;
  overflow: hidden;
  background: var(--dovetail-green-950);
  padding: 120px 0 140px;
}

/* Header */
.hp-wid-header {
  margin-bottom: 30px;
  padding-bottom: 72px;
}

.hp-wid-eyebrow {
  display: block;
  margin-bottom: 24px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-green-200);
}

.hp-wid-header h2 {
  margin: 0;
  line-height: 1;
}

.hp-wid-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 600;
  color: var(--dovetail-white);
  letter-spacing: -0.015em;
  line-height: 0.97;
}

.hp-wid-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(38px, 3.8vw, 62px);
  font-weight: 400;
  color: var(--dovetail-taupe-500);
  margin-top: 8px;
}

/* Two-column grid */
.hp-wid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}

/* Column header row — eyebrow + heading left, icon right */
.hp-wid-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hp-wid-col-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-wid-col-eyebrow {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dovetail-taupe-500);
}

.hp-wid-col-heading {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: var(--dovetail-white);
  line-height: 1.1;
}

/* Thin circle icon */
.hp-wid-col-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dovetail-green-200);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.hp-wid-col:hover .hp-wid-col-icon {
  border-color: var(--dovetail-taupe-700);
  color: var(--dovetail-taupe-500);
}

/* List with em-dash markers */
.hp-wid-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-wid-list li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "Roboto", sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.hp-wid-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 15px;
  font-family: "Old Standard TT", serif;
  font-size: 13px;
  color: var(--dovetail-accent);
  line-height: 1.65;
  pointer-events: none;
}

.hp-wid-list li:hover {
  color: var(--dovetail-taupe-500);
  padding-left: 32px;
}

.hp-wid-list li:last-child {
  border-bottom: none;
}

/* CTA row */
.hp-wid-cta {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-wid-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.hp-wid-cta-btn:hover {
  background: var(--dovetail-accent);
  border-color: var(--dovetail-accent);
  color: var(--dovetail-dark);
  gap: 18px;
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .hp-wid-section { padding: 90px 0 110px; }
  .hp-wid-header { margin-bottom: 60px; padding-bottom: 56px; }
  .hp-wid-grid { gap: 0 48px; }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .hp-wid-section { padding: 72px 0 90px; }
  .hp-wid-header { margin-bottom: 48px; padding-bottom: 44px; }
  .hp-wid-grid { grid-template-columns: 1fr; gap: 48px 0; }
  .hp-wid-cta { margin-top: 48px; padding-top: 36px; }
  .hp-wid-cta-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════
   Where I Build section
═══════════════════════════════════════════════════ */

.hp-where-section {
  background: var(--dovetail-white);
  padding: 120px 0 140px;
  border-top: 1px solid rgba(31, 30, 27, 0.08);
}

/* Intro block */
.hp-where-intro {
  max-width: 760px;
  margin-bottom: 80px;
}

.hp-where-intro h2 {
  margin: 0 0 28px;
  line-height: 0.97;
}

.hp-where-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(34px, 4vw, 72px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}

.hp-where-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  color: var(--dovetail-dark);
  margin-top: 4px;
}

.hp-where-desc {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--dovetail-dark-500);
  max-width: 640px;
}

/* Three-column area grid */
.hp-where-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(31, 30, 27, 0.12);
}

.hp-where-area {
  padding: 48px 48px 48px 0;
  border-right: 1px solid rgba(31, 30, 27, 0.10);
}

.hp-where-area:first-child {
  padding-left: 0;
}

.hp-where-area:last-child {
  padding-right: 0;
  border-right: none;
  padding-left: 48px;
}

.hp-where-area:nth-child(2) {
  padding-left: 48px;
}

.hp-where-area-heading {
  margin: 0 0 20px;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}

/* Neighbourhood names — dots as separators */
.hp-where-area-hoods {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  color: var(--dovetail-dark-500);
}

/* GTA area description */
.hp-where-area-desc {
  margin: 0 0 24px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.85;
  color: var(--dovetail-dark-500);
}

.hp-where-area-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-accent-strong);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.hp-where-area-link:hover {
  color: var(--dovetail-accent);
  gap: 13px;
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .hp-where-section { padding: 90px 0 110px; }
  .hp-where-intro { margin-bottom: 60px; }
  .hp-where-area,
  .hp-where-area:nth-child(2),
  .hp-where-area:last-child { padding-inline: 32px; }
  .hp-where-area:first-child { padding-left: 0; }
  .hp-where-area:last-child { padding-right: 0; }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .hp-where-section { padding: 72px 0 90px; }
  .hp-where-intro { margin-bottom: 44px; }
  .hp-where-grid { grid-template-columns: 1fr; }
  .hp-where-area,
  .hp-where-area:nth-child(2),
  .hp-where-area:last-child {
    padding: 32px 0;
    padding-inline: 0;
    border-right: none;
    border-bottom: 1px solid rgba(31, 30, 27, 0.10);
  }
  .hp-where-area:last-child { border-bottom: none; }
}


/* ═══════════════════════════════════════════════════
   The Journal — blog preview section
═══════════════════════════════════════════════════ */

.hp-journal-section {
  background: var(--dovetail-bg);
  padding: 120px 0 140px;
  border-top: 1px solid rgba(31, 30, 27, 0.08);
}

/* Header row: left content + right CTA */
.hp-journal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 72px;
}

.hp-journal-eyebrow {
  display: block;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-accent-strong);
}

.hp-journal-header-left h2 {
  margin: 0 0 22px;
  line-height: 0.97;
}

.hp-journal-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}

.hp-journal-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 400;
  color: var(--dovetail-dark);
  margin-top: 4px;
}

.hp-journal-desc {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.85;
  color: var(--dovetail-dark-500);
  max-width: 500px;
}

.hp-journal-read-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, gap 0.25s ease;
}

.hp-journal-read-all:hover {
  color: var(--dovetail-accent-strong);
  gap: 15px;
}

/* 3-column card grid */
.hp-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card — feature image fills the background, all content sits on top */
.hp-journal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--dovetail-dark);
  isolation: isolate;
}

/* Background feature image */
.hp-journal-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-journal-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-journal-card:hover .hp-journal-card-bg img {
  transform: scale(1.05);
}

/* Scrim — black at the bottom fading up to transparent (white at 0% opacity) */
.hp-journal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    #000000 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Content overlay — badges pinned to top, title/excerpt to bottom */
.hp-journal-card-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px 26px;
}

/* Category (left) + author (right) */
.hp-journal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Category tag — solid bronze chip */
.hp-journal-card-cat {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dovetail-white);
  background: var(--dovetail-accent-strong);
  padding: 5px 10px;
}

/* Author tag — frosted-glass chip */
.hp-journal-card-author {
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 11px;
  margin-left: auto;
}

/* Title */
.hp-journal-card-title {
  margin: 0 0 12px;
  font-family: "Cal Sans", sans-serif !important;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.hp-journal-card-title a {
  font-family: "Cal Sans", sans-serif !important;
  font-size: 20px;
  color: var(--dovetail-white);
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Stretched link — makes the whole card clickable */
.hp-journal-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hp-journal-card-title a:hover {
  color: var(--dovetail-green-200);
}

/* 10-word excerpt */
.hp-journal-card-excerpt {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .hp-journal-section { padding: 90px 0 110px; }
  .hp-journal-header { margin-bottom: 52px; }
  .hp-journal-card-body { padding: 24px 28px 28px; }
}

/* 2-col at mid-tablet */
@media (max-width: 900px) {
  .hp-journal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .hp-journal-section { padding: 72px 0 90px; }
  .hp-journal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }
  .hp-journal-grid { grid-template-columns: 1fr; gap: 16px; }
  .hp-journal-card-body { padding: 22px 22px 26px; }
}


/* ═══════════════════════════════════════════════════
   Gallery section
═══════════════════════════════════════════════════ */

.hp-gallery-section {
  background: var(--dovetail-white);
  border-top: 1px solid rgba(31, 30, 27, 0.08); /* separator from dark Adam section */
  padding: 120px 0 140px;
}

/* ── Header row: 2-col layout ── */
.hp-gallery-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 72px;
}

/* Left column — eyebrow + title */
.hp-gallery-header-left {
  padding-right: 60px;
}

.hp-gallery-eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

.hp-gallery-header h2 {
  margin: 0;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(48px, 4vw, 64px); /* intentionally smaller, editorial */
  font-weight: 400;
  color: var(--dovetail-dark);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* Right column — description, visually divided */
.hp-gallery-header-right {
  padding-left: 60px;
  border-left: 1px solid rgba(31, 30, 27, 0.12);
}

.hp-gallery-header-right p {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.65;
  color: var(--dovetail-dark-500);
}

/* ── Masonry grid (CSS columns) ── */
.hp-gallery-grid {
  columns: 3;
  column-gap: 12px;
}

.hp-gallery-item {
  display: inline-block; /* required for column break-inside */
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.hp-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle dark veil on hover */
.hp-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

.hp-gallery-item:hover img {
  transform: scale(1.05);
}

.hp-gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.18);
}

/* ── CTA button ── */
.hp-gallery-cta {
  text-align: center;
  margin-top: 56px;
}

.hp-gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  border: 1px solid var(--dovetail-dark);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.hp-gallery-cta-btn:hover {
  background: var(--dovetail-dark);
  color: var(--dovetail-white);
  gap: 18px;
}

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .hp-gallery-section {
    padding: 90px 0 110px;
  }

  .hp-gallery-header {
    margin-bottom: 56px;
  }

  .hp-gallery-header-left {
    padding-right: 40px;
  }

  .hp-gallery-header-right {
    padding-left: 40px;
  }

  .hp-gallery-grid {
    columns: 2;
  }
}

/* ── Mobile ≤ 767px ── */
@media (max-width: 767px) {
  .hp-gallery-section {
    padding: 72px 0 90px;
  }

  /* Stack header to single column */
  .hp-gallery-header {
    grid-template-columns: 1fr;
    margin-bottom: 44px;
  }

  .hp-gallery-header-left {
    padding-right: 0;
    margin-bottom: 24px;
  }

  .hp-gallery-header-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(31, 30, 27, 0.12);
    padding-top: 24px;
  }

  .hp-gallery-grid {
    columns: 2;
    column-gap: 8px;
  }

  .hp-gallery-item {
    margin-bottom: 8px;
  }
}

/* ── Very small screens ≤ 480px ── */
@media (max-width: 480px) {
  .hp-gallery-grid {
    columns: 1;
  }
}


/* ═══════════════════════════════════════════════════
   Testimonial section
═══════════════════════════════════════════════════ */

.hp-testi-section {
  overflow: hidden;
}

.hp-testi-inner {
  display: grid;
  grid-template-columns: 48fr 52fr;
  min-height: 720px;
}

/* ── Left: full-bleed image with right-edge fade ── */
.hp-testi-img-col {
  position: relative;
  overflow: hidden;
}

.hp-testi-img-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fade image into cream on the right edge */
.hp-testi-img-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 55%,
    var(--dovetail-bg) 100%
  );
  z-index: 1;
}

/* Gold stat badge — bottom left */
.hp-testi-img-badge {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 2;
  background: var(--dovetail-accent);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hp-testi-badge-num {
  font-family: "Cal Sans", sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--dovetail-dark);
  line-height: 1;
}

.hp-testi-badge-label {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(35, 39, 31, 0.65);
}

/* ── Right: cream content panel ── */
.hp-testi-content-col {
  display: flex;
  align-items: center;
  background: var(--dovetail-bg);
  padding: 80px 72px 80px 60px;
  position: relative;
}

/* Giant watermark quote mark */
.hp-testi-content-col::before {
  content: '\201C';
  position: absolute;
  top: 32px;
  right: 52px;
  font-family: "Old Standard TT", serif;
  font-size: 260px;
  line-height: 1;
  color: var(--dovetail-dark);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
}

.hp-testi-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

/* Heading */
.hp-testi-heading {
  margin: 0 0 40px;
  line-height: 1;
}

.hp-testi-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(38px, 3.8vw, 64px);
  font-weight: 400;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hp-testi-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 46px);
  font-weight: 400;
  color: var(--dovetail-accent);
  line-height: 1.1;
  margin-top: 4px;
}

/* Thin gold divider under heading */
.hp-testi-heading-rule {
  width: 48px;
  height: 2px;
  background: var(--dovetail-accent);
  border: none;
  margin: 0 0 40px;
}

/* ── Slides ── */
.hp-testi-slides-wrap {
  display: grid;
  margin-bottom: 48px;
}

.hp-testi-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hp-testi-slide.hp-testi-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s linear 0s;
}

/* Stars */
.hp-testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  color: var(--dovetail-accent);
}

.hp-testi-slide blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.hp-testi-slide blockquote p {
  margin: 0 0 14px;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.72;
  color: var(--dovetail-dark);
}

.hp-testi-slide blockquote p:last-child {
  margin-bottom: 0;
}

.hp-testi-slide cite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

.hp-testi-cite-dash {
  color: var(--dovetail-accent);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

/* ── Controls ── */
.hp-testi-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hp-testi-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  flex-shrink: 0;
}

.hp-testi-current {
  font-size: 22px;
  color: var(--dovetail-dark);
  line-height: 1;
}

.hp-testi-sep {
  font-size: 13px;
  color: rgba(35, 39, 31, 0.22);
}

.hp-testi-total {
  font-size: 13px;
  color: rgba(35, 39, 31, 0.35);
}

.hp-testi-progress {
  flex: 1;
  height: 1px;
  background: rgba(35, 39, 31, 0.12);
  position: relative;
  overflow: hidden;
}

.hp-testi-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--dovetail-accent);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-testi-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.hp-testi-prev,
.hp-testi-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(35, 39, 31, 0.20);
  background: transparent !important;
  color: var(--dovetail-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hp-testi-prev:hover,
.hp-testi-next:hover {
  border-color: var(--dovetail-accent);
  color: var(--dovetail-accent);
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .hp-testi-content-col {
    padding: 72px 48px;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .hp-testi-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hp-testi-img-col {
    min-height: 340px;
    order: -1;
  }

  .hp-testi-img-col::after {
    background: linear-gradient(to bottom, transparent 60%, var(--dovetail-bg) 100%);
  }

  .hp-testi-img-badge {
    bottom: 28px;
    left: 28px;
    padding: 14px 20px;
  }

  .hp-testi-badge-num { font-size: 30px; }

  .hp-testi-content-col {
    padding: 56px 24px 72px;
  }

  .hp-testi-content-col::before {
    font-size: 160px;
    top: 16px;
    right: 16px;
    opacity: 0.03;
  }
}


/* ═══════════════════════════════════════════════════
   CTA section — Collaborate
═══════════════════════════════════════════════════ */

/* Full-bleed two-panel split */
.hp-cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

/* ── Left: dark panel ── */
.hp-cta-left {
  background: var(--dovetail-dark);
  display: flex;
  justify-content: flex-end;
  padding: 100px 72px 100px max(40px, calc((100vw - 1400px) / 2 + 40px));
}

.hp-cta-left-inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-cta-eyebrow {
  display: block;
  margin-bottom: 24px;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-accent);
}

.hp-cta-heading {
  margin: 0 0 28px;
  line-height: 1;
}

.hp-cta-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 400;
  color: var(--dovetail-white);
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.hp-cta-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(40px, 4.8vw, 78px);
  font-weight: 400;
  color: var(--dovetail-on-dark-muted);
  line-height: 1.05;
  margin-top: 8px;
}

.hp-cta-body {
  margin: 0 0 44px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--dovetail-on-dark-muted);
}

.hp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hp-cta-btn:hover {
  background: var(--dovetail-accent);
  border-color: var(--dovetail-accent);
  color: var(--dovetail-dark);
}

/* ── Right: green panel ── */
.hp-cta-right {
  background: var(--dovetail-green-800);
  display: flex;
  justify-content: flex-start;
  padding: 100px max(40px, calc((100vw - 1400px) / 2 + 40px)) 100px 72px;
}

.hp-cta-right-inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-cta-right-eyebrow {
  display: block;
  margin-bottom: 32px;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dovetail-green-200);
}

/* ── Name groups ── */
.hp-cta-ngroups {
  margin-bottom: 44px;
}

.hp-cta-ngroup {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-cta-ngroup:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-cta-ncat {
  flex-shrink: 0;
  width: 72px;
  font-family: "Roboto", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dovetail-green-200);
}

.hp-cta-nlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}

.hp-cta-nlist li {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

/* ── Network link ── */
.hp-cta-network-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dovetail-white);
  align-self: flex-start;
  transition: color 0.2s ease;
}

.hp-cta-network-link:hover {
  color: var(--dovetail-green-200);
}

.hp-cta-network-link svg {
  transition: transform 0.2s ease;
}

.hp-cta-network-link:hover svg {
  transform: translateX(4px);
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .hp-cta-left {
    padding: 80px 56px 80px 40px;
  }

  .hp-cta-right {
    padding: 80px 40px 80px 56px;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .hp-cta-section {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hp-cta-left {
    justify-content: flex-start;
    padding: 72px 24px;
  }

  .hp-cta-left-inner,
  .hp-cta-right-inner {
    max-width: 100%;
  }

  .hp-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .hp-cta-right {
    padding: 72px 24px;
  }
}


/* ═══════════════════════════════════════════════════
   Contact section
═══════════════════════════════════════════════════ */

.hp-contact-section {
  background: var(--dovetail-white);
  padding: 120px 0 140px;
  border-top: 1px solid rgba(31, 30, 27, 0.08);
}

/* Two-column grid: content | form */
.hp-contact-inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 0 100px;
  align-items: start;
}

/* ── Left column ── */
.hp-contact-eyebrow {
  color: var(--dovetail-accent-strong);
  margin-bottom: 24px;
}

.hp-contact-h2 {
  margin: 0 0 32px;
  line-height: 1;
}

.hp-contact-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(48px, 4.8vw, 76px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hp-contact-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 400;
  color: var(--dovetail-accent);
  line-height: 1.1;
  margin-top: 4px;
}

.hp-contact-desc {
  font-family: "Roboto", sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--dovetail-taupe-700);
  margin: 0;
  max-width: 380px;
}

/* ── Middle column — contact entries ── */
.hp-contact-entries {
  padding-top: 8px;
}

.hp-contact-entry {
  padding: 28px 0;
  border-bottom: 1px solid rgba(31, 30, 27, 0.1);
}

.hp-contact-entry:first-child {
  border-top: 1px solid rgba(31, 30, 27, 0.1);
}

.hp-contact-entry-label {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
  margin-bottom: 10px;
}

.hp-contact-entry-desc {
  margin: 0 0 12px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--dovetail-taupe-700);
}

.hp-contact-entry-link {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dovetail-accent-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hp-contact-entry-link:hover {
  color: var(--dovetail-accent);
  border-color: var(--dovetail-accent);
}

/* ── Right column — form card ── */
.hp-contact-right {
  background: var(--dovetail-bg);
  padding: 52px 48px 56px;
  border: 1px solid rgba(31, 30, 27, 0.07);
}

.hp-contact-right .wpcf7 {
  margin: 0;
}

/* CF7 field row spacing */
.hp-contact-right .wpcf7-form p {
  margin: 0 0 20px;
}

.hp-contact-right .wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

/* Labels */
.hp-contact-right .wpcf7-form label {
  display: block;
  margin-bottom: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
}

/* Field rows */
.hp-contact-right .wpcf7-form-control-wrap {
  display: block;
}

/* All text/email/tel/textarea inputs */
.hp-contact-right .wpcf7-form input[type="text"],
.hp-contact-right .wpcf7-form input[type="email"],
.hp-contact-right .wpcf7-form input[type="tel"],
.hp-contact-right .wpcf7-form input[type="number"],
.hp-contact-right .wpcf7-form input[type="url"],
.hp-contact-right .wpcf7-form select,
.hp-contact-right .wpcf7-form textarea {
  width: 100%;
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--dovetail-dark);
  background: var(--dovetail-white);
  border: 1px solid rgba(31, 30, 27, 0.15);
  border-radius: 0;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.hp-contact-right .wpcf7-form input[type="text"]::placeholder,
.hp-contact-right .wpcf7-form input[type="email"]::placeholder,
.hp-contact-right .wpcf7-form input[type="tel"]::placeholder,
.hp-contact-right .wpcf7-form textarea::placeholder {
  color: var(--dovetail-taupe);
  opacity: 1;
}

.hp-contact-right .wpcf7-form input[type="text"]:focus,
.hp-contact-right .wpcf7-form input[type="email"]:focus,
.hp-contact-right .wpcf7-form input[type="tel"]:focus,
.hp-contact-right .wpcf7-form input[type="number"]:focus,
.hp-contact-right .wpcf7-form input[type="url"]:focus,
.hp-contact-right .wpcf7-form select:focus,
.hp-contact-right .wpcf7-form textarea:focus {
  border-color: var(--dovetail-accent);
  box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.10);
}

.hp-contact-right .wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Validation error state */
.hp-contact-right .wpcf7-form input.wpcf7-not-valid,
.hp-contact-right .wpcf7-form textarea.wpcf7-not-valid {
  border-color: #c0392b;
  box-shadow: none;
}

.hp-contact-right .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #c0392b;
}

/* Submit button */
.hp-contact-right .wpcf7-form input[type="submit"],
.hp-contact-right .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 52px;
  background: var(--dovetail-dark);
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hp-contact-right .wpcf7-form input[type="submit"]:hover,
.hp-contact-right .wpcf7-submit:hover {
  background: var(--dovetail-accent);
  transform: translateY(-2px);
}

/* Loading state */
.hp-contact-right .wpcf7-form.submitting input[type="submit"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Response output */
.hp-contact-right .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 20px;
  border: none;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.hp-contact-right .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(39, 174, 96, 0.08);
  color: var(--dovetail-accent-strong);
  border-left: 3px solid var(--dovetail-accent);
}

.hp-contact-right .wpcf7-form.invalid .wpcf7-response-output,
.hp-contact-right .wpcf7-form.failed .wpcf7-response-output,
.hp-contact-right .wpcf7-form.spam .wpcf7-response-output {
  background: rgba(192, 57, 43, 0.06);
  color: #c0392b;
  border-left: 3px solid #c0392b;
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .hp-contact-section {
    padding: 90px 0 110px;
  }

  .hp-contact-inner {
    gap: 0 52px;
  }

  .hp-contact-right {
    padding: 40px 36px 44px;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .hp-contact-section {
    padding: 72px 0 88px;
  }

  .hp-contact-inner {
    grid-template-columns: 1fr;
    gap: 52px 0;
  }

  .hp-contact-desc {
    max-width: 100%;
  }

  .hp-contact-right {
    padding: 40px 24px 48px;
  }
}


/* ═══════════════════════════════════════════════════
   FAQ section
═══════════════════════════════════════════════════ */

.hp-faq-section {
  overflow: hidden;
}

/* Full-bleed two-col — no container wrapper */
.hp-faq-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 800px;
}

/* ── Left column ── */
.hp-faq-left {
  background: var(--dovetail-green-950);
  display: flex;
  align-items: flex-start;
  padding: 100px 80px 100px 0;
}

.hp-faq-left-content {
  width: 100%;
  max-width: 750px;
  margin-left: auto;
  padding-left: 40px;
}

.hp-faq-eyebrow {
  color: var(--dovetail-green-200);
  margin-bottom: 24px;
}

.hp-faq-h2 {
  margin: 0 0 64px;
  line-height: 1;
}

.hp-faq-h2-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(36px, 3.8vw, 64px);
  font-weight: 400;
  color: var(--dovetail-white);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hp-faq-h2-ott {
  display: block;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 400;
  color: var(--dovetail-green-200);
  line-height: 1.05;
  margin-top: 4px;
}

/* ── Accordion list ── */
.hp-faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Question button — full reset to kill Elementor/theme defaults */
.hp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-align: left;
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  transition: color 0.25s ease;
}

.hp-faq-q:hover,
.hp-faq-q:focus-visible {
  background: transparent !important;
  color: var(--dovetail-white);
}

.hp-faq-item.hp-faq-open .hp-faq-q {
  background: transparent !important;
  color: var(--dovetail-white);
}

/* +/− icon */
.hp-faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  position: relative;
}

.hp-faq-q:hover .hp-faq-icon {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.75);
}

.hp-faq-item.hp-faq-open .hp-faq-icon {
  background: var(--dovetail-green-200);
  border-color: var(--dovetail-green-200);
  color: var(--dovetail-dark);
}

.hp-faq-icon-plus,
.hp-faq-icon-minus {
  position: absolute;
  transition: opacity 0.2s ease;
}

.hp-faq-icon-minus { opacity: 0; }

.hp-faq-item.hp-faq-open .hp-faq-icon-plus  { opacity: 0; }
.hp-faq-item.hp-faq-open .hp-faq-icon-minus { opacity: 1; }

/* Answer — smooth CSS grid expand trick */
.hp-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-faq-item.hp-faq-open .hp-faq-a {
  grid-template-rows: 1fr;
}

.hp-faq-a-inner {
  overflow: hidden;
}

.hp-faq-a-inner p,
.hp-faq-a-inner div {
  margin: 0;
  padding-bottom: 22px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
}

/* ── Right column: full-height image ── */
.hp-faq-right {
  position: relative;
  overflow: hidden;
}

.hp-faq-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Bottom overlay CTA */
.hp-faq-right-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 52px;
  background: linear-gradient(to top, rgba(10,9,8,0.88) 0%, rgba(10,9,8,0.55) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-faq-cta-heading {
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  color: var(--dovetail-white);
  margin: 0;
  line-height: 1.2;
}

.hp-faq-cta-sub {
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 22px);
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 24px;
}

.hp-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  align-self: flex-start;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hp-faq-cta-btn:hover {
  background: var(--dovetail-green-200);
  border-color: var(--dovetail-green-200);
  color: var(--dovetail-dark);
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .hp-faq-left {
    padding: 80px 48px 80px 0;
  }

  .hp-faq-left-content {
    padding-left: 30px;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .hp-faq-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hp-faq-left {
    padding: 72px 18px;
  }

  .hp-faq-left-content {
    max-width: 100%;
    padding-left: 0;
    margin-left: 0;
  }

  .hp-faq-right {
    min-height: 380px;
  }
}
