@font-face {
  font-display: swap;
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 900;
  src: url("static/fonts/libre-franklin-900-case-studies.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  src: url("static/fonts/libre-franklin-700-case-titles.woff2") format("woff2");
}

:root {
  --brand: #c93631;
  --brand-dark: #9f2522;
  --brand-soft: #fff1ef;
  --ink: #171717;
  --ink-soft: #575757;
  --line: #e7e3df;
  --surface: #ffffff;
  --surface-alt: #f7f5f2;
  --header-height: 6rem;
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 0.5rem 1.5rem rgba(24, 19, 15, 0.08);
  --shadow-lg: 0 1.5rem 4rem rgba(24, 19, 15, 0.14);
  --page-width: 82rem;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site {
  max-width: 100%;
  overflow-x: clip;
}

img {
  height: auto;
  max-width: 100%;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1769ff;
  outline-offset: 4px;
}

.screen-reader-text:focus,
.skip-link:focus {
  background: var(--surface);
  border-radius: 0.4rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 700;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  z-index: 1000;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  z-index: 500;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--line);
  box-shadow: 0 0.5rem 2rem rgba(24, 19, 15, 0.06);
}

.site-branding {
  align-items: center;
  display: flex;
  height: 100%;
  margin-left: clamp(1.25rem, 4vw, 4rem);
  position: relative;
  z-index: 2;
}

h1.site-title,
p.site-title {
  background: transparent;
  display: block;
  margin: 0;
  padding: 0;
  position: static;
}

h1.site-title a,
p.site-title a {
  background-image: url('static/the-practice.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  height: 4.35rem;
  transition: transform 180ms ease;
  width: 10.75rem;
}

h1.site-title span,
p.site-title span {
  display: none;
}

h1.site-title a:hover,
p.site-title a:hover {
  transform: translateY(-1px);
}

.site-description {
  display: none;
}

.main-navigation {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: flex-end;
  position: static;
  text-align: right;
  width: auto;
  z-index: 1;
}

body.admin-bar .main-navigation {
  margin-top: 0;
}

.menu-default-container {
  align-items: center;
  display: flex;
  height: 100%;
}

ul.menu {
  align-items: center;
  display: flex;
  float: none;
  gap: clamp(1.1rem, 2vw, 2.25rem);
  height: 100%;
  margin: 0 clamp(1.5rem, 5vw, 5rem) 0 0;
}

ul.menu li {
  margin: 0;
}

ul.menu li a {
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 0.65rem 0;
  position: relative;
  text-decoration: none;
}

ul.menu li a::after {
  background: var(--brand);
  bottom: 0.25rem;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

ul.menu li a:hover,
ul.menu li.current-menu-item a {
  color: var(--brand-dark);
  text-shadow: none;
}

ul.menu li a:hover::after,
ul.menu li.current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  display: none;
  height: 3rem;
  justify-content: center;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  width: 3rem;
  z-index: 155;
}

.hamburger .line {
  background: var(--ink);
  border-radius: 2px;
  height: 3px;
  margin: 4px auto;
  width: 1.75rem;
}

.site-content {
  min-height: 60vh;
}

.content-splash {
  background-color: var(--brand-dark);
  background-image:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 27%),
    radial-gradient(circle at 20% 82%, rgba(96, 12, 12, 0.26), transparent 32%),
    linear-gradient(135deg, #a82825 0%, var(--brand) 52%, #e75b50 100%);
  background-position: center;
  background-size: cover;
  height: 100svh;
  margin-top: 0;
  min-height: 42rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.content-splash::before {
  background: linear-gradient(120deg, rgba(103, 18, 18, 0.38), rgba(201, 54, 49, 0.04) 60%, rgba(0, 0, 0, 0.14));
  content: "";
  inset: 0;
  position: absolute;
}

.content-splash article {
  height: 100%;
  position: relative;
}

.content-splash .entry-header {
  left: clamp(1.5rem, 7vw, 7rem);
  position: absolute;
  top: calc(var(--header-height) + 4rem);
  z-index: 2;
}

.content-splash .entry-title {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.content-splash .entry-content {
  height: 100%;
  margin: 0 clamp(1.5rem, 7vw, 7rem);
  opacity: 1;
  position: relative;
  transition: none;
}

.content-splash p {
  color: #fff;
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  font-weight: 780;
  left: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
  max-width: 14ch;
  opacity: 0;
  padding: 0;
  position: absolute;
  text-align: left;
  top: 50%;
  transform: translateY(-42%);
  transition: opacity 650ms ease, transform 650ms ease;
}

.content-splash p.is-active,
.content-splash p:first-child {
  opacity: 1;
  transform: translateY(-50%);
}

.content-splash .hero-is-ready p:first-child:not(.is-active) {
  opacity: 0;
}

.scroll-arrow {
  bottom: 2rem;
  border-radius: 50%;
  filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.18));
  opacity: 0.9;
  position: absolute;
  z-index: 3;
}

.content-studies {
  background: var(--surface-alt);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem);
  width: 100%;
}

.content-studies .site-main {
  margin: 0 auto;
  max-width: var(--page-width);
}

.content-studies h1 {
  color: var(--ink);
  font-family: "Libre Franklin", var(--font);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: normal;
  line-height: 1.5;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.case-studies {
  --masonry-gap: clamp(1rem, 2vw, 1.75rem);
  background: transparent;
  column-gap: var(--masonry-gap);
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.case-study-sizer {
  display: none;
}

.case-study-item {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  float: none;
  margin: 0;
  min-width: 0;
  opacity: 1;
  overflow: hidden;
  position: relative;
  transform: none;
  transition: transform 250ms ease;
  width: 100%;
}

.case-study-item a {
  color: inherit;
  display: block;
  height: auto;
  text-decoration: none;
}

.case-study-item .case-study-item-image {
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  transform: none;
}

.case-study-item .case-study-item-image img {
  display: block;
  height: auto;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
  width: 100%;
}

.case-study-item .case-study-item-caption {
  background: rgba(255, 255, 255, 0.96);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  left: 0;
  opacity: 0;
  padding: 1.25rem;
  position: absolute;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 100%;
}

.case-study-item .case-study-item-title {
  color: #404040;
  font-family: "Libre Franklin", var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.case-study-item .case-study-item-subtitle {
  color: #999;
  font-family: "Libre Franklin", var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.case-study-item:hover {
  box-shadow: none;
  transform: none;
}

.case-study-item:hover .case-study-item-image {
  transform: none;
}

.case-study-item:hover .case-study-item-image img {
  transform: scale(1.04);
}

.case-study-item:hover .case-study-item-caption,
.case-study-item:focus-within .case-study-item-caption {
  opacity: 1;
  transform: translateY(0);
}

.content-about {
  background: var(--surface-alt);
  min-height: 100vh;
  padding: calc(var(--header-height) + 5rem) clamp(1.25rem, 5vw, 5rem) 6rem;
  width: 100%;
}

.content-about .site-main {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1.15fr);
  margin: 0 auto;
  max-width: 75rem;
}

.content-about .post-thumbnail {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  left: auto;
  overflow: hidden;
  position: relative;
  top: auto;
  width: 100%;
}

.content-about .post-thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.content-about article {
  align-self: center;
  margin: 0;
  padding: 0;
}

.content-about .site-main h3,
.content-about h3 {
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(2rem, 3.7vw, 3.75rem);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  padding: 0;
  width: auto;
}

.content-about .entry-content p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

.content-services {
  background: var(--surface-alt);
  margin-top: 0;
  min-height: 100vh;
  padding: calc(var(--header-height) + 4rem) clamp(1.25rem, 4vw, 4rem) 6rem;
  width: 100%;
}

.content-services > .site-main {
  margin: 0 auto;
  max-width: var(--page-width);
}

.content-services h1.entry-title {
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 2rem 0 1rem;
  text-align: left;
}

.content-services > .site-main > article .entry-content {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0 0 3rem;
  max-width: 54rem;
  text-align: left;
}

.content-services .services-block {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  width: 100%;
}

.content-services .services-block .service-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
  margin: 0;
  opacity: 1;
  padding: 1.5rem;
  transform: none;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  width: auto;
}

.content-services .services-block .service-item:hover {
  background: var(--surface);
  border-color: rgba(201, 54, 49, 0.35);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transform: translateY(-0.25rem);
}

.content-services .service-item h2,
.content-services .services-block .service-item:hover h2 {
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 0.8rem;
  padding: 0;
}

.content-services .services-block .service-item article .entry-content {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Services page: a spacious editorial grid without duplicating page padding. */
.page-services .site-content {
  background: var(--surface-alt);
}

.page-services .site-content > .content-services {
  background:
    radial-gradient(circle at 88% 11%, rgba(201, 54, 49, 0.12), transparent 18rem),
    var(--surface-alt);
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 4.5rem) clamp(1.25rem, 5vw, 5rem) 6rem;
  position: relative;
}

.page-services .site-content > .content-services::before {
  border: 1px solid rgba(201, 54, 49, 0.18);
  border-radius: 50%;
  content: "";
  height: 18rem;
  pointer-events: none;
  position: absolute;
  right: -6rem;
  top: calc(var(--header-height) + 1rem);
  width: 18rem;
}

.page-services .site-content > .content-services > .site-main {
  max-width: 76rem;
  position: relative;
  z-index: 1;
}

.page-services .content-services > .site-main > article {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-services .content-services h1.entry-title {
  font-size: clamp(3rem, 7vw, 6rem);
  margin: 1rem 0 0;
  max-width: 8ch;
}

.page-services .content-services h1.entry-title::after {
  background: var(--brand);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-top: 1.5rem;
  width: 4.5rem;
}

.page-services #services.content-services {
  background: transparent;
  margin: 0;
  min-height: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.page-services #services .services-block {
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-services #services .service-item,
.page-services #services .service-item:hover {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 0.25rem 1.5rem rgba(24, 19, 15, 0.05);
  min-height: 17rem;
  overflow: hidden;
  padding: 2rem;
  position: relative;
  text-align: left;
}

.page-services #services .service-item::before {
  background: var(--brand);
  content: "";
  height: 4px;
  left: 2rem;
  position: absolute;
  top: 0;
  width: 4rem;
}

.page-services #services .service-item::after {
  background: var(--brand-soft);
  border-radius: 50%;
  content: "";
  height: 8rem;
  pointer-events: none;
  position: absolute;
  right: -5rem;
  top: -5rem;
  transition: transform 250ms ease;
  width: 8rem;
}

.page-services #services .service-item:hover {
  border-color: rgba(201, 54, 49, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-0.2rem);
}

