/* ==========================================================================
   Dream Rich Associates — styles
   ========================================================================== */

:root {
  --ink: #0d0b14;
  --ink-2: #15121d;
  --ink-3: #1d1926;
  --plum: #2a1433;
  --cream: #f6f3ef;
  --cream-2: #ece7e1;
  --text: #17141c;
  --muted: #6b6570;
  --muted-light: rgba(255, 255, 255, .72);
  --line: rgba(23, 20, 28, .12);
  --line-light: rgba(255, 255, 255, .16);

  --purple: #7b4fd0;
  --pink: #d9579f;
  --peach: #f7a65a;
  --gold: #fbc76a;
  --grad: linear-gradient(90deg, var(--purple) 0%, var(--pink) 45%, var(--peach) 80%, var(--gold) 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.section--cream { background: var(--cream); color: var(--text); }
.section--dark { background: var(--ink); color: #fff; }

/* ---------- Typography ---------- */

.eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}
.title--lg { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }

.grad-text {
  background: linear-gradient(90deg, #c453b4 0%, var(--pink) 35%, var(--peach) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--warm { background-image: linear-gradient(90deg, #ee7f8f 0%, var(--peach) 100%); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn .icon { transition: transform .25s ease; }
.btn:hover .icon { transform: translateX(4px); }

.btn--solid {
  background: linear-gradient(90deg, var(--purple) 0%, #c160b8 40%, #f3a184 75%, var(--gold) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(217, 87, 159, .7);
}
.btn--solid .icon { color: var(--ink); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(217, 87, 159, .85); }

/* Gradient ring that works on any background */
.btn--outline { color: var(--text); }
.btn--outline::before,
.arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.btn--outline .icon { color: var(--peach); }
.btn--outline:hover { background: rgba(217, 87, 159, .08); }
.btn--light { color: #fff; }
.btn--block { width: 100%; }

.arrow {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gold);
  transition: background-color .25s ease, transform .25s ease;
}
.arrow .icon { width: 16px; height: 16px; }
.arrow--dark { color: var(--text); }
a:hover > * > .arrow, a:hover > .arrow, a:hover .arrow { background: rgba(247, 166, 90, .16); transform: translateX(3px); }

/* ---------- Logo ---------- */

.logo { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; flex: none; }
.logo__mark {
  padding: 0 6px 0 2px;
  font-family: var(--script);
  font-size: 44px;
  line-height: .95;
  background: linear-gradient(90deg, var(--purple) 0%, #a659c9 35%, var(--pink) 55%, var(--peach) 78%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__sub {
  margin: -4px 8px 0 0;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.logo--lg .logo__mark { font-size: 60px; }
.logo--lg .logo__sub { font-size: 8px; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header.is-scrolled {
  background: rgba(13, 11, 20, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
  transition: color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--mobile { display: none; }

.menu-btn {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: rgba(13, 11, 20, .35);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s ease, opacity .2s ease;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 20.500px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.500px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.500px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: flex;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(160, 96, 190, .55) 0%, transparent 60%),
    linear-gradient(180deg, #100d1c 0%, #1b1430 55%, #0d0b14 100%);
}
.hero__bg {
  position: absolute;
  top: 0; right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 20, .92) 0%, rgba(13, 11, 20, .55) 38%, transparent 65%),
    linear-gradient(180deg, rgba(13, 11, 20, .55) 0%, transparent 22%, transparent 70%, rgba(13, 11, 20, .75) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 96px;
}
.hero__content { max-width: 640px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: .95;
  text-transform: uppercase;
}
.hero__title .grad-text { font-size: 1.14em; }
.hero__lead { max-width: 440px; margin: 22px 0 30px; color: rgba(255, 255, 255, .9); }

.hero__index {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.hero__index span { display: block; }
.hero__index .is-active { color: #fff; }

.hero__foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.hero__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .6); }
.hero__line { flex: 1; height: 1px; background: rgba(255, 255, 255, .22); }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; letter-spacing: .12em; color: #fff; }
.mouse {
  position: relative;
  width: 18px;
  height: 30px;
  border: 1.5px solid #fff;
  border-radius: 10px;
}
.mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  width: 2px; height: 6px;
  margin-left: -1px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Stats ---------- */

.stats { padding: 44px 0; border-bottom: 1px solid var(--line); }
.stats__head { display: none; }
.stats__row { display: grid; grid-template-columns: 1fr minmax(180px, 230px); gap: 40px; align-items: center; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 18px; padding: 6px 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__icon { width: 34px; height: 34px; flex: none; }
.stat__num { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.9rem; line-height: 1; font-variant-numeric: lining-nums; }
.stat__num sup { font-size: .55em; vertical-align: .45em; }
.stat__label { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.stats__note { font-size: 11.500px; line-height: 1.7; color: var(--muted); }

/* ---------- About ---------- */

.about { overflow: hidden; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  max-width: 1440px;
  margin-inline: auto;
}
.about__text {
  padding: 72px 40px 72px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  align-self: center;
}
.about__text p:not(.eyebrow) { max-width: 460px; margin: 24px 0 28px; color: #4a4550; }
@media (min-width: 1441px) { .about__text { padding-left: calc(100px + var(--gutter)); } }

.chairman {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: 40px -60px 40px 0;
  padding: 34px 34px 36px;
  border-radius: 8px;
  background: rgba(236, 231, 225, .92);
  box-shadow: 0 24px 60px -30px rgba(23, 20, 28, .35);
}
.chairman blockquote { position: relative; padding-left: 42px; color: #4a4550; }
.chairman blockquote::before {
  content: "“";
  position: absolute;
  left: 0; top: -14px;
  font-family: var(--serif);
  font-size: 82px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--pink) 60%, var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chairman__sign { margin: 18px 0 6px 42px; font-family: var(--script); font-size: 40px; line-height: 1.1; }
.chairman__name { margin-left: 42px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.chairman__role { margin-left: 42px; font-size: 11.500px; line-height: 1.6; color: var(--muted); }

.about__photo { position: relative; min-height: 480px; }
.about__photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 35%;
  background: linear-gradient(90deg, var(--cream), transparent);
}
.about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
}

/* ---------- Section heads & card grids ---------- */

.brands, .services, .work, .clients { padding: clamp(56px, 7vw, 88px) 0; }
.services { padding-bottom: 0; }
.work { padding-bottom: clamp(32px, 4vw, 48px); }
.clients { padding-top: clamp(32px, 4vw, 48px); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head__aside { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.section-head__aside p { max-width: 340px; color: var(--muted); }
.section--dark .section-head__aside p { color: var(--muted-light); }

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

/* ---------- Brands ---------- */

.brands {
  position: relative;
  background:
    radial-gradient(60% 120% at 0% 100%, rgba(150, 70, 150, .45) 0%, transparent 60%),
    radial-gradient(50% 100% at 100% 0%, rgba(110, 60, 150, .28) 0%, transparent 60%),
    var(--ink-2);
}
.brand-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(20, 16, 28, .72);
  transition: transform .3s ease, border-color .3s ease;
}
.brand-card:hover { transform: translateY(-6px); border-color: rgba(247, 166, 90, .7); }
.brand-card img, .service-card img, .work-card img { width: 100%; object-fit: cover; transition: transform .6s ease; }
.brand-card img { aspect-ratio: 2 / 1; }
.brand-card:hover img, .service-card:hover img, .work-card:hover img { transform: scale(1.05); }
.brand-card__body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 20px;
  background: rgba(20, 16, 28, .96);
}
.brand-card h3, .service-card h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.brand-card p { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--muted-light); }

/* ---------- Services ---------- */

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-3);
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(23, 20, 28, .7); }
.service-card img { aspect-ratio: 2 / 1.05; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.service-card__body { position: relative; flex: 1; margin-top: -14px; padding: 0 60px 22px 22px; }
.service-card__num { display: block; font-size: 20px; font-weight: 300; line-height: 1.2; color: #e58bb8; }
.service-card h3 { margin: 6px 0 12px; font-size: 14px; line-height: 1.3; }
.service-card li { font-size: 12px; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.service-card .arrow { position: absolute; right: 18px; bottom: 22px; }

/* ---------- Work ---------- */

.work-card { display: block; }
.work-card img { aspect-ratio: 2.35 / 1; border-radius: 8px; }
.work-card > img { overflow: hidden; }
.work-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.work-card h2, .work-card h3 { font-size: 14px; font-weight: 600; }
.work-card p { margin-top: 2px; font-size: 11.500px; color: var(--muted); }
.work-card p span { margin: 0 6px; opacity: .6; }

/* ---------- Clients ---------- */
.clients__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.clients__list img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.clients__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.clients__list img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
}


/* ---------- Vision ---------- */

.vision {
  position: relative;
  padding: clamp(56px, 7vw, 84px) 0;
  background: #0c0a14 url("../assets/img/vision.jpg") center 35% / 50% auto no-repeat;
}
.vision::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c0a14 25%, rgba(12, 10, 20, .15) 46%, rgba(12, 10, 20, .15) 54%, #0c0a14 75%);
}
.vision__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.vision__aside { justify-self: end; max-width: 340px; }
.vision__aside p { margin-bottom: 24px; font-size: 13px; color: rgba(255, 255, 255, .88); }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: 57% 43%; background: var(--ink-2); }
.contact__info {
  padding: clamp(48px, 6vw, 72px) 40px clamp(48px, 6vw, 72px) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
}
.contact__lead { max-width: 400px; margin: 18px 0 30px; font-size: 13px; color: #4a4550; }
.contact__details { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 32px; justify-content: start; font-size: 12px; color: #4a4550; }
.detail { display: flex; gap: 12px; align-items: flex-start; }
.detail strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--text); }
.detail a:hover { color: var(--pink); }
.detail__icon { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.detail-stack { display: grid; gap: 14px; align-content: start; }

.contact__form-wrap {
  display: flex;
  align-items: center;
  padding: clamp(40px, 5vw, 64px) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
  background: var(--ink-2);
}
.form { width: 100%; display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #221f2c;
  color: #fff;
  font-size: 13px;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { display: block; min-height: 96px; resize: vertical; }
.field ::placeholder { color: rgba(255, 255, 255, .55); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--pink); background: #282433; }
.form .btn { margin-top: 6px; padding-block: 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.form__status { min-height: 1.4em; font-size: 12px; color: var(--gold); }

/* ---------- Footer ---------- */

.footer { background: #0a0911; color: rgba(255, 255, 255, .78); font-size: 12px; }
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 32px 56px;
  align-items: center;
  padding-block: 40px 28px;
}
.footer__nav { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 6px 72px; }
.footer__nav a:hover, .footer__bottom a:hover { color: #fff; }
.footer__side { text-align: right; align-self: start; }
.footer__side span, .footer__bottom p:last-child span { margin: 0 8px; opacity: .5; }
.socials { display: flex; justify-content: flex-end; gap: 18px; margin-top: 18px; color: #fff; }
.socials a { transition: color .2s ease, transform .2s ease; }
.socials a:hover { color: var(--peach); transform: translateY(-2px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Reveal ---------- */

.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.cards .reveal:nth-child(2), .stats__grid .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .stats__grid .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .stats__grid .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

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

@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__row { grid-template-columns: 1fr; }
  .stats__note { max-width: 520px; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__text { grid-column: 1 / -1; padding: 64px var(--gutter) 24px; }
  .chairman { margin: 32px -40px 48px var(--gutter); }
  .contact__details { grid-template-columns: repeat(2, auto); }
  .footer__top { grid-template-columns: auto 1fr; }
  .footer__side { text-align: left; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 860px) {
  :root { --header-h: 120px; }

  /* Full-screen menu */
  .menu-btn { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: var(--header-h) var(--gutter) 40px;
    background:
      radial-gradient(90% 60% at 100% 0%, rgba(150, 70, 150, .4) 0%, transparent 60%),
      var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-family: var(--serif);
    font-size: 30px;
    text-transform: uppercase;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--peach); }
  .nav__link--mobile { display: block; }
  .header .logo { position: relative; z-index: 60; }

  /* Hero: photo sits under the copy */
  .hero { min-height: min(100svh, 860px); }
  .hero__bg {
    top: auto; bottom: 0;
    width: 100%;
    height: 58%;
    object-position: 72% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(13, 11, 20, .5) 0%, rgba(13, 11, 20, .15) 50%, rgba(13, 11, 20, .1) 75%, rgba(13, 11, 20, .8) 100%);
  }
  .hero__inner { justify-content: flex-start; padding-top: calc(var(--header-h) + 44px); padding-bottom: 300px; }
  .hero__index, .hero__line { display: none; }
  .hero__scroll { margin-left: auto; }

  /* Stats become the "Our Journey" block */
  .stats { padding: 56px 0; }
  .stats__head { display: block; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; gap: 10px; padding: 28px 12px; border-left: 0; text-align: center; }
  .stat:first-child { padding-left: 12px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat__num { font-size: 3.2rem; }
  .stats__note { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__text { padding-bottom: 8px; }
  .chairman { margin: 32px var(--gutter) -80px; }
  .about__photo { min-height: 0; }
  .about__photo::before { display: none; }
  .about__photo img { position: static; height: auto; aspect-ratio: 1 / 1.1; }

  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 28px; }
  .section-head__aside { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cards--3 { grid-template-columns: 1fr; }

  .clients__list { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 36px 20px; }
  .client:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .vision { padding: 64px 0 min(78vw, 420px); background-position: center bottom; background-size: max(100%, 520px) auto; }
  .vision::before { background: linear-gradient(180deg, #0c0a14 0%, #0c0a14 38%, rgba(12, 10, 20, .1) 62%, rgba(12, 10, 20, .3) 100%); }
  .vision__inner { grid-template-columns: 1fr; gap: 20px; }
  .vision__aside { justify-self: start; }

  .contact { grid-template-columns: 1fr; }
  .contact__info { padding: 56px var(--gutter); }
  .contact__form-wrap { padding: 40px var(--gutter) 56px; }

  .footer__top { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .footer__nav { grid-template-rows: none; grid-auto-flow: row; width: 100%; gap: 0; }
  .footer__nav a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .footer__nav a::after { content: "›"; opacity: .6; }
}

@media (max-width: 560px) {
  .cards--4 { grid-template-columns: 1fr; }
  .logo__mark { font-size: 40px; }

  /* Brand cards switch to the compact horizontal layout */
  .brand-card { flex-direction: row; }
  .brand-card img { width: 38%; aspect-ratio: auto; min-height: 104px; }
  .brand-card__body { padding: 14px; }

  .service-card img { aspect-ratio: 2.6 / 1; }

  .contact__details { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .btn { padding-inline: 22px; }
  .section-head__aside .btn, .vision__aside .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   Work page
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 130% at 100% 0%, rgba(160, 96, 190, .5) 0%, transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(150, 70, 150, .35) 0%, transparent 60%),
    linear-gradient(180deg, #100d1c 0%, #1b1430 100%);
}
.page-hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.page-hero .title { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.page-hero__lead { max-width: 380px; justify-self: end; font-size: 13px; color: rgba(255, 255, 255, .88); }

.crumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--peach); }

.projects { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.projects__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #4a4550;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.chip:hover { border-color: var(--pink); color: var(--text); }
.chip.is-active { border-color: transparent; background: var(--ink-3); color: #fff; }
.projects__count { font-size: 12px; color: var(--muted); }
.projects__empty { padding: 48px 0; text-align: center; color: var(--muted); }

.cards--listing { gap: 40px 22px; }
.cards--listing .work-card img { aspect-ratio: 1.6 / 1; }
.work-card__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: 18px; }
  .page-hero__lead { justify-self: start; }
  .cards--listing { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .projects__bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .cards--listing { grid-template-columns: 1fr; }
}
