:root {
  --cd-neutral-950: #090909;
  --cd-neutral-900: #171717;
  --cd-sand-50: #faf7f0;
  --cd-sand-100: #f3eadc;
  --cd-sand-200: #e7d7be;
  --cd-sand-300: #d4b98b;
  --cd-sand-500: #93703d;
  --cd-sand-600: #6f552f;
  --cd-sand-700: #574025;
  --cd-sand-800: #3d2e20;
  --cd-sand-900: #2d2219;
  --cd-amber-100: #fef3c7;
  --cd-amber-200: #fde68a;
  --cd-amber-300: #fcd34d;
  --cd-amber-400: #fbbf24;
  --cd-amber-500: #f59e0b;
  --cd-heading: "Libre Baskerville", Georgia, serif;
  --cd-body: "IBM Plex Sans", system-ui, sans-serif;
  --cd-ui: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.cd-home-body {
  margin: 0;
  background: var(--cd-neutral-950);
}

.cd-page,
.cd-page * {
  box-sizing: border-box;
}

.cd-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cd-neutral-950);
  color: #fff;
  font-family: var(--cd-body);
  -webkit-font-smoothing: antialiased;
}

.cd-page a {
  color: inherit;
  text-decoration: none;
}

.cd-page img,
.cd-page svg {
  display: block;
}

.cd-page img {
  max-width: 100%;
}

.cd-page h1,
.cd-page h2,
.cd-page h3 {
  margin: 0;
  font-family: var(--cd-heading);
  font-weight: 400;
  letter-spacing: 0;
}

.cd-page p,
.cd-page ul,
.cd-page dl {
  margin: 0;
}

.cd-container {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.cd-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  gap: 10px;
  padding: 6px 16px;
  backdrop-filter: blur(12px);
  font-family: var(--cd-ui);
  font-size: 11px;
  letter-spacing: 0.35em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cd-pill i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cd-amber-400);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
}

.cd-story .cd-pill,
.cd-estimate .cd-pill,
.cd-negotiation .cd-pill,
.cd-contact .cd-pill {
  gap: 8px;
  padding: 4px 14px;
  font-size: 10px;
}

.cd-story .cd-pill i,
.cd-estimate .cd-pill i,
.cd-negotiation .cd-pill i,
.cd-contact .cd-pill i {
  width: 4px;
  height: 4px;
}

.cd-pill-soft {
  border-color: rgba(45, 34, 25, 0.2);
  background: rgba(255, 255, 255, 0.84);
  color: var(--cd-sand-700);
}

.cd-icon {
  width: 18px;
  height: 18px;
}

.cd-hero,
.cd-story,
.cd-negotiation {
  position: relative;
  overflow: hidden;
  background: var(--cd-neutral-950);
}

.cd-hero {
  min-height: 720px;
  height: 100vh;
}

.cd-hero > img,
.cd-hero-shade,
.cd-story-media,
.cd-negotiation > img,
.cd-negotiation-shade {
  position: absolute;
  inset: 0;
}

.cd-hero > img,
.cd-story-media img,
.cd-negotiation > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-hero > img,
.cd-story-media,
.cd-negotiation > img {
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: transform;
}

.cd-hero-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
  opacity: var(--cd-hero-shade-opacity, 1);
  will-change: opacity;
}

.cd-fire-glow {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.cd-fire-glow span {
  position: absolute;
  inset-inline: 0;
  display: block;
}

.cd-fire-glow span:first-child {
  bottom: 0;
  height: 66%;
  animation: cd-pulse 4s ease-in-out infinite;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 140, 50, 0.35), transparent 60%);
}

.cd-fire-glow span:last-child {
  top: 0;
  height: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(40, 20, 10, 0.6), transparent 70%);
}

.cd-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center !important;
  flex-direction: column;
  justify-content: center !important;
  padding: 72px 24px;
  opacity: var(--cd-hero-content-opacity, 1);
  text-align: center;
  will-change: opacity;
}

.cd-hero-inner {
  display: flex;
  width: min(100%, 1024px);
  align-items: center;
  flex-direction: column;
  margin-inline: auto;
  text-align: center;
}

.cd-hero h1 {
  max-width: 1024px;
  margin-top: 24px;
  margin-inline: auto;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.1;
}

.cd-hero p,
.cd-story p,
.cd-negotiation p,
.cd-projects > .cd-container > p,
.cd-contact p {
  max-width: 672px;
  margin-top: 24px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--cd-ui);
  font-size: 1rem;
  line-height: 1.5;
}

