:root {
  --ink: #16222d;
  --muted: #61717f;
  --soft: #f5f7f7;
  --line: #dfe5e8;
  --blue: #12457f;
  --teal: #1d7774;
  --gold: #c89b45;
  --dark: #111a22;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo img {
  width: 188px;
  max-height: 72px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #394854;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button.light {
  background: #fff;
  color: var(--ink);
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero {
  min-height: 560px;
}

.page-hero {
  min-height: 390px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 24, 0.86), rgba(10, 18, 24, 0.42)),
    var(--hero-image, url("/projects/Chahl068-copy-1024x682.jpg")) center/cover;
}

.hero .wrap,
.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding: 86px 0 64px;
}

.page-hero .wrap {
  padding: 82px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 790px;
  font-size: clamp(2.35rem, 5vw, 4.85rem);
}

.page-hero h1 {
  font-size: clamp(2.15rem, 4vw, 4rem);
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

section {
  padding: 72px 0;
}

.intro,
.white {
  background: #fff;
}

.soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.split-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.split h2,
.section-head h2,
.cta h2 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 500px;
  color: var(--muted);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service {
  min-height: 170px;
  padding: 22px;
  background: var(--soft);
}

.service h3,
.tile h3,
.project h3,
.contact-panel h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.service p,
.tile p,
.project p,
.contact-panel p {
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tile figure {
  height: 180px;
  margin: 0;
  background: #dce2e5;
}

.tile-copy {
  padding: 20px;
}

.media-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.media-band figure {
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce2e5;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  padding-left: 22px;
  background: linear-gradient(var(--teal), var(--teal)) 0 0.68em / 8px 8px no-repeat;
}

.projects {
  background: var(--soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #34424d;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.filter[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.project[hidden] {
  display: none;
}

.project a {
  display: grid;
  height: 100%;
}

.project figure {
  height: 245px;
  margin: 0;
  background: #dce2e5;
}

.project-body {
  padding: 20px;
}

.meta {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project h3 {
  margin-top: 10px;
  font-size: 1.2rem;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.tag-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #34424d;
  background: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.project-copy,
.prose {
  display: grid;
  gap: 18px;
  max-width: 760px;
  color: var(--muted);
}

.project-copy p,
.prose p {
  font-size: 1.02rem;
}

.detail-panel,
.empty-state,
.blog-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-panel h2,
.blog-card h2,
.empty-state h2 {
  font-size: 1.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-grid figure {
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce2e5;
}

.gallery-grid .gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 500px;
}

.blog-list {
  display: grid;
  gap: 18px;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(18, 69, 127, 0.08);
  color: var(--blue);
  font-size: 0.88em;
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
}

blockquote {
  margin: 0;
  padding: 28px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

blockquote p {
  color: #26313a;
  font-size: clamp(1.08rem, 1.6vw, 1.36rem);
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.testimonial-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-grid.wide-form {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.contact-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-address {
  margin: 14px 0 24px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.contact-address strong {
  color: var(--ink);
}

.contact-address a {
  color: var(--teal);
  font-weight: 800;
}

.form-shell {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.zoho-form-shell {
  min-height: 620px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.zoho-form-shell iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}

.field {
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--soft);
  font: inherit;
}

.field.tall {
  min-height: 118px;
}

.cta {
  background: var(--dark);
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta p {
  max-width: 680px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
}

footer {
  padding: 34px 0;
  color: #6e7a83;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 16, 0.78);
}

.modal.open {
  display: flex;
}

.modal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.modal-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 420px;
  background: #101820;
}

.modal-main {
  min-height: 0;
}

.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  background: #101820;
}

.thumb {
  width: 92px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.thumb[aria-current="true"] {
  border-color: var(--gold);
}

.modal-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 3px;
  }

  .split,
  .split.reverse,
  .quote-grid,
  .cta-grid,
  .modal-panel,
  .media-band,
  .contact-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .project-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .gallery-feature {
    grid-column: span 2;
    min-height: 360px;
  }

  .section-head,
  .footer-grid {
    display: grid;
  }
}

@media (max-width: 620px) {
  .logo img {
    width: 164px;
    max-height: 64px;
  }

  .nav {
    min-height: 68px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero {
    min-height: 500px;
  }

  .page-hero {
    min-height: 340px;
  }

  section {
    padding: 54px 0;
  }

  .services,
  .project-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-feature {
    grid-column: span 1;
    min-height: 280px;
  }

  .project figure,
  .tile figure {
    height: 235px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
