/* ===========================
   RIWAQ Architects — Styles
   =========================== */

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

:root {
  --black: #0a0a0a;
  --white: #f8f6f2;
  --grey-100: #f0ede8;
  --grey-200: #d6d2cb;
  --grey-400: #9a9590;
  --grey-700: #3a3732;
  --accent: #c8a96e;
  --accent-dark: #a8894e;
  --section-pad: 100px;
  --container: 1280px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
.h2 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 200;
  line-height: 1.15;
  color: inherit;
}
.h2 em { font-style: italic; color: var(--accent); }
.section--dark .h2 { color: var(--white); }

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.label--light { color: var(--accent); }

p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey-700);
}
.section--dark p { color: var(--grey-200); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Placeholders ---- */
.placeholder {
  background: var(--grey-200);
  position: relative;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  text-align: center;
  padding: 1rem;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, var(--grey-400) 48%, var(--grey-400) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--grey-400) 48%, var(--grey-400) 52%, transparent 52%);
  background-size: 30px 30px;
  opacity: 0.08;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--accent);
  color: var(--black);
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--text {
  background: none;
  padding: 0;
  color: var(--black);
  border-bottom: 1px solid currentColor;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.btn--text:hover { color: var(--accent); }
.btn--sm { padding: 10px 24px; font-size: 0.75rem; }
.btn--full { width: 100%; text-align: center; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Sections ---- */
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--black); padding: var(--section-pad) 0; }
.section--alt { background: var(--grey-100); padding: var(--section-pad) 0; }

.section__header {
  text-align: center;
  margin-bottom: 60px;
}
.section__header .h2 { margin-top: 0; }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  overflow: visible;
  background: transparent;
  transition: background 0.5s ease;
}
.nav.scrolled {
  background: var(--black);
}
.nav.scrolled .nav__links a { color: var(--white); }
.nav.scrolled .nav__burger span { background: var(--white); }

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 75px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav__links {
  display: flex;
  gap: 48px;
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav__links a:hover::after { right: 0; }
.nav__links a:hover { color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

/* Mobile nav open */
.nav.open .nav__links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--black);
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.nav.open .nav__links a {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}
.nav.open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--white); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--white); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}
.hero__slide.active {
  transform: translateX(0);
}
.hero__slide.exiting {
  transform: translateX(-100%);
}
.hero__img {
  width: 100%;
  height: 100%;
  background-color: var(--grey-700);
  object-fit: cover;
  display: block;
}
.hero__img.placeholder::after {
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
}
.hero__img.placeholder::before { opacity: 0.03; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.75) 100%);
}
/* Semi-transparent frosted panel on the left behind the content block */
.hero__overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(to right, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.2) 75%, rgba(10,10,10,0) 100%);
}
/* ── Hero Content (vertically centered, left) ── */
.hero__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 64px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 460px;
}
.hero__headline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}
.hero__sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.hero__cta {
  display: inline-block;
  padding: 12px 28px;
  background: #7a6030;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 6px;
}
.hero__cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── Hero Caption (bottom-right) ── */
.hero__caption {
  position: absolute;
  z-index: 2;
  bottom: 52px;
  right: 64px;
  max-width: 320px;
  text-align: left;
}
.hero__caption-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
  line-height: 1.5;
}
.hero__caption-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.hero__title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 40px;
}
.hero__nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.hero__dot {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero__dot.active { width: 48px; background: var(--accent); }

.hero__scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { height: 0; opacity: 1; }
  100% { height: 60px; opacity: 0; }
}

/* ===========================
   INTRO
   =========================== */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro__right p + p { margin-top: 1rem; }
.intro__right .btn { margin-top: 2rem; }

/* ===========================
   SERVICES
   =========================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  background: transparent;
  border: none;
}
.service-card {
  padding: 0;
  background: transparent;
  border: none;
  cursor: default;
}
.service-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--grey-200);
}

/* ===========================
   CLIENTS
   =========================== */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.client-logo {
  aspect-ratio: 3/2;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.client-logo:hover { opacity: 0.85; }
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.client-logo:hover img { opacity: 0.85; }

/* ===========================
   PROJECTS
   =========================== */
.projects__filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--grey-200);
  color: var(--grey-400);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn.active,
.filter-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 16px;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-card__img { transform: scale(1.07); }

.project-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.project-card__cat {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.project-card__info h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}
.project-card__loc { font-size: 0.7rem; color: var(--grey-200); margin-top: 2px; }

/* Meta panel — slides up on hover */
.project-card__meta {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.35s var(--ease), margin-top 0.4s var(--ease);
  margin-top: 0;
}
.project-card:hover .project-card__meta {
  max-height: 140px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(200,169,110,0.35);
}
.project-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.project-card__meta div span:first-child {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
}
.project-card__meta div span:last-child {
  font-size: 0.65rem;
  color: var(--white);
  text-align: right;
}

.projects__cta { text-align: center; margin-top: 60px; }
.projects__cta .btn--primary { color: var(--black); }

/* ===========================
   STATS
   =========================== */
.stats { padding: 80px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  text-align: center;
}
.stat { padding: 20px; }
.stat__num {
  display: block;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}
