/* ============================================
   CSS Variables
   ============================================ */
:root {
  --gradient-text: linear-gradient(
    90deg,
    rgb(153, 187, 206),
    rgb(164, 180, 201) 14%,
    rgb(156, 218, 235) 28%,
    rgb(194, 230, 228) 43%,
    rgb(199, 219, 205) 57%,
    rgb(217, 212, 212) 72%,
    rgb(255, 255, 255) 86%,
    rgb(211, 206, 217)
  );
  --color-text: rgb(194, 230, 228);
  --color-highlight: rgb(156, 218, 235);

  --color-bg: #0e0e0e;
  --color-bg-light: rgb(15, 23, 27);
  --transition-base: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-color: color 0.3s ease;
  --focus-outline: 3px solid hsl(210deg 80% 60% / 1);
  --focus-outline-offset: 2px;
}

/* ============================================
   Reset and Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: var(--transition-base);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-wrap: pretty;
}

body {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
}

.manrope-font {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.hide-mobile {
  display: block;
}

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border: 2px solid var(--color-text);
  border-radius: 4px;
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* ============================================
   Screen Reader Only
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  width: 100%;
  padding: 1.5rem 0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 0 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.header-logo {
  justify-self: start;
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text);
}

.header-logo svg {
  display: block;
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.primary-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding: 0;
  min-width: 0;
  margin-left: auto;
}

.primary-nav ul {
  width: auto;
  max-width: 100%;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.primary-nav a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-color);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.primary-nav a:hover {
  color: var(--color-highlight);
}

.nav-contact {
  display: none;
}

.header-cta {
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* box-shadow is excluded so the GSAP pulse isn't smoothed by CSS transitions */
.button.header-cta {
  transition-property: opacity, scale, background-color, color, border-color;
}

.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 22px;
  height: 16px;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  /* Material emphasized easing */
  transition:
    transform 300ms cubic-bezier(0.2, 0, 0, 1),
    opacity 200ms cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0;
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-color);
  font-size: 1.5rem;
}

nav a:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
  border-radius: 4px;
}

.hock-logo svg {
  max-width: 100px;
  height: auto;
  opacity: 0.75;
}

/* ============================================
   Main Content
   ============================================ */
main {
  padding: 0;
  /* Prevent layout shifts */
  min-height: 90vh;
  contain: layout style;
}

main .main {
  position: relative;
  margin: 0 auto;
  min-height: calc(100vh - 144px);
  height: calc(100vh - 144px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Prevent layout shifts */
  contain: layout style;
}

main nav {
  width: 100%;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}

main nav ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

main nav ul li a {
  min-width: 200px;
}

main .main-img {
  align-self: flex-start;
  border-radius: 50%;
  width: 100px;
  height: 100px;
}
@media (min-width: 516px) {
  main .main-img {
    align-self: center;
    width: 160px;
    height: 160px;
  }
}

/* Shared gradient text styles */
main .main-h1 {
  font-size: 3.125rem;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-color);
  text-wrap: balance;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  /* Prevent layout shifts */
  contain: layout style;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  max-width: 60rem;
}

main .main-h1 span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: -0.5rem;
}
main .main-h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  max-width: 50rem;
  text-align: center;
  text-wrap: pretty;
}
main .sub-h2 {
  font-size: 2.25rem;
  text-align: center;
}

main h1.lead {
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
  text-wrap: pretty;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
  color: var(--color-text);
}

main h2.lead {
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-wrap: pretty;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  max-width: 60rem;
}

main .main-h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: bold;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-color);
  max-width: 50rem;
  margin: 1rem 0 2rem;
  text-wrap: balance;
  font-weight: normal;
  max-width: 60rem;
}

main .main-p {
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: normal;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-color);
  max-width: 40rem;
  text-wrap: pretty;
}

main p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto 1rem;
  max-width: 50rem;
  text-wrap: pretty;
  text-align: center;
  /* Prevent layout shift by reserving space */
  min-height: 5.5em; /* Reserve space for ~3-4 lines of text at 1.6 line-height */
  /* Isolate layout calculations to prevent shifts */
  contain: layout style;
}

main li {
  color: var(--color-text);
}

main .service-h3 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: normal;
  text-align: left;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-color);
  max-width: 60rem;
  margin: 2rem auto 0;
  text-wrap: balance;
}


main p.service-lead {
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem auto;
  text-align: left;
  text-wrap: pretty;
}
@media (min-width: 1024px) {
  main p.service-lead {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 1rem auto 1.5rem;
  }
}

