/* Quattro — site stylesheet */

:root {
  --ink: #101a2b;
  --ink-soft: #1b2941;
  --text: #2a3140;
  --muted: #6c7381;
  --paper: #ffffff;
  --mist: #f6f4ef;
  --line: #e4e0d7;
  --line-dark: rgba(255, 255, 255, 0.14);
  --gold: #b0905c;
  --gold-deep: #8a6d3f;
  --gold-soft: #d6bf94;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Cormorant Garamond", "Amiri", "Times New Roman", serif;
  --lead: 1.5;
}

html[lang="en"] {
  --lead: 1.14;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.7;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: var(--lead);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.q-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.q-skip {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}

.q-skip:focus {
  top: 12px;
}

.q-wrap {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

/* ---------- shared pieces ---------- */

.q-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.q-kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.q-overline {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

html[lang="en"] .q-kicker,
html[lang="en"] .q-overline,
html[lang="en"] .q-footer__heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.q-title {
  font-size: clamp(32px, 4vw, 56px);
}

.q-note {
  max-width: 62ch;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 18px;
}

.q-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.q-arrow::after {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline-end: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-inline-end: 1px solid currentColor;
  transform: rotate(45deg);
}

[dir="rtl"] .q-arrow::after {
  transform: rotate(-45deg);
}

.q-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.q-btn:hover {
  background: transparent;
  color: var(--ink);
}

.q-btn--ghost {
  background: transparent;
  color: var(--ink);
}

.q-btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.q-btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.q-btn--light:hover {
  background: transparent;
  color: #fff;
}

.q-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.q-link:hover {
  gap: 18px;
  color: var(--gold-deep);
}

.q-section {
  padding-block: clamp(56px, 8vw, 116px);
}

.q-section--mist {
  background: var(--mist);
}

.q-section--flush {
  padding-top: clamp(20px, 3vw, 40px);
}

.q-sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

/* ---------- top strip and header ---------- */

.q-top {
  background: var(--ink);
  color: #cfd5df;
  font-size: 13.5px;
}

.q-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.q-top__line {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
}

.q-top__tools {
  display: flex;
  align-items: center;
  gap: 24px;
}

.q-top a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.q-top a:hover {
  color: #fff;
}

.q-top__contact {
  color: var(--gold-soft);
}

.q-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.q-header.is-stuck {
  box-shadow: 0 10px 30px rgba(16, 26, 43, 0.06);
}

.q-header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 86px;
}

.q-header__brand img {
  width: auto;
  height: 54px;
}

.q-nav--start {
  justify-self: start;
}

.q-nav--end {
  justify-self: end;
}

.q-nav__list {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
}

.q-nav__item {
  position: relative;
}

.q-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.q-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 26px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.q-nav__item:hover > .q-nav__link::after,
.q-nav__item.is-current > .q-nav__link::after {
  transform: scaleX(1);
}

.q-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.q-sub {
  position: absolute;
  top: 100%;
  inset-inline-start: -22px;
  z-index: 5;
  min-width: 230px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: #fff;
  box-shadow: 0 22px 44px rgba(16, 26, 43, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.q-nav__item:hover > .q-sub,
.q-nav__item:focus-within > .q-sub,
.q-nav__item.is-open > .q-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.q-sub a {
  display: block;
  padding: 10px 22px;
  color: var(--text);
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.q-sub a:hover,
.q-sub a[aria-current] {
  background: var(--mist);
  color: var(--ink);
}

.q-header__lang,
.q-burger {
  display: none;
}

.q-burger {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.q-burger span {
  position: absolute;
  inset-inline: 9px;
  height: 1.5px;
  background: var(--ink);
}

.q-burger span:first-child {
  top: 17px;
}

.q-burger span:last-child {
  top: 26px;
}

.q-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) 32px;
  overflow-y: auto;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.q-menu-open {
  overflow: hidden;
}

.q-menu-open .q-drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.q-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line-dark);
}

.q-drawer__bar img {
  width: auto;
  height: 42px;
}

.q-drawer__close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.q-drawer__close span {
  position: absolute;
  top: 50%;
  inset-inline: 9px;
  height: 1.5px;
  background: #fff;
}

.q-drawer__close span:first-child {
  transform: rotate(45deg);
}

.q-drawer__close span:last-child {
  transform: rotate(-45deg);
}

.q-drawer__nav {
  flex: 1;
  padding-block: 8px;
}

.q-drawer__nav > ul > li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.q-drawer__num {
  padding-top: 9px;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 16px;
}

.q-drawer__link {
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.4;
  text-decoration: none;
}

.q-drawer__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 6px;
}

.q-drawer__sub a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  text-decoration: none;
}

.q-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.q-drawer__lang {
  color: #fff;
}

/* ---------- home: hero ---------- */

.q-hero {
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 78%);
}