.stat__num::after { content: '+'; font-size: 0.6em; vertical-align: super; color: var(--accent); }
.stat__num--static::after { content: ''; }
.stat__label {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
}

/* ===========================
   ABOUT
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__visual { position: relative; }
.about__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--accent);
  color: var(--black);
  padding: 28px 32px;
  text-align: center;
}
.about__badge-num {
  display: block;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}
.about__badge span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.about__content .h2 { margin: 1rem 0 1.5rem; }
.about__content p + p { margin-top: 1rem; }

.about__values { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 20px; }
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}
.value strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.value p { font-size: 0.85rem; }

/* ===========================
   FOUNDERS / TEAM SECTION
   =========================== */
.founders {
  background: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.founders .container {
  width: 100%;
}
.founders__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.founders__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.founders__title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 8px 0;
}
.founders__desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--grey-200);
  line-height: 1.8;
  max-width: 420px;
}
.founders__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.founder-photo {
  position: relative;
  overflow: hidden;
  background: #1a1a18;
  aspect-ratio: 3/4;
}
.founder-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.founder-photo:hover .founder-photo__img { transform: scale(1.04); }
.founder-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo--empty::after {
  content: 'Photo Coming Soon';
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.founder-photo__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 100%);
}
.founder-photo__name {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}
.founder-photo__role {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===========================
   CONTACT
   =========================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__info .h2 { margin: 1rem 0 2.5rem; }
.contact__details { display: flex; flex-direction: column; gap: 28px; }
.contact__item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact__item a { color: var(--grey-200); transition: color 0.2s; }
.contact__item a:hover { color: var(--accent); }
.contact__social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.contact__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-200);
  transition: all 0.3s;
}
.contact__social a svg { width: 16px; height: 16px; }
.contact__social a:hover { border-color: var(--accent); color: var(--accent); }

/* Form */
.contact__form-wrap { background: #141414; padding: 48px; }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 14px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-400); }
.form-group select option { background: var(--black); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #060606;
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__logo {
  display: block;
}
.footer__logo-img {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 0;
}
.footer__brand {
  text-align: center;
}
.footer__brand p {
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-top: 0;
  margin-bottom: 24px;
  max-width: 240px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}
.footer__brand .btn--outline { border-color: rgba(255,255,255,0.2); color: var(--grey-200); }
.footer__brand .btn--outline:hover { border-color: var(--white); background: var(--white); color: var(--black); }

.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 0.85rem;
  color: var(--grey-400);
  transition: color 0.2s;
}
.footer__col ul a:hover { color: var(--accent); }
.footer__col > p { font-size: 0.85rem; color: var(--grey-400); margin-bottom: 16px; line-height: 1.6; }

.footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__newsletter input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 12px 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.footer__newsletter input:focus { border-color: var(--accent); }
.footer__newsletter input::placeholder { color: var(--grey-400); }

.footer__bottom {
  text-align: center;
  padding: 24px 0;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: var(--grey-400);
}

/* ===========================
   ANIMATIONS / REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   PROJECT MODAL
   =========================== */
.project-card__img--clickable {
  cursor: zoom-in;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.project-modal.open {
  opacity: 1;
  pointer-events: all;
}
.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}
.project-modal__box {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(200,169,110,0.25);
  width: min(1100px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 4px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
}
.project-modal.open .project-modal__box {
  transform: translateY(0) scale(1);
}
.project-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.project-modal__close:hover { color: var(--white); }

.project-modal__gallery {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.project-modal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-modal__img.active { opacity: 1; }

.modal-img-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 10;
}
.modal-img-btn {
  pointer-events: all;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-img-btn:hover { background: rgba(200,169,110,0.7); }
.modal-img-counter {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.45);
  padding: 4px 10px;
  border-radius: 20px;
}

.project-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
}
.project-modal__info .project-card__cat { display: block; margin-bottom: 4px; }
.project-modal__info h3 {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}
.project-modal__info .project-card__loc { margin: 0; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --section-pad: 70px; }
  .nav { padding: 0 28px; }
  .nav__logo-img { height: 60px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; z-index: 101; }
  .intro__grid,
  .about__grid,
  .contact__grid,
  .founders__inner { grid-template-columns: 1fr; gap: 48px; }
  .founders { min-height: 0; padding: var(--section-pad) 0; }
  .founders__desc { max-width: none; }
  .about__badge { right: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .project-card--wide { grid-column: span 2; }
  .hero__content { left: 40px; right: 40px; max-width: none; padding: 0; }
  .hero__caption { right: 40px; bottom: 40px; max-width: 240px; }
}

/* Landscape phones / small tablets */
@media (max-width: 600px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 20px; }
  .nav { padding: 0 18px; }
  .nav__logo-img { height: 52px; }
  .section__header { margin-bottom: 40px; }
  .hero { min-height: 520px; }
  .hero__content { left: 24px; right: 24px; gap: 12px; }
  .hero__caption { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 28px 20px; }
  .projects__filter { justify-content: flex-start; }
  .filter-btn { padding: 7px 14px; font-size: 0.68rem; }
}

/* Small phones */
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
  .nav__logo-img { height: 46px; }
  .filter-btn { padding: 6px 12px; font-size: 0.64rem; }
}