main .testimonials {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main .cta-section {
  margin: 0 auto;
  height: calc(90vh - 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-content {
  text-align: center;
  margin-top: 2rem;
}
.cta-content p {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}
.cta-content p a {
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================
   Buttons
   ============================================ */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap:.5rem;
  padding: 16px 32px;
  border-radius: 56px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-text);
  color: var(--color-bg);
  background: var(--color-text);
  opacity: 0.9;
}
.button:has(svg) {
  padding: 16px 12px 16px 32px;
}
.button.btn:has(svg) {
  padding: 16px;
}

.button--outline {
  border: 2px solid var(--color-text);
  color: var(--color-text);
  background-color: transparent;
}

.button:hover,
.button:focus-visible {
  opacity: 1;
  scale: 1.1;
}

.button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

.button--small {
  font-size: 14px;
  padding: 12px 24px;
}

@media (min-width: 1024px) {
  .button span {
    
  }
}

.btn {
  padding: 16px;
  border-radius: calc(infinity * 1px);
}

@media (min-width: 1024px) {
  .btn span {
    font-size: 0;
    padding-right: 0;
  }
}

.btn:hover,
.btn:focus-visible {
  padding: 16px 32px;
}

.btn:hover .ico {
  margin-left: 0;
  transform: rotate(360deg);
}

.btn:hover .span {
  visibility: visible;
}


.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 20px;
  font-size: 1.5em;
}

.ico::before {
  transition: var(--transition-base);
  content: "\f2c3" !important;
  font-family: Ionicons;
  margin-left: -5px;
}

.btn:hover .ico::before {
  transition: var(--transition-base);
  content: "\f10b" !important;
  font-family: Ionicons;
  margin-left: -5px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  margin: 3rem 0 2rem;
  padding: 0 2rem;
}


footer img,
footer svg {
  padding: 0.5rem;
  color: var(--color-text);
}

/* ============================================
   Canvas Elements
   ============================================ */
#fluid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: -1;
  background: transparent;
}

/* ============================================
   Marquee
   ============================================ */
.marquee-wrapper {
  display: none;
}

@media (min-width: 1024px) {
  .marquee-wrapper {
    display: block;
    position: absolute;
  bottom: 0;
  display: grid;
  place-content: center;
  /* Reserve space to prevent layout shifts */
  width: 100%;
  min-height: 80px;
  contain: layout style;
  opacity: .4;
  }
}

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
}

.marquee__ctn {
  display: flex;
  width: 100%;
}

.marquee__track {
  display: flex;
}

@supports (-webkit-touch-callout: none) {
  .marquee__ctn {
    transform: translate3d(0, 0, 0) scale(1);
    perspective: 1px;
  }
}

.marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  margin-inline-end: 3rem;
}

.marquee__item img {
  height: 60px;
  width: 100%;
  object-fit: contain;
  /* Prevent layout shifts during image load */
  aspect-ratio: 2 / 1;
  backface-visibility: hidden;
  filter: brightness(100%);
}

/* ============================================
   Flip Animation
   ============================================ */
a.flip-animate {
  perspective: 1000px;
}

a.flip-animate span {
  position: relative;
  display: inline-block;
  padding: 0;
  transition: transform 0.3s;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

a.flip-animate span:before {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  content: attr(data-hover);
  transition: var(--transition-color);
  transform: rotateX(-90deg);
  transform-origin: 50% 0;
  text-align: center;
}

a.flip-animate:hover span,
a.flip-animate:focus-visible span {
  transform: rotateX(90deg) translateY(-22px);
}

/* ============================================
   Tooltip
   ============================================ */
.tooltip {
  transform: translate(-50%, -200%);
  position: absolute;
  color: var(--color-bg);
  background-color: var(--color-text);
  border: none;
  border-radius: 4px;
  padding: 15px 10px;
  z-index: 10;
  display: block;
  width: 100%;
  max-width: 200px;
  top: 0;
  left: 50%;
  text-align: center;
}

.tooltip:after {
  content: "";
  display: block;
  position: absolute;
  border-color: var(--color-text) rgba(189, 195, 211, 0);
  border-style: solid;
  border-width: 15px 15px 0;
  bottom: -13px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 0;
}

/* ============================================
   Coffee Animation
   ============================================ */
.coffee {
  height: 18px;
  width: 18px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--color-bg);
  margin: auto;
  position: relative;
  border-radius: 0 0 24px 24px;
  background-image: linear-gradient(
    0deg,
    var(--color-bg) 0,
    var(--color-bg) 14px,
    transparent 0,
    transparent 0
  );
  background-size: 32px 24px;
  background-position: 0 0;
  animation: fill 2s infinite;
}