.cd-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--cd-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cd-btn .cd-icon,
.cd-form button .cd-icon {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.cd-btn-light {
  background: #fff;
  color: var(--cd-neutral-950) !important;
}

.cd-btn-light:hover {
  background: var(--cd-amber-100);
  transform: translateY(-1px);
}

.cd-btn-light:hover .cd-icon,
.cd-form button:hover .cd-icon {
  transform: translateX(3px);
}

.cd-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px);
}

.cd-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.cd-down {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: cd-bounce 1.5s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.5);
}

.cd-story {
  min-height: 100vh;
}

.cd-story-media {
  height: 115%;
}

.cd-story-media > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.72), rgba(9, 9, 9, 0.42), rgba(9, 9, 9, 0.92));
}

.cd-story-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 48px, 1280px);
  min-height: 100vh;
  align-items: center;
  margin-inline: auto;
  padding-block: 96px;
}

.cd-story-copy {
  max-width: 672px;
}

.cd-story-copy .cd-pill,
.cd-story-copy h2,
.cd-story-copy p,
.cd-story-copy .cd-tags,
.cd-estimate .cd-pill,
.cd-estimate h2,
.cd-negotiation-copy .cd-pill,
.cd-negotiation-copy h2,
.cd-negotiation-copy p {
  margin-inline: 0;
}

.cd-story-right .cd-story-copy {
  margin-left: auto;
}

.cd-story h2,
.cd-estimate h2,
.cd-negotiation h2,
.cd-stats h2,
.cd-projects h2,
.cd-contact h2 {
  margin-top: 24px;
  font-size: 1.875rem;
  line-height: 1.15;
}

.cd-story h2 {
  margin-top: 20px;
}

.cd-story h2,
.cd-estimate h2,
.cd-negotiation h2 {
  color: #fff;
}

.cd-story p,
.cd-negotiation p {
  max-width: 576px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.cd-story-light {
  background: #fafafa;
  color: var(--cd-neutral-950);
}

.cd-story-light .cd-story-inner {
  width: min(100%, 1280px);
  padding: 96px 24px;
}

.cd-story-light .cd-story-media > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.8));
}

.cd-story-light .cd-pill {
  border-color: rgba(23, 23, 23, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(23, 23, 23, 0.72);
}

.cd-story-light .cd-pill i {
  background: var(--cd-neutral-950);
  box-shadow: none;
}

.cd-story-light h2 {
  color: var(--cd-neutral-950);
}

.cd-story-light p {
  color: rgba(23, 23, 23, 0.62);
}

.cd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

.cd-story-copy p + .cd-tags {
  margin-top: 44px;
}

.cd-tags li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 14px;
  backdrop-filter: blur(12px);
  font-family: var(--cd-ui);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.cd-trades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.cd-trades li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--cd-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cd-story-light .cd-trades {
  gap: 12px;
  margin-top: 32px;
}

.cd-story-light .cd-trades li {
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(23, 23, 23, 0.82);
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.cd-story-final {
  background: #000;
}

.cd-story-final .cd-story-media {
  height: 115%;
}

.cd-story-final .cd-story-media > div {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.cd-story-final .cd-story-inner {
  width: 100%;
  align-items: flex-end;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}

.cd-story-final .cd-story-copy {
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
}

.cd-story-final .cd-pill,
.cd-story-final h2,
.cd-story-final p {
  margin-inline: auto;
}

.cd-story-final .cd-pill {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cd-story-final .cd-pill i {
  background: var(--cd-amber-300);
  box-shadow: none;
}

.cd-story-final h2 {
  margin-top: 24px;
  max-width: 1024px;
  color: #fff;
  font-size: 3rem;
  line-height: 1.05;
}

.cd-story-final p {
  max-width: 672px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.cd-story-final .cd-story-cta {
  margin-top: 40px;
  padding: 16px 32px;
}

.cd-story-cta {
  margin-top: 40px;
}

.cd-estimate {
  background: var(--cd-neutral-900);
  padding-block: 128px;
}

.cd-estimate .cd-container {
  width: min(100% - 48px, 1152px);
}

.cd-estimate h2,
.cd-negotiation h2,
.cd-projects h2 {
  max-width: 768px;
}

.cd-estimate-grid {
  display: grid;
  overflow: visible;
  margin-top: 64px;
  gap: 12px;
}

.cd-estimate-grid > div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cd-estimate-grid > div:hover {
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-2px);
}

.cd-estimate-grid p,
.cd-total p,
.cd-award span {
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--cd-ui);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.cd-estimate-grid strong,
.cd-total strong,
.cd-award strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-family: var(--cd-heading);
  font-size: 2.25rem;
  font-weight: 400;
}

.cd-total {
  display: block;
  margin-top: 0;
  border: 1px solid rgba(212, 185, 139, 0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(255, 255, 255, 0.05));
  padding: 32px;
  backdrop-filter: blur(20px);
}

.cd-total strong,
.cd-award strong {
  color: var(--cd-amber-100);
}

.cd-award > strong {
  margin-top: 8px;
  font-size: 3rem;
  line-height: 1;
}

.cd-negotiation {
  min-height: 100vh;
}

.cd-negotiation > img {
  opacity: 0.4;
}

.cd-negotiation-shade {
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.8), rgba(9, 9, 9, 0.7), var(--cd-neutral-950));
}

.cd-negotiation .cd-container {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  min-height: 0;
  padding: 128px 24px;
}

.cd-negotiation-layout {
  display: grid;
  align-items: start;
  gap: 48px;
}

.cd-negotiation-copy {
  max-width: 560px;
}

.cd-negotiation h2 {
  max-width: 560px;
  line-height: 1.15;
}

.cd-negotiation-copy p {
  max-width: 512px;
}

.cd-award {
  justify-self: end;
  width: min(100%, 536px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.cd-negotiation ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.cd-negotiation li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--cd-ui);
  font-size: 0.875rem;
}

.cd-negotiation li.is-highlight {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.16);
  color: var(--cd-amber-100);
}

