:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #f4ede5;
  --text: #101114;
  --muted: #6c665f;
  --line: rgba(201, 178, 156, 0.24);
  --sand: #c9b29c;
  --sand-soft: #ebe0d4;
  --accent-text: #8a6f58;
  --dark: #090d17;
  --bg-top: #fffdfa;
  --nav-surface: rgba(255, 251, 247, 0.84);
  --button-surface: rgba(255, 251, 247, 0.96);
  --panel-surface: rgba(255, 252, 247, 0.78);
  --panel-strong: #2c2723;
  --card-surface: rgba(255, 251, 247, 0.9);
  --card-surface-strong: rgba(255, 251, 247, 0.86);
  --service-surface: linear-gradient(180deg, rgba(255, 253, 250, 0.96) 0%, rgba(247, 241, 234, 0.86) 100%);
  --process-surface: rgba(255, 252, 248, 0.62);
  --input-surface: rgba(255, 255, 255, 0.94);
  --shadow-soft: 0 16px 36px rgba(110, 88, 65, 0.1);
  --shadow-strong: 0 24px 48px rgba(110, 88, 65, 0.14);
  --theme-color: #f7f3ee;
}

html[data-theme="dark"] {
  --bg: #0b1018;
  --surface: #121926;
  --surface-2: #171f2e;
  --text: #eef3fb;
  --muted: #a3aebe;
  --line: rgba(214, 188, 159, 0.18);
  --sand: #d4b79b;
  --sand-soft: #f1dfcf;
  --accent-text: #f1dfcf;
  --dark: #080d15;
  --bg-top: #0e1420;
  --nav-surface: rgba(18, 25, 38, 0.9);
  --button-surface: rgba(18, 25, 38, 0.94);
  --panel-surface: rgba(18, 25, 38, 0.84);
  --panel-strong: #0f1217;
  --card-surface: rgba(18, 25, 38, 0.9);
  --card-surface-strong: rgba(18, 25, 38, 0.86);
  --service-surface: linear-gradient(180deg, rgba(21, 29, 43, 0.98) 0%, rgba(14, 20, 31, 0.92) 100%);
  --process-surface: rgba(18, 25, 38, 0.76);
  --input-surface: rgba(14, 20, 31, 0.92);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-strong: 0 24px 42px rgba(0, 0, 0, 0.28);
  --theme-color: #0b1018;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html[data-page="home"] {
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Jost", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 183, 155, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(87, 108, 141, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

html[data-page="home"] body {
  overflow-y: auto;
}

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

.page-shell {
  width: min(1240px, calc(100% - 64px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 0 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 220px;
  height: 120px;
  overflow: hidden;
  margin-left: 52px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: translateX(-6px) scale(1.06);
  transform-origin: left center;
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
  transform: translateX(-6px) scale(1.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 11px 14px;
  line-height: 1;
}

.site-nav .nav-cta {
  border: 1px solid rgba(212, 183, 155, 0.54);
  border-radius: 8px;
  color: var(--accent-text);
  background: rgba(212, 183, 155, 0.08);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(212, 183, 155, 0.24);
  border-radius: 999px;
  background: var(--nav-surface);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(212, 183, 155, 0.24);
  border-radius: 999px;
  background: var(--nav-surface);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--sand);
  color: var(--panel-strong);
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

#home {
  min-height: auto;
  display: block;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 0;
}

.hero-copy {
  max-width: 470px;
  margin-left: 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.05rem, 3vw, 3.25rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.accent-line {
  width: 68px;
  height: 4px;
  margin: 16px 0 16px;
  border-radius: 999px;
  background: var(--sand);
}

.hero p {
  margin: 0 0 8px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 134px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 183, 155, 0.28);
  border-radius: 8px;
  background: var(--button-surface);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.button-dark {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--panel-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.button-light {
  background: rgba(255, 251, 247, 0.92);
}

.button-accent {
  border-color: rgba(212, 183, 155, 0.54);
  color: var(--accent-text);
  background: rgba(212, 183, 155, 0.1);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 420px;
  max-width: 680px;
  justify-self: end;
  align-self: start;
  margin-top: 6px;
  margin-left: -42px;
}

.hero-waves {
  position: absolute;
  inset: -10% -2% auto auto;
  width: 64%;
  height: 56%;
  background:
    repeating-radial-gradient(
      circle at 100% 0%,
      transparent 0 10px,
      rgba(201, 178, 156, 0.18) 10px 12px
    );
  opacity: 0.72;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
}

.brand-board {
  position: relative;
  width: min(100%, 620px);
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.brand-board img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.page-shell--page {
  min-height: 100dvh;
  padding-bottom: 42px;
}

.page-main {
  display: block;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
  margin-top: 26px;
}

.page-copy {
  max-width: 620px;
  margin-left: 88px;
}

.page-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.page-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.page-panel {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-card {
  position: relative;
  width: min(100%, 560px);
  padding: 34px;
  background: var(--panel-surface);
  border: 1px solid rgba(212, 183, 155, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.panel-card h2,
.panel-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.panel-card p,
.panel-card li {
  color: var(--muted);
  line-height: 1.68;
}

.panel-card ul {
  margin: 0;
  padding-left: 18px;
}

.stack-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 100% 0%,
      transparent 0 14px,
      rgba(201, 178, 156, 0.12) 14px 16px
    );
  opacity: 0.7;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.section-block {
  margin-top: 78px;
}

.home-section {
  position: relative;
}

.home-section--metrics {
  margin-top: 56px;
}

.section-heading {
  margin: 0 0 22px 88px;
  max-width: 720px;
}

.section-heading--compact {
  margin-left: 0;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-grid,
.contact-grid,
.portfolio-grid {
  display: grid;
  gap: 24px;
  margin-left: 88px;
  margin-right: 0;
}

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

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

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: start;
}

.contact-card--wide {
  max-width: 760px;
  margin-left: 88px;
}

.info-card,
.portfolio-card,
.contact-card {
  padding: 28px;
  background: var(--card-surface);
  border: 1px solid rgba(212, 183, 155, 0.16);
  box-shadow: var(--shadow-soft);
}

.portfolio-card {
  display: block;
}

.info-card h3,
.portfolio-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.info-card p,
.portfolio-card p,
.contact-card p,
.contact-list li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-meta {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 10px;
  background: rgba(212, 183, 155, 0.12);
  color: var(--accent-text);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-card.is-placeholder {
  border-style: dashed;
}

.project-card {
  padding: 0;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 183, 155, 0.3);
  box-shadow: var(--shadow-strong);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 31, 46, 0.88), rgba(212, 183, 155, 0.14)),
    center / cover no-repeat url("../assets/leit-brand-board.jpg");
  border-bottom: 1px solid rgba(212, 183, 155, 0.14);
  position: relative;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 21, 0.08) 0%, rgba(8, 13, 21, 0.34) 100%);
  transition: opacity 300ms ease;
}

.project-card:hover .project-thumb::after {
  opacity: 0.72;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 300ms ease;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-copy {
  padding: 22px 22px 20px;
}

.project-copy .portfolio-meta {
  margin-top: 0;
  margin-bottom: 14px;
}

.project-copy h3 {
  margin-bottom: 10px;
}

.project-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-thumb--erve {
  background-image:
    linear-gradient(135deg, rgba(238, 245, 235, 0.48), rgba(122, 150, 115, 0.24)),
    url("https://source.unsplash.com/1200x900/?mountains,village,nature");
  background-position: center;
}

.project-thumb--rebar {
  background-image:
    linear-gradient(135deg, rgba(250, 239, 235, 0.42), rgba(183, 131, 110, 0.24)),
    url("https://source.unsplash.com/1200x900/?hair,salon");
  background-position: center;
}

.project-thumb--rajas {
  background-image:
    linear-gradient(135deg, rgba(248, 237, 223, 0.42), rgba(166, 114, 67, 0.24)),
    url("https://source.unsplash.com/1200x900/?restaurant,dining");
  background-position: center;
}

.project-thumb--wild {
  background-image:
    linear-gradient(135deg, rgba(248, 236, 241, 0.42), rgba(177, 122, 151, 0.24)),
    url("https://source.unsplash.com/1200x900/?beauty,nails,spa");
  background-position: center;
}

.project-thumb--igm {
  background-image:
    linear-gradient(135deg, rgba(233, 239, 246, 0.42), rgba(100, 126, 156, 0.24)),
    url("https://source.unsplash.com/1200x900/?electrician,tools");
  background-position: center;
}

.project-thumb--remo {
  background-image:
    linear-gradient(135deg, rgba(236, 241, 246, 0.42), rgba(95, 136, 154, 0.24)),
    url("https://source.unsplash.com/1200x900/?plumber,heating");
  background-position: center;
}

.project-thumb--kitiama {
  background-image:
    linear-gradient(135deg, rgba(244, 239, 229, 0.42), rgba(159, 134, 92, 0.24)),
    url("https://source.unsplash.com/1200x900/?craft,hobby");
  background-position: center;
}

.project-thumb--angelini {
  background-image:
    linear-gradient(135deg, rgba(241, 243, 240, 0.42), rgba(122, 133, 124, 0.22)),
    url("https://source.unsplash.com/1200x900/?glasses,optician");
  background-position: center;
}

.about-visual-group {
  margin-left: 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-visual-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--card-surface-strong);
  border: 1px solid rgba(212, 183, 155, 0.16);
  z-index: 1;
}

.about-visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metrics-grid,
.services-showcase,
.process-grid,
.faq-layout {
  margin-left: 88px;
  margin-right: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.metric-card {
  padding: 24px 24px 22px;
  background: var(--panel-surface);
  border: 1px solid rgba(212, 183, 155, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 183, 155, 0.28);
  box-shadow: var(--shadow-soft);
}

.metric-value {
  display: inline-flex;
  margin-bottom: 18px;
  color: #b49a83;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card h2,
.service-panel h3,
.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.metric-card p,
.service-panel p,
.process-step p,
.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.services-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.service-panel {
  padding: 28px;
  background: var(--service-surface);
  border: 1px solid rgba(212, 183, 155, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.service-tag {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.process-step {
  padding: 24px 22px;
  border-top: 1px solid rgba(212, 183, 155, 0.24);
  background: var(--process-surface);
}

.process-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: #b49a83;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card-surface-strong);
  border: 1px solid rgba(212, 183, 155, 0.16);
}

.faq-trigger {
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.faq-plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--sand);
  transform: translateY(-50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-plus::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item.is-open .faq-plus::after {
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq-item.is-open .faq-answer {
  max-height: 180px;
}

.faq-answer p {
  padding: 0 22px 22px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(212, 183, 155, 0.22);
  background: var(--button-surface);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--sand);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(212, 183, 155, 0.18);
  background: var(--input-surface);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--dark);
  color: #f4f7ff;
  overflow: hidden;
}

.service-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 22px;
  min-height: 84px;
}

.service-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.service-card + .service-card {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.service-icon {
  position: relative;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--sand-soft);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
}

.chart::before {
  left: 2px;
  bottom: 3px;
  width: 18px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.chart::after {
  left: 6px;
  bottom: 5px;
  width: 3px;
  height: 7px;
  background: currentColor;
  box-shadow: 7px -4px 0 0 currentColor, 14px -10px 0 0 currentColor;
}

.support::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.support::after {
  right: -1px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-40deg);
}

.monitor::before {
  inset: 5px 2px 8px;
  border: 2px solid currentColor;
}

.monitor::after {
  left: 9px;
  right: 9px;
  bottom: 3px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px 0 0 currentColor;
}

.pencil::before {
  left: 10px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.pencil::after {
  right: 3px;
  top: 3px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.globe::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.globe::after {
  inset: 2px 8px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.service-card h2 {
  grid-column: 2;
  margin: 0 0 4px;
  max-width: 15ch;
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.service-card p {
  grid-column: 2;
  margin: 0;
  max-width: 32ch;
  color: rgba(244, 247, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.38;
}

@media (max-width: 1100px) {
  html,
  body {
    overflow: auto;
  }

  html[data-page="home"],
  html[data-page="home"] body {
    overflow-y: auto;
  }

  .page-shell {
    width: min(100% - 40px, 1240px);
    height: auto;
    min-height: 100dvh;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand {
    margin-left: 0;
  }

  .hero-copy {
    max-width: 100%;
    margin-left: 0;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-visual {
    max-width: none;
    min-height: 320px;
    justify-self: stretch;
    margin-top: 12px;
    margin-left: 0;
  }

  .header-tools {
    flex-direction: column;
    align-items: flex-end;
  }

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

  .page-copy,
  .section-heading,
  .story-grid,
  .portfolio-grid,
  .contact-grid,
  .contact-card--wide,
  .about-visual-grid,
  .about-visual-group,
  .metrics-grid,
  .services-showcase,
  .process-grid,
  .faq-layout {
    margin-left: 0;
  }

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

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

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-visual-grid,
  .about-visual-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow: auto;
  }

  .page-shell {
    width: min(100% - 24px, 1240px);
    height: auto;
    min-height: 100dvh;
    padding-top: 14px;
    padding-bottom: 20px;
    gap: 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .header-tools {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    width: 122px;
    height: 60px;
    margin-left: 0;
  }

  .brand-logo {
    width: 100%;
    height: 100%;
    transform: translateX(-3px) scale(1.03);
  }

  .site-nav {
    order: 1;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 6px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .site-nav a {
    min-height: 28px;
    padding: 5px 9px;
    justify-content: center;
    text-align: center;
    border: 0;
    background: transparent;
  }

  .theme-toggle {
    order: 2;
    width: 28px;
    height: 28px;
  }

  .site-nav .nav-cta {
    display: none;
  }

  .lang-switch {
    order: 2;
    width: auto;
    gap: 4px;
    justify-content: center;
    overflow: visible;
    padding: 2px;
  }

  .hero-copy {
    max-width: none;
    margin-left: 0;
  }

  .lang-btn {
    text-align: center;
    min-width: 38px;
    font-size: 0.48rem;
    letter-spacing: 0.06em;
    padding: 4px 8px;
  }

  .hero {
    gap: 18px;
  }

  #home .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #home .hero-copy {
    display: block;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 0.98;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .hero p {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .button {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 11px 12px;
    font-size: 0.64rem;
  }

  .metrics-grid,
  .services-showcase,
  .story-grid,
  .portfolio-grid,
  .contact-grid,
  .contact-card--wide,
  .about-visual-grid,
  .about-visual-group,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .service-panel,
  .process-step,
  .info-card,
  .portfolio-card,
  .contact-card {
    padding: 22px;
  }

  .faq-trigger {
    padding: 18px;
    font-size: 0.96rem;
  }

  .faq-answer p {
    padding: 0 18px 18px;
  }

  .hero-visual {
    min-height: 240px;
    max-width: 100%;
    margin-top: 8px;
    margin-left: 0;
  }

  .hero-waves {
    width: 68%;
    height: 48%;
    inset: -2% -6% auto auto;
  }

  .brand-board {
    width: min(100%, 88%);
    border-radius: 0;
    margin: 0 auto;
  }

  .page-intro {
    gap: 22px;
    margin-top: 10px;
  }

  .page-copy,
  .section-heading,
  .story-grid,
  .portfolio-grid,
  .contact-card--wide,
  .about-visual-group,
  .metrics-grid,
  .services-showcase,
  .process-grid,
  .faq-layout {
    margin-left: 0;
    margin-right: 0;
    padding-inline: 10px;
  }

  .page-copy h1,
  .section-heading h2 {
    font-size: 1.8rem;
  }

  .page-copy p,
  .section-heading p,
  .info-card p,
  .portfolio-card p,
  .contact-card p {
    font-size: 0.9rem;
  }

  .page-panel {
    min-height: 0;
    display: none;
  }

  .panel-card,
  .info-card,
  .portfolio-card,
  .contact-card {
    padding: 22px;
  }

  .project-thumb {
    aspect-ratio: 16 / 11;
  }

  .project-copy {
    padding: 18px 18px 16px;
  }

  .story-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    margin-top: 54px;
  }

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

  .service-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .service-card + .service-card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .about-visual-card {
    min-height: 220px;
  }

  .contact-card--wide {
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .brand {
    width: 112px;
    height: 56px;
  }

  .brand-logo {
    transform: translateX(-2px) scale(1.02);
  }

  .page-copy,
  .section-heading,
  .story-grid,
  .portfolio-grid,
  .contact-card--wide,
  .about-visual-group,
  .metrics-grid,
  .services-showcase,
  .process-grid,
  .faq-layout {
    padding-inline: 8px;
  }

  .brand {
    width: 88px;
    height: 44px;
  }

  .brand-logo {
    transform: translateX(-2px) scale(1.01);
  }

  .site-nav {
    gap: 4px;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .site-nav a {
    min-height: 26px;
    padding: 4px 7px;
  }

  .theme-toggle {
    width: 26px;
    height: 26px;
  }

  .lang-btn {
    min-width: 34px;
    font-size: 0.46rem;
    padding: 4px 7px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9.4vw, 2.28rem);
  }

  .hero p {
    font-size: 0.9rem;
  }

  .button {
    padding: 10px 11px;
  }

  .lang-btn {
    font-size: 0.54rem;
    padding: 6px 6px;
  }

  .page-copy h1,
  .section-heading h2 {
    font-size: 1.56rem;
  }

  .page-copy p,
  .section-heading p,
  .info-card p,
  .portfolio-card p,
  .contact-card p,
  .contact-list li {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .metric-card,
  .service-panel,
  .process-step,
  .info-card,
  .portfolio-card,
  .contact-card {
    padding: 18px;
  }

  .faq-trigger {
    padding: 16px;
    font-size: 0.9rem;
  }

  .faq-answer p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  .hero-visual {
    min-height: 215px;
  }

  .about-visual-card {
    min-height: 180px;
  }

  .project-thumb {
    aspect-ratio: 16 / 12;
  }
}

html[dir="rtl"] body {
  direction: rtl;
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero,
html[dir="rtl"] .page-intro,
html[dir="rtl"] .contact-grid {
  direction: rtl;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .page-copy,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .story-grid,
html[dir="rtl"] .portfolio-grid,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .metrics-grid,
html[dir="rtl"] .services-showcase,
html[dir="rtl"] .process-grid,
html[dir="rtl"] .faq-layout {
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .site-nav,
html[dir="rtl"] .header-tools {
  justify-content: flex-start;
}

html[dir="rtl"] .faq-trigger {
  text-align: right;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .lang-btn,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .portfolio-meta,
html[dir="rtl"] .service-tag,
html[dir="rtl"] .process-index {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .site-nav a,
html[dir="rtl"] .lang-btn,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