.coffee::before {
  position: absolute;
  content: "";
  height: 5px;
  width: 4px;
  border: 3px solid var(--color-bg);
  border-radius: 0 10px 10px 0;
  right: -13px;
}

@keyframes fill {
  100% {
    background-position: 0 -10px;
  }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .coffee {
    animation: none;
  }

  .marquee__track {
    animation: none;
  }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding-top: clamp(5rem, 8vw, 6rem);
  padding-bottom: clamp(5rem, 8vw, 6rem);
  position: relative;
}

.cta-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

/* ============================================
   About Section
   ============================================ */
.about {
  max-width: 860px;
  margin: 0 auto;
}

.about-content {
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 3rem;
  margin-top: 2rem;
  text-align: left;
}

.about-content .service-lead {
  margin: 0;
  color: var(--color-text);
}

/* ============================================
   Process Section
   ============================================ */
.process {
  max-width: 1140px;
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}


.process-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-content .service-h3 {
  text-align: left;
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1;
}
.process-content .service-h3 strong {
  display:block;
  font-size: 1.375rem;
  font-weight: 200;
  margin-bottom: .5rem;
}

.process-image {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.process-image img {
  width: 32px;
  height: auto;
}

.process-step--reverse .process-content .service-h3  {
  text-align: left;
}

.process-step--reverse .process-image {
  justify-content: flex-end;
}

@media only screen and (max-width: 991px) {
  .button {
    font-size:14px;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-content .service-h3 {
    text-align: left;
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0;
  }
  .process-content .service-h3 strong {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  .process-step {
    padding: 1.25rem;
  }

  .process-image {
    margin-bottom: 0;
  }

  .process-image img {
    width: 30px;
    height: auto;
  }
}

.down-arrow {
  width: 24px;
  margin-top: 1rem;
  margin-bottom: 0;
}

.form-wrap {
  width: 100%;
  margin: 0 auto;
  max-width: 40rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  max-width: 1140px;
  margin: 0 auto;
}

.testimonial-block {
  display: grid;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  margin-top: 2rem;
}

.testimonial-single {
  text-align: left;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
}

.quote {
  opacity: 0.1;
  width: 50px;
  font-size: 5rem;
  display: inline;
  position: absolute;
  inset: 25px auto auto 25px;
}

.testimonial-text {
  text-align: left;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-highlight);
  opacity: 1;
  font-style: italic;
  margin-bottom: 1.8rem;
}

.testimonial-person {
  justify-content: flex-start;
  align-items: center;
  margin-top: 2rem;
  display: flex;
}

.testimonial-logo {
  object-fit: contain;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  margin-right: 2rem;
  flex-shrink: 0;
  background-color: white;
}

.testimonial-name {
  text-align: left;
  color: var(--color-text);
}

.testimonial-name h3 {
  font-size: 1rem;
}
.testimonial-name p {
  display: inline-block;
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
}
.testimonial-name a {
  color: var(--color-text);
  text-decoration: none;
}

.testimonial-title {
  opacity: 0.7;

  display: block;
}

.testimonial-company {
  text-align: left;
  line-height: 1.1;
}

.hyphen-testimonial {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* ============================================
   Services
   ============================================ */
.services__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  margin-top: 2rem;
}

.services-block {
  text-align: left;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
  font-size: 2rem;
  line-height: 1;
}

.services-list {
  list-style-type: square;
  margin-bottom: 1rem;
}

.services-list li {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 1rem;
  text-wrap: pretty;
}

/* ============================================
   Service Details Template
   ============================================ */
.service-details {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.service-details::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 140vw);
  height: min(900px, 140vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(156, 218, 235, 0.08) 0%,
    rgba(26, 39, 46, 0) 65%
  );
  pointer-events: none;
  z-index: 0;
}

.service-details__intro {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.service-details__eyebrow {
  color: var(--color-highlight);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-details__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
  text-wrap: pretty;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.service-details__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 2rem 1.75rem 2.25rem;
}

.service-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    160deg,
    rgba(15, 23, 27, 0.9),
    rgba(26, 39, 46, 0.4)
  );
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__device {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__device--phone {
  width: 88px;
  height: 160px;
  border-radius: 14px;
  border: 2px solid rgba(194, 230, 228, 0.35);
  background: linear-gradient(180deg, #0a151a, #13232b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.service-card__ui {
  position: absolute;
  display: block;
  border-radius: 6px;
}

.service-card__ui--top {
  top: 18%;
  left: 12%;
  right: 12%;
  height: 28%;
  background: linear-gradient(135deg, var(--color-highlight), rgb(194, 230, 228));
  opacity: 0.85;
}

.service-card__ui--mid {
  bottom: 22%;
  left: -18%;
  width: 78%;
  height: 22px;
  background: rgba(194, 230, 228, 0.92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.service-card__ui--chip {
  bottom: 38%;
  right: -14%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-highlight);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.service-card__device--laptop {
  width: 170px;
  height: 110px;
  border-radius: 10px 10px 4px 4px;
  border: 2px solid rgba(194, 230, 228, 0.3);
  background: #0a151a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.service-card__device--laptop::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 8px;
  border-radius: 0 0 6px 6px;
  background: rgba(194, 230, 228, 0.25);
}

.service-card__screen {
  display: block;
  width: 86%;
  height: 72%;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 62%, rgba(156, 218, 235, 0.35) 62%),
    linear-gradient(180deg, #1a3a45 0%, #0f1c22 100%);
}

.service-card__device--stack {
  width: 140px;
  height: 120px;
}

.service-card__device--stack span {
  position: absolute;
  width: 72px;
  height: 120px;
  border-radius: 12px;
  border: 2px solid rgba(194, 230, 228, 0.28);
  background: linear-gradient(180deg, #13232b, #0a151a);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.service-card__device--stack span:nth-child(1) {
  left: 8px;
  transform: rotate(-12deg);
  opacity: 0.7;
}

.service-card__device--stack span:nth-child(2) {
  left: 34px;
  transform: rotate(-2deg);
  opacity: 0.9;
}

.service-card__device--stack span:nth-child(3) {
  left: 58px;
  transform: rotate(8deg);
  background:
    linear-gradient(180deg, rgba(156, 218, 235, 0.35), transparent 40%),
    linear-gradient(180deg, #13232b, #0a151a);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.service-card__title a {
  color: inherit;
  text-decoration: none;
}

.service-card__title a:hover,
.service-card__title a:focus-visible {
  color: var(--color-highlight);
}

.service-card__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.8;
  margin: 0 0 1.5rem;
  text-wrap: pretty;
  max-width: 18rem;
  flex-grow: 1;
}

.service-card .button--outline {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
  margin-top: auto;
}

.service-card .button--outline:hover,
.service-card .button--outline:focus-visible {
  background: var(--color-highlight);
  color: var(--color-bg);
  border-color: var(--color-highlight);
}

/* ============================================
   Service Feature Detail Sections
   ============================================ */
.service-feature {
  scroll-margin-top: 2rem;
}

.service-feature__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-feature--reverse .service-feature__content {
  order: 2;
}

.service-feature--reverse .service-feature__media {
  order: 1;
}

.service-feature__content {
  max-width: 32rem;
}

.service-feature__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-highlight);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.service-feature__icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.service-feature__icon::before,
.service-feature__icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--color-highlight);
  border-radius: 2px;
}

.service-feature__icon::before {
  top: 0;
  left: 0;
}

.service-feature__icon::after {
  right: 0;
  bottom: 0;
  opacity: 0.7;
}

.service-feature__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  text-wrap: balance;
  color: var(--color-text);
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.service-feature__text {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  opacity: 0.85;
  text-wrap: pretty;
}

.service-feature__media {
  width: 100%;
}

.service-feature__frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.service-feature__device.service-card__device--phone {
  width: 110px;
  height: 200px;
}

.service-feature__device.service-card__device--laptop {
  width: 220px;
  height: 140px;
}

.service-feature__device.service-card__device--laptop::after {
  width: 250px;
}

.service-feature__device.service-card__device--stack {
  width: 180px;
  height: 150px;
}

.service-feature__device.service-card__device--stack span {
  width: 90px;
  height: 150px;
}

/* ============================================
   Individual Service Pages
   ============================================ */
.service-details__lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  text-wrap: pretty;
}

.service-details__actions {
  margin: 2rem auto 0;
}

.service-page-include {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.service-page-include__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 1.75rem;
  text-align: center;
  color: var(--color-text);
}

.service-page-include__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-include-card {
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 1.75rem;
}

.service-include-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.service-include-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;
  text-wrap: pretty;
}

.service-page-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.service-page-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.service-page-cta__text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  opacity: 0.85;
  text-wrap: pretty;
}