.q-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
}

.q-hero__title {
  font-size: clamp(40px, 4.5vw, 64px);
}

html[lang="en"] .q-hero__title {
  font-size: clamp(40px, 4.4vw, 66px);
  letter-spacing: -0.01em;
}

.q-hero__lead {
  max-width: 34ch;
  margin-top: 22px;
  color: var(--text);
  font-size: 19px;
}

.q-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 36px;
}

.q-hero__media {
  position: relative;
  isolation: isolate;
}

.q-hero__media::before {
  content: "";
  position: absolute;
  inset-block: 26px -26px;
  inset-inline: 26px -26px;
  z-index: -1;
  border: 1px solid var(--gold);
}

.q-hero__photo {
  aspect-ratio: 6 / 6.4;
  max-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--line);
}

.q-hero__photo img,
.q-hero__inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-hero__inset {
  position: absolute;
  bottom: -34px;
  inset-inline-start: -9%;
  width: 40%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 10px solid #fff;
  background: var(--line);
  box-shadow: 0 24px 50px rgba(16, 26, 43, 0.14);
}

.q-hero__names {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.q-hero__names li + li {
  border-inline-start: 1px solid var(--line);
}

.q-hero__names a {
  display: block;
  padding: 22px 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.q-hero__names a:hover {
  background: var(--mist);
  color: var(--gold-deep);
}

/* ---------- home: statement ---------- */

.q-statement__grid {
  display: grid;
  grid-template-columns: 1fr 2.6fr 1.3fr;
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}

.q-statement__text {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  line-height: var(--lead);
}

html[lang="ar"] .q-statement__text {
  line-height: 1.6;
}

.q-statement__aside p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- home: companies ---------- */

.q-firms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.q-firms > li + li {
  border-inline-start: 1px solid var(--line);
}

.q-firm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 26px 24px 30px;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s ease;
}

.q-firm:hover {
  background: #fff;
}

.q-firm__num {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 18px;
}

.q-firm__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.q-firm__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.q-firm:hover .q-firm__photo img {
  transform: scale(1.05);
}

.q-firm__name {
  font-size: 30px;
}

.q-firm__text {
  color: var(--muted);
  font-size: 15px;
}

.q-firm .q-arrow {
  margin-top: auto;
  color: var(--ink);
}

/* ---------- home: figures ---------- */

.q-figures,
.q-quote,
.q-steps {
  background: var(--ink);
  color: #d9dee7;
}

.q-figures .q-title,
.q-steps .q-title {
  color: #fff;
}

.q-figures .q-kicker,
.q-quote .q-kicker,
.q-steps .q-kicker {
  color: var(--gold-soft);
}

.q-figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.q-figure {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 34px;
  border-top: 1px solid var(--line-dark);
  border-inline-start: 1px solid var(--line-dark);
}

.q-figure:nth-child(4n + 1) {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.q-figure__value {
  order: -1;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.1;
}

.q-figure__heading {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.q-figure__label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ---------- home: featured projects ---------- */

.q-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px clamp(28px, 4vw, 56px);
}

.q-feature__item.is-lead {
  grid-row: span 2;
}

.q-feature__media {
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: var(--mist);
}

.q-feature__item.is-lead .q-feature__media {
  aspect-ratio: 4 / 4.45;
}

.q-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-feature__body {
  padding-top: 18px;
}

.q-feature__body h3 {
  font-size: 27px;
}

.q-feature__body p:last-child {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- home: services index ---------- */

.q-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.q-split__lead {
  position: sticky;
  top: 130px;
}

.q-split__lead p:not(.q-kicker) {
  margin-block: 18px 26px;
  color: var(--muted);
}

.q-index li {
  border-top: 1px solid var(--line);
}

.q-index li:first-child {
  border-top-color: var(--ink);
}

.q-index li:last-child {
  border-bottom: 1px solid var(--line);
}

.q-index a {
  display: grid;
  grid-template-columns: 48px 1.1fr 1fr;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  color: inherit;
  text-decoration: none;
  transition: padding 0.3s ease, background 0.3s ease;
}

.q-index a:hover {
  padding-inline: 14px;
  background: #fff;
}

.q-index__num {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 17px;
}

.q-index__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: var(--lead);
}

.q-index__note {
  color: var(--muted);
  font-size: 14.5px;
  text-align: end;
}

/* ---------- posts (news, press) ---------- */

.q-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.q-posts--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px clamp(28px, 4vw, 56px);
}

.q-post__inner {
  display: block;
  color: inherit;
  text-decoration: none;
}

.q-post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.q-post__media img,
.q-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.q-post__inner:hover .q-post__media img,
.q-work:hover .q-work__media img {
  transform: scale(1.04);
}

.q-post__media img.is-logo,
.q-work__media img.is-logo,
.q-feature__media img.is-logo {
  padding: 16% 20%;
  object-fit: contain;
  transform: none;
}

img.is-logo-light {
  background: var(--ink);
}

.q-post__body {
  padding-top: 18px;
}

.q-post__body h2,
.q-post__body h3 {
  font-size: 26px;
}

.q-post__body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.q-post__body .q-arrow {
  margin-top: 16px;
  color: var(--gold-deep);
}

/* ---------- photo gallery ---------- */

.q-gallery {
  columns: 3;
  column-gap: 18px;
}

.q-gallery__item {
  margin: 0 0 18px;
  break-inside: avoid;
}

.q-gallery__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--mist);
  cursor: zoom-in;
}

