/* Proof Builders shared styles. Edit the variables below to adjust the site palette. */
:root {
  --black: #0a0a0a;
  --charcoal: #171717;
  --gray-900: #262626;
  --gray-700: #525252;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --max-width: 1200px;
  --header-height: 84px;
  --radius: 2px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 750;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  color: var(--gray-700);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section--dark {
  color: var(--white);
  background: var(--black);
}

.section--dark p {
  color: var(--gray-300);
}

.section--light {
  background: var(--gray-100);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--gray-300);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 540px;
  justify-self: end;
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--black);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  color: var(--black);
  background: transparent;
  transform: translateY(-2px);
}

.button--light {
  border-color: var(--white);
  color: var(--black);
  background: var(--white);
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--white);
  background: transparent;
}

.button--outline {
  color: var(--black);
  background: transparent;
}

.button--outline:hover,
.button--outline:focus-visible {
  color: var(--white);
  background: var(--black);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: gap var(--transition);
}

.text-link:hover,
.text-link:focus-visible {
  gap: 16px;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  filter: none;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
}

.nav-link {
  position: relative;
  padding: 30px 0 27px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 1px;
  background: var(--black);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-phone {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: calc(92vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 100px 0;
}

.hero p {
  max-width: 680px;
  margin-bottom: 36px;
  color: var(--gray-300);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.intro-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
}

.intro-copy p,
.about-copy p {
  max-width: 690px;
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.project-card {
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.project-card:hover {
  border-color: var(--black);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.card-content {
  padding: 28px;
}

.card-content p {
  min-height: 78px;
  margin-bottom: 24px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
}

.trust-item {
  min-height: 180px;
  padding: 40px 28px;
  border-right: 1px solid var(--gray-700);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-number {
  display: block;
  margin-bottom: 26px;
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.trust-item strong {
  display: block;
  max-width: 220px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.category {
  display: block;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta {
  padding: clamp(80px, 10vw, 130px) 0;
  color: var(--white);
  background: var(--black);
  text-align: center;
}

.cta h2 {
  max-width: 800px;
  margin-inline: auto;
}

.cta p {
  margin-bottom: 32px;
  color: var(--gray-300);
  font-size: 1.1rem;
}

.page-hero {
  padding: clamp(90px, 12vw, 170px) 0 clamp(75px, 10vw, 120px);
  color: var(--white);
  background: var(--black);
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--gray-300);
  font-size: 1.15rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:nth-child(even) .service-detail__image {
  order: 2;
}

.detail-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
}

.project-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery .project-card:nth-child(3n + 1) {
  grid-column: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--gray-300);
}

.value-card {
  padding: 34px 22px;
  border-right: 1px solid var(--gray-300);
}

.value-card:last-child {
  border-right: 0;
}

.value-card span {
  display: block;
  margin-bottom: 50px;
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 700;
}

.contact-info {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.contact-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 22px 0;
  border-top: 1px solid var(--gray-300);
}

.contact-list span {
  display: block;
  margin-bottom: 3px;
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--gray-300);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 0;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.form-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--black);
  font-weight: 700;
}

.site-footer {
  padding: 72px 0 30px;
  color: var(--white);
  background: var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand .brand {
  margin-bottom: 22px;
}

.footer-brand .brand-logo {
  filter: none;
}

.footer-brand p,
.footer-column a,
.footer-column address {
  color: var(--gray-300);
}

.footer-column h3 {
  margin-bottom: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-column address {
  display: grid;
  gap: 14px;
  font-style: normal;
}

.footer-column address > a,
.footer-column address > p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-500);
  font-size: 0.75rem;
}

@media (max-width: 980px) {
  .header-phone {
    display: none;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gray-700);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-card {
    border-bottom: 1px solid var(--gray-300);
  }

  .value-card:nth-child(even) {
    border-right: 0;
  }

  .value-card:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: block;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: var(--white);
    opacity: 0;
    transition: max-height 260ms ease, opacity 180ms ease, border-color 180ms ease;
  }

  .main-nav.open {
    max-height: calc(100vh - var(--header-height));
    border-color: var(--gray-200);
    opacity: 1;
  }

  .nav-link {
    display: block;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .section-heading,
  .intro-grid,
  .about-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 40px;
  }

  .section-heading p {
    justify-self: start;
  }

  .service-detail:nth-child(even) .service-detail__image {
    order: initial;
  }

  .contact-info {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .card-grid,
  .project-gallery,
  .trust-grid,
  .values-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery .project-card:nth-child(3n + 1) {
    grid-column: auto;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--gray-700);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .value-card,
  .value-card:nth-child(even),
  .value-card:last-child {
    grid-column: auto;
    border-right: 0;
  }

  .field--full {
    grid-column: auto;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}

/* Premium refinement layer
   Keeps the original structure easy to edit while tightening the visual system. */
:root {
  --black: #080808;
  --charcoal: #111111;
  --gray-900: #202020;
  --gray-700: #555555;
  --gray-500: #777777;
  --gray-300: #d6d6d3;
  --gray-200: #e8e8e5;
  --gray-100: #f4f4f1;
  --max-width: 1280px;
  --header-height: 88px;
  --radius: 0;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: "Helvetica Neue", "Neue Haas Grotesk Text Pro", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

::selection {
  color: var(--white);
  background: var(--black);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.048em;
}

h3 {
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

p {
  max-width: 68ch;
}

.container {
  width: min(calc(100% - 64px), var(--max-width));
}

.section {
  padding: clamp(96px, 10vw, 160px) 0;
}

.section--light {
  background: #f7f7f4;
}

.eyebrow {
  position: relative;
  margin-bottom: 24px;
  padding-left: 28px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-heading {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(48px, 8vw, 120px);
  margin-bottom: clamp(52px, 6vw, 80px);
}

.section-heading h2 {
  max-width: 780px;
}

.section-heading p {
  padding-bottom: 8px;
  font-size: 1.04rem;
}

.button {
  min-height: 56px;
  padding: 15px 27px;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  box-shadow: inset 0 0 0 0 var(--white);
}

.button:hover,
.button:focus-visible {
  box-shadow: inset 0 0 0 1px var(--black);
  transform: translateY(-1px);
}

.button--light:hover,
.button--light:focus-visible {
  box-shadow: inset 0 0 0 1px var(--white);
}

.text-link {
  gap: 14px;
  padding-bottom: 7px;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.site-header {
  border-color: rgba(8, 8, 8, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(150%);
}

.header-inner {
  gap: 40px;
}

.brand {
  min-width: 212px;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border: 0;
  filter: none;
}

.brand-name {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.045em;
}

.main-nav {
  gap: clamp(24px, 2.7vw, 44px);
}

.nav-link {
  padding-block: 32px 29px;
  color: var(--gray-700);
  font-size: 0.69rem;
  letter-spacing: 0.13em;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--black);
}

.nav-link::after {
  bottom: 25px;
}

.header-phone {
  min-height: 44px;
  padding: 10px 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  background: var(--black);
}

.hero-media,
.hero-video {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  overflow: hidden;
  background-color: var(--black);
  background-image: var(--hero-fallback);
  background-position: center;
  background-size: cover;
}

.hero--home {
  --hero-fallback: url("assets/images/optimized/residential-construction-1-1600.jpg");
}

.page-hero--services {
  --hero-fallback: url("assets/images/optimized/commercial-construction-1-1600.jpg");
}

.page-hero--projects {
  --hero-fallback: url("assets/images/optimized/hillside-construction-1-1600.jpg");
}

.page-hero--contact {
  --hero-fallback: url("assets/images/optimized/residential-construction-2-1600.jpg");
}

.page-hero--about {
  --hero-fallback: url("assets/images/optimized/hillside-construction-2-1600.jpg");
}

.hero-media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.56) 47%, rgba(0, 0, 0, 0.22) 78%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 25% 100%;
  content: "";
}

.hero-video {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.92) contrast(1.06) saturate(1.04);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(100px, 12vh, 160px) 0;
}

.hero h1 {
  max-width: 980px;
}

.hero p {
  max-width: 650px;
  margin-bottom: 42px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  gap: 12px;
}

.intro-grid,
.about-grid,
.contact-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 11vw, 150px);
}

.intro-copy {
  padding-top: 48px;
  border-top: 1px solid var(--gray-300);
}

.intro-copy p,
.about-copy p {
  font-size: clamp(1.06rem, 1.35vw, 1.18rem);
  line-height: 1.8;
}

.card-grid {
  gap: 1px;
  background: var(--gray-300);
}

.service-card,
.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 0;
  box-shadow: none;
}

.service-card:hover,
.project-card:hover {
  z-index: 1;
  border-color: transparent;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.service-card:hover .card-photo,
.project-card:hover .card-photo {
  filter: contrast(1.04);
}

.card-photo,
.detail-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.04) contrast(1.05) saturate(1.08);
  transition: filter var(--transition), transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.card-photo {
  min-height: 300px;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(8, 8, 8, 0.12);
}

.service-card,
.project-card,
.service-detail__image {
  overflow: hidden;
}

.service-card:hover .card-photo,
.project-card:hover .card-photo {
  filter: brightness(1.07) contrast(1.07) saturate(1.1);
  transform: scale(1.025);
}

.card-content {
  display: flex;
  min-height: 250px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 38px);
}

.card-content h3 {
  max-width: 260px;
}

.card-content p {
  min-height: 0;
  margin-bottom: 32px;
}

.card-content .text-link {
  margin-top: auto;
}

.project-card .card-content {
  min-height: 150px;
}

.trust-grid {
  border-color: rgba(255, 255, 255, 0.22);
}

.trust-item {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 32px 42px;
  border-color: rgba(255, 255, 255, 0.22);
  transition: background-color var(--transition);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.055);
}

.trust-number {
  margin-bottom: 58px;
  color: #909090;
  font-size: 0.66rem;
}

.trust-item strong {
  max-width: 240px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 550;
  letter-spacing: -0.025em;
}

.category {
  margin-bottom: 14px;
  font-size: 0.64rem;
  letter-spacing: 0.17em;
}

.cta {
  position: relative;
  padding: clamp(110px, 12vw, 180px) 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 25% 100%,
    var(--black);
}

.cta h2 {
  max-width: 920px;
}

.cta p {
  margin: 0 auto 38px;
  font-size: 1.08rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: end;
  padding: clamp(110px, 13vw, 190px) 0 clamp(80px, 9vw, 120px);
  background: var(--black);
}

.page-hero .hero-media::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 25% 100%;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 1000px;
  font-size: clamp(3.5rem, 6.7vw, 6.5rem);
}

.page-hero p {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.service-detail {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(60px, 9vw, 130px);
  padding: clamp(80px, 9vw, 128px) 0;
}

.service-detail > div:not(.service-detail__image) {
  max-width: 520px;
}

.service-detail:nth-child(even) > div:not(.service-detail__image) {
  justify-self: end;
}

.service-detail__image {
  min-height: 500px;
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.detail-photo {
  min-height: 500px;
}

.about-photo {
  min-height: 540px;
  border-radius: 6px;
  object-position: center 45%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.about-image-wrap {
  overflow: hidden;
  border-radius: 6px;
}

.detail-list {
  margin-top: 34px;
  border-top: 1px solid var(--gray-300);
}

.detail-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  font-size: 0.92rem;
  font-weight: 550;
}

.detail-list li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--black);
  content: "";
  transform: translateY(-50%);
}

.project-gallery {
  grid-auto-rows: 1fr;
  gap: 1px;
}

.project-gallery .project-card {
  height: 100%;
}

.project-gallery .card-photo {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.project-gallery .card-content {
  min-height: 245px;
}

.values-grid {
  border-bottom: 1px solid var(--gray-300);
}

.value-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  transition: color var(--transition), background-color var(--transition);
}

.value-card:hover {
  color: var(--white);
  background: var(--black);
}

.value-card:hover p,
.value-card:hover span {
  color: var(--gray-300);
}

.value-card span {
  margin-bottom: auto;
  font-size: 0.66rem;
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.contact-info {
  top: calc(var(--header-height) + 54px);
}

.contact-list {
  margin-top: 46px;
  border-bottom: 1px solid var(--gray-300);
}

.contact-list li {
  padding: 24px 0;
}

.contact-list span {
  margin-bottom: 7px;
}

.contact-list a {
  display: inline-block;
  font-weight: 550;
}

.contact-form {
  padding: clamp(36px, 5vw, 68px);
  border-color: var(--gray-300);
  background: #fafaf8;
}

.form-grid {
  gap: 26px 22px;
}

.field label {
  margin-bottom: 10px;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
}

.field input,
.field select,
.field textarea {
  min-height: 58px;
  padding: 15px 16px;
  border-color: #cfcfcb;
  background: transparent;
}

.field textarea {
  min-height: 190px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: none;
}

.site-footer {
  padding: 90px 0 34px;
  background: var(--charcoal);
}

.footer-grid {
  grid-template-columns: minmax(280px, 1.55fr) 0.65fr 0.9fr;
  gap: clamp(50px, 9vw, 130px);
  padding-bottom: 78px;
}

.footer-brand p {
  max-width: 430px;
}

.footer-column h3 {
  margin-bottom: 26px;
  color: #888;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

.footer-column a {
  margin-bottom: 12px;
}

.footer-column address > a {
  margin-bottom: 0;
}

.footer-bottom {
  padding-top: 28px;
  border-color: #333;
  align-items: center;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 24px;
  }

  .brand {
    min-width: auto;
  }

  .main-nav {
    gap: 22px;
  }

  .header-phone {
    display: none;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .header-inner {
    position: relative;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 11px 8px;
    transform: translateY(-50%);
  }

  .menu-toggle span {
    background: var(--black);
  }

  .menu-toggle span {
    height: 1px;
    margin: 7px 0;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    inset: var(--header-height) 0 0;
    display: flex;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 32px 20px 60px;
    border: 0;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .main-nav.open {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    position: relative;
    padding: 19px 4px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--black);
    font-size: clamp(1.65rem, 8vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    text-transform: none;
  }

  .nav-link::before {
    position: absolute;
    right: 4px;
    color: var(--gray-500);
    content: "0" counter(nav-item);
    counter-increment: nav-item;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
  }

  .main-nav {
    counter-reset: nav-item;
  }

  .hero {
    min-height: auto;
  }

  .hero-media::after,
  .page-hero .hero-media::after {
    background:
      linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.68)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 50% 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 86px 0 82px;
  }

  .hero p {
    margin-bottom: 36px;
  }

  .hero .eyebrow {
    display: block;
    max-width: 310px;
    line-height: 1.6;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-bottom: 44px;
  }

  .section-heading p {
    padding: 0;
  }

  .intro-grid,
  .about-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .intro-copy {
    padding-top: 30px;
  }

  .service-detail {
    padding: 72px 0;
  }

  .service-detail > div:not(.service-detail__image),
  .service-detail:nth-child(even) > div:not(.service-detail__image) {
    max-width: none;
    justify-self: auto;
  }

  .service-detail__image,
  .detail-photo {
    min-height: 330px;
  }

  .about-photo {
    min-height: 380px;
  }

  .card-photo {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .project-gallery .card-photo {
    height: auto;
    min-height: 0;
  }

  .project-gallery .card-content {
    min-height: 220px;
  }

  .page-hero {
    min-height: 480px;
  }

  .footer-grid {
    gap: 48px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  h1 {
    font-size: clamp(2.85rem, 13.5vw, 3.7rem);
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .page-hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.35rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero h1 {
    max-width: 350px;
    margin-bottom: 26px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions .button {
    width: 100%;
  }

  .card-grid {
    gap: 1px;
  }

  .project-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-content {
    min-height: 230px;
    padding: 30px 26px;
  }

  .project-card .card-content {
    min-height: 145px;
  }

  .project-gallery .card-content {
    min-height: auto;
  }

  .trust-item {
    min-height: 190px;
    padding: 30px 24px;
  }

  .trust-number {
    margin-bottom: 44px;
  }

  .value-card {
    min-height: 240px;
    padding: 30px 24px;
  }

  .contact-form {
    margin-inline: -16px;
    padding: 34px 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    gap: 6px;
    align-items: flex-start;
  }

  .cta {
    text-align: left;
  }

  .cta h2,
  .cta p {
    margin-inline: 0;
  }

  .cta .button {
    width: 100%;
  }
}