.page-services #services .service-item:hover::after {
  transform: scale(1.18);
}

.page-services #services .service-item article {
  height: 100%;
  position: relative;
  z-index: 1;
}

.page-services #services .service-item h2,
.page-services #services .service-item:hover h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin: 0 0 1.25rem;
  max-width: 23ch;
  text-align: left;
}

.page-services #services .service-item article .entry-content {
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  text-align: left;
}

.single .content-area {
  margin: 0;
  padding: calc(var(--header-height) + 4rem) clamp(1.25rem, 4vw, 4rem) 6rem;
}

.single .site-main {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
  margin: 0 auto;
  max-width: 76rem;
  min-width: 0;
  position: relative;
  width: 100%;
}

.case-study-gallery {
  align-self: start;
  float: none;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  width: auto;
}

.modern-case-gallery .case-study-gallery-stage {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.modern-case-gallery .case-study-gallery-slide {
  display: grid;
  height: 100%;
  inset: 0;
  margin: 0;
  padding: 1rem;
  place-items: center;
  position: absolute;
  width: 100%;
}

.modern-case-gallery .case-study-gallery-slide[hidden] {
  display: none;
}

.modern-case-gallery .case-study-gallery-slide > img,
.modern-case-gallery .case-study-gallery-image-animated,
.modern-case-gallery .case-study-gallery-image-animated img,
.modern-case-gallery .case-study-video-facade,
.modern-case-gallery .case-study-gallery-slide > iframe {
  height: 100%;
  max-height: none;
  object-fit: contain;
  width: 100%;
}

.modern-case-gallery .case-study-gallery-image-animated {
  position: relative;
}

.modern-case-gallery .case-study-gallery-image-animated img {
  display: none !important;
  inset: 0;
  position: absolute;
}

.modern-case-gallery .case-study-gallery-image-animated img.active {
  display: block !important;
}

.modern-case-gallery figcaption {
  background: rgba(20, 19, 18, 0.82);
  border-radius: 999px;
  bottom: 1rem;
  color: #fff;
  font-size: 0.78rem;
  left: 50%;
  line-height: 1.2;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  padding: 0.45rem 0.8rem;
  position: absolute;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.modern-case-gallery .case-study-gallery-nav {
  display: grid;
  gap: 0.65rem;
  grid-auto-columns: 6.5rem;
  grid-auto-flow: column;
  margin-top: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.25rem 0.15rem 0.65rem;
  scroll-snap-type: inline mandatory;
  width: 100%;
}

.modern-case-gallery .case-study-gallery-thumb {
  appearance: none;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  height: 4.75rem;
  overflow: hidden;
  padding: 0.2rem;
  scroll-snap-align: start;
  transition: border-color 160ms ease, transform 160ms ease;
}

.modern-case-gallery .case-study-gallery-thumb:hover {
  transform: translateY(-2px);
}

.modern-case-gallery .case-study-gallery-thumb.is-active {
  border-color: var(--brand);
}

.modern-case-gallery .case-study-gallery-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.modern-case-gallery .case-study-video-facade {
  appearance: none;
  background: #111;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.modern-case-gallery .case-study-video-facade img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.modern-case-gallery .case-study-video-facade span {
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
  height: 4rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
}

.modern-case-gallery .case-study-video-facade span::after {
  border-bottom: 0.65rem solid transparent;
  border-left: 1rem solid #fff;
  border-top: 0.65rem solid transparent;
  content: "";
  left: 1.65rem;
  position: absolute;
  top: 1.35rem;
}

.case-study-gallery-image {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.case-study-gallery-image:not(.slick-initialized) > div:not(:first-child),
.case-study-gallery-nav:not(.slick-initialized) > div:not(:first-child),
.case-study-gallery-zoom:not(.slick-initialized) > div:not(:first-child) {
  display: none;
}

.case-study-gallery-image .slick-slide {
  min-height: 30rem;
  padding: 1rem;
}

.case-study-gallery-image .slick-slide img {
  max-height: 34rem;
  object-fit: contain;
}

.case-study-gallery-nav .slick-slide {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  margin: 0 0.4rem;
  overflow: hidden;
  padding: 0.25rem;
}

.case-study-gallery-nav .slick-current {
  border-color: var(--brand);
}

.case-study-gallery-nav .slick-list {
  height: 8.5rem;
}

.case-study-details {
  float: none;
  margin: 0;
  width: auto;
}

.case-study-overview-heading,
.case-study-services-heading {
  color: var(--brand);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.case-study-title {
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 770;
  letter-spacing: -0.05em;
  line-height: 1.04;
  margin-bottom: 2rem;
}

.case-study-overview {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.case-study-services-heading {
  margin-top: 2.5rem;
}

.case-study-services ul li {
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.case-study-services ul li::before {
  color: var(--brand);
  margin-left: 0;
}

.case-study-back-button a {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  transition: background 180ms ease, transform 180ms ease;
}

.case-study-back-button a:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.case-study-gallery-zoom-modal.active {
  background: rgba(255, 255, 255, 0.98);
  position: fixed;
  z-index: 700;
}

.case-study-gallery-zoom {
  position: fixed !important;
  z-index: 710;
}

.page-contact .site-content {
  background-color: var(--surface-alt);
  background-image: none;
  margin-top: 0;
  min-height: 100vh;
  padding: calc(var(--header-height) + 4rem) clamp(1.25rem, 4vw, 4rem) 5rem;
}

.page-contact .site-main {
  margin: 0 auto;
  max-width: 70rem;
}

.page-contact .entry-title {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 2rem 0;
}

.page-contact .entry-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
}

.page-contact p,
.wpcf7-form label {
  font-family: var(--font);
}

.page-contact .wpcf7-text,
.page-contact .wpcf7-textarea {
  background: var(--surface-alt);
  border: 1px solid #d7d2cd;
  border-radius: 0.55rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.page-contact .wpcf7-textarea {
  min-height: 9rem;
  resize: vertical;
}

.page-contact .wpcf7-text:focus,
.page-contact .wpcf7-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 54, 49, 0.12);
  outline: 0;
}

.page-contact .wpcf7-submit {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 720;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  transition: background 180ms ease, transform 180ms ease;
}

.page-contact .wpcf7-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.site-footer {
  background: #181716;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  margin-top: 0;
}

.site-footer::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1.5px);
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 22px 22px;
  opacity: 0.08;
}

.site-footer .footer-left {
  background: transparent;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem) 2rem;
}

.site-footer .footer-left p {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 1.08;
  max-width: 22ch;
}

.site-footer .footer-left p strong {
  font-size: inherit;
}

.site-footer .footer-right {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1fr;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 2.5rem clamp(1.25rem, 4vw, 4rem) 5rem;
}

.site-footer .footer-right .col {
  width: auto;
}

.site-footer a {
  color: #fff;
}

.site-footer p.colofon {
  bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  left: clamp(1.25rem, 4vw, 4rem);
}

@media (max-width: 1100px) {
  .case-studies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-services .services-block {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 5rem;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-branding {
    margin-left: 1rem;
  }

  h1.site-title,
  p.site-title,
  h1.site-title a,
  p.site-title a {
    height: 3.5rem;
    padding: 0;
    width: 9.2rem;
  }

  .hamburger {
    display: block;
    top: 1rem;
  }

  .hamburger-modal {
    background: rgba(16, 15, 14, 0.86);
    backdrop-filter: blur(8px);
  }

  .menu-default-container {
    background: #181716;
    display: flex;
    height: 100dvh;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: translateY(-0.75rem);
    transition: opacity 220ms ease, transform 220ms ease;
    visibility: hidden;
    width: 100%;
    z-index: 152;
  }

  .main-navigation.active .menu-default-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  ul#primary-menu {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    margin: 0;
    opacity: 1;
    padding: 5rem 1.5rem;
    width: 100%;
  }

  #site-navigation ul#primary-menu li {
    transform: none;
    transition: none;
  }

  .main-navigation li {
    font-size: inherit;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  ul#primary-menu li a {
    color: #fff !important;
    font-size: clamp(1.75rem, 8vw, 3rem);
    font-weight: 700;
    min-height: 3.25rem;
    padding: 0.35rem 1rem;
  }

  .hamburger.active .line {
    background: #fff;
  }

  .content-splash {
    height: 86svh;
    min-height: 34rem;
  }

  .content-splash .entry-header {
    left: 1.25rem;
    top: calc(var(--header-height) + 2.5rem);
  }

  .content-splash .entry-content {
    margin: 0 1.25rem;
  }

  .content-splash p {
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    max-width: 11ch;
  }

  .content-about .site-main {
    grid-template-columns: 1fr;
  }

  .content-about .post-thumbnail {
    display: block;
    max-height: 32rem;
  }

  .single .site-main {
    grid-template-columns: 1fr;
  }

  .case-study-gallery {
    background: transparent;
    border: 0;
    margin: 0;
    position: relative;
    top: auto;
  }

  .case-study-gallery-nav .slick-list {
    height: 8rem !important;
  }

  .page-contact div.email,
  .page-contact div.contacts {
    float: none;
    width: 100%;
  }

  .page-contact div.contacts {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 2rem;
  }

  .page-contact .phone-social {
    padding-right: 0;
    position: static;
  }
}