.cd-negotiation li span {
  font-family: var(--cd-ui);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.cd-negotiation li strong {
  font-family: var(--cd-ui);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.cd-stats {
  background: #FAFAFA;
  color: var(--cd-neutral-950);
  padding-block: 112px;
}

.cd-stats h2 {
  font-size: 48px !important;
}


.cd-info,
.cd-projects,
.cd-contact {
  padding-block: 112px;
}

.cd-stats .cd-container {
  width: min(100%, 1152px);
  padding-inline: 24px;
}

.cd-stats-head {
  max-width: 1120px;
}

.cd-stats .cd-pill {
  border-color: rgba(23, 23, 23, 0.2);
  background: #fff;
  color: rgba(23, 23, 23, 0.72);
  padding: 4px 14px;
  font-size: 10px;
}

.cd-stats .cd-pill i {
  width: 4px;
  height: 4px;
  background: var(--cd-amber-400);
  box-shadow: none;
}

.cd-stats h2 {
  max-width: 1120px;
  color: var(--cd-neutral-950);
  font-size: 1.875rem;
  line-height: 1.15;
}

.cd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 64px;
}

.cd-stats-grid > div {
  border-top: 1px solid rgba(147, 112, 61, 0.32);
  padding-top: 32px;
}

.cd-stats-grid strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--cd-neutral-950);
  font-family: var(--cd-heading);
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.cd-stats-grid p {
  margin-top: 28px;
  color: var(--cd-sand-700);
  font-family: var(--cd-ui);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cd-info,
.cd-projects {
  background: #fff;
  color: var(--cd-neutral-950);
}

.cd-info .cd-container {
  width: min(100%, 1152px);
  padding-inline: 24px;
}

.cd-projects .cd-container {
  width: min(100%, 1280px);
  padding-inline: 24px;
}

.cd-info .cd-pill,
.cd-projects .cd-pill {
  border-color: rgba(23, 23, 23, 0.2);
  background: #fafafa;
  color: rgba(23, 23, 23, 0.72);
  padding: 4px 14px;
  font-size: 10px;
}

.cd-info .cd-pill i,
.cd-projects .cd-pill i {
  width: 4px;
  height: 4px;
  background: var(--cd-neutral-950);
  box-shadow: none;
}

.cd-info h2,
.cd-projects h2 {
  margin-top: 24px;
  color: var(--cd-neutral-950);
  font-size: 1.875rem;
  line-height: 1.15;
}

.cd-info h2 {
  max-width: 896px;
}

.cd-info-intro {
  max-width: 768px;
  margin-top: 24px;
  color: rgba(23, 23, 23, 0.62);
  font-family: var(--cd-ui);
  font-size: 1.125rem;
  line-height: 1.75;
}

.cd-info-grid {
  display: grid;
  gap: 48px;
  margin-top: 64px;
}

.cd-info h3,
.cd-info-panel h3 {
  color: var(--cd-neutral-950);
  font-family: var(--cd-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.cd-info-grid p,
.cd-info-panel p,
.cd-project-head > p,
.cd-case-copy > p {
  color: rgba(23, 23, 23, 0.62);
  font-family: var(--cd-ui);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.cd-info-grid p {
  margin-top: 24px;
}

.cd-info-grid p + p {
  margin-top: 16px;
}

.cd-info-grid ul {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.cd-info-grid li {
  position: relative;
  padding-left: 22px;
  color: rgba(23, 23, 23, 0.62);
  font-family: var(--cd-ui);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.cd-info-grid li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cd-neutral-950);
  content: "";
}

.cd-info-panel {
  margin-top: 64px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 24px;
  background: #fafafa;
  padding: 32px;
}

.cd-info-panel p {
  max-width: 768px;
  margin-top: 20px;
}

.cd-info-kicker {
  color: rgba(23, 23, 23, 0.5) !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.2em;
  line-height: 1.5 !important;
  text-transform: uppercase;
}

.cd-info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
}

.cd-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: 999px;
  padding: 14px 28px;
  color: var(--cd-neutral-950);
  font-family: var(--cd-ui);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}

.cd-info-btn:hover {
  background: #f5f5f5;
}

.cd-info-btn-dark {
  border-color: var(--cd-neutral-950);
  background: var(--cd-neutral-950);
  color: #fff;
}

.cd-info-btn-dark:hover {
  background: var(--cd-neutral-900);
}

.cd-info-btn .cd-icon {
  width: 16px;
  height: 16px;
}
.cd-page .cd-info-actions .cd-info-btn,
.cd-page .cd-info-actions .cd-info-btn:visited {
  color: var(--cd-neutral-950) !important;
  text-decoration: none !important;
}

.cd-page .cd-info-actions .cd-info-btn:hover,
.cd-page .cd-info-actions .cd-info-btn:focus-visible {
  border-color: rgba(23, 23, 23, 0.2) !important;
  background: #f5f5f5 !important;
  color: var(--cd-neutral-950) !important;
}

.cd-page .cd-info-actions .cd-info-btn-dark,
.cd-page .cd-info-actions .cd-info-btn-dark:visited {
  border-color: var(--cd-neutral-950) !important;
  background: var(--cd-neutral-950) !important;
  color: #fff !important;
}

.cd-page .cd-info-actions .cd-info-btn-dark:hover,
.cd-page .cd-info-actions .cd-info-btn-dark:focus-visible {
  border-color: var(--cd-neutral-900) !important;
  background: var(--cd-neutral-900) !important;
  color: #fff !important;
}

.cd-projects h2 {
  max-width: 576px;
}

.cd-project-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 56px;
}

.cd-project-head > div {
  max-width: 576px;
}

.cd-project-head > p {
  max-width: 448px;
}

.cd-project-list {
  margin-top: 56px;
}

.cd-case {
  display: grid;
  gap: 32px;
  align-items: center;
}

.cd-case + .cd-case {
  margin-top: 64px;
}

.cd-case-media {
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
}

.cd-case-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 700ms ease;
}