.service-related {
  max-width: 1140px;
  margin: 3rem auto;
  padding: 0 1.5rem 2rem;
}

.service-related__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 1.75rem;
  text-align: center;
  color: var(--color-text);
}

.service-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-related__list li {
  display: flex;
  height: 100%;
}

.service-related__list a {
  display: block;
  flex: 1;
  padding: 1.25rem;
  border: 1px solid var(--color-bg-light);
  border-radius: .675rem;
  color: var(--color-text);
  text-decoration: none;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  transition: var(--transition-base);
}

.service-related__name {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.service-related__text {
  display: block;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;
  font-weight: 400;
  text-wrap: pretty;
}

.service-related__list a:hover,
.service-related__list a:focus-visible {
  border-color: var(--color-highlight);
}

.service-related__list a:hover .service-related__name,
.service-related__list a:focus-visible .service-related__name {
  color: var(--color-highlight);
}

.service-related__list a[aria-current="page"] {
  border-color: var(--color-highlight);
  opacity: 0.55;
  pointer-events: none;
}

.service-selected {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.service-selected__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  text-align: center;
  color: var(--color-text);
}

.service-selected__intro {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.85;
  text-wrap: pretty;
}

.service-selected__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition-base);
}

.service-work-card:hover,
.service-work-card:focus-visible {
  border-color: var(--color-highlight);
}