.q-gallery__open img {
  width: 100%;
  height: auto;
}

.q-gallery__item figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.q-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(16, 26, 43, 0.94);
}

.q-lightbox[hidden] {
  display: none;
}

.q-lightbox figure {
  max-width: min(1100px, 100%);
}

.q-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  object-fit: contain;
}

.q-lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-size: 16px;
  text-align: center;
}

.q-lightbox figcaption:empty {
  display: none;
}

.q-lightbox__close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.q-lightbox__close span {
  position: absolute;
  top: 50%;
  inset-inline: 9px;
  height: 1.5px;
  background: #fff;
}

.q-lightbox__close span:first-child {
  transform: rotate(45deg);
}

.q-lightbox__close span:last-child {
  transform: rotate(-45deg);
}

html.q-lightbox-open {
  overflow: hidden;
}

/* ---------- inner page head ---------- */

.q-pagehead {
  padding-top: clamp(24px, 3vw, 44px);
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.q-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.q-crumbs a {
  text-decoration: none;
}

.q-crumbs a:hover {
  color: var(--ink);
}

.q-crumbs [aria-current] {
  color: var(--ink);
}

.q-pagehead__row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(28px, 4vw, 60px) clamp(32px, 4vw, 60px);
}

.q-pagehead__title {
  font-size: clamp(44px, 6vw, 92px);
}

html[lang="en"] .q-pagehead__title {
  letter-spacing: -0.015em;
}

.q-pagehead__lead {
  max-width: 46ch;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--gold);
  color: var(--text);
  font-size: 18px;
}

.q-pagehead__media {
  height: clamp(220px, 34vw, 500px);
  margin-inline-start: max(var(--pad), calc((100% - var(--wrap)) / 2));
  overflow: hidden;
  background: var(--line);
}

.q-pagehead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- story, founders, quote, values ---------- */

.q-story,
.q-quote__grid,
.q-opening {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}

.q-story__body {
  max-width: 66ch;
}

.q-story__body p + p {
  margin-top: 18px;
}

.q-story__first {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.6;
}

html[lang="en"] .q-story__first {
  line-height: 1.3;
}

.q-story__body .q-btn {
  margin-top: 30px;
}

.q-founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px clamp(32px, 5vw, 72px);
}