.cd-case-media:hover img {
  transform: scale(1.03);
}

.cd-case-copy > p {
  margin-top: 16px;
}

.cd-project-number {
  color: rgba(23, 23, 23, 0.5);
  font-family: var(--cd-ui);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.cd-projects h3 {
  margin-top: 8px;
  color: var(--cd-neutral-950);
  font-size: 1.5rem;
  line-height: 1.2;
}

.cd-projects dl {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  padding-top: 24px;
}

.cd-projects dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--cd-ui);
  font-size: 0.875rem;
}

.cd-projects dt {
  color: rgba(23, 23, 23, 0.5);
}

.cd-projects dd {
  margin: 0;
  color: rgba(23, 23, 23, 0.86);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}

.cd-projects dl div:nth-child(2) dd {
  color: var(--cd-neutral-950);
}

.cd-contact-grid {
  position: relative;
  width: min(100% - 48px, 1024px);
  margin-inline: auto;
  z-index: 1;
  display: grid;
  gap: 64px;
}

.cd-contact {
  position: relative;
  overflow: hidden;
  background: var(--cd-neutral-950);
  color: #fff;
}

.cd-contact-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.cd-contact-glow span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(64px);
}

.cd-contact-glow span:first-child {
  top: 0;
  left: -128px;
  width: 384px;
  height: 384px;
  background: rgba(245, 158, 11, 0.24);
}

.cd-contact-glow span:last-child {
  right: -128px;
  bottom: 0;
  width: 500px;
  height: 500px;
  background: rgba(251, 191, 36, 0.12);
}

.cd-contact p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.7);
}

.cd-contact h2 {
  font-size: 2.25rem;
  line-height: 1.1;
}