.service-work-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0e11;
}

.service-work-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.service-work-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-work-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.service-work-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.8;
  text-wrap: pretty;
}

.service-selected__more {
  display: block;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--color-highlight);
  text-decoration: none;
  font-weight: 600;
}

.service-selected__more:hover,
.service-selected__more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 900px) {
  .service-page-include {
    padding-left: 0;
    padding-right: 0;
  }

  .service-page-include__heading {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .service-page-include__grid {
    grid-template-columns: 1fr;
  }

  .service-include-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .service-related {
    padding-left: 0;
    padding-right: 0;
  }

  .service-related__heading {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .service-related__list {
    grid-template-columns: 1fr;
  }

  .service-related__list a {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .service-selected {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .service-selected__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Project Detail Template
   ============================================ */
.project-hero {
  display: flex;
  align-items: stretch;
}

.project-hero__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  padding-top: clamp(5rem, 8vw, 6rem);
  padding-bottom: clamp(5rem, 8vw, 6rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 3rem;
}

.project-hero__content {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
  max-width: 36rem;
}

.project-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
  color: var(--color-text);
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.project-hero__meta strong {
  font-weight: 700;
}

.project-hero__meta-sep {
  opacity: 0.45;
}

.project-hero__meta span:last-child {
  opacity: 0.8;
}

.project-hero__credit {
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.7;
}

.project-hero__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-hero__credit a:hover,
.project-hero__credit a:focus-visible {
  color: var(--color-highlight);
  opacity: 1;
}

.project-hero__role-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.project-hero__role p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  opacity: 0.85;
  text-wrap: pretty;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.project-tags li {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-bg-light);
  background: rgba(15, 23, 27, 0.65);
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.project-scroll {
  margin-top: 2.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(194, 230, 228, 0.35);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    border-color 300ms cubic-bezier(0.2, 0, 0, 1),
    background-color 300ms cubic-bezier(0.2, 0, 0, 1),
    transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

.project-scroll:hover,
.project-scroll:focus-visible {
  border-color: var(--color-highlight);
  background: rgba(156, 218, 235, 0.08);
  transform: translateY(3px);
}

.project-hero__media {
  display: flex;
  justify-content: center;
  min-height: 28rem;
}

.project-hero__figure {
  margin: 0;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.project-hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  border: 1px solid var(--color-bg-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.project-body {
  scroll-margin-top: 2rem;
}

.project-body__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.project-body__intro {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.project-body__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
  text-wrap: balance;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.project-body__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0;
  text-wrap: pretty;
}

.project-body__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-stat {
  background-color: #0f12161a;
  background-image: linear-gradient(25deg, #01090c, #07161e00 26%),
    linear-gradient(#0003, #0003);
  border: 1px solid var(--color-bg-light);
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: left;
}

.project-stat__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin: 0 0 0.75rem;
}

.project-stat p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.85;
  text-wrap: pretty;
}

.project-body__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

/* ============================================
   Case Study Template (Bang-inspired)
   ============================================ */
.case-study {
  padding-top: clamp(4rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
}

.case-study__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

@media only screen and (min-width: 1140px) {
  .case-study__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.case-study__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 2.25rem;
  color: rgba(194, 230, 228, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 300ms cubic-bezier(0.2, 0, 0, 1);
}

.case-study__back svg {
  flex-shrink: 0;
}

.case-study__back:hover,
.case-study__back:focus-visible {
  color: var(--color-highlight);
}

.case-study__header {
  max-width: 46rem;
  margin: 0 0 2.5rem;
}

.case-study__title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 1.25rem;
  text-wrap: balance;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.case-study__lede {
  margin: 0 0 1rem;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  line-height: 1.6;
  color: rgba(194, 230, 228, 0.78);
  text-wrap: pretty;
}

.case-study__credit {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.65;
}

.case-study__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.case-study__credit a:hover,
.case-study__credit a:focus-visible {
  color: var(--color-highlight);
}

.case-study__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.case-study__meta a {
  color: var(--color-highlight);
  text-decoration: none;
}

.case-study__meta a:hover,
.case-study__meta a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.case-study__role-label {
  color: rgba(194, 230, 228, 0.7);
}

.case-study__meta-sep {
  opacity: 0.4;
}

.case-study__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.case-study__tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 230, 228, 0.22);
  background: rgba(10, 15, 18, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
}

.case-study__tags svg {
  flex-shrink: 0;
  color: var(--color-highlight);
}

.case-study__hero-media,
.case-study__feature-media {
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(194, 230, 228, 0.08);
  background: #0c0e11;
}

.case-study__hero-media img,
.case-study__feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.case-study__feature-media img {
  aspect-ratio: 16 / 9;
  object-position: center center;
}

.case-study__block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.case-study__block-lead h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 1.25rem 0 0.85rem;
  text-wrap: balance;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.case-study__deck {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  font-style: italic;
  color: rgba(194, 230, 228, 0.72);
  text-wrap: pretty;
}

.case-study__block-body p {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(194, 230, 228, 0.82);
  text-wrap: pretty;
}

.case-study__block-body p:last-child {
  margin-bottom: 0;
}

.case-study__block-body a {
  color: var(--color-highlight);
}

.case-study__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.case-study__gallery figure {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(194, 230, 228, 0.08);
  background: #0c0e11;
}

.case-study__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.case-study__hero-media:has(+ .case-study__gallery) {
  margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.case-study__gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-study__gallery--three img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.case-study__cta {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(194, 230, 228, 0.08);
  background:
    linear-gradient(160deg, rgba(7, 16, 22, 0.9), rgba(12, 28, 36, 0.55));
}

.case-study__cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 1.25rem 0 0.75rem;
  text-wrap: balance;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.case-study__cta p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

.case-study__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.case-study__more {
  margin-top: clamp(6rem, 12vw, 9rem);
}

.case-study__more .projects-page__intro {
  margin-bottom: 2.5rem;
}

.case-study__more .projects-page__title {
  margin: 0;
}

.case-study__services {
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.case-study__services-heading {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: rgba(194, 230, 228, 0.72);
}

.case-study__services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study__services-list a {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--color-bg-light);
  border-radius: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  background-color: #0f12161a;
  text-align: center;
}

.case-study__services-list a:hover,
.case-study__services-list a:focus-visible {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

@media only screen and (max-width: 991px) {
  .case-study__block {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .case-study__gallery {
    grid-template-columns: 1fr;
  }

  .case-study__gallery--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-study__hero-media img,
  .case-study__feature-media img {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================
   Projects List Page
   ============================================ */
.projects-page {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media only screen and (min-width: 1140px) {
  .projects-page {
    padding-left: 0;
    padding-right: 0;
  }
}

.projects-page__intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.projects-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  background-image: var(--gradient-text);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.projects-page__lead {
  margin: 1rem auto 2rem;
  max-width: 36rem;
  opacity: 0.85;
  text-wrap: pretty;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-panel {
  position: relative;
  display: block;
  min-height: 28.75rem;
  padding: 3.15rem 5rem 3.15rem;
  border-radius: 0;
  border: 1px solid rgba(194, 230, 228, 0.08);
  overflow: hidden;
  background: #0c0e11;
  isolation: isolate;
}

.project-panel__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.6;
}

.project-panel__bg--alt {
  background-image:
    linear-gradient(135deg, #0a1a20 0%, #1a3a45 45%, #0f2a22 100%);
  opacity: 1;
}

.project-panel__bg--studio {
  background-image:
    linear-gradient(160deg, #071016 0%, #152a38 50%, #0c1c28 100%);
  opacity: 1;
}

.project-panel__shade {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #0c0e11 3%,
    rgba(12, 14, 17, 0.86) 18%,
    rgba(12, 14, 17, 0) 100%
  );
  pointer-events: none;
}

.project-panel__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 50%;
  min-height: 22.5rem;
  padding: 0;
}

.project-panel__domain {
  display: none;
}

.project-panel__mark {
  color: var(--color-highlight);
  margin: 0 0 0.35rem;
  line-height: 0;
}

.project-panel__mark svg {
  display: block;
}

.project-panel__title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 28px rgba(194, 230, 228, 0.18);
}

.project-panel__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(194, 230, 228, 0.72);
  text-wrap: pretty;
  max-width: 28rem;
}

.project-panel__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: auto 0 0;
  padding: 3rem 0 0;
  max-width: calc(100% - 13rem);
}

.project-panel__tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 230, 228, 0.22);
  background: rgba(10, 15, 18, 0.45);
  color: var(--color-highlight);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.6;
}

.project-panel__tags svg {
  flex-shrink: 0;
  color: var(--color-highlight);
  opacity: 1;
}

.project-panel__cta {
  position: absolute;
  z-index: 4;
  right: 5rem;
  bottom: 3.15rem;
  margin: 0;
  min-height: 3.5rem;
  padding: 0 2.5rem;
  border: 2px solid rgb(156, 218, 235);
  border-radius: 2rem;
  border-color: rgb(156, 218, 235);
  color: rgb(156, 218, 235);
  background: transparent;
  box-shadow:
    rgba(162, 207, 227, 0.1) 0 0 15px 15px inset,
    rgba(162, 207, 227, 0.05) 0 0 15px 15px;
  font-weight: 700;
}

.project-panel__cta-short {
  display: none;
}

.project-panel__cta:hover,
.project-panel__cta:focus-visible {
  background: rgba(156, 218, 235, 0.1);
  color: rgb(156, 218, 235);
  border-color: rgb(156, 218, 235);
  box-shadow:
    rgba(162, 207, 227, 0.14) 0 0 15px 15px inset,
    rgba(162, 207, 227, 0.08) 0 0 18px 16px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media only screen and (max-width: 991px) {
  .hide-mobile {
    display: none;
  }

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

  .service-details__intro {
    margin-bottom: 2.5rem;
  }

  .service-feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-feature--reverse .service-feature__content,
  .service-feature--reverse .service-feature__media {
    order: initial;
  }

  .service-feature__content {
    max-width: none;
    text-align: center;
  }

  .service-feature__label {
    justify-content: center;
  }

  .project-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .project-hero__content {
    max-width: none;
  }

  .project-hero__media {
    min-height: 0;
    order: -1;
  }

  .project-hero__figure {
    max-width: 280px;
    margin: 0 auto;
  }

  .project-hero__image {
    max-height: 360px;
  }

  .project-body__grid {
    grid-template-columns: 1fr;
  }

  .projects-page {
    padding-left: 19.5px;
    padding-right: 19.5px;
  }

  .projects-page__intro {
    padding-left: 0;
    padding-right: 0;
  }

  .projects-list {
    gap: 1.25rem;
    padding: 0;
  }

  .project-panel {
    position: relative;
    display: block;
    min-height: 0;
    border-radius: 0;
    border: none;
    background: #050607;
    overflow: hidden;
    padding: 1.7rem 1.7rem 1.2rem;
    box-shadow: none;
  }

  .project-panel__bg {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 195px;
    width: 100%;
    flex: none;
    opacity: 1;
    background-position: center;
    background-size: cover;
    z-index: 0;
  }

  .project-panel__shade {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 195px;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(5, 6, 7, 0.15) 0%,
      rgba(5, 6, 7, 0.35) 55%,
      rgba(5, 6, 7, 0.92) 88%,
      #050607 100%
    );
  }

  .project-panel__body {
    position: static;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: none;
    min-height: 0;
    margin: 11.5rem 0 0;
    padding: 0;
    background: transparent;
  }

  .project-panel__tags {
    max-width: none;
  }

  .project-panel__mark {
    position: absolute;
    top: 1.7rem;
    left: 1.7rem;
    z-index: 4;
    margin: 0;
    filter: none;
  }

  .project-panel__mark svg {
    width: 40px;
    height: 40px;
  }

  .project-panel__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgb(214, 240, 255);
    text-shadow: 0 0 18px rgba(162, 207, 227, 0.18);
    margin: 0 0 0.85rem;
  }

  .project-panel__text {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: rgb(108, 141, 158);
    max-width: none;
    margin: 0 0 1.8rem;
  }

  .project-panel__tags {
    margin: 0;
    padding-top: 0;
    gap: 0.5rem;
  }

  .project-panel__tags li {
    padding: 0.45rem 0.75rem;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    border-color: rgba(108, 141, 158, 0.45);
    background: transparent;
    color: rgb(108, 141, 158);
  }

  .project-panel__tags svg {
    color: rgb(108, 141, 158);
    opacity: 0.9;
  }

  .project-panel__cta {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1.35rem 0 0;
    z-index: 4;
    min-width: 11.5rem;
    min-height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: rgb(156, 218, 235);
    background: transparent;
    border: 2px solid rgb(156, 218, 235);
    border-radius: 32px;
    box-shadow:
      rgba(162, 207, 227, 0.1) 0 0 15px 15px inset,
      rgba(162, 207, 227, 0.05) 0 0 15px 15px;
  }

  .project-panel__cta-full {
    display: inline;
  }

  .project-panel__cta-short {
    display: none;
  }

  .project-panel__cta:hover,
  .project-panel__cta:focus-visible {
    scale: 1;
    background: rgba(156, 218, 235, 0.08);
    color: rgb(156, 218, 235);
    border-color: rgb(156, 218, 235);
  }

  main:has(.projects-page) {
    padding-left: 0;
    padding-right: 0;
  }

  header {
    position: relative;
  }

  main {
    padding: 0 2.25rem;
  }

  main .main {
    height: auto;
  }

  main .service-h3 {
    font-size: 1.125rem;
    font-weight:bold;
    margin: 1rem auto;
  }

  main .cta-section {
    height: auto;
  }

  .marquee-wrapper {
    top: 0;
    bottom: auto;
  }

  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

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

  .testimonial-person {
    text-align: left;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .testimonial-logo {
    width: 72px;
    height: 72px;
    margin-right: 0;
  }
  .testimonial-name {
    text-align: center;
    margin-top: 1rem;
  }
  .testimonial-company {
    text-align: center;
  }

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

  .services-block {
    padding: 0;
  }
  .services-list {
    margin-left: 1rem;
    margin-bottom: 1rem;
  }
  .services-list li {
    font-size: .9rem;
  }

  main .main-h1 {
    font-size: 2.5rem;
    margin-top: 5rem;
  }
  main .main-h2 {
    font-size: 1.25rem;
    text-align: center;
  }
  main .main-h3 {
    text-align: center;
  }
  .about-content {
    padding: 1rem;
    margin-top: 1rem;
  }
}

@media only screen and (max-width: 515px) {
  main .main-h1 {
    font-size: 1.875rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1.125rem;
  }
  main .main-h2,
  main .main-h3 {
    text-align: left;
    font-size: 1rem;
  }
  main .main-h3 {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
  }

  nav ul {
    flex-direction: row;
  }

  main nav ul {
    flex-direction: row;
  }

  main nav ul li a {
    min-width: inherit;
  }

  .btn {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
  }

  .btn:hover span {
    font-size: 1rem;
    padding-right: 1rem;
  }

  .btn:hover span.coffee-text {
    padding-right: 0.5rem;
  }
}

@media (max-width: 768px) {

  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-details {
    padding: 0;
  }

  .service-card {
    padding: 0;
    margin-bottom: 1rem;
  }

  .service-include-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .service-details__grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin: 0 auto;
  }

  header {
    position: relative;
    z-index: 1001;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
    position: relative;
    z-index: 1002;
  }

  .header-logo {
    position: relative;
    z-index: 1002;
  }

  .header-logo svg {
    width: 40px;
    height: 40px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-contact {
    display: list-item;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Material Design 3 emphasized easing — fade in/out */
    transition:
      opacity 300ms cubic-bezier(0.2, 0, 0, 1),
      visibility 300ms cubic-bezier(0.2, 0, 0, 1);
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: auto;
  }

  .primary-nav a {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .primary-nav li {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 300ms cubic-bezier(0.2, 0, 0, 1),
      transform 300ms cubic-bezier(0.2, 0, 0, 1);
  }

  .primary-nav.is-open li {
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav.is-open li:nth-child(1) { transition-delay: 40ms; }
  .primary-nav.is-open li:nth-child(2) { transition-delay: 80ms; }
  .primary-nav.is-open li:nth-child(3) { transition-delay: 120ms; }
  .primary-nav.is-open li:nth-child(4) { transition-delay: 160ms; }
  .primary-nav.is-open li:nth-child(5) { transition-delay: 200ms; }

  body.nav-open {
    overflow: hidden;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav h1 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .button.btn:has(svg) {
    padding: 8px 6px;
  }

  footer {
    align-items: center;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .primary-nav,
  .primary-nav li,
  .nav-toggle__bars span {
    transition: none;
  }

  .primary-nav li {
    transform: none;
  }
}