@media (max-width: 760px) {
  .content-studies h1 {
    font-size: 2rem;
  }

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

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

  .content-studies,
  .content-services,
  .content-about,
  .single .content-area,
  .page-contact .site-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .page-services .site-content > .content-services {
    padding-bottom: 4rem;
    padding-top: calc(var(--header-height) + 2.5rem);
  }

  .page-services .site-content > .content-services::before {
    height: 12rem;
    right: -6rem;
    top: calc(var(--header-height) + 1rem);
    width: 12rem;
  }

  .page-services #services .services-block {
    grid-template-columns: 1fr;
  }

  .page-services #services .service-item,
  .page-services #services .service-item:hover {
    min-height: 0;
    padding: 1.5rem;
  }

  .page-services #services .service-item::before {
    left: 1.5rem;
  }
}

@media (max-width: 520px) {
  .case-studies {
    grid-template-columns: 1fr;
  }

  .content-services .services-block {
    grid-template-columns: 1fr;
  }

  .case-study-item .case-study-item-image {
    aspect-ratio: auto;
  }

  .content-studies {
    padding-top: 3.5rem;
  }

  .content-about,
  .content-services,
  .single .content-area,
  .page-contact .site-content {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .content-about .post-thumbnail {
    max-height: 24rem;
  }

  .case-study-gallery-image .slick-slide {
    min-height: 18rem;
  }

  .page-contact .entry-content {
    padding: 1.25rem;
  }

  .page-contact div.contacts,
  .site-footer .footer-right {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-right {
    padding-bottom: 6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .case-study-item,
  .content-services .services-block .service-item {
    opacity: 1;
    transform: none;
  }
}

/*
 * Original visual composition
 * Keep the upgraded implementation while matching the established site design.
 */
.site-header,
.site-header.is-scrolled {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  height: 0;
  position: absolute;
}

.site-header::before,
.site-header.is-scrolled::before {
  background: #fff;
  content: "";
  height: 5.5rem;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.site-branding {
  display: block;
  height: 0;
  margin: 0;
  position: static;
}

h1.site-title,
p.site-title {
  background: #fff;
  left: 0;
  padding: 3rem 4rem;
  position: absolute;
  top: 0;
  z-index: 2;
}

h1.site-title a,
p.site-title a,
.site-header.is-scrolled h1.site-title a,
.site-header.is-scrolled p.site-title a {
  height: 5.625rem;
  width: 12.5rem;
}

.main-navigation {
  display: block;
  height: auto;
  position: absolute;
  top: 0;
  width: 100%;
}

.menu-default-container {
  display: block;
  height: auto;
}

ul.menu {
  float: right;
  gap: 2.5rem;
  height: auto;
  margin: 2rem 7rem 2rem 2rem;
}

ul.menu li a {
  font-size: 1rem;
  font-weight: 400;
}

ul.menu li.current-menu-item a {
  font-weight: 700;
}

.home .content-splash {
  background-color: #dc3e37;
  background-image: url('static/background-splash.webp');
  background-position: left top;
  background-repeat: no-repeat;
  background-size: auto;
  height: 100vh;
  margin-top: 5.5rem;
  min-height: 0;
}

.home .content-splash::before {
  display: none;
}

.home .content-splash .entry-header {
  display: none;
}

.home .content-splash .entry-content {
  height: 100%;
  margin: 0 8vw;
}

.home .content-splash p {
  font-size: 3rem;
  font-weight: 700;
  left: 50%;
  letter-spacing: normal;
  line-height: 1.1;
  max-width: none;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -44%);
  width: 84vw;
}

.home .content-splash p.is-active,
.home .content-splash p:first-child {
  transform: translate(-50%, -50%);
}

.home .scroll-arrow {
  position: fixed;
}

.page-services .site-content {
  background: #fff;
}

.page-services .site-content > .content-services {
  background: #fff;
  min-height: 90vh;
  overflow: visible;
  padding: 10.5rem 0 4rem;
  text-align: center;
}

.page-services .site-content > .content-services::before {
  content: none;
}

.page-services .site-content > .content-services > .site-main {
  max-width: none;
}

.page-services .content-services > .site-main > article {
  border: 0;
  margin: 0;
  padding: 0;
}

.page-services .content-services > .site-main > article .entry-content {
  margin: 0;
}

.page-services .content-services h1.entry-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 3.125rem;
  max-width: none;
  text-align: center;
}

.page-services .content-services h1.entry-title::after {
  content: none;
}

.page-services #services.content-services {
  margin: 0;
  padding: 0;
}

.page-services #services .services-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto;
  padding: 0 0 0 2rem;
  width: 90vw;
}