.cd-contact ul {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.cd-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.cd-contact .cd-icon {
  width: 16px;
  height: 16px;
  color: var(--cd-amber-300);
}

.cd-form {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(28px, 5vw, 40px);
  backdrop-filter: blur(20px);
}

.cd-form label,
.cd-form span {
  display: block;
}

.cd-form span {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--cd-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.cd-form input,
.cd-form textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 12px 0;
  outline: none;
}

.cd-form input::placeholder,
.cd-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.cd-form textarea {
  min-height: 116px;
  resize: vertical;
}

.cd-form input:focus,
.cd-form textarea:focus {
  border-color: var(--cd-amber-300);
  box-shadow: none;
}

.cd-form button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--cd-neutral-950);
  cursor: pointer;
  padding: 16px 28px;
  font-family: var(--cd-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: background 180ms ease, transform 180ms ease;
}

.cd-form button:hover {
  background: var(--cd-amber-100);
  transform: translateY(-1px);
}
.cd-page .cd-contact h2 {
  color: #fff !important;
}

.cd-page .cd-contact p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: var(--cd-ui);
  font-weight: 500;
}

.cd-page .cd-contact-list li,
.cd-page .cd-contact li {
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: var(--cd-ui);
}

.cd-page .cd-contact li a,
.cd-page .cd-contact li a:visited {
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none !important;
}

.cd-page .cd-contact li a:hover,
.cd-page .cd-contact li a:focus-visible {
  color: var(--cd-amber-200) !important;
}

.cd-page .cd-contact .cd-icon {
  flex: 0 0 auto;
  color: var(--cd-amber-300) !important;
}

.cd-page .cd-form {
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.cd-page .cd-form input,
.cd-page .cd-form textarea {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--cd-ui) !important;
}

.cd-page .cd-form input:focus,
.cd-page .cd-form textarea:focus {
  border-color: var(--cd-amber-300) !important;
  outline: none !important;
  box-shadow: none !important;
}

.cd-page .cd-form button,
.cd-page .cd-form button:visited {
  background: #fff !important;
  color: var(--cd-neutral-950) !important;
}

.cd-page .cd-form button:hover,
.cd-page .cd-form button:focus-visible {
  background: var(--cd-amber-100) !important;
  color: var(--cd-neutral-950) !important;
}
/* Contact Form 7 compatibility: CF7 can inject <p> and <br>; keep the custom layout intact. */
.cd-contact .wpcf7 {
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.cd-contact .wpcf7 form,
.cd-contact .wpcf7-form.cd-form {
  margin: 0;
}

.cd-contact .wpcf7 p,
.cd-contact .wpcf7 br {
  display: contents;
}

.cd-contact .wpcf7-form-control-wrap {
  display: block;
}

.cd-contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  color: var(--cd-amber-200);
  font-family: var(--cd-ui);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.cd-contact .wpcf7-response-output {
  margin: 0 !important;
  border-color: rgba(252, 211, 77, 0.45) !important;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--cd-ui);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 12px 14px !important;
}

.cd-contact .wpcf7-spinner {
  margin: 0 0 0 10px;
}

.cd-page .cd-form input[type="submit"],
.cd-page .cd-form .wpcf7-submit {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--cd-neutral-950) !important;
  cursor: pointer;
  padding: 16px 28px !important;
  font-family: var(--cd-ui) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transition: background 180ms ease, transform 180ms ease;
}

.cd-page .cd-form input[type="submit"]:hover,
.cd-page .cd-form input[type="submit"]:focus-visible,
.cd-page .cd-form .wpcf7-submit:hover,
.cd-page .cd-form .wpcf7-submit:focus-visible {
  background: var(--cd-amber-100) !important;
  color: var(--cd-neutral-950) !important;
  transform: translateY(-1px);
}

@keyframes cd-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes cd-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-hero > img,
  .cd-story-media,
  .cd-negotiation > img {
    transform: none !important;
  }

  .cd-hero-content,
  .cd-hero-shade {
    opacity: 1 !important;
  }
}