.q-founder {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.q-founder__num,
.q-values__num,
.q-house__num,
.q-office__num,
.q-job__num {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 19px;
}

.q-founder h3 {
  margin-block: 6px 12px;
  font-size: 32px;
}

.q-founder p {
  color: var(--muted);
}

.q-quote blockquote p {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.55;
}

html[lang="en"] .q-quote blockquote p {
  line-height: 1.22;
}

.q-quote blockquote footer {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.q-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px clamp(28px, 4vw, 56px);
}

.q-values li {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.q-values h3 {
  margin-block: 6px 10px;
  font-size: 32px;
}

.q-values p {
  color: var(--muted);
}

.q-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr 1fr;
  gap: 6px;
  height: clamp(170px, 25vw, 380px);
}

.q-mosaic div {
  overflow: hidden;
  background: var(--line);
}

.q-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-roster {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: clamp(20px, 4vw, 64px);
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.q-roster:first-child {
  border-top-color: var(--ink);
}

.q-roster__title {
  font-size: 30px;
}

.q-roster ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}

.q-roster li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.5;
}

.q-roster__photo {
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: var(--mist);
}

.q-roster__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-roster__photo img.is-logo {
  padding: 8px;
  object-fit: contain;
}

.q-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.q-duo__media {
  aspect-ratio: 5 / 5.4;
  overflow: hidden;
  background: var(--line);
}

.q-duo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-duo--flip .q-duo__media {
  order: 2;
}

.q-duo__body .q-title {
  margin-bottom: 18px;
}

.q-duo__body p + p {
  margin-top: 14px;
}

.q-ticks {
  margin-top: 22px;
}

.q-ticks li {
  position: relative;
  padding-block: 13px;
  padding-inline-start: 30px;
  border-top: 1px solid var(--line);
}

.q-ticks li:last-child {
  border-bottom: 1px solid var(--line);
}

.q-ticks li::before {
  content: "";
  position: absolute;
  top: 29px;
  inset-inline-start: 0;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

/* ---------- companies page ---------- */

.q-house {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.q-house:first-child {
  border-top-color: var(--ink);
}

.q-house:nth-child(even) .q-house__media {
  order: 2;
}

.q-house__media {
  display: block;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: var(--line);
}

.q-house__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.q-house:hover .q-house__media img {
  transform: scale(1.04);
}

.q-house__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.q-house__logo img {
  width: auto;
  max-width: 170px;
  height: 38px;
  object-fit: contain;
}

.q-house__name {
  margin-block: 18px 12px;
  font-size: clamp(34px, 4vw, 56px);
}

.q-house__body p {
  margin-bottom: 24px;
  color: var(--muted);
}

/* ---------- single company ---------- */

.q-opening__logo img {
  width: auto;
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
}

.q-opening__body {
  max-width: 60ch;
}

.q-opening__body p {
  color: var(--ink);
  font-size: 20px;
}

.q-opening__body p + p {
  margin-top: 12px;
}

.q-opening__body .q-btn {
  margin-top: 30px;
}

.q-siblings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.q-sibling {
  display: block;
  color: inherit;
  text-decoration: none;
}

.q-sibling__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.q-sibling__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.q-sibling:hover .q-sibling__media img {
  transform: scale(1.05);
}

.q-sibling__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.4;
}

/* ---------- services page ---------- */

.q-services {
  border-top: 1px solid var(--ink);
}

.q-service {
  display: grid;
  grid-template-columns: 72px 1fr 240px;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.q-service__num {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 30px;
}

.q-service__body h2 {
  font-size: 32px;
}

.q-service__body p:last-child {
  max-width: 56ch;
  color: var(--muted);
}

.q-service__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mist);
}

.q-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-steps__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.q-steps__list li {
  padding: 6px 28px 10px;
  border-inline-start: 1px solid var(--line-dark);
}

.q-steps__list li:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.q-steps__num {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.2;
}

.q-steps__list h3 {
  margin-block: 10px 8px;
  color: #fff;
  font-size: 26px;
}

.q-steps__list p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

/* ---------- projects ---------- */

.q-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.q-filters button {
  position: relative;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.q-filters button::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.q-filters button:hover,
.q-filters button.is-active {
  color: var(--ink);
}

.q-filters button.is-active::after {
  transform: scaleX(1);
}

.q-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 32px;
}

.q-work.is-hidden {
  display: none;
}

.q-work__media {
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  background: var(--mist);
}

.q-work__body {
  padding-top: 16px;
}

.q-work__body .q-overline span {
  margin-inline-end: 12px;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
}