.page-services #services .service-item,
.page-services #services .service-item:hover {
  background: #efefef;
  border: 0;
  border-radius: 0;
  box-shadow: 10px 11px 26px 1px rgba(0, 0, 0, 0.21);
  flex: 0 0 22%;
  margin: 0 3% 3rem 0;
  min-height: 0;
  overflow: visible;
  padding: 1rem;
  transform: none;
  width: 22%;
}

.page-services #services .service-item::before,
.page-services #services .service-item::after {
  content: none;
}

.page-services #services .service-item h2,
.page-services #services .service-item:hover h2 {
  background: #d34a40;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin: -1rem -1rem 0.25rem;
  max-width: none;
  padding: 0.25rem 1rem;
  text-align: left;
}

.page-services #services .service-item article .entry-content {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

@media (min-width: 2048px), (min-height: 1152px) {
  .home .content-splash {
    background-size: cover;
  }
}

@media (max-width: 980px) {
  h1.site-title,
  p.site-title {
    height: auto;
    padding: 1.5rem 2rem;
    width: auto;
  }

  h1.site-title a,
  p.site-title a,
  .site-header.is-scrolled h1.site-title a,
  .site-header.is-scrolled p.site-title a {
    height: 5rem;
    width: 12.5rem;
  }

  .main-navigation {
    height: 0;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger .line {
    margin: 0;
  }

  .hamburger.active {
    position: fixed;
  }

  .hamburger.active .line {
    left: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
  }

  .hamburger.active .line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .menu-default-container {
    display: flex;
    height: 100dvh;
  }

  .home .content-splash {
    background-position: center center;
    background-size: cover;
    height: 80vh;
  }

  .home .content-splash p {
    font-size: 2rem;
    line-height: 1.4;
    padding: 1rem;
    width: 100vw;
  }

  .home .scroll-arrow {
    bottom: 5.25rem;
  }

  .page-services .site-content > .content-services {
    padding: 10.5rem 0 4rem;
  }

  .page-services #services .services-block {
    padding-left: 0;
  }

  .page-services #services .service-item,
  .page-services #services .service-item:hover {
    flex-basis: 100%;
    margin-right: 3%;
    padding: 1rem;
    width: auto;
  }

  .page-services #services .service-item h2,
  .page-services #services .service-item:hover h2 {
    margin: -1rem -1rem 0.25rem;
    padding: 0.25rem 1rem;
  }
}

