:root {
  --bg-top: #FAF3EE;
  --bg-bottom: #242424;
  --text-dark: #000000;
  --text-light: #ffffff;
  --accent: #e47d5d;
  --pill: #242424;
  --border-soft: rgba(255, 255, 255, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg-top);
  color: var(--text-dark);
}

.work-page {
  background: #242424;
  color: #fff;
}

.work-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px clamp(16px, 5vw, 72px) 42px;
  margin-bottom: 200px;
}

.work-nav {
  width: min(56rem, calc(100vw - 2rem));
  margin: 0;
  border-radius: 999px;
  background: var(--pill);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0.7rem 1rem;
   box-shadow: 0 0 28px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin-bottom: 100px;
}

.work-nav a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  padding: 8px 6px;
}

.work-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(28px, 4vw, 50px);
  margin-top: 125px;
}

.work-case-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.work-case h2 {
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.13;
  margin-bottom: 30px;
}

.work-case p {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.work-case-btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  padding: 16px 28px;
}

.work-case-btn:hover,
.work-case-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}


.audit-cta {
  background: #242424;
  color: #fff;
  padding: clamp(2.4rem, 6vw, 4.8rem) clamp(1.2rem, 4vw, 3rem);
}

.audit-cta h2 {
  text-align: center;
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.audit-cta-grid {
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
}

.audit-cta-left {
  max-width: 18rem;
  font-size: 20px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
}

.audit-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(16rem, 31vw, 25rem);
  padding: 0.95rem 1.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 36, 36, 0.95);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 240ms ease, border-color 240ms ease;
}

.audit-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ece8e2;
  transform: translateY(105%);
  transition: transform 280ms ease;
  z-index: -1;
}

.audit-cta-btn:hover,
.audit-cta-btn:focus-visible {
  color: #111;
  border-color: #ece8e2;
}

.audit-cta-btn:hover::before,
.audit-cta-btn:focus-visible::before {
  transform: translateY(0);
}

.audit-cta-list {
  margin-left: auto;
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 20px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
}

.site-footer {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
}

.site-footer-bg {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
}

.site-footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.48);
  padding: clamp(1.6rem, 3.5vw, 3.2rem);
  display: flex;
  flex-direction: column;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  flex: 1;
}

.footer-links h3 {
  font-size: 24px;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 24px;
  margin-top: 0.45rem;
}

.footer-main {
  text-align: center;
  margin-top: clamp(2rem, 6vw, 7rem);
}

.footer-main h2 {
  font-size: 52px;
  letter-spacing: -0.02em;
}

.footer-main p {
  margin-top: 1rem;
  font-size: 24px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
  padding-bottom: 50px;
}

.footer-connect {
  margin: 1.8rem auto 0;
  max-width: min(100%, 630px);
  height: 58px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  background: rgba(22, 22, 24, 0.28);
  transition: border-color 220ms ease;
}

.footer-connect-label {
  position: relative;
  display: inline-flex;
  min-width: 15.5rem;
  overflow: hidden;
}

.footer-label-default,
.footer-label-hover {
  display: block;
  white-space: nowrap;
  transition: transform 260ms ease, opacity 260ms ease;
}

.footer-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateX(-112%);
}

.footer-connect-chip {
  background: #fff;
  color: #111;
  border-radius: 999px;
  min-width: 10.2rem;
  height: 44px;
  text-align: center;
  padding: 0.62rem 1.1rem;
  font-size: 20px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: min-width 280ms ease, padding 280ms ease;
}

.footer-chip-default,
.footer-chip-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  white-space: nowrap;
  transition: transform 260ms ease, opacity 260ms ease;
}

.footer-chip-default {
  transform: translate(-50%, -50%);
}

.footer-chip-hover {
  transform: translate(-180%, -50%);
  opacity: 0;
}

.footer-connect:hover,
.footer-connect:focus-visible {
  border-color: rgba(255, 255, 255, 0.96);
}

.footer-connect:hover .footer-label-default,
.footer-connect:focus-visible .footer-label-default {
  transform: translateX(112%);
  opacity: 0;
}

.footer-connect:hover .footer-label-hover,
.footer-connect:focus-visible .footer-label-hover {
  transform: translateX(0);
  opacity: 1;
}

.footer-connect:hover .footer-connect-chip,
.footer-connect:focus-visible .footer-connect-chip {
  min-width: 14.6rem;
  padding: 0.62rem 1.45rem;
}

.footer-connect:hover .footer-chip-default,
.footer-connect:focus-visible .footer-chip-default {
  transform: translate(130%, -50%);
  opacity: 0;
}

.footer-connect:hover .footer-chip-hover,
.footer-connect:focus-visible .footer-chip-hover {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.footer-tagline {
  text-align: right;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.95);
}

.footer-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 24px;
}

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

  .work-nav {
    position: fixed;
    width: min(760px, calc(100vw - 24px));
    left: 50%;
    transform: translateX(-50%);
  }

  .work-layout {
    padding-top: 92px;
  }
}

@media (max-width: 768px) {
  .work-layout {
    padding: 92px 1rem 24px;
    margin-bottom: 90px;
  }

  .work-nav {
    width: calc(100vw - 1rem);
    padding: 0.45rem 0.5rem;
  }

  .work-nav a {
    font-size: 14px;
    padding: 0.45rem 0.15rem;
  }

  .work-grid {
    margin-top: 18px;
    gap: 24px;
  }

  .work-case h2 {
    font-size: 17px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .work-case p {
    font-size: 12px;
    line-height: 1.4;
  }

  .work-case-btn {
    font-size: 12px;
    padding: 11px 16px;
    gap: 8px;
    margin-top: 16px;
  }

  .audit-cta h2 {
    font-size: 19px;
  }

  .audit-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .audit-cta-left,
  .audit-cta-list {
    font-size: 12px;
  }

  .audit-cta-left {
    max-width: none;
    margin: 0 auto;
  }

  .audit-cta-btn {
    font-size: 14px;
    min-width: min(90vw, 18rem);
    margin: 0 auto;
  }

  .audit-cta-list {
    margin: 0 auto;
    text-align: left;
  }

  .site-footer {
    min-height: 0;
  }

  .site-footer-bg {
    min-height: 440px;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.1rem;
  }

  .footer-main {
    margin-top: 0.4rem;
  }

  .footer-links h3,
  .footer-links a,
  .footer-bottom {
    font-size: 14px;
  }

  .footer-main h2 {
    font-size: 31px;
  }

  .footer-main p {
    font-size: 14px;
    padding-bottom: 20px;
  }

  .footer-connect {
    height: 48px;
    font-size: 12px;
    padding: 0.2rem 0.2rem 0.2rem 0.7rem;
  }

  .footer-connect-label {
    min-width: 8.8rem;
  }

  .footer-connect-chip {
    min-width: 6.6rem;
    height: 36px;
    font-size: 12px;
  }

  .footer-tagline {
    text-align: center;
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}