.q-work__body h2 {
  font-size: 25px;
}

.q-work__body p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- careers and forms ---------- */

.q-careers {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.q-job {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.q-job:first-of-type {
  border-top-color: var(--ink);
}

.q-job h2 {
  font-size: 30px;
}

.q-job p:not(.q-overline) {
  margin-block: 8px 16px;
  color: var(--muted);
}

.q-form--card {
  padding: clamp(24px, 3vw, 40px);
  border-top: 2px solid var(--gold);
  background: var(--mist);
}

.q-careers .q-form {
  position: sticky;
  top: 120px;
}

.q-form__title {
  margin-bottom: 6px;
  font-size: 32px;
}

.q-form label {
  display: block;
  margin-top: 18px;
}

.q-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.q-form input:not([type="file"]):not([type="hidden"]),
.q-form select,
.q-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  transition: border-color 0.2s ease;
}

.q-form input:focus,
.q-form select:focus,
.q-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.q-form textarea {
  resize: vertical;
}

.q-form input[type="file"] {
  width: 100%;
  font-size: 14px;
}

.q-form__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.q-form .q-btn {
  margin-top: 26px;
}

.q-form__ok,
.q-form__err {
  margin-top: 14px;
  padding: 12px 14px;
  border-inline-start: 3px solid #3d7a55;
  background: #edf4ee;
  font-size: 15px;
}

.q-form__err {
  border-inline-start-color: #a13838;
  background: #faeeee;
}

.q-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- contact ---------- */

.q-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.q-facts > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.q-facts > div:first-child {
  border-top-color: var(--ink);
}

.q-facts dt {
  color: var(--muted);
  font-size: 14px;
}

.q-facts dd {
  color: var(--ink);
  font-size: 17px;
}

.q-facts dd a {
  display: block;
  width: fit-content;
  text-decoration: none;
}

.q-facts dd a:hover {
  color: var(--gold-deep);
}

.q-contact__media {
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  overflow: hidden;
  background: var(--line);
}

.q-contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.q-office {
  padding: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--gold);
  background: #fff;
}

.q-office h2 {
  margin-block: 4px 8px;
  font-size: 30px;
}

.q-office dl > div {
  margin-top: 16px;
}

.q-office dt {
  color: var(--muted);
  font-size: 13.5px;
}

.q-office dd {
  color: var(--ink);
}

/* ---------- article and project detail ---------- */

.q-article__body {
  max-width: 70ch;
}

.q-article__body p {
  font-size: 19px;
  line-height: 2;
}

html[lang="en"] .q-article__body p {
  line-height: 1.8;
}

.q-article__body p + p {
  margin-top: 22px;
}

.q-article > .q-link {
  margin-top: 36px;
}

.q-article__next {
  display: block;
  max-width: 70ch;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
}

.q-article__next-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: var(--lead);
  transition: color 0.2s ease;
}

.q-article__next:hover .q-article__next-title {
  color: var(--gold-deep);
}

