/* ==========================================================================
   Premium Asma Tavan — Design System
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #F5F3EE;
  --color-bg-alt: #EAE7E0;
  --color-dark: #20211F;
  --color-text: #252521;
  --color-text-muted: #77766F;
  --color-accent: #A77950;
  --color-white: #FFFFFF;
  --color-line: #DAD7D0;

  /* Typography */
  --font-display: "Syne", "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --fs-xs: clamp(0.7rem, 0.68rem + 0.1vw, 0.75rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-lg: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 8vw, 8rem);
  --header-h: 84px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 280ms;
  --hero-duration: 6000ms;

  /* Shadows — intentionally minimal */
  --shadow-soft: 0 1px 0 rgba(32, 33, 31, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(167, 121, 80, 0.06), transparent 55%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: var(--fs-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.section-intro h2 {
  font-size: var(--fs-xl);
  max-width: 14ch;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 36ch;
  font-size: var(--fs-md);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-light:hover {
  background: var(--color-bg);
}

.btn-ghost-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-dark:hover {
  background: #2e2f2c;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(245, 243, 238, 0.96);
  border-bottom-color: var(--color-line);
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 0.35rem;
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform var(--duration) var(--ease);
}

.brand:hover .brand-name::after,
.brand:focus-visible .brand-name::after {
  transform: scaleX(1);
}

.nav-desktop {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.nav-list a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-block: 0.35rem;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-dark);
  border-radius: var(--radius-sm);
  transition: background-color var(--duration) var(--ease);
}

.header-cta:hover {
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-dark);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  padding: 1.25rem var(--gutter) 2rem;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-list a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-line);
}

.nav-mobile-cta {
  display: inline-flex;
  margin-top: 1.5rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 600;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 720px);
  color: var(--color-white);
  isolation: isolate;
}

.hero-slides {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
  pointer-events: none;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  min-height: inherit;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide[data-slide="2"] .hero-media img {
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 33, 31, 0.78) 0%, rgba(32, 33, 31, 0.45) 48%, rgba(32, 33, 31, 0.25) 100%),
    linear-gradient(180deg, rgba(32, 33, 31, 0.35) 0%, transparent 35%, rgba(32, 33, 31, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: 7rem;
  max-width: 720px;
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1,
.hero-title {
  font-size: var(--fs-hero);
  color: var(--color-white);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-bottom: 1.5rem;
}

.hero-progress {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-white);
  transform-origin: left center;
}

.hero.is-playing .hero-progress-bar {
  animation: heroProgress var(--hero-duration) linear forwards;
}

@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.hero-nav-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-counter {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  min-width: 4.5rem;
}

.hero-sep {
  opacity: 0.5;
  margin-inline: 0.25rem;
}

.hero-arrows {
  display: flex;
  gap: 0.35rem;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.hero-arrow:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.hero-dot.is-active {
  background: var(--color-white);
}

/* ==========================================================================
   Services — image + title grid
   ========================================================================== */

.services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-media img {
  transform: scale(1.03);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
}

/* ==========================================================================
   Projects — equal aligned grid
   ========================================================================== */

.projects {
  background: var(--color-bg-alt);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--color-white);
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.04);
}

.project-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(32, 33, 31, 0.82));
  transform: translateY(6px);
  opacity: 0.92;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.project-card:hover .project-meta,
.project-card:focus-visible .project-meta {
  transform: translateY(0);
  opacity: 1;
}

.project-meta h3 {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.project-meta p {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 0;
  background: var(--color-dark);
  color: var(--color-white);
}

.about-shell {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: clamp(520px, 70vh, 680px);
}

.about-media {
  position: relative;
  overflow: hidden;
  background: #161715;
  min-height: 360px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
}

.about .eyebrow {
  color: rgba(167, 121, 80, 0.95);
}

.about h2 {
  color: var(--color-white);
  font-size: var(--fs-xl);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.about-text {
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
  margin-bottom: 2.5rem;
  font-size: var(--fs-md);
}

.about-principles {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-principles li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.principle-index {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--color-accent);
  min-width: 1.75rem;
}

.principle-label {
  font-size: var(--fs-md);
  font-weight: 500;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.contact h2 {
  font-size: var(--fs-xl);
  max-width: 12ch;
  margin-bottom: 1rem;
}

.contact .section-desc {
  margin-bottom: 2.5rem;
}

.contact-details {
  display: grid;
  gap: 1.35rem;
  border-top: 1px solid var(--color-line);
  padding-top: 1.75rem;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.contact-details dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-details dd,
.contact-details a {
  font-size: var(--fs-base);
  font-weight: 500;
}

.contact-details a:hover {
  color: var(--color-accent);
}

.contact-map {
  min-height: 100%;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: 100%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand-footer .brand-name {
  color: var(--color-white);
}

.brand-footer .brand-name::after {
  background: var(--color-accent);
}

.footer-tagline {
  margin-top: 0.55rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  max-width: 28ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-meta {
  text-align: right;
}

.footer-meta a {
  display: block;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}

.copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 31, 0.88);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-figure {
  background: #111;
  overflow: hidden;
}

.lightbox-figure img {
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: #111;
}

.lightbox-figure figcaption {
  padding: 1rem 1.15rem 1.15rem;
  background: var(--color-dark);
  color: var(--color-white);
}

.lightbox-figure h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.lightbox-figure p {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.lightbox-open {
  overflow: hidden;
}

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero.is-playing .hero-progress-bar {
    animation: none;
    width: 100%;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .section-intro-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-intro h2 {
    max-width: 18ch;
  }

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

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

  .about-shell {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 380px;
  }

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

  .map-frame {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .nav-desktop,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: clamp(520px, 85vh, 640px);
  }

  .hero-content {
    padding-top: 4.5rem;
    padding-bottom: 8rem;
    max-width: none;
    margin-left: auto;
  }

  .hero h1,
  .hero-title {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-nav-row {
    flex-wrap: wrap;
  }

  .hero-dots {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

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

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

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .map-frame {
    min-height: 300px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }

  .lightbox-dialog {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lightbox-nav {
    position: static;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    background: rgba(32, 33, 31, 0.65);
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .hero-actions .btn {
    font-size: 0.85rem;
  }

  .about-content {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 320px) {
  :root {
    --gutter: 1rem;
  }

  .hero h1,
  .hero-title {
    font-size: 1.85rem;
  }
}
