/*
Theme Name: Chautara
Theme URI: https://chautaracreation.com
Author: Chautara Creation
Author URI: https://chautaracreation.com
Description: Custom theme for Chautara Creation — a Kathmandu studio building brands, websites, and marketing for ambitious Nepali businesses.
Version: 1.0.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chautara
*/

/* ============ Fonts ============ */
@font-face {
  font-family: "Unbounded";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/unbounded:vf@latest/latin-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Variable.ttf") format("truetype-variations");
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono@latest/latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono@latest/latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============ Base ============ */
:root {
  --forest-950: #051f1b;
  --forest-900: #0a2a25;
  --forest-800: #0e3a33;
  --forest-700: #12514a;
  --forest-300: #8fcec5;
  --forest-200: #c2e2dc;
  --cream-100: #f6f1e7;
  --cream-200: #f2ede4;
  --cream-300: #e8e0d0;
  --cream-400: #d6ccb8;
  --cream-600: #8f856f;
  --cream-700: #665e4d;
  --terracotta-500: #c15a35;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream-200);
  color: #051f1b;
  font-family: "Satoshi", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: #0e3a33;
}
a:hover {
  color: #c15a35;
}

::selection {
  background: #0e3a33;
  color: #f2ede4;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@keyframes pattern-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 420px 420px;
  }
}