.q-spec {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.q-spec .q-roster__title {
  margin-bottom: 18px;
}

.q-spec .q-link {
  margin-top: 30px;
}

/* ---------- closing band and footer ---------- */

.q-cta {
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.q-cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(48px, 7vw, 96px);
}

.q-cta__title {
  max-width: 28ch;
  font-size: clamp(30px, 3.6vw, 50px);
}

.q-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.q-footer__heading {
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.q-footer__news {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding-block: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.q-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.q-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.q-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.q-newsletter input:focus {
  outline: none;
  border-bottom-color: var(--gold-soft);
}

.q-newsletter button {
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  color: #fff;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.q-newsletter button:hover {
  background: #fff;
  color: var(--ink);
}

.q-newsletter__note {
  flex-basis: 100%;
  min-height: 24px;
  margin-top: 8px;
  color: var(--gold-soft);
  font-size: 13.5px;
}

.q-newsletter__note.is-error {
  color: #f0b4b4;
}

.q-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 56px;
}

.q-footer__brand img {
  width: auto;
  height: 46px;
  margin-bottom: 20px;
}

.q-footer__brand p {
  max-width: 38ch;
}

.q-footer__list li + li {
  margin-top: 8px;
}

.q-footer__list--two {
  columns: 2;
  column-gap: 32px;
}

.q-footer__list--two li {
  margin-top: 0 !important;
  padding-bottom: 8px;
  break-inside: avoid;
}

.q-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.q-footer a:hover {
  color: #fff;
}

.q-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
}

.q-footer__social {
  display: flex;
  gap: 22px;
}

/* ---------- motion ---------- */

.q-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.q-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .q-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- medium screens ---------- */

@media (max-width: 1080px) {
  .q-top,
  .q-nav {
    display: none;
  }

  .q-header__row {
    display: flex;
    gap: 14px;
    min-height: 68px;
  }

  .q-header__brand {
    margin-inline-end: auto;
  }

  .q-header__brand img {
    height: 42px;
  }

  .q-header__lang {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.5;
    text-decoration: none;
  }

  .q-burger {
    display: block;
  }

  .q-hero__grid,
  .q-statement__grid,
  .q-split,
  .q-pagehead__row,
  .q-story,
  .q-quote__grid,
  .q-opening,
  .q-roster,
  .q-careers,
  .q-contact,
  .q-spec,
  .q-footer__news {
    grid-template-columns: 1fr;
  }

  .q-hero__media {
    max-width: 640px;
    margin-inline-start: 6%;
  }

  .q-hero__lead {
    max-width: 46ch;
  }

  .q-split__lead,
  .q-careers .q-form {
    position: static;
  }

  .q-firms,
  .q-figures__grid,
  .q-steps__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-firms > li:nth-child(odd) {
    border-inline-start: 0;
  }

  .q-firms > li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .q-figure:nth-child(4n + 1) {
    border-inline-start: 1px solid var(--line-dark);
    padding-inline-start: 28px;
  }

  .q-figure:nth-child(odd) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .q-steps__list {
    gap: 36px 0;
  }

  .q-steps__list li:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .q-posts,
  .q-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-gallery {
    columns: 2;
  }

  .q-pagehead__lead {
    max-width: 60ch;
  }

  .q-house,
  .q-duo {
    grid-template-columns: 1fr;
  }

  .q-house:nth-child(even) .q-house__media,
  .q-duo--flip .q-duo__media {
    order: 0;
  }

  .q-duo__media {
    aspect-ratio: 16 / 10;
  }

  .q-service {
    grid-template-columns: 52px 1fr 150px;
  }

  .q-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .q-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- phones ---------- */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .q-hero__media::before {
    inset-block: 14px -14px;
    inset-inline: 14px -14px;
  }

  .q-hero__inset {
    bottom: -24px;
    border-width: 6px;
  }

  .q-hero__names {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-hero__names li:nth-child(odd) {
    border-inline-start: 0;
  }

  .q-hero__names li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .q-hero__names a {
    padding: 16px;
    font-size: 20px;
  }

  .q-sechead,
  .q-cta__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .q-firms,
  .q-feature,
  .q-posts,
  .q-posts--two,
  .q-founders,
  .q-values,
  .q-siblings,
  .q-offices,
  .q-footer__grid,
  .q-form__pair {
    grid-template-columns: 1fr;
  }

  .q-firms > li + li {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .q-firm {
    padding-inline: 0;
  }

  .q-feature__item.is-lead {
    grid-row: auto;
  }

  .q-feature__item.is-lead .q-feature__media {
    aspect-ratio: 4 / 3.6;
  }

  .q-figure {
    padding: 22px 16px 24px;
  }

  .q-figure:nth-child(even) {
    padding-inline-start: 16px;
  }

  .q-index a {
    grid-template-columns: 36px 1fr;
  }

  .q-index__note {
    grid-column: 2;
    text-align: start;
  }

  .q-works {
    gap: 36px 16px;
  }

  .q-gallery {
    columns: 1;
  }

  .q-work__body h2 {
    font-size: 21px;
  }

  .q-mosaic {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .q-mosaic div:nth-child(n + 4) {
    display: none;
  }

  .q-roster ul {
    grid-template-columns: 1fr 1fr;
  }

  .q-service {
    grid-template-columns: 40px 1fr;
  }

  .q-service__media {
    grid-column: 2;
    max-width: 320px;
  }

  .q-steps__list {
    grid-template-columns: 1fr;
  }

  .q-steps__list li {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .q-facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .q-job {
    grid-template-columns: 36px 1fr;
  }

  .q-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}