@media (min-width: 640px) {
  .cd-hero h1 {
    font-size: 3rem;
  }

  .cd-hero p,
  .cd-story p,
  .cd-negotiation p {
    font-size: 1.125rem;
    line-height: 1.5556;
  }

  .cd-story h2,
  .cd-estimate h2,
  .cd-negotiation h2,
  .cd-stats h2,
  .cd-info h2,
  .cd-projects h2 {
    font-size: 2.25rem;
  }

  .cd-info h3,
  .cd-info-panel h3,
  .cd-projects h3 {
    font-size: 1.875rem;
  }

  .cd-info-panel {
    padding: 48px;
  }

  .cd-contact h2 {
    font-size: 3rem;
  }

  .cd-estimate-grid strong,
  .cd-total strong {
    font-size: 3rem;
    line-height: 1;
  }

  .cd-award > strong {
    font-size: 3.75rem;
  }

  .cd-story-final h2 {
    font-size: 3.75rem;
  }

  .cd-estimate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cd-total {
    grid-column: span 2;
  }

  .cd-trades {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (min-width: 768px) {
  .cd-hero h1 {
    font-size: 3.75rem;
  }

  .cd-story h2,
  .cd-estimate h2,
  .cd-negotiation h2,
  .cd-stats h2,
  .cd-info h2,
  .cd-projects h2 {
    font-size: 3rem;
  }

  .cd-contact h2 {
    font-size: 3.75rem;
  }

  .cd-estimate-grid strong,
  .cd-total strong {
    font-size: 3.75rem;
  }

  .cd-award {
    padding: 40px;
  }

  .cd-story-final h2 {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .cd-hero-content {
    padding: 96px 24px;
  }

  .cd-hero h1 {
    font-size: 4.5rem;
  }

  .cd-story h2,
  .cd-estimate h2,
  .cd-negotiation h2,
  .cd-stats h2 {
    font-size: 3.75rem;
  }

  .cd-estimate,
  .cd-contact {
    padding-block: 160px;
  }

  .cd-stats {
    padding-block: 144px;
  }

  .cd-info {
    padding-block: 144px;
  }

  .cd-info .cd-container {
    padding-inline: 64px;
  }

  .cd-stats .cd-container {
    padding-inline: 64px;
  }

  .cd-projects {
    padding-block: 144px;
  }

  .cd-projects .cd-container {
    padding-inline: 64px;
  }

  .cd-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cd-info-grid,
  .cd-negotiation-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cd-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 480px));
    justify-content: center;
  }

  .cd-negotiation .cd-container {
    padding: 160px 64px;
  }

  .cd-negotiation-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    justify-content: initial;
  }

  .cd-story-light .cd-story-inner {
    padding-inline: 64px;
  }

  .cd-story-final .cd-story-inner {
    padding: 96px 64px 128px;
  }

  .cd-story-final h2 {
    font-size: 6rem;
  }

  .cd-project-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .cd-case {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cd-case-media {
    grid-column: span 3 / span 3;
  }

  .cd-case-copy {
    grid-column: span 2 / span 2;
  }

  .cd-case-reverse .cd-case-media {
    order: 2;
  }

  .cd-case-reverse .cd-case-copy {
    order: 1;
  }
}

@media (max-width: 700px) {
  .cd-container,
  .cd-story-inner {
    width: min(100% - 32px, 1280px);
  }
  .cd-hero {
    min-height: 680px;
  }

  .cd-hero-content {
    padding-inline: 20px;
  }

  .cd-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 360px);
  }
  .cd-info-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cd-info-btn {
    width: 100%;
  }

  .cd-btn {
    width: 100%;
    padding-inline: 20px;
  }

  .cd-pill {
    white-space: normal;
  }

  .cd-negotiation li {
    align-items: flex-start;
    flex-direction: column;
  }

  .cd-award {
    justify-self: stretch;
  }

  .cd-form {
    max-width: none;
    padding: 24px;
  }

  .cd-info,
  .cd-projects,
  .cd-contact,
  .cd-stats,
  .cd-estimate {
    padding-block: 88px;
  }
}

/* Dedicated contact page, copied from the Lovable contact layout. */
.cd-contact-page {
  background: #fffdf9;
  color: var(--cd-sand-900);
}

.cd-contact-page .cd-site-header + main,
.cd-contact-page main {
  padding-top: 80px;
}

.cd-contact-hero {
  background: var(--cd-sand-100);
  border-top: 1px solid rgba(147, 112, 61, 0.16);
  color: var(--cd-sand-900);
  padding: 58px 24px 92px;
  text-align: center;
}

.cd-contact-hero-inner {
  width: min(100%, 768px);
  margin-inline: auto;
}

.cd-contact-hero h1 {
  color: var(--cd-sand-900);
  font-family: var(--cd-heading);
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
}

.cd-contact-hero p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--cd-sand-600);
  font-family: var(--cd-body);
  font-size: 1rem;
  line-height: 1.55;
}

.cd-contact-main {
  background: #fffdf9;
  color: var(--cd-sand-900);
  padding: 96px 24px 112px;
}