.link-hover-terra:hover {
  color: #c15a35 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 8px;
  border: none;
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm {
  min-height: 48px;
  padding: 0 28px;
  font-size: 15px;
}
.btn-pill {
  border-radius: 9999px !important;
}

.btn-cream {
  background: #f2ede4;
  color: #0e3a33;
  transition: background 120ms;
}
.btn-cream:hover {
  background: #e8e0d0 !important;
  color: #0e3a33;
}
.btn-cream:active {
  transform: translateY(1px);
}

.btn-active:active {
  transform: translateY(1px);
}

.btn-forest {
  background: #0e3a33;
  color: #f2ede4;
  transition: background 120ms;
}
.btn-forest:hover {
  background: #0a2a25 !important;
  color: #f2ede4;
}
.btn-forest:active {
  transform: translateY(1px);
}

.btn-terracotta {
  background: #c15a35;
  color: #f2ede4;
  transition: background 120ms;
}
.btn-terracotta:hover {
  background: #a84926 !important;
  color: #f2ede4;
}
.btn-terracotta:active {
  transform: translateY(1px);
}

.card-dark-hover:hover {
  background: #0a2a25 !important;
}

.card-light-hover:hover {
  box-shadow: 0 2px 8px rgba(10, 42, 37, 0.06);
  border-color: #0a2a25 !important;
}

.carousel-btn {
  transition: background 120ms;
}
.carousel-btn:hover {
  background: #d6ccb8 !important;
}
.carousel-btn:active {
  transform: translateY(1px);
}

@keyframes testimonial-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes testimonial-stack-in {
  from {
    opacity: 0;
    transform: translateY(-36px) scale(0.9);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes testimonial-stack-shift {
  from {
    transform: translateY(10px) scale(0.97);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.case-row-category {
  display: none;
}
@media (min-width: 640px) {
  .case-row-category {
    display: block;
  }
}

@keyframes thumb-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .case-study-grid {
    grid-template-columns: 200px 1fr;
    gap: 64px;
  }
}

.cs-nav-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #a99c82;
  font-weight: 400;
  padding-left: 14px;
  border-left: 2px solid transparent;
  transition:
    color 160ms,
    border-color 160ms;
}
.cs-nav-link.is-active {
  color: #0e3a33;
  font-weight: 600;
  border-left-color: #c15a35;
}

.case-study-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
}
@media (min-width: 900px) {
  .case-study-nav {
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 112px;
    overflow-x: visible;
    margin-bottom: 0;
    align-self: flex-start;
  }
}

/* ============ Shared primitives ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f856f;
}
.eyebrow--tight {
  letter-spacing: 0.12em;
}
.eyebrow--tighter {
  letter-spacing: 0.1em;
}
.eyebrow--on-dark {
  color: #8fcec5;
}
.eyebrow--terracotta {
  color: #c15a35;
}
.eyebrow--center {
  display: block;
  text-align: center;
}

.pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/pattern.svg");
  background-size: 420px;
  animation: pattern-drift 60s linear infinite;
  pointer-events: none;
}
.pattern-overlay--soft {
  opacity: 0.08;
}
.pattern-overlay--softer {
  opacity: 0.06;
}
.pattern-overlay--static {
  animation: none;
  opacity: 0.08;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-header--spaced {
  margin-bottom: 56px;
}
.section-heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.2;
  color: #051f1b;
  margin: 12px 0 0 0;
}
.section-link {
  font-weight: 500;
  font-size: 16px;
  color: #0e3a33;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 12px 0 0 0;
  color: #0e3a33;
}
.body-text {
  color: #051f1b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px) 64px;
}
.page-heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.15;
  margin: 16px 0 0 0;
  color: #051f1b;
}
.page-heading--18 {
  max-width: 18ch;
}
.page-heading--20 {
  max-width: 20ch;
}
.page-lede {
  font-size: 19px;
  line-height: 1.6;
  color: #665e4d;
  max-width: 52ch;
  margin: 24px 0 0 0;
}

/* ============ Site nav ============ */
.site-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: padding 220ms cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.site-nav-wrap.is-scrolled {
  padding: 12px clamp(12px, 2vw, 24px);
}
.site-nav-bar {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    max-width 220ms cubic-bezier(0.65, 0, 0.35, 1),
    background 220ms cubic-bezier(0.65, 0, 0.35, 1),
    border-radius 220ms cubic-bezier(0.65, 0, 0.35, 1),
    border-color 220ms cubic-bezier(0.65, 0, 0.35, 1),
    box-shadow 220ms cubic-bezier(0.65, 0, 0.35, 1);
}
.site-nav-wrap.is-scrolled .site-nav-bar {
  max-width: 1080px;
  border-radius: 14px;
  box-shadow: 0 10px 30px -12px rgba(10, 42, 37, 0.22);
}
.site-nav-wrap.is-scrolled .site-nav-bar.theme-forest {
  background: rgba(14, 58, 51, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: #12514a;
}
.site-nav-wrap.is-scrolled .site-nav-bar.theme-cream {
  background: rgba(242, 237, 228, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: #d6ccb8;
}
.site-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}
.site-nav-wordmark {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.theme-forest .site-nav-wordmark {
  color: #f2ede4;
}
.theme-cream .site-nav-wordmark {
  color: #0e3a33;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.site-nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.site-nav-link {
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 120ms;
  white-space: nowrap;
}
.theme-forest .site-nav-link {
  color: #f2ede4;
}
.theme-cream .site-nav-link {
  color: #0e3a33;
}
.site-nav-link.is-active {
  border-bottom-color: #c15a35;
}
.site-nav-cta {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 15px;
}
.theme-forest .site-nav-cta {
  background: #f2ede4;
  color: #0e3a33;
}
.theme-cream .site-nav-cta {
  background: #0e3a33;
  color: #f2ede4;
}
.site-nav-spacer {
  height: 72px;
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  background: #f2ede4;
  color: #051f1b;
  overflow: hidden;
}
.site-footer__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("assets/images/pattern.svg");
  background-size: 420px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px) 0;
}
.site-footer__logo {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 0;
  display: block;
  height: clamp(160px, 22vw, 300px);
  width: auto;
  opacity: 0.9;
  pointer-events: none;
}
.site-footer__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer__heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  margin: 0;
  color: #0e3a33;
}
.site-footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer__nav a {
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0e3a33;
  text-decoration: none;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #8f856f;
}
.site-footer__meta a {
  color: #8f856f;
  text-decoration: none;
}

/* ============ Hero (home) ============ */
.hero {
  position: relative;
  background: #0e3a33;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
}
.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 64px clamp(20px, 4vw, 48px) 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
}
.hero__title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.12;
  color: #f2ede4;
  margin: 0;
  max-width: 16ch;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: #c2e2dc;
  max-width: 44ch;
  margin: 0;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============ Services (pinned) ============ */
