:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --gap: 2.4rem;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
}

/* Layout */
.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 80px;
}

.layout--header,
.layout--footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.layout__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  align-items: baseline;
}

.layout__title {
  font-size: 28px;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  text-decoration: none;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
}

.custom-logo {
  display: block;
  height: auto;
  width: 160px; /* default, can be overridden by your Customizer injected CSS */
}

/* Desktop nav */
.site-nav .menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}

.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--fg);
}

/* =========================
   NAV TOGGLE
========================= */

/* Base toggle style */
.nav-toggle {
  display: none; /* hidden on desktop */
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--fg);
}

/* Remove iOS focus glow */
.nav-toggle:focus,
.nav-toggle:active {
  outline: none;
  box-shadow: none;
}

/* Icon wrapper */
.nav-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SVG size and animation */
.nav-toggle__icon svg {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.2s ease;
}

/* Rotate arrow when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__icon svg {
  transform: rotate(180deg);
}

/* =========================
   MOBILE BEHAVIOR
========================= */

@media (max-width: 768px) {
  .site-header__inner {
    position: relative;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .site-nav .menu a {
    display: block;
    padding: 14px 16px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.site-footer__copy {
  margin: 0;
}

/* Filter */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter__item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.filter__item.is-active {
  border-color: var(--fg);
  color: var(--fg);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

/* Project cards */
.project-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fafafa;
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Force a consistent image box */
.project-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10; /* change to 4/3 or 3/2 if you prefer */
  overflow: hidden;
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__placeholder {
  aspect-ratio: 16 / 10;
  padding-top: 0;
  background: #f0f0f0;
}

.project-card__meta {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.project-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__type {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

/* Hero */
.hero {
  padding: 40px 0 40px;
}

.hero__title {
  font-size: 40px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.front-projects__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.front-projects__title {
  margin: 0;
  font-size: 20px;
}

.front-projects__link {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}

.front-projects__link:hover {
  color: var(--fg);
}

/* Single project */
.layout--single {
  padding-top: 60px;
}

.project-single__header {
  margin-bottom: 32px;
}

.project-single__title {
  font-size: 28px;
  margin: 0 0 8px;
}

.project-single__types {
  margin: 0;
  color: var(--muted);
}

.project-single__thumb img {
  width: 100%;
  display: block;
  border-radius: 12px;
  margin-bottom: 32px;
  height: auto;
}

.project-single__content {
  max-width: 680px;
}

/* Video embed */
.embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 32px;
}

.embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Typography defaults */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

a {
  color: inherit;
}

/* Pagination */
.pagination {
  margin-top: 32px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
}

.pagination .page-numbers.current {
  border-color: var(--fg);
}

.pagination .page-numbers:hover {
  border-color: var(--border);
}

/* Responsive */
@media (max-width: 600px) {
  .layout,
  .layout--header,
  .layout--footer {
    padding-inline: 16px;
  }

  .hero__title {
    font-size: 32px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 16px;
}

/* Front hero slider */
.front-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 8px 0 28px;
  border: 1px solid var(--border);

  /* Fixed height. Change this to what you want. */
  height: clamp(320px, 50vh, 620px);
}

.front-hero__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.front-hero__track::-webkit-scrollbar {
  display: none;
}

.front-hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  min-height: 0; /* cancels the old 62vh so height stays fixed */
  scroll-snap-align: start;
}

.front-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  /* Subtle active-slide zoom */
  transition: transform 6s ease;
}

.front-hero__slide[aria-current="true"] .front-hero__img {
  transform: scale(1.04);
}

/* Overlay */
.front-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0));
}

.front-hero__content {
  color: #fff;
  max-width: 560px;
}

.front-hero__title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.front-hero__text {
  margin: 0 0 12px;
  opacity: 0.95;
}

.front-hero__contact {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: 0.95;
}

.front-hero__contact a {
  text-decoration: none;
  color: inherit;
}

.front-hero__sep {
  margin: 0 8px;
}

/* Dots */
.hero-dots {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: auto;
}

.hero-dots__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  padding: 0;
  cursor: pointer;
}

.hero-dots__dot[aria-current="true"] {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

/* About + Services spacing */
.front-about,
.front-services {
  margin: 0 0 28px;
}

.front-about__inner,
.front-services__inner {
  padding: 0;
}

.front-about__title,
.front-services__title {
  margin: 0 0 12px;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fafafa;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.service-card__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.service-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 700px) {
  .front-hero__title {
    font-size: 40px;
  }

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

/* Trust strip */
.trust-strip {
  margin: -12px 0 28px;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
}

.trust-strip__item {
  font-size: 13px;
  color: var(--muted);
}

/* Section contrast for services */
.front-services {
  border: 1px solid var(--border);
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px;
}

@media (min-width: 700px) {
  .front-services {
    padding: 22px;
  }
}

/* Service card hover polish */
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Bottom CTA block */
.front-cta {
  margin: 28px 0 0;
  border-radius: 18px;
  background: var(--fg);
  color: var(--bg);
  padding: 22px;
}

.front-cta__title {
  margin: 0 0 8px;
}

.front-cta__text {
  margin: 0 0 14px;
  opacity: 0.9;
}

.btn--cta {
  background: #fff;
  color: #111;
}