/* ==========================================================================
   Almas Web — الماس ويب
   Light, modern design system — soft surfaces, bento layouts, rounded media
   ========================================================================== */

:root {
  --bg: #ffffff;
  --paper: #f4f3f0;
  --paper-2: #e9e7e2;
  --ink: #111111;
  --ink-2: #55524c;
  --ink-3: #8c887f;
  --line: #e6e3dd;
  --line-2: #d2cdc4;
  --wa: #1fa855;

  --font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --hdr-h: 80px;
  --r-card: 24px;
  --r-img: 18px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -12px rgba(17, 17, 17, .10);
  --shadow-lg: 0 2px 4px rgba(17, 17, 17, .04), 0 28px 56px -20px rgba(17, 17, 17, .18);
  --ease: cubic-bezier(.22, .7, .12, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; font-size: 1.0625rem; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: fixed; top: -80px; inset-inline-start: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display { font-size: clamp(2.3rem, 1.3rem + 3.5vw, 4.4rem); font-weight: 500; line-height: 1.25; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.35; }
.h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); line-height: 1.45; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); line-height: 1.9; }
.muted { color: var(--ink-2); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 400; color: var(--ink-2); line-height: 1.6;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.sec--paper .label { background: #fff; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding-inline: 28px; border-radius: 999px;
  font-size: .95rem; font-weight: 400; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon--go { transform: translateX(-4px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2a; box-shadow: 0 12px 24px -10px rgba(17, 17, 17, .45); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--wa .icon--wa { color: var(--wa); width: 20px; height: 20px; }
.btn--sm { height: 44px; padding-inline: 22px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 400; color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--ink); transition: gap .3s var(--ease); }
.link .icon { width: 16px; height: 16px; }
.link:hover { gap: 16px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.hdr.is-scrolled { border-color: var(--line); }
.hdr__bar { display: flex; align-items: center; gap: 32px; height: var(--hdr-h); }
.logo { display: grid; }
.logo img { grid-area: 1 / 1; height: 40px; width: auto; transition: opacity .3s; }
.logo__light { opacity: 0; }
.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; transition: background-color .3s; }
.nav__link { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .94rem; font-weight: 400; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav__link:hover { color: var(--ink); background: var(--paper); }
.nav__link[aria-current="page"], .nav__link.is-section { color: var(--ink); background: var(--paper-2); }
.nav__item--drop { position: relative; display: flex; align-items: center; }
.nav__drop-btn { display: grid; place-items: center; width: 24px; height: 24px; margin-inline-start: -6px; color: var(--ink-2); }
.nav__drop-btn .icon { width: 15px; height: 15px; transition: transform .25s; }
.nav__item--drop:hover .nav__drop-btn .icon, .nav__item--drop.is-open .nav__drop-btn .icon { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 16px); right: -12px; width: 340px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.drop::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.nav__item--drop:hover .drop, .nav__item--drop:focus-within .drop, .nav__item--drop.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: .95rem; font-weight: 400; transition: background-color .2s; }
.drop a:hover { background: var(--paper); }
.drop a span { color: var(--ink-3); font-size: .8rem; }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Transparent header over the cover image until the page scrolls */
.hdr--over:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255, 255, 255, .14); }
.hdr--over:not(.is-scrolled) .logo__light { opacity: 1; }
.hdr--over:not(.is-scrolled) .logo__dark { opacity: 0; }
.hdr--over:not(.is-scrolled) .nav__list { background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr--over:not(.is-scrolled) .nav__link, .hdr--over:not(.is-scrolled) .nav__drop-btn { color: rgba(255, 255, 255, .85); }
.hdr--over:not(.is-scrolled) .nav__link:hover, .hdr--over:not(.is-scrolled) .nav__link[aria-current="page"], .hdr--over:not(.is-scrolled) .nav__link.is-section { color: #fff; background: rgba(255, 255, 255, .16); }
.hdr--over:not(.is-scrolled) .hdr__cta { background: #fff; color: var(--ink); }
.hdr--over:not(.is-scrolled) .burger { border-color: rgba(255, 255, 255, .4); }
.hdr--over:not(.is-scrolled) .burger span { background: #fff; }
.menu-open .hdr.hdr--over { background: #fff; border-color: var(--line); }
.menu-open .hdr .logo__light { opacity: 0; }
.menu-open .hdr .logo__dark { opacity: 1; }
.menu-open .hdr .burger { border-color: var(--line-2); }
.menu-open .hdr .burger span { background: var(--ink); }

.mnav {
  position: fixed; inset: var(--hdr-h) 0 0; z-index: 55; background: #fff;
  padding: 16px var(--gutter) 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.menu-open { overflow: hidden; }
.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__list > li > a { display: block; padding-block: 16px; font-size: 1.35rem; font-weight: 400; }
.mnav__sub { padding: 0 0 14px; display: grid; gap: 2px; }
.mnav__sub a { display: block; padding: 6px 16px; color: var(--ink-2); font-size: 1rem; }
.mnav__foot { margin-top: auto; display: grid; gap: 10px; }
.mnav__foot .btn { width: 100%; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(80px, 9vw, 136px); }
.sec--paper { background: var(--paper); }
.sec-head { display: grid; gap: 16px; justify-items: start; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin-top: 2px; }
.sec-head > .btn { margin-top: 10px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-foot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--paper-2); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ar-43 { aspect-ratio: 4 / 3; }
.ar-45 { aspect-ratio: 4 / 5; }
.ar-53 { aspect-ratio: 5 / 3; }
a:hover .media img, .media:hover img { transform: scale(1.04); }

/* ---------- Cover hero (full-bleed background image) ---------- */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  margin-top: calc(-1 * var(--hdr-h)); padding-top: var(--hdr-h);
  background: #2c2a27; color: #fff;
}
.cover--home { min-height: 100svh; }
.cover--page { min-height: clamp(460px, 68vh, 680px); }
.cover__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.cover__bg img { width: 100%; height: 100%; object-fit: cover; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(12, 12, 12, .78) 0%, rgba(12, 12, 12, .5) 45%, rgba(12, 12, 12, .2) 100%),
    linear-gradient(to top, rgba(12, 12, 12, .55) 0%, transparent 50%);
}
.cover__content { display: grid; gap: 22px; justify-items: start; padding-block: 64px clamp(48px, 7vw, 96px); }
.cover__content > * { max-width: 780px; }
.cover .display { color: #fff; }
.cover .lead { color: rgba(255, 255, 255, .84); max-width: 640px; }
.cover .label { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cover .label::before { background: #fff; }
.cover .crumbs ol { color: rgba(255, 255, 255, .65); }
.cover .crumbs a:hover, .cover .crumbs [aria-current] { color: #fff; }
.cover .actions { margin-top: 8px; }
.cover__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 28px; }
.cover__strip a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .98rem; font-weight: 400; color: #fff; transition: background-color .25s, transform .3s var(--ease);
}
.cover__strip span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: .78rem; }
.cover__strip a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.js .cover__content > * { animation: rise .9s var(--ease) both; }
.js .cover__content > :nth-child(2) { animation-delay: .08s; }
.js .cover__content > :nth-child(3) { animation-delay: .16s; }
.js .cover__content > :nth-child(4) { animation-delay: .24s; }
.js .cover__content > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- About: bento collage ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__body { display: grid; gap: 24px; justify-items: start; }
.about__body .sec-head { margin-bottom: 0; }
.about__body > p { color: var(--ink-2); }
.collage {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(3, clamp(130px, 13vw, 190px));
  grid-template-areas: "a b" "a c" "d e";
}
.collage .media { height: 100%; border-radius: 22px; }
.collage__a { grid-area: a; }
.collage__b { grid-area: b; }
.collage__c { grid-area: c; }
.collage__d { grid-area: d; }
.collage__card {
  grid-area: e; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 22px; border-radius: 22px; background: var(--ink); color: #fff;
}
.collage__card img { width: 120px; height: auto; }
.collage__card p { font-size: .95rem; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.points div { padding: 18px; border-radius: 18px; background: var(--paper); }
.points strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.points span { display: block; color: var(--ink-3); font-size: .87rem; line-height: 1.6; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.scard {
  display: grid; gap: 18px; align-content: start; padding: 12px 12px 28px;
  background: #fff; border-radius: var(--r-card); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.sec--paper .scard { border-color: transparent; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scard .media { border-radius: 16px; }
.scard__head, .scard > p, .scard .tags { margin-inline: 16px; }
.scard__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 6px; }
.scard__num { color: var(--ink-3); font-size: .85rem; display: block; margin-bottom: 2px; }
.scard h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
.scard p { color: var(--ink-2); }
.scard__go { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--paper); transition: background-color .3s, color .3s, transform .45s var(--ease); }
.scard__go .icon { width: 18px; height: 18px; }
.scard:hover .scard__go { background: var(--ink); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; color: var(--ink-2); padding: 4px 12px; border-radius: 999px; background: var(--paper); }
.svc-grid--3 .scard h3 { font-size: 1.2rem; }

/* ---------- Start-a-project CTA ---------- */
.start {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--paper);
}
.start__copy { display: grid; gap: 18px; justify-items: start; }
.start__copy .label { background: #fff; }
.start__copy .actions { margin-top: 8px; }
.start__opts { display: grid; gap: 10px; }
.start__opts a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.start__opts a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.start__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--paper); }
.start__ico .icon { width: 22px; height: 22px; }
.start__txt strong { display: block; font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.start__txt small { display: block; color: var(--ink-3); font-size: .87rem; line-height: 1.6; }
.start__go { margin-inline-start: auto; width: 20px; height: 20px; color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.start__opts a:hover .start__go { color: var(--ink); transform: translateX(-4px); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps li { display: grid; gap: 10px; align-content: start; padding: 28px 24px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.sec--paper .steps li { border-color: transparent; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps__num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 400; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--ink-2); font-size: .95rem; line-height: 1.8; }

/* ---------- Why (bento) ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why__media { grid-row: span 3; }
.why__media .media { height: 100%; border-radius: var(--r-card); }
.why__card { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-card); background: var(--paper); transition: background-color .3s, transform .45s var(--ease); }
.sec--paper .why__card { background: #fff; }
.why__card:hover { transform: translateY(-4px); }
.why__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.sec--paper .why__ico { background: var(--paper); border-color: transparent; }
.why__ico .icon { width: 22px; height: 22px; }
.why__card h3 { font-size: 1.1rem; }
.why__card p { color: var(--ink-2); font-size: .96rem; line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq > .sec-head { position: sticky; top: calc(var(--hdr-h) + 32px); margin-bottom: 0; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s; }
.sec--paper .qa { border-color: transparent; }
.qa[open] { box-shadow: var(--shadow); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; cursor: pointer; list-style: none; font-size: 1.06rem; font-weight: 400; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa__ico { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--paper); transition: background-color .3s, transform .4s var(--ease); }
.qa__ico::before, .qa__ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease), background-color .3s; }
.qa__ico::after { transform: rotate(90deg); }
.qa[open] .qa__ico { background: var(--ink); transform: rotate(180deg); }
.qa[open] .qa__ico::before, .qa[open] .qa__ico::after { background: #fff; }
.qa[open] .qa__ico::after { transform: rotate(0); }
.qa__a { padding: 0 26px 24px 72px; color: var(--ink-2); }

/* ---------- CTA panel ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 20px; justify-items: center; text-align: center;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 80px) clamp(28px, 4vw, 40px);
  border-radius: 32px; background: #2c2a27; color: #fff;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 12, 12, .62); }
.cta .label { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
.cta .label::before { background: #fff; }
.cta .display { max-width: 860px; color: #fff; }
.cta .lead { max-width: 620px; color: rgba(255, 255, 255, .84); }
.cta .actions { justify-content: center; margin-top: 8px; }
.cta__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: clamp(28px, 4vw, 48px); text-align: start; }
.cta__contact a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .25s;
}
.cta__contact a:hover { background: rgba(255, 255, 255, .2); }
.cta__contact small { display: block; color: rgba(255, 255, 255, .65); font-size: .82rem; }
.cta__contact strong { display: block; font-size: 1.05rem; font-weight: 400; }
.cta__contact .icon { width: 22px; height: 22px; color: #fff; }
.cta__contact .icon--wa { color: #4ade80; }

/* ---------- Footer ---------- */
.ftr { background: var(--paper); padding-top: clamp(56px, 7vw, 88px); }
.ftr__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.ftr__brand { display: grid; gap: 20px; align-content: start; justify-items: start; }
.ftr__brand img { width: 170px; }
.ftr__brand p { color: var(--ink-2); font-size: .95rem; max-width: 340px; }
.ftr__title { font-size: .85rem; font-weight: 400; color: var(--ink-3); margin-bottom: 18px; }
.ftr__links { display: grid; gap: 10px; }
.ftr__links a { color: var(--ink-2); font-size: .97rem; transition: color .2s; }
.ftr__links a:hover { color: var(--ink); }
.ftr__contact { display: grid; gap: 14px; font-size: .97rem; }
.ftr__contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ftr__contact .icon { margin-top: 5px; width: 18px; height: 18px; color: var(--ink-3); }
.ftr__contact a:hover { color: var(--ink); }
.ftr__word {
  direction: ltr; text-align: center; overflow: hidden; user-select: none;
  padding-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line-2);
}
.ftr__word span {
  display: block; white-space: nowrap;
  font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 500;
  font-size: clamp(3.4rem, 15vw, 13.4rem); line-height: .86; letter-spacing: .03em;
  background: linear-gradient(180deg, #111 0%, #34312c 50%, #b7b1a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 22px; font-size: .87rem; color: var(--ink-3); }
.ftr__totop { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ftr__totop .icon { width: 16px; height: 16px; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 50;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab .icon { width: 28px; height: 28px; }
.fab:hover { transform: translateY(-3px); }
.fab.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; }

/* ---------- Generic blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split__body { display: grid; gap: 22px; justify-items: start; }
.split__body .sec-head { margin-bottom: 0; }
.split__body > p { color: var(--ink-2); }
.quote { margin: 4px 0 0; padding: 22px 26px; border-radius: 20px; background: var(--paper); font-size: 1.12rem; font-weight: 400; line-height: 1.75; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feats li { display: grid; gap: 10px; align-content: start; padding: 30px 28px; border-radius: var(--r-card); background: #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feats li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feats .icon { width: 48px; height: 48px; padding: 12px; margin-bottom: 6px; border-radius: 14px; background: var(--paper); stroke-width: 1.4; }
.feats h3 { font-size: 1.1rem; }
.feats p { color: var(--ink-2); font-size: .96rem; line-height: 1.8; }

.chips-wrap { display: grid; gap: 36px; justify-items: center; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 880px; }
.chips li { padding: 10px 20px; border-radius: 999px; background: var(--paper); font-size: .95rem; font-weight: 400; }
.chips-group h3 { font-size: .9rem; font-weight: 400; color: var(--ink-3); margin-bottom: 14px; }

.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks .icon { width: 22px; height: 22px; padding: 4px; margin-top: 4px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 2.4; }

.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding: clamp(20px, 3vw, 40px); border-radius: 32px; background: var(--paper); }
.srow + .srow { margin-top: 20px; }
.srow:nth-child(even) .srow__media { order: 2; }
.srow .media { border-radius: 22px; }
.srow__body { display: grid; gap: 18px; justify-items: start; }
.srow__num { color: var(--ink-3); font-size: .9rem; }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mvv li { display: grid; gap: 12px; align-content: start; padding: 32px 28px; border-radius: var(--r-card); background: #fff; }
.mvv span { justify-self: start; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; }
.mvv h3 { font-size: 1.3rem; }
.mvv p { color: var(--ink-2); }

.team .media { border-radius: 28px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__info { display: grid; gap: 20px; }
.contact__info .sec-head { margin-bottom: 4px; }
.clist { display: grid; gap: 10px; }
.clist a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.clist a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.clist a > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #fff; color: var(--ink); }
.clist a > .icon--wa { color: var(--wa); }
.clist small { display: block; color: var(--ink-3); font-size: .83rem; }
.clist strong { display: block; font-size: 1.1rem; font-weight: 400; line-height: 1.6; }
.clist__go { margin-inline-start: auto; color: var(--ink-3); }

.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__head { display: grid; gap: 8px; margin-bottom: 4px; }
.form__head p { color: var(--ink-2); font-size: .97rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > label, .field legend { font-size: .9rem; font-weight: 400; color: var(--ink-2); padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); outline: none; font-size: 1rem; font-weight: 300; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a9a49b; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 17, .07); }
.field__err { display: none; font-size: .83rem; color: #b42318; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b42318; }
.field.is-invalid .field__err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--paper); border: 1px solid transparent; font-size: .92rem; font-weight: 400; cursor: pointer; transition: background-color .2s, color .2s; }
.opt span:hover { border-color: var(--line-2); }
.opt input:checked + span { background: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { font-size: .93rem; }
.form__status.is-ok { color: #146c3a; }
.form__status.is-err { color: #b42318; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: block; }
  .hdr__actions { margin-inline-start: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .feats, .svc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .why__media { grid-column: 1 / -1; grid-row: auto; }
  .why__media .media { aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 900px) {
  :root { --hdr-h: 68px; }
  .logo img { height: 34px; }
  .about, .faq, .split, .srow, .contact, .start { grid-template-columns: 1fr; }
  .faq > .sec-head { position: static; }
  .cover__strip { grid-template-columns: 1fr 1fr; }
  .cover::before { background: linear-gradient(to top, rgba(12, 12, 12, .82) 0%, rgba(12, 12, 12, .55) 60%, rgba(12, 12, 12, .35) 100%); }
  .srow:nth-child(even) .srow__media { order: 0; }
  .mvv, .cta__contact { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hdr__actions .btn { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .cover--home { min-height: 92svh; }
  .cover__strip { display: none; }
  .collage { grid-template-rows: repeat(3, 120px); gap: 10px; }
  .collage__card { padding: 16px; }
  .collage__card img { width: 90px; }
  .collage__card p { font-size: .82rem; }
  .points { grid-template-columns: 1fr; }
  .svc-grid, .svc-grid--3, .feats, .steps, .steps--4, .ticks, .form__row, .ftr__top, .why { grid-template-columns: 1fr; }
  .qa summary { padding: 18px 20px; }
  .qa__a { padding: 0 20px 20px; }
  .cta { border-radius: 24px; }
  .fab { left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Journal / articles ---------- */
.articles-hero { padding: clamp(72px, 10vw, 132px) 0 clamp(52px, 7vw, 88px); background: var(--paper); }
.articles-hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: end; }
.articles-hero .display { max-width: 800px; }
.articles-hero .lead { max-width: 560px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; min-height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card__media { overflow: hidden; aspect-ratio: 16 / 9; margin: -16px -16px 24px; border-radius: 17px; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card__num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 36px; border-radius: 50%; background: var(--paper); color: var(--ink-2); font-size: .82rem; }
.post-card__meta, .article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--ink-3); font-size: .82rem; }
.post-card h2 { margin-top: 14px; font-size: 1.38rem; }
.post-card p { margin-top: 14px; color: var(--ink-2); font-size: .95rem; line-height: 1.85; }
.post-card .link { margin-top: auto; padding-top: 24px; align-self: start; }
.article-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(42px, 6vw, 78px); background: var(--paper); }
.article-hero__inner { max-width: 920px; }
.article-hero h1 { margin-top: 18px; max-width: 900px; }
.article-hero .lead { margin-top: 20px; max-width: 750px; }
.article-hero .article-meta { margin-top: 28px; }
.article-cover { overflow: hidden; margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: clamp(32px, 6vw, 84px); padding-block: clamp(56px, 8vw, 104px); }
.article-toc { align-self: start; position: sticky; top: calc(var(--hdr-h) + 24px); padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.article-toc strong { display: block; margin-bottom: 10px; font-size: .88rem; }
.article-toc a { display: block; padding: 7px 0; color: var(--ink-2); font-size: .83rem; line-height: 1.6; }
.article-toc a:hover { color: var(--ink); }
.article-body { min-width: 0; }
.article-body > * + * { margin-top: 26px; }
.article-body h2 { margin-top: 54px; font-size: clamp(1.45rem, 1.2rem + .8vw, 2rem); }
.article-body h3 { margin-top: 34px; font-size: 1.2rem; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul, .article-body ol { display: grid; gap: 12px; padding-inline-start: 24px; list-style: revert; }
.article-body li::marker { color: var(--ink); }
.article-note { padding: 24px 26px; border-right: 3px solid var(--ink); border-radius: 0 18px 18px 0; background: var(--paper); color: var(--ink) !important; font-weight: 400; }
.article-cta { display: grid; gap: 16px; padding: clamp(28px, 5vw, 46px); margin-top: 60px !important; border-radius: 28px; background: var(--ink); color: #fff; }
.article-cta p { color: rgba(255,255,255,.75); }
.article-faq { margin-top: 60px !important; padding-top: 44px; border-top: 1px solid var(--line); }
.article-faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-faq summary { cursor: pointer; font-weight: 400; }
.article-faq p { margin-top: 12px; font-size: .95rem; }
@media (max-width: 900px) { .articles-hero__inner, .article-layout { grid-template-columns: 1fr; } .article-toc { position: static; } .article-toc nav { display: flex; flex-wrap: wrap; gap: 4px 16px; } .article-toc strong { width: 100%; } }
/* ---------- Works / portfolio ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  display: grid; gap: 18px; align-content: start; padding: 12px 12px 26px;
  background: #fff; border-radius: var(--r-card); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.sec--paper .work { border-color: transparent; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work[hidden] { display: none; }
.work__frame { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.work__bar { display: flex; align-items: center; gap: 12px; height: 34px; padding-inline: 14px; direction: ltr; border-bottom: 1px solid var(--line); background: var(--paper); }
.work__dots { display: flex; gap: 5px; }
.work__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.work__url { flex: 1; min-width: 0; height: 20px; display: flex; align-items: center; padding-inline: 10px; border-radius: 999px; background: #fff; color: var(--ink-3); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__screen { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.3; overflow: hidden; container-type: size; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; }
.work__screen img { position: absolute; inset: 0 0 auto; width: 100%; height: auto; transition: transform 1s var(--ease); }
.work:hover .work__screen img, .work__screen:focus-visible img { transform: translateY(calc(-100% + 100cqh)); transition: transform var(--scroll, 8s) cubic-bezier(.45, .05, .4, 1); }
.work__hint { position: absolute; inset: auto 12px 12px auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(17, 17, 17, .78); color: #fff; font-size: .78rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work__hint .icon { width: 15px; height: 15px; }
.work:hover .work__hint, .work__screen:focus-visible .work__hint { opacity: 1; transform: none; }
.work__body { display: grid; gap: 10px; margin-inline: 14px; }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work__meta .tags li { background: var(--paper); }
.work__num { color: var(--ink-3); font-size: .85rem; }
.work h3 { font-size: 1.25rem; }
.work p { color: var(--ink-2); font-size: .94rem; line-height: 1.85; }
.work__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 6px; }
.work__links button.link { background: none; border-top: 0; border-inline: 0; cursor: pointer; font: inherit; padding-inline: 0; }
.work__visit { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .9rem; transition: color .25s; }
.work__visit:hover { color: var(--ink); }
.work__visit .icon { width: 15px; height: 15px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 clamp(32px, 4vw, 48px); }
.filters button { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters span { margin-inline-start: 6px; font-size: .78rem; opacity: .6; }

.viewer { width: min(1180px, 100% - 24px); height: calc(100dvh - 40px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.viewer[open] { display: flex; flex-direction: column; animation: viewer-in .35s var(--ease); }
.viewer::backdrop { background: rgba(17, 17, 17, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 12px; padding-inline-start: 22px; border-bottom: 1px solid var(--line); }
.viewer__title { font-size: 1rem; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.viewer__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background-color .25s, color .25s; }
.viewer__close:hover { background: var(--ink); color: #fff; }
.viewer__close .icon { width: 18px; height: 18px; }
.viewer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
.viewer__body img { display: block; width: 100%; height: auto; }

@media (max-width: 1024px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .viewer { width: 100%; height: 100dvh; border-radius: 0; }
  .viewer__bar .btn { display: none; }
}

@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } .post-card { padding: 24px; } .post-card__media { margin: -12px -12px 22px; } .article-cover { border-radius: 20px; } .article-cover img { aspect-ratio: 16 / 10; } .article-hero h1 { font-size: 2rem; } }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 12px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink);
  font-size: .85rem; font-weight: 500; line-height: 1; letter-spacing: .02em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lang-switch:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hdr--over:not(.is-scrolled) .lang-switch { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hdr--over:not(.is-scrolled) .lang-switch:hover { background: #fff; border-color: #fff; color: var(--ink); }
.menu-open .hdr .lang-switch { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 900px) { .lang-switch { min-width: 42px; height: 42px; } }

/* ---------- English (LTR) adjustments ---------- */
[dir="ltr"] body { line-height: 1.75; }
[dir="ltr"] .btn:hover .icon--go { transform: translateX(4px); }
[dir="ltr"] .start__opts a:hover .start__go { transform: translateX(4px); }
[dir="ltr"] .drop { right: auto; left: -12px; }
[dir="ltr"] .cover::before {
  background:
    linear-gradient(to right, rgba(12, 12, 12, .78) 0%, rgba(12, 12, 12, .5) 45%, rgba(12, 12, 12, .2) 100%),
    linear-gradient(to top, rgba(12, 12, 12, .55) 0%, transparent 50%);
}
[dir="ltr"] .qa__a { padding: 0 72px 24px 26px; }
[dir="ltr"] .fab { left: auto; right: 20px; }
[dir="ltr"] .article-note { border-right: 0; border-left: 3px solid var(--ink); border-radius: 18px 0 0 18px; }
@media (max-width: 900px) {
  [dir="ltr"] .cover::before { background: linear-gradient(to top, rgba(12, 12, 12, .82) 0%, rgba(12, 12, 12, .55) 60%, rgba(12, 12, 12, .35) 100%); }
}
@media (max-width: 640px) {
  [dir="ltr"] .qa__a { padding: 0 20px 20px; }
  [dir="ltr"] .fab { left: auto; right: 14px; }
}