.cd-contact-layout {
  display: grid;
  width: min(100%, 1024px);
  align-items: start;
  gap: 64px;
  margin-inline: auto;
}

.cd-contact-info-panel {
  padding-top: 8px;
}

.cd-contact-info-panel h2,
.cd-contact-card h2 {
  color: var(--cd-sand-900);
  font-family: var(--cd-heading);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.cd-contact-info-panel > p,
.cd-contact-card > p {
  margin-top: 18px;
  color: var(--cd-sand-600);
  font-family: var(--cd-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.cd-contact-methods {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.cd-contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--cd-sand-600);
  font-family: var(--cd-body);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cd-contact-method-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(147, 112, 61, 0.1);
  color: var(--cd-sand-500);
}

.cd-contact-method-icon .cd-icon {
  width: 20px;
  height: 20px;
}

.cd-contact-method strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cd-sand-900);
  font-family: var(--cd-heading);
  font-size: 0.98rem;
  font-weight: 700;
}

.cd-contact-method a {
  color: var(--cd-sand-600) !important;
  text-decoration: none !important;
}

.cd-contact-method a:hover,
.cd-contact-method a:focus-visible {
  color: var(--cd-sand-900) !important;
}

.cd-contact-method em {
  margin-inline: 8px;
  color: var(--cd-sand-300);
  font-style: normal;
}

.cd-contact-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 38px;
  border-radius: 8px;
  background: var(--cd-sand-500);
  color: #fff !important;
  padding: 11px 20px;
  font-family: var(--cd-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 180ms ease, transform 180ms ease;
}

.cd-contact-call:hover,
.cd-contact-call:focus-visible {
  background: var(--cd-sand-600);
  color: #fff !important;
  transform: translateY(-1px);
}

.cd-contact-call .cd-icon {
  width: 16px;
  height: 16px;
}

.cd-contact-card {
  width: min(100%, 432px);
  border: 1px solid rgba(147, 112, 61, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(45, 34, 25, 0.08), 0 1px 2px rgba(45, 34, 25, 0.08);
  padding: 32px;
}

.cd-contact-card .wpcf7,
.cd-contact-card .wpcf7 form {
  width: 100%;
  max-width: none;
  margin: 0;
}

.cd-contact-card .wpcf7 form {
  margin-top: 24px;
}

.cd-contact-card .wpcf7 p,
.cd-contact-card .wpcf7 br,
.cd-contact .wpcf7 p,
.cd-contact .wpcf7 br {
  display: contents;
}

.cd-cf7-form {
  display: grid;
  gap: 16px;
}

.cd-cf7-grid {
  display: grid;
  gap: 16px;
}

.cd-cf7-form label,
.cd-cf7-form label > span:first-child {
  display: block;
}

.cd-contact-card .cd-cf7-form label > span:first-child {
  margin-bottom: 7px;
  color: var(--cd-sand-800);
  font-family: var(--cd-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.cd-contact-card .wpcf7-form-control-wrap {
  display: block;
}

.cd-contact-card input:not([type="submit"]),
.cd-contact-card select,
.cd-contact-card textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--cd-sand-200) !important;
  border-radius: 7px !important;
  background: rgba(255, 253, 249, 0.9) !important;
  box-shadow: none !important;
  color: var(--cd-sand-900) !important;
  padding: 10px 13px !important;
  font-family: var(--cd-body) !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  outline: none !important;
}

.cd-contact-card input::placeholder,
.cd-contact-card textarea::placeholder {
  color: rgba(87, 64, 37, 0.58) !important;
}

.cd-contact-card textarea {
  min-height: 92px;
  resize: vertical;
}

.cd-contact-card select {
  appearance: auto;
  cursor: pointer;
}

.cd-contact-card input:not([type="submit"]):focus,
.cd-contact-card select:focus,
.cd-contact-card textarea:focus {
  border-color: var(--cd-sand-500) !important;
  box-shadow: 0 0 0 2px rgba(147, 112, 61, 0.14) !important;
}

.cd-contact-card .wpcf7-submit,
.cd-contact-card input[type="submit"] {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 42px !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--cd-sand-500) !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  padding: 11px 18px !important;
  font-family: var(--cd-ui) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-align: center;
  transition: background 180ms ease, transform 180ms ease;
}

.cd-contact-card .wpcf7-submit:hover,
.cd-contact-card .wpcf7-submit:focus-visible,
.cd-contact-card input[type="submit"]:hover,
.cd-contact-card input[type="submit"]:focus-visible {
  background: var(--cd-sand-600) !important;
  color: #fff !important;
  transform: translateY(-1px);
}


.cd-contact-card .cd-form {
  gap: 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}