/* About page: keep the featured image visible and pair it with the copy. */
.content-about .site-main {
  display: block;
}

.content-about article {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1.15fr);
}

.content-about .post-thumbnail {
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
}

.content-about .entry-content {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

ul.menu li.current_page_item a,
ul.menu li.current-menu-ancestor a {
  color: var(--brand-dark);
  font-weight: 700;
}

ul.menu li.current_page_item a::after,
ul.menu li.current-menu-ancestor a::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

  .content-about .post-thumbnail,
  .content-about .entry-content {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Contact page: maintain a clear gutter between the form and address. */
.page-contact .wpcf7-form {
  align-items: start;
  column-gap: clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.85fr);
}

.page-contact .wpcf7-form .email {
  float: none;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: auto;
}

.page-contact .wpcf7-form .contacts {
  float: none;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: auto;
}

.page-contact .wpcf7-response-output {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .page-contact .wpcf7-form {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-contact .wpcf7-form .email {
    grid-column: 1;
    grid-row: 1;
  }

  .page-contact .wpcf7-form .contacts {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Feather Forms contact layout. */
.page-contact .feather-contact-layout {
  align-items: start;
  column-gap: clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.85fr);
}

.page-contact .feather-contact-form,
.page-contact .feather-contact-layout .contacts {
  min-width: 0;
}

.page-contact .feather-contact-form h2 {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.page-contact .feather-contact-layout .contacts {
  float: none;
  width: auto;
}

.page-contact .feather-contact-layout .contacts a {
  color: var(--ink-soft);
  text-decoration: none;
}

.page-contact .feather-contact-layout .contacts a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.page-contact .feather-contact-layout .contacts img {
  height: 1.75rem;
  width: auto;
}

@media (max-width: 980px) {
  .page-contact .feather-contact-layout {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Original theme footer composition and original background asset. */
.site-footer,
.page-contact .site-footer {
  background-color: rgba(80, 80, 80, 1);
  color: #fff;
  display: block;
  font-family: "Libre Franklin", var(--font);
  font-size: 1.1rem;
  margin-top: 3rem;
  position: relative;
}

.site-footer::before {
  background-image: url("static/background-dots.svg");
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  content: "" !important;
  display: block;
  height: 100%;
  opacity: 0.25;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 200;
}

.site-footer .footer-left {
  background-color: rgba(80, 80, 80, 1);
  margin: 0;
  max-width: none;
  padding: 2rem 5rem 2rem 2rem;
  position: relative;
}

.site-footer .footer-right {
  background: rgba(220, 62, 55, 1);
  border: 0;
  display: flex;
  gap: 0;
  margin: 0;
  max-width: none;
  padding: 2rem 2rem 4rem;
}

.site-footer .footer-right .col {
  width: 30%;
}

.site-footer p {
  margin-top: 0;
}

.site-footer .footer-left p {
  font-family: "Libre Franklin", var(--font);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: normal;
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

.site-footer .footer-left p strong {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p.colofon {
  bottom: 0;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 400;
  left: 2rem;
  position: absolute;
}

@media (max-width: 980px) {
  .site-footer .footer-left p,
  .site-footer .footer-left p strong {
    font-size: 2rem;
  }

  .site-footer .footer-left p {
    font-weight: 700;
  }

  .site-footer .footer-left p strong {
    font-weight: 900;
  }

  .site-footer .footer-right {
    display: block;
  }

  .site-footer .footer-right .col {
    width: auto;
  }
}