.services-section {
  background: #f2ede4;
  padding: 96px 0 64px;
}
.pinned {
  height: 300vh;
  position: relative;
}
.pinned__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pinned__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.pinned__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}
.pinned__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #d6ccb8;
  transition: background 220ms;
}
.pinned__dot.is-active {
  background: #c15a35;
}
.pinned__track {
  width: 1px;
  flex: 1;
  background: #d6ccb8;
  position: relative;
}
.pinned__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0%;
  background: #c15a35;
}
.pinned__stage {
  position: relative;
  flex: 1;
  min-height: min(560px, 78vh);
}
.pinned__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-content: center;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pinned__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pinned__problem {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.pinned__problem-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c15a35;
}
.pinned__problem-text {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.3;
  color: #051f1b;
  margin: 0;
}
.pinned__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 14px;
  padding: clamp(28px, 3vw, 40px);
  text-decoration: none;
  justify-content: center;
}
.pinned__card--dark {
  background: #0e3a33;
  border: none;
  color: #f2ede4;
}
.pinned__card--light {
  background: #f6f1e7;
  border: 1.5px solid #0a2a25;
  color: #051f1b;
}
.pinned__card-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pinned__card--dark .pinned__card-eyebrow {
  color: #8fcec5;
}
.pinned__card--light .pinned__card-eyebrow {
  color: #8f856f;
}
.pinned__card-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0;
}
.pinned__card--light .pinned__card-title {
  color: #0e3a33;
}
.pinned__card-body {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.pinned__card--dark .pinned__card-body {
  color: #c2e2dc;
}
.pinned__card--light .pinned__card-body {
  color: #665e4d;
}
.pinned__card-price {
  font-size: 14px;
}
.pinned__card--dark .pinned__card-price {
  color: #8fcec5;
}
.pinned__card--light .pinned__card-price {
  color: #8f856f;
}
.pinned__card-cta {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pinned__card--light .pinned__card-cta {
  color: #0e3a33;
}

/* ============ Partners roots ============ */
.partners-section {
  position: relative;
  min-height: 100vh;
  background: #0e3a33;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.partners-section__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 96px clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.partners-note {
  text-align: center;
  font-size: 13px;
  color: #8fcec5;
  margin: 32px 0 0 0;
}
.roots-field {
  position: relative;
  flex: 1;
  margin-top: 48px;
  min-height: 420px;
}
.roots-field.is-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-content: center;
}
.roots-logo {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.roots-field.is-fallback .roots-logo {
  position: static;
  grid-column: 1 / -1;
  margin: 0 auto 24px;
  transform: none;
}
.roots-logo img {
  height: 88px;
  width: auto;
  display: block;
}
.roots-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.roots-path {
  fill: none;
  stroke: #2b9184;
  stroke-width: 1.5;
  stroke-opacity: 0.55;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.roots-card {
  position: absolute;
  width: 168px;
  opacity: 0;
  transform: translate(-50%, -30%);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  background: #f2ede4;
  color: #0e3a33;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 12px 24px -8px rgba(5, 31, 27, 0.45);
}
.roots-card.is-revealed {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.roots-field.is-fallback .roots-card {
  position: static;
  transform: translateY(16px);
}
.roots-field.is-fallback .roots-card.is-revealed {
  transform: translateY(0);
}

/* ============ Case studies list ============ */
.case-studies-section {
  background: #f6f1e7;
  padding: 96px 0;
}
.case-list {
  border-top: 1px solid #d6ccb8;
}
.cs-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 26px 4px;
  border-bottom: 1px solid #d6ccb8;
  text-decoration: none;
  color: #051f1b;
}
.cs-row__index {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  width: 32px;
  flex-shrink: 0;
  color: #8f856f;
  transition: color 200ms;
}
.cs-row:hover .cs-row__index {
  color: #c15a35;
}
.cs-row__name {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.2;
  flex: 1;
  min-width: 0;
  color: #051f1b;
  transform: translateX(0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    color 200ms;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-row:hover .cs-row__name {
  color: #0e3a33;
  transform: translateX(10px);
}
.cs-row__category {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f856f;
  flex-shrink: 0;
}
.cs-row__arrow {
  flex-shrink: 0;
  transform: rotate(-45deg);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-row:hover .cs-row__arrow {
  transform: rotate(0deg);
}
.cs-row__thumb {
  position: fixed;
  width: 220px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 24px 48px rgba(5, 31, 27, 0.28);
  background-size: cover;
  background-position: center;
}
.cs-row__thumb.is-visible {
  display: flex;
  animation: thumb-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-row__thumb--placeholder {
  background-image: url("assets/images/pattern.svg");
  background-size: 180px;
  background-blend-mode: soft-light;
}
.cs-row__thumb-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fcec5;
}

/* ============ CTA band ============ */
.cta-band {
  background: #f2ede4;
  padding: 96px 0;
}
.cta-card {
  position: relative;
  background: #0e3a33;
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.cta-card__heading {
  position: relative;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.2;
  color: #f2ede4;
  margin: 0;
  max-width: 22ch;
}
.cta-card__lede {
  position: relative;
  font-size: 18px;
  line-height: 1.6;
  color: #c2e2dc;
  max-width: 52ch;
  margin: 0;
}
.cta-card__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ Testimonials ============ */
.testimonials {
  background: #f2ede4;
  padding: 96px 0;
}
.testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonials__heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  color: #051f1b;
  margin: 16px 0 0 0;
  text-align: center;
  max-width: 18ch;
}
.testimonial-stage {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-top: 72px;
}
.testimonial-stack-back {
  position: absolute;
  top: -40px;
  left: 40px;
  right: 40px;
  height: 56px;
  background: #c15a35;
  border-radius: 24px 24px 0 0;
  z-index: 0;
}
.testimonial-stack-mid {
  position: absolute;
  top: -20px;
  left: 20px;
  right: 20px;
  height: 32px;
  background: #1b6e62;
  border-radius: 20px 20px 0 0;
  z-index: 1;
}
.testimonial-stack-back.is-animating,
.testimonial-stack-mid.is-animating {
  animation: testimonial-stack-shift 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-card {
  position: relative;
  z-index: 2;
  background: #0a2a25;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  min-height: 340px;
  box-shadow: 0 24px 48px rgba(5, 31, 27, 0.28);
  transform-origin: 50% 0%;
}
.testimonial-card.is-animating {
  animation: testimonial-stack-in 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-card__body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.testimonial-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f2ede4 50%, #8fcec5 50%);
  background-size: cover;
  background-position: center;
}
.testimonial-card__quote {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  color: #f2ede4;
}
.testimonial-card__caption {
  font-size: 14px;
  color: #8fcec5;
  margin: 0;
}
.testimonial-card__photo {
  position: relative;
  min-height: 220px;
  background: #12514a;
  background-image: url("assets/images/pattern.svg");
  background-size: 280px;
  background-blend-mode: soft-light;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-card__photo.has-image {
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
}
.testimonial-controls {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}
.testimonial-arrow-btn {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: none;
  background: #e8e0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============ Services page ============ */
.services-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-article {
  border-radius: 24px;
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.service-article--dark {
  background: #0e3a33;
  color: #f2ede4;
  border: none;
}
.service-article--light {
  background: #f6f1e7;
  border: 1px solid #d6ccb8;
}
.service-article__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-article__title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  margin: 0;
}
.service-article--light .service-article__title {
  color: #0e3a33;
}
.service-article__para {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
.service-article--dark .service-article__para {
  color: #c2e2dc;
}
.service-article--light .service-article__para {
  color: #665e4d;
}
.service-article__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid #d6ccb8;
}
.service-article--dark .service-article__aside {
  border-left-color: #12514a;
}
.service-article__includes {
  margin: 12px 0 0 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
  color: #051f1b;
}
.service-article--dark .service-article__includes {
  color: #f2ede4;
}
.service-article__price-block {
  margin-top: auto;
}
.service-article__price {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 22px;
}
.service-article--light .service-article__price {
  color: #0e3a33;
}
.service-article__price-note {
  font-size: 14px;
  margin-top: 4px;
}
.service-article--dark .service-article__price-note {
  color: #8fcec5;
}
.service-article--light .service-article__price-note {
  color: #8f856f;
}
.service-article__cta {
  align-self: flex-start;
}
.steps-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid #d6ccb8;
  border-radius: 14px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 8px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step__body {
  font-size: 15px;
  line-height: 1.6;
  color: #051f1b;
  margin: 0;
}

/* ============ Work archive ============ */
.work-count {
  margin-bottom: 12px;
}

/* ============ Single case study ============ */
.cs-header {
  position: relative;
  background: #0e3a33;
  overflow: hidden;
}
.cs-header__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px);
}
.cs-header__index {
  display: block;
  margin-top: 28px;
}
.cs-header__title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.15;
  margin: 24px 0 0 0;
  color: #f2ede4;
  max-width: 18ch;
}
.cs-header__lede {
  font-size: 19px;
  line-height: 1.6;
  color: #c2e2dc;
  max-width: 48ch;
  margin: 20px 0 0 0;
}
.cs-header__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
  border-top: 1px solid #12514a;
  padding-top: 32px;
}
.cs-stat__label {
  display: block;
  margin-bottom: 6px;
}
.cs-stat__value {
  font-size: 15px;
  color: #f2ede4;
}
.cs-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 48px) 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.cs-hero-image {
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  background-color: #0a2a25;
  background-image: url("assets/images/pattern.svg");
  background-size: 320px;
  background-blend-mode: soft-light;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-hero-image--photo {
  background-blend-mode: normal;
  background-size: cover;
}
.cs-section--divider {
  border-top: 1px solid #d6ccb8;
  padding-top: 64px;
}
.cs-section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  max-width: 68ch;
}
.cs-build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.cs-build-image {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-color: #0e3a33;
  background-image: url("assets/images/pattern.svg");
  background-size: 200px;
  background-blend-mode: soft-light;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-build-image--alt {
  background-color: #12514a;
}
.cs-build-image--photo {
  background-blend-mode: normal;
  background-size: cover;
}
.cs-quote {
  margin: 0;
  border-top: 1px solid #d6ccb8;
  padding-top: 64px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cs-quote__mark {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.7;
  color: #c15a35;
  flex-shrink: 0;
}
.cs-quote__text {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.35;
  color: #0e3a33;
}
.cs-quote__cite {
  font-size: 14px;
  color: #8f856f;
  margin-top: 16px;
}
.cs-next {
  border-top: 1px solid #d6ccb8;
  padding-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cs-next__label {
  font-size: 16px;
  color: #665e4d;
}
.cs-next__link {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #0e3a33;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ============ Blog ============ */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #f6f1e7;
  border: 1px solid #d6ccb8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #051f1b;
  transition:
    box-shadow 120ms,
    border-color 120ms;
}
.blog-card__cover {
  aspect-ratio: 16 / 9;
  background-color: #0e3a33;
  background-image: url("assets/images/pattern.svg");
  background-size: 240px;
  background-blend-mode: soft-light;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__cover--photo {
  background-blend-mode: normal;
  background-size: cover;
}
.blog-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card__title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
  color: #0e3a33;
}
.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #665e4d;
  margin: 0;
}
.blog-card__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #0e3a33;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-pagination {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 96px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.blog-pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid #d6ccb8;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: #0e3a33;
}
.blog-pagination .page-numbers.current {
  background: #0e3a33;
  color: #f2ede4;
  border-color: #0e3a33;
}

.post-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px) 0;
}
.post-cover {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 clamp(20px, 4vw, 48px);
}
.post-cover img {
  width: 100%;
  border-radius: 24px;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 48px) 96px;
  font-size: 17px;
  line-height: 1.75;
  color: #051f1b;
}
.post-content h2,
.post-content h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0e3a33;
  margin: 48px 0 16px;
}
.post-content p {
  margin: 0 0 20px;
}
.post-content a {
  text-decoration: underline;
}
.post-content img {
  border-radius: 14px;
}
.post-meta {
  margin-top: 16px;
}
.post-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 96px;
  border-top: 1px solid #d6ccb8;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.post-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #0e3a33;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============ Contact ============ */
.contact-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.contact-info {
  background: #0e3a33;
  color: #f2ede4;
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info__lede {
  font-size: 16px;
  line-height: 1.65;
  color: #c2e2dc;
  margin: 0;
}
.contact-info__note {
  font-size: 13px;
  color: #8fcec5;
}
.contact-info__divider {
  border-top: 1px solid #12514a;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info__link {
  font-size: 16px;
  color: #f2ede4;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-info__hours {
  font-size: 15px;
  color: #8fcec5;
}
.contact-form {
  background: #f6f1e7;
  border: 1px solid #d6ccb8;
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #051f1b;
}
.contact-form__input,
.contact-form__textarea {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d6ccb8;
  border-radius: 4px;
  background: #f2ede4;
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  color: #051f1b;
}
.contact-form__textarea {
  padding: 14px 16px;
  min-height: 110px;
  resize: vertical;
}
.contact-form__success {
  margin: 0;
  font-size: 15px;
  color: #2b9184;
  font-weight: 500;
}
.contact-form__error {
  margin: 0;
  font-size: 15px;
  color: #c15a35;
  font-weight: 500;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ 404 ============ */
.notfound {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 48px) 160px;
  text-align: center;
}
.notfound__heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4.5vw, 56px);
  margin: 16px 0 0 0;
  color: #051f1b;
}
.notfound__lede {
  font-size: 18px;
  line-height: 1.6;
  color: #665e4d;
  margin: 20px 0 32px;
}