.cd-contact-card .cd-form span {
  margin-bottom: 7px;
  color: var(--cd-sand-800) !important;
  font-family: var(--cd-body) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.cd-contact-card .cd-form input:not([type="submit"]),
.cd-contact-card .cd-form textarea,
.cd-contact-card .cd-form select {
  margin-top: 0 !important;
  border: 1px solid var(--cd-sand-200) !important;
  border-radius: 7px !important;
  background: rgba(255, 253, 249, 0.9) !important;
  color: var(--cd-sand-900) !important;
  padding: 10px 13px !important;
}

.cd-contact-card .cd-form .wpcf7-submit,
.cd-contact-card .cd-form input[type="submit"] {
  min-height: 42px !important;
  border-radius: 7px !important;
  background: var(--cd-sand-500) !important;
  color: #fff !important;
  padding: 11px 18px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.cd-contact-card .cd-form .wpcf7-submit:hover,
.cd-contact-card .cd-form input[type="submit"]:hover {
  background: var(--cd-sand-600) !important;
  color: #fff !important;
}
.cd-contact-card .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #9f1239;
  font-size: 0.78rem;
}

.cd-contact-card .wpcf7-response-output {
  margin: 0 !important;
  border-color: rgba(147, 112, 61, 0.3) !important;
  border-radius: 10px;
  color: var(--cd-sand-700);
  font-size: 0.86rem;
  padding: 10px 12px !important;
}

/* Shared Contact Form 7 markup also keeps the dark homepage contact form polished. */
.cd-contact .cd-cf7-form {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(28px, 5vw, 40px);
  backdrop-filter: blur(20px);
}

.cd-contact .cd-cf7-form label > span:first-child {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--cd-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.cd-contact .cd-cf7-form input:not([type="submit"]),
.cd-contact .cd-cf7-form select,
.cd-contact .cd-cf7-form textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  padding: 12px 0 !important;
  outline: none !important;
}

.cd-contact .cd-cf7-form input::placeholder,
.cd-contact .cd-cf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.28) !important;
}

.cd-contact .cd-cf7-form textarea {
  min-height: 116px;
  resize: vertical;
}

.cd-contact .cd-cf7-form input:not([type="submit"]):focus,
.cd-contact .cd-cf7-form select:focus,
.cd-contact .cd-cf7-form textarea:focus {
  border-color: var(--cd-amber-300) !important;
}

.cd-contact .cd-cf7-form .wpcf7-submit,
.cd-contact .cd-cf7-form input[type="submit"] {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--cd-neutral-950) !important;
  cursor: pointer;
  padding: 16px 28px !important;
  font-family: var(--cd-ui) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.cd-contact .cd-cf7-form .wpcf7-submit:hover,
.cd-contact .cd-cf7-form input[type="submit"]:hover {
  background: var(--cd-amber-100) !important;
  color: var(--cd-neutral-950) !important;
}

@media (min-width: 640px) {
  .cd-cf7-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cd-contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 432px);
  }

  .cd-contact-card {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .cd-contact-page .cd-site-header + main,
  .cd-contact-page main {
    padding-top: 72px;
  }

  .cd-contact-hero {
    padding: 48px 20px 70px;
  }

  .cd-contact-main {
    padding: 72px 20px 88px;
  }

  .cd-contact-layout {
    gap: 44px;
  }

  .cd-contact-card {
    width: min(100%, 560px);
    justify-self: stretch;
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .cd-contact-hero h1 {
    font-size: 2.2rem;
  }

  .cd-contact-hero p {
    font-size: 0.95rem;
  }

  .cd-contact-method {
    gap: 12px;
  }

  .cd-contact-method em {
    display: none;
  }

  .cd-contact-method a {
    display: block;
  }
}
/* Compact the contact page to match the Lovable contact composition more closely. */
.cd-contact-hero {
  padding-top: 30px !important;
  padding-bottom: 42px !important;
}

.cd-contact-hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem) !important;
}

.cd-contact-hero p {
  margin-top: 12px !important;
  font-size: 0.95rem !important;
}

.cd-contact-main {
  padding-top: 72px !important;
}

.cd-contact-card .cd-cf7-form {
  gap: 12px !important;
}

.cd-contact-card .cd-cf7-grid {
  gap: 12px !important;
}

.cd-contact-card textarea,
.cd-contact-card .cd-form textarea,
.cd-contact-card .cd-cf7-form textarea {
  height: 86px !important;
  min-height: 86px !important;
  max-height: 120px;
}

.cd-contact-card .wpcf7-spinner {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}